@marimo-team/islands 0.19.3-dev24 → 0.19.3-dev28

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/main.js CHANGED
@@ -4,21 +4,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
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
5
  import { t as require_react } from "./react-DdA8EBol.js";
6
6
  import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
7
- import { n as Copy, r as toast, t as copyToClipboard } from "./copy-B5nooU3m.js";
7
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-ACOJ1BXr.js";
8
8
  import { h as require_cjs$1, i as Go$1, __tla as __tla_0 } from "./chunk-OGVTOU66-RMy3tlM6.js";
9
- import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive$1, M as composeEventHandlers, 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$1, 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-33P1MEPK.js";
10
- import { A as Badge, B as ListFilter, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $5a387cc49350e6db$export$722debc0e56fea39, H as ChartPie, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, O as TIME_UNIT_DESCRIPTIONS, P as $fb18d541ea1ad717$export$ad991b66133851cf, R as Table$1, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as ChartColumn, V as Hash, W as Calendar, _ 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 createReducerAndAtoms, 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 SquareFunction } from "./spec-hsYzGr6F.js";
11
- import { t as Check } from "./check-DDykH_Yi.js";
12
- import { A as logNever, B as ChevronDown, C as useDirection, D as useOnUnmount, E as useOnMount, F as $18f2051aff69b9bf$export$a54013f0d02a8f82, I as $b5e257d569688ac6$export$535bd6ca7f90a273, M as $a916eb452884faea$export$b7a616150fdb9f44, O as usePrevious, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as X, 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, k as assertNever, l as SelectTrigger, m as menuContentCommon, n as Primitive, 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-oKuiQuiM.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-DEmfj_i8.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-1wVjsLov.js";
9
+ import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive$1, M as composeEventHandlers, 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$1, 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-BOmAhdTT.js";
10
+ import { A as Badge, B as ListFilter, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $5a387cc49350e6db$export$722debc0e56fea39, H as ChartPie, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, O as TIME_UNIT_DESCRIPTIONS, P as $fb18d541ea1ad717$export$ad991b66133851cf, R as Table$1, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as ChartColumn, V as Hash, W as Calendar, _ 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 createReducerAndAtoms, 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 SquareFunction } from "./spec-BY974nhI.js";
11
+ import { t as Check } from "./check-S8ldILuD.js";
12
+ import { A as logNever, B as ChevronDown, C as useDirection, D as useOnUnmount, E as useOnMount, F as $18f2051aff69b9bf$export$a54013f0d02a8f82, I as $b5e257d569688ac6$export$535bd6ca7f90a273, M as $a916eb452884faea$export$b7a616150fdb9f44, O as usePrevious, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as X, 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, k as assertNever, l as SelectTrigger, m as menuContentCommon, n as Primitive, 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-BaX2bLJa.js";
13
+ import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $7215afc6de606d6b$export$de79e2c695e052f3, 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 $8ae05eaa5c114e9c$export$7f54fc3180508a52, 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$6446a186d09e379e, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $df56164dff5785e2$export$4338b53315abf666, 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 $c87311424ea30a05$export$fedb369cb70207f1, 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$9ac100e40613ea10, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$78551043582a6a98, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$a11b0059900ceec8, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $f4e2df6bd15f8569$export$98658e8c59125e6a, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $ff5963eb1fccf552$export$e08e3b67e392101e, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, 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 $d4ee10de306f2510$export$e58f029f0fbfdb29, 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$b4cc09c592e8fdb8, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$4282f70798064fe0, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$b204af158042fbac, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $313b98861ee5dd6c$export$d6875122194c7b44, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$cd4e5573fbe2b576, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $431fbd86ca7dc216$export$f21a1ffae260145a, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $3ef42575df84b30b$export$9d1611c77c2fe928, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $bdb11010cef70236$export$f680877a34711e37, 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-BtvDfOR-.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-Ci6rXZ_K.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-BlF-78eJ.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-D6ZIdUA3.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-C4e3s3sJ.js";
18
18
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
19
19
  import { t as require_react_dom } from "./react-dom-DJW8xUDg.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-UH0Nxilf.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-D197NGQX.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-BhqH4mGj.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-DOBJQbuy.js";
22
22
  import { t as purify } from "./purify.es-Brw-U87Q.js";
23
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-DdLjooMf.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";
@@ -5940,35 +5940,34 @@ let __tla = Promise.all([
5940
5940
  }
5941
5941
  var import_react = __toESM(require_react(), 1);
5942
5942
  function $4f58c5f72bcf79f7$export$496315a1608d9602(e, r) {
5943
- let c = (0, import_react.useRef)(true), d = (0, import_react.useRef)(null);
5943
+ let c = (0, import_react.useRef)(true), d = (0, import_react.useRef)(null), f = $8ae05eaa5c114e9c$export$7f54fc3180508a52(e);
5944
5944
  (0, import_react.useEffect)(() => (c.current = true, () => {
5945
5945
  c.current = false;
5946
5946
  }), []), (0, import_react.useEffect)(() => {
5947
- let f = d.current;
5948
- c.current ? c.current = false : (!f || r.some((e2, r2) => !Object.is(e2, f[r2]))) && e(), d.current = r;
5947
+ let e2 = d.current;
5948
+ c.current ? c.current = false : (!e2 || r.some((r2, c2) => !Object.is(r2, e2[c2]))) && f(), d.current = r;
5949
5949
  }, r);
5950
5950
  }
5951
5951
  function $9daab02d461809db$var$hasResizeObserver() {
5952
5952
  return window.ResizeObserver !== void 0;
5953
5953
  }
5954
5954
  function $9daab02d461809db$export$683480f191c0e3ea(e) {
5955
- let { ref: r, box: c, onResize: d } = e;
5955
+ let { ref: r, box: c, onResize: d } = e, f = $8ae05eaa5c114e9c$export$7f54fc3180508a52(d);
5956
5956
  (0, import_react.useEffect)(() => {
5957
5957
  let e2 = r == null ? void 0 : r.current;
5958
5958
  if (e2) if ($9daab02d461809db$var$hasResizeObserver()) {
5959
5959
  let r2 = new window.ResizeObserver((e3) => {
5960
- e3.length && d();
5960
+ e3.length && f();
5961
5961
  });
5962
5962
  return r2.observe(e2, {
5963
5963
  box: c
5964
5964
  }), () => {
5965
5965
  e2 && r2.unobserve(e2);
5966
5966
  };
5967
- } else return window.addEventListener("resize", d, false), () => {
5968
- window.removeEventListener("resize", d, false);
5967
+ } else return window.addEventListener("resize", f, false), () => {
5968
+ window.removeEventListener("resize", f, false);
5969
5969
  };
5970
5970
  }, [
5971
- d,
5972
5971
  r,
5973
5972
  c
5974
5973
  ]);
@@ -6028,11 +6027,8 @@ let __tla = Promise.all([
6028
6027
  };
6029
6028
  }
6030
6029
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, r) {
6031
- let c = $2f04cbc44ee30ce0$var$relativeOffset(e, r, "left"), d = $2f04cbc44ee30ce0$var$relativeOffset(e, r, "top"), f = r.offsetWidth, h = r.offsetHeight, _ = e.scrollLeft, v = e.scrollTop, { borderTopWidth: y, borderLeftWidth: S, scrollPaddingTop: w, scrollPaddingRight: E, scrollPaddingBottom: O, scrollPaddingLeft: M } = getComputedStyle(e), { scrollMarginTop: I, scrollMarginRight: z, scrollMarginBottom: G, scrollMarginLeft: q } = getComputedStyle(r), LY = _ + parseInt(S, 10), RY = v + parseInt(y, 10), zY = LY + e.clientWidth, BY = RY + e.clientHeight, VY = parseInt(w, 10) || 0, HY = parseInt(O, 10) || 0, UY = parseInt(E, 10) || 0, WY = parseInt(M, 10) || 0, GY = parseInt(I, 10) || 0, KY = parseInt(G, 10) || 0, qY = parseInt(z, 10) || 0, JY = c - (parseInt(q, 10) || 0), YY = c + f + qY, XY = d - GY, ZY = d + h + KY, QY = _ + parseInt(S, 10) + WY, $Y = zY - UY, eX = v + parseInt(y, 10) + VY, tX = BY - HY;
6032
- (JY > QY || YY < $Y) && (JY <= _ + WY ? _ = JY - parseInt(S, 10) - WY : YY > zY - UY && (_ += YY - zY + UY)), (XY > eX || ZY < tX) && (XY <= RY + VY ? v = XY - parseInt(y, 10) - VY : ZY > BY - HY && (v += ZY - BY + HY)), e.scrollTo({
6033
- left: _,
6034
- top: v
6035
- });
6030
+ let c = $2f04cbc44ee30ce0$var$relativeOffset(e, r, "left"), d = $2f04cbc44ee30ce0$var$relativeOffset(e, r, "top"), f = r.offsetWidth, h = r.offsetHeight, _ = e.scrollLeft, v = e.scrollTop, { borderTopWidth: y, borderLeftWidth: S, scrollPaddingTop: w, scrollPaddingRight: E, scrollPaddingBottom: O, scrollPaddingLeft: M } = getComputedStyle(e), I = _ + parseInt(S, 10), z = v + parseInt(y, 10), G = I + e.clientWidth, q = z + e.clientHeight, LY = parseInt(w, 10) || 0, RY = parseInt(O, 10) || 0, zY = parseInt(E, 10) || 0, BY = parseInt(M, 10) || 0;
6031
+ c <= _ + BY ? _ = c - parseInt(S, 10) - BY : c + f > G - zY && (_ += c + f - G + zY), d <= z + LY ? v = d - parseInt(y, 10) - LY : d + h > q - RY && (v += d + h - q + RY), e.scrollLeft = _, e.scrollTop = v;
6036
6032
  }
6037
6033
  function $2f04cbc44ee30ce0$var$relativeOffset(e, r, c) {
6038
6034
  let d = c === "left" ? "offsetLeft" : "offsetTop", f = 0;
@@ -6047,15 +6043,19 @@ let __tla = Promise.all([
6047
6043
  }
6048
6044
  function $2f04cbc44ee30ce0$export$c826860796309d1b(e, r) {
6049
6045
  if (e && document.contains(e)) {
6050
- let _ = document.scrollingElement || document.documentElement;
6051
- if (window.getComputedStyle(_).overflow !== "hidden" && !$c87311424ea30a05$export$6446a186d09e379e()) {
6046
+ let _ = document.scrollingElement || document.documentElement, v = window.getComputedStyle(_).overflow === "hidden";
6047
+ if (v) {
6048
+ let r2 = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(e);
6049
+ v || r2.push(_);
6050
+ for (let c2 of r2) $2f04cbc44ee30ce0$export$53a0910f038337bd(c2, e);
6051
+ } else {
6052
6052
  var c;
6053
- let { left: _2, top: v } = e.getBoundingClientRect();
6053
+ let { left: _2, top: v2 } = e.getBoundingClientRect();
6054
6054
  e == null || (c = e.scrollIntoView) == null || c.call(e, {
6055
6055
  block: "nearest"
6056
6056
  });
6057
6057
  let { left: y, top: S } = e.getBoundingClientRect();
6058
- if (Math.abs(_2 - y) > 1 || Math.abs(v - S) > 1) {
6058
+ if (Math.abs(_2 - y) > 1 || Math.abs(v2 - S) > 1) {
6059
6059
  var d, f, h;
6060
6060
  r == null || (f = r.containingElement) == null || (d = f.scrollIntoView) == null || d.call(f, {
6061
6061
  block: "center",
@@ -6064,9 +6064,6 @@ let __tla = Promise.all([
6064
6064
  block: "nearest"
6065
6065
  });
6066
6066
  }
6067
- } else {
6068
- let r2 = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(e);
6069
- for (let c2 of r2) $2f04cbc44ee30ce0$export$53a0910f038337bd(c2, e);
6070
6067
  }
6071
6068
  }
6072
6069
  }
@@ -6156,9 +6153,7 @@ let __tla = Promise.all([
6156
6153
  }
6157
6154
  }, [
6158
6155
  r,
6159
- d,
6160
- _,
6161
- v
6156
+ d
6162
6157
  ]);
6163
6158
  }
6164
6159
  function $e0b6e0b68ec7f50f$var$isValidEvent(e, r) {
@@ -9070,21 +9065,21 @@ let __tla = Promise.all([
9070
9065
  }, $edcf132a9284368a$var$TOTAL_SIZE = {
9071
9066
  width: "totalWidth",
9072
9067
  height: "totalHeight"
9073
- }, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE = {}, $edcf132a9284368a$var$visualViewport = typeof document < "u" ? window.visualViewport : null;
9074
- function $edcf132a9284368a$var$getContainerDimensions(e) {
9075
- let r = 0, c = 0, d = 0, f = 0, h = 0, _ = 0, v = {}, y = (($edcf132a9284368a$var$visualViewport == null ? void 0 : $edcf132a9284368a$var$visualViewport.scale) ?? 1) > 1;
9076
- if (e.tagName === "BODY") {
9077
- let y2 = document.documentElement;
9078
- d = y2.clientWidth, f = y2.clientHeight, r = ($edcf132a9284368a$var$visualViewport == null ? void 0 : $edcf132a9284368a$var$visualViewport.width) ?? d, c = ($edcf132a9284368a$var$visualViewport == null ? void 0 : $edcf132a9284368a$var$visualViewport.height) ?? f, v.top = y2.scrollTop || e.scrollTop, v.left = y2.scrollLeft || e.scrollLeft, $edcf132a9284368a$var$visualViewport && (h = $edcf132a9284368a$var$visualViewport.offsetTop, _ = $edcf132a9284368a$var$visualViewport.offsetLeft);
9079
- } else ({ width: r, height: c, top: h, left: _ } = $edcf132a9284368a$var$getOffset(e, false)), v.top = e.scrollTop, v.left = e.scrollLeft, d = r, f = c;
9080
- return $c87311424ea30a05$export$78551043582a6a98() && (e.tagName === "BODY" || e.tagName === "HTML") && y && (v.top = 0, v.left = 0, h = ($edcf132a9284368a$var$visualViewport == null ? void 0 : $edcf132a9284368a$var$visualViewport.pageTop) ?? 0, _ = ($edcf132a9284368a$var$visualViewport == null ? void 0 : $edcf132a9284368a$var$visualViewport.pageLeft) ?? 0), {
9081
- width: r,
9082
- height: c,
9083
- totalWidth: d,
9084
- totalHeight: f,
9085
- scroll: v,
9086
- top: h,
9087
- left: _
9068
+ }, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE = {}, $edcf132a9284368a$var$getVisualViewport = () => typeof document < "u" ? window.visualViewport : null;
9069
+ function $edcf132a9284368a$var$getContainerDimensions(e, r) {
9070
+ let c = 0, d = 0, f = 0, h = 0, _ = 0, v = 0, y = {}, S = ((r == null ? void 0 : r.scale) ?? 1) > 1;
9071
+ if (e.tagName === "BODY" || e.tagName === "HTML") {
9072
+ let S2 = document.documentElement;
9073
+ f = S2.clientWidth, h = S2.clientHeight, c = (r == null ? void 0 : r.width) ?? f, d = (r == null ? void 0 : r.height) ?? h, y.top = S2.scrollTop || e.scrollTop, y.left = S2.scrollLeft || e.scrollLeft, r && (_ = r.offsetTop, v = r.offsetLeft);
9074
+ } else ({ width: c, height: d, top: _, left: v } = $edcf132a9284368a$var$getOffset(e, false)), y.top = e.scrollTop, y.left = e.scrollLeft, f = c, h = d;
9075
+ return $c87311424ea30a05$export$78551043582a6a98() && (e.tagName === "BODY" || e.tagName === "HTML") && S && (y.top = 0, y.left = 0, _ = (r == null ? void 0 : r.pageTop) ?? 0, v = (r == null ? void 0 : r.pageLeft) ?? 0), {
9076
+ width: c,
9077
+ height: d,
9078
+ totalWidth: f,
9079
+ totalHeight: h,
9080
+ scroll: y,
9081
+ top: _,
9082
+ left: v
9088
9083
  };
9089
9084
  }
9090
9085
  function $edcf132a9284368a$var$getScroll(e) {
@@ -9096,7 +9091,7 @@ let __tla = Promise.all([
9096
9091
  };
9097
9092
  }
9098
9093
  function $edcf132a9284368a$var$getDelta(e, r, c, d, f, h, _) {
9099
- let v = f.scroll[e] ?? 0, y = d[$edcf132a9284368a$var$AXIS_SIZE[e]], S = d.scroll[$edcf132a9284368a$var$AXIS[e]] + h, w = y + d.scroll[$edcf132a9284368a$var$AXIS[e]] - h, E = r - v + _[e] - d[$edcf132a9284368a$var$AXIS[e]], O = r - v + c + _[e] - d[$edcf132a9284368a$var$AXIS[e]];
9094
+ let v = f.scroll[e] ?? 0, y = d[$edcf132a9284368a$var$AXIS_SIZE[e]], S = _[e] + d.scroll[$edcf132a9284368a$var$AXIS[e]] + h, w = _[e] + d.scroll[$edcf132a9284368a$var$AXIS[e]] + y - h, E = r - v + d.scroll[$edcf132a9284368a$var$AXIS[e]] + _[e] - d[$edcf132a9284368a$var$AXIS[e]], O = r - v + c + d.scroll[$edcf132a9284368a$var$AXIS[e]] + _[e] - d[$edcf132a9284368a$var$AXIS[e]];
9100
9095
  return E < S ? S - E : O > w ? Math.max(w - O, S - E) : 0;
9101
9096
  }
9102
9097
  function $edcf132a9284368a$var$getMargins(e) {
@@ -9122,61 +9117,62 @@ let __tla = Promise.all([
9122
9117
  crossSize: _
9123
9118
  }, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[e];
9124
9119
  }
9125
- function $edcf132a9284368a$var$computePosition(e, r, c, d, f, h, _, v, y, S) {
9126
- let { placement: w, crossPlacement: E, axis: O, crossAxis: M, size: I, crossSize: z } = d, G = {};
9127
- G[M] = e[M] ?? 0, E === "center" ? G[M] += ((e[z] ?? 0) - (c[z] ?? 0)) / 2 : E !== M && (G[M] += (e[z] ?? 0) - (c[z] ?? 0)), G[M] += h;
9128
- let q = e[M] - c[z] + y + S, LY = e[M] + e[z] - y - S;
9129
- if (G[M] = $9446cca9a3875146$export$7d15b64cf5a3a4c4(G[M], q, LY), w === O) {
9130
- let c2 = v ? _[I] : r[$edcf132a9284368a$var$TOTAL_SIZE[I]];
9131
- G[$edcf132a9284368a$var$FLIPPED_DIRECTION[O]] = Math.floor(c2 - e[O] + f);
9132
- } else G[O] = Math.floor(e[O] + e[I] + f);
9133
- return G;
9134
- }
9135
- function $edcf132a9284368a$var$getMaxHeight(e, r, c, d, f, h, _, v) {
9136
- let y = d ? c.height : r[$edcf132a9284368a$var$TOTAL_SIZE.height], S = e.top == null ? c.top + (y - (e.bottom ?? 0) - _) : c.top + e.top, w = v === "top" ? Math.max(0, S + _ - (r.top + (r.scroll.top ?? 0)) - ((f.top ?? 0) + (f.bottom ?? 0) + h)) : Math.max(0, r.height + r.top + (r.scroll.top ?? 0) - S - ((f.top ?? 0) + (f.bottom ?? 0) + h));
9137
- return Math.min(r.height - h * 2, w);
9138
- }
9139
- function $edcf132a9284368a$var$getAvailableSpace(e, r, c, d, f, h) {
9140
- let { placement: _, axis: v, size: y } = h;
9141
- return _ === v ? Math.max(0, c[v] - e[v] - (e.scroll[v] ?? 0) + r[v] - (d[v] ?? 0) - d[$edcf132a9284368a$var$FLIPPED_DIRECTION[v]] - f) : Math.max(0, e[y] + e[v] + e.scroll[v] - r[v] - c[v] - c[y] - (d[v] ?? 0) - d[$edcf132a9284368a$var$FLIPPED_DIRECTION[v]] - f);
9142
- }
9143
- function $edcf132a9284368a$export$6839422d1f33cee9(e, r, c, d, f, h, _, v, y, S, w, E, O, M, I, z) {
9144
- let G = $edcf132a9284368a$var$parsePlacement(e), { size: q, crossAxis: LY, crossSize: RY, placement: zY, crossPlacement: BY } = G, VY = $edcf132a9284368a$var$computePosition(r, v, c, G, w, E, S, O, I, z), HY = w, UY = $edcf132a9284368a$var$getAvailableSpace(v, S, r, f, h + w, G);
9145
- if (_ && d[q] > UY) {
9146
- let e2 = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[zY]} ${BY}`), d2 = $edcf132a9284368a$var$computePosition(r, v, c, e2, w, E, S, O, I, z);
9147
- $edcf132a9284368a$var$getAvailableSpace(v, S, r, f, h + w, e2) > UY && (G = e2, VY = d2, HY = w);
9148
- }
9149
- let WY = "bottom";
9150
- G.axis === "top" ? G.placement === "top" ? WY = "top" : G.placement === "bottom" && (WY = "bottom") : G.crossAxis === "top" && (G.crossPlacement === "top" ? WY = "bottom" : G.crossPlacement === "bottom" && (WY = "top"));
9151
- let GY = $edcf132a9284368a$var$getDelta(LY, VY[LY], c[RY], v, y, h, S);
9152
- VY[LY] += GY;
9153
- let KY = $edcf132a9284368a$var$getMaxHeight(VY, v, S, O, f, h, c.height, WY);
9154
- M && M < KY && (KY = M), c.height = Math.min(c.height, KY), VY = $edcf132a9284368a$var$computePosition(r, v, c, G, HY, E, S, O, I, z), GY = $edcf132a9284368a$var$getDelta(LY, VY[LY], c[RY], v, y, h, S), VY[LY] += GY;
9155
- let qY = {}, JY = r[LY] - VY[LY] - f[$edcf132a9284368a$var$AXIS[LY]], YY = JY + 0.5 * r[RY], XY = I / 2 + z, ZY = $edcf132a9284368a$var$AXIS[LY] === "left" ? (f.left ?? 0) + (f.right ?? 0) : (f.top ?? 0) + (f.bottom ?? 0), QY = c[RY] - ZY - I / 2 - z;
9156
- qY[LY] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(YY, r[LY] + I / 2 - (VY[LY] + f[$edcf132a9284368a$var$AXIS[LY]]), r[LY] + r[RY] - I / 2 - (VY[LY] + f[$edcf132a9284368a$var$AXIS[LY]])), XY, QY), { placement: zY, crossPlacement: BY } = G, I ? JY = qY[LY] : BY === "right" ? JY += r[RY] : BY === "center" && (JY += r[RY] / 2);
9157
- let $Y = zY === "left" || zY === "top" ? c[q] : 0, eX = {
9158
- x: zY === "top" || zY === "bottom" ? JY : $Y,
9159
- y: zY === "left" || zY === "right" ? JY : $Y
9120
+ function $edcf132a9284368a$var$computePosition(e, r, c, d, f, h, _, v, y, S, w) {
9121
+ let { placement: E, crossPlacement: O, axis: M, crossAxis: I, size: z, crossSize: G } = d, q = {};
9122
+ q[I] = e[I] ?? 0, O === "center" ? q[I] += ((e[G] ?? 0) - (c[G] ?? 0)) / 2 : O !== I && (q[I] += (e[G] ?? 0) - (c[G] ?? 0)), q[I] += h;
9123
+ let LY = e[I] - c[G] + y + S, RY = e[I] + e[G] - y - S;
9124
+ if (q[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4(q[I], LY, RY), E === M) {
9125
+ let r2 = v ? w[z] : w[$edcf132a9284368a$var$TOTAL_SIZE[z]];
9126
+ q[$edcf132a9284368a$var$FLIPPED_DIRECTION[M]] = Math.floor(r2 - e[M] + f);
9127
+ } else q[M] = Math.floor(e[M] + e[z] + f);
9128
+ return q;
9129
+ }
9130
+ function $edcf132a9284368a$var$getMaxHeight(e, r, c, d, f, h, _, v, y, S, w) {
9131
+ let E = (e.top == null ? y[$edcf132a9284368a$var$TOTAL_SIZE.height] - (e.bottom ?? 0) - _ : e.top) - (y.scroll.top ?? 0), O = S ? c.top : 0, M = {
9132
+ top: Math.max(r.top + O, ((w == null ? void 0 : w.offsetTop) ?? r.top) + O),
9133
+ bottom: Math.min(r.top + r.height + O, ((w == null ? void 0 : w.offsetTop) ?? 0) + ((w == null ? void 0 : w.height) ?? 0))
9134
+ };
9135
+ return v === "top" ? Math.max(0, E + _ - M.top - ((f.top ?? 0) + (f.bottom ?? 0) + h)) : Math.max(0, M.bottom - E - ((f.top ?? 0) + (f.bottom ?? 0) + h));
9136
+ }
9137
+ function $edcf132a9284368a$var$getAvailableSpace(e, r, c, d, f, h, _, v) {
9138
+ let { placement: y, axis: S, size: w } = h;
9139
+ return y === S ? Math.max(0, c[S] - (_.scroll[S] ?? 0) - (e[S] + (v ? r[S] : 0)) - (d[S] ?? 0) - d[$edcf132a9284368a$var$FLIPPED_DIRECTION[S]] - f) : Math.max(0, e[w] + e[S] + (v ? r[S] : 0) - c[S] - c[w] + (_.scroll[S] ?? 0) - (d[S] ?? 0) - d[$edcf132a9284368a$var$FLIPPED_DIRECTION[S]] - f);
9140
+ }
9141
+ function $edcf132a9284368a$export$6839422d1f33cee9(e, r, c, d, f, h, _, v, y, S, w, E, O, M, I, z, G, q) {
9142
+ let LY = $edcf132a9284368a$var$parsePlacement(e), { size: RY, crossAxis: zY, crossSize: BY, placement: VY, crossPlacement: HY } = LY, UY = $edcf132a9284368a$var$computePosition(r, v, c, LY, w, E, S, O, I, z, y), WY = w, GY = $edcf132a9284368a$var$getAvailableSpace(v, S, r, f, h + w, LY, y, G);
9143
+ if (_ && c[RY] > GY) {
9144
+ let e2 = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[VY]} ${HY}`), d2 = $edcf132a9284368a$var$computePosition(r, v, c, e2, w, E, S, O, I, z, y);
9145
+ $edcf132a9284368a$var$getAvailableSpace(v, S, r, f, h + w, e2, y, G) > GY && (LY = e2, UY = d2, WY = w);
9146
+ }
9147
+ let KY = "bottom";
9148
+ LY.axis === "top" ? LY.placement === "top" ? KY = "top" : LY.placement === "bottom" && (KY = "bottom") : LY.crossAxis === "top" && (LY.crossPlacement === "top" ? KY = "bottom" : LY.crossPlacement === "bottom" && (KY = "top"));
9149
+ let qY = $edcf132a9284368a$var$getDelta(zY, UY[zY], c[BY], v, y, h, S);
9150
+ UY[zY] += qY;
9151
+ let JY = $edcf132a9284368a$var$getMaxHeight(UY, v, S, O, f, h, c.height, KY, y, G, q);
9152
+ M && M < JY && (JY = M), c.height = Math.min(c.height, JY), UY = $edcf132a9284368a$var$computePosition(r, v, c, LY, WY, E, S, O, I, z, y), qY = $edcf132a9284368a$var$getDelta(zY, UY[zY], c[BY], v, y, h, S), UY[zY] += qY;
9153
+ let YY = {}, XY = r[zY] - UY[zY] - f[$edcf132a9284368a$var$AXIS[zY]], ZY = XY + 0.5 * r[BY], QY = I / 2 + z, $Y = $edcf132a9284368a$var$AXIS[zY] === "left" ? (f.left ?? 0) + (f.right ?? 0) : (f.top ?? 0) + (f.bottom ?? 0), eX = c[BY] - $Y - I / 2 - z;
9154
+ YY[zY] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(ZY, r[zY] + I / 2 - (UY[zY] + f[$edcf132a9284368a$var$AXIS[zY]]), r[zY] + r[BY] - I / 2 - (UY[zY] + f[$edcf132a9284368a$var$AXIS[zY]])), QY, eX), { placement: VY, crossPlacement: HY } = LY, I ? XY = YY[zY] : HY === "right" ? XY += r[BY] : HY === "center" && (XY += r[BY] / 2);
9155
+ let tX = VY === "left" || VY === "top" ? c[RY] : 0, nX = {
9156
+ x: VY === "top" || VY === "bottom" ? XY : tX,
9157
+ y: VY === "left" || VY === "right" ? XY : tX
9160
9158
  };
9161
9159
  return {
9162
- position: VY,
9163
- maxHeight: KY,
9164
- arrowOffsetLeft: qY.left,
9165
- arrowOffsetTop: qY.top,
9166
- placement: zY,
9167
- triggerAnchorPoint: eX
9160
+ position: UY,
9161
+ maxHeight: JY,
9162
+ arrowOffsetLeft: YY.left,
9163
+ arrowOffsetTop: YY.top,
9164
+ placement: VY,
9165
+ triggerAnchorPoint: nX
9168
9166
  };
9169
9167
  }
9170
9168
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
9171
- let { placement: r, targetNode: c, overlayNode: d, scrollNode: f, padding: h, shouldFlip: _, boundaryElement: v, offset: y, crossOffset: S, maxHeight: w, arrowSize: E = 0, arrowBoundaryOffset: O = 0 } = e, M = d instanceof HTMLElement ? $edcf132a9284368a$var$getContainingBlock(d) : document.documentElement, I = M === document.documentElement, z = window.getComputedStyle(M).position, G = !!z && z !== "static", q = I ? $edcf132a9284368a$var$getOffset(c, false) : $edcf132a9284368a$var$getPosition(c, M, false);
9172
- if (!I) {
9169
+ let { placement: r, targetNode: c, overlayNode: d, scrollNode: f, padding: h, shouldFlip: _, boundaryElement: v, offset: y, crossOffset: S, maxHeight: w, arrowSize: E = 0, arrowBoundaryOffset: O = 0 } = e, M = $edcf132a9284368a$var$getVisualViewport(), I = d instanceof HTMLElement ? $edcf132a9284368a$var$getContainingBlock(d) : document.documentElement, z = I === document.documentElement, G = window.getComputedStyle(I).position, q = !!G && G !== "static", LY = z ? $edcf132a9284368a$var$getOffset(c, false) : $edcf132a9284368a$var$getPosition(c, I, false);
9170
+ if (!z) {
9173
9171
  let { marginTop: e2, marginLeft: r2 } = window.getComputedStyle(c);
9174
- q.top += parseInt(e2, 10) || 0, q.left += parseInt(r2, 10) || 0;
9172
+ LY.top += parseInt(e2, 10) || 0, LY.left += parseInt(r2, 10) || 0;
9175
9173
  }
9176
- let LY = $edcf132a9284368a$var$getOffset(d, true), RY = $edcf132a9284368a$var$getMargins(d);
9177
- LY.width += (RY.left ?? 0) + (RY.right ?? 0), LY.height += (RY.top ?? 0) + (RY.bottom ?? 0);
9178
- let zY = $edcf132a9284368a$var$getScroll(f), BY = $edcf132a9284368a$var$getContainerDimensions(v), VY = $edcf132a9284368a$var$getContainerDimensions(M), HY = v.tagName === "BODY" ? $edcf132a9284368a$var$getOffset(M, false) : $edcf132a9284368a$var$getPosition(M, v, false);
9179
- return M.tagName === "HTML" && v.tagName === "BODY" && (VY.scroll.top = 0, VY.scroll.left = 0), $edcf132a9284368a$export$6839422d1f33cee9(r, q, LY, zY, RY, h, _, BY, VY, HY, y, S, G, w, E, O);
9174
+ let RY = $edcf132a9284368a$var$getOffset(d, true), zY = $edcf132a9284368a$var$getMargins(d);
9175
+ return RY.width += (zY.left ?? 0) + (zY.right ?? 0), RY.height += (zY.top ?? 0) + (zY.bottom ?? 0), $edcf132a9284368a$export$6839422d1f33cee9(r, LY, RY, $edcf132a9284368a$var$getScroll(f), zY, h, _, $edcf132a9284368a$var$getContainerDimensions(v, M), $edcf132a9284368a$var$getContainerDimensions(I, M), $edcf132a9284368a$var$getPosition(v, I, false), y, S, q, w, E, O, v.contains(I), M);
9180
9176
  }
9181
9177
  function $edcf132a9284368a$export$4b834cebd9e5cebe(e, r) {
9182
9178
  let { top: c, left: d, width: f, height: h } = e.getBoundingClientRect();
@@ -41871,7 +41867,7 @@ ${c.sqlString}
41871
41867
  $d34552a7550967e7$exports = {
41872
41868
  rangeOverflow: (e) => `\uAC12\uC740 ${e.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,
41873
41869
  rangeReversed: "\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",
41874
- rangeUnderflow: (e) => `\uAC12\uC740 ${e.minValue} \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,
41870
+ rangeUnderflow: (e) => `\uAC12\uC740 ${e.minValue} \uC774\uD6C4\uC5EC\uC57C \uD569\uB2C8\uB2E4.`,
41875
41871
  unavailableDate: "\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."
41876
41872
  };
41877
41873
  var $8f855bffe63f6eca$exports = {};
@@ -43272,7 +43268,7 @@ ${c.sqlString}
43272
43268
  ...$3ef42575df84b30b$export$9d1611c77c2fe928(v, h),
43273
43269
  ref: r,
43274
43270
  style: d,
43275
- className: f || "react-aria-CalendarGridHeader"
43271
+ className: f ?? "react-aria-CalendarGridHeader"
43276
43272
  }, import_react.createElement("tr", null, _.map((e2, r2) => import_react.cloneElement(c(e2), {
43277
43273
  key: r2
43278
43274
  }))));
@@ -43298,7 +43294,7 @@ ${c.sqlString}
43298
43294
  ...w,
43299
43295
  ref: r,
43300
43296
  style: d,
43301
- className: f || "react-aria-CalendarGridBody"
43297
+ className: f ?? "react-aria-CalendarGridBody"
43302
43298
  }, [
43303
43299
  ...Array(S).keys()
43304
43300
  ].map((e2) => import_react.createElement("tr", {
@@ -43648,7 +43644,9 @@ ${c.sqlString}
43648
43644
  isDisabled: _.isDisabled
43649
43645
  }, _.segments.map((e2, r2) => (0, import_react.cloneElement)(d(e2), {
43650
43646
  key: r2
43651
- }))), import_react.createElement($3985021b0ad6602f$export$f5b8910cec6cf069, null));
43647
+ }))), import_react.createElement($3985021b0ad6602f$export$f5b8910cec6cf069, {
43648
+ className: ""
43649
+ }));
43652
43650
  }), $40825cdb76e74f70$export$336ab7fa954c4b5f = (0, import_react.forwardRef)(function({ segment: e, ...r }, c) {
43653
43651
  let d = (0, import_react.useContext)($40825cdb76e74f70$export$3b08bebcf796eea0), f = (0, import_react.useContext)($40825cdb76e74f70$export$5d8dc44abd10a920), h = d ?? f, _ = $df56164dff5785e2$export$4338b53315abf666(c), { segmentProps: v } = $32489daedd52963e$export$1315d136e6f7581(e, h, _), { focusProps: y, isFocused: S, isFocusVisible: w } = $f7dceffc5ad7768b$export$4e328f61c538687f(), { hoverProps: E, isHovered: O } = $6179b936705e76d3$export$ae780daf29e6d456({
43654
43652
  ...r,
@@ -58041,7 +58039,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
58041
58039
  hasConsoleOutput: (_ == null ? void 0 : _.consoleOutputs) != null
58042
58040
  };
58043
58041
  }
58044
- const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-Bda9cY1_.js"));
58042
+ const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-vYraVrwE.js"));
58045
58043
  var import_compiler_runtime$112 = require_compiler_runtime(), extensions = [
58046
58044
  EditorView.lineWrapping
58047
58045
  ], SUPPORTED_LANGUAGES = /* @__PURE__ */ new Set([
@@ -72102,7 +72100,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
72102
72100
  function getVegaFieldTypes(e) {
72103
72101
  return !e || Object.keys(e).length === 0 ? "auto" : Objects.mapValues(e, (e2) => e2 === "date" || e2 === "time" ? "string" : e2 === "datetime" ? "date" : e2);
72104
72102
  }
72105
- var import_compiler_runtime$84 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-Bv8bVIJ9.js").then(async (m2) => {
72103
+ var import_compiler_runtime$84 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-CmGweudS.js").then(async (m2) => {
72106
72104
  await m2.__tla;
72107
72105
  return m2;
72108
72106
  }));
@@ -83760,7 +83758,7 @@ ${c}
83760
83758
  fullWidth: v,
83761
83759
  children: z
83762
83760
  }), r[19] = v, r[20] = y, r[21] = c, r[22] = z, r[23] = G) : G = r[23], G;
83763
- }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-BIfUtj_S.js"));
83761
+ }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-NOmLZzDZ.js"));
83764
83762
  const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object$1({
83765
83763
  label: string$2().nullish(),
83766
83764
  data: string$2()
@@ -94082,7 +94080,7 @@ ${c}
94082
94080
  return true;
94083
94081
  }
94084
94082
  }
94085
- var LazyVegaComponent = import_react.lazy(() => import("./vega-component-BGTsperM.js")), VegaPlugin = class {
94083
+ var LazyVegaComponent = import_react.lazy(() => import("./vega-component-7FCbq3L9.js")), VegaPlugin = class {
94086
94084
  constructor() {
94087
94085
  __publicField(this, "tagName", "marimo-vega");
94088
94086
  __publicField(this, "validator", object$1({
@@ -94222,7 +94220,7 @@ ${c}
94222
94220
  children: e.children
94223
94221
  });
94224
94222
  }
94225
- }, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-CJJp5XN4.js"));
94223
+ }, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-BHWhzwDN.js"));
94226
94224
  const DownloadPlugin = createPlugin("marimo-download").withData(object$1({
94227
94225
  data: string$2(),
94228
94226
  disabled: boolean$2().default(false),
@@ -100663,7 +100661,7 @@ Defaulting to \`null\`.`;
100663
100661
  cells: []
100664
100662
  })
100665
100663
  };
100666
- var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-CJJp5XN4.js"));
100664
+ var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-BHWhzwDN.js"));
100667
100665
  const SlidesLayoutRenderer = (e) => {
100668
100666
  let r = (0, import_compiler_runtime$8.c)(11), { cells: c, mode: d } = e, f = d === "read", h;
100669
100667
  if (r[0] !== c || r[1] !== d) {
@@ -100905,7 +100903,7 @@ Defaulting to \`null\`.`;
100905
100903
  }
100906
100904
  var import_compiler_runtime$6 = require_compiler_runtime();
100907
100905
  const NameCellContentEditable = (e) => {
100908
- let r = (0, import_compiler_runtime$6.c)(13), { value: c, cellId: d, className: f } = e, { updateCellName: h } = useCellActions(), _;
100906
+ let r = (0, import_compiler_runtime$6.c)(12), { value: c, cellId: d, className: f } = e, { updateCellName: h } = useCellActions(), _;
100909
100907
  r[0] !== d || r[1] !== h ? (_ = (e2) => h({
100910
100908
  cellId: d,
100911
100909
  name: e2
@@ -100914,22 +100912,20 @@ Defaulting to \`null\`.`;
100914
100912
  if (isInternalCellName(c)) return null;
100915
100913
  let y = v.focusing ? "" : "text-ellipsis", S;
100916
100914
  r[3] !== f || r[4] !== y ? (S = cn("outline-hidden border hover:border-cyan-500/40 focus:border-cyan-500/40", y, f), r[3] = f, r[4] = y, r[5] = S) : S = r[5];
100917
- let w = v.onChange, E = v.onBlur, O = v.onFocus, M;
100918
- r[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = Events.onEnter(_temp$3), r[6] = M) : M = r[6];
100919
- let I;
100920
- return r[7] !== v.onBlur || r[8] !== v.onChange || r[9] !== v.onFocus || r[10] !== S || r[11] !== c ? (I = (0, import_jsx_runtime.jsx)(Tooltip, {
100915
+ let w;
100916
+ return r[6] !== v.onBlur || r[7] !== v.onChange || r[8] !== v.onFocus || r[9] !== S || r[10] !== c ? (w = (0, import_jsx_runtime.jsx)(Tooltip, {
100921
100917
  content: "Click to rename",
100922
100918
  children: (0, import_jsx_runtime.jsx)("span", {
100923
100919
  className: S,
100924
100920
  contentEditable: true,
100925
100921
  suppressContentEditableWarning: true,
100926
- onChange: w,
100927
- onBlur: E,
100928
- onFocus: O,
100929
- onKeyDown: M,
100922
+ onChange: v.onChange,
100923
+ onBlur: v.onBlur,
100924
+ onFocus: v.onFocus,
100925
+ onKeyDown: _temp$3,
100930
100926
  children: c
100931
100927
  })
100932
- }), r[7] = v.onBlur, r[8] = v.onChange, r[9] = v.onFocus, r[10] = S, r[11] = c, r[12] = I) : I = r[12], I;
100928
+ }), r[6] = v.onBlur, r[7] = v.onChange, r[8] = v.onFocus, r[9] = S, r[10] = c, r[11] = w) : w = r[11], w;
100933
100929
  };
100934
100930
  function useCellNameInput(e, r) {
100935
100931
  let [c, d] = (0, import_react.useState)(e), [f, h] = (0, import_react.useState)(false), _ = (c2) => {
@@ -100960,7 +100956,7 @@ Defaulting to \`null\`.`;
100960
100956
  };
100961
100957
  }
100962
100958
  function _temp$3(e) {
100963
- e.target instanceof HTMLElement && e.target.blur();
100959
+ e.stopPropagation(), e.key === "Enter" && e.target instanceof HTMLElement && e.target.blur();
100964
100960
  }
100965
100961
  var import_compiler_runtime$5 = require_compiler_runtime(), wrapTextAtom = atomWithStorage("marimo:console:wrapText", false, jotaiJsonStorage);
100966
100962
  function useWrapText() {
@@ -101161,7 +101157,7 @@ Defaulting to \`null\`.`;
101161
101157
  return Logger.warn("Failed to get version from mount config"), null;
101162
101158
  }
101163
101159
  }
101164
- const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.3-dev24"), showCodeInRunModeAtom = atom(true);
101160
+ const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.3-dev28"), showCodeInRunModeAtom = atom(true);
101165
101161
  atom(null);
101166
101162
  var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
101167
101163
  constructor() {
@@ -1,7 +1,7 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DdA8EBol.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
4
- import { o as useEventListener, t as Button, u as cn } from "./button-BlF-78eJ.js";
4
+ import { o as useEventListener, t as Button, u as cn } from "./button-D6ZIdUA3.js";
5
5
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
6
6
  import { t as useIframeCapabilities } from "./useIframeCapabilities-BsIPDupA.js";
7
7
  var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1);
@@ -1,9 +1,9 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DdA8EBol.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
4
- import { N as createLucideIcon } from "./Combination-33P1MEPK.js";
5
- import { A as logNever, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, j as upperFirst_default } from "./label-oKuiQuiM.js";
6
- import { a as cva, u as cn } from "./button-BlF-78eJ.js";
4
+ import { N as createLucideIcon } from "./Combination-BOmAhdTT.js";
5
+ import { A as logNever, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, j as upperFirst_default } from "./label-BaX2bLJa.js";
6
+ import { a as cva, u as cn } from "./button-D6ZIdUA3.js";
7
7
  import { s as Logger } from "./hotkeys-C4e3s3sJ.js";
8
8
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
9
9
  import { x as atom, y as useSetAtom } from "./useTheme-DdLjooMf.js";