@marimo-team/islands 0.22.5-dev12 → 0.22.5-dev14
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/{chat-ui-DfR3sT9K.js → chat-ui-X5KPeHrU.js} +123 -123
- package/dist/main.js +444 -363
- package/dist/{process-output-BvkX_OeE.js → process-output-C0tmJosY.js} +85 -84
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/data-table/__tests__/columns.test.tsx +92 -13
- package/src/components/data-table/column-header.tsx +81 -56
- package/src/components/data-table/columns.tsx +25 -32
- package/src/components/data-table/data-table.tsx +8 -1
- package/src/components/data-table/renderers.tsx +19 -6
- package/src/components/data-table/types.ts +4 -0
- package/src/components/editor/actions/useNotebookActions.tsx +2 -2
- package/src/components/editor/errors/traceback-modal.tsx +6 -5
- package/src/components/editor/output/MarimoErrorOutput.tsx +7 -14
- package/src/components/editor/output/MarimoTracebackOutput.tsx +4 -3
- package/src/plugins/impl/plotly/__tests__/selection.test.ts +22 -0
- package/src/plugins/impl/plotly/selection.ts +1 -0
package/dist/main.js
CHANGED
|
@@ -21,7 +21,7 @@ import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __c
|
|
|
21
21
|
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
22
22
|
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
23
23
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-BRF7ryOP.js";
|
|
24
|
-
import { $ as createActions,
|
|
24
|
+
import { $ as createActions, A as MarimoIncomingMessageEvent, An as Table2, At as Paths, B as DotFilledIcon, Bn as Columns2, Bt as PluralWord, Cn as Close$1, Ct as isInternalCellName, D as AccordionContent, Dn as Trigger2, Dt as MarkdownLanguageAdapter, E as Accordion, En as Root2$4, Et as customPythonLanguageSupport, F as BorderAllIcon, Fn as Info, Ft as useChromeActions, G as base64ToDataView, Gn as import_lib, H as PinRightIcon, Hn as CircleAlert, Ht as DATA_TYPE_ICON, In as File, It as repl, J as extractBase64FromDataURL, Jt as convertStatsName, K as base64ToUint8Array, L as CheckIcon, Ln as FileText, Lt as adaptForLocalStorage, M as MarimoValueReadyEvent, Mn as NotebookPen, Mt as goToCellLine, N as MarimoValueUpdateEvent, Nn as LoaderCircle, Nt as DeferredRequestRegistry, O as AccordionItem, On as Wrench, P as createInputEvent, Pn as Layers, Pt as generateUUID, Qt as isUninstantiated, R as ChevronDownIcon, Rn as Eye, Rt as jotaiJsonStorage, St as getValidName, Tn as Item$1, Tt as Checkbox, U as deserializeBlob, Un as Braces, Ut as getDataTypeColor, V as PinLeftIcon, Vn as CircleX, Vt as PluralWords, Wn as esm_default$1, Wt as require_client, X as safeExtractSetUIElementMessageBuffers, Xt as requestClientAtom, Y as isDataURLString, Yt as getRequestClient, Z as renderHTML, Zt as useRequestClient, _ as useExpandedConsoleOutput, _n as jsonToMarkdown, _t as headingToIdentifier, a as toPng, an as filenameAtom, at as useCellActions, b as getDatasourceContext, bn as atomWithStorage, bt as getCellDomProps, c as useCellFocusActions, cn as parseInitialValue, ct as createCell, d as Spinner, dn as SCRATCH_CELL_ID, dt as initialModeAtom, en as elementContainsMarimoCellFile, et as getCellEditorView, f as Popover$1, fn as UIElementId, ft as kioskModeAtom, g as isOutputEmpty, gn as jsonParseWithSpecialChar, gt as isErrorMime, h as PopoverTrigger, hn as RANDOM_ID_ATTR, ht as outputIsStale, i as PythonIcon, it as reducer, j as MarimoValueInputEvent, jn as PaintRoller, k as AccordionTrigger, kn as Trash2, kt as PathBuilder, l as useLastFocusedCellId, ln as CellOutputId, lt as AnsiUp, m as PopoverContent, mn as OBJECT_ID_ATTR, mt as outputIsLoading, n as blobToString, nn as getTracebackInfo, nt as notebookAtom, o as MarkdownRenderer, on as parseAttrValue, ot as useCellIds, p as PopoverClose$1, pn as findCellId, pt as viewStateAtom, q as dataViewToBase64, r as filesToBase64, rn as NotebookScopedLocalStorage, rt as notebookOutline, s as LazyAnyLanguageCodeMirror, sn as parseDataset, st as useCellNames, t as processOutput, tn as extractAllTracebackInfo, tt as getCellNames, u as maybeAddAltairImport, un as HTMLCellId, ut as getInitialAppMode, v as useExpandedOutput, vn as jsonToTSV, vt as sanitizeHtml, wn as Content2$1, wt as normalizeName, xn as selectAtom, xt as displayCellName, yn as atomWithReducer, yt as DATA_CELL_ID, z as ChevronRightIcon, zn as Database, __tla as __tla_0 } from "./process-output-C0tmJosY.js";
|
|
25
25
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-C428iZBW.js";
|
|
26
26
|
import { o as useSize, s as Root$4, u as createLucideIcon } from "./dist-D56NKWim.js";
|
|
27
27
|
import { A as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as ListFilter, I as ChartPie, L as ChartColumn, M as $5a387cc49350e6db$export$722debc0e56fea39, N as Table$1, O as TIME_UNIT_DESCRIPTIONS, P as SquareFunction, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as $fb18d541ea1ad717$export$ad991b66133851cf, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-ByDEU1T3.js";
|
|
@@ -24348,9 +24348,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24348
24348
|
}),
|
|
24349
24349
|
"traceback" in e && e.traceback ? (0, import_jsx_runtime.jsx)("div", {
|
|
24350
24350
|
className: "font-code text-sm mt-2 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
|
|
24351
|
-
|
|
24352
|
-
|
|
24353
|
-
}
|
|
24351
|
+
children: renderHTML({
|
|
24352
|
+
html: e.traceback
|
|
24353
|
+
})
|
|
24354
24354
|
}) : (0, import_jsx_runtime.jsx)("div", {
|
|
24355
24355
|
className: "text-muted-foreground mt-2",
|
|
24356
24356
|
children: "See the console area for a traceback."
|
|
@@ -24364,9 +24364,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24364
24364
|
}),
|
|
24365
24365
|
"traceback" in e && e.traceback && (0, import_jsx_runtime.jsx)("div", {
|
|
24366
24366
|
className: "font-code text-sm mt-2 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
|
|
24367
|
-
|
|
24368
|
-
|
|
24369
|
-
}
|
|
24367
|
+
children: renderHTML({
|
|
24368
|
+
html: e.traceback
|
|
24369
|
+
})
|
|
24370
24370
|
})
|
|
24371
24371
|
]
|
|
24372
24372
|
})
|
|
@@ -28187,53 +28187,68 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28187
28187
|
}
|
|
28188
28188
|
}
|
|
28189
28189
|
var TOP_K_ROWS = 30;
|
|
28190
|
-
const DataTableColumnHeader = ({ column: e, header: r,
|
|
28190
|
+
const DataTableColumnHeader = ({ column: e, header: r, subheader: c, className: d, calculateTopKRows: f, table: h }) => {
|
|
28191
28191
|
let [_, v] = (0, import_react.useState)(false), { locale: y } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
28192
28192
|
if (!r) return null;
|
|
28193
|
-
if (!e.getCanSort() && !e.getCanFilter()) return (0, import_jsx_runtime.
|
|
28193
|
+
if (!e.getCanSort() && !e.getCanFilter()) return (0, import_jsx_runtime.jsxs)("div", {
|
|
28194
28194
|
className: cn(d),
|
|
28195
|
-
children:
|
|
28195
|
+
children: [
|
|
28196
|
+
r,
|
|
28197
|
+
c
|
|
28198
|
+
]
|
|
28196
28199
|
});
|
|
28197
|
-
let S = e.getFilterValue() !== void 0
|
|
28200
|
+
let S = e.getFilterValue() !== void 0;
|
|
28198
28201
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
28199
28202
|
children: [
|
|
28200
|
-
(0, import_jsx_runtime.jsxs)(
|
|
28201
|
-
|
|
28203
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
28204
|
+
className: cn("group flex flex-col my-1 w-full select-none", d),
|
|
28202
28205
|
children: [
|
|
28203
|
-
(0, import_jsx_runtime.
|
|
28204
|
-
|
|
28205
|
-
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
28206
|
-
className: cn("group flex items-center my-1 space-between w-full select-none gap-2 border hover:border-border border-transparent hover:bg-(--slate-3) data-[state=open]:bg-(--slate-3) data-[state=open]:border-border rounded px-1 -mx-1", c === "right" && "flex-row-reverse", d),
|
|
28207
|
-
"data-testid": "data-table-sort-button",
|
|
28208
|
-
children: [
|
|
28209
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
28210
|
-
className: "flex-1",
|
|
28211
|
-
children: r
|
|
28212
|
-
}),
|
|
28213
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
28214
|
-
className: cn("h-5 py-1 px-1", w && "invisible group-hover:visible data-[state=open]:visible"),
|
|
28215
|
-
children: renderSortFilterIcon(e)
|
|
28216
|
-
})
|
|
28217
|
-
]
|
|
28218
|
-
})
|
|
28219
|
-
}),
|
|
28220
|
-
(0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
|
|
28221
|
-
align: "start",
|
|
28206
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
28207
|
+
className: "flex items-center gap-1",
|
|
28222
28208
|
children: [
|
|
28223
|
-
|
|
28224
|
-
|
|
28225
|
-
|
|
28226
|
-
|
|
28227
|
-
renderColumnWrapping(e),
|
|
28228
|
-
renderFormatOptions(e, y),
|
|
28229
|
-
(0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
|
|
28230
|
-
renderMenuItemFilter(e),
|
|
28231
|
-
renderFilterByValues(e, v),
|
|
28232
|
-
S && (0, import_jsx_runtime.jsx)(ClearFilterMenuItem, {
|
|
28209
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
28210
|
+
children: r
|
|
28211
|
+
}),
|
|
28212
|
+
e.getCanSort() && (0, import_jsx_runtime.jsx)(SortButton, {
|
|
28233
28213
|
column: e
|
|
28214
|
+
}),
|
|
28215
|
+
(0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
28216
|
+
modal: false,
|
|
28217
|
+
children: [
|
|
28218
|
+
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
28219
|
+
asChild: true,
|
|
28220
|
+
children: (0, import_jsx_runtime.jsx)("button", {
|
|
28221
|
+
type: "button",
|
|
28222
|
+
className: "inline-flex items-center justify-center h-5 w-5 rounded hover:bg-(--slate-4) text-muted-foreground opacity-0 group-hover:opacity-100 focus:opacity-100 group-focus-within:opacity-100 data-[state=open]:opacity-100 data-[state=open]:text-accent-foreground",
|
|
28223
|
+
"aria-label": "Column options",
|
|
28224
|
+
"data-testid": "data-table-column-menu-button",
|
|
28225
|
+
children: (0, import_jsx_runtime.jsx)(Ellipsis, {
|
|
28226
|
+
className: "h-3.5 w-3.5"
|
|
28227
|
+
})
|
|
28228
|
+
})
|
|
28229
|
+
}),
|
|
28230
|
+
(0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
|
|
28231
|
+
align: "start",
|
|
28232
|
+
children: [
|
|
28233
|
+
renderDataType(e),
|
|
28234
|
+
renderSorts(e, h),
|
|
28235
|
+
renderCopyColumn(e),
|
|
28236
|
+
renderColumnPinning(e),
|
|
28237
|
+
renderColumnWrapping(e),
|
|
28238
|
+
renderFormatOptions(e, y),
|
|
28239
|
+
(0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
|
|
28240
|
+
renderMenuItemFilter(e),
|
|
28241
|
+
renderFilterByValues(e, v),
|
|
28242
|
+
S && (0, import_jsx_runtime.jsx)(ClearFilterMenuItem, {
|
|
28243
|
+
column: e
|
|
28244
|
+
})
|
|
28245
|
+
]
|
|
28246
|
+
})
|
|
28247
|
+
]
|
|
28234
28248
|
})
|
|
28235
28249
|
]
|
|
28236
|
-
})
|
|
28250
|
+
}),
|
|
28251
|
+
c
|
|
28237
28252
|
]
|
|
28238
28253
|
}),
|
|
28239
28254
|
_ && (0, import_jsx_runtime.jsx)(PopoverFilterByValues, {
|
|
@@ -28244,6 +28259,19 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28244
28259
|
]
|
|
28245
28260
|
});
|
|
28246
28261
|
};
|
|
28262
|
+
var SortButton = ({ column: e }) => {
|
|
28263
|
+
let r = e.getIsSorted();
|
|
28264
|
+
return (0, import_jsx_runtime.jsx)("button", {
|
|
28265
|
+
type: "button",
|
|
28266
|
+
onClick: (c) => {
|
|
28267
|
+
c.stopPropagation(), r ? r === "asc" ? e.toggleSorting(true, true) : e.clearSorting() : e.toggleSorting(false, true);
|
|
28268
|
+
},
|
|
28269
|
+
className: cn("inline-flex items-center justify-center h-5 w-5 rounded hover:bg-(--slate-4)", r ? "text-accent-foreground" : "text-muted-foreground opacity-0 group-hover:opacity-100 focus:opacity-100 group-focus-within:opacity-100"),
|
|
28270
|
+
"aria-label": r === "asc" ? "Sorted ascending, click to sort descending" : r === "desc" ? "Sorted descending, click to clear sort" : "Sort column ascending",
|
|
28271
|
+
"data-testid": "data-table-sort-button",
|
|
28272
|
+
children: renderSortFilterIcon(e)
|
|
28273
|
+
});
|
|
28274
|
+
};
|
|
28247
28275
|
function renderMenuItemFilter(e) {
|
|
28248
28276
|
var _a3;
|
|
28249
28277
|
if (!e.getCanFilter()) return null;
|
|
@@ -30301,30 +30329,24 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30301
30329
|
]
|
|
30302
30330
|
})
|
|
30303
30331
|
]
|
|
30304
|
-
}) : null, O2 =
|
|
30305
|
-
className: cn("
|
|
30306
|
-
children:
|
|
30307
|
-
|
|
30308
|
-
className: cn("font-bold", S2 && "underline decoration-dotted"),
|
|
30309
|
-
children: e2 === "" ? " " : e2
|
|
30310
|
-
}),
|
|
30311
|
-
E2
|
|
30312
|
-
]
|
|
30313
|
-
}), z2 = (0, import_jsx_runtime.jsx)(DataTableColumnHeader, {
|
|
30332
|
+
}) : null, O2 = (0, import_jsx_runtime.jsx)("span", {
|
|
30333
|
+
className: cn("font-bold", S2 && "underline decoration-dotted"),
|
|
30334
|
+
children: e2 === "" ? " " : e2
|
|
30335
|
+
}), M2 = (0, import_jsx_runtime.jsx)(DataTableColumnHeader, {
|
|
30314
30336
|
header: S2 ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30315
30337
|
content: S2,
|
|
30316
30338
|
delayDuration: 300,
|
|
30317
|
-
children:
|
|
30318
|
-
}) :
|
|
30339
|
+
children: O2
|
|
30340
|
+
}) : O2,
|
|
30341
|
+
subheader: E2,
|
|
30319
30342
|
column: r2,
|
|
30320
|
-
justify: O2,
|
|
30321
30343
|
calculateTopKRows: y,
|
|
30322
30344
|
table: c3
|
|
30323
30345
|
});
|
|
30324
|
-
return w.has(e2) ?
|
|
30325
|
-
className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start"
|
|
30346
|
+
return w.has(e2) ? M2 : (0, import_jsx_runtime.jsxs)("div", {
|
|
30347
|
+
className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start"),
|
|
30326
30348
|
children: [
|
|
30327
|
-
|
|
30349
|
+
M2,
|
|
30328
30350
|
(0, import_jsx_runtime.jsx)(TableColumnSummary, {
|
|
30329
30351
|
columnId: e2
|
|
30330
30352
|
})
|
|
@@ -30342,7 +30364,13 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30342
30364
|
renderValue: d2,
|
|
30343
30365
|
getValue: f2,
|
|
30344
30366
|
selectCell: v2,
|
|
30345
|
-
cellStyles: getCellStyleClass(
|
|
30367
|
+
cellStyles: getCellStyleClass({
|
|
30368
|
+
justify: y2,
|
|
30369
|
+
wrapped: S2,
|
|
30370
|
+
canSelectCell: O2,
|
|
30371
|
+
isSelected: E2,
|
|
30372
|
+
isNumeric: I2 === "number" || I2 === "integer"
|
|
30373
|
+
})
|
|
30346
30374
|
});
|
|
30347
30375
|
return w.has(e2) ? (0, import_jsx_runtime.jsx)("b", {
|
|
30348
30376
|
children: z2
|
|
@@ -30443,7 +30471,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30443
30471
|
return;
|
|
30444
30472
|
}
|
|
30445
30473
|
}
|
|
30446
|
-
function getCellStyleClass(e, r, c, d, f) {
|
|
30474
|
+
function getCellStyleClass({ justify: e = "left", wrapped: r, canSelectCell: c, isSelected: d, isNumeric: f = false }) {
|
|
30447
30475
|
return cn(c && "cursor-pointer", d && "relative before:absolute before:inset-0 before:bg-(--blue-3) before:rounded before:-z-10 before:mx-[-4px] before:my-[-2px]", "w-full", "text-left", "truncate", f && "tabular-nums", e === "center" && "text-center", e === "right" && "text-right", r && "whitespace-pre-wrap min-w-[200px] break-words");
|
|
30448
30476
|
}
|
|
30449
30477
|
function renderAny(e) {
|
|
@@ -33856,7 +33884,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33856
33884
|
let c = (r2) => r2.map((r3) => r3.headers.map((r4) => {
|
|
33857
33885
|
let { className: c2, style: d } = getPinningStyles(r4.column);
|
|
33858
33886
|
return (0, import_jsx_runtime.jsx)(TableHead, {
|
|
33859
|
-
className: cn("h-auto min-h-10 whitespace-pre align-top", c2),
|
|
33887
|
+
className: cn("h-auto min-h-10 whitespace-pre align-top border-r border-r-border/75", c2),
|
|
33860
33888
|
style: d,
|
|
33861
33889
|
ref: (c3) => {
|
|
33862
33890
|
columnSizingHandler({
|
|
@@ -33874,7 +33902,12 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33874
33902
|
children: [
|
|
33875
33903
|
c(e.getLeftHeaderGroups()),
|
|
33876
33904
|
c(e.getCenterHeaderGroups()),
|
|
33877
|
-
c(e.getRightHeaderGroups())
|
|
33905
|
+
c(e.getRightHeaderGroups()),
|
|
33906
|
+
e.getAllColumns().length <= 4 && (0, import_jsx_runtime.jsx)("th", {
|
|
33907
|
+
className: "w-full border-0",
|
|
33908
|
+
"aria-hidden": "true",
|
|
33909
|
+
role: "presentation"
|
|
33910
|
+
})
|
|
33878
33911
|
]
|
|
33879
33912
|
})
|
|
33880
33913
|
});
|
|
@@ -33918,7 +33951,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33918
33951
|
tabIndex: 0,
|
|
33919
33952
|
...getCellDomProps(e3.id),
|
|
33920
33953
|
key: e3.id,
|
|
33921
|
-
className: cn("whitespace-pre truncate max-w-[300px] outline-hidden", e3.column.getColumnWrapping && ((_d3 = (_c3 = e3.column).getColumnWrapping) == null ? void 0 : _d3.call(_c3)) === "wrap" && "whitespace-pre-wrap min-w-[200px]", "px-1.5 py-[0.18rem]", r2),
|
|
33954
|
+
className: cn("whitespace-pre truncate max-w-[300px] outline-hidden border-r border-r-border/75", e3.column.getColumnWrapping && ((_d3 = (_c3 = e3.column).getColumnWrapping) == null ? void 0 : _d3.call(_c3)) === "wrap" && "whitespace-pre-wrap min-w-[200px]", "px-1.5 py-[0.18rem]", r2),
|
|
33922
33955
|
style: d2,
|
|
33923
33956
|
title: f2,
|
|
33924
33957
|
onMouseDown: (r3) => E(r3, e3),
|
|
@@ -33939,23 +33972,28 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33939
33972
|
}
|
|
33940
33973
|
}, e9 = e.getState().cellHoverTemplate || null, t9 = (e2) => {
|
|
33941
33974
|
var _a3;
|
|
33942
|
-
let
|
|
33943
|
-
return e9 && (
|
|
33975
|
+
let h2 = c ? (d == null ? void 0 : d(e2.original, e2.index)) ?? e2.index : void 0, _2 = c && f === h2, v2;
|
|
33976
|
+
return e9 && (v2 = Z7(e9, ((_a3 = e2.getVisibleCells) == null ? void 0 : _a3.call(e2)) ?? [
|
|
33944
33977
|
...e2.getLeftVisibleCells(),
|
|
33945
33978
|
...e2.getCenterVisibleCells(),
|
|
33946
33979
|
...e2.getRightVisibleCells()
|
|
33947
33980
|
])), (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
33948
33981
|
"data-state": e2.getIsSelected() && "selected",
|
|
33949
|
-
title:
|
|
33950
|
-
className: cn("border-t h-6", c && "cursor-pointer",
|
|
33982
|
+
title: v2,
|
|
33983
|
+
className: cn("border-t h-6", c && "cursor-pointer", _2 && "bg-(--blue-3) hover:bg-(--blue-3) data-[state=selected]:bg-(--blue-4)"),
|
|
33951
33984
|
onClick: () => $7(e2),
|
|
33952
33985
|
children: [
|
|
33953
33986
|
Q7(e2.getLeftVisibleCells()),
|
|
33954
33987
|
Q7(e2.getCenterVisibleCells()),
|
|
33955
|
-
Q7(e2.getRightVisibleCells())
|
|
33988
|
+
Q7(e2.getRightVisibleCells()),
|
|
33989
|
+
r.length <= 4 && (0, import_jsx_runtime.jsx)("td", {
|
|
33990
|
+
className: "border-0",
|
|
33991
|
+
"aria-hidden": "true",
|
|
33992
|
+
role: "presentation"
|
|
33993
|
+
})
|
|
33956
33994
|
]
|
|
33957
33995
|
}, e2.id);
|
|
33958
|
-
};
|
|
33996
|
+
}, n9 = r.length <= 4, r9 = r.length + (n9 ? 1 : 0);
|
|
33959
33997
|
return (0, import_jsx_runtime.jsx)(DataTableContextMenu, {
|
|
33960
33998
|
tableBody: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
33961
33999
|
onKeyDown: I,
|
|
@@ -33964,13 +34002,13 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33964
34002
|
var _a3, _b3;
|
|
33965
34003
|
if (_.length === 0) return (0, import_jsx_runtime.jsx)(TableRow, {
|
|
33966
34004
|
children: (0, import_jsx_runtime.jsx)(TableCell, {
|
|
33967
|
-
colSpan:
|
|
34005
|
+
colSpan: r9,
|
|
33968
34006
|
className: "h-24 text-center",
|
|
33969
34007
|
children: "No results."
|
|
33970
34008
|
})
|
|
33971
34009
|
});
|
|
33972
34010
|
if (h) {
|
|
33973
|
-
let e2 = w.getVirtualItems(),
|
|
34011
|
+
let e2 = w.getVirtualItems(), r2 = w.getTotalSize();
|
|
33974
34012
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
33975
34013
|
children: [
|
|
33976
34014
|
((_a3 = e2[0]) == null ? void 0 : _a3.start) > 0 && (0, import_jsx_runtime.jsx)("tr", {
|
|
@@ -33979,17 +34017,17 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33979
34017
|
height: e2[0].start
|
|
33980
34018
|
},
|
|
33981
34019
|
children: (0, import_jsx_runtime.jsx)("td", {
|
|
33982
|
-
colSpan:
|
|
34020
|
+
colSpan: r9
|
|
33983
34021
|
})
|
|
33984
34022
|
}),
|
|
33985
34023
|
e2.map((e3) => t9(_[e3.index])),
|
|
33986
34024
|
e2.length > 0 && (0, import_jsx_runtime.jsx)("tr", {
|
|
33987
34025
|
"data-virtual-spacer": "",
|
|
33988
34026
|
style: {
|
|
33989
|
-
height:
|
|
34027
|
+
height: r2 - (((_b3 = e2.at(-1)) == null ? void 0 : _b3.end) ?? r2)
|
|
33990
34028
|
},
|
|
33991
34029
|
children: (0, import_jsx_runtime.jsx)("td", {
|
|
33992
|
-
colSpan:
|
|
34030
|
+
colSpan: r9
|
|
33993
34031
|
})
|
|
33994
34032
|
})
|
|
33995
34033
|
]
|
|
@@ -34961,7 +34999,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34961
34999
|
downloadAs: Q7
|
|
34962
35000
|
}),
|
|
34963
35001
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34964
|
-
className: "relative",
|
|
35002
|
+
className: cn("relative", d.length <= 4 ? "w-auto" : "w-full"),
|
|
34965
35003
|
ref: M9,
|
|
34966
35004
|
children: [
|
|
34967
35005
|
C9 && (0, import_jsx_runtime.jsx)("thead", {
|
|
@@ -35069,7 +35107,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
35069
35107
|
r[4] !== f || r[5] !== I ? (z = I && I.kind === "cell" && !isWasm() && !isStaticNotebook() && f !== "__scratch__", r[4] = f, r[5] = I, r[6] = z) : z = r[6];
|
|
35070
35108
|
let G = z, q;
|
|
35071
35109
|
r[7] !== O || r[8] !== c ? (q = c && O && !isStaticNotebook(), r[7] = O, r[8] = c, r[9] = q) : q = r[9];
|
|
35072
|
-
let Z7 = q, $7 = !isStaticNotebook(),
|
|
35110
|
+
let Z7 = q, $7 = !isStaticNotebook(), e9 = (e2) => {
|
|
35073
35111
|
c == null ? void 0 : c({
|
|
35074
35112
|
prompt: `My code gives the following error:
|
|
35075
35113
|
|
|
@@ -35110,35 +35148,35 @@ ${E}`,
|
|
|
35110
35148
|
d9
|
|
35111
35149
|
]
|
|
35112
35150
|
}), r[20] = d9, r[21] = c9, r[22] = f9) : f9 = r[22];
|
|
35113
|
-
let
|
|
35114
|
-
r[23] === _ ?
|
|
35151
|
+
let p9;
|
|
35152
|
+
r[23] === _ ? p9 = r[24] : (p9 = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
35115
35153
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
35116
35154
|
children: _
|
|
35117
|
-
}), r[23] = _, r[24] =
|
|
35118
|
-
let
|
|
35119
|
-
r[25] !== f9 || r[26] !==
|
|
35155
|
+
}), r[23] = _, r[24] = p9);
|
|
35156
|
+
let m9;
|
|
35157
|
+
r[25] !== f9 || r[26] !== p9 ? (m9 = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
35120
35158
|
value: KEY$1,
|
|
35121
35159
|
className: "border-none",
|
|
35122
35160
|
children: [
|
|
35123
35161
|
f9,
|
|
35124
|
-
|
|
35162
|
+
p9
|
|
35125
35163
|
]
|
|
35126
|
-
}), r[25] = f9, r[26] =
|
|
35127
|
-
let
|
|
35128
|
-
r[28] !==
|
|
35164
|
+
}), r[25] = f9, r[26] = p9, r[27] = m9) : m9 = r[27];
|
|
35165
|
+
let h9;
|
|
35166
|
+
r[28] !== m9 || r[29] !== i9 ? (h9 = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
35129
35167
|
type: "single",
|
|
35130
35168
|
collapsible: true,
|
|
35131
35169
|
value: i9,
|
|
35132
|
-
children:
|
|
35133
|
-
}), r[28] =
|
|
35134
|
-
let
|
|
35135
|
-
r[31] !==
|
|
35170
|
+
children: m9
|
|
35171
|
+
}), r[28] = m9, r[29] = i9, r[30] = h9) : h9 = r[30];
|
|
35172
|
+
let g9;
|
|
35173
|
+
r[31] !== e9 || r[32] !== Z7 ? (g9 = Z7 && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
35136
35174
|
tooltip: "Fix with AI",
|
|
35137
|
-
openPrompt: () =>
|
|
35138
|
-
applyAutofix: () =>
|
|
35139
|
-
}), r[31] =
|
|
35140
|
-
let
|
|
35141
|
-
r[34] !== G || r[35] !== I ? (
|
|
35175
|
+
openPrompt: () => e9(false),
|
|
35176
|
+
applyAutofix: () => e9(true)
|
|
35177
|
+
}), r[31] = e9, r[32] = Z7, r[33] = g9) : g9 = r[33];
|
|
35178
|
+
let _9;
|
|
35179
|
+
r[34] !== G || r[35] !== I ? (_9 = G && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
35142
35180
|
content: "Attach pdb to the exception point.",
|
|
35143
35181
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
35144
35182
|
size: "xs",
|
|
@@ -35155,9 +35193,9 @@ ${E}`,
|
|
|
35155
35193
|
"Launch debugger"
|
|
35156
35194
|
]
|
|
35157
35195
|
})
|
|
35158
|
-
}), r[34] = G, r[35] = I, r[36] =
|
|
35159
|
-
let
|
|
35160
|
-
r[37] !== E || r[38] !== d ? (
|
|
35196
|
+
}), r[34] = G, r[35] = I, r[36] = _9) : _9 = r[36];
|
|
35197
|
+
let v9;
|
|
35198
|
+
r[37] !== E || r[38] !== d ? (v9 = $7 && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
35161
35199
|
children: [
|
|
35162
35200
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
35163
35201
|
asChild: true,
|
|
@@ -35213,7 +35251,7 @@ ${E}`,
|
|
|
35213
35251
|
(0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
35214
35252
|
onClick: () => {
|
|
35215
35253
|
let e2 = document.createElement("div");
|
|
35216
|
-
e2.innerHTML = d, copyToClipboard(e2.textContent || "");
|
|
35254
|
+
e2.innerHTML = sanitizeHtml(d), copyToClipboard(e2.textContent || "");
|
|
35217
35255
|
},
|
|
35218
35256
|
children: [
|
|
35219
35257
|
(0, import_jsx_runtime.jsx)(Copy, {
|
|
@@ -35225,29 +35263,29 @@ ${E}`,
|
|
|
35225
35263
|
]
|
|
35226
35264
|
})
|
|
35227
35265
|
]
|
|
35228
|
-
}), r[37] = E, r[38] = d, r[39] =
|
|
35229
|
-
let
|
|
35230
|
-
r[40] !==
|
|
35266
|
+
}), r[37] = E, r[38] = d, r[39] = v9) : v9 = r[39];
|
|
35267
|
+
let y9;
|
|
35268
|
+
r[40] !== g9 || r[41] !== _9 || r[42] !== v9 ? (y9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
35231
35269
|
className: "flex gap-2",
|
|
35232
35270
|
children: [
|
|
35271
|
+
g9,
|
|
35233
35272
|
_9,
|
|
35234
|
-
v9
|
|
35235
|
-
y9
|
|
35273
|
+
v9
|
|
35236
35274
|
]
|
|
35237
|
-
}), r[40] =
|
|
35238
|
-
let
|
|
35239
|
-
return r[44] !==
|
|
35275
|
+
}), r[40] = g9, r[41] = _9, r[42] = v9, r[43] = y9) : y9 = r[43];
|
|
35276
|
+
let b9;
|
|
35277
|
+
return r[44] !== h9 || r[45] !== y9 ? (b9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
35240
35278
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
35241
35279
|
children: [
|
|
35242
|
-
|
|
35243
|
-
|
|
35280
|
+
h9,
|
|
35281
|
+
y9
|
|
35244
35282
|
]
|
|
35245
|
-
}), r[44] =
|
|
35283
|
+
}), r[44] = h9, r[45] = y9, r[46] = b9) : b9 = r[46], b9;
|
|
35246
35284
|
};
|
|
35247
35285
|
function lastLine(e) {
|
|
35248
35286
|
var _a3, _b3;
|
|
35249
35287
|
let r = document.createElement("div");
|
|
35250
|
-
return r.innerHTML = e, ((_b3 = (_a3 = r.textContent) == null ? void 0 : _a3.split("\n").filter(Boolean)) == null ? void 0 : _b3.at(-1)) || "";
|
|
35288
|
+
return r.innerHTML = sanitizeHtml(e), ((_b3 = (_a3 = r.textContent) == null ? void 0 : _a3.split("\n").filter(Boolean)) == null ? void 0 : _b3.at(-1)) || "";
|
|
35251
35289
|
}
|
|
35252
35290
|
const replaceTracebackFilenames = (e) => {
|
|
35253
35291
|
let r = getTracebackInfo(e);
|
|
@@ -37087,7 +37125,7 @@ ${E}`,
|
|
|
37087
37125
|
};
|
|
37088
37126
|
}
|
|
37089
37127
|
};
|
|
37090
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
37128
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-X5KPeHrU.js").then((e) => ({
|
|
37091
37129
|
default: e.Chatbot
|
|
37092
37130
|
}))), messageSchema = array(object({
|
|
37093
37131
|
id: string(),
|
|
@@ -42167,148 +42205,148 @@ ${c}
|
|
|
42167
42205
|
isSelected: () => false,
|
|
42168
42206
|
onSelect: Functions.NOOP
|
|
42169
42207
|
}), Combobox = (e) => {
|
|
42170
|
-
let r = (0, import_compiler_runtime$81.c)(94), c, d, f, h, _, v, y, S, w, E, O, M, I, G, q, Z7, Q7, $7, e9, t9
|
|
42171
|
-
r[0] === e ? (c = r[1], d = r[2], f = r[3], h = r[4], _ = r[5], v = r[6], y = r[7], S = r[8], w = r[9], E = r[10], O = r[11], M = r[12], I = r[13],
|
|
42172
|
-
let
|
|
42173
|
-
r[22] !== w || r[23] !== M || r[24] !==
|
|
42208
|
+
let r = (0, import_compiler_runtime$81.c)(94), c, d, f, h, _, v, y, S, w, E, O, M, I, z, G, q, Z7, Q7, $7, e9, t9;
|
|
42209
|
+
r[0] === e ? (c = r[1], d = r[2], f = r[3], h = r[4], _ = r[5], v = r[6], y = r[7], S = r[8], w = r[9], E = r[10], O = r[11], M = r[12], I = r[13], z = r[14], G = r[15], q = r[16], Z7 = r[17], Q7 = r[18], $7 = r[19], e9 = r[20], t9 = r[21]) : ({ children: c, displayValue: v, className: f, placeholder: I, value: t9, defaultValue: _, onValueChange: O, multiple: q, shouldFilter: Z7, filterFn: y, open: M, defaultOpen: h, onOpenChange: w, inputPlaceholder: Q7, search: G, onSearchChange: E, emptyState: $7, chips: e9, chipsClassName: d, keepPopoverOpenOnSelect: S, ...z } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = h, r[5] = _, r[6] = v, r[7] = y, r[8] = S, r[9] = w, r[10] = E, r[11] = O, r[12] = M, r[13] = I, r[14] = z, r[15] = G, r[16] = q, r[17] = Z7, r[18] = Q7, r[19] = $7, r[20] = e9, r[21] = t9);
|
|
42210
|
+
let n9 = q === void 0 ? false : q, r9 = Z7 === void 0 ? true : Z7, i9 = Q7 === void 0 ? "Search..." : Q7, a9 = $7 === void 0 ? "Nothing found." : $7, o9 = e9 === void 0 ? false : e9, s9 = h ?? false, c9;
|
|
42211
|
+
r[22] !== w || r[23] !== M || r[24] !== s9 ? (c9 = {
|
|
42174
42212
|
prop: M,
|
|
42175
|
-
defaultProp:
|
|
42213
|
+
defaultProp: s9,
|
|
42176
42214
|
onChange: w
|
|
42177
|
-
}, r[22] = w, r[23] = M, r[24] =
|
|
42178
|
-
let [
|
|
42179
|
-
r[26] === O ?
|
|
42215
|
+
}, r[22] = w, r[23] = M, r[24] = s9, r[25] = c9) : c9 = r[25];
|
|
42216
|
+
let [l9, u9] = useControllableState(c9), d9 = l9 === void 0 ? false : l9, f9;
|
|
42217
|
+
r[26] === O ? f9 = r[27] : (f9 = (e2) => {
|
|
42180
42218
|
O == null ? void 0 : O(e2);
|
|
42181
|
-
}, r[26] = O, r[27] =
|
|
42182
|
-
let
|
|
42183
|
-
r[28] !== _ || r[29] !==
|
|
42184
|
-
prop:
|
|
42219
|
+
}, r[26] = O, r[27] = f9);
|
|
42220
|
+
let p9;
|
|
42221
|
+
r[28] !== _ || r[29] !== f9 || r[30] !== t9 ? (p9 = {
|
|
42222
|
+
prop: t9,
|
|
42185
42223
|
defaultProp: _,
|
|
42186
|
-
onChange:
|
|
42187
|
-
}, r[28] = _, r[29] =
|
|
42188
|
-
let [
|
|
42189
|
-
r[32] ===
|
|
42190
|
-
let
|
|
42191
|
-
r[34] !== S || r[35] !==
|
|
42224
|
+
onChange: f9
|
|
42225
|
+
}, r[28] = _, r[29] = f9, r[30] = t9, r[31] = p9) : p9 = r[31];
|
|
42226
|
+
let [m9, h9] = useControllableState(p9), g9;
|
|
42227
|
+
r[32] === m9 ? g9 = r[33] : (g9 = (e2) => Array.isArray(m9) ? m9.includes(e2) : m9 === e2, r[32] = m9, r[33] = g9);
|
|
42228
|
+
let _9 = g9, v9;
|
|
42229
|
+
r[34] !== S || r[35] !== n9 || r[36] !== u9 || r[37] !== h9 || r[38] !== m9 ? (v9 = (e2) => {
|
|
42192
42230
|
let r2 = e2;
|
|
42193
|
-
if (
|
|
42194
|
-
let c2 =
|
|
42231
|
+
if (n9) if (Array.isArray(m9)) if (m9.includes(r2)) {
|
|
42232
|
+
let c2 = m9.filter((r3) => r3 !== e2);
|
|
42195
42233
|
r2 = c2.length > 0 ? c2 : [];
|
|
42196
42234
|
} else r2 = [
|
|
42197
|
-
...
|
|
42235
|
+
...m9,
|
|
42198
42236
|
r2
|
|
42199
42237
|
];
|
|
42200
42238
|
else r2 = [
|
|
42201
42239
|
r2
|
|
42202
42240
|
];
|
|
42203
|
-
else
|
|
42204
|
-
|
|
42205
|
-
}, r[34] = S, r[35] =
|
|
42206
|
-
let
|
|
42207
|
-
r[40] !==
|
|
42208
|
-
let
|
|
42209
|
-
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
42241
|
+
else m9 === e2 && (r2 = null);
|
|
42242
|
+
h9(r2), (S ?? n9) || u9(false);
|
|
42243
|
+
}, r[34] = S, r[35] = n9, r[36] = u9, r[37] = h9, r[38] = m9, r[39] = v9) : v9 = r[39];
|
|
42244
|
+
let y9 = v9, b9;
|
|
42245
|
+
r[40] !== o9 || r[41] !== v || r[42] !== n9 || r[43] !== I || r[44] !== m9 ? (b9 = () => n9 && o9 && I ? I : m9 == null ? I ?? "--" : Array.isArray(m9) ? m9.length === 0 ? I ?? "--" : m9.length === 1 && v !== void 0 ? v(m9[0]) : `${m9.length} selected` : v === void 0 ? I ?? "--" : v(m9), r[40] = o9, r[41] = v, r[42] = n9, r[43] = I, r[44] = m9, r[45] = b9) : b9 = r[45];
|
|
42246
|
+
let x9 = b9, S9;
|
|
42247
|
+
r[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S9 = cn("relative"), r[46] = S9) : S9 = r[46];
|
|
42248
|
+
let C9;
|
|
42249
|
+
r[47] === f ? C9 = r[48] : (C9 = cn("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:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", f), r[47] = f, r[48] = C9);
|
|
42210
42250
|
let w9;
|
|
42211
|
-
r[
|
|
42251
|
+
r[49] === x9 ? w9 = r[50] : (w9 = x9(), r[49] = x9, r[50] = w9);
|
|
42212
42252
|
let T9;
|
|
42213
|
-
r[
|
|
42214
|
-
let E9;
|
|
42215
|
-
r[51] === T9 ? E9 = r[52] : (E9 = (0, import_jsx_runtime.jsx)("span", {
|
|
42253
|
+
r[51] === w9 ? T9 = r[52] : (T9 = (0, import_jsx_runtime.jsx)("span", {
|
|
42216
42254
|
className: "truncate flex-1 min-w-0",
|
|
42217
|
-
children:
|
|
42218
|
-
}), r[51] =
|
|
42219
|
-
let
|
|
42220
|
-
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
42255
|
+
children: w9
|
|
42256
|
+
}), r[51] = w9, r[52] = T9);
|
|
42257
|
+
let E9;
|
|
42258
|
+
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E9 = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
42221
42259
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
42222
|
-
}), r[53] =
|
|
42223
|
-
let
|
|
42224
|
-
r[54] !==
|
|
42260
|
+
}), r[53] = E9) : E9 = r[53];
|
|
42261
|
+
let D9;
|
|
42262
|
+
r[54] !== d9 || r[55] !== C9 || r[56] !== T9 ? (D9 = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
42225
42263
|
asChild: true,
|
|
42226
42264
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
42227
|
-
className:
|
|
42228
|
-
"aria-expanded":
|
|
42265
|
+
className: C9,
|
|
42266
|
+
"aria-expanded": d9,
|
|
42229
42267
|
children: [
|
|
42230
|
-
|
|
42231
|
-
|
|
42268
|
+
T9,
|
|
42269
|
+
E9
|
|
42232
42270
|
]
|
|
42233
42271
|
})
|
|
42234
|
-
}), r[54] =
|
|
42235
|
-
let
|
|
42236
|
-
r[58] !==
|
|
42237
|
-
placeholder:
|
|
42272
|
+
}), r[54] = d9, r[55] = C9, r[56] = T9, r[57] = D9) : D9 = r[57];
|
|
42273
|
+
let O9;
|
|
42274
|
+
r[58] !== i9 || r[59] !== E || r[60] !== G ? (O9 = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
42275
|
+
placeholder: i9,
|
|
42238
42276
|
rootClassName: "px-1 h-8",
|
|
42239
42277
|
autoFocus: true,
|
|
42240
|
-
value:
|
|
42278
|
+
value: G,
|
|
42241
42279
|
onValueChange: E
|
|
42242
|
-
}), r[58] =
|
|
42280
|
+
}), r[58] = i9, r[59] = E, r[60] = G, r[61] = O9) : O9 = r[61];
|
|
42281
|
+
let k9;
|
|
42282
|
+
r[62] === a9 ? k9 = r[63] : (k9 = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
42283
|
+
children: a9
|
|
42284
|
+
}), r[62] = a9, r[63] = k9);
|
|
42243
42285
|
let A9;
|
|
42244
|
-
r[
|
|
42245
|
-
|
|
42246
|
-
|
|
42286
|
+
r[64] !== y9 || r[65] !== _9 ? (A9 = {
|
|
42287
|
+
isSelected: _9,
|
|
42288
|
+
onSelect: y9
|
|
42289
|
+
}, r[64] = y9, r[65] = _9, r[66] = A9) : A9 = r[66];
|
|
42247
42290
|
let j9;
|
|
42248
|
-
r[
|
|
42249
|
-
|
|
42250
|
-
onSelect: b9
|
|
42251
|
-
}, r[64] = b9, r[65] = v9, r[66] = j9) : j9 = r[66];
|
|
42252
|
-
let M9;
|
|
42253
|
-
r[67] !== c || r[68] !== j9 ? (M9 = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
42254
|
-
value: j9,
|
|
42291
|
+
r[67] !== c || r[68] !== A9 ? (j9 = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
42292
|
+
value: A9,
|
|
42255
42293
|
children: c
|
|
42256
|
-
}), r[67] = c, r[68] =
|
|
42257
|
-
let
|
|
42258
|
-
r[70] !==
|
|
42294
|
+
}), r[67] = c, r[68] = A9, r[69] = j9) : j9 = r[69];
|
|
42295
|
+
let M9;
|
|
42296
|
+
r[70] !== k9 || r[71] !== j9 ? (M9 = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
42259
42297
|
className: "max-h-60 py-.5",
|
|
42260
42298
|
children: [
|
|
42261
|
-
|
|
42262
|
-
|
|
42299
|
+
k9,
|
|
42300
|
+
j9
|
|
42263
42301
|
]
|
|
42264
|
-
}), r[70] =
|
|
42265
|
-
let
|
|
42266
|
-
r[73] !== y || r[74] !==
|
|
42302
|
+
}), r[70] = k9, r[71] = j9, r[72] = M9) : M9 = r[72];
|
|
42303
|
+
let N9;
|
|
42304
|
+
r[73] !== y || r[74] !== r9 || r[75] !== O9 || r[76] !== M9 ? (N9 = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
42267
42305
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
42268
42306
|
align: "start",
|
|
42269
42307
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
42270
42308
|
filter: y,
|
|
42271
|
-
shouldFilter:
|
|
42309
|
+
shouldFilter: r9,
|
|
42272
42310
|
children: [
|
|
42273
|
-
|
|
42274
|
-
|
|
42311
|
+
O9,
|
|
42312
|
+
M9
|
|
42275
42313
|
]
|
|
42276
42314
|
})
|
|
42277
|
-
}), r[73] = y, r[74] =
|
|
42278
|
-
let
|
|
42279
|
-
r[78] !==
|
|
42280
|
-
open:
|
|
42281
|
-
onOpenChange:
|
|
42315
|
+
}), r[73] = y, r[74] = r9, r[75] = O9, r[76] = M9, r[77] = N9) : N9 = r[77];
|
|
42316
|
+
let P9;
|
|
42317
|
+
r[78] !== d9 || r[79] !== u9 || r[80] !== D9 || r[81] !== N9 ? (P9 = (0, import_jsx_runtime.jsxs)(Popover$1, {
|
|
42318
|
+
open: d9,
|
|
42319
|
+
onOpenChange: u9,
|
|
42282
42320
|
children: [
|
|
42283
|
-
|
|
42284
|
-
|
|
42321
|
+
D9,
|
|
42322
|
+
N9
|
|
42285
42323
|
]
|
|
42286
|
-
}), r[78] =
|
|
42287
|
-
let
|
|
42288
|
-
r[83] !==
|
|
42324
|
+
}), r[78] = d9, r[79] = u9, r[80] = D9, r[81] = N9, r[82] = P9) : P9 = r[82];
|
|
42325
|
+
let F9;
|
|
42326
|
+
r[83] !== o9 || r[84] !== d || r[85] !== v || r[86] !== y9 || r[87] !== n9 || r[88] !== m9 ? (F9 = n9 && o9 && (0, import_jsx_runtime.jsx)("div", {
|
|
42289
42327
|
className: cn("flex flex-col gap-1 items-start", d),
|
|
42290
|
-
children: Array.isArray(
|
|
42328
|
+
children: Array.isArray(m9) && m9.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
42291
42329
|
variant: "secondary",
|
|
42292
42330
|
children: [
|
|
42293
42331
|
(v == null ? void 0 : v(e2)) ?? String(e2),
|
|
42294
42332
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
42295
42333
|
onClick: () => {
|
|
42296
|
-
|
|
42334
|
+
y9(e2);
|
|
42297
42335
|
},
|
|
42298
42336
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
42299
42337
|
})
|
|
42300
42338
|
]
|
|
42301
42339
|
}, String(e2)))
|
|
42302
|
-
}), r[83] =
|
|
42303
|
-
let
|
|
42304
|
-
return r[90] !==
|
|
42305
|
-
className:
|
|
42306
|
-
...
|
|
42340
|
+
}), r[83] = o9, r[84] = d, r[85] = v, r[86] = y9, r[87] = n9, r[88] = m9, r[89] = F9) : F9 = r[89];
|
|
42341
|
+
let I9;
|
|
42342
|
+
return r[90] !== z || r[91] !== P9 || r[92] !== F9 ? (I9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
42343
|
+
className: S9,
|
|
42344
|
+
...z,
|
|
42307
42345
|
children: [
|
|
42308
|
-
|
|
42309
|
-
|
|
42346
|
+
P9,
|
|
42347
|
+
F9
|
|
42310
42348
|
]
|
|
42311
|
-
}), r[90] =
|
|
42349
|
+
}), r[90] = z, r[91] = P9, r[92] = F9, r[93] = I9) : I9 = r[93], I9;
|
|
42312
42350
|
}, ComboboxItem = import_react.forwardRef((e, r) => {
|
|
42313
42351
|
let c = (0, import_compiler_runtime$81.c)(17), { children: d, className: f, value: h, onSelect: _, disabled: v } = e, y = typeof h == "object" && "value" in h ? h.value : String(h), S = import_react.use(ComboboxContext), w;
|
|
42314
42352
|
c[0] === f ? w = c[1] : (w = cn("pl-6 m-1 py-1", f), c[0] = f, c[1] = w);
|
|
@@ -44604,8 +44642,8 @@ ${c}
|
|
|
44604
44642
|
"Data"
|
|
44605
44643
|
]
|
|
44606
44644
|
}), r[10] = O) : O = r[10];
|
|
44607
|
-
let
|
|
44608
|
-
r[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
44645
|
+
let M;
|
|
44646
|
+
r[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
44609
44647
|
className: "w-full",
|
|
44610
44648
|
children: [
|
|
44611
44649
|
O,
|
|
@@ -44620,60 +44658,60 @@ ${c}
|
|
|
44620
44658
|
]
|
|
44621
44659
|
})
|
|
44622
44660
|
]
|
|
44623
|
-
}), r[11] =
|
|
44624
|
-
let
|
|
44625
|
-
r[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
44661
|
+
}), r[11] = M) : M = r[11];
|
|
44662
|
+
let I;
|
|
44663
|
+
r[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (0, import_jsx_runtime.jsx)("hr", {
|
|
44626
44664
|
className: "my-2"
|
|
44627
|
-
}), r[12] =
|
|
44628
|
-
let
|
|
44629
|
-
r[13] === w ?
|
|
44665
|
+
}), r[12] = I) : I = r[12];
|
|
44666
|
+
let z;
|
|
44667
|
+
r[13] === w ? z = r[14] : (z = (0, import_jsx_runtime.jsxs)(TabsContent, {
|
|
44630
44668
|
value: "data",
|
|
44631
44669
|
children: [
|
|
44632
|
-
|
|
44670
|
+
I,
|
|
44633
44671
|
(0, import_jsx_runtime.jsx)(TabContainer, {
|
|
44634
44672
|
children: (0, import_jsx_runtime.jsx)(w, {})
|
|
44635
44673
|
})
|
|
44636
44674
|
]
|
|
44637
|
-
}), r[13] = w, r[14] =
|
|
44638
|
-
let
|
|
44639
|
-
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
44675
|
+
}), r[13] = w, r[14] = z);
|
|
44676
|
+
let G;
|
|
44677
|
+
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = (0, import_jsx_runtime.jsx)("hr", {
|
|
44640
44678
|
className: "my-2"
|
|
44641
|
-
}), r[15] =
|
|
44642
|
-
let
|
|
44643
|
-
r[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
44679
|
+
}), r[15] = G) : G = r[15];
|
|
44680
|
+
let q;
|
|
44681
|
+
r[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsxs)(TabsContent, {
|
|
44644
44682
|
value: "style",
|
|
44645
44683
|
children: [
|
|
44646
|
-
|
|
44684
|
+
G,
|
|
44647
44685
|
(0, import_jsx_runtime.jsx)(TabContainer, {
|
|
44648
44686
|
children: (0, import_jsx_runtime.jsx)(StyleForm, {})
|
|
44649
44687
|
})
|
|
44650
44688
|
]
|
|
44651
|
-
}), r[16] =
|
|
44652
|
-
let
|
|
44653
|
-
r[17] ===
|
|
44689
|
+
}), r[16] = q) : q = r[16];
|
|
44690
|
+
let Z7;
|
|
44691
|
+
r[17] === z ? Z7 = r[18] : (Z7 = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
44654
44692
|
defaultValue: "data",
|
|
44655
44693
|
children: [
|
|
44656
|
-
|
|
44657
|
-
|
|
44658
|
-
|
|
44694
|
+
M,
|
|
44695
|
+
z,
|
|
44696
|
+
q
|
|
44659
44697
|
]
|
|
44660
|
-
}), r[17] =
|
|
44661
|
-
let
|
|
44662
|
-
r[19] !== S || r[20] !==
|
|
44698
|
+
}), r[17] = z, r[18] = Z7);
|
|
44699
|
+
let Q7;
|
|
44700
|
+
r[19] !== S || r[20] !== Z7 ? (Q7 = (0, import_jsx_runtime.jsx)("form", {
|
|
44663
44701
|
onSubmit: _temp3$11,
|
|
44664
44702
|
onChange: S,
|
|
44703
|
+
children: Z7
|
|
44704
|
+
}), r[19] = S, r[20] = Z7, r[21] = Q7) : Q7 = r[21];
|
|
44705
|
+
let $7;
|
|
44706
|
+
r[22] !== c || r[23] !== Q7 ? ($7 = (0, import_jsx_runtime.jsx)(Form$1, {
|
|
44707
|
+
...c,
|
|
44665
44708
|
children: Q7
|
|
44666
|
-
}), r[
|
|
44709
|
+
}), r[22] = c, r[23] = Q7, r[24] = $7) : $7 = r[24];
|
|
44667
44710
|
let e9;
|
|
44668
|
-
r[
|
|
44669
|
-
...c,
|
|
44670
|
-
children: $7
|
|
44671
|
-
}), r[22] = c, r[23] = $7, r[24] = e9) : e9 = r[24];
|
|
44672
|
-
let t9;
|
|
44673
|
-
return r[25] !== e9 || r[26] !== E ? (t9 = (0, import_jsx_runtime.jsx)(ChartFormContext, {
|
|
44711
|
+
return r[25] !== $7 || r[26] !== E ? (e9 = (0, import_jsx_runtime.jsx)(ChartFormContext, {
|
|
44674
44712
|
value: E,
|
|
44675
|
-
children:
|
|
44676
|
-
}), r[25] =
|
|
44713
|
+
children: $7
|
|
44714
|
+
}), r[25] = $7, r[26] = E, r[27] = e9) : e9 = r[27], e9;
|
|
44677
44715
|
};
|
|
44678
44716
|
function _temp2$17(e) {
|
|
44679
44717
|
return {
|
|
@@ -49229,19 +49267,19 @@ ${c}
|
|
|
49229
49267
|
r[51] === q ? k9 = r[52] : (k9 = q && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
49230
49268
|
error: q
|
|
49231
49269
|
}), r[51] = q, r[52] = k9);
|
|
49232
|
-
let A9 = $7 || "",
|
|
49233
|
-
r[53] !== E || r[54] !== n9 || r[55] !== O || r[56] !== d || r[57] !== w || r[58] !== f || r[59] !== A9 || r[60] !==
|
|
49270
|
+
let A9 = $7 || "", j9 = e9 ?? 0, M9 = o9 ?? 0, N9 = t9 || Arrays.EMPTY, P9 = e9 && e9 > 5 || false, F9;
|
|
49271
|
+
r[53] !== E || r[54] !== n9 || r[55] !== O || r[56] !== d || r[57] !== w || r[58] !== f || r[59] !== A9 || r[60] !== j9 || r[61] !== M9 || r[62] !== N9 || r[63] !== P9 ? (F9 = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
49234
49272
|
label: null,
|
|
49235
49273
|
className: "rounded-b border-x border-b",
|
|
49236
49274
|
data: A9,
|
|
49237
49275
|
hasStableRowId: false,
|
|
49238
|
-
totalRows:
|
|
49239
|
-
totalColumns:
|
|
49276
|
+
totalRows: j9,
|
|
49277
|
+
totalColumns: M9,
|
|
49240
49278
|
maxColumns: "all",
|
|
49241
49279
|
pageSize: d,
|
|
49242
49280
|
pagination: true,
|
|
49243
49281
|
fieldTypes: n9,
|
|
49244
|
-
rowHeaders:
|
|
49282
|
+
rowHeaders: N9,
|
|
49245
49283
|
showDownload: f,
|
|
49246
49284
|
download_as: E,
|
|
49247
49285
|
enableSearch: false,
|
|
@@ -49250,7 +49288,7 @@ ${c}
|
|
|
49250
49288
|
showColumnSummaries: false,
|
|
49251
49289
|
showDataTypes: true,
|
|
49252
49290
|
get_column_summaries: getColumnSummaries,
|
|
49253
|
-
showPageSizeSelector:
|
|
49291
|
+
showPageSizeSelector: P9,
|
|
49254
49292
|
showColumnExplorer: false,
|
|
49255
49293
|
showRowExplorer: true,
|
|
49256
49294
|
showChartBuilder: false,
|
|
@@ -49259,15 +49297,15 @@ ${c}
|
|
|
49259
49297
|
selection: null,
|
|
49260
49298
|
lazy: false,
|
|
49261
49299
|
host: O
|
|
49262
|
-
}), r[53] = E, r[54] = n9, r[55] = O, r[56] = d, r[57] = w, r[58] = f, r[59] = A9, r[60] =
|
|
49263
|
-
let
|
|
49264
|
-
return r[65] !== O9 || r[66] !== k9 || r[67] !==
|
|
49300
|
+
}), r[53] = E, r[54] = n9, r[55] = O, r[56] = d, r[57] = w, r[58] = f, r[59] = A9, r[60] = j9, r[61] = M9, r[62] = N9, r[63] = P9, r[64] = F9) : F9 = r[64];
|
|
49301
|
+
let I9;
|
|
49302
|
+
return r[65] !== O9 || r[66] !== k9 || r[67] !== F9 ? (I9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
49265
49303
|
children: [
|
|
49266
49304
|
O9,
|
|
49267
49305
|
k9,
|
|
49268
|
-
|
|
49306
|
+
F9
|
|
49269
49307
|
]
|
|
49270
|
-
}), r[65] = O9, r[66] = k9, r[67] =
|
|
49308
|
+
}), r[65] = O9, r[66] = k9, r[67] = F9, r[68] = I9) : I9 = r[68], I9;
|
|
49271
49309
|
});
|
|
49272
49310
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
49273
49311
|
function getColumnSummaries() {
|
|
@@ -49387,7 +49425,7 @@ ${c}
|
|
|
49387
49425
|
var PARENT_DIRECTORY = "..";
|
|
49388
49426
|
const FileBrowser = ({ value: e, setValue: r, initialPath: c, selectionMode: d, multiple: f, label: h, restrictNavigation: _, list_directory: v, host: S }) => {
|
|
49389
49427
|
var _a3;
|
|
49390
|
-
let [w, E] = useInternalStateWithSync(c), [O,
|
|
49428
|
+
let [w, E] = useInternalStateWithSync(c), [O, I] = (0, import_react.useState)("Select all"), [z, G] = (0, import_react.useState)(false), [q, Z7] = (0, import_react.useState)(false), Q7 = (_a3 = S.closest(`[${RANDOM_ID_ATTR}]`)) == null ? void 0 : _a3.getAttribute(RANDOM_ID_ATTR), { data: $7, error: e9, isPending: t9 } = useAsyncData(() => v({
|
|
49391
49429
|
path: w
|
|
49392
49430
|
}), [
|
|
49393
49431
|
w,
|
|
@@ -49416,10 +49454,10 @@ ${c}
|
|
|
49416
49454
|
children: e2.path
|
|
49417
49455
|
}, e2.id)), o9 = d === "directory" || d === "all", s9 = d === "file" || d === "all";
|
|
49418
49456
|
function c9(e2) {
|
|
49419
|
-
if (
|
|
49420
|
-
if (
|
|
49457
|
+
if (z) return;
|
|
49458
|
+
if (G(true), e2 === PARENT_DIRECTORY) {
|
|
49421
49459
|
if (w === r9) {
|
|
49422
|
-
|
|
49460
|
+
G(false);
|
|
49423
49461
|
return;
|
|
49424
49462
|
}
|
|
49425
49463
|
e2 = Paths.dirname(w), e2 === "" && (e2 = r9);
|
|
@@ -49430,10 +49468,10 @@ ${c}
|
|
|
49430
49468
|
title: "Access denied",
|
|
49431
49469
|
description: "Access to directories outside initial path is restricted.",
|
|
49432
49470
|
variant: "danger"
|
|
49433
|
-
}),
|
|
49471
|
+
}), G(false);
|
|
49434
49472
|
return;
|
|
49435
49473
|
}
|
|
49436
|
-
E(e2),
|
|
49474
|
+
E(e2), I("Select all"), G(false);
|
|
49437
49475
|
}
|
|
49438
49476
|
function l9({ path: e2, name: r2, isDirectory: c2 }) {
|
|
49439
49477
|
return {
|
|
@@ -49449,7 +49487,7 @@ ${c}
|
|
|
49449
49487
|
name: d2,
|
|
49450
49488
|
isDirectory: h2
|
|
49451
49489
|
});
|
|
49452
|
-
f ? i9.has(c2) ? (r(e.filter((e2) => e2.path !== c2)),
|
|
49490
|
+
f ? i9.has(c2) ? (r(e.filter((e2) => e2.path !== c2)), I("Select all")) : r([
|
|
49453
49491
|
...e,
|
|
49454
49492
|
_2
|
|
49455
49493
|
]) : r([
|
|
@@ -49457,7 +49495,7 @@ ${c}
|
|
|
49457
49495
|
]);
|
|
49458
49496
|
}
|
|
49459
49497
|
function d9() {
|
|
49460
|
-
r(e.filter((e2) => Paths.dirname(e2.path) !== w)),
|
|
49498
|
+
r(e.filter((e2) => Paths.dirname(e2.path) !== w)), I("Select all");
|
|
49461
49499
|
}
|
|
49462
49500
|
function f9() {
|
|
49463
49501
|
if (!n9) return;
|
|
@@ -49474,7 +49512,7 @@ ${c}
|
|
|
49474
49512
|
r([
|
|
49475
49513
|
...e,
|
|
49476
49514
|
...c2
|
|
49477
|
-
]),
|
|
49515
|
+
]), I("Deselect all");
|
|
49478
49516
|
}
|
|
49479
49517
|
let p9 = [];
|
|
49480
49518
|
p9.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
@@ -57049,7 +57087,7 @@ ${c}
|
|
|
57049
57087
|
return window.Bokeh != null;
|
|
57050
57088
|
}
|
|
57051
57089
|
var PanelSlot = (e) => {
|
|
57052
|
-
let { data: r, functions: c, host: d } = e, { extension: f, docs_json: h, render_json: _ } = r, v = (0, import_react.useRef)(null), y = (0, import_react.useRef)(null), S = (0, import_react.useRef)(null), [w,
|
|
57090
|
+
let { data: r, functions: c, host: d } = e, { extension: f, docs_json: h, render_json: _ } = r, v = (0, import_react.useRef)(null), y = (0, import_react.useRef)(null), S = (0, import_react.useRef)(null), [w, O] = (0, import_react.useState)(false), [M, I] = (0, import_react.useState)(null), z = (0, import_react.useRef)(c);
|
|
57053
57091
|
z.current = c;
|
|
57054
57092
|
let G = (0, import_react.useCallback)(() => {
|
|
57055
57093
|
if (!q.current) return;
|
|
@@ -57067,7 +57105,7 @@ ${c}
|
|
|
57067
57105
|
}, []), q = (0, import_react.useRef)(new EventBuffer(G));
|
|
57068
57106
|
return (0, import_react.useEffect)(() => {
|
|
57069
57107
|
if (isBokehLoaded()) {
|
|
57070
|
-
|
|
57108
|
+
O(true);
|
|
57071
57109
|
return;
|
|
57072
57110
|
}
|
|
57073
57111
|
if (f) {
|
|
@@ -57075,12 +57113,12 @@ ${c}
|
|
|
57075
57113
|
e3.innerHTML = f, document.head.append(e3);
|
|
57076
57114
|
}
|
|
57077
57115
|
let e2 = setInterval(() => {
|
|
57078
|
-
isBokehLoaded() && (
|
|
57116
|
+
isBokehLoaded() && (O(true), clearInterval(e2));
|
|
57079
57117
|
}, 10);
|
|
57080
57118
|
return () => clearInterval(e2);
|
|
57081
57119
|
}, [
|
|
57082
57120
|
f,
|
|
57083
|
-
|
|
57121
|
+
O
|
|
57084
57122
|
]), useEventListener(d, MarimoIncomingMessageEvent.TYPE, (e2) => {
|
|
57085
57123
|
if (e2.detail.message == null) return;
|
|
57086
57124
|
let r2 = MessageSchema.parse(e2.detail.message), c2 = e2.detail.buffers, d2 = S.current;
|
|
@@ -57311,7 +57349,7 @@ ${c}
|
|
|
57311
57349
|
function shouldHandleClickSelection(e) {
|
|
57312
57350
|
return e.some((e2) => {
|
|
57313
57351
|
let r = getTraceSource(e2).type;
|
|
57314
|
-
return r === "bar" || r === "heatmap" || r === "histogram" || isLinePoint(e2);
|
|
57352
|
+
return r === "bar" || r === "heatmap" || r === "histogram" || r === "waterfall" || isLinePoint(e2);
|
|
57315
57353
|
});
|
|
57316
57354
|
}
|
|
57317
57355
|
function extractIndices(e) {
|
|
@@ -60581,17 +60619,7 @@ ${c}
|
|
|
60581
60619
|
Object.defineProperty(e, "__esModule", {
|
|
60582
60620
|
value: true
|
|
60583
60621
|
}), e.PathError = e.TokenData = void 0, e.match = w;
|
|
60584
|
-
var r = "/", c = (e2) => e2, d = /^[$_\p{ID_Start}]$/u, f = /^[$\u200c\u200d\p{ID_Continue}]$/u, h = {
|
|
60585
|
-
"{": "{",
|
|
60586
|
-
"}": "}",
|
|
60587
|
-
"(": "(",
|
|
60588
|
-
")": ")",
|
|
60589
|
-
"[": "[",
|
|
60590
|
-
"]": "]",
|
|
60591
|
-
"+": "+",
|
|
60592
|
-
"?": "?",
|
|
60593
|
-
"!": "!"
|
|
60594
|
-
};
|
|
60622
|
+
var r = "/", c = (e2) => e2, d = /^[$_\p{ID_Start}]$/u, f = /^[$\u200c\u200d\p{ID_Continue}]$/u, h = "{}()[]+?!";
|
|
60595
60623
|
function _(e2) {
|
|
60596
60624
|
return e2.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
|
|
60597
60625
|
}
|
|
@@ -60619,8 +60647,8 @@ ${c}
|
|
|
60619
60647
|
while (f.test(S2[E2]));
|
|
60620
60648
|
else if (S2[E2] === '"') {
|
|
60621
60649
|
let c2 = E2;
|
|
60622
|
-
for (; E2
|
|
60623
|
-
if (S2[E2] === '"') {
|
|
60650
|
+
for (; E2 < S2.length; ) {
|
|
60651
|
+
if (S2[++E2] === '"') {
|
|
60624
60652
|
E2++, c2 = 0;
|
|
60625
60653
|
break;
|
|
60626
60654
|
}
|
|
@@ -60632,26 +60660,26 @@ ${c}
|
|
|
60632
60660
|
return r3;
|
|
60633
60661
|
}
|
|
60634
60662
|
for (; E2 < S2.length; ) {
|
|
60635
|
-
let e3 = S2[E2]
|
|
60636
|
-
|
|
60637
|
-
type:
|
|
60638
|
-
index: E2
|
|
60663
|
+
let e3 = S2[E2++];
|
|
60664
|
+
h.includes(e3) ? w2.push({
|
|
60665
|
+
type: e3,
|
|
60666
|
+
index: E2,
|
|
60639
60667
|
value: e3
|
|
60640
60668
|
}) : e3 === "\\" ? w2.push({
|
|
60641
60669
|
type: "escape",
|
|
60642
|
-
index: E2
|
|
60670
|
+
index: E2,
|
|
60643
60671
|
value: S2[E2++]
|
|
60644
60672
|
}) : e3 === ":" ? w2.push({
|
|
60645
60673
|
type: "param",
|
|
60646
|
-
index: E2
|
|
60674
|
+
index: E2,
|
|
60647
60675
|
value: M2()
|
|
60648
60676
|
}) : e3 === "*" ? w2.push({
|
|
60649
60677
|
type: "wildcard",
|
|
60650
|
-
index: E2
|
|
60678
|
+
index: E2,
|
|
60651
60679
|
value: M2()
|
|
60652
60680
|
}) : w2.push({
|
|
60653
60681
|
type: "char",
|
|
60654
|
-
index: E2
|
|
60682
|
+
index: E2,
|
|
60655
60683
|
value: e3
|
|
60656
60684
|
});
|
|
60657
60685
|
}
|
|
@@ -60712,46 +60740,99 @@ ${c}
|
|
|
60712
60740
|
};
|
|
60713
60741
|
}
|
|
60714
60742
|
function E(e2, c2 = {}) {
|
|
60715
|
-
let { delimiter: d2 = r, end: f2 = true, sensitive: h2 = false, trailing: v2 = true } = c2,
|
|
60716
|
-
|
|
60717
|
-
|
|
60718
|
-
|
|
60719
|
-
|
|
60720
|
-
|
|
60721
|
-
|
|
60722
|
-
|
|
60723
|
-
|
|
60743
|
+
let { delimiter: d2 = r, end: f2 = true, sensitive: h2 = false, trailing: v2 = true } = c2, w2 = new M("^"), E2 = [
|
|
60744
|
+
e2
|
|
60745
|
+
], G2 = 0;
|
|
60746
|
+
for (; E2.length; ) {
|
|
60747
|
+
let e3 = E2.shift();
|
|
60748
|
+
if (Array.isArray(e3)) {
|
|
60749
|
+
E2.push(...e3);
|
|
60750
|
+
continue;
|
|
60751
|
+
}
|
|
60752
|
+
let r2 = typeof e3 == "object" ? e3 : S(e3, c2);
|
|
60753
|
+
I(r2.tokens, 0, [], (e4) => {
|
|
60754
|
+
if (G2++ >= 256) throw new y("Too many path combinations", r2.originalPath);
|
|
60755
|
+
let c3 = w2;
|
|
60756
|
+
for (let f3 of z(e4, d2, r2.originalPath)) c3 = c3.add(f3.source, f3.key);
|
|
60757
|
+
c3.add("");
|
|
60758
|
+
});
|
|
60759
|
+
}
|
|
60760
|
+
let q = [], Z7 = O(w2, q);
|
|
60761
|
+
return v2 && (Z7 += "(?:" + _(d2) + "$)?"), Z7 += f2 ? "$" : "(?=" + _(d2) + "|$)", {
|
|
60762
|
+
regexp: new RegExp(Z7, h2 ? "" : "i"),
|
|
60763
|
+
keys: q
|
|
60724
60764
|
};
|
|
60725
60765
|
}
|
|
60726
60766
|
function O(e2, r2) {
|
|
60727
|
-
|
|
60728
|
-
|
|
60729
|
-
return
|
|
60730
|
-
}
|
|
60731
|
-
function* M(e2, r2, c2) {
|
|
60732
|
-
if (r2 === e2.length) return yield c2;
|
|
60733
|
-
let d2 = e2[r2];
|
|
60734
|
-
if (d2.type === "group") for (let f2 of M(d2.tokens, 0, c2.slice())) yield* M(e2, r2 + 1, f2);
|
|
60735
|
-
else c2.push(d2);
|
|
60736
|
-
yield* M(e2, r2 + 1, c2);
|
|
60767
|
+
e2.key && r2.push(e2.key);
|
|
60768
|
+
let c2 = Object.keys(e2.children), d2 = c2.map((c3) => O(e2.children[c3], r2)).join("|");
|
|
60769
|
+
return e2.source + (c2.length < 2 ? d2 : `(?:${d2})`);
|
|
60737
60770
|
}
|
|
60771
|
+
var M = class e2 {
|
|
60772
|
+
constructor(e3, r2) {
|
|
60773
|
+
this.source = e3, this.key = r2, this.children = /* @__PURE__ */ Object.create(null);
|
|
60774
|
+
}
|
|
60775
|
+
add(r2, c2) {
|
|
60776
|
+
var d2;
|
|
60777
|
+
let f2 = r2 + ":" + (c2 ? c2.name : "");
|
|
60778
|
+
return (d2 = this.children)[f2] || (d2[f2] = new e2(r2, c2));
|
|
60779
|
+
}
|
|
60780
|
+
};
|
|
60738
60781
|
function I(e2, r2, c2, d2) {
|
|
60739
|
-
|
|
60740
|
-
|
|
60741
|
-
if (
|
|
60742
|
-
f2
|
|
60782
|
+
for (; r2 < e2.length; ) {
|
|
60783
|
+
let f2 = e2[r2++];
|
|
60784
|
+
if (f2.type === "group") {
|
|
60785
|
+
I(f2.tokens, 0, c2.slice(), (c3) => I(e2, r2, c3, d2));
|
|
60786
|
+
continue;
|
|
60787
|
+
}
|
|
60788
|
+
c2.push(f2);
|
|
60789
|
+
}
|
|
60790
|
+
d2(c2);
|
|
60791
|
+
}
|
|
60792
|
+
function z(e2, r2, c2) {
|
|
60793
|
+
let d2 = [], f2 = "", h2 = "", v2 = 0, S2 = 0, w2 = 0;
|
|
60794
|
+
function E2(c3, d3) {
|
|
60795
|
+
for (; c3 < e2.length; ) {
|
|
60796
|
+
let f3 = e2[c3++];
|
|
60797
|
+
if (f3.type === d3) return true;
|
|
60798
|
+
if (f3.type === "text" && f3.value.includes(r2)) break;
|
|
60799
|
+
}
|
|
60800
|
+
return false;
|
|
60801
|
+
}
|
|
60802
|
+
function O2(r3) {
|
|
60803
|
+
let c3 = "";
|
|
60804
|
+
for (; r3 < e2.length; ) {
|
|
60805
|
+
let d3 = e2[r3++];
|
|
60806
|
+
if (d3.type !== "text") break;
|
|
60807
|
+
c3 += d3.value;
|
|
60808
|
+
}
|
|
60809
|
+
return c3;
|
|
60810
|
+
}
|
|
60811
|
+
for (; w2 < e2.length; ) {
|
|
60812
|
+
let M2 = e2[w2++];
|
|
60813
|
+
if (M2.type === "text") {
|
|
60814
|
+
d2.push({
|
|
60815
|
+
source: _(M2.value)
|
|
60816
|
+
}), f2 += M2.value, v2 === 2 && (h2 += M2.value), M2.value.includes(r2) && (S2 = 0);
|
|
60743
60817
|
continue;
|
|
60744
60818
|
}
|
|
60745
|
-
if (
|
|
60746
|
-
if (
|
|
60747
|
-
|
|
60819
|
+
if (M2.type === "param" || M2.type === "wildcard") {
|
|
60820
|
+
if (v2 && !f2) throw new y(`Missing text before "${M2.name}" ${M2.type}`, c2);
|
|
60821
|
+
M2.type === "param" ? (d2.push({
|
|
60822
|
+
source: S2 ? `(${G(r2, f2)}+?)` : E2(w2, "wildcard") ? `(${G(r2, O2(w2))}+?)` : `(${G(r2, "")}+?)`,
|
|
60823
|
+
key: M2
|
|
60824
|
+
}), S2 |= v2 = 1) : (d2.push({
|
|
60825
|
+
source: S2 & 2 ? `(${G(f2, "")}+?)` : S2 & 1 ? `(${G(h2, "")}+?)` : h2 ? `(${G(h2, "")}+?|${G(r2, "")}+?)` : "([^]+?)",
|
|
60826
|
+
key: M2
|
|
60827
|
+
}), h2 = "", S2 |= v2 = 2), f2 = "";
|
|
60748
60828
|
continue;
|
|
60749
60829
|
}
|
|
60830
|
+
throw TypeError(`Unknown token type: ${M2.type}`);
|
|
60750
60831
|
}
|
|
60751
|
-
return
|
|
60832
|
+
return d2;
|
|
60752
60833
|
}
|
|
60753
|
-
function
|
|
60754
|
-
return r2.length
|
|
60834
|
+
function G(e2, r2) {
|
|
60835
|
+
return r2.length > e2.length ? G(r2, e2) : (e2 === r2 && (r2 = ""), r2.length > 1 ? `(?:(?!${_(e2)}|${_(r2)})[^])` : e2.length > 1 ? `(?:(?!${_(e2)})[^${_(r2)}])` : `[^${_(e2 + r2)}]`);
|
|
60755
60836
|
}
|
|
60756
60837
|
}))(), TinyRouter = class {
|
|
60757
60838
|
constructor(e) {
|
|
@@ -65346,24 +65427,24 @@ ${c}
|
|
|
65346
65427
|
value: v,
|
|
65347
65428
|
setValue: y
|
|
65348
65429
|
}, r[0] = v, r[1] = S);
|
|
65349
|
-
let w = useInputHistory(S), { consoleOutputs: E, stale: O, cellName: M, cellId: I, onSubmitDebugger: z, onClear: G, onRefactorWithAI: q, className:
|
|
65350
|
-
if (r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
65430
|
+
let w = useInputHistory(S), { consoleOutputs: E, stale: O, cellName: M, cellId: I, onSubmitDebugger: z, onClear: G, onRefactorWithAI: q, className: Q7 } = e, $7 = useDebouncedConsoleOutputs(E), e9 = $7.length > 0, t9 = useSelectAllContent(e9), n9 = useOverflowDetection(c, e9), r9;
|
|
65431
|
+
if (r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r9 = () => {
|
|
65351
65432
|
let e2 = c.current;
|
|
65352
65433
|
if (!e2) return;
|
|
65353
65434
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
65354
65435
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
65355
|
-
}, r[2] =
|
|
65356
|
-
let
|
|
65357
|
-
if (r[3] !== I || r[4] !==
|
|
65358
|
-
let e2 =
|
|
65359
|
-
r[29] ===
|
|
65360
|
-
let
|
|
65361
|
-
|
|
65436
|
+
}, r[2] = r9) : r9 = r[2], (0, import_react.useLayoutEffect)(r9), !e9 && isInternalCellName(M)) return null;
|
|
65437
|
+
let i9, a9, o9, s9, c9, l9, u9, d9, f9, p9;
|
|
65438
|
+
if (r[3] !== I || r[4] !== Q7 || r[5] !== $7 || r[6] !== e9 || r[7] !== w || r[8] !== h || r[9] !== n9 || r[10] !== G || r[11] !== q || r[12] !== z || r[13] !== t9 || r[14] !== _ || r[15] !== f || r[16] !== O || r[17] !== v || r[18] !== d) {
|
|
65439
|
+
let e2 = $7.toReversed(), S2 = e2.some(_temp$2), E2 = e2.findIndex(_temp2$2), M2;
|
|
65440
|
+
r[29] === $7 ? M2 = r[30] : (M2 = () => $7.filter(_temp3$1).map(_temp4$1).join("\n"), r[29] = $7, r[30] = M2);
|
|
65441
|
+
let Z7 = M2;
|
|
65442
|
+
i9 = "relative group", r[31] !== Z7 || r[32] !== e9 || r[33] !== h || r[34] !== n9 || r[35] !== _ || r[36] !== f || r[37] !== d ? (a9 = e9 && (0, import_jsx_runtime.jsxs)("div", {
|
|
65362
65443
|
className: "absolute top-1 right-4 z-10 opacity-0 group-hover:opacity-100 flex items-center gap-1 print:hidden",
|
|
65363
65444
|
children: [
|
|
65364
65445
|
(0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
|
|
65365
65446
|
tooltip: "Copy console output",
|
|
65366
|
-
value:
|
|
65447
|
+
value: Z7,
|
|
65367
65448
|
className: "h-4 w-4"
|
|
65368
65449
|
}),
|
|
65369
65450
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
@@ -65380,7 +65461,7 @@ ${c}
|
|
|
65380
65461
|
})
|
|
65381
65462
|
})
|
|
65382
65463
|
}),
|
|
65383
|
-
(
|
|
65464
|
+
(n9 || h) && (0, import_jsx_runtime.jsx)(Button, {
|
|
65384
65465
|
"aria-label": h ? "Collapse output" : "Expand output",
|
|
65385
65466
|
className: "p-0 mb-px",
|
|
65386
65467
|
onClick: () => _(!h),
|
|
@@ -65399,15 +65480,15 @@ ${c}
|
|
|
65399
65480
|
})
|
|
65400
65481
|
})
|
|
65401
65482
|
]
|
|
65402
|
-
}), r[31] =
|
|
65403
|
-
let
|
|
65404
|
-
r[39] !==
|
|
65483
|
+
}), r[31] = Z7, r[32] = e9, r[33] = h, r[34] = n9, r[35] = _, r[36] = f, r[37] = d, r[38] = a9) : a9 = r[38], o9 = O ? "This console output is stale" : void 0, s9 = "console-output-area", c9 = c, l9 = t9, u9 = 0;
|
|
65484
|
+
let r92 = O && "marimo-output-stale", m92 = e9 ? "p-5" : "p-3";
|
|
65485
|
+
r[39] !== Q7 || r[40] !== r92 || r[41] !== m92 ? (d9 = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", r92, m92, Q7), r[39] = Q7, r[40] = r92, r[41] = m92, r[42] = d9) : d9 = r[42], r[43] === h ? f9 = r[44] : (f9 = h ? {
|
|
65405
65486
|
maxHeight: "none"
|
|
65406
|
-
} : void 0, r[43] = h, r[44] =
|
|
65487
|
+
} : void 0, r[43] = h, r[44] = f9), p9 = e2.map((e3, r2) => {
|
|
65407
65488
|
if (e3.channel === "pdb") return null;
|
|
65408
65489
|
if (e3.channel === "stdin") {
|
|
65409
65490
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
65410
|
-
let c2 =
|
|
65491
|
+
let c2 = $7.length - r2 - 1, d2 = e3.mimetype === "text/password";
|
|
65411
65492
|
return e3.response == null && E2 === r2 ? (0, import_jsx_runtime.jsx)(StdInput, {
|
|
65412
65493
|
output: e3.data,
|
|
65413
65494
|
isPdb: S2,
|
|
@@ -65431,36 +65512,36 @@ ${c}
|
|
|
65431
65512
|
wrapText: d
|
|
65432
65513
|
})
|
|
65433
65514
|
}, r2);
|
|
65434
|
-
}), r[3] = I, r[4] =
|
|
65435
|
-
} else
|
|
65436
|
-
let
|
|
65437
|
-
r[45] !== I || r[46] !== M ? (
|
|
65515
|
+
}), r[3] = I, r[4] = Q7, r[5] = $7, r[6] = e9, r[7] = w, r[8] = h, r[9] = n9, r[10] = G, r[11] = q, r[12] = z, r[13] = t9, r[14] = _, r[15] = f, r[16] = O, r[17] = v, r[18] = d, r[19] = i9, r[20] = a9, r[21] = o9, r[22] = s9, r[23] = c9, r[24] = l9, r[25] = u9, r[26] = d9, r[27] = f9, r[28] = p9;
|
|
65516
|
+
} else i9 = r[19], a9 = r[20], o9 = r[21], s9 = r[22], c9 = r[23], l9 = r[24], u9 = r[25], d9 = r[26], f9 = r[27], p9 = r[28];
|
|
65517
|
+
let m9;
|
|
65518
|
+
r[45] !== I || r[46] !== M ? (m9 = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
65438
65519
|
value: M,
|
|
65439
65520
|
cellId: I,
|
|
65440
65521
|
className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
|
|
65441
|
-
}), r[45] = I, r[46] = M, r[47] =
|
|
65442
|
-
let m9;
|
|
65443
|
-
r[48] !== p9 || r[49] !== a9 || r[50] !== o9 || r[51] !== s9 || r[52] !== c9 || r[53] !== l9 || r[54] !== u9 || r[55] !== d9 || r[56] !== f9 ? (m9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
65444
|
-
title: a9,
|
|
65445
|
-
"data-testid": o9,
|
|
65446
|
-
ref: s9,
|
|
65447
|
-
...c9,
|
|
65448
|
-
tabIndex: l9,
|
|
65449
|
-
className: u9,
|
|
65450
|
-
style: d9,
|
|
65451
|
-
children: [
|
|
65452
|
-
f9,
|
|
65453
|
-
p9
|
|
65454
|
-
]
|
|
65455
|
-
}), r[48] = p9, r[49] = a9, r[50] = o9, r[51] = s9, r[52] = c9, r[53] = l9, r[54] = u9, r[55] = d9, r[56] = f9, r[57] = m9) : m9 = r[57];
|
|
65522
|
+
}), r[45] = I, r[46] = M, r[47] = m9) : m9 = r[47];
|
|
65456
65523
|
let h9;
|
|
65457
|
-
|
|
65458
|
-
|
|
65524
|
+
r[48] !== m9 || r[49] !== o9 || r[50] !== s9 || r[51] !== c9 || r[52] !== l9 || r[53] !== u9 || r[54] !== d9 || r[55] !== f9 || r[56] !== p9 ? (h9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
65525
|
+
title: o9,
|
|
65526
|
+
"data-testid": s9,
|
|
65527
|
+
ref: c9,
|
|
65528
|
+
...l9,
|
|
65529
|
+
tabIndex: u9,
|
|
65530
|
+
className: d9,
|
|
65531
|
+
style: f9,
|
|
65459
65532
|
children: [
|
|
65460
|
-
|
|
65533
|
+
p9,
|
|
65461
65534
|
m9
|
|
65462
65535
|
]
|
|
65463
|
-
}), r[
|
|
65536
|
+
}), r[48] = m9, r[49] = o9, r[50] = s9, r[51] = c9, r[52] = l9, r[53] = u9, r[54] = d9, r[55] = f9, r[56] = p9, r[57] = h9) : h9 = r[57];
|
|
65537
|
+
let g9;
|
|
65538
|
+
return r[58] !== i9 || r[59] !== a9 || r[60] !== h9 ? (g9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
65539
|
+
className: i9,
|
|
65540
|
+
children: [
|
|
65541
|
+
a9,
|
|
65542
|
+
h9
|
|
65543
|
+
]
|
|
65544
|
+
}), r[58] = i9, r[59] = a9, r[60] = h9, r[61] = g9) : g9 = r[61], g9;
|
|
65464
65545
|
}, StdInput = (e) => {
|
|
65465
65546
|
let r = (0, import_compiler_runtime$4.c)(25), { value: c, setValue: d, inputHistory: f, output: h, isPassword: _, isPdb: v, onSubmit: y, onClear: S } = e, { navigateUp: w, navigateDown: E, addToHistory: O } = f, M;
|
|
65466
65547
|
r[0] === h ? M = r[1] : (M = renderText(h), r[0] = h, r[1] = M);
|
|
@@ -65552,7 +65633,7 @@ ${c}
|
|
|
65552
65633
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
65553
65634
|
}
|
|
65554
65635
|
}
|
|
65555
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.22.5-
|
|
65636
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.22.5-dev14"), showCodeInRunModeAtom = atom(true);
|
|
65556
65637
|
atom(null);
|
|
65557
65638
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
65558
65639
|
constructor() {
|
|
@@ -65868,9 +65949,9 @@ ${c}
|
|
|
65868
65949
|
runStartTimestamp: O,
|
|
65869
65950
|
staleInputs: E
|
|
65870
65951
|
}, false), r[0] = w, r[1] = c, r[2] = O, r[3] = E, r[4] = _, r[5] = $7) : $7 = r[5];
|
|
65871
|
-
let
|
|
65872
|
-
r[6] === _ ?
|
|
65873
|
-
let r9 =
|
|
65952
|
+
let t9 = $7, n9;
|
|
65953
|
+
r[6] === _ ? n9 = r[7] : (n9 = outputIsLoading(_), r[6] = _, r[7] = n9);
|
|
65954
|
+
let r9 = n9, i9 = q && z !== "present", a9;
|
|
65874
65955
|
if (r[8] !== M || r[9] !== y || r[10] !== i9 || r[11] !== I || r[12] !== v) {
|
|
65875
65956
|
let e2 = new MarkdownLanguageAdapter().isSupported(M), c2 = !I && !i9;
|
|
65876
65957
|
a9 = cn("marimo-cell", "hover-actions-parent empty:invisible", {
|
|
@@ -65883,14 +65964,14 @@ ${c}
|
|
|
65883
65964
|
let o9 = a9;
|
|
65884
65965
|
if (z === "read" && I || i9) {
|
|
65885
65966
|
let e2;
|
|
65886
|
-
r[14] !== h || r[15] !== r9 || r[16] !== c || r[17] !==
|
|
65967
|
+
r[14] !== h || r[15] !== r9 || r[16] !== c || r[17] !== t9 ? (e2 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
65887
65968
|
allowExpand: true,
|
|
65888
65969
|
output: c,
|
|
65889
65970
|
className: CSSClasses.outputArea,
|
|
65890
65971
|
cellId: h,
|
|
65891
|
-
stale:
|
|
65972
|
+
stale: t9,
|
|
65892
65973
|
loading: r9
|
|
65893
|
-
}), r[14] = h, r[15] = r9, r[16] = c, r[17] =
|
|
65974
|
+
}), r[14] = h, r[15] = r9, r[16] = c, r[17] = t9, r[18] = e2) : e2 = r[18];
|
|
65894
65975
|
let _2 = e2, v2;
|
|
65895
65976
|
r[19] !== M || r[20] !== c ? (v2 = shouldHideCode(M, c), r[19] = M, r[20] = c, r[21] = v2) : v2 = r[21];
|
|
65896
65977
|
let y2 = v2, w2;
|
|
@@ -65904,14 +65985,14 @@ ${c}
|
|
|
65904
65985
|
})
|
|
65905
65986
|
}), r[25] = M, r[26] = S, r[27] = y2, r[28] = q, r[29] = O2) : O2 = r[29];
|
|
65906
65987
|
let I2 = f === "below" && _2, z2;
|
|
65907
|
-
r[30] !== h || r[31] !== d || r[32] !== G || r[33] !==
|
|
65988
|
+
r[30] !== h || r[31] !== d || r[32] !== G || r[33] !== t9 ? (z2 = (0, import_jsx_runtime.jsx)(ConsoleOutput, {
|
|
65908
65989
|
consoleOutputs: d,
|
|
65909
|
-
stale:
|
|
65990
|
+
stale: t9,
|
|
65910
65991
|
cellName: G,
|
|
65911
65992
|
onSubmitDebugger: _temp5,
|
|
65912
65993
|
cellId: h,
|
|
65913
65994
|
debuggerActive: false
|
|
65914
|
-
}), r[30] = h, r[31] = d, r[32] = G, r[33] =
|
|
65995
|
+
}), r[30] = h, r[31] = d, r[32] = G, r[33] = t9, r[34] = z2) : z2 = r[34];
|
|
65915
65996
|
let Z72;
|
|
65916
65997
|
return r[35] !== o9 || r[36] !== z2 || r[37] !== w2 || r[38] !== E2 || r[39] !== O2 || r[40] !== I2 ? (Z72 = (0, import_jsx_runtime.jsxs)("div", {
|
|
65917
65998
|
tabIndex: -1,
|
|
@@ -65931,14 +66012,14 @@ ${c}
|
|
|
65931
66012
|
let l9;
|
|
65932
66013
|
r[42] !== h || r[43] !== G ? (l9 = cellDomProps(h, G), r[42] = h, r[43] = G, r[44] = l9) : l9 = r[44];
|
|
65933
66014
|
let u9 = z === "edit", d9;
|
|
65934
|
-
r[45] !== h || r[46] !== r9 || r[47] !== c || r[48] !==
|
|
66015
|
+
r[45] !== h || r[46] !== r9 || r[47] !== c || r[48] !== t9 || r[49] !== u9 ? (d9 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
65935
66016
|
allowExpand: u9,
|
|
65936
66017
|
output: c,
|
|
65937
66018
|
className: CSSClasses.outputArea,
|
|
65938
66019
|
cellId: h,
|
|
65939
|
-
stale:
|
|
66020
|
+
stale: t9,
|
|
65940
66021
|
loading: r9
|
|
65941
|
-
}), r[45] = h, r[46] = r9, r[47] = c, r[48] =
|
|
66022
|
+
}), r[45] = h, r[46] = r9, r[47] = c, r[48] = t9, r[49] = u9, r[50] = d9) : d9 = r[50];
|
|
65942
66023
|
let f9;
|
|
65943
66024
|
return r[51] !== o9 || r[52] !== l9 || r[53] !== d9 ? (f9 = (0, import_jsx_runtime.jsx)("div", {
|
|
65944
66025
|
tabIndex: -1,
|