@marimo-team/islands 0.19.8-dev3 → 0.19.8-dev31
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/{Combination-Bg-xN8JV.js → Combination-BTMrlhzT.js} +11 -10
- package/dist/{ConnectedDataExplorerComponent-DewsKLl2.js → ConnectedDataExplorerComponent-BAeQ8DWw.js} +11 -11
- package/dist/{ImageComparisonComponent-Bijp8beW.js → ImageComparisonComponent-DkEXPki_.js} +2 -2
- package/dist/{any-language-editor-DZc6NCTp.js → any-language-editor-D0UQItkS.js} +6 -6
- package/dist/{architectureDiagram-VXUJARFQ--NkyBn9Y.js → architectureDiagram-VXUJARFQ-DPPYVq8H.js} +4 -4
- package/dist/assets/__vite-browser-external-6-UwTyQC.js +1 -0
- package/dist/assets/{worker-SqntmiwV.js → worker-D3e5wDxM.js} +4 -4
- package/dist/{blockDiagram-VD42YOAC-DEZZaTW0.js → blockDiagram-VD42YOAC-BA5N05Y9.js} +4 -4
- package/dist/{button-BWvsJ2Wr.js → button-Cy0ElmIm.js} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-Bj7hwWCO.js → c4Diagram-YG6GDRKO-DJLzuGJJ.js} +3 -3
- package/dist/{channel-B_QrFrGg.js → channel-Dob5kWXR.js} +1 -1
- package/dist/{check-CM_kewwn.js → check-DkNR52Mm.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-D5VFKHmt.js → chunk-5FQGJX7Z-BEb20Lzt.js} +3 -3
- package/dist/{chunk-ABZYJK2D-SZPYmRzN.js → chunk-ABZYJK2D-BXTC53mt.js} +1 -1
- package/dist/{chunk-ATLVNIR6-BI_WwH1o.js → chunk-ATLVNIR6-BJDjUR_c.js} +1 -1
- package/dist/{chunk-B4BG7PRW-BlI9Gm1l.js → chunk-B4BG7PRW-DzmUUpfH.js} +4 -4
- package/dist/{chunk-DI55MBZ5-BXxemMn5.js → chunk-DI55MBZ5-gTd3J8Tu.js} +4 -4
- package/dist/{chunk-EXTU4WIE-CzWtDV99.js → chunk-EXTU4WIE-DyoOs5QX.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-DQ-2ARfa.js → chunk-JA3XYJ7Z-BGnAIbOP.js} +2 -2
- package/dist/{chunk-JZLCHNYA-CVfjf2vv.js → chunk-JZLCHNYA-CIRgweVQ.js} +4 -4
- package/dist/{chunk-N4CR4FBY-BCZvQ7Jq.js → chunk-N4CR4FBY-DKSvXAIS.js} +5 -5
- package/dist/{chunk-QN33PNHL-DY_2Q2zl.js → chunk-QN33PNHL-B6zC8BTi.js} +1 -1
- package/dist/{chunk-QXUST7PY-BMCjAVR_.js → chunk-QXUST7PY-C7750n_u.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-Ddu0H4Qa.js → chunk-S3R3BYOJ-CBkH6JZZ.js} +1 -1
- package/dist/{chunk-TZMSLE5B-C2wVlbMl.js → chunk-TZMSLE5B-DObGL7xi.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-D-g7zbyO.js → classDiagram-2ON5EDUG-B9pkKjjc.js} +9 -9
- package/dist/{classDiagram-v2-WZHVMYZB-C7v5zNRD.js → classDiagram-v2-WZHVMYZB-CRhhA0tV.js} +9 -9
- package/dist/{click-outside-container-BCN5BtVO.js → click-outside-container-DNfggvIW.js} +1 -1
- package/dist/{code-block-37QAKDTI-eUgXqGNG.js → code-block-37QAKDTI-u5kgjqmr.js} +2 -2
- package/dist/{compiler-runtime-DHFVbq0b.js → compiler-runtime-B_OLMU9S.js} +1 -1
- package/dist/{copy-B59Bw3-w.js → copy-DRaXIb_a.js} +3 -3
- package/dist/{dagre-6UL2VRFP-DKIPL74O.js → dagre-6UL2VRFP-C2C2XxsB.js} +6 -6
- package/dist/{data-grid-overlay-editor-COyFwFmE.js → data-grid-overlay-editor-BXqtz1ia.js} +4 -4
- package/dist/{diagram-PSM6KHXK-CVTrAZaP.js → diagram-PSM6KHXK-DHBY-94p.js} +5 -5
- package/dist/{diagram-QEK2KX5R-BqHBzu3x.js → diagram-QEK2KX5R-CgMshOwn.js} +3 -3
- package/dist/{diagram-S2PKOQOG-CJD6owcg.js → diagram-S2PKOQOG-F1KPva3Y.js} +3 -3
- package/dist/{dist-Co5PD8Fb.js → dist-BBYTEAvO.js} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-CqOceSf9.js → erDiagram-Q2GNP2WA-18gGng8V.js} +9 -9
- package/dist/{error-banner-C7KLpECd.js → error-banner-D2zjeN_a.js} +5 -5
- package/dist/{esm-D4WO8J3G.js → esm-CgRNPmz8.js} +6 -6
- package/dist/{flowDiagram-NV44I4VS-K7-DUifo.js → flowDiagram-NV44I4VS-iHFiHYe0.js} +9 -9
- package/dist/{ganttDiagram-JELNMOA3-BwUFY9Nu.js → ganttDiagram-JELNMOA3-D7GixxiF.js} +2 -2
- package/dist/{gitGraphDiagram-NY62KEGX-CjGRtLb1.js → gitGraphDiagram-NY62KEGX-CJFHytRK.js} +2 -2
- package/dist/{glide-data-editor-C3T7HsLi.js → glide-data-editor-BYwb17Bf.js} +13 -13
- package/dist/{infoDiagram-WHAUD3N6-DNhmDn-6.js → infoDiagram-WHAUD3N6-B5Lkh3A9.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-BOdK47P8.js → journeyDiagram-XKPGCS4Q-CV_9R9iP.js} +2 -2
- package/dist/{kanban-definition-3W4ZIXB7-A0JC9d0g.js → kanban-definition-3W4ZIXB7-Dp21D5Ym.js} +6 -6
- package/dist/{katex-DJyOeQ91.js → katex-CX2BKujk.js} +1 -1
- package/dist/{katex-Dm9nZf6A.js → katex-Db0k5oV_.js} +1 -1
- package/dist/{label-C4PtQcza.js → label-CxU5JNBW.js} +6 -6
- package/dist/main.js +282 -193
- package/dist/mermaid-4DMBBIKO-BhDCqnO1.js +6 -0
- package/dist/{mermaid-Bqp2Xw99.js → mermaid-B__BZSXU.js} +39 -39
- package/dist/{mhchem-BqdXeZVX.js → mhchem-w1tkUnWr.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-CS6nKN_L.js → mindmap-definition-VGOIOE7T-B_5mfdYp.js} +8 -8
- package/dist/{number-overlay-editor-Bz_bDJQb.js → number-overlay-editor-D-4WQAGX.js} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-DSa60Grk.js → pieDiagram-ADFJNKIX-B-DGEopK.js} +3 -3
- package/dist/{quadrantDiagram-AYHSOK5B-CFnMbP2J.js → quadrantDiagram-AYHSOK5B-M_yRSIZn.js} +1 -1
- package/dist/{react-DdA8EBol.js → react-Bs6Z0kvn.js} +1 -1
- package/dist/{react-dom-DJW8xUDg.js → react-dom-CqtLRVZP.js} +2 -2
- package/dist/{react-plotly-jVjTu07w.js → react-plotly-BuRa9xtI.js} +1 -1
- package/dist/{react-vega-DgHpnZ04.js → react-vega-3WcLHYC7.js} +2 -2
- package/dist/{react-vega-CjiPWyw0.js → react-vega-DLFvGrpJ.js} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-ytLQrFTk.js → requirementDiagram-UZGBJVZJ-9Wt82hOZ.js} +8 -8
- package/dist/{sankeyDiagram-TZEHDZUN-KQqXDoky.js → sankeyDiagram-TZEHDZUN-x_aTXZeN.js} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-ByLI04T5.js → sequenceDiagram-WL72ISMW-CXXmJqiQ.js} +3 -3
- package/dist/{slides-component-BVjvNo92.js → slides-component-Dp-y50K9.js} +4 -4
- package/dist/{spec-Dmb1KfK3.js → spec-HoYHAQo2.js} +6 -6
- package/dist/{stateDiagram-FKZM4ZOC-Dfz8vBbP.js → stateDiagram-FKZM4ZOC-CiSKS_Mx.js} +9 -9
- package/dist/{stateDiagram-v2-4FDKWEC3-DRYoLdT5.js → stateDiagram-v2-4FDKWEC3-A43Itnjp.js} +9 -9
- package/dist/style.css +1 -1
- package/dist/{timeline-definition-IT6M3QCI-CO48XU1B.js → timeline-definition-IT6M3QCI-DR26eWb4.js} +1 -1
- package/dist/{types-CzEZ3EWT.js → types-Bb-6p8hv.js} +8 -8
- package/dist/{useAsyncData-BjNwqCfS.js → useAsyncData-Dyq3DyOF.js} +3 -3
- package/dist/{useDeepCompareMemoize-CfoxVor3.js → useDeepCompareMemoize-CMGprt3H.js} +5 -5
- package/dist/{useIframeCapabilities-BBO_R0ww.js → useIframeCapabilities-DurI5SJh.js} +2 -2
- package/dist/{useTheme-BYG2SH8J.js → useTheme-SlKl8MlS.js} +5 -6
- package/dist/{vega-component-rDX7xwxH.js → vega-component-DU3aSp4m.js} +10 -10
- package/dist/{xychartDiagram-PRI3JC2R-CUIfjNVD.js → xychartDiagram-PRI3JC2R-BcVxCRox.js} +4 -4
- package/dist/{zod-DITCj31F.js → zod-bjADtMKr.js} +3 -3
- package/package.json +18 -18
- package/src/components/app-config/ai-config.tsx +11 -2
- package/src/components/app-config/user-config-form.tsx +0 -54
- package/src/components/chat/acp/__tests__/state.test.ts +69 -0
- package/src/components/chat/acp/state.ts +6 -6
- package/src/components/chat/chat-panel.tsx +47 -30
- package/src/components/data-table/__tests__/data-table.test.tsx +94 -2
- package/src/components/editor/actions/useCellActionButton.tsx +14 -1
- package/src/components/editor/cell/CreateCellButton.tsx +2 -1
- package/src/components/editor/cell/code/cell-editor.tsx +12 -0
- package/src/components/editor/renderers/cell-array.tsx +2 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -0
- package/src/components/pages/gallery-page.tsx +37 -6
- package/src/core/MarimoApp.tsx +12 -8
- package/src/core/ai/context/providers/file.ts +1 -1
- package/src/core/cells/__tests__/cells.test.ts +120 -0
- package/src/core/cells/cells.ts +14 -0
- package/src/core/codemirror/language/languages/markdown.ts +7 -0
- package/src/core/config/feature-flag.tsx +0 -4
- package/src/core/islands/__tests__/bridge.test.ts +241 -0
- package/src/core/islands/bridge.ts +22 -6
- package/src/core/run-app.tsx +11 -4
- package/src/core/static/__tests__/files.test.ts +195 -1
- package/src/core/static/files.ts +39 -9
- package/src/plugins/core/registerReactComponent.tsx +9 -1
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +164 -0
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +7 -1
- package/src/utils/__tests__/blob.test.ts +3 -3
- package/src/utils/__tests__/mime-types.test.ts +8 -10
- package/src/utils/__tests__/url-parser.test.ts +22 -0
- package/src/utils/blob.ts +14 -27
- package/src/utils/mime-types.ts +5 -5
- package/src/utils/url-parser.ts +1 -1
- package/dist/assets/__vite-browser-external-DRa9CT_O.js +0 -1
- package/dist/mermaid-4DMBBIKO-o3xNphpD.js +0 -6
package/dist/main.js
CHANGED
|
@@ -2,25 +2,25 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { a as __toCommonJS, n as __esmMin, o as __toDynamicImportESM, r as __export$1, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
5
|
-
import { t as require_react } from "./react-
|
|
6
|
-
import { t as require_compiler_runtime } from "./compiler-runtime-
|
|
7
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
8
|
-
import { _ as require_cjs$1, c as markdownLineEnding, d as SKIP, f as visitParents, g as s$2, h as h$1, l as longestStreak, m as webNamespaces, o as xn$1, p as convert$1, s as factorySpace, u as ok, __tla as __tla_0 } from "./chunk-5FQGJX7Z-
|
|
9
|
-
import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive, M as composeEventHandlers$1, N as createLucideIcon, O as createSlot, S as useId$12, T as useCallbackRef, _ as Arrow, a as __awaiter, b as createPopperScope, c as withSmartCollisionBoundary, d as Root$5, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, l as isInVscodeExtension, m as Presence, n as hideOthers, o as MAX_HEIGHT_OFFSET, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content$3, w as DismissableLayer, x as useSize, y as Root2$6 } from "./Combination-
|
|
10
|
-
import { A as useOnMount, B as Table$1, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, G as ChartColumn, H as ListFilter, I as $fb18d541ea1ad717$export$ad991b66133851cf, K as Calendar, L as $5a387cc49350e6db$export$722debc0e56fea39, M as Badge, N as createReducerAndAtoms, O as TIME_UNIT_DESCRIPTIONS, P as startCase_default, R as Type, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as Hash, V as SquareFunction, W as ChartPie, _ 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 useOnUnmount, 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, z as ToggleLeft } from "./spec-
|
|
11
|
-
import { t as Check } from "./check-
|
|
12
|
-
import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, D as assertNever, E as usePrevious$1, I as X, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, N as $18f2051aff69b9bf$export$a54013f0d02a8f82, O as logNever, P as $b5e257d569688ac6$export$535bd6ca7f90a273, R as ChevronDown, S as Trigger$5, T as clamp$2, _ as menuItemVariants, a as SelectGroup, b as menuSubTriggerVariants, c as SelectSeparator, d as NativeSelect, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as Primitive$1, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, s as SelectLabel, t as Label, u as SelectValue, v as menuLabelVariants, w as createCollection, x as Icon, y as menuSeparatorVariants } from "./label-
|
|
13
|
-
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, A as ItemIndicator, At as $6db58dc88e78b024$export$2f817fcdc4b89ae0, B as createMenuScope, Bt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, C as DropdownMenuTrigger, Ct as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, D as Content2$3, Dt as $6c7bd7858deea686$export$cd11ab140839f11d, E as CheckboxItem, Et as $701a24aa0da5b062$export$ea18c227d4417cc3, F as Root3, Ft as $507fabe10e71c6fb$export$630ff653c5ada6a9, G as $3985021b0ad6602f$export$37fb8590cf2c088c, Gt as $df56164dff5785e2$export$4338b53315abf666, H as Root$6, Ht as $b4b717babfbb907b$export$bebd5a1431fec25d, I as Separator, It as $f6c31cce2adf654f$export$45712eceda6fad21, J as $a049562f99e7db0e$export$f9c6924e160136d1, Jt as $c87311424ea30a05$export$78551043582a6a98, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $313b98861ee5dd6c$export$d6875122194c7b44, L as Sub, Lt as _class_private_field_init, M as Portal$2, Mt as $6179b936705e76d3$export$ae780daf29e6d456, N as RadioGroup$2, Nt as $9ab94262bd0047c7$export$420e68273165f4ec, O as Group$1, Ot as $fca6afa0e843324b$export$87b761675e8eaa10, P as RadioItem, Pt as $3ad3f6e1647bc98d$export$80f3e147d781571c, Q as $514c0188e459b4c0$export$5f1af8db9871e1d6, Qt as $7215afc6de606d6b$export$de79e2c695e052f3, R as SubContent, Rt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, S as DropdownMenuSubTrigger, St as $e5be200c675c3b3a$export$dad6ae84456c676a, T as Arrow2, Tt as $f7dceffc5ad7768b$export$4e328f61c538687f, U as createRovingFocusGroupScope, Ut as $99facab73266f662$export$5add1d006293d136, V as Item$2, Vt as $b4b717babfbb907b$export$4c063cf1350e6fed, W as ErrorBoundary, Wt as $e9faafb641e167db$export$90fc3a17d93f704c, X as $ee014567cb39d3f0$export$f551688fc98f2e09, Xt as $c87311424ea30a05$export$a11b0059900ceec8, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$9ac100e40613ea10, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$fedb369cb70207f1, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $431fbd86ca7dc216$export$b204af158042fbac, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $3ef42575df84b30b$export$9d1611c77c2fe928, et as $d2b4bc8c273e7be6$export$24d547caef80ccd1, f as prettyScientificNumber, fn as Trash, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuItem, gn as Circle, gt as $d2e8511e6f209edf$export$e908e06f4b8e3402, h as DropdownMenuGroup, hn as Pencil, ht as capitalize_default, i as Input, in as $f4e2df6bd15f8569$export$98658e8c59125e6a, it as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, j as Label$2, jt as $5b160d28a433310d$export$c17fa47878dc55b6, k as Item2$2, kt as $fca6afa0e843324b$export$f12b703ca79dfbb1, l as maxFractionalDigits, ln as $bdb11010cef70236$export$f680877a34711e37, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$cd4e5573fbe2b576, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$f21a1ffae260145a, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $c87311424ea30a05$export$6446a186d09e379e, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$e58f029f0fbfdb29, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $ff5963eb1fccf552$export$e08e3b67e392101e, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $d4ee10de306f2510$export$4282f70798064fe0, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $8ae05eaa5c114e9c$export$7f54fc3180508a52, ut as $64fa3d84918910a7$export$c62b8e45d58ddad9, v as DropdownMenuPortal, vt as $e93e671b31057976$export$b8473d3665f3a75a, w as Anchor2, wt as $319e236875307eab$export$a9b970dcc4ae71a9, x as DropdownMenuSubContent, xt as $e5be200c675c3b3a$export$aca958c65c314e6c, y as DropdownMenuSeparator, yt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, z as SubTrigger, zt as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./types-
|
|
14
|
-
import { S as CircleQuestionMark, _ as isUrl, a as AlertTitle, b as Deferred, c as constructFrom, d as millisecondsInMinute, f as millisecondsInSecond, g as appendQueryParams, h as getRuntimeManager, i as AlertDescription, l as millisecondsInDay, m as asRemoteURL, n as arrow, o as isValid$1, p as millisecondsInWeek, r as Alert, s as toDate, t as useDeepCompareMemoize, u as millisecondsInHour, v as require_cuid2, x as isWasm, y as waitForConnectionOpen } from "./useDeepCompareMemoize-
|
|
5
|
+
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
6
|
+
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
7
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DRaXIb_a.js";
|
|
8
|
+
import { _ as require_cjs$1, c as markdownLineEnding, d as SKIP, f as visitParents, g as s$2, h as h$1, l as longestStreak, m as webNamespaces, o as xn$1, p as convert$1, s as factorySpace, u as ok, __tla as __tla_0 } from "./chunk-5FQGJX7Z-BEb20Lzt.js";
|
|
9
|
+
import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive, M as composeEventHandlers$1, N as createLucideIcon, O as createSlot, S as useId$12, T as useCallbackRef, _ as Arrow, a as __awaiter, b as createPopperScope, c as withSmartCollisionBoundary, d as Root$5, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, l as isInVscodeExtension, m as Presence, n as hideOthers, o as MAX_HEIGHT_OFFSET, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content$3, w as DismissableLayer, x as useSize, y as Root2$6 } from "./Combination-BTMrlhzT.js";
|
|
10
|
+
import { A as useOnMount, B as Table$1, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, G as ChartColumn, H as ListFilter, I as $fb18d541ea1ad717$export$ad991b66133851cf, K as Calendar, L as $5a387cc49350e6db$export$722debc0e56fea39, M as Badge, N as createReducerAndAtoms, O as TIME_UNIT_DESCRIPTIONS, P as startCase_default, R as Type, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as Hash, V as SquareFunction, W as ChartPie, _ 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 useOnUnmount, 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, z as ToggleLeft } from "./spec-HoYHAQo2.js";
|
|
11
|
+
import { t as Check } from "./check-DkNR52Mm.js";
|
|
12
|
+
import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, D as assertNever, E as usePrevious$1, I as X, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, N as $18f2051aff69b9bf$export$a54013f0d02a8f82, O as logNever, P as $b5e257d569688ac6$export$535bd6ca7f90a273, R as ChevronDown, S as Trigger$5, T as clamp$2, _ as menuItemVariants, a as SelectGroup, b as menuSubTriggerVariants, c as SelectSeparator, d as NativeSelect, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, n as Primitive$1, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, s as SelectLabel, t as Label, u as SelectValue, v as menuLabelVariants, w as createCollection, x as Icon, y as menuSeparatorVariants } from "./label-CxU5JNBW.js";
|
|
13
|
+
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, A as ItemIndicator, At as $6db58dc88e78b024$export$2f817fcdc4b89ae0, B as createMenuScope, Bt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, C as DropdownMenuTrigger, Ct as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, D as Content2$3, Dt as $6c7bd7858deea686$export$cd11ab140839f11d, E as CheckboxItem, Et as $701a24aa0da5b062$export$ea18c227d4417cc3, F as Root3, Ft as $507fabe10e71c6fb$export$630ff653c5ada6a9, G as $3985021b0ad6602f$export$37fb8590cf2c088c, Gt as $df56164dff5785e2$export$4338b53315abf666, H as Root$6, Ht as $b4b717babfbb907b$export$bebd5a1431fec25d, I as Separator, It as $f6c31cce2adf654f$export$45712eceda6fad21, J as $a049562f99e7db0e$export$f9c6924e160136d1, Jt as $c87311424ea30a05$export$78551043582a6a98, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $313b98861ee5dd6c$export$d6875122194c7b44, L as Sub, Lt as _class_private_field_init, M as Portal$2, Mt as $6179b936705e76d3$export$ae780daf29e6d456, N as RadioGroup$2, Nt as $9ab94262bd0047c7$export$420e68273165f4ec, O as Group$1, Ot as $fca6afa0e843324b$export$87b761675e8eaa10, P as RadioItem, Pt as $3ad3f6e1647bc98d$export$80f3e147d781571c, Q as $514c0188e459b4c0$export$5f1af8db9871e1d6, Qt as $7215afc6de606d6b$export$de79e2c695e052f3, R as SubContent, Rt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, S as DropdownMenuSubTrigger, St as $e5be200c675c3b3a$export$dad6ae84456c676a, T as Arrow2, Tt as $f7dceffc5ad7768b$export$4e328f61c538687f, U as createRovingFocusGroupScope, Ut as $99facab73266f662$export$5add1d006293d136, V as Item$2, Vt as $b4b717babfbb907b$export$4c063cf1350e6fed, W as ErrorBoundary, Wt as $e9faafb641e167db$export$90fc3a17d93f704c, X as $ee014567cb39d3f0$export$f551688fc98f2e09, Xt as $c87311424ea30a05$export$a11b0059900ceec8, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$9ac100e40613ea10, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$fedb369cb70207f1, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $431fbd86ca7dc216$export$b204af158042fbac, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $3ef42575df84b30b$export$9d1611c77c2fe928, et as $d2b4bc8c273e7be6$export$24d547caef80ccd1, f as prettyScientificNumber, fn as Trash, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuItem, gn as Circle, gt as $d2e8511e6f209edf$export$e908e06f4b8e3402, h as DropdownMenuGroup, hn as Pencil, ht as capitalize_default, i as Input, in as $f4e2df6bd15f8569$export$98658e8c59125e6a, it as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, j as Label$2, jt as $5b160d28a433310d$export$c17fa47878dc55b6, k as Item2$2, kt as $fca6afa0e843324b$export$f12b703ca79dfbb1, l as maxFractionalDigits, ln as $bdb11010cef70236$export$f680877a34711e37, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$cd4e5573fbe2b576, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$f21a1ffae260145a, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $c87311424ea30a05$export$6446a186d09e379e, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$e58f029f0fbfdb29, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $ff5963eb1fccf552$export$e08e3b67e392101e, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $d4ee10de306f2510$export$4282f70798064fe0, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $8ae05eaa5c114e9c$export$7f54fc3180508a52, ut as $64fa3d84918910a7$export$c62b8e45d58ddad9, v as DropdownMenuPortal, vt as $e93e671b31057976$export$b8473d3665f3a75a, w as Anchor2, wt as $319e236875307eab$export$a9b970dcc4ae71a9, x as DropdownMenuSubContent, xt as $e5be200c675c3b3a$export$aca958c65c314e6c, y as DropdownMenuSeparator, yt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, z as SubTrigger, zt as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./types-Bb-6p8hv.js";
|
|
14
|
+
import { S as CircleQuestionMark, _ as isUrl, a as AlertTitle, b as Deferred, c as constructFrom, d as millisecondsInMinute, f as millisecondsInSecond, g as appendQueryParams, h as getRuntimeManager, i as AlertDescription, l as millisecondsInDay, m as asRemoteURL, n as arrow, o as isValid$1, p as millisecondsInWeek, r as Alert, s as toDate, t as useDeepCompareMemoize, u as millisecondsInHour, v as require_cuid2, x as isWasm, y as waitForConnectionOpen } from "./useDeepCompareMemoize-CMGprt3H.js";
|
|
15
15
|
import { n as clsx_default } from "./clsx-D2KVTYnW.js";
|
|
16
|
-
import { a as cva, c as useComposedRefs, l as Events, n as buttonVariants, o as useEventListener, r as Slot$1, s as composeRefs, t as Button, u as cn } from "./button-
|
|
16
|
+
import { a as cva, c as useComposedRefs, l as Events, n as buttonVariants, o as useEventListener, r as Slot$1, s as composeRefs, t as Button, u as cn } from "./button-Cy0ElmIm.js";
|
|
17
17
|
import { c as Functions, i as parseShortcut, l as throwNotImplemented, o as Objects, r as isPlatformMac, s as Logger, t as NOT_SET } from "./hotkeys-B5WnGZXF.js";
|
|
18
18
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
19
|
-
import { t as require_react_dom } from "./react-dom-
|
|
20
|
-
import { a as Portal$3, c as prettyError, d as TooltipPortal, f as TooltipProvider, h as TooltipProvider$1, i as Overlay, l as Tooltip, m as TooltipTrigger, n as ErrorBanner, o as Root$7, p as TooltipRoot, r as Content$4, s as CellNotInitializedError, t as Banner, u as TooltipContent } from "./error-banner-
|
|
21
|
-
import { a as _extends$5, c as setDiagnostics, d as CopyClipboardIcon, i as minimalSetup, l as historyField, o as forEachDiagnostic, r as esm_default, s as linter, t as langs, u as insertTab } from "./esm-
|
|
19
|
+
import { t as require_react_dom } from "./react-dom-CqtLRVZP.js";
|
|
20
|
+
import { a as Portal$3, c as prettyError, d as TooltipPortal, f as TooltipProvider, h as TooltipProvider$1, i as Overlay, l as Tooltip, m as TooltipTrigger, n as ErrorBanner, o as Root$7, p as TooltipRoot, r as Content$4, s as CellNotInitializedError, t as Banner, u as TooltipContent } from "./error-banner-D2zjeN_a.js";
|
|
21
|
+
import { a as _extends$5, c as setDiagnostics, d as CopyClipboardIcon, i as minimalSetup, l as historyField, o as forEachDiagnostic, r as esm_default, s as linter, t as langs, u as insertTab } from "./esm-CgRNPmz8.js";
|
|
22
22
|
import { t as purify } from "./purify.es-Brw-U87Q.js";
|
|
23
|
-
import { C as buildStore, _ as useAtom, a as getResolvedMarimoConfig, b as useStore, c as AppConfigSchema, d as useJotaiEffect, g as Provider, h as useEvent_default, i as autoInstantiateAtom, l as createDeepEqualAtom, m as isEqual_default, n as useTheme, o as localeAtom, p as isIslands, r as aiEnabledAtom, s as useResolvedMarimoConfig, t as resolvedThemeAtom, u as store, v as useAtomValue, w as getBuildingBlocks, x as atom, y as useSetAtom } from "./useTheme-
|
|
23
|
+
import { C as buildStore, _ as useAtom, a as getResolvedMarimoConfig, b as useStore, c as AppConfigSchema, d as useJotaiEffect, g as Provider, h as useEvent_default, i as autoInstantiateAtom, l as createDeepEqualAtom, m as isEqual_default, n as useTheme, o as localeAtom, p as isIslands, r as aiEnabledAtom, s as useResolvedMarimoConfig, t as resolvedThemeAtom, u as store, v as useAtomValue, w as getBuildingBlocks, x as atom, y as useSetAtom } from "./useTheme-SlKl8MlS.js";
|
|
24
24
|
import { $ as ViewPlugin, At as RangeSet, B as tags$1, Dt as Facet$1, E as getIndentUnit, Et as EditorState, Ft as Text$2, I as syntaxTree, It as Transaction, J as parseMixed, L as unfoldAll, Nt as StateEffect, Pt as StateField, Q as GutterMarker, S as foldInside, Tt as EditorSelection, Y as Decoration, Z as EditorView, _t as showPanel, b as foldAll, bt as Annotation, dt as keymap, et as WidgetType, f as StreamLanguage, kt as Prec, l as LanguageDescription, mt as placeholder, ot as gutter, u as LanguageSupport, ut as hoverTooltip, vt as showTooltip, w as foldNodeProp, wt as Compartment } from "./dist-D7jHtwN8.js";
|
|
25
25
|
import { d as snippet, n as acceptCompletion, o as closeCompletion, r as autocompletion, u as insertCompletionText } from "./dist-g1p2PEVs.js";
|
|
26
26
|
import { p as _baseTimes_default } from "./_baseFor-DSVmVciX.js";
|
|
@@ -32,10 +32,10 @@ import { a as get_default, t as _baseProperty_default } from "./_baseProperty-BV
|
|
|
32
32
|
import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-DrOu5vvd.js";
|
|
33
33
|
import { t as isEmpty_default } from "./isEmpty-DQXRKNtW.js";
|
|
34
34
|
import { a as tooltipHandler, n as vegaLoadData, r as createBatchedLoader, t as parseCsvData } from "./loader-B0KEFFi-.js";
|
|
35
|
-
import { A as looseObject, B as union, C as any, D as discriminatedUnion, E as custom, F as optional, G as parse$3, H as safeParseAsync, I as record, J as prettifyError, K as parseAsync, L as strictObject, M as never, N as number$2, O as lazy$4, P as object$1, R as string$2, S as _null, T as boolean$2, U as ZodError$1, V as unknown, W as toJSONSchema, _ as ZodString$1, a as ZodIssueCode$1, b as _enum, c as ZodBoolean$1, d as ZodDiscriminatedUnion$1, f as ZodEnum$1, g as ZodOptional$1, h as ZodObject$1, i as string$3, j as nan, k as literal, l as ZodDate$1, m as ZodNumber$1, n as date, o as ZodAny$1, p as ZodLiteral$1, q as $ZodError, r as number$3, s as ZodArray$1, t as zod_default, u as ZodDefault$1, v as ZodType$1, w as array$2, x as _instanceof, y as ZodUnion$1, z as tuple } from "./zod-
|
|
35
|
+
import { A as looseObject, B as union, C as any, D as discriminatedUnion, E as custom, F as optional, G as parse$3, H as safeParseAsync, I as record, J as prettifyError, K as parseAsync, L as strictObject, M as never, N as number$2, O as lazy$4, P as object$1, R as string$2, S as _null, T as boolean$2, U as ZodError$1, V as unknown, W as toJSONSchema, _ as ZodString$1, a as ZodIssueCode$1, b as _enum, c as ZodBoolean$1, d as ZodDiscriminatedUnion$1, f as ZodEnum$1, g as ZodOptional$1, h as ZodObject$1, i as string$3, j as nan, k as literal, l as ZodDate$1, m as ZodNumber$1, n as date, o as ZodAny$1, p as ZodLiteral$1, q as $ZodError, r as number$3, s as ZodArray$1, t as zod_default, u as ZodDefault$1, v as ZodType$1, w as array$2, x as _instanceof, y as ZodUnion$1, z as tuple } from "./zod-bjADtMKr.js";
|
|
36
36
|
import { t as invariant } from "./invariant-D9QLJ4SZ.js";
|
|
37
37
|
import { a as arrayInsert, c as arrayShallowEquals, i as arrayDelete, l as uniqueBy, n as once, o as arrayInsertMany, r as Arrays, s as arrayMove, t as memoizeLastValue, u as clamp } from "./once-BqS42WgZ.js";
|
|
38
|
-
import { n as getIframeCapabilities, t as useIframeCapabilities } from "./useIframeCapabilities-
|
|
38
|
+
import { n as getIframeCapabilities, t as useIframeCapabilities } from "./useIframeCapabilities-DurI5SJh.js";
|
|
39
39
|
import { i as main_exports, r as init_main } from "./main-DhFbkwoC.js";
|
|
40
40
|
import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-CPd_adhw.js";
|
|
41
41
|
import { a as markdown, s as markdownLanguage } from "./dist-CBA36Nuy.js";
|
|
@@ -47,10 +47,10 @@ import { n as stexMath } from "./stex-DrxP7bb3.js";
|
|
|
47
47
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm--WpIBtj8.js";
|
|
48
48
|
import { t as require_prop_types } from "./prop-types-C9QZf2SY.js";
|
|
49
49
|
import { n as formats } from "./vega-loader.browser-BJ1uJidF.js";
|
|
50
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
50
|
+
import { t as useAsyncData } from "./useAsyncData-Dyq3DyOF.js";
|
|
51
51
|
import "./defaultLocale-qS7DaAmi.js";
|
|
52
52
|
import "./defaultLocale-Bxoo2-30.js";
|
|
53
|
-
import { c as katex } from "./katex-
|
|
53
|
+
import { c as katex } from "./katex-Db0k5oV_.js";
|
|
54
54
|
import "./dist-9J8_3DZN.js";
|
|
55
55
|
import "./dist-CsN7lsea.js";
|
|
56
56
|
import "./dist-BbQ-5HAA.js";
|
|
@@ -5129,36 +5129,36 @@ let __tla = Promise.all([
|
|
|
5129
5129
|
key: "1q7to0"
|
|
5130
5130
|
}
|
|
5131
5131
|
]
|
|
5132
|
-
]),
|
|
5132
|
+
]), Scroll = createLucideIcon("scroll", [
|
|
5133
5133
|
[
|
|
5134
5134
|
"path",
|
|
5135
5135
|
{
|
|
5136
|
-
d: "
|
|
5137
|
-
key: "
|
|
5136
|
+
d: "M19 17V5a2 2 0 0 0-2-2H4",
|
|
5137
|
+
key: "zz82l3"
|
|
5138
5138
|
}
|
|
5139
5139
|
],
|
|
5140
5140
|
[
|
|
5141
5141
|
"path",
|
|
5142
5142
|
{
|
|
5143
|
-
d: "
|
|
5144
|
-
key: "
|
|
5143
|
+
d: "M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",
|
|
5144
|
+
key: "1ph1d7"
|
|
5145
5145
|
}
|
|
5146
|
-
]
|
|
5146
|
+
]
|
|
5147
|
+
]), ScrollText = createLucideIcon("scroll-text", [
|
|
5147
5148
|
[
|
|
5148
5149
|
"path",
|
|
5149
5150
|
{
|
|
5150
|
-
d: "
|
|
5151
|
-
key: "
|
|
5151
|
+
d: "M15 12h-5",
|
|
5152
|
+
key: "r7krc0"
|
|
5152
5153
|
}
|
|
5153
5154
|
],
|
|
5154
5155
|
[
|
|
5155
5156
|
"path",
|
|
5156
5157
|
{
|
|
5157
|
-
d: "
|
|
5158
|
-
key: "
|
|
5158
|
+
d: "M15 8h-5",
|
|
5159
|
+
key: "1khuty"
|
|
5159
5160
|
}
|
|
5160
|
-
]
|
|
5161
|
-
]), Scroll = createLucideIcon("scroll", [
|
|
5161
|
+
],
|
|
5162
5162
|
[
|
|
5163
5163
|
"path",
|
|
5164
5164
|
{
|
|
@@ -11455,7 +11455,7 @@ let __tla = Promise.all([
|
|
|
11455
11455
|
return _;
|
|
11456
11456
|
}, e, r || cacheKeyForEmptyKeyExtractor);
|
|
11457
11457
|
}
|
|
11458
|
-
var isPromiseLike$
|
|
11458
|
+
var isPromiseLike$2 = (e) => typeof (e == null ? void 0 : e.then) == "function";
|
|
11459
11459
|
function createJSONStorage(e = () => {
|
|
11460
11460
|
try {
|
|
11461
11461
|
return window.localStorage;
|
|
@@ -11478,7 +11478,7 @@ let __tla = Promise.all([
|
|
|
11478
11478
|
}
|
|
11479
11479
|
return d;
|
|
11480
11480
|
}, y = ((_a3 = e()) == null ? void 0 : _a3.getItem(f2)) ?? null;
|
|
11481
|
-
return isPromiseLike$
|
|
11481
|
+
return isPromiseLike$2(y) ? y.then(v2) : v2(y);
|
|
11482
11482
|
},
|
|
11483
11483
|
setItem: (c2, d2) => {
|
|
11484
11484
|
var _a3;
|
|
@@ -11521,7 +11521,7 @@ let __tla = Promise.all([
|
|
|
11521
11521
|
return c.subscribe && (f2 = c.subscribe(e, d2, r)), f2;
|
|
11522
11522
|
}, atom((e2) => e2(f), (d2, _, v) => {
|
|
11523
11523
|
let y = typeof v == "function" ? v(d2(f)) : v;
|
|
11524
|
-
return y === RESET ? (_(f, r), c.removeItem(e)) : isPromiseLike$
|
|
11524
|
+
return y === RESET ? (_(f, r), c.removeItem(e)) : isPromiseLike$2(y) ? y.then((r2) => (_(f, r2), c.setItem(e, r2))) : (_(f, y), c.setItem(e, y));
|
|
11525
11525
|
});
|
|
11526
11526
|
}
|
|
11527
11527
|
var hydratedMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -13114,11 +13114,11 @@ ${d.join("\n")}`;
|
|
|
13114
13114
|
var r = e.toUpperCase();
|
|
13115
13115
|
return methods.indexOf(r) > -1 ? r : e;
|
|
13116
13116
|
}
|
|
13117
|
-
function Request(e, r) {
|
|
13118
|
-
if (!(this instanceof Request)) throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
13117
|
+
function Request$1(e, r) {
|
|
13118
|
+
if (!(this instanceof Request$1)) throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
13119
13119
|
r || (r = {});
|
|
13120
13120
|
var c = r.body;
|
|
13121
|
-
if (e instanceof Request) {
|
|
13121
|
+
if (e instanceof Request$1) {
|
|
13122
13122
|
if (e.bodyUsed) throw TypeError("Already read");
|
|
13123
13123
|
this.url = e.url, this.credentials = e.credentials, r.headers || (this.headers = new Headers$2(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !c && e._bodyInit != null && (c = e._bodyInit, e.bodyUsed = true);
|
|
13124
13124
|
} else this.url = String(e);
|
|
@@ -13162,7 +13162,7 @@ ${d.join("\n")}`;
|
|
|
13162
13162
|
}
|
|
13163
13163
|
function fetch$1(e, r) {
|
|
13164
13164
|
return new Promise(function(c, d) {
|
|
13165
|
-
var f = new Request(e, r);
|
|
13165
|
+
var f = new Request$1(e, r);
|
|
13166
13166
|
if (f.signal && f.signal.aborted) return d(new DOMException$1("Aborted", "AbortError"));
|
|
13167
13167
|
var _ = new XMLHttpRequest();
|
|
13168
13168
|
function v() {
|
|
@@ -13280,11 +13280,11 @@ ${d.join("\n")}`;
|
|
|
13280
13280
|
"POST",
|
|
13281
13281
|
"PUT",
|
|
13282
13282
|
"TRACE"
|
|
13283
|
-
], Request.prototype.clone = function() {
|
|
13284
|
-
return new Request(this, {
|
|
13283
|
+
], Request$1.prototype.clone = function() {
|
|
13284
|
+
return new Request$1(this, {
|
|
13285
13285
|
body: this._bodyInit
|
|
13286
13286
|
});
|
|
13287
|
-
}, Body.call(Request.prototype), Body.call(Response$1.prototype), Response$1.prototype.clone = function() {
|
|
13287
|
+
}, Body.call(Request$1.prototype), Body.call(Response$1.prototype), Response$1.prototype.clone = function() {
|
|
13288
13288
|
return new Response$1(this._bodyInit, {
|
|
13289
13289
|
status: this.status,
|
|
13290
13290
|
statusText: this.statusText,
|
|
@@ -13319,7 +13319,7 @@ ${d.join("\n")}`;
|
|
|
13319
13319
|
this.message = e, this.name = r, this.stack = Error(e).stack;
|
|
13320
13320
|
}, DOMException$1.prototype = Object.create(Error.prototype), DOMException$1.prototype.constructor = DOMException$1;
|
|
13321
13321
|
}
|
|
13322
|
-
fetch$1.polyfill = true, g$3.fetch || (g$3.fetch = fetch$1, g$3.Headers = Headers$2, g$3.Request = Request, g$3.Response = Response$1);
|
|
13322
|
+
fetch$1.polyfill = true, g$3.fetch || (g$3.fetch = fetch$1, g$3.Headers = Headers$2, g$3.Request = Request$1, g$3.Response = Response$1);
|
|
13323
13323
|
})), require_fetch_npm_browserify = __commonJSMin(((e, r) => {
|
|
13324
13324
|
init_fetch(), r.exports = self.fetch.bind(self);
|
|
13325
13325
|
})), require_HTTPTransport = __commonJSMin(((e) => {
|
|
@@ -27321,7 +27321,7 @@ ${JSON.stringify(e2, null, 4)}`);
|
|
|
27321
27321
|
}
|
|
27322
27322
|
};
|
|
27323
27323
|
var Z9 = c.version;
|
|
27324
|
-
if (Z9 !== "19.2.
|
|
27324
|
+
if (Z9 !== "19.2.4") throw Error(f(527, Z9, "19.2.4"));
|
|
27325
27325
|
eX.findDOMNode = function(e10) {
|
|
27326
27326
|
var r10 = e10._reactInternals;
|
|
27327
27327
|
if (r10 === void 0) throw typeof e10.render == "function" ? Error(f(188)) : (e10 = Object.keys(e10).join(","), Error(f(268, e10)));
|
|
@@ -27329,10 +27329,10 @@ ${JSON.stringify(e2, null, 4)}`);
|
|
|
27329
27329
|
};
|
|
27330
27330
|
var Q9 = {
|
|
27331
27331
|
bundleType: 0,
|
|
27332
|
-
version: "19.2.
|
|
27332
|
+
version: "19.2.4",
|
|
27333
27333
|
rendererPackageName: "react-dom",
|
|
27334
27334
|
currentDispatcherRef: $Y,
|
|
27335
|
-
reconcilerVersion: "19.2.
|
|
27335
|
+
reconcilerVersion: "19.2.4"
|
|
27336
27336
|
};
|
|
27337
27337
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
|
|
27338
27338
|
var $9 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -30411,8 +30411,6 @@ ${c.sqlString}
|
|
|
30411
30411
|
markdown: true,
|
|
30412
30412
|
wasm_layouts: false,
|
|
30413
30413
|
rtc_v2: false,
|
|
30414
|
-
performant_table_charts: false,
|
|
30415
|
-
chat_modes: false,
|
|
30416
30414
|
cache_panel: false,
|
|
30417
30415
|
external_agents: false,
|
|
30418
30416
|
server_side_pdf_export: true
|
|
@@ -39752,6 +39750,17 @@ ${c.sqlString}
|
|
|
39752
39750
|
}
|
|
39753
39751
|
return e;
|
|
39754
39752
|
},
|
|
39753
|
+
markUntouched: (e, r) => {
|
|
39754
|
+
let { cellId: c } = r;
|
|
39755
|
+
if (!e.untouchedNewCells.has(c)) {
|
|
39756
|
+
let r2 = new Set(e.untouchedNewCells);
|
|
39757
|
+
return r2.add(c), {
|
|
39758
|
+
...e,
|
|
39759
|
+
untouchedNewCells: r2
|
|
39760
|
+
};
|
|
39761
|
+
}
|
|
39762
|
+
return e;
|
|
39763
|
+
},
|
|
39755
39764
|
scrollToTarget: (e) => {
|
|
39756
39765
|
let r = e.scrollKey;
|
|
39757
39766
|
if (r === null) return e;
|
|
@@ -44049,6 +44058,9 @@ ${c.sqlString}
|
|
|
44049
44058
|
function isStaticNotebook() {
|
|
44050
44059
|
return (window == null ? void 0 : window.__MARIMO_STATIC__) !== void 0;
|
|
44051
44060
|
}
|
|
44061
|
+
function getStaticVirtualFiles() {
|
|
44062
|
+
return invariant(window.__MARIMO_STATIC__ !== void 0, "Not a static notebook"), window.__MARIMO_STATIC__.files;
|
|
44063
|
+
}
|
|
44052
44064
|
function shallowCompare(e, r) {
|
|
44053
44065
|
return e === r ? true : e == null || r == null ? false : Array.isArray(e) && Array.isArray(r) ? arrayShallowEquals(e, r) : typeof e == "object" && typeof r == "object" ? shallowCompareObjects(e, r) : false;
|
|
44054
44066
|
}
|
|
@@ -51307,7 +51319,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
51307
51319
|
type: "image",
|
|
51308
51320
|
url: e
|
|
51309
51321
|
}
|
|
51310
|
-
] : e.split(urlRegex).filter((e2) => e2
|
|
51322
|
+
] : e.split(urlRegex).filter((e2) => e2 !== "").map((e2) => urlRegex.test(e2) ? imageRegex.test(e2) || dataImageRegex.test(e2) || knownImageDomains.some((r) => e2.includes(r)) ? {
|
|
51311
51323
|
type: "image",
|
|
51312
51324
|
url: e2
|
|
51313
51325
|
} : {
|
|
@@ -52274,10 +52286,12 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52274
52286
|
let { visible: c, hidden: d } = applyHidingRules(new Set(e.map(([e2]) => e2)), r.hidingRules);
|
|
52275
52287
|
return {
|
|
52276
52288
|
entries: sortByPrecedence(e.filter(([e2]) => c.has(e2)), r.precedence),
|
|
52277
|
-
hidden:
|
|
52289
|
+
hidden: [
|
|
52290
|
+
...d
|
|
52291
|
+
]
|
|
52278
52292
|
};
|
|
52279
52293
|
}
|
|
52280
|
-
const LazyVegaEmbed = import_react.lazy(() => import("./react-vega-
|
|
52294
|
+
const LazyVegaEmbed = import_react.lazy(() => import("./react-vega-3WcLHYC7.js").then((e) => ({
|
|
52281
52295
|
default: e.VegaEmbed
|
|
52282
52296
|
})));
|
|
52283
52297
|
var import_compiler_runtime$127 = require_compiler_runtime();
|
|
@@ -58756,7 +58770,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
58756
58770
|
hasConsoleOutput: (v == null ? void 0 : v.consoleOutputs) != null
|
|
58757
58771
|
};
|
|
58758
58772
|
}
|
|
58759
|
-
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-
|
|
58773
|
+
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-D0UQItkS.js"));
|
|
58760
58774
|
var import_compiler_runtime$114 = require_compiler_runtime(), extensions = [
|
|
58761
58775
|
EditorView.lineWrapping
|
|
58762
58776
|
], SUPPORTED_LANGUAGES = /* @__PURE__ */ new Set([
|
|
@@ -63542,10 +63556,10 @@ ${O}`,
|
|
|
63542
63556
|
}
|
|
63543
63557
|
var import_client$1 = __toESM(require_client(), 1);
|
|
63544
63558
|
function PluginSlotInternal({ hostElement: e, plugin: r, children: c, getInitialValue: d }, f) {
|
|
63545
|
-
let [_, v] = (0, import_react.useState)(c), [y, S] = (0, import_react.useState)(d()), { theme: w } = useTheme(), [E, O] = (0, import_react.useState)(() => r.validator.safeParse(parseDataset(e)));
|
|
63559
|
+
let [_, v] = (0, import_react.useState)(c), [y, S] = (0, import_react.useState)(d()), { theme: w } = useTheme(), [E, O] = (0, import_react.useState)(() => r.validator.safeParse(parseDataset(e))), [M, I] = (0, import_react.useState)(0);
|
|
63546
63560
|
(0, import_react.useImperativeHandle)(f, () => ({
|
|
63547
63561
|
reset: () => {
|
|
63548
|
-
S(d()), O(r.validator.safeParse(parseDataset(e)));
|
|
63562
|
+
S(d()), O(r.validator.safeParse(parseDataset(e))), I((e2) => e2 + 1);
|
|
63549
63563
|
},
|
|
63550
63564
|
setChildren: (e2) => {
|
|
63551
63565
|
v(e2);
|
|
@@ -63568,12 +63582,12 @@ ${O}`,
|
|
|
63568
63582
|
e,
|
|
63569
63583
|
r.validator
|
|
63570
63584
|
]);
|
|
63571
|
-
let
|
|
63585
|
+
let z = useEvent_default((r2) => {
|
|
63572
63586
|
S((c2) => {
|
|
63573
63587
|
let d2 = Functions.asUpdater(r2)(c2);
|
|
63574
63588
|
return shallowCompare(d2, c2) || e.dispatchEvent(createInputEvent(d2, e)), d2;
|
|
63575
63589
|
});
|
|
63576
|
-
}),
|
|
63590
|
+
}), G = (0, import_react.useMemo)(() => {
|
|
63577
63591
|
if (!r.functions) return {};
|
|
63578
63592
|
let c2 = {};
|
|
63579
63593
|
for (let [d2, f2] of Objects.entries(r.functions)) {
|
|
@@ -63606,7 +63620,8 @@ ${O}`,
|
|
|
63606
63620
|
return c2;
|
|
63607
63621
|
}, [
|
|
63608
63622
|
r.functions,
|
|
63609
|
-
e
|
|
63623
|
+
e,
|
|
63624
|
+
M
|
|
63610
63625
|
]);
|
|
63611
63626
|
return E.success ? (0, import_jsx_runtime.jsx)(StyleNamespace, {
|
|
63612
63627
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -63614,12 +63629,12 @@ ${O}`,
|
|
|
63614
63629
|
children: (0, import_jsx_runtime.jsx)(import_react.Suspense, {
|
|
63615
63630
|
fallback: (0, import_jsx_runtime.jsx)("div", {}),
|
|
63616
63631
|
children: r.render({
|
|
63617
|
-
setValue:
|
|
63632
|
+
setValue: z,
|
|
63618
63633
|
value: y,
|
|
63619
63634
|
data: E.data,
|
|
63620
63635
|
children: _,
|
|
63621
63636
|
host: e,
|
|
63622
|
-
functions:
|
|
63637
|
+
functions: G
|
|
63623
63638
|
})
|
|
63624
63639
|
})
|
|
63625
63640
|
})
|
|
@@ -64072,6 +64087,35 @@ ${O}`,
|
|
|
64072
64087
|
}
|
|
64073
64088
|
});
|
|
64074
64089
|
}
|
|
64090
|
+
function deserializeBlob(e) {
|
|
64091
|
+
var _a2;
|
|
64092
|
+
let [r, c] = e.split(",", 2), d = (_a2 = /^data:(.+);base64$/.exec(r)) == null ? void 0 : _a2[1], f = atob(c), _ = f.length, v = new Uint8Array(_);
|
|
64093
|
+
for (let e2 = 0; e2 < _; e2++) v[e2] = f.charCodeAt(e2);
|
|
64094
|
+
return new Blob([
|
|
64095
|
+
v
|
|
64096
|
+
], {
|
|
64097
|
+
type: d
|
|
64098
|
+
});
|
|
64099
|
+
}
|
|
64100
|
+
function withoutLeadingDot(e) {
|
|
64101
|
+
return e.startsWith(".") ? e.slice(1) : e;
|
|
64102
|
+
}
|
|
64103
|
+
function resolveVirtualFileURL(e, r = getStaticVirtualFiles()) {
|
|
64104
|
+
let c = maybeGetVirtualFile(e, r);
|
|
64105
|
+
if (!c) return e;
|
|
64106
|
+
let d = deserializeBlob(c);
|
|
64107
|
+
return URL.createObjectURL(d);
|
|
64108
|
+
}
|
|
64109
|
+
function maybeGetVirtualFile(e, r) {
|
|
64110
|
+
let c = document.baseURI;
|
|
64111
|
+
c.startsWith("blob:") && (c = c.replace("blob:", ""));
|
|
64112
|
+
let d = new URL(e, c).pathname, f = extractFilePath(e), _ = extractFilePath(d);
|
|
64113
|
+
return r[e] || r[withoutLeadingDot(e)] || r[d] || r[withoutLeadingDot(d)] || f && r[f] || _ && r[_];
|
|
64114
|
+
}
|
|
64115
|
+
function extractFilePath(e) {
|
|
64116
|
+
let r = e.indexOf("/@file/");
|
|
64117
|
+
return r === -1 ? null : e.slice(r);
|
|
64118
|
+
}
|
|
64075
64119
|
function createPlugin(e, r = {}) {
|
|
64076
64120
|
return {
|
|
64077
64121
|
withData(c) {
|
|
@@ -64339,10 +64383,13 @@ ${O}`,
|
|
|
64339
64383
|
return Logger.warn("AnyWidget value is not wire format:", e.value), e.value;
|
|
64340
64384
|
}, [
|
|
64341
64385
|
e.value
|
|
64342
|
-
]), { data: _, error: v, refetch: y } = useAsyncData(async () =>
|
|
64343
|
-
|
|
64344
|
-
return m2
|
|
64345
|
-
|
|
64386
|
+
]), { data: _, error: v, refetch: y } = useAsyncData(async () => {
|
|
64387
|
+
let e2 = asRemoteURL(c).toString();
|
|
64388
|
+
return isStaticNotebook() && (e2 = resolveVirtualFileURL(e2)), await import(e2).then(async (m2) => {
|
|
64389
|
+
await m2.__tla;
|
|
64390
|
+
return m2;
|
|
64391
|
+
});
|
|
64392
|
+
}, [
|
|
64346
64393
|
d
|
|
64347
64394
|
]), S = !!v;
|
|
64348
64395
|
(0, import_react.useEffect)(() => {
|
|
@@ -69097,7 +69144,7 @@ Error message: ${getErrorMessage$1(r)}`,
|
|
|
69097
69144
|
}
|
|
69098
69145
|
};
|
|
69099
69146
|
_a6 = symbol6;
|
|
69100
|
-
var VERSION = "5.0.
|
|
69147
|
+
var VERSION = "5.0.124", dataContentSchema = union([
|
|
69101
69148
|
string$2(),
|
|
69102
69149
|
_instanceof(Uint8Array),
|
|
69103
69150
|
_instanceof(ArrayBuffer),
|
|
@@ -71093,25 +71140,6 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
71093
71140
|
}
|
|
71094
71141
|
};
|
|
71095
71142
|
const contextCallbacks = singleFacet();
|
|
71096
|
-
function deserializeBlob(e) {
|
|
71097
|
-
return new Promise((r, c) => {
|
|
71098
|
-
var _a2;
|
|
71099
|
-
try {
|
|
71100
|
-
let [c2, d] = e.split(",", 2), f = (_a2 = /^data:(.+);base64$/.exec(c2)) == null ? void 0 : _a2[1], _ = atob(d), v = _.length, y = new Uint8Array(v);
|
|
71101
|
-
for (let e2 = 0; e2 < v; e2++) y[e2] = _.charCodeAt(e2);
|
|
71102
|
-
r(new Blob([
|
|
71103
|
-
y
|
|
71104
|
-
], {
|
|
71105
|
-
type: f
|
|
71106
|
-
}));
|
|
71107
|
-
} catch (e2) {
|
|
71108
|
-
c(ensureError(e2));
|
|
71109
|
-
}
|
|
71110
|
-
});
|
|
71111
|
-
}
|
|
71112
|
-
function ensureError(e) {
|
|
71113
|
-
return e instanceof Error ? e : Error(`${e}`);
|
|
71114
|
-
}
|
|
71115
71143
|
var DEFAULT_FILE_SEARCH_CONFIG = {
|
|
71116
71144
|
maxDepth: 3,
|
|
71117
71145
|
maxResults: 20,
|
|
@@ -71243,7 +71271,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
71243
71271
|
type: S
|
|
71244
71272
|
});
|
|
71245
71273
|
else if (y.contents) try {
|
|
71246
|
-
E =
|
|
71274
|
+
E = deserializeBlob(base64ToDataURL(y.contents, S));
|
|
71247
71275
|
} catch {
|
|
71248
71276
|
E = new Blob([
|
|
71249
71277
|
y.contents
|
|
@@ -73175,7 +73203,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73175
73203
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
73176
73204
|
}
|
|
73177
73205
|
}
|
|
73178
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.8-
|
|
73206
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.8-dev31"), showCodeInRunModeAtom = atom(true);
|
|
73179
73207
|
atom(null);
|
|
73180
73208
|
var import_compiler_runtime$88 = require_compiler_runtime();
|
|
73181
73209
|
function useKeydownOnElement(e, r) {
|
|
@@ -74731,7 +74759,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
74731
74759
|
function getVegaFieldTypes(e) {
|
|
74732
74760
|
return !e || Object.keys(e).length === 0 ? "auto" : Objects.mapValues(e, (e2) => e2 === "date" || e2 === "time" ? "string" : e2 === "datetime" ? "date" : e2);
|
|
74733
74761
|
}
|
|
74734
|
-
var import_compiler_runtime$81 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
74762
|
+
var import_compiler_runtime$81 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-BYwb17Bf.js").then(async (m2) => {
|
|
74735
74763
|
await m2.__tla;
|
|
74736
74764
|
return m2;
|
|
74737
74765
|
}));
|
|
@@ -84801,7 +84829,7 @@ ${c}
|
|
|
84801
84829
|
fullWidth: y,
|
|
84802
84830
|
children: G
|
|
84803
84831
|
}), r[19] = y, r[20] = S, r[21] = c, r[22] = G, r[23] = q) : q = r[23], q;
|
|
84804
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
84832
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-BAeQ8DWw.js"));
|
|
84805
84833
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object$1({
|
|
84806
84834
|
label: string$2().nullish(),
|
|
84807
84835
|
data: string$2()
|
|
@@ -92248,8 +92276,11 @@ ${c}
|
|
|
92248
92276
|
code: TOO_MANY_FILES,
|
|
92249
92277
|
message: "Too many files"
|
|
92250
92278
|
};
|
|
92279
|
+
function isDataTransferItemWithEmptyType(e) {
|
|
92280
|
+
return e.type === "" && typeof e.getAsFile == "function";
|
|
92281
|
+
}
|
|
92251
92282
|
function fileAccepted(e, r) {
|
|
92252
|
-
var c = e.type === "application/x-moz-file" || accepts(e, r);
|
|
92283
|
+
var c = e.type === "application/x-moz-file" || accepts(e, r) || isDataTransferItemWithEmptyType(e);
|
|
92253
92284
|
return [
|
|
92254
92285
|
c,
|
|
92255
92286
|
c ? null : getInvalidTypeRejectionErr(r)
|
|
@@ -92543,6 +92574,7 @@ ${c}
|
|
|
92543
92574
|
isDragActive: false,
|
|
92544
92575
|
isDragAccept: false,
|
|
92545
92576
|
isDragReject: false,
|
|
92577
|
+
isDragGlobal: false,
|
|
92546
92578
|
acceptedFiles: [],
|
|
92547
92579
|
fileRejections: []
|
|
92548
92580
|
};
|
|
@@ -92580,16 +92612,47 @@ ${c}
|
|
|
92580
92612
|
JY,
|
|
92581
92613
|
nX
|
|
92582
92614
|
]);
|
|
92583
|
-
var iX = (0, import_react.useRef)([]), aX = function(e2) {
|
|
92615
|
+
var iX = (0, import_react.useRef)([]), aX = (0, import_react.useRef)([]), oX = function(e2) {
|
|
92584
92616
|
YY.current && YY.current.contains(e2.target) || (e2.preventDefault(), iX.current = []);
|
|
92585
92617
|
};
|
|
92586
92618
|
(0, import_react.useEffect)(function() {
|
|
92587
|
-
return RY && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
92588
|
-
RY && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
92619
|
+
return RY && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", oX, false)), function() {
|
|
92620
|
+
RY && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", oX));
|
|
92589
92621
|
};
|
|
92590
92622
|
}, [
|
|
92591
92623
|
YY,
|
|
92592
92624
|
RY
|
|
92625
|
+
]), (0, import_react.useEffect)(function() {
|
|
92626
|
+
var e2 = function(e3) {
|
|
92627
|
+
aX.current = [].concat(_toConsumableArray(aX.current), [
|
|
92628
|
+
e3.target
|
|
92629
|
+
]), isEvtWithFiles(e3) && $Y({
|
|
92630
|
+
isDragGlobal: true,
|
|
92631
|
+
type: "setDragGlobal"
|
|
92632
|
+
});
|
|
92633
|
+
}, r2 = function(e3) {
|
|
92634
|
+
aX.current = aX.current.filter(function(r3) {
|
|
92635
|
+
return r3 !== e3.target && r3 !== null;
|
|
92636
|
+
}), !(aX.current.length > 0) && $Y({
|
|
92637
|
+
isDragGlobal: false,
|
|
92638
|
+
type: "setDragGlobal"
|
|
92639
|
+
});
|
|
92640
|
+
}, c2 = function() {
|
|
92641
|
+
aX.current = [], $Y({
|
|
92642
|
+
isDragGlobal: false,
|
|
92643
|
+
type: "setDragGlobal"
|
|
92644
|
+
});
|
|
92645
|
+
}, d2 = function() {
|
|
92646
|
+
aX.current = [], $Y({
|
|
92647
|
+
isDragGlobal: false,
|
|
92648
|
+
type: "setDragGlobal"
|
|
92649
|
+
});
|
|
92650
|
+
};
|
|
92651
|
+
return document.addEventListener("dragenter", e2, false), document.addEventListener("dragleave", r2, false), document.addEventListener("dragend", c2, false), document.addEventListener("drop", d2, false), function() {
|
|
92652
|
+
document.removeEventListener("dragenter", e2), document.removeEventListener("dragleave", r2), document.removeEventListener("dragend", c2), document.removeEventListener("drop", d2);
|
|
92653
|
+
};
|
|
92654
|
+
}, [
|
|
92655
|
+
YY
|
|
92593
92656
|
]), (0, import_react.useEffect)(function() {
|
|
92594
92657
|
return !d && LY && YY.current && YY.current.focus(), function() {
|
|
92595
92658
|
};
|
|
@@ -92598,12 +92661,12 @@ ${c}
|
|
|
92598
92661
|
LY,
|
|
92599
92662
|
d
|
|
92600
92663
|
]);
|
|
92601
|
-
var
|
|
92664
|
+
var sX = (0, import_react.useCallback)(function(e2) {
|
|
92602
92665
|
UY ? UY(e2) : console.error(e2);
|
|
92603
92666
|
}, [
|
|
92604
92667
|
UY
|
|
92605
|
-
]),
|
|
92606
|
-
e2.preventDefault(), e2.persist(),
|
|
92668
|
+
]), cX = (0, import_react.useCallback)(function(e2) {
|
|
92669
|
+
e2.preventDefault(), e2.persist(), xX(e2), iX.current = [].concat(_toConsumableArray(iX.current), [
|
|
92607
92670
|
e2.target
|
|
92608
92671
|
]), isEvtWithFiles(e2) && Promise.resolve(f(e2)).then(function(r2) {
|
|
92609
92672
|
if (!(isPropagationStopped(e2) && !HY)) {
|
|
@@ -92624,12 +92687,12 @@ ${c}
|
|
|
92624
92687
|
}), w && w(e2);
|
|
92625
92688
|
}
|
|
92626
92689
|
}).catch(function(e3) {
|
|
92627
|
-
return
|
|
92690
|
+
return sX(e3);
|
|
92628
92691
|
});
|
|
92629
92692
|
}, [
|
|
92630
92693
|
f,
|
|
92631
92694
|
w,
|
|
92632
|
-
|
|
92695
|
+
sX,
|
|
92633
92696
|
HY,
|
|
92634
92697
|
GY,
|
|
92635
92698
|
v,
|
|
@@ -92637,8 +92700,8 @@ ${c}
|
|
|
92637
92700
|
y,
|
|
92638
92701
|
S,
|
|
92639
92702
|
WY
|
|
92640
|
-
]),
|
|
92641
|
-
e2.preventDefault(), e2.persist(),
|
|
92703
|
+
]), lX = (0, import_react.useCallback)(function(e2) {
|
|
92704
|
+
e2.preventDefault(), e2.persist(), xX(e2);
|
|
92642
92705
|
var r2 = isEvtWithFiles(e2);
|
|
92643
92706
|
if (r2 && e2.dataTransfer) try {
|
|
92644
92707
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -92648,8 +92711,8 @@ ${c}
|
|
|
92648
92711
|
}, [
|
|
92649
92712
|
O,
|
|
92650
92713
|
HY
|
|
92651
|
-
]),
|
|
92652
|
-
e2.preventDefault(), e2.persist(),
|
|
92714
|
+
]), uX = (0, import_react.useCallback)(function(e2) {
|
|
92715
|
+
e2.preventDefault(), e2.persist(), xX(e2);
|
|
92653
92716
|
var r2 = iX.current.filter(function(e3) {
|
|
92654
92717
|
return YY.current && YY.current.contains(e3);
|
|
92655
92718
|
}), c2 = r2.indexOf(e2.target);
|
|
@@ -92663,7 +92726,7 @@ ${c}
|
|
|
92663
92726
|
YY,
|
|
92664
92727
|
E,
|
|
92665
92728
|
HY
|
|
92666
|
-
]),
|
|
92729
|
+
]), dX = (0, import_react.useCallback)(function(e2, r2) {
|
|
92667
92730
|
var c2 = [], d2 = [];
|
|
92668
92731
|
e2.forEach(function(e3) {
|
|
92669
92732
|
var r3 = _slicedToArray(fileAccepted(e3, GY), 2), f2 = r3[0], y2 = r3[1], S2 = _slicedToArray(fileMatchSize(e3, v, _), 2), w2 = S2[0], E2 = S2[1], O2 = WY ? WY(e3) : null;
|
|
@@ -92704,20 +92767,20 @@ ${c}
|
|
|
92704
92767
|
I,
|
|
92705
92768
|
z,
|
|
92706
92769
|
WY
|
|
92707
|
-
]),
|
|
92708
|
-
e2.preventDefault(), e2.persist(),
|
|
92709
|
-
isPropagationStopped(e2) && !HY ||
|
|
92770
|
+
]), fX = (0, import_react.useCallback)(function(e2) {
|
|
92771
|
+
e2.preventDefault(), e2.persist(), xX(e2), iX.current = [], isEvtWithFiles(e2) && Promise.resolve(f(e2)).then(function(r2) {
|
|
92772
|
+
isPropagationStopped(e2) && !HY || dX(r2, e2);
|
|
92710
92773
|
}).catch(function(e3) {
|
|
92711
|
-
return
|
|
92774
|
+
return sX(e3);
|
|
92712
92775
|
}), $Y({
|
|
92713
92776
|
type: "reset"
|
|
92714
92777
|
});
|
|
92715
92778
|
}, [
|
|
92716
92779
|
f,
|
|
92717
|
-
|
|
92718
|
-
|
|
92780
|
+
dX,
|
|
92781
|
+
sX,
|
|
92719
92782
|
HY
|
|
92720
|
-
]),
|
|
92783
|
+
]), pX = (0, import_react.useCallback)(function() {
|
|
92721
92784
|
if (nX.current) {
|
|
92722
92785
|
$Y({
|
|
92723
92786
|
type: "openDialog"
|
|
@@ -92729,13 +92792,13 @@ ${c}
|
|
|
92729
92792
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
92730
92793
|
return f(e3);
|
|
92731
92794
|
}).then(function(e3) {
|
|
92732
|
-
|
|
92795
|
+
dX(e3, null), $Y({
|
|
92733
92796
|
type: "closeDialog"
|
|
92734
92797
|
});
|
|
92735
92798
|
}).catch(function(e3) {
|
|
92736
92799
|
isAbort(e3) ? (JY(e3), $Y({
|
|
92737
92800
|
type: "closeDialog"
|
|
92738
|
-
})) : isSecurityError(e3) ? (nX.current = false, XY.current ? (XY.current.value = null, XY.current.click()) :
|
|
92801
|
+
})) : isSecurityError(e3) ? (nX.current = false, XY.current ? (XY.current.value = null, XY.current.click()) : sX(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : sX(e3);
|
|
92739
92802
|
});
|
|
92740
92803
|
return;
|
|
92741
92804
|
}
|
|
@@ -92747,48 +92810,48 @@ ${c}
|
|
|
92747
92810
|
qY,
|
|
92748
92811
|
JY,
|
|
92749
92812
|
IY,
|
|
92750
|
-
|
|
92751
|
-
|
|
92813
|
+
dX,
|
|
92814
|
+
sX,
|
|
92752
92815
|
KY,
|
|
92753
92816
|
y
|
|
92754
|
-
]),
|
|
92755
|
-
!YY.current || !YY.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
92817
|
+
]), mX = (0, import_react.useCallback)(function(e2) {
|
|
92818
|
+
!YY.current || !YY.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), pX());
|
|
92756
92819
|
}, [
|
|
92757
92820
|
YY,
|
|
92758
|
-
|
|
92759
|
-
]),
|
|
92821
|
+
pX
|
|
92822
|
+
]), hX = (0, import_react.useCallback)(function() {
|
|
92760
92823
|
$Y({
|
|
92761
92824
|
type: "focus"
|
|
92762
92825
|
});
|
|
92763
|
-
}, []),
|
|
92826
|
+
}, []), gX = (0, import_react.useCallback)(function() {
|
|
92764
92827
|
$Y({
|
|
92765
92828
|
type: "blur"
|
|
92766
92829
|
});
|
|
92767
|
-
}, []),
|
|
92768
|
-
zY || (isIeOrEdge() ? setTimeout(
|
|
92830
|
+
}, []), _X = (0, import_react.useCallback)(function() {
|
|
92831
|
+
zY || (isIeOrEdge() ? setTimeout(pX, 0) : pX());
|
|
92769
92832
|
}, [
|
|
92770
92833
|
zY,
|
|
92771
|
-
|
|
92772
|
-
]),
|
|
92834
|
+
pX
|
|
92835
|
+
]), vX = function(e2) {
|
|
92773
92836
|
return d ? null : e2;
|
|
92774
|
-
}, vX = function(e2) {
|
|
92775
|
-
return BY ? null : _X(e2);
|
|
92776
92837
|
}, yX = function(e2) {
|
|
92777
|
-
return
|
|
92838
|
+
return BY ? null : vX(e2);
|
|
92778
92839
|
}, bX = function(e2) {
|
|
92840
|
+
return VY ? null : vX(e2);
|
|
92841
|
+
}, xX = function(e2) {
|
|
92779
92842
|
HY && e2.stopPropagation();
|
|
92780
|
-
},
|
|
92843
|
+
}, SX = (0, import_react.useMemo)(function() {
|
|
92781
92844
|
return function() {
|
|
92782
92845
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, f2 = e2.role, _2 = e2.onKeyDown, v2 = e2.onFocus, y2 = e2.onBlur, S2 = e2.onClick, w2 = e2.onDragEnter, E2 = e2.onDragOver, O2 = e2.onDragLeave, M2 = e2.onDrop, I2 = _objectWithoutProperties$2(e2, _excluded3);
|
|
92783
92846
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
92784
|
-
onKeyDown:
|
|
92785
|
-
onFocus:
|
|
92786
|
-
onBlur:
|
|
92787
|
-
onClick:
|
|
92788
|
-
onDragEnter:
|
|
92789
|
-
onDragOver:
|
|
92790
|
-
onDragLeave:
|
|
92791
|
-
onDrop:
|
|
92847
|
+
onKeyDown: yX(composeEventHandlers(_2, mX)),
|
|
92848
|
+
onFocus: yX(composeEventHandlers(v2, hX)),
|
|
92849
|
+
onBlur: yX(composeEventHandlers(y2, gX)),
|
|
92850
|
+
onClick: vX(composeEventHandlers(S2, _X)),
|
|
92851
|
+
onDragEnter: bX(composeEventHandlers(w2, cX)),
|
|
92852
|
+
onDragOver: bX(composeEventHandlers(E2, lX)),
|
|
92853
|
+
onDragLeave: bX(composeEventHandlers(O2, uX)),
|
|
92854
|
+
onDrop: bX(composeEventHandlers(M2, fX)),
|
|
92792
92855
|
role: typeof f2 == "string" && f2 !== "" ? f2 : "presentation"
|
|
92793
92856
|
}, c2, YY), !d && !BY ? {
|
|
92794
92857
|
tabIndex: 0
|
|
@@ -92796,20 +92859,20 @@ ${c}
|
|
|
92796
92859
|
};
|
|
92797
92860
|
}, [
|
|
92798
92861
|
YY,
|
|
92799
|
-
pX,
|
|
92800
92862
|
mX,
|
|
92801
92863
|
hX,
|
|
92802
92864
|
gX,
|
|
92803
|
-
|
|
92865
|
+
_X,
|
|
92804
92866
|
cX,
|
|
92805
92867
|
lX,
|
|
92806
|
-
|
|
92868
|
+
uX,
|
|
92869
|
+
fX,
|
|
92807
92870
|
BY,
|
|
92808
92871
|
VY,
|
|
92809
92872
|
d
|
|
92810
|
-
]),
|
|
92873
|
+
]), CX = (0, import_react.useCallback)(function(e2) {
|
|
92811
92874
|
e2.stopPropagation();
|
|
92812
|
-
}, []),
|
|
92875
|
+
}, []), wX = (0, import_react.useMemo)(function() {
|
|
92813
92876
|
return function() {
|
|
92814
92877
|
var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r2 = e2.refKey, c2 = r2 === void 0 ? "ref" : r2, d2 = e2.onChange, f2 = e2.onClick, _2 = _objectWithoutProperties$2(e2, _excluded4);
|
|
92815
92878
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -92828,8 +92891,8 @@ ${c}
|
|
|
92828
92891
|
width: "1px",
|
|
92829
92892
|
whiteSpace: "nowrap"
|
|
92830
92893
|
},
|
|
92831
|
-
onChange:
|
|
92832
|
-
onClick:
|
|
92894
|
+
onChange: vX(composeEventHandlers(d2, fX)),
|
|
92895
|
+
onClick: vX(composeEventHandlers(f2, CX)),
|
|
92833
92896
|
tabIndex: -1
|
|
92834
92897
|
}, c2, XY)), _2);
|
|
92835
92898
|
};
|
|
@@ -92837,16 +92900,16 @@ ${c}
|
|
|
92837
92900
|
XY,
|
|
92838
92901
|
c,
|
|
92839
92902
|
y,
|
|
92840
|
-
|
|
92903
|
+
fX,
|
|
92841
92904
|
d
|
|
92842
92905
|
]);
|
|
92843
92906
|
return _objectSpread$7(_objectSpread$7({}, QY), {}, {
|
|
92844
92907
|
isFocused: eX && !d,
|
|
92845
|
-
getRootProps:
|
|
92846
|
-
getInputProps:
|
|
92908
|
+
getRootProps: SX,
|
|
92909
|
+
getInputProps: wX,
|
|
92847
92910
|
rootRef: YY,
|
|
92848
92911
|
inputRef: XY,
|
|
92849
|
-
open:
|
|
92912
|
+
open: vX(pX)
|
|
92850
92913
|
});
|
|
92851
92914
|
}
|
|
92852
92915
|
function reducer$1(e, r) {
|
|
@@ -92879,6 +92942,10 @@ ${c}
|
|
|
92879
92942
|
fileRejections: r.fileRejections,
|
|
92880
92943
|
isDragReject: r.isDragReject
|
|
92881
92944
|
});
|
|
92945
|
+
case "setDragGlobal":
|
|
92946
|
+
return _objectSpread$7(_objectSpread$7({}, e), {}, {
|
|
92947
|
+
isDragGlobal: r.isDragGlobal
|
|
92948
|
+
});
|
|
92882
92949
|
case "reset":
|
|
92883
92950
|
return _objectSpread$7({}, initialState);
|
|
92884
92951
|
default:
|
|
@@ -93943,7 +94010,7 @@ ${c}
|
|
|
93943
94010
|
});
|
|
93944
94011
|
}
|
|
93945
94012
|
};
|
|
93946
|
-
const LazyPlot = (0, import_react.lazy)(() => import("./react-plotly-
|
|
94013
|
+
const LazyPlot = (0, import_react.lazy)(() => import("./react-plotly-BuRa9xtI.js").then(__toDynamicImportESM(1)).then((e) => e.default));
|
|
93947
94014
|
var SUNBURST_DATA_KEYS = [
|
|
93948
94015
|
"color",
|
|
93949
94016
|
"curveNumber",
|
|
@@ -94975,7 +95042,7 @@ ${c}
|
|
|
94975
95042
|
return true;
|
|
94976
95043
|
}
|
|
94977
95044
|
}
|
|
94978
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
95045
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-DU3aSp4m.js")), VegaPlugin = class {
|
|
94979
95046
|
constructor() {
|
|
94980
95047
|
__publicField(this, "tagName", "marimo-vega");
|
|
94981
95048
|
__publicField(this, "validator", object$1({
|
|
@@ -95116,7 +95183,7 @@ ${c}
|
|
|
95116
95183
|
children: e.children
|
|
95117
95184
|
});
|
|
95118
95185
|
}
|
|
95119
|
-
}, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-
|
|
95186
|
+
}, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-Dp-y50K9.js"));
|
|
95120
95187
|
const DownloadPlugin = createPlugin("marimo-download").withData(object$1({
|
|
95121
95188
|
data: string$2(),
|
|
95122
95189
|
disabled: boolean$2().default(false),
|
|
@@ -95168,7 +95235,7 @@ ${c}
|
|
|
95168
95235
|
v
|
|
95169
95236
|
]
|
|
95170
95237
|
});
|
|
95171
|
-
}, LazyImageComparisonComponent = import_react.lazy(() => import("./ImageComparisonComponent-
|
|
95238
|
+
}, LazyImageComparisonComponent = import_react.lazy(() => import("./ImageComparisonComponent-DkEXPki_.js")), ImageComparisonPlugin = class {
|
|
95172
95239
|
constructor() {
|
|
95173
95240
|
__publicField(this, "tagName", "marimo-image-comparison");
|
|
95174
95241
|
__publicField(this, "validator", object$1({
|
|
@@ -95298,7 +95365,7 @@ ${c}
|
|
|
95298
95365
|
diagram: e.data.diagram
|
|
95299
95366
|
});
|
|
95300
95367
|
}
|
|
95301
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
95368
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-B__BZSXU.js").then(async (m2) => {
|
|
95302
95369
|
await m2.__tla;
|
|
95303
95370
|
return m2;
|
|
95304
95371
|
})), import_compiler_runtime$18 = require_compiler_runtime();
|
|
@@ -97330,8 +97397,8 @@ ${c}
|
|
|
97330
97397
|
tex: e.host.textContent || e.host.innerHTML
|
|
97331
97398
|
});
|
|
97332
97399
|
}
|
|
97333
|
-
}, importKatex = once(async () => (await import("./katex-
|
|
97334
|
-
await import("./mhchem-
|
|
97400
|
+
}, importKatex = once(async () => (await import("./katex-CX2BKujk.js")).default), importMhChem = once(async () => {
|
|
97401
|
+
await import("./mhchem-w1tkUnWr.js");
|
|
97335
97402
|
}), macros = {};
|
|
97336
97403
|
async function renderLatex(e, r) {
|
|
97337
97404
|
let [c] = await Promise.all([
|
|
@@ -101402,7 +101469,7 @@ ${c}
|
|
|
101402
101469
|
cells: []
|
|
101403
101470
|
})
|
|
101404
101471
|
};
|
|
101405
|
-
var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-
|
|
101472
|
+
var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-Dp-y50K9.js"));
|
|
101406
101473
|
const SlidesLayoutRenderer = (e) => {
|
|
101407
101474
|
let r = (0, import_compiler_runtime$8.c)(11), { cells: c, mode: d } = e, f = d === "read", _;
|
|
101408
101475
|
if (r[0] !== c || r[1] !== d) {
|
|
@@ -101891,6 +101958,10 @@ ${c}
|
|
|
101891
101958
|
function _temp4$1(e) {
|
|
101892
101959
|
return processOutput(e);
|
|
101893
101960
|
}
|
|
101961
|
+
const kernelStateAtom = atom({
|
|
101962
|
+
isInstantiated: false,
|
|
101963
|
+
error: null
|
|
101964
|
+
});
|
|
101894
101965
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
101895
101966
|
constructor() {
|
|
101896
101967
|
__publicField(this, "virtualFiles", /* @__PURE__ */ new Map());
|
|
@@ -101984,32 +102055,32 @@ ${c}
|
|
|
101984
102055
|
}), r[12] = y, r[13] = z, r[14] = G) : G = r[14], G;
|
|
101985
102056
|
};
|
|
101986
102057
|
var import_compiler_runtime$1 = require_compiler_runtime(), VerticalLayoutRenderer = (e) => {
|
|
101987
|
-
let r = (0, import_compiler_runtime$1.c)(
|
|
101988
|
-
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
101989
|
-
let
|
|
101990
|
-
r[1] !== v || r[2] !==
|
|
101991
|
-
if (!
|
|
101992
|
-
let e2 =
|
|
102058
|
+
let r = (0, import_compiler_runtime$1.c)(34), { cells: c, appConfig: d, mode: f } = e, { invisible: _ } = useDelayVisibility(c.length, f), v = useAtomValue(kioskModeAtom), y = useAtomValue(kernelStateAtom), [S] = useResolvedMarimoConfig(), w = useAtomValue(showCodeInRunModeAtom), E;
|
|
102059
|
+
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = new URLSearchParams(window.location.search), r[0] = E) : E = r[0];
|
|
102060
|
+
let O = E, M;
|
|
102061
|
+
r[1] !== v || r[2] !== w ? (M = () => {
|
|
102062
|
+
if (!w) return false;
|
|
102063
|
+
let e2 = O.get(KnownQueryParams.showCode);
|
|
101993
102064
|
return e2 === null ? isStaticNotebook() || isWasm() || v : e2 === "true";
|
|
101994
|
-
}, r[1] = v, r[2] =
|
|
101995
|
-
let [
|
|
101996
|
-
r[4] !== c || r[5] !== v || r[6] !== f ? (
|
|
102065
|
+
}, r[1] = v, r[2] = w, r[3] = M) : M = r[3];
|
|
102066
|
+
let [I, z] = (0, import_react.useState)(M), G;
|
|
102067
|
+
r[4] !== c || r[5] !== v || r[6] !== f ? (G = (() => {
|
|
101997
102068
|
let e2 = c.some(_temp$1);
|
|
101998
102069
|
if (v) return true;
|
|
101999
|
-
let r2 =
|
|
102070
|
+
let r2 = O.get(KnownQueryParams.includeCode);
|
|
102000
102071
|
return f === "read" && r2 !== "false" && e2;
|
|
102001
|
-
})(), r[4] = c, r[5] = v, r[6] = f, r[7] =
|
|
102002
|
-
let
|
|
102003
|
-
r[8] !==
|
|
102072
|
+
})(), r[4] = c, r[5] = v, r[6] = f, r[7] = G) : G = r[7];
|
|
102073
|
+
let q = G, IY;
|
|
102074
|
+
r[8] !== q || r[9] !== v || r[10] !== f || r[11] !== I || r[12] !== S ? (IY = (e2) => (0, import_jsx_runtime.jsx)(VerticalCell, {
|
|
102004
102075
|
cellId: e2.id,
|
|
102005
102076
|
output: e2.output,
|
|
102006
102077
|
consoleOutputs: e2.consoleOutputs,
|
|
102007
102078
|
status: e2.status,
|
|
102008
102079
|
code: e2.code,
|
|
102009
102080
|
config: e2.config,
|
|
102010
|
-
cellOutputArea:
|
|
102081
|
+
cellOutputArea: S.display.cell_output,
|
|
102011
102082
|
stopped: e2.stopped,
|
|
102012
|
-
showCode:
|
|
102083
|
+
showCode: I && q,
|
|
102013
102084
|
errored: e2.errored,
|
|
102014
102085
|
mode: f,
|
|
102015
102086
|
runStartTimestamp: e2.runStartTimestamp,
|
|
@@ -102017,18 +102088,18 @@ ${c}
|
|
|
102017
102088
|
staleInputs: e2.staleInputs,
|
|
102018
102089
|
name: e2.name,
|
|
102019
102090
|
kiosk: v
|
|
102020
|
-
}, e2.id), r[8] =
|
|
102021
|
-
let
|
|
102022
|
-
r[14] !== d.width || r[15] !== c || r[16] !== _ || r[17] !==
|
|
102091
|
+
}, e2.id), r[8] = q, r[9] = v, r[10] = f, r[11] = I, r[12] = S, r[13] = IY) : IY = r[13];
|
|
102092
|
+
let LY = IY, RY;
|
|
102093
|
+
r[14] !== d.width || r[15] !== c || r[16] !== _ || r[17] !== y || r[18] !== LY ? (RY = () => d.width === "columns" ? (0, import_jsx_runtime.jsx)("div", {
|
|
102023
102094
|
className: "flex flex-row gap-8 w-full",
|
|
102024
102095
|
children: groupCellsByColumn(c).map((e2) => {
|
|
102025
102096
|
let [r2, c2] = e2;
|
|
102026
102097
|
return (0, import_jsx_runtime.jsx)("div", {
|
|
102027
102098
|
className: "flex-1 flex flex-col gap-2 w-(--content-width)",
|
|
102028
|
-
children: c2.map(
|
|
102099
|
+
children: c2.map(LY)
|
|
102029
102100
|
}, r2);
|
|
102030
102101
|
})
|
|
102031
|
-
}) : c.length === 0 && !_ ? (0, import_jsx_runtime.jsx)("div", {
|
|
102102
|
+
}) : c.length === 0 && !_ ? y.isInstantiated ? (0, import_jsx_runtime.jsx)("div", {
|
|
102032
102103
|
className: "flex-1 flex flex-col items-center justify-center py-8",
|
|
102033
102104
|
children: (0, import_jsx_runtime.jsxs)(Alert, {
|
|
102034
102105
|
variant: "info",
|
|
@@ -102041,35 +102112,40 @@ ${c}
|
|
|
102041
102112
|
})
|
|
102042
102113
|
]
|
|
102043
102114
|
})
|
|
102115
|
+
}) : (0, import_jsx_runtime.jsx)("div", {
|
|
102116
|
+
className: "flex-1 flex flex-col items-center justify-center py-8",
|
|
102117
|
+
children: (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
102118
|
+
className: "w-8 h-8 animate-spin text-muted-foreground"
|
|
102119
|
+
})
|
|
102044
102120
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
102045
|
-
children: c.map(
|
|
102046
|
-
}), r[14] = d.width, r[15] = c, r[16] = _, r[17] =
|
|
102047
|
-
let
|
|
102048
|
-
r[
|
|
102121
|
+
children: c.map(LY)
|
|
102122
|
+
}), r[14] = d.width, r[15] = c, r[16] = _, r[17] = y, r[18] = LY, r[19] = RY) : RY = r[19];
|
|
102123
|
+
let zY = RY, BY;
|
|
102124
|
+
r[20] !== q || r[21] !== zY || r[22] !== I ? (BY = I && q ? (0, import_jsx_runtime.jsxs)("div", {
|
|
102049
102125
|
className: "flex flex-col gap-5",
|
|
102050
102126
|
children: [
|
|
102051
102127
|
" ",
|
|
102052
|
-
|
|
102128
|
+
zY()
|
|
102053
102129
|
]
|
|
102054
|
-
}) :
|
|
102055
|
-
let BY;
|
|
102056
|
-
r[23] !== G || r[24] !== f || r[25] !== M ? (BY = f === "read" && (0, import_jsx_runtime.jsx)(ActionButtons, {
|
|
102057
|
-
canShowCode: G,
|
|
102058
|
-
showCode: M,
|
|
102059
|
-
onToggleShowCode: () => I(_temp2$1)
|
|
102060
|
-
}), r[23] = G, r[24] = f, r[25] = M, r[26] = BY) : BY = r[26];
|
|
102130
|
+
}) : zY(), r[20] = q, r[21] = zY, r[22] = I, r[23] = BY) : BY = r[23];
|
|
102061
102131
|
let VY;
|
|
102062
|
-
r[
|
|
102132
|
+
r[24] !== q || r[25] !== f || r[26] !== I ? (VY = f === "read" && (0, import_jsx_runtime.jsx)(ActionButtons, {
|
|
102133
|
+
canShowCode: q,
|
|
102134
|
+
showCode: I,
|
|
102135
|
+
onToggleShowCode: () => z(_temp2$1)
|
|
102136
|
+
}), r[24] = q, r[25] = f, r[26] = I, r[27] = VY) : VY = r[27];
|
|
102063
102137
|
let HY;
|
|
102064
|
-
|
|
102138
|
+
r[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (HY = (0, import_jsx_runtime.jsx)(FloatingOutline, {}), r[28] = HY) : HY = r[28];
|
|
102139
|
+
let UY;
|
|
102140
|
+
return r[29] !== d || r[30] !== _ || r[31] !== BY || r[32] !== VY ? (UY = (0, import_jsx_runtime.jsxs)(VerticalLayoutWrapper, {
|
|
102065
102141
|
invisible: _,
|
|
102066
102142
|
appConfig: d,
|
|
102067
102143
|
children: [
|
|
102068
|
-
zY,
|
|
102069
102144
|
BY,
|
|
102070
|
-
VY
|
|
102145
|
+
VY,
|
|
102146
|
+
HY
|
|
102071
102147
|
]
|
|
102072
|
-
}), r[
|
|
102148
|
+
}), r[29] = d, r[30] = _, r[31] = BY, r[32] = VY, r[33] = UY) : UY = r[33], UY;
|
|
102073
102149
|
}, ActionButtons = (e) => {
|
|
102074
102150
|
let r = (0, import_compiler_runtime$1.c)(26), { canShowCode: c, showCode: d, onToggleShowCode: f } = e, { readCode: _ } = useRequestClient(), v = _temp3, y = _temp4, S;
|
|
102075
102151
|
r[0] === _ ? S = r[1] : (S = async () => {
|
|
@@ -102979,14 +103055,27 @@ ${r}
|
|
|
102979
103055
|
return c ? parseIslandEditor(c.dataset.initialValue) : "";
|
|
102980
103056
|
}
|
|
102981
103057
|
const islandsInitializedAtom = atom(false), userTriedToInteractWithIslandsAtom = atom(false), shouldShowIslandsWarningIndicatorAtom = atom((e) => e(userTriedToInteractWithIslandsAtom) && e(islandsInitializedAtom) === false);
|
|
102982
|
-
var worker_default = "/assets/worker-
|
|
103058
|
+
var worker_default = "/assets/worker-D3e5wDxM.js", IslandsPyodideBridge = class e {
|
|
102983
103059
|
constructor() {
|
|
102984
103060
|
__publicField(this, "initialized", new Deferred());
|
|
102985
|
-
__publicField(this, "sendComponentValues", async (e2) => (await this.putControlRequest(
|
|
103061
|
+
__publicField(this, "sendComponentValues", async (e2) => (await this.putControlRequest({
|
|
103062
|
+
type: "update-ui-element",
|
|
103063
|
+
...e2,
|
|
103064
|
+
token: generateUUID()
|
|
103065
|
+
}), null));
|
|
102986
103066
|
__publicField(this, "sendInstantiate", async (e2) => null);
|
|
102987
|
-
__publicField(this, "sendFunctionRequest", async (e2) => (await this.putControlRequest(
|
|
102988
|
-
|
|
102989
|
-
|
|
103067
|
+
__publicField(this, "sendFunctionRequest", async (e2) => (await this.putControlRequest({
|
|
103068
|
+
type: "invoke-function",
|
|
103069
|
+
...e2
|
|
103070
|
+
}), null));
|
|
103071
|
+
__publicField(this, "sendRun", async (e2) => (await this.rpc.proxy.request.loadPackages(e2.codes.join("\n")), await this.putControlRequest({
|
|
103072
|
+
type: "execute-cells",
|
|
103073
|
+
...e2
|
|
103074
|
+
}), null));
|
|
103075
|
+
__publicField(this, "sendModelValue", async (e2) => (await this.putControlRequest({
|
|
103076
|
+
type: "update-widget-model",
|
|
103077
|
+
...e2
|
|
103078
|
+
}), null));
|
|
102990
103079
|
__publicField(this, "getUsageStats", throwNotImplemented);
|
|
102991
103080
|
__publicField(this, "sendRename", throwNotImplemented);
|
|
102992
103081
|
__publicField(this, "sendSave", throwNotImplemented);
|