@marimo-team/islands 0.25.3-dev308 → 0.25.3-dev310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-DJnSxHJB.js → ConnectedDataExplorerComponent-DieU6L4x.js} +1 -1
- package/dist/{ErrorBoundary-flfhLFje.js → ErrorBoundary-DjoeT4kv.js} +1 -1
- package/dist/{abnfDiagram-VCTEODGH-CR0U5hup.js → abnfDiagram-VCTEODGH-LOVrjbdp.js} +2 -2
- package/dist/{any-language-editor-C5dsTpeB.js → any-language-editor-DMC2JE9_.js} +1 -1
- package/dist/{architectureDiagram-5GKGNRK7-Bc_fbI1Q.js → architectureDiagram-5GKGNRK7-RZsm312h.js} +1 -1
- package/dist/assets/__vite-browser-external-BSp9tJ_k.js +1 -0
- package/dist/assets/worker-BdfPA0g5.js +171 -0
- package/dist/{chat-ui-C4iLRzY0.js → chat-ui-DkuxGEDp.js} +418 -418
- package/dist/{chunk-IMKFNOWR-y9z5oeAY.js → chunk-IMKFNOWR-B6agbLjo.js} +1 -1
- package/dist/{chunk-SHT3W25Y-Tu-V-e_v.js → chunk-SHT3W25Y-CfULafYG.js} +1 -1
- package/dist/{chunk-SVP7TREG-CJFxs5R_.js → chunk-SVP7TREG-DEOpPMJp.js} +1 -1
- package/dist/{chunk-TICWLB2K-zkTP7ya7.js → chunk-TICWLB2K-DaH-gkX5.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-DxJAZI0N.js → classDiagram-ZZMXUADV-C0CyiWQ7.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-TmHo2BpS.js → classDiagram-v2-VYDZK3BY-xfIc9e2Y.js} +2 -2
- package/dist/{code-visibility-BDs_r7jH.js → code-visibility-CduMVVFS.js} +32 -32
- package/dist/{common-CMTsL35V.js → common-CMcEcucH.js} +919 -919
- package/dist/{config-BG2qKzDg.js → config-BVYA1P0C.js} +103 -76
- package/dist/{cynefinDiagram-5FMLGOSQ-Eb40hmhD.js → cynefinDiagram-5FMLGOSQ-DwGYhKu0.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-_paaVwit.js → dagre-GXQ25YYZ-DfMaWJOV.js} +1 -1
- package/dist/{data-grid-overlay-editor-es6V6qf-.js → data-grid-overlay-editor-BYrIVut3.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BtKJm1_4.js → diagram-S7CK7UJ4-Bw_L87GZ.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DQbxhEMd.js → diagram-UQ7AKVKN-nsrs3Fbz.js} +1 -1
- package/dist/{diagram-VX7I27RA-DITDIfGC.js → diagram-VX7I27RA-7ST9lEqP.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Ct9_zo6F.js → diagram-Z3DM3KII-BnGte-HX.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-6cOntwfv.js → ebnfDiagram-PWID7BFC-zaKyJ1YL.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-CJiOER41.js → erDiagram-RLTQ6QDP-Cx7g95FZ.js} +1 -1
- package/dist/{error-banner-DGOrmBk5.js → error-banner-DkQNU4bn.js} +128 -128
- package/dist/{error-entries-BWmleiL0.js → error-entries-istW7Xbs.js} +589 -544
- package/dist/{feedback-button-D4eVjeNs.js → feedback-button-Zvm26aOQ.js} +107 -106
- package/dist/{flowDiagram-HODETNUW-1lPBEUuW.js → flowDiagram-HODETNUW-C7nIqaHP.js} +2 -2
- package/dist/{formats-qhBmYb0l.js → formats-CMa7L3E8.js} +1 -1
- package/dist/{glide-data-editor-ahfaPdFW.js → glide-data-editor-BE-GgVp4.js} +3 -3
- package/dist/{globals-m8oswz--.js → globals-Dbru-WLP.js} +1 -1
- package/dist/{html-to-image-B8hE6HIH.js → html-to-image-pPbR2cDx.js} +4512 -4464
- package/dist/{infoDiagram-27XIBGKW-C6K4tri5.js → infoDiagram-27XIBGKW-BTM_NXsn.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DwcwgRNH.js → ishikawaDiagram-5VMMS53U-K0FZrlvv.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-E489OMdc.js → kanban-definition-UXKFOSKX-ftznOyrz.js} +1 -1
- package/dist/main.js +6595 -6186
- package/dist/{mermaid-DMPMkVqY.js → mermaid-CNgH43ED.js} +33 -33
- package/dist/{mindmap-definition-YA3MSWOX-DWHjasOp.js → mindmap-definition-YA3MSWOX-CmzbxKfM.js} +1 -1
- package/dist/{number-overlay-editor-C6klKzEr.js → number-overlay-editor-qvlPZ-l-.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-COjcPOZT.js → pegDiagram-XKGWAZYB-DfTAWfGE.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BHAVZ38h.js → pieDiagram-E7YTZNPT-_kGQstZj.js} +1 -1
- package/dist/{process-output-DZDL_j1a.js → process-output-BySO1nIs.js} +3 -3
- package/dist/{railroadDiagram-O6MQD6OU-94ThFyKX.js → railroadDiagram-O6MQD6OU-D41WmIff.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-CpF-Fxbb.js → requirementDiagram-BXWQKSXE-Bh53ZI3I.js} +1 -1
- package/dist/{reveal-component-DwnxPyVz.js → reveal-component-DQaegdcW.js} +4 -4
- package/dist/{sequenceDiagram-WJ2MYXX4-CvANK2x7.js → sequenceDiagram-WJ2MYXX4-DBX27dNm.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-WHuJ4mJL.js → stateDiagram-D77RDMKH-CSYz2IZi.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DbO7lwYq.js → stateDiagram-v2-MP3YSRHH-DVLvtOqn.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-CS2s29Vo.js → swimlanes-42K2YHIH-D59N0ktA.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CXaA1vQg.js → swimlanesDiagram-VR7AAH4N-CRgpmVSW.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-B-SQMg5h.js → timeline-definition-24CTP7MA-C_xIIZDM.js} +1 -1
- package/dist/toDate-5qPtZ6HL.js +94 -0
- package/dist/{vega-component-DwqGfN3_.js → vega-component-Bly2lDhz.js} +10 -10
- package/dist/{vennDiagram-4TSXK5OY-etEFgvaG.js → vennDiagram-4TSXK5OY-DlOf0Mjs.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-BEQN7g62.js → wardleyDiagram-VM6X3IG4-zD_2guVe.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-D8-e5Z0R.js → xychartDiagram-S5SC5T6Z-CA0Dy1ZM.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +35 -13
- package/src/__mocks__/requests.ts +0 -1
- package/src/components/editor/cell/__tests__/useRunCells.test.tsx +86 -101
- package/src/components/editor/cell/useRunCells.ts +38 -65
- package/src/components/editor/notebook-cell.tsx +32 -20
- package/src/components/editor/output/ansi-reduce.ts +7 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +1 -1
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +2 -0
- package/src/core/cells/__tests__/cells.test.ts +0 -14
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +15 -0
- package/src/core/cells/__tests__/utils.test.ts +1 -1
- package/src/core/cells/add-missing-import.ts +2 -5
- package/src/core/cells/cell.ts +1 -0
- package/src/core/cells/cells.ts +1 -2
- package/src/core/executions/__tests__/atoms.test.ts +227 -43
- package/src/core/executions/__tests__/hooks.test.tsx +1 -2
- package/src/core/executions/__tests__/input.test.ts +86 -0
- package/src/core/executions/__tests__/run.test.ts +390 -0
- package/src/core/executions/__tests__/select.test.ts +105 -30
- package/src/core/executions/atoms.ts +186 -71
- package/src/core/executions/index.ts +7 -6
- package/src/core/executions/input.ts +55 -0
- package/src/core/executions/run.ts +120 -0
- package/src/core/executions/select.ts +59 -24
- package/src/core/islands/__tests__/bridge.test.ts +35 -54
- package/src/core/islands/bootstrap.ts +5 -1
- package/src/core/islands/bridge.ts +16 -28
- package/src/core/islands/components/IslandControls.tsx +15 -7
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +36 -53
- package/src/core/islands/worker/worker.tsx +45 -19
- package/src/core/network/__tests__/requests-lazy.test.ts +14 -24
- package/src/core/network/__tests__/requests-toasting.test.tsx +7 -7
- package/src/core/network/requests-lazy.ts +2 -3
- package/src/core/network/requests-network.ts +0 -9
- package/src/core/network/requests-static.ts +0 -1
- package/src/core/network/requests-toasting.tsx +0 -1
- package/src/core/network/types.ts +0 -2
- package/src/core/notebook/replica/__tests__/fixtures.ts +17 -1
- package/src/core/notebook/replica/backend.ts +3 -1
- package/src/core/runtime/__tests__/runtime.test.ts +36 -0
- package/src/core/runtime/config.ts +36 -1
- package/src/core/runtime/runtime.ts +21 -1
- package/src/core/transports/static.ts +4 -3
- package/src/core/wasm/bridge.ts +0 -17
- package/dist/assets/__vite-browser-external-DzTYIHH_.js +0 -1
- package/dist/assets/worker-BH08I2Il.js +0 -171
- package/dist/static-state-Dtocd9UO.js +0 -68
|
@@ -3,41 +3,41 @@ import { _ as t, f as n, g as r, h as i, i as a, m as o, n as s, p as c, r as l,
|
|
|
3
3
|
import { t as d } from "./react-CHbZqgBF.js";
|
|
4
4
|
import { t as f } from "./compiler-runtime-DNezxW8I.js";
|
|
5
5
|
import { i as p, n as m, r as h, t as g } from "./copy-icon-oHFcxX_y.js";
|
|
6
|
-
import { $ as _, A as v,
|
|
7
|
-
import { a as
|
|
6
|
+
import { $ as _, A as v, C as y, D as b, Et as x, Ft as S, G as C, Gt as w, H as T, Ht as E, K as D, Kt as O, Lt as k, M as A, N as j, Nt as M, Ot as N, Q as P, Rt as F, S as I, Tt as L, U as R, Ut as z, V as B, W as V, Wt as ee, Y as te, Z as H, at as ne, d as re, ft as ie, gt as ae, jt as oe, k as se, mt as ce, n as le, pt as ue, r as de, s as fe, t as pe, w as me, x as he, y as ge, z as _e, zt as ve } from "./html-to-image-pPbR2cDx.js";
|
|
7
|
+
import { a as ye, f as be, h as U, n as xe, o as Se, r as Ce, t as we } from "./tooltip-BekOCQ3v.js";
|
|
8
8
|
import { r as Te, s as Ee } from "./useLifecycle-BMlFy2yY.js";
|
|
9
9
|
import { a as De, i as Oe, n as ke, o as Ae, r as je, t as Me } from "./useDateFormatter-Brx-S2sN.js";
|
|
10
10
|
import { t as Ne } from "./check-DCQEEsUn.js";
|
|
11
11
|
import { A as Pe, C as Fe, M as Ie, S as Le, T as Re, _ as ze, b as Be, c as Ve, d as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, m as Je, n as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./select-XmXyen3r.js";
|
|
12
12
|
import { $ as nt, $t as rt, A as it, At as at, B as ot, Bt as st, C as ct, Ct as lt, D as ut, Dt as dt, E as ft, Et as pt, F as mt, Ft as ht, G as gt, Gt as _t, H as vt, Ht as yt, I as bt, It as xt, Jt as St, K as Ct, Kt as wt, L as Tt, Lt as Et, M as Dt, Mt as Ot, N as kt, Nt as At, O as jt, Ot as Mt, P as Nt, Pt, Q as Ft, Qt as It, R as Lt, Rt, S as zt, Sn as Bt, St as Vt, T as Ht, Tt as Ut, U as Wt, Ut as Gt, V as Kt, Vt as qt, W as Jt, Wt as Yt, X as Xt, Xt as Zt, Yt as Qt, Z as $t, Zt as en, _ as tn, _n as nn, _t as rn, a as an, an as on, at as sn, b as cn, bn as ln, bt as un, cn as dn, ct as fn, d as pn, dn as mn, dt as hn, en as gn, et as _n, f as vn, ft as yn, gn as bn, gt as xn, h as Sn, hn as Cn, ht as wn, i as Tn, it as En, j as Dn, jt as On, k as kn, kt as An, l as jn, lt as Mn, mn as Nn, mt as Pn, n as Fn, nn as In, nt as Ln, o as Rn, on as zn, ot as Bn, pn as Vn, q as Hn, qt as Un, rn as Wn, rt as Gn, s as Kn, sn as qn, st as Jn, t as Yn, tn as Xn, tt as Zn, u as Qn, un as $n, ut as er, vn as tr, vt as nr, wt as rr, x as ir, xn as ar, xt as or, yn as sr, yt as cr, z as lr, zt as ur } from "./dropdown-menu-CAejOChE.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { n as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { At as
|
|
20
|
-
import { a as
|
|
21
|
-
import { n as
|
|
22
|
-
import { a as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { a as da, i as fa, n as pa, r as ma, t as ha } from "./formats-
|
|
13
|
+
import { i as dr, n as fr, o as pr, t as mr } from "./config-BVYA1P0C.js";
|
|
14
|
+
import { D as hr, E as gr, Ft as _r, Gt as vr, It as yr, J as br, L as xr, M as Sr, Nt as Cr, R as wr, U as Tr, Ut as Er, V as Dr, Wt as Or, X as kr, Z as Ar, b as jr, bt as Mr, h as Nr, kt as Pr, l as Fr, rt as Ir, t as Lr, u as Rr, w as zr, xt as Br, y as Vr, z as Hr } from "./error-entries-istW7Xbs.js";
|
|
15
|
+
import { n as Ur, o as Wr, r as Gr, s as Kr, t as qr } from "./assertNever-efcK_v3t.js";
|
|
16
|
+
import { t as Jr } from "./clsx-CoeGtWvn.js";
|
|
17
|
+
import { t as Yr } from "./react-dom-DhWGW7e0.js";
|
|
18
|
+
import { t as Xr } from "./jsx-runtime-6ZiU38At.js";
|
|
19
|
+
import { At as Zr, Bt as Qr, Ct as $r, Ft as ei, Gt as ti, It as ni, Kt as ri, Lt as ii, Mt as ai, Nt as oi, Ot as si, Pt as ci, Rt as li, S as ui, Ut as di, Vt as fi, _ as pi, a as mi, bt as hi, c as gi, cn as _i, dn as vi, fn as yi, g as bi, i as xi, ln as Si, mn as Ci, n as wi, o as Ti, ot as Ei, pn as Di, q as Oi, rt as ki, u as Ai, un as ji, w as Mi, x as Ni, yt as Pi } from "./use-restore-focus-DyrKLdSB.js";
|
|
20
|
+
import { a as Fi, c as Ii, d as Li, h as Ri, i as zi, l as Bi, m as Vi, n as Hi, o as Ui, r as Wi, s as Gi, t as Ki, u as qi } from "./error-banner-DkQNU4bn.js";
|
|
21
|
+
import { n as Ji } from "./toast-xEFvuGpt.js";
|
|
22
|
+
import { a as Yi } from "./_baseSet-Bd5zh2yg.js";
|
|
23
|
+
import { t as Xi } from "./objects-DCmMvZtn.js";
|
|
24
|
+
import { t as Zi } from "./invariant-DLmrl-hA.js";
|
|
25
|
+
import { t as Qi } from "./useEvent-xDnF2X04.js";
|
|
26
|
+
import { a as $i, c as ea, h as ta, i as na, m as ra, n as ia, r as aa, s as oa, t as sa, v as ca } from "./toDate-5qPtZ6HL.js";
|
|
27
|
+
import { t as la } from "./createReducer-DHfURLCk.js";
|
|
28
|
+
import { V as ua } from "./dist-B_xgcU0N.js";
|
|
29
|
+
import { a as da, i as fa, n as pa, r as ma, t as ha } from "./formats-CMa7L3E8.js";
|
|
30
30
|
import { o as ga, t as _a } from "./arrays-DoQ-AILx.js";
|
|
31
31
|
import { n as va, t as ya } from "./once-NnpX_HnX.js";
|
|
32
32
|
import { o as ba } from "./dist-f1h5p-fp.js";
|
|
33
33
|
import { a as xa, i as Sa, n as Ca, o as wa, r as Ta, t as Ea } from "./dialog-BIUdMLIS.js";
|
|
34
34
|
import { t as Da } from "./useAsyncData-DMBliR6D.js";
|
|
35
35
|
import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
|
|
36
|
-
import { t as Oa } from "./ErrorBoundary-
|
|
36
|
+
import { t as Oa } from "./ErrorBoundary-DjoeT4kv.js";
|
|
37
37
|
import { D as ka, n as Aa } from "./vega-loader.browser-Cnf7IHA8.js";
|
|
38
38
|
import { a as ja, n as Ma, r as Na, t as Pa } from "./loader-BIlwkY0d.js";
|
|
39
39
|
import { t as Fa } from "./useIframeCapabilities--px_wpZL.js";
|
|
40
|
-
var Ia =
|
|
40
|
+
var Ia = U("arrow-down-wide-narrow", [
|
|
41
41
|
["path", {
|
|
42
42
|
d: "m3 16 4 4 4-4",
|
|
43
43
|
key: "1co6wj"
|
|
@@ -58,7 +58,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
58
58
|
d: "M11 12h4",
|
|
59
59
|
key: "q8tih4"
|
|
60
60
|
}]
|
|
61
|
-
]), La =
|
|
61
|
+
]), La = U("arrow-up-narrow-wide", [
|
|
62
62
|
["path", {
|
|
63
63
|
d: "m3 8 4-4 4 4",
|
|
64
64
|
key: "11wl7u"
|
|
@@ -79,7 +79,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
79
79
|
d: "M11 20h10",
|
|
80
80
|
key: "jvxblo"
|
|
81
81
|
}]
|
|
82
|
-
]), Ra =
|
|
82
|
+
]), Ra = U("brick-wall", [
|
|
83
83
|
["rect", {
|
|
84
84
|
width: "18",
|
|
85
85
|
height: "18",
|
|
@@ -116,7 +116,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
116
116
|
d: "M8 3v6",
|
|
117
117
|
key: "vlvjmk"
|
|
118
118
|
}]
|
|
119
|
-
]), za =
|
|
119
|
+
]), za = U("bug-play", [
|
|
120
120
|
["path", {
|
|
121
121
|
d: "M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",
|
|
122
122
|
key: "1gnv52"
|
|
@@ -153,40 +153,40 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
153
153
|
d: "M9 7.13V6a3 3 0 1 1 6 0v1.13",
|
|
154
154
|
key: "1vgav8"
|
|
155
155
|
}]
|
|
156
|
-
]), Ba =
|
|
156
|
+
]), Ba = U("chart-spline", [["path", {
|
|
157
157
|
d: "M3 3v16a2 2 0 0 0 2 2h16",
|
|
158
158
|
key: "c24i48"
|
|
159
159
|
}], ["path", {
|
|
160
160
|
d: "M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",
|
|
161
161
|
key: "lw07rv"
|
|
162
|
-
}]]), Va =
|
|
162
|
+
}]]), Va = U("chevron-left", [["path", {
|
|
163
163
|
d: "m15 18-6-6 6-6",
|
|
164
164
|
key: "1wnfg3"
|
|
165
|
-
}]]), Ha =
|
|
165
|
+
}]]), Ha = U("chevrons-down-up", [["path", {
|
|
166
166
|
d: "m7 20 5-5 5 5",
|
|
167
167
|
key: "13a0gw"
|
|
168
168
|
}], ["path", {
|
|
169
169
|
d: "m7 4 5 5 5-5",
|
|
170
170
|
key: "1kwcof"
|
|
171
|
-
}]]), Ua =
|
|
171
|
+
}]]), Ua = U("chevrons-left", [["path", {
|
|
172
172
|
d: "m11 17-5-5 5-5",
|
|
173
173
|
key: "13zhaf"
|
|
174
174
|
}], ["path", {
|
|
175
175
|
d: "m18 17-5-5 5-5",
|
|
176
176
|
key: "h8a8et"
|
|
177
|
-
}]]), Wa =
|
|
177
|
+
}]]), Wa = U("chevrons-right", [["path", {
|
|
178
178
|
d: "m6 17 5-5-5-5",
|
|
179
179
|
key: "xnjwq"
|
|
180
180
|
}], ["path", {
|
|
181
181
|
d: "m13 17 5-5-5-5",
|
|
182
182
|
key: "17xmmf"
|
|
183
|
-
}]]), Ga =
|
|
183
|
+
}]]), Ga = U("chevrons-up-down", [["path", {
|
|
184
184
|
d: "m7 15 5 5 5-5",
|
|
185
185
|
key: "1hf1tw"
|
|
186
186
|
}], ["path", {
|
|
187
187
|
d: "m7 9 5-5 5 5",
|
|
188
188
|
key: "sgt6xg"
|
|
189
|
-
}]]), Ka =
|
|
189
|
+
}]]), Ka = U("clipboard-copy", [
|
|
190
190
|
["rect", {
|
|
191
191
|
width: "8",
|
|
192
192
|
height: "4",
|
|
@@ -212,13 +212,13 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
212
212
|
d: "m15 10-4 4 4 4",
|
|
213
213
|
key: "5dvupr"
|
|
214
214
|
}]
|
|
215
|
-
]), qa =
|
|
215
|
+
]), qa = U("code", [["path", {
|
|
216
216
|
d: "m16 18 6-6-6-6",
|
|
217
217
|
key: "eg8j8"
|
|
218
218
|
}], ["path", {
|
|
219
219
|
d: "m8 6-6 6 6 6",
|
|
220
220
|
key: "ppft3o"
|
|
221
|
-
}]]), Ja =
|
|
221
|
+
}]]), Ja = U("columns-3", [
|
|
222
222
|
["rect", {
|
|
223
223
|
width: "18",
|
|
224
224
|
height: "18",
|
|
@@ -235,7 +235,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
235
235
|
d: "M15 3v18",
|
|
236
236
|
key: "14nvp0"
|
|
237
237
|
}]
|
|
238
|
-
]), Ya =
|
|
238
|
+
]), Ya = U("cookie", [
|
|
239
239
|
["path", {
|
|
240
240
|
d: "M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",
|
|
241
241
|
key: "laymnq"
|
|
@@ -260,7 +260,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
260
260
|
d: "M7 14v.01",
|
|
261
261
|
key: "uct60s"
|
|
262
262
|
}]
|
|
263
|
-
]), Xa =
|
|
263
|
+
]), Xa = U("download", [
|
|
264
264
|
["path", {
|
|
265
265
|
d: "M12 15V3",
|
|
266
266
|
key: "m9g1x1"
|
|
@@ -273,7 +273,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
273
273
|
d: "m7 10 5 5 5-5",
|
|
274
274
|
key: "brsn70"
|
|
275
275
|
}]
|
|
276
|
-
]), Za =
|
|
276
|
+
]), Za = U("ellipsis", [
|
|
277
277
|
["circle", {
|
|
278
278
|
cx: "12",
|
|
279
279
|
cy: "12",
|
|
@@ -292,7 +292,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
292
292
|
r: "1",
|
|
293
293
|
key: "1pcz8c"
|
|
294
294
|
}]
|
|
295
|
-
]), Qa =
|
|
295
|
+
]), Qa = U("expand", [
|
|
296
296
|
["path", {
|
|
297
297
|
d: "m15 15 6 6",
|
|
298
298
|
key: "1s409w"
|
|
@@ -325,7 +325,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
325
325
|
d: "M9 9 3 3",
|
|
326
326
|
key: "v551iv"
|
|
327
327
|
}]
|
|
328
|
-
]), $a =
|
|
328
|
+
]), $a = U("eye-off", [
|
|
329
329
|
["path", {
|
|
330
330
|
d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
|
|
331
331
|
key: "ct8e1f"
|
|
@@ -342,7 +342,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
342
342
|
d: "m2 2 20 20",
|
|
343
343
|
key: "1ooewy"
|
|
344
344
|
}]
|
|
345
|
-
]), eo =
|
|
345
|
+
]), eo = U("funnel-x", [
|
|
346
346
|
["path", {
|
|
347
347
|
d: "M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",
|
|
348
348
|
key: "ol2ft2"
|
|
@@ -355,10 +355,10 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
355
355
|
d: "m21.5 3.5-5 5",
|
|
356
356
|
key: "m0lwru"
|
|
357
357
|
}]
|
|
358
|
-
]), to =
|
|
358
|
+
]), to = U("funnel", [["path", {
|
|
359
359
|
d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
|
|
360
360
|
key: "sc7q7i"
|
|
361
|
-
}]]), no =
|
|
361
|
+
}]]), no = U("grip-horizontal", [
|
|
362
362
|
["circle", {
|
|
363
363
|
cx: "12",
|
|
364
364
|
cy: "9",
|
|
@@ -395,7 +395,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
395
395
|
r: "1",
|
|
396
396
|
key: "5r1jwy"
|
|
397
397
|
}]
|
|
398
|
-
]), ro =
|
|
398
|
+
]), ro = U("hat-glasses", [
|
|
399
399
|
["path", {
|
|
400
400
|
d: "M14 18a2 2 0 0 0-4 0",
|
|
401
401
|
key: "1v8fkw"
|
|
@@ -420,7 +420,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
420
420
|
r: "3",
|
|
421
421
|
key: "lvkj7j"
|
|
422
422
|
}]
|
|
423
|
-
]), io =
|
|
423
|
+
]), io = U("keyboard", [
|
|
424
424
|
["path", {
|
|
425
425
|
d: "M10 8h.01",
|
|
426
426
|
key: "1r9ogq"
|
|
@@ -461,7 +461,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
461
461
|
rx: "2",
|
|
462
462
|
key: "18n3k1"
|
|
463
463
|
}]
|
|
464
|
-
]), ao =
|
|
464
|
+
]), ao = U("layout-template", [
|
|
465
465
|
["rect", {
|
|
466
466
|
width: "18",
|
|
467
467
|
height: "7",
|
|
@@ -486,7 +486,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
486
486
|
rx: "1",
|
|
487
487
|
key: "q5h2i8"
|
|
488
488
|
}]
|
|
489
|
-
]), oo =
|
|
489
|
+
]), oo = U("map", [
|
|
490
490
|
["path", {
|
|
491
491
|
d: "M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",
|
|
492
492
|
key: "169xi5"
|
|
@@ -499,10 +499,10 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
499
499
|
d: "M9 3.236v15",
|
|
500
500
|
key: "1uimfh"
|
|
501
501
|
}]
|
|
502
|
-
]), so =
|
|
502
|
+
]), so = U("message-circle", [["path", {
|
|
503
503
|
d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
|
|
504
504
|
key: "1sd12s"
|
|
505
|
-
}]]), co =
|
|
505
|
+
}]]), co = U("package", [
|
|
506
506
|
["path", {
|
|
507
507
|
d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
|
|
508
508
|
key: "1a0edw"
|
|
@@ -519,7 +519,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
519
519
|
d: "m7.5 4.27 9 5.15",
|
|
520
520
|
key: "1c824w"
|
|
521
521
|
}]
|
|
522
|
-
]), lo =
|
|
522
|
+
]), lo = U("panel-right-close", [
|
|
523
523
|
["rect", {
|
|
524
524
|
width: "18",
|
|
525
525
|
height: "18",
|
|
@@ -536,7 +536,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
536
536
|
d: "m8 9 3 3-3 3",
|
|
537
537
|
key: "12hl5m"
|
|
538
538
|
}]
|
|
539
|
-
]), uo =
|
|
539
|
+
]), uo = U("panel-right-open", [
|
|
540
540
|
["rect", {
|
|
541
541
|
width: "18",
|
|
542
542
|
height: "18",
|
|
@@ -553,7 +553,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
553
553
|
d: "m10 15-3-3 3-3",
|
|
554
554
|
key: "1pgupc"
|
|
555
555
|
}]
|
|
556
|
-
]), fo =
|
|
556
|
+
]), fo = U("panel-right", [["rect", {
|
|
557
557
|
width: "18",
|
|
558
558
|
height: "18",
|
|
559
559
|
x: "3",
|
|
@@ -563,7 +563,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
563
563
|
}], ["path", {
|
|
564
564
|
d: "M15 3v18",
|
|
565
565
|
key: "14nvp0"
|
|
566
|
-
}]]), po =
|
|
566
|
+
}]]), po = U("pin-off", [
|
|
567
567
|
["path", {
|
|
568
568
|
d: "M12 17v5",
|
|
569
569
|
key: "bb1du9"
|
|
@@ -580,7 +580,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
580
580
|
d: "M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",
|
|
581
581
|
key: "c9qhm2"
|
|
582
582
|
}]
|
|
583
|
-
]), mo =
|
|
583
|
+
]), mo = U("rows-2", [["rect", {
|
|
584
584
|
width: "18",
|
|
585
585
|
height: "18",
|
|
586
586
|
x: "3",
|
|
@@ -590,7 +590,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
590
590
|
}], ["path", {
|
|
591
591
|
d: "M3 12h18",
|
|
592
592
|
key: "1i2n21"
|
|
593
|
-
}]]), ho =
|
|
593
|
+
}]]), ho = U("scan-eye", [
|
|
594
594
|
["path", {
|
|
595
595
|
d: "M3 7V5a2 2 0 0 1 2-2h2",
|
|
596
596
|
key: "aa7l1z"
|
|
@@ -617,13 +617,13 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
617
617
|
d: "M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",
|
|
618
618
|
key: "11ak4c"
|
|
619
619
|
}]
|
|
620
|
-
]), go =
|
|
620
|
+
]), go = U("send", [["path", {
|
|
621
621
|
d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",
|
|
622
622
|
key: "1ffxy3"
|
|
623
623
|
}], ["path", {
|
|
624
624
|
d: "m21.854 2.147-10.94 10.939",
|
|
625
625
|
key: "12cjpa"
|
|
626
|
-
}]]), _o =
|
|
626
|
+
}]]), _o = U("shrink", [
|
|
627
627
|
["path", {
|
|
628
628
|
d: "m15 15 6 6m-6-6v4.8m0-4.8h4.8",
|
|
629
629
|
key: "17vawe"
|
|
@@ -640,7 +640,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
640
640
|
d: "M9 4.2V9m0 0H4.2M9 9 3 3",
|
|
641
641
|
key: "1pxi2q"
|
|
642
642
|
}]
|
|
643
|
-
]), vo =
|
|
643
|
+
]), vo = U("square-arrow-out-up-right", [
|
|
644
644
|
["path", {
|
|
645
645
|
d: "M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",
|
|
646
646
|
key: "y09zxi"
|
|
@@ -653,7 +653,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
653
653
|
d: "M15 3h6v6",
|
|
654
654
|
key: "1q9fwt"
|
|
655
655
|
}]
|
|
656
|
-
]), yo =
|
|
656
|
+
]), yo = U("square-stack", [
|
|
657
657
|
["path", {
|
|
658
658
|
d: "M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",
|
|
659
659
|
key: "4i38lg"
|
|
@@ -670,13 +670,13 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
670
670
|
rx: "2",
|
|
671
671
|
key: "1fa9i4"
|
|
672
672
|
}]
|
|
673
|
-
]), bo =
|
|
673
|
+
]), bo = U("terminal", [["path", {
|
|
674
674
|
d: "M12 19h8",
|
|
675
675
|
key: "baeox8"
|
|
676
676
|
}], ["path", {
|
|
677
677
|
d: "m4 17 6-6-6-6",
|
|
678
678
|
key: "1yngyt"
|
|
679
|
-
}]]), xo =
|
|
679
|
+
}]]), xo = U("text-align-justify", [
|
|
680
680
|
["path", {
|
|
681
681
|
d: "M3 5h18",
|
|
682
682
|
key: "1u36vt"
|
|
@@ -689,7 +689,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
689
689
|
d: "M3 19h18",
|
|
690
690
|
key: "awlh7x"
|
|
691
691
|
}]
|
|
692
|
-
]), So =
|
|
692
|
+
]), So = U("text-wrap", [
|
|
693
693
|
["path", {
|
|
694
694
|
d: "m16 16-3 3 3 3",
|
|
695
695
|
key: "117b85"
|
|
@@ -706,11 +706,11 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
706
706
|
d: "M3 5h18",
|
|
707
707
|
key: "1u36vt"
|
|
708
708
|
}]
|
|
709
|
-
]), K = /* @__PURE__ */ e(d(), 1), q =
|
|
709
|
+
]), K = /* @__PURE__ */ e(d(), 1), q = Xr(), Co = Object.defineProperty, wo = (e, t) => Co(e, "name", {
|
|
710
710
|
value: t,
|
|
711
711
|
configurable: !0
|
|
712
|
-
}), To = "Collapsible", [Eo, Do] =
|
|
713
|
-
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] =
|
|
712
|
+
}), To = "Collapsible", [Eo, Do] = Di(To), [Oo, ko] = Eo(To), Ao = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ wo(function(e, t) {
|
|
713
|
+
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] = ji({
|
|
714
714
|
prop: r,
|
|
715
715
|
defaultProp: i ?? !1,
|
|
716
716
|
onChange: o,
|
|
@@ -719,10 +719,10 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
719
719
|
return /* @__PURE__ */ (0, q.jsx)(Oo, {
|
|
720
720
|
scope: n,
|
|
721
721
|
disabled: a,
|
|
722
|
-
contentId:
|
|
722
|
+
contentId: _i(),
|
|
723
723
|
open: c,
|
|
724
724
|
onOpenToggle: K.useCallback(() => l((e) => !e), [l]),
|
|
725
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
725
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ci.div, {
|
|
726
726
|
"data-state": Io(c),
|
|
727
727
|
"data-disabled": a ? "" : void 0,
|
|
728
728
|
...s,
|
|
@@ -731,7 +731,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
731
731
|
});
|
|
732
732
|
}, "Collapsible")), jo = "CollapsibleTrigger", Mo = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ wo(function(e, t) {
|
|
733
733
|
let { __scopeCollapsible: n, ...r } = e, i = ko(jo, n);
|
|
734
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
734
|
+
return /* @__PURE__ */ (0, q.jsx)(Ci.button, {
|
|
735
735
|
type: "button",
|
|
736
736
|
"aria-controls": i.open ? i.contentId : void 0,
|
|
737
737
|
"aria-expanded": i.open || !1,
|
|
@@ -740,11 +740,11 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
740
740
|
disabled: i.disabled,
|
|
741
741
|
...r,
|
|
742
742
|
ref: t,
|
|
743
|
-
onClick:
|
|
743
|
+
onClick: vi(e.onClick, i.onOpenToggle)
|
|
744
744
|
});
|
|
745
745
|
}, "CollapsibleTrigger")), No = "CollapsibleContent", Po = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ wo(function(e, t) {
|
|
746
746
|
let { forceMount: n, ...r } = e, i = ko(No, e.__scopeCollapsible);
|
|
747
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
747
|
+
return /* @__PURE__ */ (0, q.jsx)(Si, {
|
|
748
748
|
present: n || i.open,
|
|
749
749
|
children: ({ present: e }) => /* @__PURE__ */ (0, q.jsx)(Fo, {
|
|
750
750
|
...r,
|
|
@@ -757,7 +757,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
757
757
|
return K.useEffect(() => {
|
|
758
758
|
let e = requestAnimationFrame(() => _.current = !1);
|
|
759
759
|
return () => cancelAnimationFrame(e);
|
|
760
|
-
}, []),
|
|
760
|
+
}, []), yi(() => {
|
|
761
761
|
let e = u.current;
|
|
762
762
|
if (e) {
|
|
763
763
|
v.current = v.current || {
|
|
@@ -767,7 +767,7 @@ var Ia = H("arrow-down-wide-narrow", [
|
|
|
767
767
|
let t = e.getBoundingClientRect();
|
|
768
768
|
f.current = t.height, m.current = t.width, _.current || (e.style.transitionDuration = v.current.transitionDuration, e.style.animationName = v.current.animationName), l(r);
|
|
769
769
|
}
|
|
770
|
-
}, [o.open, r]), /* @__PURE__ */ (0, q.jsx)(
|
|
770
|
+
}, [o.open, r]), /* @__PURE__ */ (0, q.jsx)(Ci.div, {
|
|
771
771
|
"data-state": Io(o.open),
|
|
772
772
|
"data-disabled": o.disabled ? "" : void 0,
|
|
773
773
|
id: o.contentId,
|
|
@@ -807,7 +807,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
807
807
|
"ArrowUp",
|
|
808
808
|
"ArrowLeft",
|
|
809
809
|
"ArrowRight"
|
|
810
|
-
], [Wo, { useGetCollection: Go, createCollectionScope: Ko }] =
|
|
810
|
+
], [Wo, { useGetCollection: Go, createCollectionScope: Ko }] = Wr(Ho), [qo, Jo] = Di(Ho, [Ko, Do]), Yo = Do(), Xo = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
811
811
|
let { type: n, ...r } = e, i = r, a = r;
|
|
812
812
|
return /* @__PURE__ */ (0, q.jsx)(Wo.Provider, {
|
|
813
813
|
scope: e.__scopeAccordion,
|
|
@@ -820,7 +820,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
820
820
|
})
|
|
821
821
|
});
|
|
822
822
|
}, "Accordion")), [Zo, Qo] = qo(Ho), [$o, es] = qo(Ho, { collapsible: !1 }), ts = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
823
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ Ro(() => {}, "onValueChange"), collapsible: a = !1, ...o } = e, [s, c] =
|
|
823
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ Ro(() => {}, "onValueChange"), collapsible: a = !1, ...o } = e, [s, c] = ji({
|
|
824
824
|
prop: n,
|
|
825
825
|
defaultProp: r ?? "",
|
|
826
826
|
onChange: i,
|
|
@@ -841,7 +841,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
841
841
|
})
|
|
842
842
|
});
|
|
843
843
|
}, "AccordionImplSingle")), ns = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
844
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ Ro(() => {}, "onValueChange"), ...a } = e, [o, s] =
|
|
844
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ Ro(() => {}, "onValueChange"), ...a } = e, [o, s] = ji({
|
|
845
845
|
prop: n,
|
|
846
846
|
defaultProp: r ?? [],
|
|
847
847
|
onChange: i,
|
|
@@ -862,7 +862,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
862
862
|
})
|
|
863
863
|
});
|
|
864
864
|
}, "AccordionImplMultiple")), [rs, is] = qo(Ho), as = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
865
|
-
let { __scopeAccordion: n, disabled: r, dir: i, orientation: a = Bo.Vertical, ...o } = e, s = K.useRef(null), l = c(s, t), u = Go(n), d = Pe(i) === Vo.LTR, f =
|
|
865
|
+
let { __scopeAccordion: n, disabled: r, dir: i, orientation: a = Bo.Vertical, ...o } = e, s = K.useRef(null), l = c(s, t), u = Go(n), d = Pe(i) === Vo.LTR, f = vi(e.onKeyDown, (e) => {
|
|
866
866
|
if (!Uo.includes(e.key)) return;
|
|
867
867
|
let t = u(), n = e.target, r = t.filter(([, e]) => !e.element.disabled), i = r.findIndex(([, e]) => e.element === n), o = r.size;
|
|
868
868
|
if (i === -1) return;
|
|
@@ -900,7 +900,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
900
900
|
orientation: a,
|
|
901
901
|
children: /* @__PURE__ */ (0, q.jsx)(Wo.Slot, {
|
|
902
902
|
scope: n,
|
|
903
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
903
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ci.div, {
|
|
904
904
|
...o,
|
|
905
905
|
"data-orientation": a,
|
|
906
906
|
ref: l,
|
|
@@ -909,7 +909,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
909
909
|
})
|
|
910
910
|
});
|
|
911
911
|
}, "AccordionImpl")), os = "AccordionItem", [ss, cs] = qo(os), ls = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
912
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = is(os, n), o = Qo(os, n), s = Yo(n), c =
|
|
912
|
+
let { __scopeAccordion: n, value: r, ...i } = e, a = is(os, n), o = Qo(os, n), s = Yo(n), c = _i(), l = r && o.value.includes(r) || !1, u = a.disabled || e.disabled;
|
|
913
913
|
return /* @__PURE__ */ (0, q.jsx)(ss, {
|
|
914
914
|
scope: n,
|
|
915
915
|
open: l,
|
|
@@ -930,7 +930,7 @@ var Lo = Object.defineProperty, Ro = (e, t) => Lo(e, "name", {
|
|
|
930
930
|
});
|
|
931
931
|
}, "AccordionItem")), us = "AccordionHeader", ds = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Ro(function(e, t) {
|
|
932
932
|
let { __scopeAccordion: n, ...r } = e, i = is(Ho, n), a = cs(us, n);
|
|
933
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
933
|
+
return /* @__PURE__ */ (0, q.jsx)(Ci.h3, {
|
|
934
934
|
"data-orientation": i.orientation,
|
|
935
935
|
"data-state": gs(a.open),
|
|
936
936
|
"data-disabled": a.disabled ? "" : void 0,
|
|
@@ -975,8 +975,8 @@ Ro(gs, "getState");
|
|
|
975
975
|
var _s = Object.defineProperty, vs = (e, t) => _s(e, "name", {
|
|
976
976
|
value: t,
|
|
977
977
|
configurable: !0
|
|
978
|
-
}), ys = "ContextMenu", [bs, xs] =
|
|
979
|
-
let { __scopeContextMenu: t, children: n, onOpenChange: r, open: i, dir: a, modal: o = !0 } = e, s = K.useRef(!1), [c, l] =
|
|
978
|
+
}), ys = "ContextMenu", [bs, xs] = Di(ys, [Cn]), Ss = Cn(), [Cs, ws] = bs(ys), Ts = /* @__PURE__ */ vs((e) => {
|
|
979
|
+
let { __scopeContextMenu: t, children: n, onOpenChange: r, open: i, dir: a, modal: o = !0 } = e, s = K.useRef(!1), [c, l] = ji({
|
|
980
980
|
prop: i,
|
|
981
981
|
defaultProp: !1,
|
|
982
982
|
onChange: r,
|
|
@@ -1014,7 +1014,7 @@ var _s = Object.defineProperty, vs = (e, t) => _s(e, "name", {
|
|
|
1014
1014
|
return K.useEffect(() => d, [d]), K.useEffect(() => void (r && d()), [r, d]), /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [/* @__PURE__ */ (0, q.jsx)(Xn, {
|
|
1015
1015
|
...o,
|
|
1016
1016
|
virtualRef: l
|
|
1017
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
1017
|
+
}), /* @__PURE__ */ (0, q.jsx)(Ci.span, {
|
|
1018
1018
|
"data-state": a.open ? "open" : "closed",
|
|
1019
1019
|
"data-disabled": r ? "" : void 0,
|
|
1020
1020
|
...i,
|
|
@@ -1023,15 +1023,15 @@ var _s = Object.defineProperty, vs = (e, t) => _s(e, "name", {
|
|
|
1023
1023
|
WebkitTouchCallout: "none",
|
|
1024
1024
|
...e.style
|
|
1025
1025
|
},
|
|
1026
|
-
onContextMenu: r ? e.onContextMenu :
|
|
1026
|
+
onContextMenu: r ? e.onContextMenu : vi(e.onContextMenu, (e) => {
|
|
1027
1027
|
d(), f(e), e.preventDefault();
|
|
1028
1028
|
}),
|
|
1029
|
-
onPointerDown: r ? e.onPointerDown :
|
|
1029
|
+
onPointerDown: r ? e.onPointerDown : vi(e.onPointerDown, zs((e) => {
|
|
1030
1030
|
d(), a.open && a.onOpenChange(!1), u.current = window.setTimeout(() => f(e), 700);
|
|
1031
1031
|
})),
|
|
1032
|
-
onPointerMove: r ? e.onPointerMove :
|
|
1033
|
-
onPointerCancel: r ? e.onPointerCancel :
|
|
1034
|
-
onPointerUp: r ? e.onPointerUp :
|
|
1032
|
+
onPointerMove: r ? e.onPointerMove : vi(e.onPointerMove, zs(d)),
|
|
1033
|
+
onPointerCancel: r ? e.onPointerCancel : vi(e.onPointerCancel, zs(d)),
|
|
1034
|
+
onPointerUp: r ? e.onPointerUp : vi(e.onPointerUp, zs(d))
|
|
1035
1035
|
})] });
|
|
1036
1036
|
}, "ContextMenuTrigger")), Os = /* @__PURE__ */ vs((e) => {
|
|
1037
1037
|
let { __scopeContextMenu: t, ...n } = e, r = Ss(t);
|
|
@@ -1137,7 +1137,7 @@ vs(zs, "whenTouchOrPen");
|
|
|
1137
1137
|
var Bs = Object.defineProperty, Vs = (e, t) => Bs(e, "name", {
|
|
1138
1138
|
value: t,
|
|
1139
1139
|
configurable: !0
|
|
1140
|
-
}), Hs = "Progress", Us = 100, [Ws, Gs] =
|
|
1140
|
+
}), Hs = "Progress", Us = 100, [Ws, Gs] = Di(Hs), [Ks, qs] = Ws(Hs), Js = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Vs(function(e, t) {
|
|
1141
1141
|
let { __scopeProgress: n, value: r = null, max: i, getValueLabel: a = Zs, ...o } = e;
|
|
1142
1142
|
(i || i === 0) && !ec(i) && console.error(nc(`${i}`, "Progress"));
|
|
1143
1143
|
let s = ec(i) ? i : Us;
|
|
@@ -1147,7 +1147,7 @@ var Bs = Object.defineProperty, Vs = (e, t) => Bs(e, "name", {
|
|
|
1147
1147
|
scope: n,
|
|
1148
1148
|
value: c,
|
|
1149
1149
|
max: s,
|
|
1150
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1150
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ci.div, {
|
|
1151
1151
|
"aria-valuemax": s,
|
|
1152
1152
|
"aria-valuemin": 0,
|
|
1153
1153
|
"aria-valuenow": $s(c) ? c : void 0,
|
|
@@ -1162,7 +1162,7 @@ var Bs = Object.defineProperty, Vs = (e, t) => Bs(e, "name", {
|
|
|
1162
1162
|
});
|
|
1163
1163
|
}, "Progress")), Ys = "ProgressIndicator", Xs = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Vs(function(e, t) {
|
|
1164
1164
|
let { __scopeProgress: n, ...r } = e, i = qs(Ys, n);
|
|
1165
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1165
|
+
return /* @__PURE__ */ (0, q.jsx)(Ci.div, {
|
|
1166
1166
|
"data-state": Qs(i.value, i.max),
|
|
1167
1167
|
"data-value": i.value ?? void 0,
|
|
1168
1168
|
"data-max": i.max,
|
|
@@ -1208,7 +1208,7 @@ Vs(rc, "getInvalidValueError");
|
|
|
1208
1208
|
var ic = Object.defineProperty, ac = (e, t) => ic(e, "name", {
|
|
1209
1209
|
value: t,
|
|
1210
1210
|
configurable: !0
|
|
1211
|
-
}), oc = "Radio", [sc, cc] =
|
|
1211
|
+
}), oc = "Radio", [sc, cc] = Di(oc), [lc, uc] = sc(oc);
|
|
1212
1212
|
function dc(e) {
|
|
1213
1213
|
let { __scopeRadio: t, checked: n = !1, children: r, disabled: i, form: a, name: o, onCheck: s, required: c, value: l = "on", internal_do_not_use_render: u } = e, [d, f] = K.useState(null), [p, m] = K.useState(null), [h, g] = K.useState(null), _ = {
|
|
1214
1214
|
checked: n,
|
|
@@ -1235,7 +1235,7 @@ function dc(e) {
|
|
|
1235
1235
|
ac(dc, "RadioProvider");
|
|
1236
1236
|
var fc = "RadioTrigger", pc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function({ __scopeRadio: e, onClick: t, ...n }, r) {
|
|
1237
1237
|
let { checked: i, disabled: a, value: o, setControl: s, onCheck: l, onUserClick: u, isFormControl: d, bubbleInput: f } = uc(fc, e), p = c(r, s);
|
|
1238
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1238
|
+
return /* @__PURE__ */ (0, q.jsx)(Ci.button, {
|
|
1239
1239
|
type: "button",
|
|
1240
1240
|
role: "radio",
|
|
1241
1241
|
"aria-checked": i,
|
|
@@ -1245,16 +1245,16 @@ var fc = "RadioTrigger", pc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(fu
|
|
|
1245
1245
|
value: o,
|
|
1246
1246
|
...n,
|
|
1247
1247
|
ref: p,
|
|
1248
|
-
onClick:
|
|
1248
|
+
onClick: vi(t, (e) => {
|
|
1249
1249
|
let t = e.isPropagationStopped();
|
|
1250
1250
|
i || (u({ hasConsumerStoppedPropagation: t }), l()), f && d && (t || e.stopPropagation());
|
|
1251
1251
|
})
|
|
1252
1252
|
});
|
|
1253
1253
|
}, "RadioTrigger")), mc = "RadioIndicator", hc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function(e, t) {
|
|
1254
1254
|
let { __scopeRadio: n, forceMount: r, ...i } = e, a = uc(mc, n);
|
|
1255
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1255
|
+
return /* @__PURE__ */ (0, q.jsx)(Si, {
|
|
1256
1256
|
present: r || a.checked,
|
|
1257
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1257
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ci.span, {
|
|
1258
1258
|
"data-state": yc(a.checked),
|
|
1259
1259
|
"data-disabled": a.disabled ? "" : void 0,
|
|
1260
1260
|
...i,
|
|
@@ -1262,7 +1262,7 @@ var fc = "RadioTrigger", pc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(fu
|
|
|
1262
1262
|
})
|
|
1263
1263
|
});
|
|
1264
1264
|
}, "RadioIndicator")), gc = "RadioBubbleInput", _c = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function({ __scopeRadio: e, onClick: t, ...n }, r) {
|
|
1265
|
-
let { control: i, checked: a, required: o, disabled: s, name: l, value: u, form: d, bubbleInput: f, setBubbleInput: p, userClick: m } = uc(gc, e), h = c(r, p), g =
|
|
1265
|
+
let { control: i, checked: a, required: o, disabled: s, name: l, value: u, form: d, bubbleInput: f, setBubbleInput: p, userClick: m } = uc(gc, e), h = c(r, p), g = be(i), _ = K.useRef(!1), v = K.useRef(a), y = K.useRef(m), b = K.useRef(null);
|
|
1266
1266
|
K.useEffect(() => {
|
|
1267
1267
|
let e = f;
|
|
1268
1268
|
if (!e) return;
|
|
@@ -1284,7 +1284,7 @@ var fc = "RadioTrigger", pc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(fu
|
|
|
1284
1284
|
m
|
|
1285
1285
|
]);
|
|
1286
1286
|
let x = K.useRef(a);
|
|
1287
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1287
|
+
return /* @__PURE__ */ (0, q.jsx)(Ci.input, {
|
|
1288
1288
|
type: "radio",
|
|
1289
1289
|
"aria-hidden": !0,
|
|
1290
1290
|
defaultChecked: x.current,
|
|
@@ -1296,7 +1296,7 @@ var fc = "RadioTrigger", pc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(fu
|
|
|
1296
1296
|
...n,
|
|
1297
1297
|
tabIndex: -1,
|
|
1298
1298
|
ref: h,
|
|
1299
|
-
onClick:
|
|
1299
|
+
onClick: vi(t, (e) => {
|
|
1300
1300
|
_.current && e.stopPropagation();
|
|
1301
1301
|
}),
|
|
1302
1302
|
style: {
|
|
@@ -1323,8 +1323,8 @@ var bc = [
|
|
|
1323
1323
|
"ArrowDown",
|
|
1324
1324
|
"ArrowLeft",
|
|
1325
1325
|
"ArrowRight"
|
|
1326
|
-
], xc = "RadioGroup", [Sc, Cc] =
|
|
1327
|
-
let { __scopeRadioGroup: n, name: r, form: i, defaultValue: a, value: o, required: s = !1, disabled: l = !1, orientation: u, dir: d, loop: f = !0, onValueChange: p, ...m } = e, h = wc(n), g = Pe(d), [_, v] =
|
|
1326
|
+
], xc = "RadioGroup", [Sc, Cc] = Di(xc, [tr, cc]), wc = tr(), Tc = cc(), [Ec, Dc] = Sc(xc), Oc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function(e, t) {
|
|
1327
|
+
let { __scopeRadioGroup: n, name: r, form: i, defaultValue: a, value: o, required: s = !1, disabled: l = !1, orientation: u, dir: d, loop: f = !0, onValueChange: p, ...m } = e, h = wc(n), g = Pe(d), [_, v] = ji({
|
|
1328
1328
|
prop: o,
|
|
1329
1329
|
defaultProp: a ?? null,
|
|
1330
1330
|
onChange: p,
|
|
@@ -1354,7 +1354,7 @@ var bc = [
|
|
|
1354
1354
|
orientation: u,
|
|
1355
1355
|
dir: g,
|
|
1356
1356
|
loop: f,
|
|
1357
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1357
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ci.div, {
|
|
1358
1358
|
role: "radiogroup",
|
|
1359
1359
|
"aria-required": s,
|
|
1360
1360
|
"aria-orientation": u,
|
|
@@ -1400,10 +1400,10 @@ var Mc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function(e, t) {
|
|
|
1400
1400
|
...a,
|
|
1401
1401
|
...r,
|
|
1402
1402
|
ref: u,
|
|
1403
|
-
onKeyDown:
|
|
1403
|
+
onKeyDown: vi(r.onKeyDown, (e) => {
|
|
1404
1404
|
e.key === "Enter" && e.preventDefault();
|
|
1405
1405
|
}),
|
|
1406
|
-
onFocus:
|
|
1406
|
+
onFocus: vi(r.onFocus, () => {
|
|
1407
1407
|
d.current && l.current?.click();
|
|
1408
1408
|
})
|
|
1409
1409
|
})
|
|
@@ -1437,9 +1437,9 @@ var Mc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ ac(function(e, t) {
|
|
|
1437
1437
|
}, "RadioGroupIndicator")), Ic = Object.defineProperty, Lc = (e, t) => Ic(e, "name", {
|
|
1438
1438
|
value: t,
|
|
1439
1439
|
configurable: !0
|
|
1440
|
-
}), Rc = "Switch", [zc, Bc] =
|
|
1440
|
+
}), Rc = "Switch", [zc, Bc] = Di(Rc), [Vc, Hc] = zc(Rc);
|
|
1441
1441
|
function Uc(e) {
|
|
1442
|
-
let { __scopeSwitch: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] =
|
|
1442
|
+
let { __scopeSwitch: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = ji({
|
|
1443
1443
|
prop: n,
|
|
1444
1444
|
defaultProp: i ?? !1,
|
|
1445
1445
|
onChange: c,
|
|
@@ -1480,7 +1480,7 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1480
1480
|
i,
|
|
1481
1481
|
a,
|
|
1482
1482
|
f
|
|
1483
|
-
]), /* @__PURE__ */ (0, q.jsx)(
|
|
1483
|
+
]), /* @__PURE__ */ (0, q.jsx)(Ci.button, {
|
|
1484
1484
|
type: "button",
|
|
1485
1485
|
role: "switch",
|
|
1486
1486
|
"aria-checked": l,
|
|
@@ -1491,7 +1491,7 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1491
1491
|
value: o,
|
|
1492
1492
|
...n,
|
|
1493
1493
|
ref: g,
|
|
1494
|
-
onClick:
|
|
1494
|
+
onClick: vi(t, (e) => {
|
|
1495
1495
|
let t = e.isPropagationStopped();
|
|
1496
1496
|
p({
|
|
1497
1497
|
requestedChecked: !l,
|
|
@@ -1519,14 +1519,14 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1519
1519
|
});
|
|
1520
1520
|
}, "Switch")), qc = "SwitchThumb", Jc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(function(e, t) {
|
|
1521
1521
|
let { __scopeSwitch: n, ...r } = e, i = Hc(qc, n);
|
|
1522
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1522
|
+
return /* @__PURE__ */ (0, q.jsx)(Ci.span, {
|
|
1523
1523
|
"data-state": Qc(i.checked),
|
|
1524
1524
|
"data-disabled": i.disabled ? "" : void 0,
|
|
1525
1525
|
...r,
|
|
1526
1526
|
ref: t
|
|
1527
1527
|
});
|
|
1528
1528
|
}, "SwitchThumb")), Yc = "SwitchBubbleInput", Xc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(function({ __scopeSwitch: e, onClick: t, ...n }, r) {
|
|
1529
|
-
let { control: i, userClick: a, checked: o, defaultChecked: s, required: l, disabled: u, name: d, value: f, form: p, bubbleInput: m, setBubbleInput: h } = Hc(Yc, e), g = c(r, h), _ =
|
|
1529
|
+
let { control: i, userClick: a, checked: o, defaultChecked: s, required: l, disabled: u, name: d, value: f, form: p, bubbleInput: m, setBubbleInput: h } = Hc(Yc, e), g = c(r, h), _ = be(i), v = K.useRef(!1), y = K.useRef(o), b = K.useRef(a), x = K.useRef(null);
|
|
1530
1530
|
K.useEffect(() => {
|
|
1531
1531
|
let e = m;
|
|
1532
1532
|
if (!e) return;
|
|
@@ -1548,7 +1548,7 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1548
1548
|
a
|
|
1549
1549
|
]);
|
|
1550
1550
|
let S = K.useRef(o);
|
|
1551
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
1551
|
+
return /* @__PURE__ */ (0, q.jsx)(Ci.input, {
|
|
1552
1552
|
type: "checkbox",
|
|
1553
1553
|
"aria-hidden": !0,
|
|
1554
1554
|
defaultChecked: s ?? S.current,
|
|
@@ -1560,7 +1560,7 @@ var Wc = "SwitchTrigger", Gc = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ Lc(f
|
|
|
1560
1560
|
...n,
|
|
1561
1561
|
tabIndex: -1,
|
|
1562
1562
|
ref: g,
|
|
1563
|
-
onClick:
|
|
1563
|
+
onClick: vi(t, (e) => {
|
|
1564
1564
|
v.current && e.stopPropagation();
|
|
1565
1565
|
}),
|
|
1566
1566
|
style: {
|
|
@@ -1590,8 +1590,8 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1590
1590
|
}), tl = {
|
|
1591
1591
|
Automatic: "automatic",
|
|
1592
1592
|
Manual: "manual"
|
|
1593
|
-
}, nl = "Tabs", [rl, il] =
|
|
1594
|
-
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = tl.Automatic, ...l } = e, u = Pe(s), [d, f] =
|
|
1593
|
+
}, nl = "Tabs", [rl, il] = Di(nl, [tr]), al = tr(), [ol, sl] = rl(nl), cl = /* @__PURE__ */ K.forwardRef(/* @__PURE__ */ el(function(e, t) {
|
|
1594
|
+
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = tl.Automatic, ...l } = e, u = Pe(s), [d, f] = ji({
|
|
1595
1595
|
prop: r,
|
|
1596
1596
|
onChange: i,
|
|
1597
1597
|
defaultProp: a ?? "",
|
|
@@ -1599,13 +1599,13 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1599
1599
|
});
|
|
1600
1600
|
return /* @__PURE__ */ (0, q.jsx)(ol, {
|
|
1601
1601
|
scope: n,
|
|
1602
|
-
baseId:
|
|
1602
|
+
baseId: _i(),
|
|
1603
1603
|
value: d,
|
|
1604
1604
|
onValueChange: f,
|
|
1605
1605
|
orientation: o,
|
|
1606
1606
|
dir: u,
|
|
1607
1607
|
activationMode: c,
|
|
1608
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1608
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ci.div, {
|
|
1609
1609
|
dir: u,
|
|
1610
1610
|
"data-orientation": o,
|
|
1611
1611
|
...l,
|
|
@@ -1620,7 +1620,7 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1620
1620
|
orientation: a.orientation,
|
|
1621
1621
|
dir: a.dir,
|
|
1622
1622
|
loop: r,
|
|
1623
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1623
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ci.div, {
|
|
1624
1624
|
role: "tablist",
|
|
1625
1625
|
"aria-orientation": a.orientation,
|
|
1626
1626
|
...i,
|
|
@@ -1634,7 +1634,7 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1634
1634
|
...s,
|
|
1635
1635
|
focusable: !i,
|
|
1636
1636
|
active: u,
|
|
1637
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
1637
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ci.button, {
|
|
1638
1638
|
type: "button",
|
|
1639
1639
|
role: "tab",
|
|
1640
1640
|
"aria-selected": u,
|
|
@@ -1645,13 +1645,13 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1645
1645
|
id: c,
|
|
1646
1646
|
...a,
|
|
1647
1647
|
ref: t,
|
|
1648
|
-
onMouseDown:
|
|
1648
|
+
onMouseDown: vi(e.onMouseDown, (e) => {
|
|
1649
1649
|
!i && e.button === 0 && e.ctrlKey === !1 ? (e.currentTarget.focus(), o.onValueChange(r)) : e.preventDefault();
|
|
1650
1650
|
}),
|
|
1651
|
-
onKeyDown:
|
|
1651
|
+
onKeyDown: vi(e.onKeyDown, (e) => {
|
|
1652
1652
|
i || e.target !== e.currentTarget || [" ", "Enter"].includes(e.key) && o.onValueChange(r);
|
|
1653
1653
|
}),
|
|
1654
|
-
onFocus:
|
|
1654
|
+
onFocus: vi(e.onFocus, () => {
|
|
1655
1655
|
let e = o.activationMode !== tl.Manual;
|
|
1656
1656
|
!u && !i && e && o.onValueChange(r);
|
|
1657
1657
|
})
|
|
@@ -1662,9 +1662,9 @@ var $c = Object.defineProperty, el = (e, t) => $c(e, "name", {
|
|
|
1662
1662
|
return K.useEffect(() => {
|
|
1663
1663
|
let e = requestAnimationFrame(() => d.current = !1);
|
|
1664
1664
|
return () => cancelAnimationFrame(e);
|
|
1665
|
-
}, []), /* @__PURE__ */ (0, q.jsx)(
|
|
1665
|
+
}, []), /* @__PURE__ */ (0, q.jsx)(Si, {
|
|
1666
1666
|
present: i || u,
|
|
1667
|
-
children: ({ present: n }) => /* @__PURE__ */ (0, q.jsx)(
|
|
1667
|
+
children: ({ present: n }) => /* @__PURE__ */ (0, q.jsx)(Ci.div, {
|
|
1668
1668
|
"data-state": u ? "active" : "inactive",
|
|
1669
1669
|
"data-orientation": s.orientation,
|
|
1670
1670
|
role: "tabpanel",
|
|
@@ -1692,7 +1692,7 @@ function gl(e, t) {
|
|
|
1692
1692
|
el(gl, "makeContentId");
|
|
1693
1693
|
//#endregion
|
|
1694
1694
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/utils/keyboard.mjs
|
|
1695
|
-
var _l = /* @__PURE__ */ e(
|
|
1695
|
+
var _l = /* @__PURE__ */ e(Yr(), 1), vl = /* @__PURE__ */ new Set([
|
|
1696
1696
|
"checkbox",
|
|
1697
1697
|
"radio",
|
|
1698
1698
|
"range",
|
|
@@ -4336,18 +4336,18 @@ function Wp(e, t, n = {}) {
|
|
|
4336
4336
|
function Gp(e, t, n, r = {}) {
|
|
4337
4337
|
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, F = e === d ? 0 : e.offsetWidth - e.clientWidth - N, I = e === d ? 0 : e.offsetHeight - e.clientHeight - P, L = p + (f ? 0 : T) + x, R = m - (f ? 0 : E) - S - I, z = h + (f ? 0 : D) + C, B = g - (f ? 0 : O) - w;
|
|
4338
4338
|
Rt() && xt() || u.direction === "ltr" ? B -= F : u.direction === "rtl" && (z += F);
|
|
4339
|
-
let
|
|
4340
|
-
if (
|
|
4341
|
-
else if (
|
|
4342
|
-
else if (
|
|
4343
|
-
else if (
|
|
4339
|
+
let V = k < L || A > R, ee = j < z || M > B;
|
|
4340
|
+
if (V && i === "start") o += k - L;
|
|
4341
|
+
else if (V && i === "center") o += (k + A) / 2 - (L + R) / 2;
|
|
4342
|
+
else if (V && i === "end") o += A - R;
|
|
4343
|
+
else if (V && i === "nearest") {
|
|
4344
4344
|
let e = k - L, t = A - R;
|
|
4345
4345
|
o += Math.abs(e) <= Math.abs(t) ? e : t;
|
|
4346
4346
|
}
|
|
4347
|
-
if (
|
|
4348
|
-
else if (
|
|
4349
|
-
else if (
|
|
4350
|
-
else if (
|
|
4347
|
+
if (ee && a === "start") s += j - z;
|
|
4348
|
+
else if (ee && a === "center") s += (j + M) / 2 - (z + B) / 2;
|
|
4349
|
+
else if (ee && a === "end") s += M - B;
|
|
4350
|
+
else if (ee && a === "nearest") {
|
|
4351
4351
|
let e = j - z, t = M - B;
|
|
4352
4352
|
s += Math.abs(e) <= Math.abs(t) ? e : t;
|
|
4353
4353
|
}
|
|
@@ -6944,7 +6944,7 @@ function Hg(e, t) {
|
|
|
6944
6944
|
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.0/node_modules/jotai/esm/react/utils.mjs
|
|
6945
6945
|
var J = f(), Ug = /* @__PURE__ */ new WeakMap();
|
|
6946
6946
|
function Wg(e, t) {
|
|
6947
|
-
let n =
|
|
6947
|
+
let n = ii(t), r = Gg(n);
|
|
6948
6948
|
for (let [i, ...a] of e) (!r.has(i) || t?.dangerouslyForceHydrate) && (r.add(i), n.set(i, ...a));
|
|
6949
6949
|
}
|
|
6950
6950
|
var Gg = (e) => {
|
|
@@ -6952,27 +6952,32 @@ var Gg = (e) => {
|
|
|
6952
6952
|
return t || (t = /* @__PURE__ */ new WeakSet(), Ug.set(e, t)), t;
|
|
6953
6953
|
};
|
|
6954
6954
|
//#endregion
|
|
6955
|
-
//#region src/
|
|
6955
|
+
//#region src/utils/url.ts
|
|
6956
6956
|
function Kg(e) {
|
|
6957
|
-
|
|
6958
|
-
return t[0] === e ? n = t[1] : (n = $r(Wr, (t) => Ar(t, e), si), t[0] = e, t[1] = n), ni(n);
|
|
6957
|
+
return new URL(e, document.baseURI);
|
|
6959
6958
|
}
|
|
6959
|
+
//#endregion
|
|
6960
|
+
//#region src/core/executions/hooks.ts
|
|
6960
6961
|
function qg(e) {
|
|
6961
6962
|
let t = (0, J.c)(2), n;
|
|
6962
|
-
return t[0] === e ? n = t[1] : (n =
|
|
6963
|
+
return t[0] === e ? n = t[1] : (n = Zr(_r, (t) => Er(t, e), ai), t[0] = e, t[1] = n), ei(n);
|
|
6964
|
+
}
|
|
6965
|
+
function Jg(e) {
|
|
6966
|
+
let t = (0, J.c)(2), n;
|
|
6967
|
+
return t[0] === e ? n = t[1] : (n = Zr(yr, (t) => t(e), ai), t[0] = e, t[1] = n), ei(n);
|
|
6963
6968
|
}
|
|
6964
6969
|
//#endregion
|
|
6965
6970
|
//#region src/utils/traceback.ts
|
|
6966
|
-
var
|
|
6971
|
+
var Yg = (e, t) => {
|
|
6967
6972
|
let [n, ...r] = t.split("."), i = (e.attribs.class || "").split(" ");
|
|
6968
6973
|
return e.tagName === n && r.every((e) => i.includes(e));
|
|
6969
|
-
},
|
|
6970
|
-
function
|
|
6971
|
-
if (e instanceof
|
|
6974
|
+
}, Xg = (e) => e && Yg(e, "span.nb") && e.firstChild instanceof O.Text && e.firstChild.nodeValue?.includes("__marimo__");
|
|
6975
|
+
function Zg(e) {
|
|
6976
|
+
if (e instanceof O.Element && e.firstChild instanceof O.Text && Yg(e, "span.nb")) {
|
|
6972
6977
|
let t = e.next;
|
|
6973
|
-
if (t && t instanceof
|
|
6978
|
+
if (t && t instanceof O.Text) {
|
|
6974
6979
|
let n = t.next;
|
|
6975
|
-
if (n && n instanceof
|
|
6980
|
+
if (n && n instanceof O.Element && n.firstChild instanceof O.Text && Yg(n, "span.m")) {
|
|
6976
6981
|
let t = Number.parseInt(n.firstChild.nodeValue || "0", 10);
|
|
6977
6982
|
if (e.firstChild.nodeValue?.includes("__marimo__")) {
|
|
6978
6983
|
let n = /__marimo__cell_(\w+)_/.exec(e.firstChild.nodeValue)?.[1];
|
|
@@ -6994,82 +6999,82 @@ function Xg(e) {
|
|
|
6994
6999
|
}
|
|
6995
7000
|
return null;
|
|
6996
7001
|
}
|
|
6997
|
-
function
|
|
7002
|
+
function Qg(e) {
|
|
6998
7003
|
let t = [];
|
|
6999
|
-
return
|
|
7000
|
-
let n =
|
|
7004
|
+
return w(e, { replace: (e) => {
|
|
7005
|
+
let n = Zg(e);
|
|
7001
7006
|
if (n) return t.push(n), "dummy";
|
|
7002
7007
|
} }), t;
|
|
7003
7008
|
}
|
|
7004
7009
|
//#endregion
|
|
7005
7010
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
|
|
7006
|
-
var
|
|
7007
|
-
function
|
|
7008
|
-
return
|
|
7011
|
+
var $g = {};
|
|
7012
|
+
function e_() {
|
|
7013
|
+
return $g;
|
|
7009
7014
|
}
|
|
7010
7015
|
//#endregion
|
|
7011
7016
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
|
|
7012
|
-
function
|
|
7013
|
-
let n =
|
|
7017
|
+
function t_(e, t) {
|
|
7018
|
+
let n = e_(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = sa(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
7014
7019
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
7015
7020
|
}
|
|
7016
7021
|
//#endregion
|
|
7017
7022
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
|
|
7018
|
-
function
|
|
7019
|
-
return
|
|
7023
|
+
function n_(e, t) {
|
|
7024
|
+
return t_(e, {
|
|
7020
7025
|
...t,
|
|
7021
7026
|
weekStartsOn: 1
|
|
7022
7027
|
});
|
|
7023
7028
|
}
|
|
7024
7029
|
//#endregion
|
|
7025
7030
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
|
|
7026
|
-
function
|
|
7027
|
-
let n =
|
|
7031
|
+
function r_(e, t) {
|
|
7032
|
+
let n = sa(e, t?.in), r = n.getFullYear(), i = ia(n, 0);
|
|
7028
7033
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
7029
|
-
let a =
|
|
7034
|
+
let a = n_(i), o = ia(n, 0);
|
|
7030
7035
|
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
7031
|
-
let s =
|
|
7036
|
+
let s = n_(o);
|
|
7032
7037
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
7033
7038
|
}
|
|
7034
7039
|
//#endregion
|
|
7035
7040
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
7036
|
-
function
|
|
7037
|
-
let t =
|
|
7041
|
+
function i_(e) {
|
|
7042
|
+
let t = sa(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
7038
7043
|
return n.setUTCFullYear(t.getFullYear()), +e - n;
|
|
7039
7044
|
}
|
|
7040
7045
|
//#endregion
|
|
7041
7046
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
|
|
7042
|
-
function
|
|
7047
|
+
function a_(e, ...t) {
|
|
7043
7048
|
let n = ia.bind(null, e || t.find((e) => typeof e == "object"));
|
|
7044
7049
|
return t.map(n);
|
|
7045
7050
|
}
|
|
7046
7051
|
//#endregion
|
|
7047
7052
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
|
|
7048
|
-
function
|
|
7049
|
-
let n =
|
|
7053
|
+
function o_(e, t) {
|
|
7054
|
+
let n = sa(e, t?.in);
|
|
7050
7055
|
return n.setHours(0, 0, 0, 0), n;
|
|
7051
7056
|
}
|
|
7052
7057
|
//#endregion
|
|
7053
7058
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
|
|
7054
|
-
function
|
|
7055
|
-
let [r, i] =
|
|
7059
|
+
function s_(e, t, n) {
|
|
7060
|
+
let [r, i] = a_(n?.in, e, t), a = o_(r), o = o_(i), s = +a - i_(a), c = +o - i_(o);
|
|
7056
7061
|
return Math.round((s - c) / aa);
|
|
7057
7062
|
}
|
|
7058
7063
|
//#endregion
|
|
7059
7064
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
|
|
7060
|
-
function
|
|
7061
|
-
let n =
|
|
7062
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
7065
|
+
function c_(e, t) {
|
|
7066
|
+
let n = r_(e, t), r = ia(t?.in || e, 0);
|
|
7067
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), n_(r);
|
|
7063
7068
|
}
|
|
7064
7069
|
//#endregion
|
|
7065
7070
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
|
|
7066
|
-
function
|
|
7067
|
-
let n =
|
|
7071
|
+
function l_(e, t) {
|
|
7072
|
+
let n = sa(e, t?.in);
|
|
7068
7073
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
7069
7074
|
}
|
|
7070
7075
|
//#endregion
|
|
7071
7076
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
7072
|
-
var
|
|
7077
|
+
var u_ = {
|
|
7073
7078
|
lessThanXSeconds: {
|
|
7074
7079
|
one: "less than a second",
|
|
7075
7080
|
other: "less than {{count}} seconds"
|
|
@@ -7131,20 +7136,20 @@ var l_ = {
|
|
|
7131
7136
|
one: "almost 1 year",
|
|
7132
7137
|
other: "almost {{count}} years"
|
|
7133
7138
|
}
|
|
7134
|
-
},
|
|
7135
|
-
let r, i =
|
|
7139
|
+
}, d_ = (e, t, n) => {
|
|
7140
|
+
let r, i = u_[e];
|
|
7136
7141
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
7137
7142
|
};
|
|
7138
7143
|
//#endregion
|
|
7139
7144
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
7140
|
-
function
|
|
7145
|
+
function f_(e) {
|
|
7141
7146
|
return (t = {}) => {
|
|
7142
7147
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
7143
7148
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
7144
7149
|
};
|
|
7145
7150
|
}
|
|
7146
|
-
var
|
|
7147
|
-
date:
|
|
7151
|
+
var p_ = {
|
|
7152
|
+
date: f_({
|
|
7148
7153
|
formats: {
|
|
7149
7154
|
full: "EEEE, MMMM do, y",
|
|
7150
7155
|
long: "MMMM do, y",
|
|
@@ -7153,7 +7158,7 @@ var f_ = {
|
|
|
7153
7158
|
},
|
|
7154
7159
|
defaultWidth: "full"
|
|
7155
7160
|
}),
|
|
7156
|
-
time:
|
|
7161
|
+
time: f_({
|
|
7157
7162
|
formats: {
|
|
7158
7163
|
full: "h:mm:ss a zzzz",
|
|
7159
7164
|
long: "h:mm:ss a z",
|
|
@@ -7162,7 +7167,7 @@ var f_ = {
|
|
|
7162
7167
|
},
|
|
7163
7168
|
defaultWidth: "full"
|
|
7164
7169
|
}),
|
|
7165
|
-
dateTime:
|
|
7170
|
+
dateTime: f_({
|
|
7166
7171
|
formats: {
|
|
7167
7172
|
full: "{{date}} 'at' {{time}}",
|
|
7168
7173
|
long: "{{date}} 'at' {{time}}",
|
|
@@ -7171,17 +7176,17 @@ var f_ = {
|
|
|
7171
7176
|
},
|
|
7172
7177
|
defaultWidth: "full"
|
|
7173
7178
|
})
|
|
7174
|
-
},
|
|
7179
|
+
}, m_ = {
|
|
7175
7180
|
lastWeek: "'last' eeee 'at' p",
|
|
7176
7181
|
yesterday: "'yesterday at' p",
|
|
7177
7182
|
today: "'today at' p",
|
|
7178
7183
|
tomorrow: "'tomorrow at' p",
|
|
7179
7184
|
nextWeek: "eeee 'at' p",
|
|
7180
7185
|
other: "P"
|
|
7181
|
-
},
|
|
7186
|
+
}, h_ = (e, t, n, r) => m_[e];
|
|
7182
7187
|
//#endregion
|
|
7183
7188
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
7184
|
-
function
|
|
7189
|
+
function g_(e) {
|
|
7185
7190
|
return (t, n) => {
|
|
7186
7191
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
7187
7192
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -7195,7 +7200,7 @@ function h_(e) {
|
|
|
7195
7200
|
return i[a];
|
|
7196
7201
|
};
|
|
7197
7202
|
}
|
|
7198
|
-
var
|
|
7203
|
+
var __ = {
|
|
7199
7204
|
ordinalNumber: (e, t) => {
|
|
7200
7205
|
let n = Number(e), r = n % 100;
|
|
7201
7206
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
@@ -7205,7 +7210,7 @@ var g_ = {
|
|
|
7205
7210
|
}
|
|
7206
7211
|
return n + "th";
|
|
7207
7212
|
},
|
|
7208
|
-
era:
|
|
7213
|
+
era: g_({
|
|
7209
7214
|
values: {
|
|
7210
7215
|
narrow: ["B", "A"],
|
|
7211
7216
|
abbreviated: ["BC", "AD"],
|
|
@@ -7213,7 +7218,7 @@ var g_ = {
|
|
|
7213
7218
|
},
|
|
7214
7219
|
defaultWidth: "wide"
|
|
7215
7220
|
}),
|
|
7216
|
-
quarter:
|
|
7221
|
+
quarter: g_({
|
|
7217
7222
|
values: {
|
|
7218
7223
|
narrow: [
|
|
7219
7224
|
"1",
|
|
@@ -7237,7 +7242,7 @@ var g_ = {
|
|
|
7237
7242
|
defaultWidth: "wide",
|
|
7238
7243
|
argumentCallback: (e) => e - 1
|
|
7239
7244
|
}),
|
|
7240
|
-
month:
|
|
7245
|
+
month: g_({
|
|
7241
7246
|
values: {
|
|
7242
7247
|
narrow: [
|
|
7243
7248
|
"J",
|
|
@@ -7284,7 +7289,7 @@ var g_ = {
|
|
|
7284
7289
|
},
|
|
7285
7290
|
defaultWidth: "wide"
|
|
7286
7291
|
}),
|
|
7287
|
-
day:
|
|
7292
|
+
day: g_({
|
|
7288
7293
|
values: {
|
|
7289
7294
|
narrow: [
|
|
7290
7295
|
"S",
|
|
@@ -7325,7 +7330,7 @@ var g_ = {
|
|
|
7325
7330
|
},
|
|
7326
7331
|
defaultWidth: "wide"
|
|
7327
7332
|
}),
|
|
7328
|
-
dayPeriod:
|
|
7333
|
+
dayPeriod: g_({
|
|
7329
7334
|
values: {
|
|
7330
7335
|
narrow: {
|
|
7331
7336
|
am: "a",
|
|
@@ -7396,11 +7401,11 @@ var g_ = {
|
|
|
7396
7401
|
};
|
|
7397
7402
|
//#endregion
|
|
7398
7403
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
7399
|
-
function
|
|
7404
|
+
function v_(e) {
|
|
7400
7405
|
return (t, n = {}) => {
|
|
7401
7406
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
7402
7407
|
if (!a) return null;
|
|
7403
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
7408
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? b_(s, (e) => e.test(o)) : y_(s, (e) => e.test(o)), l;
|
|
7404
7409
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
7405
7410
|
let u = t.slice(o.length);
|
|
7406
7411
|
return {
|
|
@@ -7409,15 +7414,15 @@ function __(e) {
|
|
|
7409
7414
|
};
|
|
7410
7415
|
};
|
|
7411
7416
|
}
|
|
7412
|
-
function
|
|
7417
|
+
function y_(e, t) {
|
|
7413
7418
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
7414
7419
|
}
|
|
7415
|
-
function
|
|
7420
|
+
function b_(e, t) {
|
|
7416
7421
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
7417
7422
|
}
|
|
7418
7423
|
//#endregion
|
|
7419
7424
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
7420
|
-
function
|
|
7425
|
+
function x_(e) {
|
|
7421
7426
|
return (t, n = {}) => {
|
|
7422
7427
|
let r = t.match(e.matchPattern);
|
|
7423
7428
|
if (!r) return null;
|
|
@@ -7434,19 +7439,19 @@ function b_(e) {
|
|
|
7434
7439
|
}
|
|
7435
7440
|
//#endregion
|
|
7436
7441
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
|
|
7437
|
-
var
|
|
7442
|
+
var S_ = {
|
|
7438
7443
|
code: "en-US",
|
|
7439
|
-
formatDistance:
|
|
7440
|
-
formatLong:
|
|
7441
|
-
formatRelative:
|
|
7442
|
-
localize:
|
|
7444
|
+
formatDistance: d_,
|
|
7445
|
+
formatLong: p_,
|
|
7446
|
+
formatRelative: h_,
|
|
7447
|
+
localize: __,
|
|
7443
7448
|
match: {
|
|
7444
|
-
ordinalNumber:
|
|
7449
|
+
ordinalNumber: x_({
|
|
7445
7450
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
7446
7451
|
parsePattern: /\d+/i,
|
|
7447
7452
|
valueCallback: (e) => parseInt(e, 10)
|
|
7448
7453
|
}),
|
|
7449
|
-
era:
|
|
7454
|
+
era: v_({
|
|
7450
7455
|
matchPatterns: {
|
|
7451
7456
|
narrow: /^(b|a)/i,
|
|
7452
7457
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
@@ -7456,7 +7461,7 @@ var x_ = {
|
|
|
7456
7461
|
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
7457
7462
|
defaultParseWidth: "any"
|
|
7458
7463
|
}),
|
|
7459
|
-
quarter:
|
|
7464
|
+
quarter: v_({
|
|
7460
7465
|
matchPatterns: {
|
|
7461
7466
|
narrow: /^[1234]/i,
|
|
7462
7467
|
abbreviated: /^q[1234]/i,
|
|
@@ -7472,7 +7477,7 @@ var x_ = {
|
|
|
7472
7477
|
defaultParseWidth: "any",
|
|
7473
7478
|
valueCallback: (e) => e + 1
|
|
7474
7479
|
}),
|
|
7475
|
-
month:
|
|
7480
|
+
month: v_({
|
|
7476
7481
|
matchPatterns: {
|
|
7477
7482
|
narrow: /^[jfmasond]/i,
|
|
7478
7483
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
@@ -7511,7 +7516,7 @@ var x_ = {
|
|
|
7511
7516
|
},
|
|
7512
7517
|
defaultParseWidth: "any"
|
|
7513
7518
|
}),
|
|
7514
|
-
day:
|
|
7519
|
+
day: v_({
|
|
7515
7520
|
matchPatterns: {
|
|
7516
7521
|
narrow: /^[smtwf]/i,
|
|
7517
7522
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
@@ -7541,7 +7546,7 @@ var x_ = {
|
|
|
7541
7546
|
},
|
|
7542
7547
|
defaultParseWidth: "any"
|
|
7543
7548
|
}),
|
|
7544
|
-
dayPeriod:
|
|
7549
|
+
dayPeriod: v_({
|
|
7545
7550
|
matchPatterns: {
|
|
7546
7551
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
7547
7552
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
@@ -7567,56 +7572,56 @@ var x_ = {
|
|
|
7567
7572
|
};
|
|
7568
7573
|
//#endregion
|
|
7569
7574
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
|
|
7570
|
-
function
|
|
7571
|
-
let n =
|
|
7572
|
-
return
|
|
7575
|
+
function C_(e, t) {
|
|
7576
|
+
let n = sa(e, t?.in);
|
|
7577
|
+
return s_(n, l_(n)) + 1;
|
|
7573
7578
|
}
|
|
7574
7579
|
//#endregion
|
|
7575
7580
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
|
|
7576
|
-
function
|
|
7577
|
-
let n =
|
|
7578
|
-
return Math.round(r /
|
|
7581
|
+
function w_(e, t) {
|
|
7582
|
+
let n = sa(e, t?.in), r = +n_(n) - c_(n);
|
|
7583
|
+
return Math.round(r / na) + 1;
|
|
7579
7584
|
}
|
|
7580
7585
|
//#endregion
|
|
7581
7586
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
|
|
7582
|
-
function
|
|
7583
|
-
let n =
|
|
7587
|
+
function T_(e, t) {
|
|
7588
|
+
let n = sa(e, t?.in), r = n.getFullYear(), i = e_(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = ia(t?.in || e, 0);
|
|
7584
7589
|
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
7585
|
-
let s =
|
|
7590
|
+
let s = t_(o, t), c = ia(t?.in || e, 0);
|
|
7586
7591
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
7587
|
-
let l =
|
|
7592
|
+
let l = t_(c, t);
|
|
7588
7593
|
return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
|
|
7589
7594
|
}
|
|
7590
7595
|
//#endregion
|
|
7591
7596
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
|
|
7592
|
-
function
|
|
7593
|
-
let n =
|
|
7594
|
-
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0),
|
|
7597
|
+
function E_(e, t) {
|
|
7598
|
+
let n = e_(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = T_(e, t), a = ia(t?.in || e, 0);
|
|
7599
|
+
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), t_(a, t);
|
|
7595
7600
|
}
|
|
7596
7601
|
//#endregion
|
|
7597
7602
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
|
|
7598
|
-
function
|
|
7599
|
-
let n =
|
|
7600
|
-
return Math.round(r /
|
|
7603
|
+
function D_(e, t) {
|
|
7604
|
+
let n = sa(e, t?.in), r = +t_(n, t) - E_(n, t);
|
|
7605
|
+
return Math.round(r / na) + 1;
|
|
7601
7606
|
}
|
|
7602
7607
|
//#endregion
|
|
7603
7608
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
|
|
7604
|
-
function
|
|
7609
|
+
function O_(e, t) {
|
|
7605
7610
|
return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
|
|
7606
7611
|
}
|
|
7607
7612
|
//#endregion
|
|
7608
7613
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
|
|
7609
|
-
var
|
|
7614
|
+
var k_ = {
|
|
7610
7615
|
y(e, t) {
|
|
7611
7616
|
let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
7612
|
-
return
|
|
7617
|
+
return O_(t === "yy" ? r % 100 : r, t.length);
|
|
7613
7618
|
},
|
|
7614
7619
|
M(e, t) {
|
|
7615
7620
|
let n = e.getMonth();
|
|
7616
|
-
return t === "M" ? String(n + 1) :
|
|
7621
|
+
return t === "M" ? String(n + 1) : O_(n + 1, 2);
|
|
7617
7622
|
},
|
|
7618
7623
|
d(e, t) {
|
|
7619
|
-
return
|
|
7624
|
+
return O_(e.getDate(), t.length);
|
|
7620
7625
|
},
|
|
7621
7626
|
a(e, t) {
|
|
7622
7627
|
let n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
@@ -7629,22 +7634,22 @@ var O_ = {
|
|
|
7629
7634
|
}
|
|
7630
7635
|
},
|
|
7631
7636
|
h(e, t) {
|
|
7632
|
-
return
|
|
7637
|
+
return O_(e.getHours() % 12 || 12, t.length);
|
|
7633
7638
|
},
|
|
7634
7639
|
H(e, t) {
|
|
7635
|
-
return
|
|
7640
|
+
return O_(e.getHours(), t.length);
|
|
7636
7641
|
},
|
|
7637
7642
|
m(e, t) {
|
|
7638
|
-
return
|
|
7643
|
+
return O_(e.getMinutes(), t.length);
|
|
7639
7644
|
},
|
|
7640
7645
|
s(e, t) {
|
|
7641
|
-
return
|
|
7646
|
+
return O_(e.getSeconds(), t.length);
|
|
7642
7647
|
},
|
|
7643
7648
|
S(e, t) {
|
|
7644
7649
|
let n = t.length, r = e.getMilliseconds();
|
|
7645
|
-
return
|
|
7650
|
+
return O_(Math.trunc(r * 10 ** (n - 3)), t.length);
|
|
7646
7651
|
}
|
|
7647
|
-
},
|
|
7652
|
+
}, A_ = {
|
|
7648
7653
|
am: "am",
|
|
7649
7654
|
pm: "pm",
|
|
7650
7655
|
midnight: "midnight",
|
|
@@ -7653,7 +7658,7 @@ var O_ = {
|
|
|
7653
7658
|
afternoon: "afternoon",
|
|
7654
7659
|
evening: "evening",
|
|
7655
7660
|
night: "night"
|
|
7656
|
-
},
|
|
7661
|
+
}, j_ = {
|
|
7657
7662
|
G: function(e, t, n) {
|
|
7658
7663
|
let r = +(e.getFullYear() > 0);
|
|
7659
7664
|
switch (t) {
|
|
@@ -7669,23 +7674,23 @@ var O_ = {
|
|
|
7669
7674
|
let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
7670
7675
|
return n.ordinalNumber(r, { unit: "year" });
|
|
7671
7676
|
}
|
|
7672
|
-
return
|
|
7677
|
+
return k_.y(e, t);
|
|
7673
7678
|
},
|
|
7674
7679
|
Y: function(e, t, n, r) {
|
|
7675
|
-
let i =
|
|
7676
|
-
return t === "YY" ?
|
|
7680
|
+
let i = T_(e, r), a = i > 0 ? i : 1 - i;
|
|
7681
|
+
return t === "YY" ? O_(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : O_(a, t.length);
|
|
7677
7682
|
},
|
|
7678
7683
|
R: function(e, t) {
|
|
7679
|
-
return
|
|
7684
|
+
return O_(r_(e), t.length);
|
|
7680
7685
|
},
|
|
7681
7686
|
u: function(e, t) {
|
|
7682
|
-
return
|
|
7687
|
+
return O_(e.getFullYear(), t.length);
|
|
7683
7688
|
},
|
|
7684
7689
|
Q: function(e, t, n) {
|
|
7685
7690
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
7686
7691
|
switch (t) {
|
|
7687
7692
|
case "Q": return String(r);
|
|
7688
|
-
case "QQ": return
|
|
7693
|
+
case "QQ": return O_(r, 2);
|
|
7689
7694
|
case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
7690
7695
|
case "QQQ": return n.quarter(r, {
|
|
7691
7696
|
width: "abbreviated",
|
|
@@ -7705,7 +7710,7 @@ var O_ = {
|
|
|
7705
7710
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
7706
7711
|
switch (t) {
|
|
7707
7712
|
case "q": return String(r);
|
|
7708
|
-
case "qq": return
|
|
7713
|
+
case "qq": return O_(r, 2);
|
|
7709
7714
|
case "qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
7710
7715
|
case "qqq": return n.quarter(r, {
|
|
7711
7716
|
width: "abbreviated",
|
|
@@ -7725,7 +7730,7 @@ var O_ = {
|
|
|
7725
7730
|
let r = e.getMonth();
|
|
7726
7731
|
switch (t) {
|
|
7727
7732
|
case "M":
|
|
7728
|
-
case "MM": return
|
|
7733
|
+
case "MM": return k_.M(e, t);
|
|
7729
7734
|
case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
7730
7735
|
case "MMM": return n.month(r, {
|
|
7731
7736
|
width: "abbreviated",
|
|
@@ -7745,7 +7750,7 @@ var O_ = {
|
|
|
7745
7750
|
let r = e.getMonth();
|
|
7746
7751
|
switch (t) {
|
|
7747
7752
|
case "L": return String(r + 1);
|
|
7748
|
-
case "LL": return
|
|
7753
|
+
case "LL": return O_(r + 1, 2);
|
|
7749
7754
|
case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
7750
7755
|
case "LLL": return n.month(r, {
|
|
7751
7756
|
width: "abbreviated",
|
|
@@ -7762,19 +7767,19 @@ var O_ = {
|
|
|
7762
7767
|
}
|
|
7763
7768
|
},
|
|
7764
7769
|
w: function(e, t, n, r) {
|
|
7765
|
-
let i =
|
|
7766
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
7770
|
+
let i = D_(e, r);
|
|
7771
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : O_(i, t.length);
|
|
7767
7772
|
},
|
|
7768
7773
|
I: function(e, t, n) {
|
|
7769
|
-
let r =
|
|
7770
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
7774
|
+
let r = w_(e);
|
|
7775
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : O_(r, t.length);
|
|
7771
7776
|
},
|
|
7772
7777
|
d: function(e, t, n) {
|
|
7773
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
7778
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : k_.d(e, t);
|
|
7774
7779
|
},
|
|
7775
7780
|
D: function(e, t, n) {
|
|
7776
|
-
let r =
|
|
7777
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
7781
|
+
let r = C_(e);
|
|
7782
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : O_(r, t.length);
|
|
7778
7783
|
},
|
|
7779
7784
|
E: function(e, t, n) {
|
|
7780
7785
|
let r = e.getDay();
|
|
@@ -7803,7 +7808,7 @@ var O_ = {
|
|
|
7803
7808
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
7804
7809
|
switch (t) {
|
|
7805
7810
|
case "e": return String(a);
|
|
7806
|
-
case "ee": return
|
|
7811
|
+
case "ee": return O_(a, 2);
|
|
7807
7812
|
case "eo": return n.ordinalNumber(a, { unit: "day" });
|
|
7808
7813
|
case "eee": return n.day(i, {
|
|
7809
7814
|
width: "abbreviated",
|
|
@@ -7827,7 +7832,7 @@ var O_ = {
|
|
|
7827
7832
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
7828
7833
|
switch (t) {
|
|
7829
7834
|
case "c": return String(a);
|
|
7830
|
-
case "cc": return
|
|
7835
|
+
case "cc": return O_(a, t.length);
|
|
7831
7836
|
case "co": return n.ordinalNumber(a, { unit: "day" });
|
|
7832
7837
|
case "ccc": return n.day(i, {
|
|
7833
7838
|
width: "abbreviated",
|
|
@@ -7851,7 +7856,7 @@ var O_ = {
|
|
|
7851
7856
|
let r = e.getDay(), i = r === 0 ? 7 : r;
|
|
7852
7857
|
switch (t) {
|
|
7853
7858
|
case "i": return String(i);
|
|
7854
|
-
case "ii": return
|
|
7859
|
+
case "ii": return O_(i, t.length);
|
|
7855
7860
|
case "io": return n.ordinalNumber(i, { unit: "day" });
|
|
7856
7861
|
case "iii": return n.day(r, {
|
|
7857
7862
|
width: "abbreviated",
|
|
@@ -7895,7 +7900,7 @@ var O_ = {
|
|
|
7895
7900
|
},
|
|
7896
7901
|
b: function(e, t, n) {
|
|
7897
7902
|
let r = e.getHours(), i;
|
|
7898
|
-
switch (i = r === 12 ?
|
|
7903
|
+
switch (i = r === 12 ? A_.noon : r === 0 ? A_.midnight : r / 12 >= 1 ? "pm" : "am", t) {
|
|
7899
7904
|
case "b":
|
|
7900
7905
|
case "bb": return n.dayPeriod(i, {
|
|
7901
7906
|
width: "abbreviated",
|
|
@@ -7917,7 +7922,7 @@ var O_ = {
|
|
|
7917
7922
|
},
|
|
7918
7923
|
B: function(e, t, n) {
|
|
7919
7924
|
let r = e.getHours(), i;
|
|
7920
|
-
switch (i = r >= 17 ?
|
|
7925
|
+
switch (i = r >= 17 ? A_.evening : r >= 12 ? A_.afternoon : r >= 4 ? A_.morning : A_.night, t) {
|
|
7921
7926
|
case "B":
|
|
7922
7927
|
case "BB":
|
|
7923
7928
|
case "BBB": return n.dayPeriod(i, {
|
|
@@ -7939,45 +7944,45 @@ var O_ = {
|
|
|
7939
7944
|
let t = e.getHours() % 12;
|
|
7940
7945
|
return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
|
|
7941
7946
|
}
|
|
7942
|
-
return
|
|
7947
|
+
return k_.h(e, t);
|
|
7943
7948
|
},
|
|
7944
7949
|
H: function(e, t, n) {
|
|
7945
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
7950
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : k_.H(e, t);
|
|
7946
7951
|
},
|
|
7947
7952
|
K: function(e, t, n) {
|
|
7948
7953
|
let r = e.getHours() % 12;
|
|
7949
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
7954
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : O_(r, t.length);
|
|
7950
7955
|
},
|
|
7951
7956
|
k: function(e, t, n) {
|
|
7952
7957
|
let r = e.getHours();
|
|
7953
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
7958
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : O_(r, t.length);
|
|
7954
7959
|
},
|
|
7955
7960
|
m: function(e, t, n) {
|
|
7956
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
7961
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : k_.m(e, t);
|
|
7957
7962
|
},
|
|
7958
7963
|
s: function(e, t, n) {
|
|
7959
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
7964
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : k_.s(e, t);
|
|
7960
7965
|
},
|
|
7961
7966
|
S: function(e, t) {
|
|
7962
|
-
return
|
|
7967
|
+
return k_.S(e, t);
|
|
7963
7968
|
},
|
|
7964
7969
|
X: function(e, t, n) {
|
|
7965
7970
|
let r = e.getTimezoneOffset();
|
|
7966
7971
|
if (r === 0) return "Z";
|
|
7967
7972
|
switch (t) {
|
|
7968
|
-
case "X": return
|
|
7973
|
+
case "X": return N_(r);
|
|
7969
7974
|
case "XXXX":
|
|
7970
|
-
case "XX": return
|
|
7971
|
-
default: return
|
|
7975
|
+
case "XX": return P_(r);
|
|
7976
|
+
default: return P_(r, ":");
|
|
7972
7977
|
}
|
|
7973
7978
|
},
|
|
7974
7979
|
x: function(e, t, n) {
|
|
7975
7980
|
let r = e.getTimezoneOffset();
|
|
7976
7981
|
switch (t) {
|
|
7977
|
-
case "x": return
|
|
7982
|
+
case "x": return N_(r);
|
|
7978
7983
|
case "xxxx":
|
|
7979
|
-
case "xx": return
|
|
7980
|
-
default: return
|
|
7984
|
+
case "xx": return P_(r);
|
|
7985
|
+
default: return P_(r, ":");
|
|
7981
7986
|
}
|
|
7982
7987
|
},
|
|
7983
7988
|
O: function(e, t, n) {
|
|
@@ -7985,8 +7990,8 @@ var O_ = {
|
|
|
7985
7990
|
switch (t) {
|
|
7986
7991
|
case "O":
|
|
7987
7992
|
case "OO":
|
|
7988
|
-
case "OOO": return "GMT" +
|
|
7989
|
-
default: return "GMT" +
|
|
7993
|
+
case "OOO": return "GMT" + M_(r, ":");
|
|
7994
|
+
default: return "GMT" + P_(r, ":");
|
|
7990
7995
|
}
|
|
7991
7996
|
},
|
|
7992
7997
|
z: function(e, t, n) {
|
|
@@ -7994,49 +7999,49 @@ var O_ = {
|
|
|
7994
7999
|
switch (t) {
|
|
7995
8000
|
case "z":
|
|
7996
8001
|
case "zz":
|
|
7997
|
-
case "zzz": return "GMT" +
|
|
7998
|
-
default: return "GMT" +
|
|
8002
|
+
case "zzz": return "GMT" + M_(r, ":");
|
|
8003
|
+
default: return "GMT" + P_(r, ":");
|
|
7999
8004
|
}
|
|
8000
8005
|
},
|
|
8001
8006
|
t: function(e, t, n) {
|
|
8002
|
-
return
|
|
8007
|
+
return O_(Math.trunc(e / 1e3), t.length);
|
|
8003
8008
|
},
|
|
8004
8009
|
T: function(e, t, n) {
|
|
8005
|
-
return
|
|
8010
|
+
return O_(+e, t.length);
|
|
8006
8011
|
}
|
|
8007
8012
|
};
|
|
8008
|
-
function
|
|
8013
|
+
function M_(e, t = "") {
|
|
8009
8014
|
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
|
|
8010
|
-
return a === 0 ? n + String(i) : n + String(i) + t +
|
|
8015
|
+
return a === 0 ? n + String(i) : n + String(i) + t + O_(a, 2);
|
|
8011
8016
|
}
|
|
8012
|
-
function
|
|
8013
|
-
return e % 60 == 0 ? (e > 0 ? "-" : "+") +
|
|
8017
|
+
function N_(e, t) {
|
|
8018
|
+
return e % 60 == 0 ? (e > 0 ? "-" : "+") + O_(Math.abs(e) / 60, 2) : P_(e, t);
|
|
8014
8019
|
}
|
|
8015
|
-
function
|
|
8016
|
-
let n = e > 0 ? "-" : "+", r = Math.abs(e), i =
|
|
8020
|
+
function P_(e, t = "") {
|
|
8021
|
+
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = O_(Math.trunc(r / 60), 2), a = O_(r % 60, 2);
|
|
8017
8022
|
return n + i + t + a;
|
|
8018
8023
|
}
|
|
8019
8024
|
//#endregion
|
|
8020
8025
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
|
|
8021
|
-
var
|
|
8026
|
+
var F_ = (e, t) => {
|
|
8022
8027
|
switch (e) {
|
|
8023
8028
|
case "P": return t.date({ width: "short" });
|
|
8024
8029
|
case "PP": return t.date({ width: "medium" });
|
|
8025
8030
|
case "PPP": return t.date({ width: "long" });
|
|
8026
8031
|
default: return t.date({ width: "full" });
|
|
8027
8032
|
}
|
|
8028
|
-
},
|
|
8033
|
+
}, I_ = (e, t) => {
|
|
8029
8034
|
switch (e) {
|
|
8030
8035
|
case "p": return t.time({ width: "short" });
|
|
8031
8036
|
case "pp": return t.time({ width: "medium" });
|
|
8032
8037
|
case "ppp": return t.time({ width: "long" });
|
|
8033
8038
|
default: return t.time({ width: "full" });
|
|
8034
8039
|
}
|
|
8035
|
-
},
|
|
8036
|
-
p:
|
|
8040
|
+
}, L_ = {
|
|
8041
|
+
p: I_,
|
|
8037
8042
|
P: (e, t) => {
|
|
8038
8043
|
let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
8039
|
-
if (!i) return
|
|
8044
|
+
if (!i) return F_(e, t);
|
|
8040
8045
|
let a;
|
|
8041
8046
|
switch (r) {
|
|
8042
8047
|
case "P":
|
|
@@ -8050,42 +8055,42 @@ var P_ = (e, t) => {
|
|
|
8050
8055
|
break;
|
|
8051
8056
|
default: a = t.dateTime({ width: "full" });
|
|
8052
8057
|
}
|
|
8053
|
-
return a.replace("{{date}}",
|
|
8058
|
+
return a.replace("{{date}}", F_(r, t)).replace("{{time}}", I_(i, t));
|
|
8054
8059
|
}
|
|
8055
|
-
},
|
|
8060
|
+
}, R_ = /^D+$/, z_ = /^Y+$/, B_ = [
|
|
8056
8061
|
"D",
|
|
8057
8062
|
"DD",
|
|
8058
8063
|
"YY",
|
|
8059
8064
|
"YYYY"
|
|
8060
8065
|
];
|
|
8061
|
-
function B_(e) {
|
|
8062
|
-
return L_.test(e);
|
|
8063
|
-
}
|
|
8064
8066
|
function V_(e) {
|
|
8065
8067
|
return R_.test(e);
|
|
8066
8068
|
}
|
|
8067
|
-
function H_(e
|
|
8068
|
-
|
|
8069
|
-
if (console.warn(r), z_.includes(e)) throw RangeError(r);
|
|
8069
|
+
function H_(e) {
|
|
8070
|
+
return z_.test(e);
|
|
8070
8071
|
}
|
|
8071
8072
|
function U_(e, t, n) {
|
|
8073
|
+
let r = W_(e, t, n);
|
|
8074
|
+
if (console.warn(r), B_.includes(e)) throw RangeError(r);
|
|
8075
|
+
}
|
|
8076
|
+
function W_(e, t, n) {
|
|
8072
8077
|
let r = e[0] === "Y" ? "years" : "days of the month";
|
|
8073
8078
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
8074
8079
|
}
|
|
8075
8080
|
//#endregion
|
|
8076
8081
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
|
|
8077
|
-
var
|
|
8078
|
-
function
|
|
8079
|
-
let r =
|
|
8082
|
+
var G_ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, K_ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, q_ = /^'([^]*?)'?$/, J_ = /''/g, Y_ = /[a-zA-Z]/;
|
|
8083
|
+
function X_(e, t, n) {
|
|
8084
|
+
let r = e_(), i = n?.locale ?? r.locale ?? S_, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = sa(e, n?.in);
|
|
8080
8085
|
if (!da(s)) throw RangeError("Invalid time value");
|
|
8081
|
-
let c = t.match(
|
|
8086
|
+
let c = t.match(K_).map((e) => {
|
|
8082
8087
|
let t = e[0];
|
|
8083
8088
|
if (t === "p" || t === "P") {
|
|
8084
|
-
let n =
|
|
8089
|
+
let n = L_[t];
|
|
8085
8090
|
return n(e, i.formatLong);
|
|
8086
8091
|
}
|
|
8087
8092
|
return e;
|
|
8088
|
-
}).join("").match(
|
|
8093
|
+
}).join("").match(G_).map((e) => {
|
|
8089
8094
|
if (e === "''") return {
|
|
8090
8095
|
isToken: !1,
|
|
8091
8096
|
value: "'"
|
|
@@ -8093,13 +8098,13 @@ function Y_(e, t, n) {
|
|
|
8093
8098
|
let t = e[0];
|
|
8094
8099
|
if (t === "'") return {
|
|
8095
8100
|
isToken: !1,
|
|
8096
|
-
value:
|
|
8101
|
+
value: Z_(e)
|
|
8097
8102
|
};
|
|
8098
|
-
if (
|
|
8103
|
+
if (j_[t]) return {
|
|
8099
8104
|
isToken: !0,
|
|
8100
8105
|
value: e
|
|
8101
8106
|
};
|
|
8102
|
-
if (t.match(
|
|
8107
|
+
if (t.match(Y_)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
|
|
8103
8108
|
return {
|
|
8104
8109
|
isToken: !1,
|
|
8105
8110
|
value: e
|
|
@@ -8114,41 +8119,36 @@ function Y_(e, t, n) {
|
|
|
8114
8119
|
return c.map((r) => {
|
|
8115
8120
|
if (!r.isToken) return r.value;
|
|
8116
8121
|
let a = r.value;
|
|
8117
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
8118
|
-
let o =
|
|
8122
|
+
(!n?.useAdditionalWeekYearTokens && H_(a) || !n?.useAdditionalDayOfYearTokens && V_(a)) && U_(a, t, String(e));
|
|
8123
|
+
let o = j_[a[0]];
|
|
8119
8124
|
return o(s, a, i.localize, l);
|
|
8120
8125
|
}).join("");
|
|
8121
8126
|
}
|
|
8122
|
-
function
|
|
8123
|
-
let t = e.match(
|
|
8124
|
-
return t ? t[1].replace(
|
|
8127
|
+
function Z_(e) {
|
|
8128
|
+
let t = e.match(q_);
|
|
8129
|
+
return t ? t[1].replace(J_, "'") : e;
|
|
8125
8130
|
}
|
|
8126
8131
|
//#endregion
|
|
8127
8132
|
//#region src/core/codemirror/go-to-definition/utils.ts
|
|
8128
|
-
function
|
|
8129
|
-
let n =
|
|
8130
|
-
return n ?
|
|
8133
|
+
function Q_(e, t) {
|
|
8134
|
+
let n = $_(e);
|
|
8135
|
+
return n ? hr(n, t) : !1;
|
|
8131
8136
|
}
|
|
8132
|
-
function
|
|
8133
|
-
return
|
|
8137
|
+
function $_(e) {
|
|
8138
|
+
return Fr(e) ?? null;
|
|
8134
8139
|
}
|
|
8135
|
-
|
|
8136
|
-
var
|
|
8137
|
-
function
|
|
8140
|
+
li(null);
|
|
8141
|
+
var ev = li(/* @__PURE__ */ new Map());
|
|
8142
|
+
function tv(e) {
|
|
8138
8143
|
let t = {};
|
|
8139
8144
|
for (let [n, r] of e) r.size > 0 && (t[n] = [...r].toSorted((e, t) => e - t));
|
|
8140
|
-
|
|
8145
|
+
Dr().sendSetBreakpoints({ breakpoints: t }).catch((e) => {
|
|
8141
8146
|
r.debug("Failed to sync breakpoints to kernel", { error: e });
|
|
8142
8147
|
});
|
|
8143
8148
|
}
|
|
8144
|
-
function
|
|
8145
|
-
let n =
|
|
8146
|
-
i.has(t) ? i.delete(t) : i.add(t), i.size > 0 ? r.set(e, i) : r.delete(e),
|
|
8147
|
-
}
|
|
8148
|
-
//#endregion
|
|
8149
|
-
//#region src/utils/url.ts
|
|
8150
|
-
function nv(e) {
|
|
8151
|
-
return new URL(e, document.baseURI);
|
|
8149
|
+
function nv(e, t) {
|
|
8150
|
+
let n = Pi.get(ev), r = new Map(n), i = new Set(r.get(e) ?? []);
|
|
8151
|
+
i.has(t) ? i.delete(t) : i.add(t), i.size > 0 ? r.set(e, i) : r.delete(e), Pi.set(ev, r), tv(r);
|
|
8152
8152
|
}
|
|
8153
8153
|
//#endregion
|
|
8154
8154
|
//#region ../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
|
|
@@ -8178,7 +8178,7 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8178
8178
|
items: /* @__PURE__ */ new Map(),
|
|
8179
8179
|
groups: /* @__PURE__ */ new Set()
|
|
8180
8180
|
}
|
|
8181
|
-
})), r = Gv(() => /* @__PURE__ */ new Set()), i = Gv(() => /* @__PURE__ */ new Map()), a = Gv(() => /* @__PURE__ */ new Map()), o = Gv(() => /* @__PURE__ */ new Set()), s = Uv(e), { label: c, children: l, value: u, onValueChange: d, filter: f, shouldFilter: p, loop: m, disablePointerSelection: h = !1, vimBindings: g = !0, ..._ } = e, v =
|
|
8181
|
+
})), r = Gv(() => /* @__PURE__ */ new Set()), i = Gv(() => /* @__PURE__ */ new Map()), a = Gv(() => /* @__PURE__ */ new Map()), o = Gv(() => /* @__PURE__ */ new Set()), s = Uv(e), { label: c, children: l, value: u, onValueChange: d, filter: f, shouldFilter: p, loop: m, disablePointerSelection: h = !1, vimBindings: g = !0, ..._ } = e, v = _i(), y = _i(), b = _i(), x = K.useRef(null), S = Jv();
|
|
8182
8182
|
Wv(() => {
|
|
8183
8183
|
if (u !== void 0) {
|
|
8184
8184
|
let e = u.trim();
|
|
@@ -8319,7 +8319,7 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8319
8319
|
}, L = (e) => {
|
|
8320
8320
|
e.preventDefault(), e.metaKey ? M(0) : e.altKey ? P(-1) : N(-1);
|
|
8321
8321
|
};
|
|
8322
|
-
return K.createElement(
|
|
8322
|
+
return K.createElement(Ci.div, {
|
|
8323
8323
|
ref: t,
|
|
8324
8324
|
tabIndex: -1,
|
|
8325
8325
|
..._,
|
|
@@ -8366,7 +8366,7 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8366
8366
|
style: Zv
|
|
8367
8367
|
}, c), Xv(e, (e) => K.createElement(Ov.Provider, { value: C }, K.createElement(Ev.Provider, { value: w }, e))));
|
|
8368
8368
|
}), Mv = K.forwardRef((e, t) => {
|
|
8369
|
-
let r =
|
|
8369
|
+
let r = _i(), i = K.useRef(null), a = K.useContext(Av), o = Dv(), s = Uv(e), c = s.current?.forceMount ?? a?.forceMount;
|
|
8370
8370
|
Wv(() => {
|
|
8371
8371
|
if (!c) return o.item(r, a?.id);
|
|
8372
8372
|
}, [c]);
|
|
@@ -8392,7 +8392,7 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8392
8392
|
}
|
|
8393
8393
|
if (!f) return null;
|
|
8394
8394
|
let { disabled: h, value: g, onSelect: _, forceMount: v, keywords: y, ...b } = e;
|
|
8395
|
-
return K.createElement(
|
|
8395
|
+
return K.createElement(Ci.div, {
|
|
8396
8396
|
ref: n(i, t),
|
|
8397
8397
|
...b,
|
|
8398
8398
|
id: r,
|
|
@@ -8406,7 +8406,7 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8406
8406
|
onClick: h ? void 0 : p
|
|
8407
8407
|
}, e.children);
|
|
8408
8408
|
}), Nv = K.forwardRef((e, t) => {
|
|
8409
|
-
let { heading: r, children: i, forceMount: a, ...o } = e, s =
|
|
8409
|
+
let { heading: r, children: i, forceMount: a, ...o } = e, s = _i(), c = K.useRef(null), l = K.useRef(null), u = _i(), d = Dv(), f = Kv((e) => a || d.filter() === !1 ? !0 : !e.search || e.filtered.groups.has(s));
|
|
8410
8410
|
Wv(() => d.group(s), []), qv(s, c, [
|
|
8411
8411
|
e.value,
|
|
8412
8412
|
e.heading,
|
|
@@ -8416,7 +8416,7 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8416
8416
|
id: s,
|
|
8417
8417
|
forceMount: a
|
|
8418
8418
|
}), [a]);
|
|
8419
|
-
return K.createElement(
|
|
8419
|
+
return K.createElement(Ci.div, {
|
|
8420
8420
|
ref: n(c, t),
|
|
8421
8421
|
...o,
|
|
8422
8422
|
"cmdk-group": "",
|
|
@@ -8434,7 +8434,7 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8434
8434
|
}, K.createElement(Av.Provider, { value: p }, e))));
|
|
8435
8435
|
}), Pv = K.forwardRef((e, t) => {
|
|
8436
8436
|
let { alwaysRender: r, ...i } = e, a = K.useRef(null), o = Kv((e) => !e.search);
|
|
8437
|
-
return !r && !o ? null : K.createElement(
|
|
8437
|
+
return !r && !o ? null : K.createElement(Ci.div, {
|
|
8438
8438
|
ref: n(a, t),
|
|
8439
8439
|
...i,
|
|
8440
8440
|
"cmdk-separator": "",
|
|
@@ -8444,7 +8444,7 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8444
8444
|
let { onValueChange: n, ...r } = e, i = e.value != null, a = kv(), o = Kv((e) => e.search), s = Kv((e) => e.selectedItemId), c = Dv();
|
|
8445
8445
|
return K.useEffect(() => {
|
|
8446
8446
|
e.value != null && a.setState("search", e.value);
|
|
8447
|
-
}, [e.value]), K.createElement(
|
|
8447
|
+
}, [e.value]), K.createElement(Ci.input, {
|
|
8448
8448
|
ref: t,
|
|
8449
8449
|
...r,
|
|
8450
8450
|
"cmdk-input": "",
|
|
@@ -8478,7 +8478,7 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8478
8478
|
cancelAnimationFrame(n), r.unobserve(e);
|
|
8479
8479
|
};
|
|
8480
8480
|
}
|
|
8481
|
-
}, []), K.createElement(
|
|
8481
|
+
}, []), K.createElement(Ci.div, {
|
|
8482
8482
|
ref: n(o, t),
|
|
8483
8483
|
...a,
|
|
8484
8484
|
"cmdk-list": "",
|
|
@@ -8493,13 +8493,13 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8493
8493
|
}, e)));
|
|
8494
8494
|
}), Lv = K.forwardRef((e, t) => {
|
|
8495
8495
|
let { open: n, onOpenChange: r, overlayClassName: i, contentClassName: a, container: o, ...s } = e;
|
|
8496
|
-
return K.createElement(
|
|
8496
|
+
return K.createElement(fi, {
|
|
8497
8497
|
open: n,
|
|
8498
8498
|
onOpenChange: r
|
|
8499
|
-
}, K.createElement(
|
|
8499
|
+
}, K.createElement(ri, { container: o }, K.createElement(ti, {
|
|
8500
8500
|
"cmdk-overlay": "",
|
|
8501
8501
|
className: i
|
|
8502
|
-
}), K.createElement(
|
|
8502
|
+
}), K.createElement(di, {
|
|
8503
8503
|
"aria-label": e.label,
|
|
8504
8504
|
"cmdk-dialog": "",
|
|
8505
8505
|
className: a
|
|
@@ -8507,14 +8507,14 @@ var vv = "[cmdk-group=\"\"]", yv = "[cmdk-group-items=\"\"]", bv = "[cmdk-group-
|
|
|
8507
8507
|
ref: t,
|
|
8508
8508
|
...s
|
|
8509
8509
|
}))));
|
|
8510
|
-
}), Rv = K.forwardRef((e, t) => Kv((e) => e.filtered.count === 0) ? K.createElement(
|
|
8510
|
+
}), Rv = K.forwardRef((e, t) => Kv((e) => e.filtered.count === 0) ? K.createElement(Ci.div, {
|
|
8511
8511
|
ref: t,
|
|
8512
8512
|
...e,
|
|
8513
8513
|
"cmdk-empty": "",
|
|
8514
8514
|
role: "presentation"
|
|
8515
8515
|
}) : null), zv = K.forwardRef((e, t) => {
|
|
8516
8516
|
let { progress: n, children: r, label: i = "Loading...", ...a } = e;
|
|
8517
|
-
return K.createElement(
|
|
8517
|
+
return K.createElement(Ci.div, {
|
|
8518
8518
|
ref: t,
|
|
8519
8519
|
...a,
|
|
8520
8520
|
"cmdk-loading": "",
|
|
@@ -8713,7 +8713,7 @@ var sy = K.forwardRef((e, t) => {
|
|
|
8713
8713
|
inset: a
|
|
8714
8714
|
}).replace(Ue, "data-[disabled=false]:pointer-events-all data-[disabled=false]:opacity-100 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"), r), n[5] = r, n[6] = a, n[7] = s, n[8] = c) : c = n[8];
|
|
8715
8715
|
let l;
|
|
8716
|
-
n[9] === o.value ? l = n[10] : (l =
|
|
8716
|
+
n[9] === o.value ? l = n[10] : (l = Gr.htmlEscape(o.value), n[9] = o.value, n[10] = l);
|
|
8717
8717
|
let u;
|
|
8718
8718
|
return n[11] !== o || n[12] !== t || n[13] !== c || n[14] !== l ? (u = /* @__PURE__ */ (0, q.jsx)(Bv.Item, {
|
|
8719
8719
|
ref: t,
|
|
@@ -8729,130 +8729,130 @@ var cy = (0, K.createContext)({
|
|
|
8729
8729
|
isSelected: () => !1,
|
|
8730
8730
|
onSelect: t.NOOP
|
|
8731
8731
|
}), ly = (e) => {
|
|
8732
|
-
let t = (0, J.c)(106), n, r, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T,
|
|
8733
|
-
t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16], y = t[17], b = t[18], x = t[19], S = t[20], C = t[21], w = t[22], T = t[23],
|
|
8734
|
-
let
|
|
8735
|
-
t[25] !== f || t[26] !== h || t[27] !==
|
|
8732
|
+
let t = (0, J.c)(106), n, r, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, D;
|
|
8733
|
+
t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16], y = t[17], b = t[18], x = t[19], S = t[20], C = t[21], w = t[22], T = t[23], D = t[24]) : ({children: n, displayValue: c, className: a, placeholder: g, value: D, defaultValue: s, onValueChange: m, multiple: b, shouldFilter: x, filterFn: l, open: h, defaultOpen: o, onOpenChange: f, inputPlaceholder: S, search: y, onSearchChange: p, emptyState: C, chips: w, chipsClassName: r, keepPopoverOpenOnSelect: d, id: u, disabled: T, renderValue: _, ...v} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g, t[15] = _, t[16] = v, t[17] = y, t[18] = b, t[19] = x, t[20] = S, t[21] = C, t[22] = w, t[23] = T, t[24] = D);
|
|
8734
|
+
let O = b !== void 0 && b, k = x === void 0 || x, A = S === void 0 ? "Search..." : S, j = C === void 0 ? "Nothing found." : C, M = w !== void 0 && w, N = T !== void 0 && T, P = o ?? !1, F;
|
|
8735
|
+
t[25] !== f || t[26] !== h || t[27] !== P ? (F = {
|
|
8736
8736
|
prop: h,
|
|
8737
|
-
defaultProp:
|
|
8737
|
+
defaultProp: P,
|
|
8738
8738
|
onChange: f
|
|
8739
|
-
}, t[25] = f, t[26] = h, t[27] =
|
|
8740
|
-
let [
|
|
8741
|
-
t[29] === m ?
|
|
8739
|
+
}, t[25] = f, t[26] = h, t[27] = P, t[28] = F) : F = t[28];
|
|
8740
|
+
let [I, L] = ji(F), z = I !== void 0 && I, ee;
|
|
8741
|
+
t[29] === m ? ee = t[30] : (ee = (e) => {
|
|
8742
8742
|
m?.(e);
|
|
8743
|
-
}, t[29] = m, t[30] =
|
|
8744
|
-
let
|
|
8745
|
-
t[31] !== s || t[32] !==
|
|
8746
|
-
prop:
|
|
8743
|
+
}, t[29] = m, t[30] = ee);
|
|
8744
|
+
let te;
|
|
8745
|
+
t[31] !== s || t[32] !== ee || t[33] !== D ? (te = {
|
|
8746
|
+
prop: D,
|
|
8747
8747
|
defaultProp: s,
|
|
8748
|
-
onChange:
|
|
8749
|
-
}, t[31] = s, t[32] =
|
|
8750
|
-
let [
|
|
8751
|
-
t[35] ===
|
|
8752
|
-
let
|
|
8753
|
-
t[37] !== d || t[38] !==
|
|
8748
|
+
onChange: ee
|
|
8749
|
+
}, t[31] = s, t[32] = ee, t[33] = D, t[34] = te) : te = t[34];
|
|
8750
|
+
let [H, ne] = ji(te), re;
|
|
8751
|
+
t[35] === H ? re = t[36] : (re = (e) => Array.isArray(H) ? H.includes(e) : H === e, t[35] = H, t[36] = re);
|
|
8752
|
+
let ie = re, ae;
|
|
8753
|
+
t[37] !== d || t[38] !== O || t[39] !== L || t[40] !== ne || t[41] !== H ? (ae = (e) => {
|
|
8754
8754
|
let t = e;
|
|
8755
|
-
if (
|
|
8756
|
-
if (Array.isArray(
|
|
8757
|
-
if (
|
|
8758
|
-
let n =
|
|
8755
|
+
if (O) {
|
|
8756
|
+
if (Array.isArray(H)) {
|
|
8757
|
+
if (H.includes(t)) {
|
|
8758
|
+
let n = H.filter((t) => t !== e);
|
|
8759
8759
|
t = n.length > 0 ? n : [];
|
|
8760
|
-
} else t = [...
|
|
8760
|
+
} else t = [...H, t];
|
|
8761
8761
|
} else t = [t];
|
|
8762
|
-
} else
|
|
8763
|
-
|
|
8764
|
-
}, t[37] = d, t[38] =
|
|
8765
|
-
let
|
|
8766
|
-
t[43] !==
|
|
8767
|
-
let
|
|
8768
|
-
t[49] !==
|
|
8769
|
-
isSelected:
|
|
8770
|
-
onSelect:
|
|
8771
|
-
}, t[49] =
|
|
8772
|
-
let
|
|
8773
|
-
t[52] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
8774
|
-
let
|
|
8775
|
-
t[53] !==
|
|
8776
|
-
|
|
8777
|
-
}, t[53] =
|
|
8778
|
-
let
|
|
8779
|
-
t[56] !== a || t[57] !==
|
|
8762
|
+
} else H === e && (t = null);
|
|
8763
|
+
ne(t), (d ?? O) || L(!1);
|
|
8764
|
+
}, t[37] = d, t[38] = O, t[39] = L, t[40] = ne, t[41] = H, t[42] = ae) : ae = t[42];
|
|
8765
|
+
let oe = ae, se;
|
|
8766
|
+
t[43] !== M || t[44] !== c || t[45] !== O || t[46] !== g || t[47] !== H ? (se = () => O && M && g ? g : H == null ? g ?? "--" : Array.isArray(H) ? H.length === 0 ? g ?? "--" : H.length === 1 && c !== void 0 ? c(H[0]) : `${H.length} selected` : c === void 0 ? g ?? "--" : c(H), t[43] = M, t[44] = c, t[45] = O, t[46] = g, t[47] = H, t[48] = se) : se = t[48];
|
|
8767
|
+
let ce = se, le;
|
|
8768
|
+
t[49] !== oe || t[50] !== ie ? (le = {
|
|
8769
|
+
isSelected: ie,
|
|
8770
|
+
onSelect: oe
|
|
8771
|
+
}, t[49] = oe, t[50] = ie, t[51] = le) : le = t[51];
|
|
8772
|
+
let ue = le, de;
|
|
8773
|
+
t[52] === Symbol.for("react.memo_cache_sentinel") ? (de = i("relative"), t[52] = de) : de = t[52];
|
|
8774
|
+
let fe;
|
|
8775
|
+
t[53] !== N || t[54] !== L ? (fe = (e) => {
|
|
8776
|
+
N && e || L(e);
|
|
8777
|
+
}, t[53] = N, t[54] = L, t[55] = fe) : fe = t[55];
|
|
8778
|
+
let pe = N && "cursor-not-allowed opacity-50", me;
|
|
8779
|
+
t[56] !== a || t[57] !== pe ? (me = i("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary focus-visible:shadow-md-solid", pe, a), t[56] = a, t[57] = pe, t[58] = me) : me = t[58];
|
|
8780
|
+
let he;
|
|
8781
|
+
t[59] !== _ || t[60] !== ce || t[61] !== H ? (he = _ ? _(H ?? null) : ce(), t[59] = _, t[60] = ce, t[61] = H, t[62] = he) : he = t[62];
|
|
8780
8782
|
let ge;
|
|
8781
|
-
t[
|
|
8782
|
-
let _e;
|
|
8783
|
-
t[63] === ge ? _e = t[64] : (_e = /* @__PURE__ */ (0, q.jsx)("span", {
|
|
8783
|
+
t[63] === he ? ge = t[64] : (ge = /* @__PURE__ */ (0, q.jsx)("span", {
|
|
8784
8784
|
className: "truncate flex-1 min-w-0",
|
|
8785
|
-
children:
|
|
8786
|
-
}), t[63] =
|
|
8785
|
+
children: he
|
|
8786
|
+
}), t[63] = he, t[64] = ge);
|
|
8787
|
+
let _e;
|
|
8788
|
+
t[65] === Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ (0, q.jsx)(Ie, { className: "ml-3 w-4 h-4 opacity-50 shrink-0" }), t[65] = _e) : _e = t[65];
|
|
8787
8789
|
let ve;
|
|
8788
|
-
t[
|
|
8789
|
-
let ye;
|
|
8790
|
-
t[66] !== M || t[67] !== u || t[68] !== L || t[69] !== he || t[70] !== _e ? (ye = /* @__PURE__ */ (0, q.jsx)(te, {
|
|
8790
|
+
t[66] !== N || t[67] !== u || t[68] !== z || t[69] !== me || t[70] !== ge ? (ve = /* @__PURE__ */ (0, q.jsx)(V, {
|
|
8791
8791
|
asChild: !0,
|
|
8792
8792
|
children: /* @__PURE__ */ (0, q.jsxs)("button", {
|
|
8793
8793
|
id: u,
|
|
8794
8794
|
type: "button",
|
|
8795
|
-
className:
|
|
8796
|
-
"aria-expanded":
|
|
8797
|
-
"aria-disabled":
|
|
8798
|
-
children: [
|
|
8795
|
+
className: me,
|
|
8796
|
+
"aria-expanded": z,
|
|
8797
|
+
"aria-disabled": N,
|
|
8798
|
+
children: [ge, _e]
|
|
8799
8799
|
})
|
|
8800
|
-
}), t[66] =
|
|
8801
|
-
let
|
|
8802
|
-
t[72] !==
|
|
8803
|
-
placeholder:
|
|
8800
|
+
}), t[66] = N, t[67] = u, t[68] = z, t[69] = me, t[70] = ge, t[71] = ve) : ve = t[71];
|
|
8801
|
+
let ye;
|
|
8802
|
+
t[72] !== A || t[73] !== p || t[74] !== y ? (ye = /* @__PURE__ */ (0, q.jsx)(ny, {
|
|
8803
|
+
placeholder: A,
|
|
8804
8804
|
rootClassName: "px-1 h-8",
|
|
8805
8805
|
autoFocus: !0,
|
|
8806
8806
|
value: y,
|
|
8807
8807
|
onValueChange: p
|
|
8808
|
-
}), t[72] =
|
|
8809
|
-
let
|
|
8810
|
-
t[76] ===
|
|
8811
|
-
let
|
|
8812
|
-
t[78] !== n || t[79] !==
|
|
8813
|
-
value:
|
|
8808
|
+
}), t[72] = A, t[73] = p, t[74] = y, t[75] = ye) : ye = t[75];
|
|
8809
|
+
let be;
|
|
8810
|
+
t[76] === j ? be = t[77] : (be = /* @__PURE__ */ (0, q.jsx)(iy, { children: j }), t[76] = j, t[77] = be);
|
|
8811
|
+
let U;
|
|
8812
|
+
t[78] !== n || t[79] !== ue ? (U = /* @__PURE__ */ (0, q.jsx)(cy, {
|
|
8813
|
+
value: ue,
|
|
8814
8814
|
children: n
|
|
8815
|
-
}), t[78] = n, t[79] =
|
|
8816
|
-
let
|
|
8817
|
-
t[81] !==
|
|
8815
|
+
}), t[78] = n, t[79] = ue, t[80] = U) : U = t[80];
|
|
8816
|
+
let xe;
|
|
8817
|
+
t[81] !== be || t[82] !== U ? (xe = /* @__PURE__ */ (0, q.jsxs)(ry, {
|
|
8818
8818
|
className: "max-h-60 py-.5",
|
|
8819
|
-
children: [
|
|
8820
|
-
}), t[81] =
|
|
8821
|
-
let
|
|
8822
|
-
t[84] !== l || t[85] !==
|
|
8819
|
+
children: [be, U]
|
|
8820
|
+
}), t[81] = be, t[82] = U, t[83] = xe) : xe = t[83];
|
|
8821
|
+
let Se;
|
|
8822
|
+
t[84] !== l || t[85] !== k || t[86] !== ye || t[87] !== xe ? (Se = /* @__PURE__ */ (0, q.jsx)(R, {
|
|
8823
8823
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
8824
8824
|
align: "start",
|
|
8825
8825
|
children: /* @__PURE__ */ (0, q.jsxs)(ty, {
|
|
8826
8826
|
filter: l,
|
|
8827
|
-
shouldFilter:
|
|
8828
|
-
children: [
|
|
8827
|
+
shouldFilter: k,
|
|
8828
|
+
children: [ye, xe]
|
|
8829
8829
|
})
|
|
8830
|
-
}), t[84] = l, t[85] =
|
|
8830
|
+
}), t[84] = l, t[85] = k, t[86] = ye, t[87] = xe, t[88] = Se) : Se = t[88];
|
|
8831
|
+
let Ce;
|
|
8832
|
+
t[89] !== z || t[90] !== fe || t[91] !== ve || t[92] !== Se ? (Ce = /* @__PURE__ */ (0, q.jsxs)(B, {
|
|
8833
|
+
open: z,
|
|
8834
|
+
onOpenChange: fe,
|
|
8835
|
+
children: [ve, Se]
|
|
8836
|
+
}), t[89] = z, t[90] = fe, t[91] = ve, t[92] = Se, t[93] = Ce) : Ce = t[93];
|
|
8831
8837
|
let we;
|
|
8832
|
-
t[
|
|
8833
|
-
open: L,
|
|
8834
|
-
onOpenChange: pe,
|
|
8835
|
-
children: [ye, Ce]
|
|
8836
|
-
}), t[89] = L, t[90] = pe, t[91] = ye, t[92] = Ce, t[93] = we) : we = t[93];
|
|
8837
|
-
let U;
|
|
8838
|
-
t[94] !== j || t[95] !== r || t[96] !== M || t[97] !== c || t[98] !== se || t[99] !== D || t[100] !== V ? (U = D && j && /* @__PURE__ */ (0, q.jsx)("div", {
|
|
8838
|
+
t[94] !== M || t[95] !== r || t[96] !== N || t[97] !== c || t[98] !== oe || t[99] !== O || t[100] !== H ? (we = O && M && /* @__PURE__ */ (0, q.jsx)("div", {
|
|
8839
8839
|
className: i("flex flex-col gap-1 items-start", r),
|
|
8840
|
-
children: Array.isArray(
|
|
8840
|
+
children: Array.isArray(H) && H.map((e) => e == null ? null : /* @__PURE__ */ (0, q.jsxs)(Te, {
|
|
8841
8841
|
variant: "secondary",
|
|
8842
|
-
children: [c?.(e) ?? String(e), /* @__PURE__ */ (0, q.jsx)(
|
|
8842
|
+
children: [c?.(e) ?? String(e), /* @__PURE__ */ (0, q.jsx)(E, {
|
|
8843
8843
|
onClick: () => {
|
|
8844
|
-
|
|
8844
|
+
N || oe(e);
|
|
8845
8845
|
},
|
|
8846
|
-
className: i("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
8846
|
+
className: i("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", N && "pointer-events-none")
|
|
8847
8847
|
})]
|
|
8848
8848
|
}, String(e)))
|
|
8849
|
-
}), t[94] =
|
|
8849
|
+
}), t[94] = M, t[95] = r, t[96] = N, t[97] = c, t[98] = oe, t[99] = O, t[100] = H, t[101] = we) : we = t[101];
|
|
8850
8850
|
let Ee;
|
|
8851
|
-
return t[102] !== v || t[103] !==
|
|
8852
|
-
className:
|
|
8851
|
+
return t[102] !== v || t[103] !== Ce || t[104] !== we ? (Ee = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
8852
|
+
className: de,
|
|
8853
8853
|
...v,
|
|
8854
|
-
children: [
|
|
8855
|
-
}), t[102] = v, t[103] =
|
|
8854
|
+
children: [Ce, we]
|
|
8855
|
+
}), t[102] = v, t[103] = Ce, t[104] = we, t[105] = Ee) : Ee = t[105], Ee;
|
|
8856
8856
|
}, uy = K.forwardRef((e, t) => {
|
|
8857
8857
|
let n = (0, J.c)(20), { children: r, className: a, value: o, onSelect: s, disabled: c } = e, l = typeof o == "object" && "value" in o ? o.value : String(o), u = K.use(cy), d;
|
|
8858
8858
|
n[0] !== u || n[1] !== o ? (d = u.isSelected(o), n[0] = u, n[1] = o, n[2] = d) : d = n[2];
|
|
@@ -10880,7 +10880,7 @@ function cx(e) {
|
|
|
10880
10880
|
...e,
|
|
10881
10881
|
value: g,
|
|
10882
10882
|
builtinValidation: z
|
|
10883
|
-
}),
|
|
10883
|
+
}), V = B.displayValidation.isInvalid, ee = e.validationState || (V ? "invalid" : null);
|
|
10884
10884
|
return {
|
|
10885
10885
|
...B,
|
|
10886
10886
|
value: y,
|
|
@@ -10890,8 +10890,8 @@ function cx(e) {
|
|
|
10890
10890
|
setValue: F,
|
|
10891
10891
|
segments: L,
|
|
10892
10892
|
dateFormatter: T,
|
|
10893
|
-
validationState:
|
|
10894
|
-
isInvalid:
|
|
10893
|
+
validationState: ee,
|
|
10894
|
+
isInvalid: V,
|
|
10895
10895
|
granularity: d,
|
|
10896
10896
|
maxGranularity: e.maxGranularity ?? "year",
|
|
10897
10897
|
isDisabled: i,
|
|
@@ -11546,12 +11546,12 @@ function Mx() {
|
|
|
11546
11546
|
}));
|
|
11547
11547
|
},
|
|
11548
11548
|
openAlert: (n) => {
|
|
11549
|
-
e.setModal(/* @__PURE__ */ (0, q.jsx)(
|
|
11549
|
+
e.setModal(/* @__PURE__ */ (0, q.jsx)(Wi, {
|
|
11550
11550
|
open: !0,
|
|
11551
11551
|
onOpenChange: (e) => {
|
|
11552
11552
|
e || t();
|
|
11553
11553
|
},
|
|
11554
|
-
children: /* @__PURE__ */ (0, q.jsxs)(
|
|
11554
|
+
children: /* @__PURE__ */ (0, q.jsxs)(Ui, { children: [n, /* @__PURE__ */ (0, q.jsx)(Bi, { children: /* @__PURE__ */ (0, q.jsx)(zi, {
|
|
11555
11555
|
autoFocus: !0,
|
|
11556
11556
|
onClick: t,
|
|
11557
11557
|
children: "Ok"
|
|
@@ -11559,18 +11559,18 @@ function Mx() {
|
|
|
11559
11559
|
}));
|
|
11560
11560
|
},
|
|
11561
11561
|
openPrompt: (n) => {
|
|
11562
|
-
e.setModal(/* @__PURE__ */ (0, q.jsx)(
|
|
11562
|
+
e.setModal(/* @__PURE__ */ (0, q.jsx)(Wi, {
|
|
11563
11563
|
open: !0,
|
|
11564
11564
|
onOpenChange: (e) => {
|
|
11565
11565
|
e || t();
|
|
11566
11566
|
},
|
|
11567
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
11567
|
+
children: /* @__PURE__ */ (0, q.jsx)(Ui, { children: /* @__PURE__ */ (0, q.jsxs)("form", {
|
|
11568
11568
|
onSubmit: (e) => {
|
|
11569
11569
|
e.preventDefault(), n.onConfirm(e.currentTarget.prompt.value), t();
|
|
11570
11570
|
},
|
|
11571
|
-
children: [/* @__PURE__ */ (0, q.jsxs)(
|
|
11572
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
11573
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
11571
|
+
children: [/* @__PURE__ */ (0, q.jsxs)(qi, { children: [
|
|
11572
|
+
/* @__PURE__ */ (0, q.jsx)(Li, { children: n.title }),
|
|
11573
|
+
/* @__PURE__ */ (0, q.jsx)(Gi, { children: n.description }),
|
|
11574
11574
|
/* @__PURE__ */ (0, q.jsx)(Sn, {
|
|
11575
11575
|
spellCheck: n.spellCheck,
|
|
11576
11576
|
defaultValue: n.defaultValue,
|
|
@@ -11580,7 +11580,7 @@ function Mx() {
|
|
|
11580
11580
|
autoFocus: !0,
|
|
11581
11581
|
autoComplete: "off"
|
|
11582
11582
|
})
|
|
11583
|
-
] }), /* @__PURE__ */ (0, q.jsxs)(
|
|
11583
|
+
] }), /* @__PURE__ */ (0, q.jsxs)(Bi, { children: [/* @__PURE__ */ (0, q.jsx)(Fi, {
|
|
11584
11584
|
onClick: t,
|
|
11585
11585
|
children: "Cancel"
|
|
11586
11586
|
}), /* @__PURE__ */ (0, q.jsx)(u, {
|
|
@@ -11591,15 +11591,15 @@ function Mx() {
|
|
|
11591
11591
|
}));
|
|
11592
11592
|
},
|
|
11593
11593
|
openConfirm: (n) => {
|
|
11594
|
-
e.setModal(/* @__PURE__ */ (0, q.jsx)(
|
|
11594
|
+
e.setModal(/* @__PURE__ */ (0, q.jsx)(Wi, {
|
|
11595
11595
|
open: !0,
|
|
11596
11596
|
onOpenChange: (e) => {
|
|
11597
11597
|
e || t();
|
|
11598
11598
|
},
|
|
11599
|
-
children: /* @__PURE__ */ (0, q.jsxs)(
|
|
11599
|
+
children: /* @__PURE__ */ (0, q.jsxs)(Ui, { children: [/* @__PURE__ */ (0, q.jsxs)(qi, { children: [/* @__PURE__ */ (0, q.jsx)(Li, {
|
|
11600
11600
|
className: n.variant === "destructive" ? "text-destructive" : "",
|
|
11601
11601
|
children: n.title
|
|
11602
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
11602
|
+
}), /* @__PURE__ */ (0, q.jsx)(Gi, { children: n.description })] }), /* @__PURE__ */ (0, q.jsxs)(Bi, { children: [/* @__PURE__ */ (0, q.jsx)(Fi, {
|
|
11603
11603
|
onClick: t,
|
|
11604
11604
|
children: "Cancel"
|
|
11605
11605
|
}), n.confirmAction] })] })
|
|
@@ -11611,13 +11611,13 @@ function Mx() {
|
|
|
11611
11611
|
//#endregion
|
|
11612
11612
|
//#region src/core/saving/filename.ts
|
|
11613
11613
|
function Nx() {
|
|
11614
|
-
return
|
|
11614
|
+
return ei(Sr);
|
|
11615
11615
|
}
|
|
11616
11616
|
//#endregion
|
|
11617
11617
|
//#region src/components/editor/links/cell-link.tsx
|
|
11618
11618
|
var Px = (e) => {
|
|
11619
|
-
let t = (0, J.c)(15), { className: n, cellId: r, variant: a, onClick: s, formatCellName: c, skipScroll: l } = e, u =
|
|
11620
|
-
t[0] === r ? m = t[1] : (m = r === "__scratch__" ? void 0 : `#${
|
|
11619
|
+
let t = (0, J.c)(15), { className: n, cellId: r, variant: a, onClick: s, formatCellName: c, skipScroll: l } = e, u = jr()[r] ?? "", d = Vr().indexOf(r), { showCellIfHidden: f } = _e(), p = c ?? Rx, m;
|
|
11620
|
+
t[0] === r ? m = t[1] : (m = r === "__scratch__" ? void 0 : `#${Br.create(r)}`, t[0] = r, t[1] = m);
|
|
11621
11621
|
let h;
|
|
11622
11622
|
t[2] === n ? h = t[3] : (h = i("inline-block cursor-pointer text-left text-link hover:underline focus-visible:outline focus-visible:outline-ring", n), t[2] = n, t[3] = h);
|
|
11623
11623
|
let g;
|
|
@@ -11625,11 +11625,11 @@ var Px = (e) => {
|
|
|
11625
11625
|
if (!(e.defaultPrevented || e.button !== 0 || o.hasModifier(e))) {
|
|
11626
11626
|
if (r === "__scratch__") return !1;
|
|
11627
11627
|
f({ cellId: r }), e.stopPropagation(), e.preventDefault(), requestAnimationFrame(() => {
|
|
11628
|
-
Lx(r, a, l) && (
|
|
11628
|
+
Lx(r, a, l) && (br(r, { preventScroll: !0 }), s?.());
|
|
11629
11629
|
});
|
|
11630
11630
|
}
|
|
11631
11631
|
}, t[4] = r, t[5] = s, t[6] = f, t[7] = l, t[8] = a, t[9] = g) : g = t[9];
|
|
11632
|
-
let _ = p(
|
|
11632
|
+
let _ = p(Ir(u, d)), v;
|
|
11633
11633
|
return t[10] !== m || t[11] !== h || t[12] !== g || t[13] !== _ ? (v = /* @__PURE__ */ (0, q.jsx)("a", {
|
|
11634
11634
|
href: m,
|
|
11635
11635
|
className: h,
|
|
@@ -11644,7 +11644,7 @@ var Px = (e) => {
|
|
|
11644
11644
|
}), t[0] = e, t[1] = n), n;
|
|
11645
11645
|
}, Ix = (e) => {
|
|
11646
11646
|
let t = (0, J.c)(10), { cellId: n, lineNumber: r } = e, i = Nx(), a;
|
|
11647
|
-
t[0] !== n || t[1] !== r ? (a = () =>
|
|
11647
|
+
t[0] !== n || t[1] !== r ? (a = () => Q_(n, r), t[0] = n, t[1] = r, t[2] = a) : a = t[2];
|
|
11648
11648
|
let o;
|
|
11649
11649
|
t[3] !== n || t[4] !== i ? (o = (e) => n === "__scratch__" ? "scratch" : `marimo://${i || "untitled"}#cell=${e}`, t[3] = n, t[4] = i, t[5] = o) : o = t[5];
|
|
11650
11650
|
let s;
|
|
@@ -11658,7 +11658,7 @@ var Px = (e) => {
|
|
|
11658
11658
|
}), t[6] = n, t[7] = a, t[8] = o, t[9] = s) : s = t[9], s;
|
|
11659
11659
|
};
|
|
11660
11660
|
function Lx(e, t, n) {
|
|
11661
|
-
let i =
|
|
11661
|
+
let i = Br.create(e), a = n ? document.getElementById(i) : zr(e), o = a?.classList.contains("has-error");
|
|
11662
11662
|
return a === null ? (r.error(`Cell ${i} not found on page.`), !1) : ((t === "destructive" || o && t === void 0) && (a.classList.add("error-outline"), setTimeout(() => {
|
|
11663
11663
|
a.classList.remove("error-outline");
|
|
11664
11664
|
}, 2e3)), (t === "focus" || !o && t === void 0) && (a.classList.add("focus-outline"), setTimeout(() => {
|
|
@@ -13287,7 +13287,7 @@ function Jw(e) {
|
|
|
13287
13287
|
function Yw(e, { limits: t, pageSize: n }) {
|
|
13288
13288
|
let r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Map();
|
|
13289
13289
|
function a(e, o) {
|
|
13290
|
-
if (!Array.isArray(e) && !
|
|
13290
|
+
if (!Array.isArray(e) && !Yi(e)) return e;
|
|
13291
13291
|
let s = JSON.stringify(o), c = t[s] ?? n, l = Array.isArray(e) ? Array.from({ length: Math.min(e.length, c) }, (e, t) => String(t)) : Object.keys(e).slice(0, c), u = Array.isArray(e) ? e.length : Object.keys(e).length, d = Array.isArray(e) ? [] : Object.create(null);
|
|
13292
13292
|
r.set(d, e);
|
|
13293
13293
|
for (let t of l) Object.defineProperty(d, t, {
|
|
@@ -13453,7 +13453,7 @@ iT.displayName = hs.displayName;
|
|
|
13453
13453
|
//#region src/components/ui/kbd.tsx
|
|
13454
13454
|
var aT = (e) => {
|
|
13455
13455
|
let t = (0, J.c)(5), n;
|
|
13456
|
-
t[0] === e.className ? n = t[1] : (n =
|
|
13456
|
+
t[0] === e.className ? n = t[1] : (n = Jr(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), t[0] = e.className, t[1] = n);
|
|
13457
13457
|
let r;
|
|
13458
13458
|
return t[2] !== e.children || t[3] !== n ? (r = /* @__PURE__ */ (0, q.jsx)("kbd", {
|
|
13459
13459
|
className: n,
|
|
@@ -13462,7 +13462,7 @@ var aT = (e) => {
|
|
|
13462
13462
|
}, oT = "Fix this notebook error.";
|
|
13463
13463
|
function sT(e, t) {
|
|
13464
13464
|
let n, r;
|
|
13465
|
-
return "errors" in t ? (n = t.errors.map(
|
|
13465
|
+
return "errors" in t ? (n = t.errors.map(Lr).join("\n"), r = t.errors.flatMap((e) => "traceback" in e && e.traceback ? [kr(Cr(e.traceback))] : []).join("\n\n")) : (r = t.tracebackFormat === "html" ? kr(Cr(t.traceback)) : t.traceback, n = r.split("\n").findLast((e) => e.length > 0) ?? ""), {
|
|
13466
13466
|
type: "cell-output",
|
|
13467
13467
|
cell_id: e,
|
|
13468
13468
|
output: {
|
|
@@ -13492,7 +13492,7 @@ function fT(e) {
|
|
|
13492
13492
|
function pT(e) {
|
|
13493
13493
|
return uT.test(e);
|
|
13494
13494
|
}
|
|
13495
|
-
|
|
13495
|
+
li(null);
|
|
13496
13496
|
var mT = "packages-install-input", hT = () => {
|
|
13497
13497
|
requestAnimationFrame(() => {
|
|
13498
13498
|
let e = document.getElementById(mT);
|
|
@@ -13500,8 +13500,8 @@ var mT = "packages-install-input", hT = () => {
|
|
|
13500
13500
|
});
|
|
13501
13501
|
}, gT = (e) => {
|
|
13502
13502
|
e.openApplication("packages"), hT();
|
|
13503
|
-
}, _T = "marimo:ai:chatState:v5", vT =
|
|
13504
|
-
|
|
13503
|
+
}, _T = "marimo:ai:chatState:v5", vT = li(null), yT = li(null);
|
|
13504
|
+
li(!1), si("marimo:ai:chatOptions", { webSearch: !1 }, ce), si("marimo:ai:includeOtherCells", !0, ce);
|
|
13505
13505
|
function bT(e) {
|
|
13506
13506
|
let t = /* @__PURE__ */ new Map();
|
|
13507
13507
|
for (let [n, r] of e.entries()) {
|
|
@@ -13514,7 +13514,7 @@ function bT(e) {
|
|
|
13514
13514
|
}
|
|
13515
13515
|
return t;
|
|
13516
13516
|
}
|
|
13517
|
-
var xT =
|
|
13517
|
+
var xT = ue({
|
|
13518
13518
|
toSerializable: (e) => ({
|
|
13519
13519
|
chats: [...bT(e.chats).entries()],
|
|
13520
13520
|
activeChatId: e.activeChatId
|
|
@@ -13523,7 +13523,7 @@ var xT = de({
|
|
|
13523
13523
|
chats: new Map(e.chats),
|
|
13524
13524
|
activeChatId: e.activeChatId
|
|
13525
13525
|
})
|
|
13526
|
-
}), ST =
|
|
13526
|
+
}), ST = si(_T, {
|
|
13527
13527
|
chats: /* @__PURE__ */ new Map(),
|
|
13528
13528
|
activeChatId: null
|
|
13529
13529
|
}, {
|
|
@@ -13542,7 +13542,7 @@ var xT = de({
|
|
|
13542
13542
|
}
|
|
13543
13543
|
}
|
|
13544
13544
|
});
|
|
13545
|
-
|
|
13545
|
+
li((e) => {
|
|
13546
13546
|
let t = e(ST);
|
|
13547
13547
|
return t.activeChatId ? t.chats.get(t.activeChatId) : null;
|
|
13548
13548
|
}, (e, t, n) => {
|
|
@@ -13595,7 +13595,7 @@ function ET(e, t) {
|
|
|
13595
13595
|
description: "Make this cell's variables local by wrapping the cell in a function.",
|
|
13596
13596
|
fixType: "manual",
|
|
13597
13597
|
onFix: async (e) => {
|
|
13598
|
-
|
|
13598
|
+
Zi(e.editor, "Editor is null");
|
|
13599
13599
|
let t = wT(e.editor.state.doc.toString());
|
|
13600
13600
|
e.editor.dispatch({ changes: {
|
|
13601
13601
|
from: 0,
|
|
@@ -13622,7 +13622,7 @@ function ET(e, t) {
|
|
|
13622
13622
|
description: "Fix the SQL statement",
|
|
13623
13623
|
fixType: "ai",
|
|
13624
13624
|
onFix: async (t) => {
|
|
13625
|
-
let n =
|
|
13625
|
+
let n = re(t.cellId, Pi), r = `Fix the SQL statement: ${e.msg}.`;
|
|
13626
13626
|
n && (r += `\nDatabase schema: ${n}`), t.aiFix?.setAiCompletionCell({
|
|
13627
13627
|
cellId: t.cellId,
|
|
13628
13628
|
initialPrompt: r,
|
|
@@ -13659,11 +13659,11 @@ var OT = {
|
|
|
13659
13659
|
os: "os",
|
|
13660
13660
|
re: "re",
|
|
13661
13661
|
sys: "sys"
|
|
13662
|
-
}, kT =
|
|
13662
|
+
}, kT = si("marimo:acp:sessions:v1", {
|
|
13663
13663
|
sessions: [],
|
|
13664
13664
|
activeTabId: null
|
|
13665
|
-
},
|
|
13666
|
-
|
|
13665
|
+
}, ce);
|
|
13666
|
+
li((e) => {
|
|
13667
13667
|
let t = e(kT);
|
|
13668
13668
|
return t.activeTabId && t.sessions.find((e) => e.tabId === t.activeTabId) || null;
|
|
13669
13669
|
}, (e, t, n) => {
|
|
@@ -13681,11 +13681,11 @@ var AT = (e) => {
|
|
|
13681
13681
|
case "edit": return "edit_model";
|
|
13682
13682
|
}
|
|
13683
13683
|
}, jT = () => {
|
|
13684
|
-
let e = (0, J.c)(10), t =
|
|
13684
|
+
let e = (0, J.c)(10), t = ni(Mi), { saveUserConfig: n } = Tr(), r;
|
|
13685
13685
|
e[0] !== n || e[1] !== t ? (r = async (e) => {
|
|
13686
13686
|
let r = { ai: e };
|
|
13687
13687
|
await n({ config: r }).then(() => {
|
|
13688
|
-
t((e) =>
|
|
13688
|
+
t((e) => Ni(e, r));
|
|
13689
13689
|
});
|
|
13690
13690
|
}, e[0] = n, e[1] = t, e[2] = r) : r = e[2];
|
|
13691
13691
|
let i = r, a;
|
|
@@ -13702,9 +13702,9 @@ var AT = (e) => {
|
|
|
13702
13702
|
saveModelChange: o,
|
|
13703
13703
|
saveModeChange: c
|
|
13704
13704
|
}, e[7] = c, e[8] = o, e[9] = l) : l = e[9], l;
|
|
13705
|
-
}, MT =
|
|
13705
|
+
}, MT = si("marimo:chrome:ai-panel-tab", "chat", ce);
|
|
13706
13706
|
function NT() {
|
|
13707
|
-
let e = (0, J.c)(3), [t, n] =
|
|
13707
|
+
let e = (0, J.c)(3), [t, n] = ci(MT), r;
|
|
13708
13708
|
return e[0] !== t || e[1] !== n ? (r = {
|
|
13709
13709
|
aiPanelTab: t,
|
|
13710
13710
|
setAiPanelTab: n
|
|
@@ -13714,12 +13714,12 @@ function NT() {
|
|
|
13714
13714
|
//#region src/components/editor/chrome/wrapper/useOpenAiAssistant.ts
|
|
13715
13715
|
var PT = "code_mode";
|
|
13716
13716
|
function FT(e, t) {
|
|
13717
|
-
return e || (
|
|
13717
|
+
return e || (ae("external_agents") ? t : "chat");
|
|
13718
13718
|
}
|
|
13719
13719
|
function IT() {
|
|
13720
|
-
let e = (0, J.c)(6), { openApplication: t } =
|
|
13720
|
+
let e = (0, J.c)(6), { openApplication: t } = ie(), { setAiPanelTab: n } = NT(), { saveModeChange: r } = jT(), i = ni(yT), a = ii(), o;
|
|
13721
13721
|
return e[0] !== t || e[1] !== r || e[2] !== n || e[3] !== i || e[4] !== a ? (o = async (e) => {
|
|
13722
|
-
let o = FT(e.panel, a.get(MT)), s = a.get(
|
|
13722
|
+
let o = FT(e.panel, a.get(MT)), s = a.get(pi), c = ae("external_agents") && a.get(kT).sessions.length > 0;
|
|
13723
13723
|
(o === "agents" ? c : s) ? (e.panel && n(e.panel), o === "chat" && await r(PT).catch(LT), i({
|
|
13724
13724
|
prompt: e.prompt,
|
|
13725
13725
|
submit: e.submit ?? !1
|
|
@@ -13728,16 +13728,16 @@ function IT() {
|
|
|
13728
13728
|
description: o === "agents" ? "Start an agent session or switch to the chat panel." : "Configure an AI provider and chat model to fix with AI.",
|
|
13729
13729
|
variant: "danger"
|
|
13730
13730
|
});
|
|
13731
|
-
}, e[0] = t, e[1] = r, e[2] = n, e[3] = i, e[4] = a, e[5] = o) : o = e[5],
|
|
13731
|
+
}, e[0] = t, e[1] = r, e[2] = n, e[3] = i, e[4] = a, e[5] = o) : o = e[5], Qi(o);
|
|
13732
13732
|
}
|
|
13733
13733
|
function LT() {
|
|
13734
13734
|
return r.error("Failed to save mode change");
|
|
13735
13735
|
}
|
|
13736
13736
|
//#endregion
|
|
13737
13737
|
//#region src/components/editor/errors/fix-mode.ts
|
|
13738
|
-
var RT =
|
|
13738
|
+
var RT = si("marimo:ai-autofix-mode", "autofix", ce);
|
|
13739
13739
|
function zT() {
|
|
13740
|
-
let e = (0, J.c)(3), [t, n] =
|
|
13740
|
+
let e = (0, J.c)(3), [t, n] = ci(RT), r;
|
|
13741
13741
|
return e[0] !== t || e[1] !== n ? (r = {
|
|
13742
13742
|
fixMode: t,
|
|
13743
13743
|
setFixMode: n
|
|
@@ -13751,16 +13751,16 @@ function BT(e, t) {
|
|
|
13751
13751
|
return n ? `My code gives the following error. Please fix it:\n\n${n}` : "Please fix this error.";
|
|
13752
13752
|
}
|
|
13753
13753
|
var VT = (e) => {
|
|
13754
|
-
let t = (0, J.c)(25), { errors: n, cellId: r, className: a } = e, o =
|
|
13754
|
+
let t = (0, J.c)(25), { errors: n, cellId: r, className: a } = e, o = ii(), { createCell: s } = _e(), c = ei(bi), l;
|
|
13755
13755
|
if (t[0] !== c || t[1] !== n) {
|
|
13756
13756
|
let e;
|
|
13757
13757
|
t[3] === c ? e = t[4] : (e = (e) => ET(e, { aiEnabled: c }), t[3] = c, t[4] = e), l = n.flatMap(e), t[0] = c, t[1] = n, t[2] = l;
|
|
13758
13758
|
} else l = t[2];
|
|
13759
|
-
let d = l, f =
|
|
13759
|
+
let d = l, f = ni(vT), p = IT();
|
|
13760
13760
|
if (d.length === 0) return null;
|
|
13761
13761
|
let m = d[0], h;
|
|
13762
13762
|
t[5] !== r || t[6] !== s || t[7] !== m || t[8] !== f || t[9] !== o ? (h = (e) => {
|
|
13763
|
-
let t = o.get(
|
|
13763
|
+
let t = o.get(Nr).cellHandles[r].current?.editorView;
|
|
13764
13764
|
m.onFix({
|
|
13765
13765
|
addCodeBelow: (e) => {
|
|
13766
13766
|
s({
|
|
@@ -13789,7 +13789,7 @@ var VT = (e) => {
|
|
|
13789
13789
|
openPrompt: () => g(!1),
|
|
13790
13790
|
applyAutofix: () => g(!0),
|
|
13791
13791
|
openChat: v
|
|
13792
|
-
}) : /* @__PURE__ */ (0, q.jsx)(
|
|
13792
|
+
}) : /* @__PURE__ */ (0, q.jsx)(we, {
|
|
13793
13793
|
content: m.description,
|
|
13794
13794
|
align: "start",
|
|
13795
13795
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
@@ -13797,17 +13797,17 @@ var VT = (e) => {
|
|
|
13797
13797
|
variant: "outline",
|
|
13798
13798
|
className: "font-normal",
|
|
13799
13799
|
onClick: () => g(!1),
|
|
13800
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
13800
|
+
children: [/* @__PURE__ */ (0, q.jsx)(x, { className: "h-3 w-3 mr-2" }), m.title]
|
|
13801
13801
|
})
|
|
13802
13802
|
}), t[16] = m.description, t[17] = m.fixType, t[18] = m.title, t[19] = g, t[20] = v, t[21] = b) : b = t[21];
|
|
13803
|
-
let
|
|
13804
|
-
return t[22] !== y || t[23] !== b ? (
|
|
13803
|
+
let S;
|
|
13804
|
+
return t[22] !== y || t[23] !== b ? (S = /* @__PURE__ */ (0, q.jsx)("div", {
|
|
13805
13805
|
className: y,
|
|
13806
13806
|
children: b
|
|
13807
|
-
}), t[22] = y, t[23] = b, t[24] =
|
|
13807
|
+
}), t[22] = y, t[23] = b, t[24] = S) : S = t[24], S;
|
|
13808
13808
|
}, HT = {
|
|
13809
13809
|
autofix: {
|
|
13810
|
-
Icon:
|
|
13810
|
+
Icon: x,
|
|
13811
13811
|
title: "Inline AI Fix",
|
|
13812
13812
|
description: "Apply AI fixes inline in the cell"
|
|
13813
13813
|
},
|
|
@@ -13817,7 +13817,7 @@ var VT = (e) => {
|
|
|
13817
13817
|
description: "Open the AI sidebar to fix"
|
|
13818
13818
|
},
|
|
13819
13819
|
prompt: {
|
|
13820
|
-
Icon:
|
|
13820
|
+
Icon: oe,
|
|
13821
13821
|
title: "Suggest a prompt",
|
|
13822
13822
|
description: "Edit the prompt before applying"
|
|
13823
13823
|
}
|
|
@@ -13839,7 +13839,7 @@ var VT = (e) => {
|
|
|
13839
13839
|
children: [f, d]
|
|
13840
13840
|
}), t[2] = c, t[3] = f, t[4] = d, t[5] = p) : p = t[5];
|
|
13841
13841
|
let m;
|
|
13842
|
-
t[6] !== p || t[7] !== n ? (m = /* @__PURE__ */ (0, q.jsx)(
|
|
13842
|
+
t[6] !== p || t[7] !== n ? (m = /* @__PURE__ */ (0, q.jsx)(we, {
|
|
13843
13843
|
content: n,
|
|
13844
13844
|
align: "start",
|
|
13845
13845
|
children: p
|
|
@@ -13930,7 +13930,7 @@ var VT = (e) => {
|
|
|
13930
13930
|
children: n.name
|
|
13931
13931
|
}), t[7] = n.name, t[8] = s);
|
|
13932
13932
|
let c;
|
|
13933
|
-
return t[9] !== s || t[10] !== o ? (c = /* @__PURE__ */ (0, q.jsx)(
|
|
13933
|
+
return t[9] !== s || t[10] !== o ? (c = /* @__PURE__ */ (0, q.jsx)(we, {
|
|
13934
13934
|
content: o,
|
|
13935
13935
|
children: s
|
|
13936
13936
|
}), t[9] = s, t[10] = o, t[11] = c) : c = t[11], c;
|
|
@@ -13945,13 +13945,13 @@ function JT(e, t) {
|
|
|
13945
13945
|
}
|
|
13946
13946
|
//#endregion
|
|
13947
13947
|
//#region src/core/notebook/attachments.ts
|
|
13948
|
-
var YT = [], XT =
|
|
13949
|
-
let t = e(
|
|
13948
|
+
var YT = [], XT = li((e) => {
|
|
13949
|
+
let t = e($r);
|
|
13950
13950
|
return t ? e(t.attachmentsAtom) : YT;
|
|
13951
13951
|
});
|
|
13952
13952
|
function ZT(e) {
|
|
13953
13953
|
let t = (0, J.c)(2), n;
|
|
13954
|
-
return t[0] === e ? n = t[1] : (n = e === void 0 ? XT :
|
|
13954
|
+
return t[0] === e ? n = t[1] : (n = e === void 0 ? XT : Zr(XT, (t) => t.filter((t) => t.kind === e), ai), t[0] = e, t[1] = n), ei(n);
|
|
13955
13955
|
}
|
|
13956
13956
|
function QT(e) {
|
|
13957
13957
|
return e.name || "Agent";
|
|
@@ -13965,18 +13965,18 @@ function $T(e) {
|
|
|
13965
13965
|
});
|
|
13966
13966
|
window.setTimeout(n, t);
|
|
13967
13967
|
}
|
|
13968
|
-
|
|
13969
|
-
command:
|
|
13970
|
-
hostEnabled:
|
|
13971
|
-
templates:
|
|
13972
|
-
prompt:
|
|
13973
|
-
notebook:
|
|
13974
|
-
session:
|
|
13975
|
-
token_file:
|
|
13976
|
-
token:
|
|
13968
|
+
ki({
|
|
13969
|
+
command: Ei(),
|
|
13970
|
+
hostEnabled: Oi().default(!1),
|
|
13971
|
+
templates: ki({
|
|
13972
|
+
prompt: Ei(),
|
|
13973
|
+
notebook: Ei(),
|
|
13974
|
+
session: Ei(),
|
|
13975
|
+
token_file: Ei(),
|
|
13976
|
+
token: Ei()
|
|
13977
13977
|
})
|
|
13978
13978
|
});
|
|
13979
|
-
var eE =
|
|
13979
|
+
var eE = li(void 0);
|
|
13980
13980
|
//#endregion
|
|
13981
13981
|
//#region src/core/network/api.ts
|
|
13982
13982
|
function tE() {
|
|
@@ -14002,7 +14002,7 @@ function rE(e) {
|
|
|
14002
14002
|
}
|
|
14003
14003
|
var iE = {
|
|
14004
14004
|
post(e, t, n = {}) {
|
|
14005
|
-
let i = `${
|
|
14005
|
+
let i = `${Gr.withTrailingSlash(n.baseUrl ?? tE())}api${e}`;
|
|
14006
14006
|
return fetch(i, {
|
|
14007
14007
|
method: "POST",
|
|
14008
14008
|
headers: {
|
|
@@ -14016,7 +14016,7 @@ var iE = {
|
|
|
14016
14016
|
let t = e.headers.get("Content-Type")?.startsWith("application/json");
|
|
14017
14017
|
if (!e.ok) {
|
|
14018
14018
|
let n = t ? await e.json() : await e.text();
|
|
14019
|
-
throw new
|
|
14019
|
+
throw new Vi(e.status, e.statusText, n);
|
|
14020
14020
|
}
|
|
14021
14021
|
return t ? e.json() : e.text();
|
|
14022
14022
|
}).catch((e) => {
|
|
@@ -14024,7 +14024,7 @@ var iE = {
|
|
|
14024
14024
|
});
|
|
14025
14025
|
},
|
|
14026
14026
|
get(e, t = {}) {
|
|
14027
|
-
let n = `${
|
|
14027
|
+
let n = `${Gr.withTrailingSlash(t.baseUrl ?? tE())}api${e}`;
|
|
14028
14028
|
return fetch(n, {
|
|
14029
14029
|
method: "GET",
|
|
14030
14030
|
headers: {
|
|
@@ -14032,7 +14032,7 @@ var iE = {
|
|
|
14032
14032
|
...t.headers
|
|
14033
14033
|
}
|
|
14034
14034
|
}).then((e) => {
|
|
14035
|
-
if (!e.ok) throw new
|
|
14035
|
+
if (!e.ok) throw new Vi(e.status, e.statusText);
|
|
14036
14036
|
return e.headers.get("Content-Type")?.startsWith("application/json") ? e.json() : null;
|
|
14037
14037
|
}).catch((e) => {
|
|
14038
14038
|
throw r.error(`Error requesting ${n}`, e), e;
|
|
@@ -14041,7 +14041,7 @@ var iE = {
|
|
|
14041
14041
|
headers() {
|
|
14042
14042
|
return fr().headers();
|
|
14043
14043
|
},
|
|
14044
|
-
handleResponse: (e) => e.error ? Promise.reject(new
|
|
14044
|
+
handleResponse: (e) => e.error ? Promise.reject(new Vi(e.response.status, e.response.statusText, e.error)) : Promise.resolve(e.data),
|
|
14045
14045
|
handleExportResponse: async (e, t) => {
|
|
14046
14046
|
let n = await iE.handleResponse(e), r = e.response.headers.get("Content-Type");
|
|
14047
14047
|
if (!r) throw Error("Export response is missing a media type");
|
|
@@ -14051,12 +14051,12 @@ var iE = {
|
|
|
14051
14051
|
mediaType: r
|
|
14052
14052
|
};
|
|
14053
14053
|
},
|
|
14054
|
-
handleResponseReturnNull: (e) => e.error ? Promise.reject(new
|
|
14054
|
+
handleResponseReturnNull: (e) => e.error ? Promise.reject(new Vi(e.response.status, e.response.statusText, e.error)) : Promise.resolve(null)
|
|
14055
14055
|
};
|
|
14056
14056
|
//#endregion
|
|
14057
14057
|
//#region src/components/editor/errors/send-error-report-button.tsx
|
|
14058
14058
|
function aE({ getContent: e }) {
|
|
14059
|
-
let t =
|
|
14059
|
+
let t = ei(eE)?.hostEnabled, n = ZT("agent"), r = ei(dr), [i, a] = (0, K.useState)(!1);
|
|
14060
14060
|
return t ? /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
14061
14061
|
size: "xs",
|
|
14062
14062
|
variant: "outline",
|
|
@@ -14069,8 +14069,8 @@ function aE({ getContent: e }) {
|
|
|
14069
14069
|
} catch (e) {
|
|
14070
14070
|
$T({
|
|
14071
14071
|
variant: "danger",
|
|
14072
|
-
title: e instanceof
|
|
14073
|
-
description:
|
|
14072
|
+
title: e instanceof Vi && e.status === 409 ? "No agent attached" : "Could not send error",
|
|
14073
|
+
description: Ri(e)
|
|
14074
14074
|
});
|
|
14075
14075
|
} finally {
|
|
14076
14076
|
a(!1);
|
|
@@ -14095,15 +14095,15 @@ function oE() {
|
|
|
14095
14095
|
//#endregion
|
|
14096
14096
|
//#region src/components/editor/actions/useRestartKernel.tsx
|
|
14097
14097
|
function sE() {
|
|
14098
|
-
let e = (0, J.c)(4), { openConfirm: t } = Mx(), n =
|
|
14098
|
+
let e = (0, J.c)(4), { openConfirm: t } = Mx(), n = ni(ea), { sendRestart: r } = Tr(), i;
|
|
14099
14099
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = () => {
|
|
14100
14100
|
t({
|
|
14101
14101
|
title: "Restart Kernel",
|
|
14102
14102
|
description: "This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",
|
|
14103
14103
|
variant: "destructive",
|
|
14104
|
-
confirmAction: /* @__PURE__ */ (0, q.jsx)(
|
|
14104
|
+
confirmAction: /* @__PURE__ */ (0, q.jsx)(Ii, {
|
|
14105
14105
|
onClick: async () => {
|
|
14106
|
-
n({ state:
|
|
14106
|
+
n({ state: ca.CLOSING }), await r(), oE();
|
|
14107
14107
|
},
|
|
14108
14108
|
"aria-label": "Confirm Restart",
|
|
14109
14109
|
children: "Restart"
|
|
@@ -14115,7 +14115,7 @@ function sE() {
|
|
|
14115
14115
|
//#region src/core/packages/toast-components.tsx
|
|
14116
14116
|
var cE = "Your dependency changes are saved. Restart the kernel to use the updated environment. Restarting clears in-memory variables.", lE = () => {
|
|
14117
14117
|
let e = (0, J.c)(2), t = sE(), n;
|
|
14118
|
-
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ (0, q.jsx)(
|
|
14118
|
+
return e[0] === t ? n = e[1] : (n = /* @__PURE__ */ (0, q.jsx)(Ji, {
|
|
14119
14119
|
altText: "Restart the kernel to use the updated dependencies",
|
|
14120
14120
|
onClick: t,
|
|
14121
14121
|
children: "Restart Kernel"
|
|
@@ -14154,7 +14154,7 @@ var cE = "Your dependency changes are saved. Restart the kernel to use the updat
|
|
|
14154
14154
|
//#endregion
|
|
14155
14155
|
//#region src/core/packages/useInstallPackage.ts
|
|
14156
14156
|
function fE() {
|
|
14157
|
-
let [e, t] = (0, K.useState)(!1), { addPackage: n } =
|
|
14157
|
+
let [e, t] = (0, K.useState)(!1), { addPackage: n } = Tr();
|
|
14158
14158
|
return {
|
|
14159
14159
|
loading: e,
|
|
14160
14160
|
handleInstallPackages: async (e, i) => {
|
|
@@ -14172,7 +14172,7 @@ function fE() {
|
|
|
14172
14172
|
}
|
|
14173
14173
|
//#endregion
|
|
14174
14174
|
//#region src/components/editor/output/console/text-rendering.tsx
|
|
14175
|
-
var pE = new
|
|
14175
|
+
var pE = new Ar(), mE = (e) => {
|
|
14176
14176
|
let t = /* @__PURE__ */ RegExp("\x1B\\[[0-9;]*m", "g");
|
|
14177
14177
|
return e.replaceAll(t, "");
|
|
14178
14178
|
}, hE = /(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi;
|
|
@@ -14205,7 +14205,7 @@ function gE(e) {
|
|
|
14205
14205
|
function _E(e, t = "") {
|
|
14206
14206
|
if (!e) return null;
|
|
14207
14207
|
if (!/https?:\/\//.test(e)) return e;
|
|
14208
|
-
let n =
|
|
14208
|
+
let n = Hr(e);
|
|
14209
14209
|
return n.length === 1 && n[0].type === "text" ? e : /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: n.map((e, n) => {
|
|
14210
14210
|
let r = t ? `${t}-${n}` : n;
|
|
14211
14211
|
if (e.type === "url" || e.type === "image") {
|
|
@@ -14235,7 +14235,7 @@ var vE = (e) => {
|
|
|
14235
14235
|
children: r
|
|
14236
14236
|
}), t[3] = r, t[4] = a, t[5] = o) : o = t[5], o;
|
|
14237
14237
|
}, yE = (e) => {
|
|
14238
|
-
if (!(e instanceof
|
|
14238
|
+
if (!(e instanceof O.Text)) return;
|
|
14239
14239
|
let t = mE(e.data);
|
|
14240
14240
|
if (!/(pip\s+install|uv\s+add|uv\s+pip\s+install)/i.test(t)) return;
|
|
14241
14241
|
let n = [], r = /(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi, i;
|
|
@@ -14265,7 +14265,7 @@ var vE = (e) => {
|
|
|
14265
14265
|
}
|
|
14266
14266
|
return /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: a });
|
|
14267
14267
|
}, bE = (e) => {
|
|
14268
|
-
if (!(e instanceof
|
|
14268
|
+
if (!(e instanceof O.Text)) return;
|
|
14269
14269
|
let t = e.data;
|
|
14270
14270
|
if (!/https?:\/\//.test(t)) return;
|
|
14271
14271
|
let n = _E(t);
|
|
@@ -14276,7 +14276,7 @@ var vE = (e) => {
|
|
|
14276
14276
|
if (e !== void 0) return e;
|
|
14277
14277
|
}
|
|
14278
14278
|
}, SE = (e, t) => {
|
|
14279
|
-
let n = pE.ansi_to_html(e), r =
|
|
14279
|
+
let n = pE.ansi_to_html(e), r = w(n, { replace: (e) => t(e) });
|
|
14280
14280
|
return /* @__PURE__ */ (0, q.jsx)("span", { children: r });
|
|
14281
14281
|
}, CE = (e) => {
|
|
14282
14282
|
let t = (0, J.c)(2), { text: n } = e, r;
|
|
@@ -14336,7 +14336,7 @@ var vE = (e) => {
|
|
|
14336
14336
|
children: a
|
|
14337
14337
|
}), t[7] = e.className, t[8] = a, t[9] = o) : o = t[9], o;
|
|
14338
14338
|
}, EE = (e) => {
|
|
14339
|
-
let t = (0, J.c)(47), { errors: n, cellId: r, code: a, className: o } = e, s =
|
|
14339
|
+
let t = (0, J.c)(47), { errors: n, cellId: r, code: a, className: o } = e, s = ie(), c = ei(ui).display.cell_output === "above", l = ei(ta).mode !== "edit", d = "This cell wasn't run because it has errors", f = "destructive", p = "text-error", m = null;
|
|
14340
14340
|
if (n.some(DE)) d = "Interrupted";
|
|
14341
14341
|
else if (n.some(OE)) d = "An internal error occurred";
|
|
14342
14342
|
else if (n.some(kE)) d = "Ancestor prevented from running", f = "default", p = "text-secondary-foreground";
|
|
@@ -14351,7 +14351,7 @@ var vE = (e) => {
|
|
|
14351
14351
|
}
|
|
14352
14352
|
let h, g, _, v, y, b, x;
|
|
14353
14353
|
if (t[2] !== f || t[3] !== r || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== l || t[9] !== m || t[10] !== p || t[11] !== d) {
|
|
14354
|
-
let e = n.filter(PE), a = n.filter(FE), S = n.filter(IE), C = n.filter(LE), w = n.filter(RE), T = n.filter(zE), E = n.filter(BE),
|
|
14354
|
+
let e = n.filter(PE), a = n.filter(FE), S = n.filter(IE), C = n.filter(LE), w = n.filter(RE), T = n.filter(zE), E = n.filter(BE), D = n.filter(VE), O = n.filter(HE), A = n.filter(UE), j = n.filter(WE), N = n.filter(GE), P = n.filter(KE), F = n.filter(qE), I;
|
|
14355
14355
|
t[19] === n ? I = t[20] : (I = n.filter(JE), t[19] = n, t[20] = I), g = I;
|
|
14356
14356
|
let L;
|
|
14357
14357
|
t[21] === s ? L = t[22] : (L = () => {
|
|
@@ -14359,10 +14359,10 @@ var vE = (e) => {
|
|
|
14359
14359
|
}, t[21] = s, t[22] = L);
|
|
14360
14360
|
let R = L, z = () => {
|
|
14361
14361
|
let t = [];
|
|
14362
|
-
if (
|
|
14363
|
-
let e =
|
|
14362
|
+
if (j.length > 0 || N.length > 0) {
|
|
14363
|
+
let e = j.some(YE), n = !e && j.some(XE);
|
|
14364
14364
|
t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [
|
|
14365
|
-
|
|
14365
|
+
j.map(ZE),
|
|
14366
14366
|
N.map(QE),
|
|
14367
14367
|
e && /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
14368
14368
|
size: "xs",
|
|
@@ -14379,7 +14379,7 @@ var vE = (e) => {
|
|
|
14379
14379
|
children: [/* @__PURE__ */ (0, q.jsx)(bo, { className: "h-3.5 w-3.5 mr-1.5" }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Open terminal" })]
|
|
14380
14380
|
}),
|
|
14381
14381
|
r && /* @__PURE__ */ (0, q.jsx)(VT, {
|
|
14382
|
-
errors: [...
|
|
14382
|
+
errors: [...j, ...N],
|
|
14383
14383
|
cellId: r
|
|
14384
14384
|
})
|
|
14385
14385
|
] }, "syntax-unknown"));
|
|
@@ -14521,7 +14521,7 @@ var vE = (e) => {
|
|
|
14521
14521
|
variant: "link",
|
|
14522
14522
|
className: "my-2 font-normal mx-0 px-0",
|
|
14523
14523
|
onClick: R,
|
|
14524
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
14524
|
+
children: [/* @__PURE__ */ (0, q.jsx)(M, { className: "h-3" }), /* @__PURE__ */ (0, q.jsx)("span", { children: "Try the scratchpad" })]
|
|
14525
14525
|
}), /* @__PURE__ */ (0, q.jsx)("span", { children: "to experiment without restrictions on variable names." })]
|
|
14526
14526
|
})
|
|
14527
14527
|
})
|
|
@@ -14650,11 +14650,11 @@ var vE = (e) => {
|
|
|
14650
14650
|
cellId: r
|
|
14651
14651
|
}),
|
|
14652
14652
|
/* @__PURE__ */ (0, q.jsx)(TE, { children: E.some(lD) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution." })
|
|
14653
|
-
] }, "strict-exception")),
|
|
14654
|
-
errors:
|
|
14653
|
+
] }, "strict-exception")), D.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [D.map(uD), r && /* @__PURE__ */ (0, q.jsx)(VT, {
|
|
14654
|
+
errors: D,
|
|
14655
14655
|
cellId: r
|
|
14656
|
-
})] }, "internal")),
|
|
14657
|
-
errors:
|
|
14656
|
+
})] }, "internal")), O.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [O.map(dD), r && /* @__PURE__ */ (0, q.jsx)(VT, {
|
|
14657
|
+
errors: O,
|
|
14658
14658
|
cellId: r
|
|
14659
14659
|
})] }, "ancestor-prevented")), A.length > 0 && t.push(/* @__PURE__ */ (0, q.jsxs)("div", { children: [A.map(fD), r && /* @__PURE__ */ (0, q.jsx)(VT, {
|
|
14660
14660
|
errors: A,
|
|
@@ -14667,24 +14667,24 @@ var vE = (e) => {
|
|
|
14667
14667
|
}, B;
|
|
14668
14668
|
t[23] === m ? B = t[24] : (B = m && /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
14669
14669
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
14670
|
-
children: [m, /* @__PURE__ */ (0, q.jsx)(
|
|
14670
|
+
children: [m, /* @__PURE__ */ (0, q.jsx)(we, {
|
|
14671
14671
|
content: "marimo didn't run this cell because it detected an error.",
|
|
14672
14672
|
delayDuration: 200,
|
|
14673
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
14673
|
+
children: /* @__PURE__ */ (0, q.jsx)(k, { className: "size-3 cursor-help" })
|
|
14674
14674
|
})]
|
|
14675
14675
|
}), t[23] = m, t[24] = B);
|
|
14676
|
-
let
|
|
14677
|
-
t[25] !== p || t[26] !== d ? (
|
|
14676
|
+
let V;
|
|
14677
|
+
t[25] !== p || t[26] !== d ? (V = d && /* @__PURE__ */ (0, q.jsx)(fa, {
|
|
14678
14678
|
className: `font-code font-medium ${p}`,
|
|
14679
14679
|
children: d
|
|
14680
|
-
}), t[25] = p, t[26] = d, t[27] =
|
|
14681
|
-
let
|
|
14682
|
-
t[28] !== B || t[29] !==
|
|
14680
|
+
}), t[25] = p, t[26] = d, t[27] = V) : V = t[27];
|
|
14681
|
+
let ee;
|
|
14682
|
+
t[28] !== B || t[29] !== V ? (ee = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
14683
14683
|
className: "space-y-0.5",
|
|
14684
|
-
children: [B,
|
|
14685
|
-
}), t[28] = B, t[29] =
|
|
14686
|
-
let
|
|
14687
|
-
h = pa, y = f, t[31] === o ? b = t[32] : (b = i("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[31] = o, t[32] = b), x =
|
|
14684
|
+
children: [B, V]
|
|
14685
|
+
}), t[28] = B, t[29] = V, t[30] = ee) : ee = t[30];
|
|
14686
|
+
let te = ee;
|
|
14687
|
+
h = pa, y = f, t[31] === o ? b = t[32] : (b = i("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[31] = o, t[32] = b), x = te, _ = "flex flex-col gap-4", v = z(), t[2] = f, t[3] = r, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = l, t[9] = m, t[10] = p, t[11] = d, t[12] = h, t[13] = g, t[14] = _, t[15] = v, t[16] = y, t[17] = b, t[18] = x;
|
|
14688
14688
|
} else h = t[12], g = t[13], _ = t[14], v = t[15], y = t[16], b = t[17], x = t[18];
|
|
14689
14689
|
let S;
|
|
14690
14690
|
t[33] !== _ || t[34] !== v ? (S = /* @__PURE__ */ (0, q.jsx)("div", {
|
|
@@ -14917,7 +14917,7 @@ var mD = (e) => {
|
|
|
14917
14917
|
}), t[10] = d, t[11] = f, t[12] = p) : p = t[12], p;
|
|
14918
14918
|
}, hD = (e) => {
|
|
14919
14919
|
let t = (0, J.c)(6), { src: n, className: r } = e;
|
|
14920
|
-
if (
|
|
14920
|
+
if (j()) {
|
|
14921
14921
|
let e;
|
|
14922
14922
|
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ (0, q.jsx)("video", {
|
|
14923
14923
|
className: r,
|
|
@@ -15032,7 +15032,7 @@ var SD = K.lazy(() => import("./vega-embed-container-DAT8OHp9.js").then((e) => (
|
|
|
15032
15032
|
let e = (0, J.c)(1), t;
|
|
15033
15033
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
15034
15034
|
className: "flex items-center gap-2 justify-center",
|
|
15035
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
15035
|
+
children: [/* @__PURE__ */ (0, q.jsx)(S, {
|
|
15036
15036
|
className: "w-10 h-10 animate-spin",
|
|
15037
15037
|
strokeWidth: 1
|
|
15038
15038
|
}), /* @__PURE__ */ (0, q.jsx)("span", { children: "Loading chart..." })]
|
|
@@ -15041,7 +15041,7 @@ var SD = K.lazy(() => import("./vega-embed-container-DAT8OHp9.js").then((e) => (
|
|
|
15041
15041
|
let t = (0, J.c)(2), { error: n } = e, r;
|
|
15042
15042
|
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, q.jsx)("div", {
|
|
15043
15043
|
className: "flex items-center justify-center",
|
|
15044
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
15044
|
+
children: /* @__PURE__ */ (0, q.jsx)(Hi, { error: n })
|
|
15045
15045
|
}), t[0] = n, t[1] = r), r;
|
|
15046
15046
|
}, TD = (e) => {
|
|
15047
15047
|
let t = (0, J.c)(8), { children: n, className: r } = e, a;
|
|
@@ -15284,9 +15284,9 @@ function KD(e, t, n) {
|
|
|
15284
15284
|
try {
|
|
15285
15285
|
if (t) {
|
|
15286
15286
|
let r = new WD(e, t), a = qD(t, n);
|
|
15287
|
-
return i ? `${
|
|
15287
|
+
return i ? `${X_(r, "yyyy-MM-dd HH:mm:ss.SSS")} ${a}` : `${X_(r, "yyyy-MM-dd HH:mm:ss")} ${a}`;
|
|
15288
15288
|
}
|
|
15289
|
-
return i ?
|
|
15289
|
+
return i ? X_(e, "yyyy-MM-dd HH:mm:ss.SSS") : X_(e, "yyyy-MM-dd HH:mm:ss");
|
|
15290
15290
|
} catch (t) {
|
|
15291
15291
|
return r.warn("Failed to parse date", t), e.toISOString();
|
|
15292
15292
|
}
|
|
@@ -15675,7 +15675,7 @@ function sk(e, t, n) {
|
|
|
15675
15675
|
let r = e.options.meta?.rawData;
|
|
15676
15676
|
if (r) {
|
|
15677
15677
|
let e = r[t];
|
|
15678
|
-
if (
|
|
15678
|
+
if (ne(e)) return e[n];
|
|
15679
15679
|
}
|
|
15680
15680
|
}
|
|
15681
15681
|
//#endregion
|
|
@@ -15765,7 +15765,7 @@ function ck(e, t) {
|
|
|
15765
15765
|
operator: "is False"
|
|
15766
15766
|
};
|
|
15767
15767
|
}
|
|
15768
|
-
|
|
15768
|
+
Ur(e);
|
|
15769
15769
|
}
|
|
15770
15770
|
}
|
|
15771
15771
|
//#endregion
|
|
@@ -17400,7 +17400,7 @@ var BA = (e, t) => {
|
|
|
17400
17400
|
case void 0:
|
|
17401
17401
|
case "geometry":
|
|
17402
17402
|
case "unknown": return e;
|
|
17403
|
-
default: return
|
|
17403
|
+
default: return Ur(r), e;
|
|
17404
17404
|
}
|
|
17405
17405
|
};
|
|
17406
17406
|
function VA(e, t) {
|
|
@@ -17498,7 +17498,7 @@ function UA(e) {
|
|
|
17498
17498
|
p = null;
|
|
17499
17499
|
break bb0;
|
|
17500
17500
|
}
|
|
17501
|
-
let m =
|
|
17501
|
+
let m = H[a || "unknown"], h;
|
|
17502
17502
|
t[11] === n ? h = t[12] : (h = n.getColumnFormatting?.(), t[11] = n, t[12] = h);
|
|
17503
17503
|
let g = h;
|
|
17504
17504
|
c = jn, t[13] === m ? f = t[14] : (f = /* @__PURE__ */ (0, q.jsxs)(pn, { children: [/* @__PURE__ */ (0, q.jsx)(m, { className: "mo-dropdown-icon" }), "Format"] }), t[13] = m, t[14] = f), s = Rn, o = Qn, t[15] === r ? l = t[16] : (l = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
@@ -17576,7 +17576,7 @@ function GA(e) {
|
|
|
17576
17576
|
let r;
|
|
17577
17577
|
t[5] === n ? r = t[6] : (r = () => n.pin("left"), t[5] = n, t[6] = r);
|
|
17578
17578
|
let i;
|
|
17579
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, q.jsx)(
|
|
17579
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, q.jsx)(y, { className: "mo-dropdown-icon" }), t[7] = i) : i = t[7];
|
|
17580
17580
|
let a;
|
|
17581
17581
|
t[8] === r ? a = t[9] : (a = /* @__PURE__ */ (0, q.jsxs)(Tn, {
|
|
17582
17582
|
onClick: r,
|
|
@@ -17585,7 +17585,7 @@ function GA(e) {
|
|
|
17585
17585
|
let o;
|
|
17586
17586
|
t[10] === n ? o = t[11] : (o = () => n.pin("right"), t[10] = n, t[11] = o);
|
|
17587
17587
|
let s;
|
|
17588
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(
|
|
17588
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(me, { className: "mo-dropdown-icon" }), t[12] = s) : s = t[12];
|
|
17589
17589
|
let c;
|
|
17590
17590
|
t[13] === o ? c = t[14] : (c = /* @__PURE__ */ (0, q.jsxs)(Tn, {
|
|
17591
17591
|
onClick: o,
|
|
@@ -17891,7 +17891,7 @@ var oj = (e) => {
|
|
|
17891
17891
|
let u = l, d;
|
|
17892
17892
|
t[10] === i ? d = t[11] : (d = /* @__PURE__ */ (0, q.jsx)("span", { children: i }), t[10] = i, t[11] = d);
|
|
17893
17893
|
let f;
|
|
17894
|
-
return t[12] !== u || t[13] !== d ? (f = /* @__PURE__ */ (0, q.jsx)(
|
|
17894
|
+
return t[12] !== u || t[13] !== d ? (f = /* @__PURE__ */ (0, q.jsx)(we, {
|
|
17895
17895
|
content: u,
|
|
17896
17896
|
delayDuration: 200,
|
|
17897
17897
|
children: d
|
|
@@ -18296,9 +18296,9 @@ function xj(e) {
|
|
|
18296
18296
|
if (e.startsWith("./@file") || e.startsWith("/@file")) t = { url: mr(e).href }, n = "source_0";
|
|
18297
18297
|
else if (v(e)) {
|
|
18298
18298
|
n = "data_0";
|
|
18299
|
-
let r =
|
|
18299
|
+
let r = se(e), i = window.atob(r);
|
|
18300
18300
|
t = i.startsWith(bj) ? {
|
|
18301
|
-
values:
|
|
18301
|
+
values: b(r),
|
|
18302
18302
|
format: { type: "arrow" }
|
|
18303
18303
|
} : { values: Pa(i) };
|
|
18304
18304
|
} else t = { values: Pa(e) }, n = "data_0";
|
|
@@ -18933,11 +18933,11 @@ var Rj = class e {
|
|
|
18933
18933
|
}
|
|
18934
18934
|
case "geometry":
|
|
18935
18935
|
case "unknown": return null;
|
|
18936
|
-
default: return
|
|
18936
|
+
default: return Ur(l), null;
|
|
18937
18937
|
}
|
|
18938
18938
|
}
|
|
18939
18939
|
}, zj = K.createContext(Rj.EMPTY), Bj = Na(), Vj = (e) => {
|
|
18940
|
-
let t = (0, J.c)(21), { columnId: n } = e, { locale: r } = Fe(), i = K.use(zj), { theme: a } =
|
|
18940
|
+
let t = (0, J.c)(21), { columnId: n } = e, { locale: r } = Fe(), i = K.use(zj), { theme: a } = Ai(), o, s, c;
|
|
18941
18941
|
if (t[0] !== i || t[1] !== n || t[2] !== r || t[3] !== a) {
|
|
18942
18942
|
let { spec: e, type: l, stats: u } = i.getHeaderSummary(n), d = null;
|
|
18943
18943
|
if (e) {
|
|
@@ -19038,7 +19038,7 @@ var Rj = class e {
|
|
|
19038
19038
|
className: "flex flex-col whitespace-pre",
|
|
19039
19039
|
children: /* @__PURE__ */ (0, q.jsxs)("span", { children: ["nulls: ", zt(u.nulls, r)] })
|
|
19040
19040
|
});
|
|
19041
|
-
default: return
|
|
19041
|
+
default: return Ur(l), null;
|
|
19042
19042
|
}
|
|
19043
19043
|
})(), t[0] = i, t[1] = n, t[2] = r, t[3] = a, t[4] = o, t[5] = s, t[6] = c;
|
|
19044
19044
|
} else o = t[4], s = t[5], c = t[6];
|
|
@@ -19232,7 +19232,7 @@ var eM = (e) => {
|
|
|
19232
19232
|
let u;
|
|
19233
19233
|
t[5] === Symbol.for("react.memo_cache_sentinel") ? (u = () => a(!0), t[5] = u) : u = t[5];
|
|
19234
19234
|
let d;
|
|
19235
|
-
t[6] === n ? d = t[7] : (d = /* @__PURE__ */ (0, q.jsx)(
|
|
19235
|
+
t[6] === n ? d = t[7] : (d = /* @__PURE__ */ (0, q.jsx)(V, {
|
|
19236
19236
|
asChild: !0,
|
|
19237
19237
|
children: /* @__PURE__ */ (0, q.jsx)("div", {
|
|
19238
19238
|
className: "flex max-h-[80px] overflow-hidden cursor-pointer",
|
|
@@ -19294,7 +19294,7 @@ var nM = (e) => {
|
|
|
19294
19294
|
let t = (0, J.c)(4), { content: n, parts: r } = e;
|
|
19295
19295
|
if (tM(n)) {
|
|
19296
19296
|
let e;
|
|
19297
|
-
return t[0] === n ? e = t[1] : (e = /* @__PURE__ */ (0, q.jsx)(
|
|
19297
|
+
return t[0] === n ? e = t[1] : (e = /* @__PURE__ */ (0, q.jsx)(de, { content: n }), t[0] = n, t[1] = e), e;
|
|
19298
19298
|
}
|
|
19299
19299
|
let i;
|
|
19300
19300
|
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ (0, q.jsx)(rM, { parts: r }), t[2] = r, t[3] = i), i;
|
|
@@ -19326,7 +19326,7 @@ var aM = (e) => {
|
|
|
19326
19326
|
className: "text-link hover:underline",
|
|
19327
19327
|
children: a
|
|
19328
19328
|
}), t[1] = a, t[2] = n, t[3] = s) : s = t[3], s;
|
|
19329
|
-
}, oM =
|
|
19329
|
+
}, oM = L, sM = "__m_column__", cM = "__select__", lM = 50;
|
|
19330
19330
|
function uM(e) {
|
|
19331
19331
|
return typeof e == "string" ? ["string", "string"] : typeof e == "number" ? ["number", "number"] : e instanceof Date ? ["datetime", "datetime"] : typeof e == "boolean" ? ["boolean", "boolean"] : ["unknown", "object"];
|
|
19332
19332
|
}
|
|
@@ -19337,7 +19337,7 @@ function dM(e) {
|
|
|
19337
19337
|
typeof e == "object" && e && Object.entries(e).forEach(([e, n]) => {
|
|
19338
19338
|
t[e] || (t[e] = uM(n)), n != null && (t[e] = uM(n));
|
|
19339
19339
|
});
|
|
19340
|
-
}),
|
|
19340
|
+
}), Xi.entries(t);
|
|
19341
19341
|
}
|
|
19342
19342
|
function fM({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: a, textJustifyColumns: o, wrappedColumns: s, headerTooltip: c, showDataTypes: l, calculateTopKRows: u, fractionDigitsByColumn: d, columnWidths: f }) {
|
|
19343
19343
|
let p = new Set(e.map(([e]) => e)), m = new Set(s), h = nO.keyBy(n, (e) => e[0]), g = (t) => {
|
|
@@ -19386,7 +19386,7 @@ function fM({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: a, tex
|
|
|
19386
19386
|
className: i("font-bold", d && "underline decoration-dotted"),
|
|
19387
19387
|
children: e === "" ? " " : e
|
|
19388
19388
|
}), g = /* @__PURE__ */ (0, q.jsx)(ej, {
|
|
19389
|
-
header: d ? /* @__PURE__ */ (0, q.jsx)(
|
|
19389
|
+
header: d ? /* @__PURE__ */ (0, q.jsx)(we, {
|
|
19390
19390
|
content: d,
|
|
19391
19391
|
delayDuration: 300,
|
|
19392
19392
|
children: h
|
|
@@ -19437,14 +19437,14 @@ function fM({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: a, tex
|
|
|
19437
19437
|
return (t === "single" || t === "multi") && b.unshift({
|
|
19438
19438
|
id: cM,
|
|
19439
19439
|
maxSize: 40,
|
|
19440
|
-
header: ({ table: e }) => t === "multi" ? /* @__PURE__ */ (0, q.jsx)(
|
|
19440
|
+
header: ({ table: e }) => t === "multi" ? /* @__PURE__ */ (0, q.jsx)(gr, {
|
|
19441
19441
|
"data-testid": "select-all-checkbox",
|
|
19442
19442
|
checked: e.getIsAllPageRowsSelected(),
|
|
19443
19443
|
onCheckedChange: (t) => e.toggleAllPageRowsSelected(!!t),
|
|
19444
19444
|
"aria-label": "Select all",
|
|
19445
19445
|
className: "mx-1.5 my-4"
|
|
19446
19446
|
}) : null,
|
|
19447
|
-
cell: ({ row: e }) => /* @__PURE__ */ (0, q.jsx)(
|
|
19447
|
+
cell: ({ row: e }) => /* @__PURE__ */ (0, q.jsx)(gr, {
|
|
19448
19448
|
"data-testid": "select-row-checkbox",
|
|
19449
19449
|
checked: e.getIsSelected(),
|
|
19450
19450
|
onCheckedChange: (t) => e.toggleSelected(!!t),
|
|
@@ -19460,7 +19460,7 @@ function fM({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: a, tex
|
|
|
19460
19460
|
}
|
|
19461
19461
|
var pM = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: r, contentClassName: a, scrollable: s = !1, wrapped: c, children: l, buttonText: d }) => {
|
|
19462
19462
|
let f = (0, K.useRef)(null), p = r !== void 0 && (r.leading.length > 0 || r.trailing.length > 0) ? n.slice(r.leading.length, n.length - r.trailing.length) : n;
|
|
19463
|
-
return /* @__PURE__ */ (0, q.jsxs)(B, { children: [/* @__PURE__ */ (0, q.jsx)(
|
|
19463
|
+
return /* @__PURE__ */ (0, q.jsxs)(B, { children: [/* @__PURE__ */ (0, q.jsx)(V, {
|
|
19464
19464
|
ref: f,
|
|
19465
19465
|
className: i(e, "max-w-fit outline-hidden"),
|
|
19466
19466
|
onClick: t,
|
|
@@ -19601,7 +19601,7 @@ function bM({ column: e, renderValue: t, getValue: n, selectCell: a, cellStyles:
|
|
|
19601
19601
|
className: "max-h-64"
|
|
19602
19602
|
})
|
|
19603
19603
|
});
|
|
19604
|
-
let h =
|
|
19604
|
+
let h = Hr(p ? u : n);
|
|
19605
19605
|
return h.every((e) => e.type !== "text") || n.length < lM || f ? /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
19606
19606
|
onClick: a,
|
|
19607
19607
|
className: i(o, f && "whitespace-pre-wrap min-w-[200px]"),
|
|
@@ -19627,7 +19627,7 @@ function bM({ column: e, renderValue: t, getValue: n, selectCell: a, cellStyles:
|
|
|
19627
19627
|
buttonText: "X",
|
|
19628
19628
|
children: /* @__PURE__ */ (0, q.jsx)(nM, {
|
|
19629
19629
|
content: n,
|
|
19630
|
-
parts:
|
|
19630
|
+
parts: Hr(n)
|
|
19631
19631
|
})
|
|
19632
19632
|
});
|
|
19633
19633
|
}
|
|
@@ -21679,7 +21679,7 @@ var SF = (e) => {
|
|
|
21679
21679
|
className: o
|
|
21680
21680
|
}, e), t[6] = o, t[7] = l, t[8] = e, t[9] = n, t[10] = c) : c = t[10];
|
|
21681
21681
|
let u;
|
|
21682
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, q.jsx)(
|
|
21682
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, q.jsx)(Or, { className: "h-5 w-5 text-muted-foreground" }), t[11] = u) : u = t[11];
|
|
21683
21683
|
let f = `max-${s}`, p;
|
|
21684
21684
|
t[12] !== r || t[13] !== a ? (p = (e) => a(r, e), t[12] = r, t[13] = a, t[14] = p) : p = t[14];
|
|
21685
21685
|
let h;
|
|
@@ -21950,7 +21950,7 @@ function zF(e) {
|
|
|
21950
21950
|
...e,
|
|
21951
21951
|
run: () => r(MF(FF(n), e.items.map(BF)))
|
|
21952
21952
|
};
|
|
21953
|
-
default: return
|
|
21953
|
+
default: return qr(e);
|
|
21954
21954
|
}
|
|
21955
21955
|
}, t[8] = r, t[9] = a, t[10] = n, t[11] = l) : l = t[11], e = i.map(l), t[1] = o, t[2] = c, t[3] = r, t[4] = a, t[5] = s, t[6] = n, t[7] = e;
|
|
21956
21956
|
} else e = t[7];
|
|
@@ -22054,7 +22054,7 @@ var GF = {
|
|
|
22054
22054
|
return /* @__PURE__ */ (0, q.jsxs)(B, {
|
|
22055
22055
|
open: a,
|
|
22056
22056
|
onOpenChange: o,
|
|
22057
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22057
|
+
children: [/* @__PURE__ */ (0, q.jsx)(V, {
|
|
22058
22058
|
asChild: !0,
|
|
22059
22059
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
22060
22060
|
type: "button",
|
|
@@ -22118,10 +22118,10 @@ var GF = {
|
|
|
22118
22118
|
}, h = u.trim(), g = a && h !== "" && !p.some(([e]) => String(e) === h), _ = () => {
|
|
22119
22119
|
g && (i([...n, h]), d(""));
|
|
22120
22120
|
}, v = p.length > 0 && p.every(([e]) => n.has(e)), y = v ? !0 : n.size > 0 && "indeterminate";
|
|
22121
|
-
return s ? /* @__PURE__ */ (0, q.jsx)(
|
|
22121
|
+
return s ? /* @__PURE__ */ (0, q.jsx)(le, {
|
|
22122
22122
|
size: "medium",
|
|
22123
22123
|
className: "mx-auto mt-12 mb-10"
|
|
22124
|
-
}) : c ? /* @__PURE__ */ (0, q.jsx)(
|
|
22124
|
+
}) : c ? /* @__PURE__ */ (0, q.jsx)(Hi, {
|
|
22125
22125
|
error: c,
|
|
22126
22126
|
className: "my-10 mx-4"
|
|
22127
22127
|
}) : o ? /* @__PURE__ */ (0, q.jsxs)(ty, {
|
|
@@ -22150,7 +22150,7 @@ var GF = {
|
|
|
22150
22150
|
i([...e]);
|
|
22151
22151
|
},
|
|
22152
22152
|
children: [
|
|
22153
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
22153
|
+
/* @__PURE__ */ (0, q.jsx)(gr, {
|
|
22154
22154
|
checked: y,
|
|
22155
22155
|
"aria-label": "Select all",
|
|
22156
22156
|
className: "mr-3 h-3.5 w-3.5"
|
|
@@ -22172,7 +22172,7 @@ var GF = {
|
|
|
22172
22172
|
className: "not-last:border-b rounded-none px-3",
|
|
22173
22173
|
onSelect: () => m(t),
|
|
22174
22174
|
children: [
|
|
22175
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
22175
|
+
/* @__PURE__ */ (0, q.jsx)(gr, {
|
|
22176
22176
|
checked: i,
|
|
22177
22177
|
"aria-label": "Select row",
|
|
22178
22178
|
className: "mr-3 h-3.5 w-3.5"
|
|
@@ -22282,31 +22282,31 @@ function tI(e) {
|
|
|
22282
22282
|
});
|
|
22283
22283
|
}
|
|
22284
22284
|
var nI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex: i }) => {
|
|
22285
|
-
let a = (0, K.useId)(), o = (0, K.useId)(), s = (0, K.useId)(), c = e.value.type, l = e.value.operator, d = iI(e.value), [f, p] = (0, K.useState)(e.columnId), [m, h] = (0, K.useState)(c), [g, _] = (0, K.useState)(l), [v, y] = (0, K.useState)(d), [b, x] = (0, K.useState)(ZF),
|
|
22285
|
+
let a = (0, K.useId)(), o = (0, K.useId)(), s = (0, K.useId)(), c = e.value.type, l = e.value.operator, d = iI(e.value), [f, p] = (0, K.useState)(e.columnId), [m, h] = (0, K.useState)(c), [g, _] = (0, K.useState)(l), [v, y] = (0, K.useState)(d), [b, x] = (0, K.useState)(ZF), S = tI(t), C = (t) => {
|
|
22286
22286
|
t.id === e.columnId && t.operator === l && y(d);
|
|
22287
|
-
},
|
|
22287
|
+
}, w = (e) => {
|
|
22288
22288
|
if (!e) return;
|
|
22289
22289
|
let n = t.getColumn(e);
|
|
22290
22290
|
if (!n) return;
|
|
22291
22291
|
let r = AO(n), i = g;
|
|
22292
|
-
r !== m && (i = yO[r], h(r), _(i), y(aI(r, i)), x(ZF)), p(e),
|
|
22292
|
+
r !== m && (i = yO[r], h(r), _(i), y(aI(r, i)), x(ZF)), p(e), C({
|
|
22293
22293
|
id: e,
|
|
22294
22294
|
operator: i
|
|
22295
22295
|
});
|
|
22296
|
-
},
|
|
22296
|
+
}, T = (e) => {
|
|
22297
22297
|
_(e);
|
|
22298
22298
|
let t = aI(m, e);
|
|
22299
|
-
t.kind !== v.kind && y(t), x(ZF),
|
|
22299
|
+
t.kind !== v.kind && y(t), x(ZF), C({
|
|
22300
22300
|
id: f,
|
|
22301
22301
|
operator: e
|
|
22302
22302
|
});
|
|
22303
|
-
},
|
|
22303
|
+
}, E = sI({
|
|
22304
22304
|
type: m,
|
|
22305
22305
|
operator: g,
|
|
22306
22306
|
draft: $F(v, b)
|
|
22307
|
-
}),
|
|
22308
|
-
if (!
|
|
22309
|
-
let e =
|
|
22307
|
+
}), D = E === void 0, O = D ? oI(m, g) : "Apply filter", k = () => {
|
|
22308
|
+
if (!E) return;
|
|
22309
|
+
let e = E;
|
|
22310
22310
|
t.setColumnFilters((t) => {
|
|
22311
22311
|
if (i === void 0) return [{
|
|
22312
22312
|
id: f,
|
|
@@ -22318,16 +22318,16 @@ var nI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22318
22318
|
value: e
|
|
22319
22319
|
}, n;
|
|
22320
22320
|
}), r();
|
|
22321
|
-
},
|
|
22321
|
+
}, A = () => {
|
|
22322
22322
|
i !== void 0 && t.setColumnFilters((e) => e.filter((e, t) => t !== i)), r();
|
|
22323
|
-
},
|
|
22323
|
+
}, j = !bO.has(g), M = vO[m], P = (0, K.useRef)(null), F = (0, K.useRef)(null);
|
|
22324
22324
|
return (0, K.useEffect)(() => {
|
|
22325
22325
|
let e = P.current?.querySelector("input, [role=\"spinbutton\"], [role=\"combobox\"], button");
|
|
22326
22326
|
e ? e.focus() : F.current?.focus();
|
|
22327
22327
|
}, [m, g]), /* @__PURE__ */ (0, q.jsxs)("form", {
|
|
22328
22328
|
className: "flex flex-row gap-4 items-end p-3",
|
|
22329
22329
|
onSubmit: (e) => {
|
|
22330
|
-
e.preventDefault(),
|
|
22330
|
+
e.preventDefault(), k();
|
|
22331
22331
|
},
|
|
22332
22332
|
onKeyDownCapture: (e) => {
|
|
22333
22333
|
e.key === "Tab" && e.stopPropagation();
|
|
@@ -22342,11 +22342,11 @@ var nI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22342
22342
|
}), /* @__PURE__ */ (0, q.jsx)(ly, {
|
|
22343
22343
|
id: a,
|
|
22344
22344
|
value: f,
|
|
22345
|
-
onValueChange:
|
|
22345
|
+
onValueChange: w,
|
|
22346
22346
|
multiple: !1,
|
|
22347
22347
|
placeholder: "Select column…",
|
|
22348
22348
|
displayValue: (e) => e,
|
|
22349
|
-
children:
|
|
22349
|
+
children: S.map((e) => /* @__PURE__ */ (0, q.jsx)(uy, {
|
|
22350
22350
|
value: e.id,
|
|
22351
22351
|
children: e.id
|
|
22352
22352
|
}, e.id))
|
|
@@ -22360,19 +22360,19 @@ var nI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22360
22360
|
children: "Operator"
|
|
22361
22361
|
}), /* @__PURE__ */ (0, q.jsxs)(Ze, {
|
|
22362
22362
|
value: g,
|
|
22363
|
-
onValueChange: (e) =>
|
|
22363
|
+
onValueChange: (e) => T(e),
|
|
22364
22364
|
children: [/* @__PURE__ */ (0, q.jsx)(Xe, {
|
|
22365
22365
|
ref: F,
|
|
22366
22366
|
id: o,
|
|
22367
22367
|
className: "h-6 mb-1 bg-transparent",
|
|
22368
22368
|
children: /* @__PURE__ */ (0, q.jsx)(Ve, {})
|
|
22369
|
-
}), /* @__PURE__ */ (0, q.jsx)(Ye, { children:
|
|
22369
|
+
}), /* @__PURE__ */ (0, q.jsx)(Ye, { children: M.map((e) => /* @__PURE__ */ (0, q.jsx)(Ke, {
|
|
22370
22370
|
value: e,
|
|
22371
22371
|
children: MO[e]
|
|
22372
22372
|
}, e)) })]
|
|
22373
22373
|
}, m)]
|
|
22374
22374
|
}),
|
|
22375
|
-
|
|
22375
|
+
j && /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
22376
22376
|
ref: P,
|
|
22377
22377
|
className: "flex flex-col gap-1",
|
|
22378
22378
|
children: [/* @__PURE__ */ (0, q.jsx)("label", {
|
|
@@ -22396,15 +22396,15 @@ var nI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22396
22396
|
/* @__PURE__ */ (0, q.jsxs)("div", {
|
|
22397
22397
|
className: "flex gap-1 mb-1",
|
|
22398
22398
|
children: [
|
|
22399
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
22400
|
-
content:
|
|
22399
|
+
/* @__PURE__ */ (0, q.jsx)(we, {
|
|
22400
|
+
content: O,
|
|
22401
22401
|
children: /* @__PURE__ */ (0, q.jsx)("span", {
|
|
22402
22402
|
className: "inline-flex",
|
|
22403
22403
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
22404
22404
|
type: "submit",
|
|
22405
22405
|
size: "icon",
|
|
22406
22406
|
variant: "ghost",
|
|
22407
|
-
disabled:
|
|
22407
|
+
disabled: D,
|
|
22408
22408
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
22409
22409
|
"aria-label": "Apply filter",
|
|
22410
22410
|
children: /* @__PURE__ */ (0, q.jsx)(Ne, {
|
|
@@ -22414,7 +22414,7 @@ var nI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22414
22414
|
})
|
|
22415
22415
|
})
|
|
22416
22416
|
}),
|
|
22417
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
22417
|
+
/* @__PURE__ */ (0, q.jsx)(we, {
|
|
22418
22418
|
content: "Close without saving",
|
|
22419
22419
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
22420
22420
|
type: "button",
|
|
@@ -22423,22 +22423,22 @@ var nI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22423
22423
|
className: "rounded-full text-muted-foreground hover:text-foreground hover:bg-muted",
|
|
22424
22424
|
onClick: r,
|
|
22425
22425
|
"aria-label": "Close without saving",
|
|
22426
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22426
|
+
children: /* @__PURE__ */ (0, q.jsx)(Kr, {
|
|
22427
22427
|
className: "h-3.5 w-3.5",
|
|
22428
22428
|
"aria-hidden": !0
|
|
22429
22429
|
})
|
|
22430
22430
|
})
|
|
22431
22431
|
}),
|
|
22432
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
22432
|
+
/* @__PURE__ */ (0, q.jsx)(we, {
|
|
22433
22433
|
content: "Remove filter",
|
|
22434
22434
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
22435
22435
|
type: "button",
|
|
22436
22436
|
size: "icon",
|
|
22437
22437
|
variant: "ghost",
|
|
22438
22438
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
22439
|
-
onClick:
|
|
22439
|
+
onClick: A,
|
|
22440
22440
|
"aria-label": "Remove filter",
|
|
22441
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22441
|
+
children: /* @__PURE__ */ (0, q.jsx)(N, {
|
|
22442
22442
|
className: "h-3.5 w-3.5",
|
|
22443
22443
|
"aria-hidden": !0
|
|
22444
22444
|
})
|
|
@@ -22467,7 +22467,7 @@ var nI = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: r, editIndex:
|
|
|
22467
22467
|
placeholder: "min",
|
|
22468
22468
|
className: "border-input flex-1 min-w-0"
|
|
22469
22469
|
}),
|
|
22470
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
22470
|
+
/* @__PURE__ */ (0, q.jsx)(Or, { className: "h-5 w-5 text-muted-foreground shrink-0" }),
|
|
22471
22471
|
/* @__PURE__ */ (0, q.jsx)(tn, {
|
|
22472
22472
|
value: t.max,
|
|
22473
22473
|
onChange: (e) => i({
|
|
@@ -22688,7 +22688,7 @@ var cI = (e) => {
|
|
|
22688
22688
|
t[6] = o.x, t[7] = o.y, t[8] = f;
|
|
22689
22689
|
} else f = t[8];
|
|
22690
22690
|
let p;
|
|
22691
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, q.jsx)(
|
|
22691
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, q.jsx)(V, {}), t[9] = p) : p = t[9];
|
|
22692
22692
|
let m;
|
|
22693
22693
|
t[10] !== o.x || t[11] !== o.y ? (m = {
|
|
22694
22694
|
position: "fixed",
|
|
@@ -22750,7 +22750,7 @@ var cI = (e) => {
|
|
|
22750
22750
|
e ? n === null && r(eI(i[0])) : r(null);
|
|
22751
22751
|
},
|
|
22752
22752
|
modal: !1,
|
|
22753
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22753
|
+
children: [/* @__PURE__ */ (0, q.jsx)(V, {
|
|
22754
22754
|
asChild: !0,
|
|
22755
22755
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
22756
22756
|
type: "button",
|
|
@@ -22833,7 +22833,7 @@ var cI = (e) => {
|
|
|
22833
22833
|
children: [/* @__PURE__ */ (0, q.jsx)(T, {
|
|
22834
22834
|
className: "absolute top-2 right-2",
|
|
22835
22835
|
"aria-label": "Close",
|
|
22836
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22836
|
+
children: /* @__PURE__ */ (0, q.jsx)(Kr, {
|
|
22837
22837
|
className: "h-4 w-4",
|
|
22838
22838
|
"aria-hidden": !0
|
|
22839
22839
|
})
|
|
@@ -22899,7 +22899,7 @@ var cI = (e) => {
|
|
|
22899
22899
|
className: "ml-1 rounded-full text-destructive/60 hover:text-destructive hover:shadow-none hover:bg-transparent",
|
|
22900
22900
|
onClick: p,
|
|
22901
22901
|
"aria-label": "Remove filter",
|
|
22902
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22902
|
+
children: /* @__PURE__ */ (0, q.jsx)(Kr, {
|
|
22903
22903
|
className: "h-3.5 w-3.5",
|
|
22904
22904
|
"aria-hidden": !0
|
|
22905
22905
|
})
|
|
@@ -22911,12 +22911,12 @@ var cI = (e) => {
|
|
|
22911
22911
|
children: [/* @__PURE__ */ (0, q.jsx)(Te, {
|
|
22912
22912
|
variant: "outline",
|
|
22913
22913
|
className: i("bg-background border-border text-foreground", "hover:bg-accent hover:text-accent-foreground", "has-data-[state=open]:bg-accent has-data-[state=open]:text-accent-foreground", "transition-colors"),
|
|
22914
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
22914
|
+
children: /* @__PURE__ */ (0, q.jsx)(we, {
|
|
22915
22915
|
content: g,
|
|
22916
22916
|
delayDuration: 600,
|
|
22917
22917
|
children: /* @__PURE__ */ (0, q.jsxs)("span", {
|
|
22918
22918
|
className: "inline-flex items-center",
|
|
22919
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
22919
|
+
children: [/* @__PURE__ */ (0, q.jsx)(V, {
|
|
22920
22920
|
asChild: !0,
|
|
22921
22921
|
children: /* @__PURE__ */ (0, q.jsx)("button", {
|
|
22922
22922
|
type: "button",
|
|
@@ -22977,7 +22977,7 @@ function hI(e, t) {
|
|
|
22977
22977
|
let [n, r] = Xt({
|
|
22978
22978
|
left: gI(e),
|
|
22979
22979
|
right: t
|
|
22980
|
-
},
|
|
22980
|
+
}, ai);
|
|
22981
22981
|
return {
|
|
22982
22982
|
columnPinning: n,
|
|
22983
22983
|
setColumnPinning: (e) => {
|
|
@@ -23028,9 +23028,9 @@ function vI(e, t) {
|
|
|
23028
23028
|
function yI(e) {
|
|
23029
23029
|
return "write" in e;
|
|
23030
23030
|
}
|
|
23031
|
-
var bI = "INTERNAL_getBuildingBlocksRev", xI = Number(Object.keys(
|
|
23031
|
+
var bI = "INTERNAL_getBuildingBlocksRev", xI = Number(Object.keys(Qr).find((e) => e.startsWith(bI))?.slice(29));
|
|
23032
23032
|
if (Number.isNaN(xI)) throw Error("jotai-compat: unsupported jotai internals revision");
|
|
23033
|
-
var SI =
|
|
23033
|
+
var SI = Qr, CI = `INTERNAL_getBuildingBlocksRev${xI}`, wI = SI[`INTERNAL_buildStoreRev${xI}`];
|
|
23034
23034
|
function TI(e) {
|
|
23035
23035
|
return xI < 4 ? wI(...e ? Object.values(e) : []) : wI(Array.isArray(e) ? Object.fromEntries(EI.map(([t, n], r) => [n, e[r]])) : e);
|
|
23036
23036
|
}
|
|
@@ -23081,7 +23081,7 @@ var { atomStateMap: DI, mountedMap: OI, invalidatedAtoms: kI, changedAtoms: AI,
|
|
|
23081
23081
|
};
|
|
23082
23082
|
Object.defineProperty(n, i, a), Object.defineProperty(n, r, a);
|
|
23083
23083
|
}), rL.set(t, n)), n;
|
|
23084
|
-
}, aL = /* @__PURE__ */ new WeakMap(), oL = {}, { read: sL, write: cL } =
|
|
23084
|
+
}, aL = /* @__PURE__ */ new WeakMap(), oL = {}, { read: sL, write: cL } = li(null);
|
|
23085
23085
|
function lL(e, t, n) {
|
|
23086
23086
|
let [r, i, a, , o] = e, s = r.get(t);
|
|
23087
23087
|
if (s) return s;
|
|
@@ -23367,7 +23367,7 @@ function vL(e, t) {
|
|
|
23367
23367
|
});
|
|
23368
23368
|
};
|
|
23369
23369
|
}
|
|
23370
|
-
var yL = vL(
|
|
23370
|
+
var yL = vL(oi, ii);
|
|
23371
23371
|
//#endregion
|
|
23372
23372
|
//#region src/components/data-table/range-focus/utils.ts
|
|
23373
23373
|
function bL(e, t) {
|
|
@@ -23453,7 +23453,7 @@ function DL() {
|
|
|
23453
23453
|
isSelecting: !1
|
|
23454
23454
|
};
|
|
23455
23455
|
}
|
|
23456
|
-
var { valueAtom: OL, useActions: kL, createActions: AL, reducer: jL } =
|
|
23456
|
+
var { valueAtom: OL, useActions: kL, createActions: AL, reducer: jL } = la(DL, {
|
|
23457
23457
|
setSelectedCells: (e, t) => ({
|
|
23458
23458
|
...e,
|
|
23459
23459
|
selectedCells: t
|
|
@@ -23593,9 +23593,9 @@ var { valueAtom: OL, useActions: kL, createActions: AL, reducer: jL } = ta(DL, {
|
|
|
23593
23593
|
isSelecting: !0
|
|
23594
23594
|
};
|
|
23595
23595
|
}
|
|
23596
|
-
}), ML =
|
|
23597
|
-
|
|
23598
|
-
var PL = (e) =>
|
|
23596
|
+
}), ML = li((e) => e(OL).selectedCells), NL = li((e) => e(OL).copiedCells);
|
|
23597
|
+
li((e) => e(OL).selectedStartCell), li((e) => e(OL).focusedCell), li((e) => e(OL).isSelecting);
|
|
23598
|
+
var PL = (e) => li((t) => {
|
|
23599
23599
|
let n = t(ML), r = t(NL);
|
|
23600
23600
|
return {
|
|
23601
23601
|
isSelected: n.has(e),
|
|
@@ -24409,7 +24409,7 @@ function cR(e) {
|
|
|
24409
24409
|
}
|
|
24410
24410
|
//#endregion
|
|
24411
24411
|
//#region src/components/ui/context-menu.tsx
|
|
24412
|
-
var lR = Ts, uR = Ds, dR =
|
|
24412
|
+
var lR = Ts, uR = Ds, dR = mi(Os), fR = Ti(As), pR = Ti(Rs), mR = K.forwardRef((e, t) => {
|
|
24413
24413
|
let n = (0, J.c)(14), r, i, a, o;
|
|
24414
24414
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: i, inset: a, children: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
24415
24415
|
let s;
|
|
@@ -24418,7 +24418,7 @@ var lR = Ts, uR = Ds, dR = gi(Os), fR = Di(As), pR = Di(Rs), mR = K.forwardRef((
|
|
|
24418
24418
|
inset: a
|
|
24419
24419
|
}), n[5] = i, n[6] = a, n[7] = s) : s = n[7];
|
|
24420
24420
|
let c;
|
|
24421
|
-
n[8] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(
|
|
24421
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(he, { className: "ml-auto h-4 w-4" }), n[8] = c) : c = n[8];
|
|
24422
24422
|
let l;
|
|
24423
24423
|
return n[9] !== r || n[10] !== o || n[11] !== t || n[12] !== s ? (l = /* @__PURE__ */ (0, q.jsxs)(Ls, {
|
|
24424
24424
|
ref: t,
|
|
@@ -24446,13 +24446,13 @@ var _R = K.forwardRef((e, t) => {
|
|
|
24446
24446
|
n[0] === e ? (r = n[1], a = n[2], o = n[3]) : ({className: r, scrollable: o, ...a} = e, n[0] = e, n[1] = r, n[2] = a, n[3] = o);
|
|
24447
24447
|
let s = o === void 0 || o, c;
|
|
24448
24448
|
n[4] !== r || n[5] !== s ? (c = i(Je(), hR, s && "overflow-auto", r), n[4] = r, n[5] = s, n[6] = c) : c = n[6];
|
|
24449
|
-
let l = s ? `calc(var(--radix-context-menu-content-available-height) - ${
|
|
24449
|
+
let l = s ? `calc(var(--radix-context-menu-content-available-height) - ${wi}px)` : void 0, u;
|
|
24450
24450
|
n[7] !== a.style || n[8] !== l ? (u = {
|
|
24451
24451
|
...a.style,
|
|
24452
24452
|
maxHeight: l
|
|
24453
24453
|
}, n[7] = a.style, n[8] = l, n[9] = u) : u = n[9];
|
|
24454
24454
|
let d;
|
|
24455
|
-
return n[10] !== a || n[11] !== t || n[12] !== c || n[13] !== u ? (d = /* @__PURE__ */ (0, q.jsx)(dR, { children: /* @__PURE__ */ (0, q.jsx)(
|
|
24455
|
+
return n[10] !== a || n[11] !== t || n[12] !== c || n[13] !== u ? (d = /* @__PURE__ */ (0, q.jsx)(dR, { children: /* @__PURE__ */ (0, q.jsx)(gi, { children: /* @__PURE__ */ (0, q.jsx)(fR, {
|
|
24456
24456
|
ref: t,
|
|
24457
24457
|
className: c,
|
|
24458
24458
|
style: u,
|
|
@@ -24487,7 +24487,7 @@ var yR = K.forwardRef((e, t) => {
|
|
|
24487
24487
|
let l;
|
|
24488
24488
|
n[8] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, q.jsx)("span", {
|
|
24489
24489
|
className: c,
|
|
24490
|
-
children: /* @__PURE__ */ (0, q.jsx)(Fs, { children: /* @__PURE__ */ (0, q.jsx)(
|
|
24490
|
+
children: /* @__PURE__ */ (0, q.jsx)(Fs, { children: /* @__PURE__ */ (0, q.jsx)(ge, { className: "h-4 w-4" }) })
|
|
24491
24491
|
}), n[8] = l) : l = n[8];
|
|
24492
24492
|
let u;
|
|
24493
24493
|
return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, q.jsxs)(Ns, {
|
|
@@ -24597,7 +24597,7 @@ function TR({ type: e, value: t, comparison: n = "eq", dataType: r, dtype: i })
|
|
|
24597
24597
|
let e = n === "eq" ? t : !t;
|
|
24598
24598
|
return oO.boolean({ operator: e ? "is_true" : "is_false" });
|
|
24599
24599
|
}
|
|
24600
|
-
default:
|
|
24600
|
+
default: qr(e);
|
|
24601
24601
|
}
|
|
24602
24602
|
}
|
|
24603
24603
|
var ER = (e) => {
|
|
@@ -24612,7 +24612,7 @@ var ER = (e) => {
|
|
|
24612
24612
|
let i = a.current?.querySelector(`[${C}="${t.id}"]`);
|
|
24613
24613
|
i ? (i.classList.add("bg-(--green-4)"), l.current = i) : r.error("Context menu cell not found in table");
|
|
24614
24614
|
}, t[0] = n, t[1] = a, t[2] = u) : u = t[2];
|
|
24615
|
-
let d =
|
|
24615
|
+
let d = Qi(u), f;
|
|
24616
24616
|
t[3] === d ? f = t[4] : (f = (e) => {
|
|
24617
24617
|
e || d(!1);
|
|
24618
24618
|
}, t[3] = d, t[4] = f);
|
|
@@ -24637,7 +24637,7 @@ var ER = (e) => {
|
|
|
24637
24637
|
children: [m, g]
|
|
24638
24638
|
}), t[15] = f, t[16] = m, t[17] = g, t[18] = _) : _ = t[18], _;
|
|
24639
24639
|
}, DR = (e) => {
|
|
24640
|
-
let t = (0, J.c)(27), { cell: n, copySelectedCells: i } = e, a =
|
|
24640
|
+
let t = (0, J.c)(27), { cell: n, copySelectedCells: i } = e, a = ei(ML).size > 1, o, s, c, l, u;
|
|
24641
24641
|
if (t[0] !== n) {
|
|
24642
24642
|
let e = n.getContext().table, i = n.getValue(), a = sk(e, n.row.index, n.column.id) ?? i;
|
|
24643
24643
|
l = () => {
|
|
@@ -24702,7 +24702,7 @@ var ER = (e) => {
|
|
|
24702
24702
|
e || i();
|
|
24703
24703
|
}, t[0] = i, t[1] = o);
|
|
24704
24704
|
let s = n?.rect.top ?? 0, c = n?.rect.left ?? 0, l = n?.rect.width ?? 0, u = n?.rect.height ?? 0, d;
|
|
24705
|
-
t[2] !== s || t[3] !== c || t[4] !== l || t[5] !== u ? (d = /* @__PURE__ */ (0, q.jsx)(
|
|
24705
|
+
t[2] !== s || t[3] !== c || t[4] !== l || t[5] !== u ? (d = /* @__PURE__ */ (0, q.jsx)(Se, {
|
|
24706
24706
|
asChild: !0,
|
|
24707
24707
|
children: /* @__PURE__ */ (0, q.jsx)("div", {
|
|
24708
24708
|
"aria-hidden": !0,
|
|
@@ -24717,12 +24717,12 @@ var ER = (e) => {
|
|
|
24717
24717
|
})
|
|
24718
24718
|
}), t[2] = s, t[3] = c, t[4] = l, t[5] = u, t[6] = d) : d = t[6];
|
|
24719
24719
|
let f = n?.content, p;
|
|
24720
|
-
t[7] !== r || t[8] !== f ? (p = /* @__PURE__ */ (0, q.jsx)(
|
|
24720
|
+
t[7] !== r || t[8] !== f ? (p = /* @__PURE__ */ (0, q.jsx)(Ce, { children: /* @__PURE__ */ (0, q.jsx)(xe, {
|
|
24721
24721
|
id: r,
|
|
24722
24722
|
children: f
|
|
24723
24723
|
}) }), t[7] = r, t[8] = f, t[9] = p) : p = t[9];
|
|
24724
24724
|
let m;
|
|
24725
|
-
return t[10] !== a || t[11] !== o || t[12] !== d || t[13] !== p ? (m = /* @__PURE__ */ (0, q.jsxs)(
|
|
24725
|
+
return t[10] !== a || t[11] !== o || t[12] !== d || t[13] !== p ? (m = /* @__PURE__ */ (0, q.jsxs)(ye, {
|
|
24726
24726
|
open: a,
|
|
24727
24727
|
onOpenChange: o,
|
|
24728
24728
|
delayDuration: 0,
|
|
@@ -24765,7 +24765,7 @@ function MR(e) {
|
|
|
24765
24765
|
t[3] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
|
|
24766
24766
|
f(), o(null);
|
|
24767
24767
|
}, t[3] = p) : p = t[3];
|
|
24768
|
-
let m =
|
|
24768
|
+
let m = Qi(p), h;
|
|
24769
24769
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (h = (e, t) => {
|
|
24770
24770
|
l.current = e;
|
|
24771
24771
|
let n = e.getBoundingClientRect();
|
|
@@ -24802,17 +24802,17 @@ function MR(e) {
|
|
|
24802
24802
|
let n = e.currentTarget, r = AR(t, i);
|
|
24803
24803
|
r == null || r === "" ? m() : (f(), s.current = window.setTimeout(() => g(n, r), jR));
|
|
24804
24804
|
}, t[11] = m, t[12] = i, t[13] = x) : x = t[13];
|
|
24805
|
-
let S =
|
|
24805
|
+
let S = Qi(x), C;
|
|
24806
24806
|
t[14] === m ? C = t[15] : (C = () => m(), t[14] = m, t[15] = C);
|
|
24807
|
-
let w =
|
|
24807
|
+
let w = Qi(C), T;
|
|
24808
24808
|
t[16] === i ? T = t[17] : (T = (e, t) => {
|
|
24809
24809
|
if (f(), u.current) return;
|
|
24810
24810
|
let n = AR(t, i);
|
|
24811
24811
|
n != null && n !== "" && g(e.currentTarget, n);
|
|
24812
24812
|
}, t[16] = i, t[17] = T);
|
|
24813
|
-
let E =
|
|
24813
|
+
let E = Qi(T), D;
|
|
24814
24814
|
t[18] === m ? D = t[19] : (D = () => m(), t[18] = m, t[19] = D);
|
|
24815
|
-
let O =
|
|
24815
|
+
let O = Qi(D), k, A;
|
|
24816
24816
|
t[20] === m ? (k = t[21], A = t[22]) : (k = () => (window.addEventListener("scroll", m, {
|
|
24817
24817
|
passive: !0,
|
|
24818
24818
|
capture: !0
|
|
@@ -24837,7 +24837,7 @@ function MR(e) {
|
|
|
24837
24837
|
var NR = (0, K.memo)((e) => {
|
|
24838
24838
|
let t = (0, J.c)(9), { cellId: n, className: r } = e, a;
|
|
24839
24839
|
t[0] === n ? a = t[1] : (a = PL(n), t[0] = n, t[1] = a);
|
|
24840
|
-
let { isSelected: o, isCopied: s } =
|
|
24840
|
+
let { isSelected: o, isCopied: s } = ei(a);
|
|
24841
24841
|
if (!o && !s) return null;
|
|
24842
24842
|
let c = o && "bg-(--green-3)", l = s && "bg-(--green-4) transition-colors duration-150", u;
|
|
24843
24843
|
t[2] !== r || t[3] !== c || t[4] !== l ? (u = i("absolute inset-0 pointer-events-none", c, l, r), t[2] = r, t[3] = c, t[4] = l, t[5] = u) : u = t[5];
|
|
@@ -24862,7 +24862,7 @@ var PR = (e) => {
|
|
|
24862
24862
|
}
|
|
24863
24863
|
});
|
|
24864
24864
|
}, t[0] = r, t[1] = n, t[2] = i) : i = t[2];
|
|
24865
|
-
let a =
|
|
24865
|
+
let a = Qi(i), s;
|
|
24866
24866
|
t[3] !== r || t[4] !== n ? (s = (e, t) => {
|
|
24867
24867
|
r.updateSelection({
|
|
24868
24868
|
newCell: e,
|
|
@@ -24870,7 +24870,7 @@ var PR = (e) => {
|
|
|
24870
24870
|
table: n
|
|
24871
24871
|
});
|
|
24872
24872
|
}, t[3] = r, t[4] = n, t[5] = s) : s = t[5];
|
|
24873
|
-
let c =
|
|
24873
|
+
let c = Qi(s), l;
|
|
24874
24874
|
t[6] !== r || t[7] !== n ? (l = (e, t) => {
|
|
24875
24875
|
r.navigate({
|
|
24876
24876
|
direction: t,
|
|
@@ -24878,7 +24878,7 @@ var PR = (e) => {
|
|
|
24878
24878
|
table: n
|
|
24879
24879
|
});
|
|
24880
24880
|
}, t[6] = r, t[7] = n, t[8] = l) : l = t[8];
|
|
24881
|
-
let u =
|
|
24881
|
+
let u = Qi(l), d;
|
|
24882
24882
|
t[9] === r ? d = t[10] : (d = (e) => {
|
|
24883
24883
|
r.setFocusedCell({
|
|
24884
24884
|
cellId: e.id,
|
|
@@ -24886,7 +24886,7 @@ var PR = (e) => {
|
|
|
24886
24886
|
columnId: e.column.id
|
|
24887
24887
|
});
|
|
24888
24888
|
}, t[9] = r, t[10] = d);
|
|
24889
|
-
let f =
|
|
24889
|
+
let f = Qi(d), p;
|
|
24890
24890
|
t[11] !== r || t[12] !== a || t[13] !== u || t[14] !== n || t[15] !== c ? (p = (e, t) => {
|
|
24891
24891
|
if (!(e.defaultPrevented || LR(e))) bb15: switch (e.key) {
|
|
24892
24892
|
case "c":
|
|
@@ -24918,7 +24918,7 @@ var PR = (e) => {
|
|
|
24918
24918
|
case "a": (e.metaKey || e.ctrlKey) && (e.preventDefault(), r.selectAllCells(n));
|
|
24919
24919
|
}
|
|
24920
24920
|
}, t[11] = r, t[12] = a, t[13] = u, t[14] = n, t[15] = c, t[16] = p) : p = t[16];
|
|
24921
|
-
let m =
|
|
24921
|
+
let m = Qi(p), h;
|
|
24922
24922
|
t[17] !== r || t[18] !== n ? (h = (e, t) => {
|
|
24923
24923
|
e.buttons !== 2 && (LR(e) || r.handleCellMouseDown({
|
|
24924
24924
|
cell: t,
|
|
@@ -24927,18 +24927,18 @@ var PR = (e) => {
|
|
|
24927
24927
|
table: n
|
|
24928
24928
|
}));
|
|
24929
24929
|
}, t[17] = r, t[18] = n, t[19] = h) : h = t[19];
|
|
24930
|
-
let g =
|
|
24930
|
+
let g = Qi(h), _;
|
|
24931
24931
|
t[20] === r ? _ = t[21] : (_ = () => {
|
|
24932
24932
|
r.setIsSelecting(!1);
|
|
24933
24933
|
}, t[20] = r, t[21] = _);
|
|
24934
|
-
let v =
|
|
24934
|
+
let v = Qi(_), y;
|
|
24935
24935
|
t[22] !== r || t[23] !== n ? (y = (e, t) => {
|
|
24936
24936
|
e.buttons === 1 && r.updateRangeSelection({
|
|
24937
24937
|
cell: t,
|
|
24938
24938
|
table: n
|
|
24939
24939
|
});
|
|
24940
24940
|
}, t[22] = r, t[23] = n, t[24] = y) : y = t[24];
|
|
24941
|
-
let b =
|
|
24941
|
+
let b = Qi(y), x;
|
|
24942
24942
|
return t[25] !== r.clearSelection || t[26] !== f || t[27] !== g || t[28] !== b || t[29] !== v || t[30] !== m || t[31] !== a || t[32] !== c ? (x = {
|
|
24943
24943
|
handleCellMouseDown: g,
|
|
24944
24944
|
handleCellMouseUp: v,
|
|
@@ -24966,9 +24966,9 @@ function LR(e) {
|
|
|
24966
24966
|
}
|
|
24967
24967
|
//#endregion
|
|
24968
24968
|
//#region src/components/data-table/range-focus/use-scroll-into-view.ts
|
|
24969
|
-
var RR =
|
|
24969
|
+
var RR = li((e) => e(OL).focusedCell);
|
|
24970
24970
|
function zR(e) {
|
|
24971
|
-
let t = (0, J.c)(3), n =
|
|
24971
|
+
let t = (0, J.c)(3), n = ii(), i;
|
|
24972
24972
|
t[0] !== e || t[1] !== n ? (i = (t) => {
|
|
24973
24973
|
t?.cellId && setTimeout(() => {
|
|
24974
24974
|
if (!e.current || n.get(RR)?.cellId !== t.cellId) return;
|
|
@@ -24984,7 +24984,7 @@ function zR(e) {
|
|
|
24984
24984
|
inline: "nearest"
|
|
24985
24985
|
});
|
|
24986
24986
|
}, 0);
|
|
24987
|
-
}, t[0] = e, t[1] = n, t[2] = i) : i = t[2],
|
|
24987
|
+
}, t[0] = e, t[1] = n, t[2] = i) : i = t[2], hi(RR, i);
|
|
24988
24988
|
}
|
|
24989
24989
|
//#endregion
|
|
24990
24990
|
//#region src/components/data-table/renderers.tsx
|
|
@@ -25030,7 +25030,7 @@ var VR = ({ table: e, columns: t, rowViewerPanelOpen: n, getRowIndex: r, viewedR
|
|
|
25030
25030
|
overscan: 10
|
|
25031
25031
|
});
|
|
25032
25032
|
zR(u);
|
|
25033
|
-
let { handleCellMouseDown: f, handleCellMouseUp: p, handleCellMouseOver: m, handleCellsKeyDown: h, handleCellFocus: g, handleCopy: _ } = PR({ table: e }), v = (0, K.useRef)(null), y =
|
|
25033
|
+
let { handleCellMouseDown: f, handleCellMouseUp: p, handleCellMouseOver: m, handleCellsKeyDown: h, handleCellFocus: g, handleCopy: _ } = PR({ table: e }), v = (0, K.useRef)(null), y = Qi((e) => {
|
|
25034
25034
|
v.current = e;
|
|
25035
25035
|
}), b = MR({ table: e }), x = (t) => t.map((t) => {
|
|
25036
25036
|
let { className: n, style: r } = HR(t.column), a = t.column.columnDef.meta?.width, o = Object.assign({}, t.getUserStyling?.() || {}, r);
|
|
@@ -25038,7 +25038,7 @@ var VR = ({ table: e, columns: t, rowViewerPanelOpen: n, getRowIndex: r, viewedR
|
|
|
25038
25038
|
tabIndex: 0,
|
|
25039
25039
|
role: e.options.enableCellSelection ? "gridcell" : void 0,
|
|
25040
25040
|
"aria-selected": e.options.enableCellSelection ? t.getIsSelected?.() : void 0,
|
|
25041
|
-
...
|
|
25041
|
+
...D(t.id),
|
|
25042
25042
|
key: t.id,
|
|
25043
25043
|
className: i("whitespace-pre truncate outline-hidden focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring border-r border-r-border/75", !a && "max-w-[300px]", t.column.getColumnWrapping && t.column.getColumnWrapping?.() === "wrap" && "whitespace-pre-wrap min-w-[200px]", "px-1.5 py-[0.18rem]", n),
|
|
25044
25044
|
style: o,
|
|
@@ -25155,7 +25155,7 @@ function UR({ table: e, column: t, thead: n }) {
|
|
|
25155
25155
|
//#endregion
|
|
25156
25156
|
//#region src/components/data-table/hooks/use-column-visibility.ts
|
|
25157
25157
|
function WR(e) {
|
|
25158
|
-
let [t, n] = Xt(Object.fromEntries((e ?? []).map((e) => [e, !1])),
|
|
25158
|
+
let [t, n] = Xt(Object.fromEntries((e ?? []).map((e) => [e, !1])), ai);
|
|
25159
25159
|
return {
|
|
25160
25160
|
columnVisibility: t,
|
|
25161
25161
|
setColumnVisibility: n
|
|
@@ -25246,7 +25246,7 @@ var ZR = ({ table: e, tableLoading: t, hasNextPage: n, showPageSizeSelector: r }
|
|
|
25246
25246
|
}), /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
25247
25247
|
className: "order-1 lg:order-last flex items-center print:hidden",
|
|
25248
25248
|
children: [
|
|
25249
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
25249
|
+
/* @__PURE__ */ (0, q.jsx)(we, {
|
|
25250
25250
|
content: "First page",
|
|
25251
25251
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
25252
25252
|
size: "xs",
|
|
@@ -25260,7 +25260,7 @@ var ZR = ({ table: e, tableLoading: t, hasNextPage: n, showPageSizeSelector: r }
|
|
|
25260
25260
|
children: /* @__PURE__ */ (0, q.jsx)(Ua, { className: "h-4 w-4" })
|
|
25261
25261
|
})
|
|
25262
25262
|
}),
|
|
25263
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
25263
|
+
/* @__PURE__ */ (0, q.jsx)(we, {
|
|
25264
25264
|
content: "Previous page",
|
|
25265
25265
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
25266
25266
|
size: "xs",
|
|
@@ -25285,7 +25285,7 @@ var ZR = ({ table: e, tableLoading: t, hasNextPage: n, showPageSizeSelector: r }
|
|
|
25285
25285
|
children: ["of ", zt(s, a)]
|
|
25286
25286
|
})] }) : /* @__PURE__ */ (0, q.jsx)("span", { children: zt(d, a) })]
|
|
25287
25287
|
}),
|
|
25288
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
25288
|
+
/* @__PURE__ */ (0, q.jsx)(we, {
|
|
25289
25289
|
content: "Next page",
|
|
25290
25290
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
25291
25291
|
size: "xs",
|
|
@@ -25299,7 +25299,7 @@ var ZR = ({ table: e, tableLoading: t, hasNextPage: n, showPageSizeSelector: r }
|
|
|
25299
25299
|
children: /* @__PURE__ */ (0, q.jsx)(Bt, { className: "h-4 w-4" })
|
|
25300
25300
|
})
|
|
25301
25301
|
}),
|
|
25302
|
-
c && /* @__PURE__ */ (0, q.jsx)(
|
|
25302
|
+
c && /* @__PURE__ */ (0, q.jsx)(we, {
|
|
25303
25303
|
content: "Last page",
|
|
25304
25304
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
25305
25305
|
size: "xs",
|
|
@@ -25365,7 +25365,7 @@ var tz = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
|
|
|
25365
25365
|
onOpenChange: (e) => {
|
|
25366
25366
|
a(e), e || s("");
|
|
25367
25367
|
},
|
|
25368
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
25368
|
+
children: [/* @__PURE__ */ (0, q.jsx)(V, {
|
|
25369
25369
|
asChild: !0,
|
|
25370
25370
|
disabled: t <= 1,
|
|
25371
25371
|
children: /* @__PURE__ */ (0, q.jsxs)("button", {
|
|
@@ -25467,21 +25467,21 @@ var tz = ({ currentPage: e, totalPages: t, onPageChange: n }) => {
|
|
|
25467
25467
|
});
|
|
25468
25468
|
};
|
|
25469
25469
|
function rz(e, t) {
|
|
25470
|
-
return `${zt(e, t)} ${new
|
|
25470
|
+
return `${zt(e, t)} ${new te("row").pluralize(e)}`;
|
|
25471
25471
|
}
|
|
25472
25472
|
var iz = ({ numRows: e, totalColumns: t, hiddenColumns: n, locale: r }) => {
|
|
25473
25473
|
let i = e === "too_many" ? "Unknown" : rz(e, r), a = n ?? 0, o = t - a;
|
|
25474
25474
|
return {
|
|
25475
|
-
rowsAndColumns: [i, a > 0 ? `${zt(o, r)} visible` : `${zt(t, r)} ${new
|
|
25475
|
+
rowsAndColumns: [i, a > 0 ? `${zt(o, r)} visible` : `${zt(t, r)} ${new te("column").pluralize(t)}`].join(", "),
|
|
25476
25476
|
hiddenSuffix: a > 0 ? `(${zt(a, r)} hidden)` : null
|
|
25477
25477
|
};
|
|
25478
25478
|
}, az = 3, oz = (e) => {
|
|
25479
|
-
let t = (0, J.c)(21), { table: n, className: r } = e, { locale: a } = Fe(), o =
|
|
25479
|
+
let t = (0, J.c)(21), { table: n, className: r } = e, { locale: a } = Fe(), o = ei(ML), s = SL(o);
|
|
25480
25480
|
if (s < 2) {
|
|
25481
25481
|
let e;
|
|
25482
25482
|
t[0] === r ? e = t[1] : (e = i("text-xs text-muted-foreground/80 italic", r), t[0] = r, t[1] = e);
|
|
25483
25483
|
let n;
|
|
25484
|
-
return t[2] === e ? n = t[3] : (n = /* @__PURE__ */ (0, q.jsx)(
|
|
25484
|
+
return t[2] === e ? n = t[3] : (n = /* @__PURE__ */ (0, q.jsx)(we, {
|
|
25485
25485
|
content: "Select multiple cells to see stats",
|
|
25486
25486
|
children: /* @__PURE__ */ (0, q.jsx)("span", {
|
|
25487
25487
|
className: e,
|
|
@@ -25566,7 +25566,7 @@ function pz(e, t) {
|
|
|
25566
25566
|
//#endregion
|
|
25567
25567
|
//#region src/components/data-table/TableBottomBar.tsx
|
|
25568
25568
|
var mz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowSelectionChange: a, table: s, getRowIds: c, showPageSizeSelector: l, tableLoading: d, part: f, className: m }) => {
|
|
25569
|
-
let { locale: h } = Fe(), g =
|
|
25569
|
+
let { locale: h } = Fe(), g = oa(), _ = (e) => {
|
|
25570
25570
|
if (!a) return;
|
|
25571
25571
|
if (!e) {
|
|
25572
25572
|
a({});
|
|
@@ -25664,7 +25664,7 @@ var mz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
|
|
|
25664
25664
|
let t = (0, J.c)(9), { error: n, style: r, className: a, showIcon: o } = e, s = o === void 0 || o, c;
|
|
25665
25665
|
t[0] === a ? c = t[1] : (c = i("text-sm bg-red-50 dark:bg-red-900 text-red-600 dark:text-red-50 flex items-center gap-2 p-2 h-8", a), t[0] = a, t[1] = c);
|
|
25666
25666
|
let l;
|
|
25667
|
-
t[2] === s ? l = t[3] : (l = s && /* @__PURE__ */ (0, q.jsx)(
|
|
25667
|
+
t[2] === s ? l = t[3] : (l = s && /* @__PURE__ */ (0, q.jsx)(Kr, { className: "h-4 w-4 mt-0.5" }), t[2] = s, t[3] = l);
|
|
25668
25668
|
let u;
|
|
25669
25669
|
return t[4] !== n.message || t[5] !== r || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
25670
25670
|
className: c,
|
|
@@ -25675,7 +25675,7 @@ var mz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
|
|
|
25675
25675
|
let t = (0, J.c)(7), { message: n, className: r, style: a } = e, o;
|
|
25676
25676
|
t[0] === r ? o = t[1] : (o = i("text-sm bg-blue-50 dark:bg-(--accent) text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8", r), t[0] = r, t[1] = o);
|
|
25677
25677
|
let s;
|
|
25678
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(
|
|
25678
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, q.jsx)(S, { className: "h-4 w-4 animate-spin" }), t[2] = s) : s = t[2];
|
|
25679
25679
|
let c;
|
|
25680
25680
|
return t[3] !== n || t[4] !== a || t[5] !== o ? (c = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
25681
25681
|
className: o,
|
|
@@ -25694,7 +25694,7 @@ var mz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
|
|
|
25694
25694
|
let t = (0, J.c)(12), { columnName: n, dataType: r, className: a } = e, o, s;
|
|
25695
25695
|
if (t[0] !== r) {
|
|
25696
25696
|
let e = _(r);
|
|
25697
|
-
o =
|
|
25697
|
+
o = H[e], s = P(e), t[0] = r, t[1] = o, t[2] = s;
|
|
25698
25698
|
} else o = t[1], s = t[2];
|
|
25699
25699
|
let c = s, l;
|
|
25700
25700
|
t[3] === a ? l = t[4] : (l = i("flex flex-row items-center gap-1.5", a), t[3] = a, t[4] = l);
|
|
@@ -25707,7 +25707,7 @@ var mz = ({ pagination: e, hasNextPage: t, totalColumns: n, selection: r, onRowS
|
|
|
25707
25707
|
}), t[8] = n, t[9] = l, t[10] = d, t[11] = f) : f = t[11], f;
|
|
25708
25708
|
}, bz = "Show only this column";
|
|
25709
25709
|
function xz({ table: e, columnIds: t, disabled: n, className: r, iconClassName: a = "h-3 w-3" }) {
|
|
25710
|
-
return /* @__PURE__ */ (0, q.jsx)(
|
|
25710
|
+
return /* @__PURE__ */ (0, q.jsx)(we, {
|
|
25711
25711
|
content: bz,
|
|
25712
25712
|
delayDuration: 400,
|
|
25713
25713
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
@@ -25762,7 +25762,7 @@ var Cz = ({ table: e }) => {
|
|
|
25762
25762
|
return /* @__PURE__ */ (0, q.jsxs)(B, {
|
|
25763
25763
|
open: d.open,
|
|
25764
25764
|
onOpenChange: d.setOpen,
|
|
25765
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
25765
|
+
children: [/* @__PURE__ */ (0, q.jsx)(V, {
|
|
25766
25766
|
asChild: !0,
|
|
25767
25767
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
25768
25768
|
variant: "text",
|
|
@@ -25789,7 +25789,7 @@ var Cz = ({ table: e }) => {
|
|
|
25789
25789
|
disabled: r.length === 0,
|
|
25790
25790
|
onSelect: () => l([]),
|
|
25791
25791
|
className: "cursor-pointer",
|
|
25792
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
25792
|
+
children: [/* @__PURE__ */ (0, q.jsx)(ve, { className: "w-3 h-3 mr-1.5" }), "Show all"]
|
|
25793
25793
|
}),
|
|
25794
25794
|
/* @__PURE__ */ (0, q.jsxs)(sy, {
|
|
25795
25795
|
value: "__hide_all__",
|
|
@@ -25819,7 +25819,7 @@ var Cz = ({ table: e }) => {
|
|
|
25819
25819
|
onSelect: e.run,
|
|
25820
25820
|
className: "cursor-pointer",
|
|
25821
25821
|
children: [
|
|
25822
|
-
e.kind === "select-matching" ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3 mr-1.5" }) : /* @__PURE__ */ (0, q.jsx)(
|
|
25822
|
+
e.kind === "select-matching" ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3 mr-1.5" }) : /* @__PURE__ */ (0, q.jsx)(ve, { className: "w-3 h-3 mr-1.5" }),
|
|
25823
25823
|
e.kind === "select-matching" ? "Hide" : "Show",
|
|
25824
25824
|
" ",
|
|
25825
25825
|
e.items.length,
|
|
@@ -25852,7 +25852,7 @@ var Cz = ({ table: e }) => {
|
|
|
25852
25852
|
iconClassName: "w-3 h-3"
|
|
25853
25853
|
}), /* @__PURE__ */ (0, q.jsx)("span", {
|
|
25854
25854
|
className: i(r ? "text-primary" : "text-muted-foreground"),
|
|
25855
|
-
children: r ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3" }) : /* @__PURE__ */ (0, q.jsx)(
|
|
25855
|
+
children: r ? /* @__PURE__ */ (0, q.jsx)($a, { className: "w-3 h-3" }) : /* @__PURE__ */ (0, q.jsx)(ve, { className: "w-3 h-3" })
|
|
25856
25856
|
})]
|
|
25857
25857
|
})]
|
|
25858
25858
|
})] }, t.value);
|
|
@@ -25861,7 +25861,7 @@ var Cz = ({ table: e }) => {
|
|
|
25861
25861
|
})
|
|
25862
25862
|
})]
|
|
25863
25863
|
});
|
|
25864
|
-
}, wz =
|
|
25864
|
+
}, wz = li(null);
|
|
25865
25865
|
//#endregion
|
|
25866
25866
|
//#region src/hooks/useStateForKey.ts
|
|
25867
25867
|
function Tz(e, t) {
|
|
@@ -26010,11 +26010,11 @@ async function Pz(e) {
|
|
|
26010
26010
|
let { element: t, filename: n, prepare: i } = e, a = document.getElementById("App"), o = a?.scrollTop ?? 0, s;
|
|
26011
26011
|
i && (s = i(t));
|
|
26012
26012
|
try {
|
|
26013
|
-
return Lz(await
|
|
26013
|
+
return Lz(await pe(t), Dz.toPNG(n)), !0;
|
|
26014
26014
|
} catch (e) {
|
|
26015
26015
|
return r.error("Error downloading as PNG", e), p({
|
|
26016
26016
|
title: "Failed to download as PNG",
|
|
26017
|
-
description:
|
|
26017
|
+
description: Ri(e),
|
|
26018
26018
|
variant: "danger"
|
|
26019
26019
|
}), !1;
|
|
26020
26020
|
} finally {
|
|
@@ -26034,7 +26034,7 @@ var Fz = /* @__PURE__ */ new Set([
|
|
|
26034
26034
|
function Iz(e) {
|
|
26035
26035
|
if (typeof e != "string" || !e.trim()) return !1;
|
|
26036
26036
|
try {
|
|
26037
|
-
let t =
|
|
26037
|
+
let t = Kg(e);
|
|
26038
26038
|
switch (t.protocol) {
|
|
26039
26039
|
case "http:":
|
|
26040
26040
|
case "https:":
|
|
@@ -26075,7 +26075,7 @@ function zz({ contents: e, filename: t, mediaType: n }) {
|
|
|
26075
26075
|
//#endregion
|
|
26076
26076
|
//#region src/components/datasources/install-package-button.tsx
|
|
26077
26077
|
var Bz = (e) => {
|
|
26078
|
-
let t = (0, J.c)(13), { packages: n, showMaxPackages: r, className: a, onInstall: o } = e, { handleInstallPackages: s } = fE(), c =
|
|
26078
|
+
let t = (0, J.c)(13), { packages: n, showMaxPackages: r, className: a, onInstall: o } = e, { handleInstallPackages: s } = fE(), c = ra();
|
|
26079
26079
|
if (!n || n.length === 0 || !c) return null;
|
|
26080
26080
|
let l;
|
|
26081
26081
|
t[0] !== s || t[1] !== o || t[2] !== n ? (l = () => {
|
|
@@ -26099,7 +26099,7 @@ var Bz = (e) => {
|
|
|
26099
26099
|
}), t[9] = l, t[10] = d, t[11] = f, t[12] = p) : p = t[12], p;
|
|
26100
26100
|
}, Vz = (e) => {
|
|
26101
26101
|
let t = (0, J.c)(20), { packages: n, featureName: r, description: a, onInstall: o, className: s } = e;
|
|
26102
|
-
if (!
|
|
26102
|
+
if (!ra()) {
|
|
26103
26103
|
let e;
|
|
26104
26104
|
t[0] === s ? e = t[1] : (e = i("text-xs", s), t[0] = s, t[1] = e);
|
|
26105
26105
|
let n;
|
|
@@ -26183,7 +26183,7 @@ var Gz = [
|
|
|
26183
26183
|
label: "JSON",
|
|
26184
26184
|
format: "json",
|
|
26185
26185
|
description: "Raw JSON data",
|
|
26186
|
-
icon:
|
|
26186
|
+
icon: ee,
|
|
26187
26187
|
canDownload: !0,
|
|
26188
26188
|
canCopy: !0
|
|
26189
26189
|
},
|
|
@@ -26207,7 +26207,7 @@ var Gz = [
|
|
|
26207
26207
|
label: "Markdown",
|
|
26208
26208
|
format: "markdown",
|
|
26209
26209
|
description: "Preserves hyperlinks and formatting",
|
|
26210
|
-
icon:
|
|
26210
|
+
icon: F,
|
|
26211
26211
|
canDownload: !1,
|
|
26212
26212
|
canCopy: !0
|
|
26213
26213
|
}
|
|
@@ -26265,7 +26265,7 @@ function Qz(e, t, n) {
|
|
|
26265
26265
|
break;
|
|
26266
26266
|
case "parquet":
|
|
26267
26267
|
case "geojson": break;
|
|
26268
|
-
default:
|
|
26268
|
+
default: Ur(t);
|
|
26269
26269
|
}
|
|
26270
26270
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
26271
26271
|
}
|
|
@@ -26278,10 +26278,10 @@ function eB(e, t) {
|
|
|
26278
26278
|
case "parquet":
|
|
26279
26279
|
case "geojson":
|
|
26280
26280
|
case "markdown": return null;
|
|
26281
|
-
default: return
|
|
26281
|
+
default: return Ur(t), null;
|
|
26282
26282
|
}
|
|
26283
26283
|
}
|
|
26284
|
-
var tB = (e, t = !1) => e === "parquet" && t ? "GeoParquet" : Gz.find((t) => t.format === e)?.label ?? e, nB = (e) => e.destination === "download" ? "Failed to download" : "Failed to copy to clipboard", rB = (e) => typeof e == "string" ? e :
|
|
26284
|
+
var tB = (e, t = !1) => e === "parquet" && t ? "GeoParquet" : Gz.find((t) => t.format === e)?.label ?? e, nB = (e) => e.destination === "download" ? "Failed to download" : "Failed to copy to clipboard", rB = (e) => typeof e == "string" ? e : Ri(e), iB = "The selected geometry is no longer available. Choose another geometry to export.";
|
|
26285
26285
|
function aB(e, t, n) {
|
|
26286
26286
|
if (e.formats[t]?.available === !1) return "format-unavailable";
|
|
26287
26287
|
let r = e.geometry_columns.find((e) => e.name === n);
|
|
@@ -26296,7 +26296,7 @@ function sB(e, t, n) {
|
|
|
26296
26296
|
case "format-unavailable":
|
|
26297
26297
|
case "geometry-required":
|
|
26298
26298
|
case null: return null;
|
|
26299
|
-
default: return
|
|
26299
|
+
default: return Ur(e), null;
|
|
26300
26300
|
}
|
|
26301
26301
|
}
|
|
26302
26302
|
var cB = (e) => {
|
|
@@ -26306,7 +26306,7 @@ var cB = (e) => {
|
|
|
26306
26306
|
d.source !== r && f({ source: r });
|
|
26307
26307
|
let [h, g] = Ez(d, pB), _ = K.useRef(!1), v;
|
|
26308
26308
|
t[2] === d ? v = t[3] : (v = (e) => _.current && e === d, t[2] = d, t[3] = v);
|
|
26309
|
-
let y =
|
|
26309
|
+
let y = Qi(v), b, x;
|
|
26310
26310
|
t[4] !== d || t[5] !== a || t[6] !== n ? (b = async () => !a || !n ? null : {
|
|
26311
26311
|
context: d,
|
|
26312
26312
|
metadata: await n({})
|
|
@@ -26317,58 +26317,58 @@ var cB = (e) => {
|
|
|
26317
26317
|
], t[4] = d, t[5] = a, t[6] = n, t[7] = b, t[8] = x) : (b = t[7], x = t[8]);
|
|
26318
26318
|
let S = Da(b, x), C = S.status === "success" && S.data?.context === d ? S.data.metadata : null, w;
|
|
26319
26319
|
t[9] !== S.error || t[10] !== S.status ? (w = S.status === "error" ? rB(S.error) : null, t[9] = S.error, t[10] = S.status, t[11] = w) : w = t[11];
|
|
26320
|
-
let T = w, [
|
|
26321
|
-
C !==
|
|
26322
|
-
let
|
|
26323
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
26324
|
-
_.current = !1,
|
|
26325
|
-
}),
|
|
26326
|
-
let
|
|
26327
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
26328
|
-
|
|
26329
|
-
}, t[14] =
|
|
26320
|
+
let T = w, [E, D] = K.useState(null), [O, k] = K.useState(null);
|
|
26321
|
+
C !== O && (k(C), C && D((e) => e !== null && C.geometry_columns.some((t) => t.name === e) ? e : C.default_geometry_column));
|
|
26322
|
+
let A = !!C?.geometry_columns.length, [j, M] = K.useState(null), N = K.useRef(null), P = K.useRef(null), F = K.useRef(0), I, L;
|
|
26323
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (I = () => (_.current = !0, () => {
|
|
26324
|
+
_.current = !1, F.current += 1;
|
|
26325
|
+
}), L = [], t[12] = I, t[13] = L) : (I = t[12], L = t[13]), K.useLayoutEffect(I, L);
|
|
26326
|
+
let R;
|
|
26327
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
|
|
26328
|
+
F.current += 1;
|
|
26329
|
+
}, t[14] = R) : R = t[14];
|
|
26330
26330
|
let B;
|
|
26331
|
-
t[15] === r ? B = t[16] : (B = [r], t[15] = r, t[16] = B), K.useEffect(
|
|
26332
|
-
let
|
|
26333
|
-
t[17] ===
|
|
26331
|
+
t[15] === r ? B = t[16] : (B = [r], t[15] = r, t[16] = B), K.useEffect(R, B);
|
|
26332
|
+
let V = ei(wz), ee = !!(V && e.sizeBytes != null && e.sizeBytes > V.limitBytes), te = !!(V && (e.sizeBytesIsLoading || ee)), H = te ? e.sizeBytesIsLoading ? "Checking download size…" : V?.unavailableMessage : "Export", ne = a ? "text-primary" : "text-muted-foreground", re;
|
|
26333
|
+
t[17] === ne ? re = t[18] : (re = i("print:hidden text-xs gap-1", ne), t[17] = ne, t[18] = re);
|
|
26334
|
+
let ie;
|
|
26335
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ (0, q.jsx)(Xa, { className: "w-3.5 h-3.5" }), t[19] = ie) : ie = t[19];
|
|
26334
26336
|
let ae;
|
|
26335
|
-
t[
|
|
26336
|
-
|
|
26337
|
-
t[20] !== ne || t[21] !== ie ? (oe = /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
26338
|
-
ref: P,
|
|
26337
|
+
t[20] !== te || t[21] !== re ? (ae = /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
26338
|
+
ref: N,
|
|
26339
26339
|
"data-testid": "export-button",
|
|
26340
26340
|
size: "xs",
|
|
26341
26341
|
variant: "text",
|
|
26342
|
-
disabled:
|
|
26343
|
-
className:
|
|
26344
|
-
children: [
|
|
26345
|
-
}), t[20] =
|
|
26346
|
-
let
|
|
26347
|
-
t[23] === r ?
|
|
26348
|
-
o(e), e || (
|
|
26349
|
-
}, t[23] = r, t[24] =
|
|
26350
|
-
let
|
|
26351
|
-
t[25] === g ?
|
|
26352
|
-
let e =
|
|
26353
|
-
return
|
|
26354
|
-
}, t[25] = g, t[26] =
|
|
26355
|
-
let
|
|
26356
|
-
t[27] === g ?
|
|
26357
|
-
e ===
|
|
26358
|
-
}, t[27] = g, t[28] =
|
|
26359
|
-
let
|
|
26360
|
-
t[29] !==
|
|
26342
|
+
disabled: te,
|
|
26343
|
+
className: re,
|
|
26344
|
+
children: [ie, "Export"]
|
|
26345
|
+
}), t[20] = te, t[21] = re, t[22] = ae) : ae = t[22];
|
|
26346
|
+
let oe = ae, se;
|
|
26347
|
+
t[23] === r ? se = t[24] : (se = (e) => {
|
|
26348
|
+
o(e), e || (F.current += 1, M(null), c(Xz), D(null), f({ source: r }));
|
|
26349
|
+
}, t[23] = r, t[24] = se);
|
|
26350
|
+
let ce = se, le;
|
|
26351
|
+
t[25] === g ? le = t[26] : (le = () => {
|
|
26352
|
+
let e = F.current + 1;
|
|
26353
|
+
return F.current = e, g(null), e;
|
|
26354
|
+
}, t[25] = g, t[26] = le);
|
|
26355
|
+
let ue = le, de;
|
|
26356
|
+
t[27] === g ? de = t[28] : (de = (e, t) => {
|
|
26357
|
+
e === F.current && g(t);
|
|
26358
|
+
}, t[27] = g, t[28] = de);
|
|
26359
|
+
let fe = de, pe;
|
|
26360
|
+
t[29] !== E || t[30] !== e || t[31] !== fe || t[32] !== s ? (pe = async (t, n, r) => {
|
|
26361
26361
|
let i = Qz(s, t, n.destination), a = {
|
|
26362
26362
|
format: t,
|
|
26363
26363
|
...i ? { options: i } : {},
|
|
26364
|
-
...Kz(t) &&
|
|
26364
|
+
...Kz(t) && E !== null ? { geometry_column: E } : {}
|
|
26365
26365
|
}, o = await e.downloadAs(a);
|
|
26366
|
-
return r ===
|
|
26366
|
+
return r === F.current ? o.missing_packages && o.missing_packages.length > 0 ? (fe(r, {
|
|
26367
26367
|
kind: "missing-packages",
|
|
26368
26368
|
packages: o.missing_packages,
|
|
26369
26369
|
description: o.error,
|
|
26370
26370
|
action: n
|
|
26371
|
-
}), null) : o.error || o.code || !o.url ? (
|
|
26371
|
+
}), null) : o.error || o.code || !o.url ? (fe(r, {
|
|
26372
26372
|
kind: "error",
|
|
26373
26373
|
title: nB(n),
|
|
26374
26374
|
description: o.error ?? "The export did not produce a file.",
|
|
@@ -26377,17 +26377,17 @@ var cB = (e) => {
|
|
|
26377
26377
|
url: o.url,
|
|
26378
26378
|
filename: o.filename
|
|
26379
26379
|
} : null;
|
|
26380
|
-
}, t[29] =
|
|
26381
|
-
let
|
|
26382
|
-
t[34] !==
|
|
26380
|
+
}, t[29] = E, t[30] = e, t[31] = fe, t[32] = s, t[33] = pe) : pe = t[33];
|
|
26381
|
+
let me = pe, he;
|
|
26382
|
+
t[34] !== ue || t[35] !== A || t[36] !== me || t[37] !== fe ? (he = async (e) => {
|
|
26383
26383
|
let t = {
|
|
26384
26384
|
destination: "download",
|
|
26385
26385
|
format: e
|
|
26386
|
-
}, n =
|
|
26386
|
+
}, n = ue(), r = tB(e, A);
|
|
26387
26387
|
try {
|
|
26388
26388
|
await Mz(`Preparing ${r} export...`, async () => {
|
|
26389
|
-
let r = await
|
|
26390
|
-
if (!r || n !==
|
|
26389
|
+
let r = await me(e, t, n);
|
|
26390
|
+
if (!r || n !== F.current) return !1;
|
|
26391
26391
|
let i = (r.filename ?? "").trim(), a = `${Dz.withoutExtension(i) || "download"}.${e}`, o = r.url;
|
|
26392
26392
|
if (!o.startsWith("data:")) {
|
|
26393
26393
|
let e = o.includes("?") ? "&" : "?", t = new URLSearchParams({
|
|
@@ -26400,18 +26400,18 @@ var cB = (e) => {
|
|
|
26400
26400
|
}) && p({ title: `${r} download started` });
|
|
26401
26401
|
} catch (e) {
|
|
26402
26402
|
let r = e;
|
|
26403
|
-
|
|
26403
|
+
fe(n, {
|
|
26404
26404
|
kind: "error",
|
|
26405
26405
|
title: nB(t),
|
|
26406
26406
|
description: rB(r),
|
|
26407
26407
|
action: t
|
|
26408
26408
|
});
|
|
26409
26409
|
}
|
|
26410
|
-
}, t[34] =
|
|
26411
|
-
let
|
|
26412
|
-
t[39] !==
|
|
26413
|
-
await Mz(`Preparing ${tB(e,
|
|
26414
|
-
let r = qz[e], i = await
|
|
26410
|
+
}, t[34] = ue, t[35] = A, t[36] = me, t[37] = fe, t[38] = he) : he = t[38];
|
|
26411
|
+
let ge = he, _e;
|
|
26412
|
+
t[39] !== ce || t[40] !== A || t[41] !== me ? (_e = async (e, t, n) => {
|
|
26413
|
+
await Mz(`Preparing ${tB(e, A)} for clipboard...`, async () => {
|
|
26414
|
+
let r = qz[e], i = await me(r, t, n);
|
|
26415
26415
|
if (!i) return;
|
|
26416
26416
|
let a;
|
|
26417
26417
|
bb190: switch (e) {
|
|
@@ -26427,46 +26427,46 @@ var cB = (e) => {
|
|
|
26427
26427
|
}
|
|
26428
26428
|
case "markdown": {
|
|
26429
26429
|
let e = await dB(i.url);
|
|
26430
|
-
a =
|
|
26430
|
+
a = wr(e);
|
|
26431
26431
|
break bb190;
|
|
26432
26432
|
}
|
|
26433
26433
|
default:
|
|
26434
|
-
|
|
26434
|
+
Ur(e);
|
|
26435
26435
|
return;
|
|
26436
26436
|
}
|
|
26437
|
-
n ===
|
|
26437
|
+
n === F.current && (await m(a), p({ title: "Copied to clipboard" }), ce(!1));
|
|
26438
26438
|
});
|
|
26439
|
-
}, t[39] =
|
|
26440
|
-
let
|
|
26441
|
-
t[43] !==
|
|
26439
|
+
}, t[39] = ce, t[40] = A, t[41] = me, t[42] = _e) : _e = t[42];
|
|
26440
|
+
let ve = _e, ye;
|
|
26441
|
+
t[43] !== ue || t[44] !== ve || t[45] !== fe ? (ye = async (e) => {
|
|
26442
26442
|
let t = {
|
|
26443
26443
|
destination: "copy",
|
|
26444
26444
|
format: e
|
|
26445
|
-
}, n =
|
|
26445
|
+
}, n = ue();
|
|
26446
26446
|
try {
|
|
26447
|
-
await
|
|
26447
|
+
await ve(e, t, n);
|
|
26448
26448
|
} catch (e) {
|
|
26449
26449
|
let r = e;
|
|
26450
|
-
|
|
26450
|
+
fe(n, {
|
|
26451
26451
|
kind: "error",
|
|
26452
26452
|
title: nB(t),
|
|
26453
26453
|
description: rB(r),
|
|
26454
26454
|
action: t
|
|
26455
26455
|
});
|
|
26456
26456
|
}
|
|
26457
|
-
}, t[43] =
|
|
26458
|
-
let
|
|
26459
|
-
t[47] !==
|
|
26460
|
-
e.destination === "download" ?
|
|
26461
|
-
}, t[47] =
|
|
26462
|
-
let
|
|
26463
|
-
t[50] !==
|
|
26457
|
+
}, t[43] = ue, t[44] = ve, t[45] = fe, t[46] = ye) : ye = t[46];
|
|
26458
|
+
let be = ye, U;
|
|
26459
|
+
t[47] !== be || t[48] !== ge ? (U = (e) => {
|
|
26460
|
+
e.destination === "download" ? ge(e.format) : be(e.format);
|
|
26461
|
+
}, t[47] = be, t[48] = ge, t[49] = U) : U = t[49];
|
|
26462
|
+
let xe = U, Se;
|
|
26463
|
+
t[50] !== E || t[51] !== n || t[52] !== y || t[53] !== S || t[54] !== xe || t[55] !== fe || t[56] !== g ? (Se = async (e, t) => {
|
|
26464
26464
|
if (!y(t)) return;
|
|
26465
26465
|
if (!Kz(e.format) || !n) {
|
|
26466
|
-
|
|
26466
|
+
xe(e);
|
|
26467
26467
|
return;
|
|
26468
26468
|
}
|
|
26469
|
-
let r =
|
|
26469
|
+
let r = F.current, i = () => y(t) && r === F.current, a;
|
|
26470
26470
|
try {
|
|
26471
26471
|
a = await n({});
|
|
26472
26472
|
} catch {
|
|
@@ -26475,13 +26475,13 @@ var cB = (e) => {
|
|
|
26475
26475
|
}
|
|
26476
26476
|
if (!i()) return;
|
|
26477
26477
|
S.refetch();
|
|
26478
|
-
let o = aB(a, e.format,
|
|
26478
|
+
let o = aB(a, e.format, E);
|
|
26479
26479
|
switch (o) {
|
|
26480
26480
|
case null:
|
|
26481
|
-
|
|
26481
|
+
xe(e);
|
|
26482
26482
|
return;
|
|
26483
26483
|
case "obsolete-geometry":
|
|
26484
|
-
|
|
26484
|
+
D(a.default_geometry_column), fe(r, {
|
|
26485
26485
|
kind: "error",
|
|
26486
26486
|
title: nB(e),
|
|
26487
26487
|
description: iB,
|
|
@@ -26494,51 +26494,51 @@ var cB = (e) => {
|
|
|
26494
26494
|
case "missing-crs":
|
|
26495
26495
|
g(null);
|
|
26496
26496
|
return;
|
|
26497
|
-
default:
|
|
26497
|
+
default: Ur(o);
|
|
26498
26498
|
}
|
|
26499
|
-
}, t[50] =
|
|
26500
|
-
let
|
|
26501
|
-
t[58] !== d || t[59] !==
|
|
26499
|
+
}, t[50] = E, t[51] = n, t[52] = y, t[53] = S, t[54] = xe, t[55] = fe, t[56] = g, t[57] = Se) : Se = t[57];
|
|
26500
|
+
let Ce = Qi(Se), Te;
|
|
26501
|
+
t[58] !== d || t[59] !== Ce ? (Te = (e) => {
|
|
26502
26502
|
let t = d;
|
|
26503
26503
|
return () => {
|
|
26504
|
-
|
|
26504
|
+
Ce(e, t);
|
|
26505
26505
|
};
|
|
26506
|
-
}, t[58] = d, t[59] =
|
|
26506
|
+
}, t[58] = d, t[59] = Ce, t[60] = Te) : Te = t[60];
|
|
26507
26507
|
let Ee = Te, De;
|
|
26508
|
-
t[61] ===
|
|
26509
|
-
(Zz(e) || Kz(e) &&
|
|
26510
|
-
}, t[61] =
|
|
26508
|
+
t[61] === A ? De = t[62] : (De = (e) => {
|
|
26509
|
+
(Zz(e) || Kz(e) && A) && M((t) => t === e ? null : e);
|
|
26510
|
+
}, t[61] = A, t[62] = De);
|
|
26511
26511
|
let Oe = De, ke;
|
|
26512
|
-
t[63] !==
|
|
26512
|
+
t[63] !== oe || t[64] !== te ? (ke = te ? /* @__PURE__ */ (0, q.jsx)("span", {
|
|
26513
26513
|
tabIndex: 0,
|
|
26514
26514
|
className: "inline-flex",
|
|
26515
|
-
children:
|
|
26515
|
+
children: oe
|
|
26516
26516
|
}) : /* @__PURE__ */ (0, q.jsx)(wa, {
|
|
26517
26517
|
asChild: !0,
|
|
26518
|
-
children:
|
|
26519
|
-
}), t[63] =
|
|
26518
|
+
children: oe
|
|
26519
|
+
}), t[63] = oe, t[64] = te, t[65] = ke) : ke = t[65];
|
|
26520
26520
|
let Ae;
|
|
26521
|
-
t[66] !== ke || t[67] !==
|
|
26522
|
-
content:
|
|
26521
|
+
t[66] !== ke || t[67] !== H ? (Ae = /* @__PURE__ */ (0, q.jsx)(we, {
|
|
26522
|
+
content: H,
|
|
26523
26523
|
children: ke
|
|
26524
|
-
}), t[66] = ke, t[67] =
|
|
26524
|
+
}), t[66] = ke, t[67] = H, t[68] = Ae) : Ae = t[68];
|
|
26525
26525
|
let je, Me;
|
|
26526
26526
|
t[69] === Symbol.for("react.memo_cache_sentinel") ? (je = (e) => {
|
|
26527
|
-
e.preventDefault(), F.current?.focus();
|
|
26528
|
-
}, Me = (e) => {
|
|
26529
26527
|
e.preventDefault(), P.current?.focus();
|
|
26528
|
+
}, Me = (e) => {
|
|
26529
|
+
e.preventDefault(), N.current?.focus();
|
|
26530
26530
|
}, t[69] = je, t[70] = Me) : (je = t[69], Me = t[70]);
|
|
26531
26531
|
let Ne;
|
|
26532
|
-
t[71] ===
|
|
26533
|
-
e.key === "Escape" &&
|
|
26534
|
-
}, t[71] =
|
|
26532
|
+
t[71] === ce ? Ne = t[72] : (Ne = (e) => {
|
|
26533
|
+
e.key === "Escape" && ce(!1);
|
|
26534
|
+
}, t[71] = ce, t[72] = Ne);
|
|
26535
26535
|
let Pe;
|
|
26536
26536
|
t[73] === Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ (0, q.jsxs)(Sa, { children: [/* @__PURE__ */ (0, q.jsx)(xa, { children: "Export table" }), /* @__PURE__ */ (0, q.jsx)(Ta, { children: "Download a file or copy to the clipboard." })] }), t[73] = Pe) : Pe = t[73];
|
|
26537
26537
|
let Fe;
|
|
26538
|
-
if (t[74] !== Ee || t[75] !==
|
|
26538
|
+
if (t[74] !== Ee || t[75] !== j || t[76] !== h || t[77] !== E || t[78] !== n || t[79] !== be || t[80] !== ge || t[81] !== A || t[82] !== C || t[83] !== T || t[84] !== S.refetch || t[85] !== s || t[86] !== Oe) {
|
|
26539
26539
|
let e;
|
|
26540
|
-
t[88] ===
|
|
26541
|
-
let t = tB(e.format,
|
|
26540
|
+
t[88] === A ? e = t[89] : (e = (e) => e.format !== "geojson" || A, t[88] = A, t[89] = e), Fe = Gz.filter(e).map((e) => {
|
|
26541
|
+
let t = tB(e.format, A), r = Zz(e.format) || Kz(e.format) && A ? e.format : null, a = r !== null && j === r, o = r ? "button" : "div", l = `export-options-${e.format}`, d = `${l}-description`, f = `${l}-summary`, p = h?.action.format === e.format ? h : null, m = Kz(e.format) && A ? oB(E) ?? "Choose geometry" : eB(s, e.format), g = C?.geometry_columns.findIndex((e) => e.name === E) ?? -1, _ = Kz(e.format) ? C?.formats[e.format] : void 0, v = Kz(e.format) && C ? aB(C, e.format, E) : null, y = T ? `Could not load geometry options: ${T}` : _?.reason ?? sB(v, t, E), b = p?.kind === "missing-packages" ? p : null, x = b?.packages ?? (_?.available === !1 ? _.missing_packages : []), w = Kz(e.format) && (!!n && !C || v !== null), O = Kz(e.format) && (w || x.length > 0);
|
|
26542
26542
|
return /* @__PURE__ */ (0, q.jsxs)("li", {
|
|
26543
26543
|
"data-testid": `export-row-${e.format}`,
|
|
26544
26544
|
className: i(a && "bg-muted/40"),
|
|
@@ -26579,13 +26579,13 @@ var cB = (e) => {
|
|
|
26579
26579
|
}), /* @__PURE__ */ (0, q.jsx)("span", {
|
|
26580
26580
|
id: d,
|
|
26581
26581
|
className: "text-xs text-muted-foreground leading-tight",
|
|
26582
|
-
children: e.format === "parquet" &&
|
|
26582
|
+
children: e.format === "parquet" && A ? "Parquet with geometry and CRS metadata" : e.description
|
|
26583
26583
|
})]
|
|
26584
26584
|
})]
|
|
26585
26585
|
})]
|
|
26586
26586
|
}), /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
26587
26587
|
className: "flex items-center gap-0.5 pr-2.5",
|
|
26588
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
26588
|
+
children: [/* @__PURE__ */ (0, q.jsx)(we, {
|
|
26589
26589
|
content: e.canDownload ? `Download ${t}` : `${t} is available for copy only.`,
|
|
26590
26590
|
children: /* @__PURE__ */ (0, q.jsx)("span", {
|
|
26591
26591
|
className: "inline-flex",
|
|
@@ -26596,12 +26596,12 @@ var cB = (e) => {
|
|
|
26596
26596
|
"aria-label": `Download ${t}`,
|
|
26597
26597
|
disabled: !e.canDownload || w || x.length > 0,
|
|
26598
26598
|
onClick: e.canDownload && !w && x.length === 0 ? () => {
|
|
26599
|
-
|
|
26599
|
+
ge(e.format);
|
|
26600
26600
|
} : void 0,
|
|
26601
26601
|
children: /* @__PURE__ */ (0, q.jsx)(Xa, { className: "h-4 w-4" })
|
|
26602
26602
|
})
|
|
26603
26603
|
})
|
|
26604
|
-
}), /* @__PURE__ */ (0, q.jsx)(
|
|
26604
|
+
}), /* @__PURE__ */ (0, q.jsx)(we, {
|
|
26605
26605
|
content: e.canCopy ? `Copy ${t}` : `${t} is available for download only.`,
|
|
26606
26606
|
children: /* @__PURE__ */ (0, q.jsx)("span", {
|
|
26607
26607
|
className: "inline-flex",
|
|
@@ -26610,9 +26610,9 @@ var cB = (e) => {
|
|
|
26610
26610
|
variant: "ghost",
|
|
26611
26611
|
size: "icon",
|
|
26612
26612
|
"aria-label": `Copy ${t}`,
|
|
26613
|
-
disabled: !e.canCopy ||
|
|
26614
|
-
onClick: e.canCopy && !
|
|
26615
|
-
|
|
26613
|
+
disabled: !e.canCopy || O,
|
|
26614
|
+
onClick: e.canCopy && !O ? () => {
|
|
26615
|
+
be(e.format);
|
|
26616
26616
|
} : void 0,
|
|
26617
26617
|
children: /* @__PURE__ */ (0, q.jsx)(Ka, { className: "h-4 w-4" })
|
|
26618
26618
|
})
|
|
@@ -26642,7 +26642,7 @@ var cB = (e) => {
|
|
|
26642
26642
|
value: String(g),
|
|
26643
26643
|
onChange: (e) => {
|
|
26644
26644
|
let t = Number(e.target.value);
|
|
26645
|
-
|
|
26645
|
+
D(C?.geometry_columns[t]?.name ?? null);
|
|
26646
26646
|
},
|
|
26647
26647
|
children: [/* @__PURE__ */ (0, q.jsx)("option", {
|
|
26648
26648
|
value: "-1",
|
|
@@ -26685,7 +26685,7 @@ var cB = (e) => {
|
|
|
26685
26685
|
children: /* @__PURE__ */ (0, q.jsxs)(pa, {
|
|
26686
26686
|
variant: "destructive",
|
|
26687
26687
|
className: "p-3 has-[svg]:pl-9 [&>svg]:left-3 [&>svg]:top-3",
|
|
26688
|
-
children: [/* @__PURE__ */ (0, q.jsx)(
|
|
26688
|
+
children: [/* @__PURE__ */ (0, q.jsx)(z, { className: "h-4 w-4" }), /* @__PURE__ */ (0, q.jsxs)("div", { children: [/* @__PURE__ */ (0, q.jsx)(fa, {
|
|
26689
26689
|
className: "text-sm",
|
|
26690
26690
|
children: p.title
|
|
26691
26691
|
}), /* @__PURE__ */ (0, q.jsx)(ma, {
|
|
@@ -26696,7 +26696,7 @@ var cB = (e) => {
|
|
|
26696
26696
|
})
|
|
26697
26697
|
]
|
|
26698
26698
|
}, e.format);
|
|
26699
|
-
}), t[74] = Ee, t[75] =
|
|
26699
|
+
}), t[74] = Ee, t[75] = j, t[76] = h, t[77] = E, t[78] = n, t[79] = be, t[80] = ge, t[81] = A, t[82] = C, t[83] = T, t[84] = S.refetch, t[85] = s, t[86] = Oe, t[87] = Fe;
|
|
26700
26700
|
} else Fe = t[87];
|
|
26701
26701
|
let Ie;
|
|
26702
26702
|
t[90] === Fe ? Ie = t[91] : (Ie = /* @__PURE__ */ (0, q.jsx)("ul", {
|
|
@@ -26706,7 +26706,7 @@ var cB = (e) => {
|
|
|
26706
26706
|
}), t[90] = Fe, t[91] = Ie);
|
|
26707
26707
|
let Le;
|
|
26708
26708
|
t[92] !== Ne || t[93] !== Ie ? (Le = /* @__PURE__ */ (0, q.jsxs)(Ca, {
|
|
26709
|
-
ref:
|
|
26709
|
+
ref: P,
|
|
26710
26710
|
className: "print:hidden gap-4 sm:max-w-[540px]",
|
|
26711
26711
|
onOpenAutoFocus: je,
|
|
26712
26712
|
onCloseAutoFocus: Me,
|
|
@@ -26714,11 +26714,11 @@ var cB = (e) => {
|
|
|
26714
26714
|
children: [Pe, Ie]
|
|
26715
26715
|
}), t[92] = Ne, t[93] = Ie, t[94] = Le) : Le = t[94];
|
|
26716
26716
|
let Re;
|
|
26717
|
-
return t[95] !== a || t[96] !==
|
|
26717
|
+
return t[95] !== a || t[96] !== ce || t[97] !== Ae || t[98] !== Le ? (Re = /* @__PURE__ */ (0, q.jsxs)(Ea, {
|
|
26718
26718
|
open: a,
|
|
26719
|
-
onOpenChange:
|
|
26719
|
+
onOpenChange: ce,
|
|
26720
26720
|
children: [Ae, Le]
|
|
26721
|
-
}), t[95] = a, t[96] =
|
|
26721
|
+
}), t[95] = a, t[96] = ce, t[97] = Ae, t[98] = Le, t[99] = Re) : Re = t[99], Re;
|
|
26722
26722
|
}, lB = (e) => {
|
|
26723
26723
|
let t = (0, J.c)(31), { format: n, settings: r, onChange: i } = e, a = K.useId(), o;
|
|
26724
26724
|
t[0] !== a || t[1] !== i ? (o = (e, t) => /* @__PURE__ */ (0, q.jsx)(uB, {
|
|
@@ -26805,7 +26805,7 @@ var cB = (e) => {
|
|
|
26805
26805
|
children: s
|
|
26806
26806
|
}), t[28] = e, t[29] = s, t[30] = c) : c = t[30], c;
|
|
26807
26807
|
}
|
|
26808
|
-
default: return
|
|
26808
|
+
default: return Ur(n), null;
|
|
26809
26809
|
}
|
|
26810
26810
|
}, uB = (e) => {
|
|
26811
26811
|
let t = (0, J.c)(17), { id: n, label: r, help: i, children: a } = e, o;
|
|
@@ -26815,7 +26815,7 @@ var cB = (e) => {
|
|
|
26815
26815
|
children: r
|
|
26816
26816
|
}), t[0] = n, t[1] = r, t[2] = o) : o = t[2];
|
|
26817
26817
|
let s = `${r} help`, c;
|
|
26818
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(
|
|
26818
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, q.jsx)(k, { className: "h-3 w-3" }), t[3] = c) : c = t[3];
|
|
26819
26819
|
let l;
|
|
26820
26820
|
t[4] === s ? l = t[5] : (l = /* @__PURE__ */ (0, q.jsx)("button", {
|
|
26821
26821
|
type: "button",
|
|
@@ -26824,7 +26824,7 @@ var cB = (e) => {
|
|
|
26824
26824
|
children: c
|
|
26825
26825
|
}), t[4] = s, t[5] = l);
|
|
26826
26826
|
let u;
|
|
26827
|
-
t[6] !== i || t[7] !== l ? (u = /* @__PURE__ */ (0, q.jsx)(
|
|
26827
|
+
t[6] !== i || t[7] !== l ? (u = /* @__PURE__ */ (0, q.jsx)(we, {
|
|
26828
26828
|
content: i,
|
|
26829
26829
|
children: l
|
|
26830
26830
|
}), t[6] = i, t[7] = l, t[8] = u) : u = t[8];
|
|
@@ -26877,7 +26877,7 @@ function gB(e) {
|
|
|
26877
26877
|
//#endregion
|
|
26878
26878
|
//#region src/components/data-table/TableTopBar.tsx
|
|
26879
26879
|
var _B = () => {}, vB = ({ table: e, showSearch: t, searchQuery: n, onSearchQueryChange: r, reloading: a, showChartBuilder: o, isChartBuilderOpen: s, toggleDisplayHeader: c, showTableExplorer: l, togglePanel: d, isAnyPanelOpen: f, downloadAs: p, getExportMetadata: m, metadataSource: h, sizeBytes: g, sizeBytesIsLoading: _ }) => {
|
|
26880
|
-
let [v, y] = (0, K.useState)(n || ""), b = rj(v, 500), x =
|
|
26880
|
+
let [v, y] = (0, K.useState)(n || ""), b = rj(v, 500), x = Qi(r ?? _B), S = K.useRef(null);
|
|
26881
26881
|
return (0, K.useEffect)(() => {
|
|
26882
26882
|
x(b);
|
|
26883
26883
|
}, [b, x]), /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
@@ -26898,14 +26898,14 @@ var _B = () => {}, vB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
26898
26898
|
onChange: (e) => y(e.target.value),
|
|
26899
26899
|
placeholder: "Search..."
|
|
26900
26900
|
}),
|
|
26901
|
-
a && /* @__PURE__ */ (0, q.jsx)(
|
|
26901
|
+
a && /* @__PURE__ */ (0, q.jsx)(le, { size: "small" }),
|
|
26902
26902
|
v && /* @__PURE__ */ (0, q.jsx)(u, {
|
|
26903
26903
|
"aria-label": "Clear table search",
|
|
26904
26904
|
variant: "text",
|
|
26905
26905
|
size: "xs",
|
|
26906
26906
|
className: "h-5 w-5 p-0 shrink-0",
|
|
26907
26907
|
onClick: () => y(""),
|
|
26908
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
26908
|
+
children: /* @__PURE__ */ (0, q.jsx)(Kr, { className: "w-3 h-3 text-muted-foreground" })
|
|
26909
26909
|
})
|
|
26910
26910
|
]
|
|
26911
26911
|
}), /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
@@ -26936,20 +26936,20 @@ var _B = () => {}, vB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
26936
26936
|
]
|
|
26937
26937
|
})]
|
|
26938
26938
|
});
|
|
26939
|
-
}, yB = (0, K.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: r, data: a, rawData: o, selection: s, totalColumns: c, totalRows: l, hasNextPage: d, sizeBytes: f, sizeBytesIsLoading: p, manualSorting: m = !1, sorting: h, setSorting: g, rowSelection: _, cellSelection: v, cellStyling: y, hoverTemplate: b, cellHoverTexts: x, paginationState: S, setPaginationState: C, downloadAs: w, getExportMetadata: T, manualPagination: E = !1, pagination: D = !1, onRowSelectionChange: O, onCellSelectionChange: k, getRowIds: A, showSearch: j = !1, searchQuery: M, onSearchQueryChange: N, showFilters: P = !1, filters: F, onFiltersChange: I, calculateTopKRows: L, reloading: R, freezeColumnsLeft: z, freezeColumnsRight: B, hiddenColumns:
|
|
26940
|
-
let
|
|
26939
|
+
}, yB = (0, K.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: r, data: a, rawData: o, selection: s, totalColumns: c, totalRows: l, hasNextPage: d, sizeBytes: f, sizeBytesIsLoading: p, manualSorting: m = !1, sorting: h, setSorting: g, rowSelection: _, cellSelection: v, cellStyling: y, hoverTemplate: b, cellHoverTexts: x, paginationState: S, setPaginationState: C, downloadAs: w, getExportMetadata: T, manualPagination: E = !1, pagination: D = !1, onRowSelectionChange: O, onCellSelectionChange: k, getRowIds: A, showSearch: j = !1, searchQuery: M, onSearchQueryChange: N, showFilters: P = !1, filters: F, onFiltersChange: I, calculateTopKRows: L, reloading: R, freezeColumnsLeft: z, freezeColumnsRight: B, hiddenColumns: V, toggleDisplayHeader: ee, showChartBuilder: te, isChartBuilderOpen: H, showPageSizeSelector: ne, showTableExplorer: re, togglePanel: ie, isPanelOpen: ae, isAnyPanelOpen: oe, viewedRowIdx: se, onViewedRowChange: ce, renderTableExplorerPanel: le }) => {
|
|
26940
|
+
let ue = oa(), de = !ue, [fe, pe] = K.useState(!1), { locale: me } = Fe(), { columnPinning: he, setColumnPinning: ge } = hI(z, B), { columnVisibility: _e, setColumnVisibility: ve } = WR(V);
|
|
26941
26941
|
K.useEffect(() => {
|
|
26942
26942
|
let e;
|
|
26943
26943
|
return R ? e = setTimeout(() => {
|
|
26944
|
-
|
|
26945
|
-
}, 300) :
|
|
26944
|
+
pe(!0);
|
|
26945
|
+
}, 300) : pe(!1), () => {
|
|
26946
26946
|
e && clearTimeout(e);
|
|
26947
26947
|
};
|
|
26948
26948
|
}, [R]);
|
|
26949
|
-
function
|
|
26949
|
+
function ye(e, t) {
|
|
26950
26950
|
return S ? t + (E ? S.pageIndex * S.pageSize : 0) : t;
|
|
26951
26951
|
}
|
|
26952
|
-
let
|
|
26952
|
+
let be = K.useMemo(() => Yj(M), [M]), U = FA({
|
|
26953
26953
|
_features: [
|
|
26954
26954
|
Bk,
|
|
26955
26955
|
Hj,
|
|
@@ -26965,7 +26965,7 @@ var _B = () => {}, vB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
26965
26965
|
columns: r,
|
|
26966
26966
|
meta: {
|
|
26967
26967
|
rawData: o,
|
|
26968
|
-
highlightPattern:
|
|
26968
|
+
highlightPattern: be
|
|
26969
26969
|
},
|
|
26970
26970
|
getCoreRowModel: CA(),
|
|
26971
26971
|
rowCount: l === "too_many" ? void 0 : l,
|
|
@@ -26975,30 +26975,30 @@ var _B = () => {}, vB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
26975
26975
|
getRowId: (e, t) => {
|
|
26976
26976
|
let n = YO(e);
|
|
26977
26977
|
if (n) return n;
|
|
26978
|
-
let r =
|
|
26978
|
+
let r = ye(e, t);
|
|
26979
26979
|
return String(r);
|
|
26980
26980
|
}
|
|
26981
26981
|
} : {},
|
|
26982
|
-
locale:
|
|
26982
|
+
locale: me,
|
|
26983
26983
|
manualPagination: E,
|
|
26984
26984
|
getPaginationRowModel: kA(),
|
|
26985
26985
|
...g ? { onSortingChange: g } : {},
|
|
26986
26986
|
manualSorting: m,
|
|
26987
|
-
enableSorting: !
|
|
26987
|
+
enableSorting: !ue,
|
|
26988
26988
|
enableMultiSort: !0,
|
|
26989
26989
|
getSortedRowModel: AA(),
|
|
26990
26990
|
manualFiltering: !0,
|
|
26991
|
-
enableColumnFilters: P && !
|
|
26991
|
+
enableColumnFilters: P && !ue,
|
|
26992
26992
|
getFilteredRowModel: OA(),
|
|
26993
26993
|
onColumnFiltersChange: I,
|
|
26994
26994
|
onRowSelectionChange: O,
|
|
26995
26995
|
onCellSelectionChange: k,
|
|
26996
26996
|
enableCellSelection: s === "single-cell" || s === "multi-cell",
|
|
26997
26997
|
enableMultiCellSelection: s === "multi-cell",
|
|
26998
|
-
onColumnPinningChange:
|
|
26999
|
-
onColumnVisibilityChange:
|
|
26998
|
+
onColumnPinningChange: ge,
|
|
26999
|
+
onColumnVisibilityChange: ve,
|
|
27000
27000
|
enableFocusRow: !0,
|
|
27001
|
-
onFocusRowChange:
|
|
27001
|
+
onFocusRowChange: ce,
|
|
27002
27002
|
state: {
|
|
27003
27003
|
...h ? { sorting: h } : {},
|
|
27004
27004
|
columnFilters: F,
|
|
@@ -27008,19 +27008,19 @@ var _B = () => {}, vB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27008
27008
|
} },
|
|
27009
27009
|
rowSelection: _ ?? {},
|
|
27010
27010
|
cellSelection: v ?? [],
|
|
27011
|
-
columnVisibility:
|
|
27011
|
+
columnVisibility: _e,
|
|
27012
27012
|
cellStyling: y,
|
|
27013
|
-
columnPinning:
|
|
27013
|
+
columnPinning: he,
|
|
27014
27014
|
cellHoverTemplate: b,
|
|
27015
27015
|
cellHoverTexts: x ?? {}
|
|
27016
27016
|
}
|
|
27017
|
-
}),
|
|
27017
|
+
}), xe = ae?.(AP.ROW_VIEWER) ?? !1, Se = !D && a.length > 100, Ce = _I({
|
|
27018
27018
|
maxHeight: n,
|
|
27019
|
-
virtualize:
|
|
27020
|
-
}), [
|
|
27021
|
-
let t =
|
|
27019
|
+
virtualize: Se
|
|
27020
|
+
}), [we, Te] = K.useState(null), Ee = K.useMemo(() => ({ requestAddFilter: (e) => {
|
|
27021
|
+
let t = U.getColumn(e.columnId);
|
|
27022
27022
|
t && Te(eI(t, { operator: e.operator }));
|
|
27023
|
-
} }), [
|
|
27023
|
+
} }), [U]), De = GR(U), Oe = De.total > 0 && De.visible === 0;
|
|
27024
27024
|
return /* @__PURE__ */ (0, q.jsx)(iO, {
|
|
27025
27025
|
value: Ee,
|
|
27026
27026
|
children: /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
@@ -27028,58 +27028,58 @@ var _B = () => {}, vB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27028
27028
|
children: [
|
|
27029
27029
|
/* @__PURE__ */ (0, q.jsx)(dI, {
|
|
27030
27030
|
filters: F,
|
|
27031
|
-
table:
|
|
27031
|
+
table: U,
|
|
27032
27032
|
calculateTopKRows: L,
|
|
27033
|
-
addFilterSnapshot:
|
|
27033
|
+
addFilterSnapshot: we,
|
|
27034
27034
|
onAddFilterSnapshotChange: Te
|
|
27035
27035
|
}),
|
|
27036
|
-
|
|
27036
|
+
le?.(U),
|
|
27037
27037
|
/* @__PURE__ */ (0, q.jsx)(IL, { children: /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
27038
27038
|
part: "table-wrapper",
|
|
27039
27039
|
className: i(t || "rounded-md border overflow-hidden"),
|
|
27040
27040
|
children: [
|
|
27041
|
-
|
|
27042
|
-
table:
|
|
27041
|
+
de && /* @__PURE__ */ (0, q.jsx)(vB, {
|
|
27042
|
+
table: U,
|
|
27043
27043
|
showSearch: j,
|
|
27044
27044
|
searchQuery: M,
|
|
27045
27045
|
onSearchQueryChange: N,
|
|
27046
27046
|
reloading: R,
|
|
27047
|
-
showChartBuilder:
|
|
27048
|
-
isChartBuilderOpen:
|
|
27049
|
-
toggleDisplayHeader:
|
|
27050
|
-
showTableExplorer:
|
|
27051
|
-
togglePanel:
|
|
27052
|
-
isAnyPanelOpen:
|
|
27047
|
+
showChartBuilder: te,
|
|
27048
|
+
isChartBuilderOpen: H,
|
|
27049
|
+
toggleDisplayHeader: ee,
|
|
27050
|
+
showTableExplorer: re,
|
|
27051
|
+
togglePanel: ie,
|
|
27052
|
+
isAnyPanelOpen: oe,
|
|
27053
27053
|
downloadAs: w,
|
|
27054
27054
|
getExportMetadata: T,
|
|
27055
27055
|
metadataSource: a,
|
|
27056
27056
|
sizeBytes: f,
|
|
27057
27057
|
sizeBytesIsLoading: p
|
|
27058
27058
|
}),
|
|
27059
|
-
Oe && /* @__PURE__ */ (0, q.jsxs)(
|
|
27059
|
+
Oe && /* @__PURE__ */ (0, q.jsxs)(Ki, {
|
|
27060
27060
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
27061
27061
|
children: [/* @__PURE__ */ (0, q.jsx)("span", { children: "All columns are hidden." }), /* @__PURE__ */ (0, q.jsx)(u, {
|
|
27062
27062
|
variant: "link",
|
|
27063
27063
|
size: "xs",
|
|
27064
|
-
onClick: () =>
|
|
27064
|
+
onClick: () => U.resetColumnVisibility(!0),
|
|
27065
27065
|
children: "Unhide all"
|
|
27066
27066
|
})]
|
|
27067
27067
|
}),
|
|
27068
27068
|
/* @__PURE__ */ (0, q.jsxs)(SM, {
|
|
27069
|
-
role:
|
|
27070
|
-
"aria-multiselectable":
|
|
27069
|
+
role: U.options.enableCellSelection ? "grid" : void 0,
|
|
27070
|
+
"aria-multiselectable": U.options.enableCellSelection ? U.options.enableMultiCellSelection : void 0,
|
|
27071
27071
|
className: i("relative", r.length <= 4 ? "w-auto" : "w-full"),
|
|
27072
|
-
ref:
|
|
27072
|
+
ref: Ce,
|
|
27073
27073
|
children: [
|
|
27074
|
-
|
|
27075
|
-
BR(
|
|
27074
|
+
fe && /* @__PURE__ */ (0, q.jsx)("thead", { className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide" }),
|
|
27075
|
+
BR(U, Se || !!n),
|
|
27076
27076
|
/* @__PURE__ */ (0, q.jsx)(VR, {
|
|
27077
|
-
table:
|
|
27077
|
+
table: U,
|
|
27078
27078
|
columns: r,
|
|
27079
|
-
rowViewerPanelOpen:
|
|
27080
|
-
getRowIndex:
|
|
27081
|
-
viewedRowIdx:
|
|
27082
|
-
virtualize:
|
|
27079
|
+
rowViewerPanelOpen: xe,
|
|
27080
|
+
getRowIndex: ye,
|
|
27081
|
+
viewedRowIdx: se,
|
|
27082
|
+
virtualize: Se
|
|
27083
27083
|
})
|
|
27084
27084
|
]
|
|
27085
27085
|
}),
|
|
@@ -27091,9 +27091,9 @@ var _B = () => {}, vB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27091
27091
|
hasNextPage: d,
|
|
27092
27092
|
selection: s,
|
|
27093
27093
|
onRowSelectionChange: O,
|
|
27094
|
-
table:
|
|
27094
|
+
table: U,
|
|
27095
27095
|
getRowIds: A,
|
|
27096
|
-
showPageSizeSelector:
|
|
27096
|
+
showPageSizeSelector: ne,
|
|
27097
27097
|
tableLoading: R
|
|
27098
27098
|
})
|
|
27099
27099
|
]
|
|
@@ -27129,7 +27129,7 @@ var _B = () => {}, vB = ({ table: e, showSearch: t, searchQuery: n, onSearchQuer
|
|
|
27129
27129
|
wrapperClassName: "h-full justify-between pb-1 px-1",
|
|
27130
27130
|
pagination: !0,
|
|
27131
27131
|
className: "rounded-none border-b flex flex-col overflow-hidden",
|
|
27132
|
-
rowSelection:
|
|
27132
|
+
rowSelection: Xi.EMPTY
|
|
27133
27133
|
}), t[7] = d, t[8] = i, t[9] = o, t[10] = f) : f = t[10], f;
|
|
27134
27134
|
};
|
|
27135
27135
|
//#endregion
|
|
@@ -27151,7 +27151,7 @@ function SB(e, t) {
|
|
|
27151
27151
|
head: c + s.length - 1
|
|
27152
27152
|
},
|
|
27153
27153
|
scrollIntoView: !0,
|
|
27154
|
-
effects: [
|
|
27154
|
+
effects: [ua.scrollIntoView(c, { y: "center" })]
|
|
27155
27155
|
}), e.focus(), !0;
|
|
27156
27156
|
}
|
|
27157
27157
|
//#endregion
|
|
@@ -27167,17 +27167,17 @@ var CB = (e) => {
|
|
|
27167
27167
|
]
|
|
27168
27168
|
}), t[0] = r, t[1] = s, t[2] = c) : c = t[2];
|
|
27169
27169
|
let l = c, d;
|
|
27170
|
-
t[3] !== r || t[4] !== s ? (d = s === "html" ?
|
|
27170
|
+
t[3] !== r || t[4] !== s ? (d = s === "html" ? kr(Cr(r)) : r, t[3] = r, t[4] = s, t[5] = d) : d = t[5];
|
|
27171
27171
|
let f = d, p;
|
|
27172
27172
|
t[6] === f ? p = t[7] : (p = wB(f), t[6] = f, t[7] = p);
|
|
27173
|
-
let g = p, _ =
|
|
27174
|
-
t[8] === r ? y = t[9] : (y =
|
|
27173
|
+
let g = p, _ = ei(bi), v = IT(), y;
|
|
27174
|
+
t[8] === r ? y = t[9] : (y = Qg(r)?.at(0), t[8] = r, t[9] = y);
|
|
27175
27175
|
let b = y, x;
|
|
27176
|
-
t[10] !== a || t[11] !== b ? (x = b && b.kind === "cell" &&
|
|
27176
|
+
t[10] !== a || t[11] !== b ? (x = b && b.kind === "cell" && !$i() && !oa() && a !== "__scratch__", t[10] = a, t[11] = b, t[12] = x) : x = t[12];
|
|
27177
27177
|
let S = x, C;
|
|
27178
|
-
t[13] !== _ || t[14] !== n ? (C = n && _ && !
|
|
27178
|
+
t[13] !== _ || t[14] !== n ? (C = n && _ && !oa(), t[13] = _, t[14] = n, t[15] = C) : C = t[15];
|
|
27179
27179
|
let w = C, T;
|
|
27180
|
-
t[16] === Symbol.for("react.memo_cache_sentinel") ? (T =
|
|
27180
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (T = oa(), t[16] = T) : T = t[16];
|
|
27181
27181
|
let E = !T, [D, O] = (0, K.useState)(!0), k;
|
|
27182
27182
|
t[17] !== g || t[18] !== n ? (k = (e) => {
|
|
27183
27183
|
n?.({
|
|
@@ -27218,27 +27218,27 @@ var CB = (e) => {
|
|
|
27218
27218
|
traceback: r,
|
|
27219
27219
|
tracebackFormat: s
|
|
27220
27220
|
}) }), t[37] = a, t[38] = o, t[39] = g, t[40] = r, t[41] = s, t[42] = B) : B = t[42];
|
|
27221
|
-
let
|
|
27222
|
-
t[43] !== j || t[44] !== N || t[45] !== w ? (
|
|
27221
|
+
let V;
|
|
27222
|
+
t[43] !== j || t[44] !== N || t[45] !== w ? (V = w && /* @__PURE__ */ (0, q.jsx)(WT, {
|
|
27223
27223
|
tooltip: "Fix with AI",
|
|
27224
27224
|
openPrompt: () => j(!1),
|
|
27225
27225
|
applyAutofix: () => j(!0),
|
|
27226
27226
|
openChat: N
|
|
27227
|
-
}), t[43] = j, t[44] = N, t[45] = w, t[46] =
|
|
27228
|
-
let
|
|
27229
|
-
t[47] !== S || t[48] !== b ? (
|
|
27227
|
+
}), t[43] = j, t[44] = N, t[45] = w, t[46] = V) : V = t[46];
|
|
27228
|
+
let ee;
|
|
27229
|
+
t[47] !== S || t[48] !== b ? (ee = S && /* @__PURE__ */ (0, q.jsx)(we, {
|
|
27230
27230
|
content: "Attach pdb to the exception point.",
|
|
27231
27231
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
27232
27232
|
size: "xs",
|
|
27233
27233
|
variant: "outline",
|
|
27234
27234
|
onClick: () => {
|
|
27235
|
-
|
|
27235
|
+
Dr().sendPdb({ cellId: b.cellId });
|
|
27236
27236
|
},
|
|
27237
27237
|
children: [/* @__PURE__ */ (0, q.jsx)(za, { className: "h-3 w-3 mr-2" }), "Launch debugger"]
|
|
27238
27238
|
})
|
|
27239
|
-
}), t[47] = S, t[48] = b, t[49] =
|
|
27240
|
-
let
|
|
27241
|
-
t[50] !== g || t[51] !== f ? (
|
|
27239
|
+
}), t[47] = S, t[48] = b, t[49] = ee) : ee = t[49];
|
|
27240
|
+
let te;
|
|
27241
|
+
t[50] !== g || t[51] !== f ? (te = E && /* @__PURE__ */ (0, q.jsxs)(Yn, { children: [/* @__PURE__ */ (0, q.jsx)(vn, {
|
|
27242
27242
|
asChild: !0,
|
|
27243
27243
|
children: /* @__PURE__ */ (0, q.jsxs)(u, {
|
|
27244
27244
|
size: "xs",
|
|
@@ -27258,7 +27258,7 @@ var CB = (e) => {
|
|
|
27258
27258
|
children: [
|
|
27259
27259
|
/* @__PURE__ */ (0, q.jsx)(sr, { className: "h-4 w-4 mr-2" }),
|
|
27260
27260
|
"Search on Google",
|
|
27261
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
27261
|
+
/* @__PURE__ */ (0, q.jsx)(vr, { className: "h-3 w-3 ml-auto" })
|
|
27262
27262
|
]
|
|
27263
27263
|
})
|
|
27264
27264
|
}),
|
|
@@ -27271,7 +27271,7 @@ var CB = (e) => {
|
|
|
27271
27271
|
children: [
|
|
27272
27272
|
/* @__PURE__ */ (0, q.jsx)(so, { className: "h-4 w-4 mr-2" }),
|
|
27273
27273
|
"Ask in Discord",
|
|
27274
|
-
/* @__PURE__ */ (0, q.jsx)(
|
|
27274
|
+
/* @__PURE__ */ (0, q.jsx)(vr, { className: "h-3 w-3 ml-auto" })
|
|
27275
27275
|
]
|
|
27276
27276
|
})
|
|
27277
27277
|
}),
|
|
@@ -27282,34 +27282,34 @@ var CB = (e) => {
|
|
|
27282
27282
|
children: [/* @__PURE__ */ (0, q.jsx)(h, { className: "h-4 w-4 mr-2" }), "Copy to clipboard"]
|
|
27283
27283
|
})
|
|
27284
27284
|
]
|
|
27285
|
-
})] }), t[50] = g, t[51] = f, t[52] =
|
|
27286
|
-
let
|
|
27287
|
-
t[53] !== B || t[54] !==
|
|
27285
|
+
})] }), t[50] = g, t[51] = f, t[52] = te) : te = t[52];
|
|
27286
|
+
let H;
|
|
27287
|
+
t[53] !== B || t[54] !== V || t[55] !== ee || t[56] !== te ? (H = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
27288
27288
|
className: "flex gap-2",
|
|
27289
27289
|
children: [
|
|
27290
27290
|
B,
|
|
27291
|
+
V,
|
|
27291
27292
|
ee,
|
|
27292
|
-
te
|
|
27293
|
-
ne
|
|
27293
|
+
te
|
|
27294
27294
|
]
|
|
27295
|
-
}), t[53] = B, t[54] =
|
|
27296
|
-
let
|
|
27297
|
-
return t[58] !== R || t[59] !== z || t[60] !==
|
|
27295
|
+
}), t[53] = B, t[54] = V, t[55] = ee, t[56] = te, t[57] = H) : H = t[57];
|
|
27296
|
+
let ne;
|
|
27297
|
+
return t[58] !== R || t[59] !== z || t[60] !== H ? (ne = /* @__PURE__ */ (0, q.jsxs)("div", {
|
|
27298
27298
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
27299
27299
|
children: [
|
|
27300
27300
|
R,
|
|
27301
27301
|
z,
|
|
27302
|
-
|
|
27302
|
+
H
|
|
27303
27303
|
]
|
|
27304
|
-
}), t[58] = R, t[59] = z, t[60] =
|
|
27304
|
+
}), t[58] = R, t[59] = z, t[60] = H, t[61] = ne) : ne = t[61], ne;
|
|
27305
27305
|
};
|
|
27306
27306
|
function wB(e) {
|
|
27307
27307
|
return e.split("\n").filter(Boolean)?.at(-1) || "";
|
|
27308
27308
|
}
|
|
27309
27309
|
var TB = (e) => {
|
|
27310
|
-
let t =
|
|
27310
|
+
let t = Zg(e);
|
|
27311
27311
|
if (t?.kind === "cell") {
|
|
27312
|
-
let e =
|
|
27312
|
+
let e = ae("debugger"), n = e ? /* @__PURE__ */ (0, q.jsx)(kB, {}) : /* @__PURE__ */ (0, q.jsx)(OB, {});
|
|
27313
27313
|
return /* @__PURE__ */ (0, q.jsx)("span", {
|
|
27314
27314
|
className: "nb",
|
|
27315
27315
|
children: /* @__PURE__ */ (0, q.jsxs)("span", {
|
|
@@ -27317,18 +27317,18 @@ var TB = (e) => {
|
|
|
27317
27317
|
children: [/* @__PURE__ */ (0, q.jsx)(Ix, {
|
|
27318
27318
|
cellId: t.cellId,
|
|
27319
27319
|
lineNumber: t.lineNumber
|
|
27320
|
-
}),
|
|
27320
|
+
}), !$i() && /* @__PURE__ */ (0, q.jsx)(we, {
|
|
27321
27321
|
content: n,
|
|
27322
27322
|
children: /* @__PURE__ */ (0, q.jsx)("button", {
|
|
27323
27323
|
type: "button",
|
|
27324
27324
|
"aria-label": e ? "Toggle breakpoint" : "Insert breakpoint",
|
|
27325
27325
|
className: "ml-1 p-1 rounded-sm hover:bg-muted transition-colors inline",
|
|
27326
27326
|
onClick: () => {
|
|
27327
|
-
if (e && !
|
|
27328
|
-
|
|
27327
|
+
if (e && !oa()) {
|
|
27328
|
+
nv(t.cellId, t.lineNumber);
|
|
27329
27329
|
return;
|
|
27330
27330
|
}
|
|
27331
|
-
let n =
|
|
27331
|
+
let n = Rr(t.cellId);
|
|
27332
27332
|
n && SB(n, t.lineNumber);
|
|
27333
27333
|
},
|
|
27334
27334
|
children: /* @__PURE__ */ (0, q.jsx)(za, { className: "h-3 w-3" })
|
|
@@ -27341,7 +27341,7 @@ var TB = (e) => {
|
|
|
27341
27341
|
type: "button",
|
|
27342
27342
|
className: "inline-block cursor-pointer text-destructive hover:underline",
|
|
27343
27343
|
onClick: () => {
|
|
27344
|
-
|
|
27344
|
+
Dr().openFile({
|
|
27345
27345
|
path: t.filePath,
|
|
27346
27346
|
lineNumber: t.lineNumber
|
|
27347
27347
|
});
|
|
@@ -27356,11 +27356,11 @@ var TB = (e) => {
|
|
|
27356
27356
|
})
|
|
27357
27357
|
});
|
|
27358
27358
|
}, EB = (e) => {
|
|
27359
|
-
if (!(e instanceof
|
|
27359
|
+
if (!(e instanceof O.Text) || !e.nodeValue || !pT(e.nodeValue)) return;
|
|
27360
27360
|
let t = fT(e.nodeValue);
|
|
27361
27361
|
return /* @__PURE__ */ (0, q.jsx)(qT, { segments: t });
|
|
27362
27362
|
}, DB = (e) => {
|
|
27363
|
-
if (e instanceof
|
|
27363
|
+
if (e instanceof O.Text && e.nodeValue?.includes("File") && e.next instanceof O.Element && Xg(e.next)) return /* @__PURE__ */ (0, q.jsx)(q.Fragment, { children: e.nodeValue.replace("File", "Cell") });
|
|
27364
27364
|
}, OB = () => {
|
|
27365
27365
|
let e = (0, J.c)(1), t;
|
|
27366
27366
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [
|
|
@@ -27406,7 +27406,7 @@ function AB(e) {
|
|
|
27406
27406
|
//#endregion
|
|
27407
27407
|
//#region src/components/editor/Output.tsx
|
|
27408
27408
|
var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
27409
|
-
let t = (0, J.c)(57), { message: n, onRefactorWithAI: r, cellId: i, wrapText: a, metadata: o, renderFallback: s } = e, { theme: c } =
|
|
27409
|
+
let t = (0, J.c)(57), { message: n, onRefactorWithAI: r, cellId: i, wrapText: a, metadata: o, renderFallback: s } = e, { theme: c } = Ai(), l;
|
|
27410
27410
|
bb0: {
|
|
27411
27411
|
let e = n.data;
|
|
27412
27412
|
switch (n.mimetype) {
|
|
@@ -27427,7 +27427,7 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27427
27427
|
if (f == null) return null;
|
|
27428
27428
|
switch (p) {
|
|
27429
27429
|
case "text/html": {
|
|
27430
|
-
|
|
27430
|
+
Zi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27431
27431
|
let e;
|
|
27432
27432
|
return t[2] !== d || t[3] !== f ? (e = /* @__PURE__ */ (0, q.jsx)($w, {
|
|
27433
27433
|
className: d,
|
|
@@ -27437,7 +27437,7 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27437
27437
|
}
|
|
27438
27438
|
case "text/plain":
|
|
27439
27439
|
case "text/password": {
|
|
27440
|
-
|
|
27440
|
+
Zi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27441
27441
|
let e;
|
|
27442
27442
|
return t[5] !== d || t[6] !== f || t[7] !== a ? (e = /* @__PURE__ */ (0, q.jsx)(mD, {
|
|
27443
27443
|
channel: d,
|
|
@@ -27460,7 +27460,7 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27460
27460
|
case "image/gif":
|
|
27461
27461
|
case "image/jpeg":
|
|
27462
27462
|
case "image/svg+xml": {
|
|
27463
|
-
if (
|
|
27463
|
+
if (Zi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`), p === "image/svg+xml" && !f.startsWith("data:image/svg+xml;base64,")) {
|
|
27464
27464
|
let e;
|
|
27465
27465
|
return t[12] === f ? e = t[13] : (e = A({
|
|
27466
27466
|
html: f,
|
|
@@ -27478,7 +27478,7 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27478
27478
|
}
|
|
27479
27479
|
case "video/mp4":
|
|
27480
27480
|
case "video/mpeg": {
|
|
27481
|
-
|
|
27481
|
+
Zi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27482
27482
|
let e;
|
|
27483
27483
|
return t[19] !== d || t[20] !== f ? (e = /* @__PURE__ */ (0, q.jsx)(hD, {
|
|
27484
27484
|
className: d,
|
|
@@ -27486,7 +27486,7 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27486
27486
|
}), t[19] = d, t[20] = f, t[21] = e) : e = t[21], e;
|
|
27487
27487
|
}
|
|
27488
27488
|
case "application/vnd.marimo+error": {
|
|
27489
|
-
|
|
27489
|
+
Zi(Array.isArray(f), "Expected array data");
|
|
27490
27490
|
let e;
|
|
27491
27491
|
return t[22] !== i || t[23] !== f || t[24] !== n.code ? (e = /* @__PURE__ */ (0, q.jsx)(EE, {
|
|
27492
27492
|
cellId: i,
|
|
@@ -27495,7 +27495,7 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27495
27495
|
}), t[22] = i, t[23] = f, t[24] = n.code, t[25] = e) : e = t[25], e;
|
|
27496
27496
|
}
|
|
27497
27497
|
case "application/vnd.marimo+traceback": {
|
|
27498
|
-
|
|
27498
|
+
Zi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27499
27499
|
let e;
|
|
27500
27500
|
return t[26] !== i || t[27] !== f || t[28] !== n.code || t[29] !== n.traceback_format || t[30] !== r ? (e = /* @__PURE__ */ (0, q.jsx)(CB, {
|
|
27501
27501
|
onRefactorWithAI: r,
|
|
@@ -27506,13 +27506,13 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27506
27506
|
}), t[26] = i, t[27] = f, t[28] = n.code, t[29] = n.traceback_format, t[30] = r, t[31] = e) : e = t[31], e;
|
|
27507
27507
|
}
|
|
27508
27508
|
case "text/csv": {
|
|
27509
|
-
|
|
27509
|
+
Zi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27510
27510
|
let e;
|
|
27511
27511
|
return t[32] === f ? e = t[33] : (e = /* @__PURE__ */ (0, q.jsx)(xB, { contents: f }), t[32] = f, t[33] = e), e;
|
|
27512
27512
|
}
|
|
27513
27513
|
case "text/latex":
|
|
27514
27514
|
case "text/markdown": {
|
|
27515
|
-
|
|
27515
|
+
Zi(typeof f == "string", `Expected string data for mime=${p}. Got ${typeof f}`);
|
|
27516
27516
|
let e;
|
|
27517
27517
|
return t[34] !== d || t[35] !== f ? (e = /* @__PURE__ */ (0, q.jsx)($w, {
|
|
27518
27518
|
className: d,
|
|
@@ -27558,7 +27558,7 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27558
27558
|
let n;
|
|
27559
27559
|
t[50] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, q.jsx)("br", {}), t[50] = n) : n = t[50];
|
|
27560
27560
|
let r;
|
|
27561
|
-
return t[51] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, q.jsxs)(
|
|
27561
|
+
return t[51] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, q.jsxs)(Ki, {
|
|
27562
27562
|
kind: "warn",
|
|
27563
27563
|
children: [
|
|
27564
27564
|
e,
|
|
@@ -27578,7 +27578,7 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27578
27578
|
}), t[51] = r) : r = t[51], r;
|
|
27579
27579
|
}
|
|
27580
27580
|
default: {
|
|
27581
|
-
if (
|
|
27581
|
+
if (Ur(p), s) {
|
|
27582
27582
|
let e;
|
|
27583
27583
|
return t[52] !== p || t[53] !== s ? (e = s(p), t[52] = p, t[53] = s, t[54] = e) : e = t[54], e;
|
|
27584
27584
|
}
|
|
@@ -27592,11 +27592,11 @@ var jB = "__metadata__", MB = (0, K.memo)((e) => {
|
|
|
27592
27592
|
});
|
|
27593
27593
|
MB.displayName = "OutputRenderer";
|
|
27594
27594
|
var NB = (0, K.memo)((e) => {
|
|
27595
|
-
let t = (0, J.c)(31), { data: n, channel: r, cellId: a } = e, o = Array.isArray(n) ? n[0] : n, { mode: s } =
|
|
27595
|
+
let t = (0, J.c)(31), { data: n, channel: r, cellId: a } = e, o = Array.isArray(n) ? n[0] : n, { mode: s } = ei(ta), c = s === "present" || s === "read", l = o[jB], u, d, f, p, m, h, g, _;
|
|
27596
27596
|
if (t[0] !== c || t[1] !== a || t[2] !== r || t[3] !== l || t[4] !== o) {
|
|
27597
27597
|
_ = Symbol.for("react.early_return_sentinel");
|
|
27598
27598
|
bb0: {
|
|
27599
|
-
let { entries: e } = xD(
|
|
27599
|
+
let { entries: e } = xD(Xi.entries(o).filter(RB).map(zB)), n = e[0]?.[0];
|
|
27600
27600
|
if (!n) {
|
|
27601
27601
|
_ = null;
|
|
27602
27602
|
break bb0;
|
|
@@ -27661,7 +27661,7 @@ var PB = K.memo((e) => {
|
|
|
27661
27661
|
let t = (0, J.c)(17), { output: n, cellId: r, stale: a, loading: o, allowExpand: s, forceExpand: c, className: l } = e;
|
|
27662
27662
|
if (n == null || n.channel === "output" && n.data === "") return null;
|
|
27663
27663
|
let u = a ? "This output is stale" : void 0, d = s ? LB : FB, f;
|
|
27664
|
-
t[0] === r ? f = t[1] : (f =
|
|
27664
|
+
t[0] === r ? f = t[1] : (f = Mr.create(r), t[0] = r, t[1] = f);
|
|
27665
27665
|
let p = a && "marimo-output-stale", m = o && "marimo-output-loading", h;
|
|
27666
27666
|
t[2] !== l || t[3] !== p || t[4] !== m ? (h = i(p, m, l), t[2] = l, t[3] = p, t[4] = m, t[5] = h) : h = t[5];
|
|
27667
27667
|
let g;
|
|
@@ -27696,10 +27696,10 @@ function IB() {
|
|
|
27696
27696
|
var LB = K.memo((e) => {
|
|
27697
27697
|
let t = (0, J.c)(34), n, r, s, c;
|
|
27698
27698
|
t[0] === e ? (n = t[1], r = t[2], s = t[3], c = t[4]) : ({cellId: n, children: r, forceExpand: s, ...c} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = s, t[4] = c);
|
|
27699
|
-
let l = (0, K.useRef)(null), [d, f] =
|
|
27699
|
+
let l = (0, K.useRef)(null), [d, f] = fe(n), p = gD(l), { hasFullscreen: m } = Fa(), h = xi(l);
|
|
27700
27700
|
a(h ? document : null, "keydown", VB);
|
|
27701
27701
|
let g;
|
|
27702
|
-
t[5] === m ? g = t[6] : (g = m && /* @__PURE__ */ (0, q.jsx)(
|
|
27702
|
+
t[5] === m ? g = t[6] : (g = m && /* @__PURE__ */ (0, q.jsx)(we, {
|
|
27703
27703
|
content: "Fullscreen",
|
|
27704
27704
|
side: "left",
|
|
27705
27705
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
@@ -27724,11 +27724,11 @@ var LB = K.memo((e) => {
|
|
|
27724
27724
|
onClick: () => f(!d),
|
|
27725
27725
|
size: "xs",
|
|
27726
27726
|
variant: "text",
|
|
27727
|
-
children: d ? /* @__PURE__ */ (0, q.jsx)(
|
|
27727
|
+
children: d ? /* @__PURE__ */ (0, q.jsx)(we, {
|
|
27728
27728
|
content: "Collapse output",
|
|
27729
27729
|
side: "left",
|
|
27730
27730
|
children: /* @__PURE__ */ (0, q.jsx)(Ha, { className: "h-4 w-4" })
|
|
27731
|
-
}) : /* @__PURE__ */ (0, q.jsx)(
|
|
27731
|
+
}) : /* @__PURE__ */ (0, q.jsx)(we, {
|
|
27732
27732
|
content: "Expand output",
|
|
27733
27733
|
side: "left",
|
|
27734
27734
|
children: /* @__PURE__ */ (0, q.jsx)(Ga, { className: "h-4 w-4 opacity-60" })
|
|
@@ -27747,7 +27747,7 @@ var LB = K.memo((e) => {
|
|
|
27747
27747
|
let b;
|
|
27748
27748
|
t[17] !== s || t[18] !== d ? (b = d || s ? { maxHeight: "none" } : void 0, t[17] = s, t[18] = d, t[19] = b) : b = t[19];
|
|
27749
27749
|
let x;
|
|
27750
|
-
t[20] === h ? x = t[21] : (x = h && /* @__PURE__ */ (0, q.jsx)(
|
|
27750
|
+
t[20] === h ? x = t[21] : (x = h && /* @__PURE__ */ (0, q.jsx)(we, {
|
|
27751
27751
|
content: "Exit fullscreen",
|
|
27752
27752
|
side: "left",
|
|
27753
27753
|
children: /* @__PURE__ */ (0, q.jsx)(u, {
|
|
@@ -27793,7 +27793,7 @@ function BB(e) {
|
|
|
27793
27793
|
return /* @__PURE__ */ (0, q.jsx)(OD, {
|
|
27794
27794
|
value: t,
|
|
27795
27795
|
className: "flex items-center space-x-2",
|
|
27796
|
-
children: /* @__PURE__ */ (0, q.jsx)(
|
|
27796
|
+
children: /* @__PURE__ */ (0, q.jsx)(we, {
|
|
27797
27797
|
delayDuration: 200,
|
|
27798
27798
|
content: t,
|
|
27799
27799
|
side: "right",
|
|
@@ -27884,7 +27884,7 @@ function qB(e, t, n) {
|
|
|
27884
27884
|
let { value: r } = t;
|
|
27885
27885
|
if (n !== "python") return JB(r);
|
|
27886
27886
|
let i = WB(r);
|
|
27887
|
-
return i === null ?
|
|
27887
|
+
return i === null ? pr(r) ? /* @__PURE__ */ (0, q.jsx)("span", {
|
|
27888
27888
|
className: "w-rjv-value",
|
|
27889
27889
|
children: /* @__PURE__ */ (0, q.jsx)("a", {
|
|
27890
27890
|
href: r,
|
|
@@ -27984,7 +27984,7 @@ var ZB = XB("True"), QB = XB("False"), $B = XB("None"), eV = XB("null"), tV = {
|
|
|
27984
27984
|
}), t[9] = n, t[10] = r, t[11] = a) : a = t[11], a;
|
|
27985
27985
|
});
|
|
27986
27986
|
function aV(e) {
|
|
27987
|
-
let t = (0, J.c)(60), { data: n, name: r, valueTypes: a, className: o } = e, s = r !== void 0 && r, c = a === void 0 ? "python" : a, { theme: l } =
|
|
27987
|
+
let t = (0, J.c)(60), { data: n, name: r, valueTypes: a, className: o } = e, s = r !== void 0 && r, c = a === void 0 ? "python" : a, { theme: l } = Ai(), u = c === "python", d;
|
|
27988
27988
|
t[0] === n ? d = t[1] : (d = Qw(n) ?? 30, t[0] = n, t[1] = d);
|
|
27989
27989
|
let f = d, p;
|
|
27990
27990
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (p = {}, t[2] = p) : p = t[2];
|
|
@@ -28013,7 +28013,7 @@ function aV(e) {
|
|
|
28013
28013
|
}
|
|
28014
28014
|
}));
|
|
28015
28015
|
}, t[9] = f, t[10] = x);
|
|
28016
|
-
let S =
|
|
28016
|
+
let S = Qi(x), C;
|
|
28017
28017
|
t[11] !== u || t[12] !== b ? (C = (e) => u && typeof e == "string" && /^(text\/html:|image\/|video\/)/.test(e) ? null : /* @__PURE__ */ (0, q.jsx)(g, {
|
|
28018
28018
|
value: () => u ? Jw(b.getOriginal(e)) : JSON.stringify(b.getOriginal(e), null, 2),
|
|
28019
28019
|
tooltip: !1,
|
|
@@ -28066,22 +28066,22 @@ function aV(e) {
|
|
|
28066
28066
|
t[28] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ (0, q.jsx)(Y.Colon, { style: { marginRight: 4 } }), R = /* @__PURE__ */ (0, q.jsx)(Y.Arrow, { render: YB }), t[28] = L, t[29] = R) : (L = t[28], R = t[29]);
|
|
28067
28067
|
let z;
|
|
28068
28068
|
t[30] === A ? z = t[31] : (z = /* @__PURE__ */ (0, q.jsx)(Y.CountInfo, { render: A }), t[30] = A, t[31] = z);
|
|
28069
|
-
let B = u ? GB : void 0,
|
|
28070
|
-
t[32] === B ?
|
|
28071
|
-
let
|
|
28072
|
-
t[34] ===
|
|
28073
|
-
let
|
|
28074
|
-
t[36] ===
|
|
28075
|
-
let
|
|
28076
|
-
t[38] ===
|
|
28077
|
-
let
|
|
28078
|
-
t[40] ===
|
|
28069
|
+
let B = u ? GB : void 0, V;
|
|
28070
|
+
t[32] === B ? V = t[33] : (V = /* @__PURE__ */ (0, q.jsx)(Y.KeyName, { render: B }), t[32] = B, t[33] = V);
|
|
28071
|
+
let ee = u ? KB : void 0, te;
|
|
28072
|
+
t[34] === ee ? te = t[35] : (te = /* @__PURE__ */ (0, q.jsx)(Y.Quote, { render: ee }), t[34] = ee, t[35] = te);
|
|
28073
|
+
let H = u ? ZB : void 0, ne;
|
|
28074
|
+
t[36] === H ? ne = t[37] : (ne = /* @__PURE__ */ (0, q.jsx)(Y.True, { render: H }), t[36] = H, t[37] = ne);
|
|
28075
|
+
let re = u ? QB : void 0, ie;
|
|
28076
|
+
t[38] === re ? ie = t[39] : (ie = /* @__PURE__ */ (0, q.jsx)(Y.False, { render: re }), t[38] = re, t[39] = ie);
|
|
28077
|
+
let ae = u ? $B : eV, oe;
|
|
28078
|
+
t[40] === ae ? oe = t[41] : (oe = /* @__PURE__ */ (0, q.jsx)(Y.Null, { render: ae }), t[40] = ae, t[41] = oe);
|
|
28079
|
+
let se;
|
|
28080
|
+
t[42] === O ? se = t[43] : (se = /* @__PURE__ */ (0, q.jsx)(Y.Row, { render: O }), t[42] = O, t[43] = se);
|
|
28079
28081
|
let ce;
|
|
28080
|
-
t[
|
|
28082
|
+
t[44] === M ? ce = t[45] : (ce = /* @__PURE__ */ (0, q.jsx)(Y.CountInfoExtra, { render: M }), t[44] = M, t[45] = ce);
|
|
28081
28083
|
let le;
|
|
28082
|
-
t[
|
|
28083
|
-
let ue;
|
|
28084
|
-
return t[46] !== N || t[47] !== P || t[48] !== F || t[49] !== I || t[50] !== z || t[51] !== ee || t[52] !== ne || t[53] !== re || t[54] !== ae || t[55] !== se || t[56] !== ce || t[57] !== le || t[58] !== b.data ? (ue = /* @__PURE__ */ (0, q.jsxs)(Y, {
|
|
28084
|
+
return t[46] !== N || t[47] !== P || t[48] !== F || t[49] !== I || t[50] !== z || t[51] !== V || t[52] !== te || t[53] !== ne || t[54] !== ie || t[55] !== oe || t[56] !== se || t[57] !== ce || t[58] !== b.data ? (le = /* @__PURE__ */ (0, q.jsxs)(Y, {
|
|
28085
28085
|
className: N,
|
|
28086
28086
|
keyName: P,
|
|
28087
28087
|
value: b.data,
|
|
@@ -28097,21 +28097,21 @@ function aV(e) {
|
|
|
28097
28097
|
L,
|
|
28098
28098
|
R,
|
|
28099
28099
|
z,
|
|
28100
|
-
|
|
28100
|
+
V,
|
|
28101
|
+
te,
|
|
28101
28102
|
ne,
|
|
28102
|
-
|
|
28103
|
-
|
|
28103
|
+
ie,
|
|
28104
|
+
oe,
|
|
28104
28105
|
se,
|
|
28105
|
-
ce
|
|
28106
|
-
le
|
|
28106
|
+
ce
|
|
28107
28107
|
]
|
|
28108
|
-
}), t[46] = N, t[47] = P, t[48] = F, t[49] = I, t[50] = z, t[51] =
|
|
28108
|
+
}), t[46] = N, t[47] = P, t[48] = F, t[49] = I, t[50] = z, t[51] = V, t[52] = te, t[53] = ne, t[54] = ie, t[55] = oe, t[56] = se, t[57] = ce, t[58] = b.data, t[59] = le) : le = t[59], le;
|
|
28109
28109
|
}
|
|
28110
28110
|
//#endregion
|
|
28111
28111
|
//#region src/components/slides/slide.tsx
|
|
28112
28112
|
var oV = (0, K.memo)((e) => {
|
|
28113
28113
|
let t = (0, J.c)(7), { output: n, cellId: r, status: i, stale: a } = e, o;
|
|
28114
|
-
t[0] === i ? o = t[1] : (o =
|
|
28114
|
+
t[0] === i ? o = t[1] : (o = Pr(i), t[0] = i, t[1] = o);
|
|
28115
28115
|
let s = o, c;
|
|
28116
28116
|
return t[2] !== r || t[3] !== s || t[4] !== n || t[5] !== a ? (c = /* @__PURE__ */ (0, q.jsx)(PB, {
|
|
28117
28117
|
className: "contents",
|
|
@@ -28125,7 +28125,7 @@ var oV = (0, K.memo)((e) => {
|
|
|
28125
28125
|
oV.displayName = "Slide";
|
|
28126
28126
|
//#endregion
|
|
28127
28127
|
//#region src/components/slides/slide-form.tsx
|
|
28128
|
-
var sV = "slide", cV = "slide", lV = "center", uV = 36, dV =
|
|
28128
|
+
var sV = "slide", cV = "slide", lV = "center", uV = 36, dV = si("marimo:slides:config-open", !0, ce, { getOnInit: !0 }), fV = [
|
|
28129
28129
|
{
|
|
28130
28130
|
value: "slide",
|
|
28131
28131
|
label: "Slide",
|
|
@@ -28462,7 +28462,7 @@ var sV = "slide", cV = "slide", lV = "center", uV = 36, dV = li("marimo:slides:c
|
|
|
28462
28462
|
children: [b, D]
|
|
28463
28463
|
}), t[36] = b, t[37] = D, t[38] = O) : O = t[38], O;
|
|
28464
28464
|
}, SV = (e) => {
|
|
28465
|
-
let t = (0, J.c)(31), { configWidth: n, layout: r, setLayout: a, activeConfigCell: o } = e, [s, c] =
|
|
28465
|
+
let t = (0, J.c)(31), { configWidth: n, layout: r, setLayout: a, activeConfigCell: o } = e, [s, c] = ci(dV), l = s ? n : uV, d;
|
|
28466
28466
|
t[0] === l ? d = t[1] : (d = { width: l }, t[0] = l, t[1] = d);
|
|
28467
28467
|
let f = s ? "justify-between px-2" : "justify-center px-0", p;
|
|
28468
28468
|
t[2] === f ? p = t[3] : (p = i("flex items-center h-9 shrink-0 border-b border-border/60", f), t[2] = f, t[3] = p);
|
|
@@ -28487,7 +28487,7 @@ var sV = "slide", cV = "slide", lV = "center", uV = 36, dV = li("marimo:slides:c
|
|
|
28487
28487
|
children: v
|
|
28488
28488
|
}), t[10] = s, t[11] = g, t[12] = _, t[13] = v, t[14] = y) : y = t[14];
|
|
28489
28489
|
let b;
|
|
28490
|
-
t[15] !== y || t[16] !== h ? (b = /* @__PURE__ */ (0, q.jsx)(
|
|
28490
|
+
t[15] !== y || t[16] !== h ? (b = /* @__PURE__ */ (0, q.jsx)(we, {
|
|
28491
28491
|
content: h,
|
|
28492
28492
|
children: y
|
|
28493
28493
|
}), t[15] = y, t[16] = h, t[17] = b) : b = t[17];
|
|
@@ -28572,8 +28572,8 @@ function MV(e, t) {
|
|
|
28572
28572
|
return {
|
|
28573
28573
|
"data-cell-id": e,
|
|
28574
28574
|
"data-cell-name": t,
|
|
28575
|
-
id:
|
|
28575
|
+
id: Br.create(e)
|
|
28576
28576
|
};
|
|
28577
28577
|
}
|
|
28578
28578
|
//#endregion
|
|
28579
|
-
export { CP as $, iy as $t, gz as A, ZD as At, _R as B, CE as Bt, kz as C, Ua as Cn, zO as Ct, yz as D, nO as Dt, xz as E, Ia as En, TO as Et, YR as F, wD as Ft, kF as G, rT as Gt, SR as H, tT as Ht, GR as I, TD as It, jP as J, dy as Jt, lF as K, $w as Kt, XR as L, CD as Lt, iz as M, kD as Mt, rz as N, DD as Nt, vz as O, XD as Ot, KR as P, OD as Pt, $M as Q, ty as Qt, LR as R, SD as Rt, Iz as S, Wa as Sn, LO as St, wz as T, Va as Tn, FO as Tt, uR as U, iT as Ut, vR as V, aT as Vt, WF as W, nT as Wt, kP as X, ly as Xt, AP as Y, fy as Yt, OP as Z, uy as Zt, Nz as _, Qa as _n, aj as _t, cV as a,
|
|
28579
|
+
export { CP as $, iy as $t, gz as A, ZD as At, _R as B, CE as Bt, kz as C, Ua as Cn, zO as Ct, yz as D, nO as Dt, xz as E, Ia as En, TO as Et, YR as F, wD as Ft, kF as G, rT as Gt, SR as H, tT as Ht, GR as I, TD as It, jP as J, dy as Jt, lF as K, $w as Kt, XR as L, CD as Lt, iz as M, kD as Mt, rz as N, DD as Nt, vz as O, XD as Ot, KR as P, OD as Pt, $M as Q, ty as Qt, LR as R, SD as Rt, Iz as S, Wa as Sn, LO as St, wz as T, Va as Tn, FO as Tt, uR as U, iT as Ut, vR as V, aT as Vt, WF as W, nT as Wt, kP as X, ly as Xt, AP as Y, fy as Yt, OP as Z, uy as Zt, Nz as _, Qa as _n, aj as _t, cV as a, qg as an, OM as at, zz as b, qa as bn, qO as bt, pV as c, uf as cn, EM as ct, iV as d, ls as dn, dM as dt, ny as en, DP as et, PB as f, ps as fn, bM as ft, Bz as g, $a as gn, ij as gt, Wz as h, to as hn, oj as ht, jV as i, $v as in, wM as it, _z as j, ED as jt, hz as k, $D as kt, SV as l, Xo as ln, sM as lt, yB as m, no as mn, Rj as mt, kV as n, ry as nn, UM as nt, lV as o, Jg as on, DM as ot, MB as p, So as pn, zj as pt, uF as q, Jx as qt, AV as r, oy as rn, SM as rt, sV as s, df as sn, CM as st, MV as t, sy as tn, MM as tt, oV as u, hs as un, fM as ut, Rz as v, Za as vn, XO as vt, Dz as w, Ha as wn, IO as wt, Pz as x, Ga as xn, RO as xt, Lz as y, Xa as yn, JO as yt, lR as z, gD as zt };
|