@marimo-team/islands 0.24.3-dev39 → 0.24.3-dev40

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.
Files changed (87) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DeiKXaGB.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1062 -1062
  2. package/dist/ErrorBoundary-CacTZz7K.js +200 -0
  3. package/dist/{abnfDiagram-VCTEODGH-DKNGRyhn.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +2 -2
  4. package/dist/{any-language-editor-BdvsE_1G.js → any-language-editor-CycIVIeP.js} +13 -13
  5. package/dist/{architectureDiagram-5GKGNRK7-C9oCEyV-.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +1 -1
  6. package/dist/{html-to-image-CZm_DMIE.js → cells-BSgNCBZ8.js} +5177 -8831
  7. package/dist/{chat-ui-D15itIKJ.js → chat-ui-CygzVJ9s.js} +1345 -1394
  8. package/dist/{check-mcQyZmFG.js → check-B7cIK6gb.js} +1 -1
  9. package/dist/{chunk-IMKFNOWR-ByL0a1rh.js → chunk-IMKFNOWR-BfwTebD0.js} +1 -1
  10. package/dist/{chunk-SHT3W25Y-D1Nb5X1c.js → chunk-SHT3W25Y-BspJEJ5H.js} +1 -1
  11. package/dist/{chunk-SVP7TREG-BShKxcfD.js → chunk-SVP7TREG-DX3rFNTe.js} +1 -1
  12. package/dist/{chunk-TICWLB2K-zpDbKPt8.js → chunk-TICWLB2K-fVF7Uujg.js} +1 -1
  13. package/dist/{classDiagram-ZZMXUADV-qcsoIIQw.js → classDiagram-ZZMXUADV-Fe-V14Sc.js} +2 -2
  14. package/dist/{classDiagram-v2-VYDZK3BY-CAgMct5x.js → classDiagram-v2-VYDZK3BY-xTDg7lOs.js} +2 -2
  15. package/dist/code-visibility-BBNwvBcV.js +138 -0
  16. package/dist/{common-eNTtBSo2.js → common-DM3lblo7.js} +5531 -5730
  17. package/dist/copy-icon-CLdENY__.js +190 -0
  18. package/dist/{cynefinDiagram-5FMLGOSQ-BzBXigwN.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +1 -1
  19. package/dist/{dagre-GXQ25YYZ-B-75J283.js → dagre-GXQ25YYZ-xHNAUTyG.js} +1 -1
  20. package/dist/{data-grid-overlay-editor-DMu5X3F1.js → data-grid-overlay-editor-DjRvSwGI.js} +1 -1
  21. package/dist/{diagram-S7CK7UJ4-Bzr5oWc0.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +1 -1
  22. package/dist/{diagram-UQ7AKVKN-CVIH_HJ_.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +1 -1
  23. package/dist/{diagram-VX7I27RA-BmoMwYLC.js → diagram-VX7I27RA-BMwGFVD6.js} +1 -1
  24. package/dist/{diagram-Z3DM3KII-BW1w6mnj.js → diagram-Z3DM3KII--KLDR9Pl.js} +1 -1
  25. package/dist/dialog-CgNq6y9-.js +94 -0
  26. package/dist/{objectWithoutPropertiesLoose-BbiTb8zy.js → dist-CO1AwwG_.js} +516 -572
  27. package/dist/{dropdown-menu-WMrB1UnI.js → dropdown-menu-CZgjYSAh.js} +1437 -2793
  28. package/dist/{ebnfDiagram-PWID7BFC-90Q6gkC0.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +2 -2
  29. package/dist/{erDiagram-RLTQ6QDP-BZkLy3TR.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1 -1
  30. package/dist/error-banner-B94dcDmP.js +391 -0
  31. package/dist/error-entries-iJn-Nryx.js +56 -0
  32. package/dist/{esm-qM9GvHZi.js → esm-h8f7-1CJ.js} +316 -315
  33. package/dist/feedback-button-BkFFL-wb.js +380 -0
  34. package/dist/{flowDiagram-HODETNUW-CD1F_wj5.js → flowDiagram-HODETNUW-6dMdB8pR.js} +2 -2
  35. package/dist/{formats-B-gajYGs.js → formats-BR5iGb4s.js} +1 -1
  36. package/dist/{glide-data-editor-DzFEatOq.js → glide-data-editor-CeAOHG6x.js} +117 -116
  37. package/dist/{glide-utils-4WmLlefP.js → glide-utils-B3rUT5PI.js} +2 -2
  38. package/dist/globals-C74RodJy.js +19 -0
  39. package/dist/html-to-image-kpuRfdfZ.js +3253 -0
  40. package/dist/{infoDiagram-27XIBGKW-t0zIIRVa.js → infoDiagram-27XIBGKW-BagtCX_5.js} +1 -1
  41. package/dist/{ishikawaDiagram-5VMMS53U-DtQUIYgx.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +1 -1
  42. package/dist/{kanban-definition-UXKFOSKX-CUMmwuNB.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +1 -1
  43. package/dist/{label-e37ixur5.js → label-BJ49YTvk.js} +1 -1
  44. package/dist/main.js +4717 -4728
  45. package/dist/{mermaid-CMLxoJ0m.js → mermaid-DPNuhemn.js} +35 -35
  46. package/dist/{mindmap-definition-YA3MSWOX-DnbkiQla.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +1 -1
  47. package/dist/{number-overlay-editor-lGqRHkFt.js → number-overlay-editor-DDyIkEk3.js} +1 -1
  48. package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
  49. package/dist/{pegDiagram-XKGWAZYB-qgqAYMdv.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +2 -2
  50. package/dist/{pieDiagram-E7YTZNPT-DJUB6w6B.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +1 -1
  51. package/dist/{process-output-DuupNR0m.js → process-output-DFe2tVIY.js} +7 -6
  52. package/dist/{railroadDiagram-O6MQD6OU-C0dtw4sR.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +2 -2
  53. package/dist/{requirementDiagram-BXWQKSXE-DqaTsUuC.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +1 -1
  54. package/dist/{reveal-component-CNqmC7b6.js → reveal-component-CRy68FxJ.js} +625 -625
  55. package/dist/{select-UMOSCa3W.js → select-C6plhmZr.js} +308 -553
  56. package/dist/{sequenceDiagram-WJ2MYXX4-D2NyWGuu.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +1 -1
  57. package/dist/{spec-BiD5y7ft.js → spec-CAYwFeV6.js} +4 -4
  58. package/dist/{stateDiagram-D77RDMKH-JChw35bc.js → stateDiagram-D77RDMKH-orN6AwMx.js} +2 -2
  59. package/dist/{stateDiagram-v2-MP3YSRHH-BfVY7OxA.js → stateDiagram-v2-MP3YSRHH-o05_rJN8.js} +2 -2
  60. package/dist/{swimlanes-42K2YHIH-eAB6utyY.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1 -1
  61. package/dist/{swimlanesDiagram-VR7AAH4N-Cnpd2YtA.js → swimlanesDiagram-VR7AAH4N-D_nFQfRc.js} +2 -2
  62. package/dist/{timeline-definition-24CTP7MA-DlnODX3U.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +1 -1
  63. package/dist/{toDate-0cxDmdsp.js → toDate-WXg1yLcI.js} +2 -2
  64. package/dist/toast-DvY70eFX.js +1834 -0
  65. package/dist/tooltip-qB8NlSqV.js +1742 -0
  66. package/dist/{schemas-BDZr-nP0.js → use-restore-focus-D5D9xEjZ.js} +1385 -1166
  67. package/dist/{useAsyncData-DCIhDLCe.js → useAsyncData-BD6AStMt.js} +1 -1
  68. package/dist/{useDateFormatter-BKpQHt-W.js → useDateFormatter-BRTPsUK7.js} +2 -2
  69. package/dist/{useDeepCompareMemoize-CLaZB7Gc.js → useDeepCompareMemoize-D_HNdyvI.js} +1 -1
  70. package/dist/{useLifecycle-C1ViBACC.js → useLifecycle-DPgiiwwU.js} +2 -2
  71. package/dist/useNumberFormatter-BfDpa21j.js +251 -0
  72. package/dist/{useTheme-Da9LJvrQ.js → useTheme-DzXmYZ5V.js} +83 -83
  73. package/dist/{vega-component-Bt6d8B4Q.js → vega-component-D0QXopU8.js} +27 -27
  74. package/dist/{vennDiagram-4TSXK5OY-B_m5KxUg.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +1 -1
  75. package/dist/{wardleyDiagram-VM6X3IG4-Dw-Lgv3D.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +1 -1
  76. package/dist/{xychartDiagram-S5SC5T6Z-BjfRms1e.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +1 -1
  77. package/package.json +1 -1
  78. package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
  79. package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
  80. package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
  81. package/src/components/editor/chrome/components/feedback-button.tsx +53 -33
  82. package/src/components/ui/use-toast.ts +8 -0
  83. package/dist/ErrorBoundary-B3IKS4qY.js +0 -125
  84. package/dist/copy-C0N4m1lm.js +0 -141
  85. package/dist/dist-6ChWbo8z.js +0 -1360
  86. package/dist/error-banner-hCaH06e3.js +0 -611
  87. package/dist/tooltip-CdE8k0pS.js +0 -390
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-ofJbxM4x.js";
3
3
  import { t as n } from "./compiler-runtime-Cj8ZWiNS.js";
4
- import { A as r } from "./useTheme-Da9LJvrQ.js";
4
+ import { A as r } from "./useTheme-DzXmYZ5V.js";
5
5
  import { t as i } from "./invariant-DLmrl-hA.js";
6
6
  //#region src/hooks/useAsyncData.ts
7
7
  var a = n(), o = /* @__PURE__ */ e(t(), 1), s = {
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-ofJbxM4x.js";
3
- import { u as n } from "./dist-6ChWbo8z.js";
4
- import { E as r } from "./select-UMOSCa3W.js";
3
+ import { g as n } from "./tooltip-qB8NlSqV.js";
4
+ import { r } from "./useNumberFormatter-BfDpa21j.js";
5
5
  var i = n("chart-pie", [["path", {
6
6
  d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
7
7
  key: "pzmjnu"
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-ofJbxM4x.js";
3
- import { k as n } from "./useTheme-Da9LJvrQ.js";
3
+ import { k as n } from "./useTheme-DzXmYZ5V.js";
4
4
  //#region src/hooks/useDeepCompareMemoize.ts
5
5
  var r = /* @__PURE__ */ e(t(), 1);
6
6
  function i(e) {
@@ -2,9 +2,9 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { g as t, h as n, r } from "./button-DdXAm8iz.js";
3
3
  import { t as i } from "./react-ofJbxM4x.js";
4
4
  import { t as a } from "./compiler-runtime-Cj8ZWiNS.js";
5
- import { u as o } from "./dist-6ChWbo8z.js";
5
+ import { g as o } from "./tooltip-qB8NlSqV.js";
6
6
  import { t as s } from "./jsx-runtime-DgDPJV9S.js";
7
- import { E as c, w as l } from "./useTheme-Da9LJvrQ.js";
7
+ import { E as c, w as l } from "./useTheme-DzXmYZ5V.js";
8
8
  var u = o("calendar", [
9
9
  ["path", {
10
10
  d: "M8 2v4",
@@ -0,0 +1,251 @@
1
+ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
+ import { t } from "./react-ofJbxM4x.js";
3
+ //#region ../node_modules/.pnpm/@react-aria+ssr@3.9.10_react@19.2.8/node_modules/@react-aria/ssr/dist/SSRProvider.mjs
4
+ var n = /* @__PURE__ */ e(t(), 1), r = {
5
+ prefix: String(Math.round(Math.random() * 1e10)),
6
+ current: 0
7
+ }, i = /*#__PURE__*/ n.createContext(r), a = /*#__PURE__*/ n.createContext(!1);
8
+ typeof window < "u" && window.document && window.document.createElement;
9
+ var o = /* @__PURE__ */ new WeakMap();
10
+ function s(e = !1) {
11
+ let t = (0, n.useContext)(i), r = (0, n.useRef)(null);
12
+ if (r.current === null && !e) {
13
+ let e = n.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
14
+ if (e) {
15
+ let n = o.get(e);
16
+ n == null ? o.set(e, {
17
+ id: t.current,
18
+ state: e.memoizedState
19
+ }) : e.memoizedState !== n.state && (t.current = n.id, o.delete(e));
20
+ }
21
+ r.current = ++t.current;
22
+ }
23
+ return r.current;
24
+ }
25
+ function c(e) {
26
+ let t = (0, n.useContext)(i), r = s(!!e), a = `react-aria${t.prefix}`;
27
+ return e || `${a}-${r}`;
28
+ }
29
+ function l(e) {
30
+ let t = n.useId(), [i] = (0, n.useState)(m()), a = i ? "react-aria" : `react-aria${r.prefix}`;
31
+ return e || `${a}-${t}`;
32
+ }
33
+ var u = typeof n.useId == "function" ? l : c;
34
+ function d() {
35
+ return !1;
36
+ }
37
+ function f() {
38
+ return !0;
39
+ }
40
+ function p(e) {
41
+ return () => {};
42
+ }
43
+ function m() {
44
+ return typeof n.useSyncExternalStore == "function" ? n.useSyncExternalStore(p, d, f) : (0, n.useContext)(a);
45
+ }
46
+ //#endregion
47
+ //#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/utils.mjs
48
+ var h = /* @__PURE__ */ new Set([
49
+ "Arab",
50
+ "Syrc",
51
+ "Samr",
52
+ "Mand",
53
+ "Thaa",
54
+ "Mend",
55
+ "Nkoo",
56
+ "Adlm",
57
+ "Rohg",
58
+ "Hebr"
59
+ ]), g = /* @__PURE__ */ new Set([
60
+ "ae",
61
+ "ar",
62
+ "arc",
63
+ "bcc",
64
+ "bqi",
65
+ "ckb",
66
+ "dv",
67
+ "fa",
68
+ "glk",
69
+ "he",
70
+ "ku",
71
+ "mzn",
72
+ "nqo",
73
+ "pnb",
74
+ "ps",
75
+ "sd",
76
+ "ug",
77
+ "ur",
78
+ "yi"
79
+ ]);
80
+ function _(e) {
81
+ if (Intl.Locale) {
82
+ let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
83
+ if (n) return n.direction === "rtl";
84
+ if (t.script) return h.has(t.script);
85
+ }
86
+ let t = e.split("-")[0];
87
+ return g.has(t);
88
+ }
89
+ //#endregion
90
+ //#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/useDefaultLocale.mjs
91
+ var v = Symbol.for("react-aria.i18n.locale");
92
+ function y() {
93
+ let e = typeof window < "u" && window[v] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
94
+ try {
95
+ Intl.DateTimeFormat.supportedLocalesOf([e]);
96
+ } catch {
97
+ e = "en-US";
98
+ }
99
+ return {
100
+ locale: e,
101
+ direction: _(e) ? "rtl" : "ltr"
102
+ };
103
+ }
104
+ var b = y(), x = /* @__PURE__ */ new Set();
105
+ function S() {
106
+ b = y();
107
+ for (let e of x) e(b);
108
+ }
109
+ function C() {
110
+ let e = m(), [t, r] = (0, n.useState)(b);
111
+ return (0, n.useEffect)(() => (x.size === 0 && window.addEventListener("languagechange", S), x.add(r), () => {
112
+ x.delete(r), x.size === 0 && window.removeEventListener("languagechange", S);
113
+ }), []), e ? {
114
+ locale: typeof window < "u" && window[v] || "en-US",
115
+ direction: "ltr"
116
+ } : t;
117
+ }
118
+ //#endregion
119
+ //#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/context.mjs
120
+ var w = /*#__PURE__*/ n.createContext(null);
121
+ function T(e) {
122
+ let { locale: t, children: r } = e, i = n.useMemo(() => ({
123
+ locale: t,
124
+ direction: _(t) ? "rtl" : "ltr"
125
+ }), [t]);
126
+ return /*#__PURE__*/ n.createElement(w.Provider, { value: i }, r);
127
+ }
128
+ function E(e) {
129
+ let { children: t } = e, r = C();
130
+ return /*#__PURE__*/ n.createElement(w.Provider, { value: r }, t);
131
+ }
132
+ function D(e) {
133
+ let { locale: t, children: r } = e;
134
+ return t ? /*#__PURE__*/ n.createElement(T, {
135
+ locale: t,
136
+ children: r
137
+ }) : /*#__PURE__*/ n.createElement(E, { children: r });
138
+ }
139
+ function O() {
140
+ let e = C();
141
+ return (0, n.useContext)(w) || e;
142
+ }
143
+ //#endregion
144
+ //#region ../node_modules/.pnpm/@internationalized+number@3.6.5/node_modules/@internationalized/number/dist/NumberFormatter.mjs
145
+ var k = /* @__PURE__ */ new Map(), A = !1;
146
+ try {
147
+ A = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
148
+ } catch {}
149
+ var j = !1;
150
+ try {
151
+ j = new Intl.NumberFormat("de-DE", {
152
+ style: "unit",
153
+ unit: "degree"
154
+ }).resolvedOptions().style === "unit";
155
+ } catch {}
156
+ var M = { degree: { narrow: {
157
+ default: "°",
158
+ "ja-JP": " 度",
159
+ "zh-TW": "度",
160
+ "sl-SI": " °"
161
+ } } }, N = class {
162
+ format(e) {
163
+ let t = "";
164
+ if (t = !A && this.options.signDisplay != null ? F(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), this.options.style === "unit" && !j) {
165
+ let { unit: e, unitDisplay: n = "short", locale: r } = this.resolvedOptions();
166
+ if (!e) return t;
167
+ let i = M[e]?.[n];
168
+ t += i[r] || i.default;
169
+ }
170
+ return t;
171
+ }
172
+ formatToParts(e) {
173
+ return this.numberFormatter.formatToParts(e);
174
+ }
175
+ formatRange(e, t) {
176
+ if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, t);
177
+ if (t < e) throw RangeError("End date must be >= start date");
178
+ return `${this.format(e)} \u{2013} ${this.format(t)}`;
179
+ }
180
+ formatRangeToParts(e, t) {
181
+ if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, t);
182
+ if (t < e) throw RangeError("End date must be >= start date");
183
+ let n = this.numberFormatter.formatToParts(e), r = this.numberFormatter.formatToParts(t);
184
+ return [
185
+ ...n.map((e) => ({
186
+ ...e,
187
+ source: "startRange"
188
+ })),
189
+ {
190
+ type: "literal",
191
+ value: " – ",
192
+ source: "shared"
193
+ },
194
+ ...r.map((e) => ({
195
+ ...e,
196
+ source: "endRange"
197
+ }))
198
+ ];
199
+ }
200
+ resolvedOptions() {
201
+ let e = this.numberFormatter.resolvedOptions();
202
+ return !A && this.options.signDisplay != null && (e = {
203
+ ...e,
204
+ signDisplay: this.options.signDisplay
205
+ }), !j && this.options.style === "unit" && (e = {
206
+ ...e,
207
+ style: "unit",
208
+ unit: this.options.unit,
209
+ unitDisplay: this.options.unitDisplay
210
+ }), e;
211
+ }
212
+ constructor(e, t = {}) {
213
+ this.numberFormatter = P(e, t), this.options = t;
214
+ }
215
+ };
216
+ function P(e, t = {}) {
217
+ let { numberingSystem: n } = t;
218
+ if (n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`), t.style === "unit" && !j) {
219
+ let { unit: e, unitDisplay: n = "short" } = t;
220
+ if (!e) throw Error("unit option must be provided with style: \"unit\"");
221
+ if (!M[e]?.[n]) throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);
222
+ t = {
223
+ ...t,
224
+ style: "decimal"
225
+ };
226
+ }
227
+ let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
228
+ if (k.has(r)) return k.get(r);
229
+ let i = new Intl.NumberFormat(e, t);
230
+ return k.set(r, i), i;
231
+ }
232
+ function F(e, t, n) {
233
+ if (t === "auto") return e.format(n);
234
+ if (t === "never") return e.format(Math.abs(n));
235
+ {
236
+ let r = !1;
237
+ if (t === "always" ? r = n > 0 || Object.is(n, 0) : t === "exceptZero" && (Object.is(n, -0) || Object.is(n, 0) ? n = Math.abs(n) : r = n > 0), r) {
238
+ let t = e.format(-n), r = e.format(n), i = t.replace(r, "").replace(/\u200e|\u061C/, "");
239
+ return [...i].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), t.replace(r, "!!!").replace(i, "+").replace("!!!", r);
240
+ }
241
+ return e.format(n);
242
+ }
243
+ }
244
+ //#endregion
245
+ //#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/useNumberFormatter.mjs
246
+ function I(e = {}) {
247
+ let { locale: t } = O();
248
+ return (0, n.useMemo)(() => new N(t, e), [t, e]);
249
+ }
250
+ //#endregion
251
+ export { m as a, D as i, N as n, u as o, O as r, I as t };
@@ -2,7 +2,7 @@ import { a as e, r as t } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { a as n, g as r, s as i } from "./button-DdXAm8iz.js";
3
3
  import { t as a } from "./react-ofJbxM4x.js";
4
4
  import { t as o } from "./compiler-runtime-Cj8ZWiNS.js";
5
- import { A as s, D as c, I as l, N as u, P as d, S as f, _ as p, j as m, x as h } from "./schemas-BDZr-nP0.js";
5
+ import { C as s, F as c, L as l, M as u, O as d, P as f, S as p, j as m, v as h } from "./use-restore-focus-D5D9xEjZ.js";
6
6
  import { l as g, t as _ } from "./_baseMerge-BiGRwuqv.js";
7
7
  //#region ../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mergeWith.js
8
8
  var v = g(function(e, t, n, r) {
@@ -609,77 +609,77 @@ var ze = [
609
609
  "ask",
610
610
  "agent",
611
611
  "code_mode"
612
- ], J = m({
613
- api_key: d().optional(),
614
- base_url: d().optional(),
615
- project: d().optional()
616
- }).loose(), We = m({
617
- chat_model: d().nullish(),
618
- edit_model: d().nullish(),
619
- autocomplete_model: d().nullish(),
620
- displayed_models: h(d()).default([]),
621
- custom_models: h(d()).default([])
622
- }), Ge = c({
623
- completion: m({
624
- activate_on_typing: f().prefault(!0),
625
- signature_hint_on_typing: f().prefault(!1),
626
- auto_close_pairs: f().prefault(!0),
627
- copilot: l([f(), p([
612
+ ], J = u({
613
+ api_key: c().optional(),
614
+ base_url: c().optional(),
615
+ project: c().optional()
616
+ }).loose(), We = u({
617
+ chat_model: c().nullish(),
618
+ edit_model: c().nullish(),
619
+ autocomplete_model: c().nullish(),
620
+ displayed_models: p(c()).default([]),
621
+ custom_models: p(c()).default([])
622
+ }), Ge = d({
623
+ completion: u({
624
+ activate_on_typing: s().prefault(!0),
625
+ signature_hint_on_typing: s().prefault(!1),
626
+ auto_close_pairs: s().prefault(!0),
627
+ copilot: l([s(), h([
628
628
  "github",
629
629
  "codeium",
630
630
  "custom"
631
631
  ])]).prefault(!1).transform((e) => e === !0 ? "github" : e),
632
- codeium_api_key: d().nullish()
632
+ codeium_api_key: c().nullish()
633
633
  }).prefault({}),
634
- save: c({
635
- autosave: p(["off", "after_delay"]).prefault("after_delay"),
636
- autosave_delay: s().nonnegative().transform((e) => Math.max(e, 1e3)).prefault(1e3),
637
- format_on_save: f().prefault(!1)
634
+ save: d({
635
+ autosave: h(["off", "after_delay"]).prefault("after_delay"),
636
+ autosave_delay: m().nonnegative().transform((e) => Math.max(e, 1e3)).prefault(1e3),
637
+ format_on_save: s().prefault(!1)
638
638
  }).prefault({}),
639
- formatting: c({ line_length: s().nonnegative().prefault(79).transform((e) => Math.min(e, 1e3)) }).prefault({}),
640
- keymap: c({
641
- preset: p(["default", "vim"]).prefault("default"),
642
- overrides: u(d(), d()).prefault({}),
643
- destructive_delete: f().prefault(!0)
639
+ formatting: d({ line_length: m().nonnegative().prefault(79).transform((e) => Math.min(e, 1e3)) }).prefault({}),
640
+ keymap: d({
641
+ preset: h(["default", "vim"]).prefault("default"),
642
+ overrides: f(c(), c()).prefault({}),
643
+ destructive_delete: s().prefault(!0)
644
644
  }).prefault({}),
645
- runtime: c({
646
- auto_instantiate: f().prefault(!0),
647
- on_cell_change: p(["lazy", "autorun"]).prefault("autorun"),
648
- auto_reload: p([
645
+ runtime: d({
646
+ auto_instantiate: s().prefault(!0),
647
+ on_cell_change: h(["lazy", "autorun"]).prefault("autorun"),
648
+ auto_reload: h([
649
649
  "off",
650
650
  "lazy",
651
651
  "autorun"
652
652
  ]).prefault("off"),
653
- reactive_tests: f().prefault(!0),
654
- watcher_on_save: p(["lazy", "autorun"]).prefault("lazy"),
655
- default_sql_output: p(Ve).prefault("auto"),
656
- default_auto_download: h(p(He)).prefault([]),
657
- show_tracebacks: f().prefault(!1)
653
+ reactive_tests: s().prefault(!0),
654
+ watcher_on_save: h(["lazy", "autorun"]).prefault("lazy"),
655
+ default_sql_output: h(Ve).prefault("auto"),
656
+ default_auto_download: p(h(He)).prefault([]),
657
+ show_tracebacks: s().prefault(!1)
658
658
  }).prefault({}),
659
- display: c({
660
- theme: p([
659
+ display: d({
660
+ theme: h([
661
661
  "light",
662
662
  "dark",
663
663
  "system"
664
664
  ]).prefault("light"),
665
- code_editor_font_size: s().nonnegative().prefault(14),
666
- cell_output: p(["above", "below"]).prefault("below"),
667
- dataframes: p(["rich", "plain"]).prefault("rich"),
668
- default_table_page_size: s().prefault(10),
669
- default_table_max_columns: s().prefault(50),
670
- default_width: p(Be).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
671
- locale: d().nullable().optional(),
672
- reference_highlighting: f().prefault(!0),
673
- code_lens: f().prefault(!0)
665
+ code_editor_font_size: m().nonnegative().prefault(14),
666
+ cell_output: h(["above", "below"]).prefault("below"),
667
+ dataframes: h(["rich", "plain"]).prefault("rich"),
668
+ default_table_page_size: m().prefault(10),
669
+ default_table_max_columns: m().prefault(50),
670
+ default_width: h(Be).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
671
+ locale: c().nullable().optional(),
672
+ reference_highlighting: s().prefault(!0),
673
+ code_lens: s().prefault(!0)
674
674
  }).prefault({}),
675
- package_management: c({ manager: p(ze).prefault("pip") }).prefault({}),
676
- ai: c({
677
- enabled: f().prefault(!0),
678
- rules: d().prefault(""),
679
- max_tokens: s().int().positive().nullable().optional(),
680
- mode: p(Ue).prefault("manual"),
681
- inline_tooltip: f().prefault(!1),
682
- allow_provider_config: f().prefault(!0),
675
+ package_management: d({ manager: h(ze).prefault("pip") }).prefault({}),
676
+ ai: d({
677
+ enabled: s().prefault(!0),
678
+ rules: c().prefault(""),
679
+ max_tokens: m().int().positive().nullable().optional(),
680
+ mode: h(Ue).prefault("manual"),
681
+ inline_tooltip: s().prefault(!1),
682
+ allow_provider_config: s().prefault(!0),
683
683
  open_ai: J.optional(),
684
684
  github: J.optional(),
685
685
  anthropic: J.optional(),
@@ -690,40 +690,40 @@ var ze = [
690
690
  opencode_go: J.optional(),
691
691
  open_ai_compatible: J.optional(),
692
692
  azure: J.optional(),
693
- bedrock: c({
694
- region_name: d().optional(),
695
- profile_name: d().optional(),
696
- aws_access_key_id: d().optional(),
697
- aws_secret_access_key: d().optional()
693
+ bedrock: d({
694
+ region_name: c().optional(),
695
+ profile_name: c().optional(),
696
+ aws_access_key_id: c().optional(),
697
+ aws_secret_access_key: c().optional()
698
698
  }).optional(),
699
- custom_providers: u(d(), J).prefault({}),
699
+ custom_providers: f(c(), J).prefault({}),
700
700
  models: We.prefault({
701
701
  displayed_models: [],
702
702
  custom_models: []
703
703
  })
704
704
  }).prefault({}),
705
- experimental: c({
706
- markdown: f().optional(),
707
- rtc: f().optional()
705
+ experimental: d({
706
+ markdown: s().optional(),
707
+ rtc: s().optional()
708
708
  }).prefault(() => ({})),
709
- server: c({
710
- disable_file_downloads: f().optional(),
711
- transport: p(["websocket", "sse"]).optional()
709
+ server: d({
710
+ disable_file_downloads: s().optional(),
711
+ transport: h(["websocket", "sse"]).optional()
712
712
  }).prefault(() => ({})),
713
- diagnostics: c({
714
- enabled: f().optional(),
715
- sql_linter: f().optional()
713
+ diagnostics: d({
714
+ enabled: s().optional(),
715
+ sql_linter: s().optional()
716
716
  }).prefault(() => ({})),
717
- file_browser: c({ folders: h(m({
718
- path: d(),
719
- name: d().optional()
717
+ file_browser: d({ folders: p(u({
718
+ path: c(),
719
+ name: c().optional()
720
720
  })).optional() }).optional().prefault({}),
721
- sharing: c({
722
- html: f().optional(),
723
- wasm: f().optional(),
724
- molab: f().optional()
721
+ sharing: d({
722
+ html: s().optional(),
723
+ wasm: s().optional(),
724
+ molab: s().optional()
725
725
  }).optional(),
726
- mcp: c({ presets: h(p(["marimo", "context7"])).optional() }).optional().prefault({})
726
+ mcp: d({ presets: p(h(["marimo", "context7"])).optional() }).optional().prefault({})
727
727
  }).partial().prefault(() => ({
728
728
  completion: {},
729
729
  save: {},
@@ -738,12 +738,12 @@ var ze = [
738
738
  ai: {},
739
739
  package_management: {},
740
740
  mcp: {}
741
- })), Ke = d(), qe = p(Ve).prefault("auto"), Y = m({
742
- width: p(Be).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
741
+ })), Ke = c(), qe = h(Ve).prefault("auto"), Y = u({
742
+ width: h(Be).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
743
743
  app_title: Ke.nullish(),
744
- css_file: d().nullish(),
745
- html_head_file: d().nullish(),
746
- auto_download: h(p(He)).prefault([]),
744
+ css_file: c().nullish(),
745
+ html_head_file: c().nullish(),
746
+ auto_download: p(h(He)).prefault([]),
747
747
  sql_output: qe
748
748
  }).prefault(() => ({
749
749
  width: "medium",
@@ -2,26 +2,26 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { g as t, h as n, m as r, o as i } from "./button-DdXAm8iz.js";
3
3
  import { t as a } from "./react-ofJbxM4x.js";
4
4
  import { t as o } from "./compiler-runtime-Cj8ZWiNS.js";
5
- import { c as s, v as c } from "./toDate-0cxDmdsp.js";
6
- import { t as l } from "./jsx-runtime-DgDPJV9S.js";
7
- import { n as u } from "./error-banner-hCaH06e3.js";
8
- import { t as d } from "./tooltip-CdE8k0pS.js";
5
+ import { t as s } from "./tooltip-qB8NlSqV.js";
6
+ import { c, v as l } from "./toDate-WXg1yLcI.js";
7
+ import { t as u } from "./jsx-runtime-DgDPJV9S.js";
8
+ import { n as d } from "./error-banner-B94dcDmP.js";
9
9
  import { t as f } from "./debounce-C3jyATpc.js";
10
- import { A as p, n as ee } from "./useTheme-Da9LJvrQ.js";
10
+ import { A as p, n as ee } from "./useTheme-DzXmYZ5V.js";
11
11
  import { c as m } from "./arrays-CN1djC4k.js";
12
12
  import { t as te } from "./objects-CzUgoMIF.js";
13
- import { t as h } from "./useAsyncData-DCIhDLCe.js";
14
- import { a as ne, i as re, n as ie, t as g } from "./formats-B-gajYGs.js";
13
+ import { t as h } from "./useAsyncData-BD6AStMt.js";
14
+ import { a as ne, i as re, n as ie, t as g } from "./formats-BR5iGb4s.js";
15
15
  import { M as ae, n as oe } from "./vega-loader.browser-D95WfUcj.js";
16
16
  import { t as se } from "./react-vega-5AcMW8gG.js";
17
17
  import { a as ce, n as _ } from "./loader-D2W4oM-3.js";
18
- import { t as le } from "./useDeepCompareMemoize-CLaZB7Gc.js";
18
+ import { t as le } from "./useDeepCompareMemoize-D_HNdyvI.js";
19
19
  import { t as ue } from "./semaphore-89jsoHtS.js";
20
20
  import { t as de } from "./use-vega-container-remeasure-4DwJbPWu.js";
21
21
  //#region src/plugins/impl/vega/fix-relative-url.ts
22
22
  var fe = /* @__PURE__ */ e(a(), 1), pe = o();
23
23
  function me(e) {
24
- return e.data && "url" in e.data && (e.data.url = s(e.data.url).href), e;
24
+ return e.data && "url" in e.data && (e.data.url = c(e.data.url).href), e;
25
25
  }
26
26
  //#endregion
27
27
  //#region src/plugins/impl/vega/types.ts
@@ -492,7 +492,7 @@ async function U(e) {
492
492
  }), !e.data || !("url" in e.data)) return e;
493
493
  let i;
494
494
  try {
495
- i = s(e.data.url);
495
+ i = c(e.data.url);
496
496
  } catch {
497
497
  return e;
498
498
  }
@@ -509,28 +509,28 @@ async function U(e) {
509
509
  }
510
510
  //#endregion
511
511
  //#region src/plugins/impl/vega/vega-component.tsx
512
- var W = l();
512
+ var W = u();
513
513
  oe("arrow", g);
514
514
  var G = (e) => {
515
515
  let t = (0, pe.c)(12), { value: n, setValue: r, chartSelection: i, fieldSelection: a, spec: o, embedOptions: s } = e, c, l;
516
516
  t[0] === o ? (c = t[1], l = t[2]) : (c = async () => U(o), l = [o], t[0] = o, t[1] = c, t[2] = l);
517
- let { data: d, error: f } = h(c, l);
517
+ let { data: u, error: f } = h(c, l);
518
518
  if (f) {
519
519
  let e;
520
- return t[3] === f ? e = t[4] : (e = /* @__PURE__ */ (0, W.jsx)(u, { error: f }), t[3] = f, t[4] = e), e;
520
+ return t[3] === f ? e = t[4] : (e = /* @__PURE__ */ (0, W.jsx)(d, { error: f }), t[3] = f, t[4] = e), e;
521
521
  }
522
- if (!d) return null;
522
+ if (!u) return null;
523
523
  let p;
524
- return t[5] !== i || t[6] !== s || t[7] !== a || t[8] !== d || t[9] !== r || t[10] !== n ? (p = /* @__PURE__ */ (0, W.jsx)(K, {
524
+ return t[5] !== i || t[6] !== s || t[7] !== a || t[8] !== u || t[9] !== r || t[10] !== n ? (p = /* @__PURE__ */ (0, W.jsx)(K, {
525
525
  value: n,
526
526
  setValue: r,
527
527
  chartSelection: i,
528
528
  fieldSelection: a,
529
- spec: d,
529
+ spec: u,
530
530
  embedOptions: s
531
- }), t[5] = i, t[6] = s, t[7] = a, t[8] = d, t[9] = r, t[10] = n, t[11] = p) : p = t[11], p;
531
+ }), t[5] = i, t[6] = s, t[7] = a, t[8] = u, t[9] = r, t[10] = n, t[11] = p) : p = t[11], p;
532
532
  }, K = (e) => {
533
- let a = (0, pe.c)(50), { value: o, setValue: s, chartSelection: l, fieldSelection: u, spec: m, embedOptions: h } = e, { theme: ne } = ee(), g = (0, fe.useRef)(null), oe = (0, fe.useRef)(void 0), [_, ue] = (0, fe.useState)(), v;
533
+ let a = (0, pe.c)(50), { value: o, setValue: c, chartSelection: u, fieldSelection: d, spec: m, embedOptions: h } = e, { theme: ne } = ee(), g = (0, fe.useRef)(null), oe = (0, fe.useRef)(void 0), [_, ue] = (0, fe.useState)(), v;
534
534
  bb0: {
535
535
  if (h && "actions" in h) {
536
536
  v = h.actions;
@@ -543,19 +543,19 @@ var G = (e) => {
543
543
  }, a[0] = e) : e = a[0], v = e;
544
544
  }
545
545
  let y = v, b = le(m), S;
546
- a[1] !== l || a[2] !== u || a[3] !== b ? (S = he(me(b), {
547
- chartSelection: l,
548
- fieldSelection: u
549
- }), a[1] = l, a[2] = u, a[3] = b, a[4] = S) : S = a[4];
546
+ a[1] !== u || a[2] !== d || a[3] !== b ? (S = he(me(b), {
547
+ chartSelection: u,
548
+ fieldSelection: d
549
+ }), a[1] = u, a[2] = d, a[3] = b, a[4] = S) : S = a[4];
550
550
  let C = S, w;
551
551
  a[5] === C ? w = a[6] : (w = T(C), a[5] = C, a[6] = w);
552
552
  let E = w, D;
553
- a[7] !== s || a[8] !== o ? (D = (e) => {
554
- s({
553
+ a[7] !== c || a[8] !== o ? (D = (e) => {
554
+ c({
555
555
  ...o,
556
556
  ...e
557
557
  });
558
- }, a[7] = s, a[8] = o, a[9] = D) : D = a[9];
558
+ }, a[7] = c, a[8] = o, a[9] = D) : D = a[9];
559
559
  let O = p(D), k;
560
560
  a[10] === O ? k = a[11] : (k = f((e, n) => {
561
561
  t.debug("[Vega signal]", e, n);
@@ -585,14 +585,14 @@ var G = (e) => {
585
585
  let t = i() ? "⌘" : "ctrl";
586
586
  e.push(["Pan", `hold the ${t} key and drag`], ["Zoom", `hold the ${t} key and scroll`]);
587
587
  }
588
- return e.length === 0 ? null : /* @__PURE__ */ (0, W.jsx)(d, {
588
+ return e.length === 0 ? null : /* @__PURE__ */ (0, W.jsx)(s, {
589
589
  delayDuration: 300,
590
590
  side: "left",
591
591
  content: /* @__PURE__ */ (0, W.jsx)("div", {
592
592
  className: "text-xs flex flex-col",
593
593
  children: e.map(ve)
594
594
  }),
595
- children: /* @__PURE__ */ (0, W.jsx)(c, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" })
595
+ children: /* @__PURE__ */ (0, W.jsx)(l, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" })
596
596
  });
597
597
  }, a[20] = E, a[21] = R);
598
598
  let z = R, B = ne === "dark" ? "dark" : void 0, V;
@@ -3,7 +3,7 @@ import { t } from "./src-CA_m4ONl.js";
3
3
  import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
4
  import { $ as r, H as i, K as a, U as o, a as s, b as c, c as l, et as u, f as d, nt as f, tt as p, v as m, w as h, y as g } from "./chunk-DU6HZSFF-BUgAHvnM.js";
5
5
  import { t as _ } from "./rough.esm-CtV9AnV1.js";
6
- import { p as v } from "./mermaid-CMLxoJ0m.js";
6
+ import { p as v } from "./mermaid-DPNuhemn.js";
7
7
  //#region ../node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/transparentize.js
8
8
  var y = (e, t) => p(e, "a", -t), b = 1e-10;
9
9
  function x(e, t) {
@@ -2,7 +2,7 @@ import { i as e } from "./chunk-75Z2AOVW-5_HsvXwr.js";
2
2
  import { n as t } from "./src-CA_m4ONl.js";
3
3
  import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
4
  import { D as r, H as i, K as a, U as o, a as s, b as c, c as l, v as u, w as d, x as f, y as p } from "./chunk-DU6HZSFF-BUgAHvnM.js";
5
- import { p as m } from "./mermaid-CMLxoJ0m.js";
5
+ import { p as m } from "./mermaid-DPNuhemn.js";
6
6
  import { n as h } from "./mermaid-parser.core-DxuSfYwJ.js";
7
7
  import { t as g } from "./chunk-JWPE2WC7-DJvv1t8U.js";
8
8
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-VM6X3IG4.mjs