@marimo-team/islands 0.25.3-dev191 → 0.25.3-dev193
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-BBbOElk3.js → ConnectedDataExplorerComponent-BRuwLOIx.js} +9 -9
- package/dist/{ErrorBoundary--X0z83Yx.js → ErrorBoundary-BVu_xT-p.js} +2 -2
- package/dist/{abnfDiagram-VCTEODGH-DhMT6Uhd.js → abnfDiagram-VCTEODGH-LlJTOOU_.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-BVbEiJLq.js → architectureDiagram-5GKGNRK7-9PQtGLLZ.js} +1 -1
- package/dist/{arrays-R6JsImiT.js → arrays-DA6KkLfq.js} +6 -12
- package/dist/assets/__vite-browser-external-BCJsx8QS.js +1 -0
- package/dist/assets/{worker-C6e9ERyd.js → worker-DodjWT_Z.js} +2 -2
- package/dist/{capabilities-CI4xUPsp.js → capabilities-CvWU-ey_.js} +1 -1
- package/dist/{chat-ui-BguxTQEL.js → chat-ui-Bl2euMBD.js} +93 -93
- package/dist/{chunk-IMKFNOWR-By5hSbJJ.js → chunk-IMKFNOWR-DcXv-BD5.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DFrEYG54.js → chunk-SHT3W25Y-VwnELN23.js} +1 -1
- package/dist/{chunk-SVP7TREG-DFXGc9ew.js → chunk-SVP7TREG-DgQpI5Zi.js} +1 -1
- package/dist/{chunk-TICWLB2K-DZdNIpoZ.js → chunk-TICWLB2K-CTg6VTJT.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-Cgj_eEQA.js → classDiagram-ZZMXUADV-UzmcFrnW.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DLAUrSqj.js → classDiagram-v2-VYDZK3BY-DhjiI6IQ.js} +2 -2
- package/dist/{code-visibility-uDyLo9_i.js → code-visibility-BTVimCUw.js} +38 -42
- package/dist/{common-DWKY45Md.js → common-fTgq7gO-.js} +849 -849
- package/dist/{cynefinDiagram-5FMLGOSQ-Cikf9AKa.js → cynefinDiagram-5FMLGOSQ-O4ShIbJX.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-C5KEi5_l.js → dagre-GXQ25YYZ-dtHhhcPu.js} +1 -1
- package/dist/{data-grid-overlay-editor-CRnYWD1L.js → data-grid-overlay-editor-DAZZkLWg.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BaoBTQjR.js → diagram-S7CK7UJ4-ppPYVZ6W.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DDufBsUA.js → diagram-UQ7AKVKN-CMZDf--k.js} +1 -1
- package/dist/{diagram-VX7I27RA-CY6RALJ8.js → diagram-VX7I27RA-CFvJdx-C.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Bc-LHsD6.js → diagram-Z3DM3KII-Dt6_uFbv.js} +1 -1
- package/dist/{dropdown-menu-drDjxJyV.js → dropdown-menu-CeaOsjWZ.js} +2 -2
- package/dist/{ebnfDiagram-PWID7BFC-Cz0J-tcC.js → ebnfDiagram-PWID7BFC-DpRFrKK-.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-DTXTDgFu.js → erDiagram-RLTQ6QDP-CqAU4b0u.js} +1 -1
- package/dist/{error-entries-CZ1NQ6Kv.js → error-entries-CYGwr5-O.js} +5596 -6012
- package/dist/feedback-button-DzFFn-n4.js +374 -0
- package/dist/{flowDiagram-HODETNUW-RbwWf2zc.js → flowDiagram-HODETNUW-i8-Gw8HO.js} +2 -2
- package/dist/{formats-DbXnijtH.js → formats-BtoHHy42.js} +1 -1
- package/dist/{glide-data-editor-CvRiA49N.js → glide-data-editor-DFsqVbWR.js} +5 -5
- package/dist/{globals-BR4CmGOS.js → globals-Dr0MRANu.js} +2 -2
- package/dist/{html-to-image-D_4_hQ8U.js → html-to-image-Cy5UDpQJ.js} +56 -56
- package/dist/{infoDiagram-27XIBGKW-DlmzZjmI.js → infoDiagram-27XIBGKW-DpfOKdLL.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-EN3TYP_q.js → ishikawaDiagram-5VMMS53U-Dg7mrMG7.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CK_-Ru7Q.js → kanban-definition-UXKFOSKX-QB6e3Jrj.js} +1 -1
- package/dist/main.js +5875 -5876
- package/dist/{mermaid-DU9ZRmkG.js → mermaid-CeWG4Egr.js} +48 -48
- package/dist/{mindmap-definition-YA3MSWOX-C-hqgUvF.js → mindmap-definition-YA3MSWOX-BTz3uTGe.js} +1 -1
- package/dist/{number-overlay-editor-DiYGbxNa.js → number-overlay-editor-DupOSYHx.js} +1 -1
- package/dist/{once-eG8Vmvjd.js → once-DWGO2mQ2.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-BiMejYPB.js → pegDiagram-XKGWAZYB-3ZIEa3mB.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-B1zCZ1eq.js → pieDiagram-E7YTZNPT-BJAlk046.js} +1 -1
- package/dist/{process-output-DxSCHBWp.js → process-output-q9MTAIMX.js} +2 -2
- package/dist/{railroadDiagram-O6MQD6OU-BLcfaASl.js → railroadDiagram-O6MQD6OU-Dn3bsSRa.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DtBOf52-.js → requirementDiagram-BXWQKSXE-wcOmQQCL.js} +1 -1
- package/dist/{reveal-component-D3DsXPIm.js → reveal-component-Bg8rP_Uo.js} +17 -17
- package/dist/{sequenceDiagram-WJ2MYXX4-DIwF19_n.js → sequenceDiagram-WJ2MYXX4-DSh_qxoF.js} +1 -1
- package/dist/{spec-DZDnnlgT.js → spec-C7Fos-If.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-sWk1AdYL.js → stateDiagram-D77RDMKH-DH_H8NMH.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-CiNo-OI7.js → stateDiagram-v2-MP3YSRHH-D_JM7MEK.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Bj3hiOY5.js → swimlanes-42K2YHIH-CfoTJO-9.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BzEo2r_N.js → swimlanesDiagram-VR7AAH4N-Z_QhvK0G.js} +2 -2
- package/dist/{swiper-component-BkCm-kLg.js → swiper-component-D2geL1Ku.js} +1 -1
- package/dist/{timeline-definition-24CTP7MA-CrPQk42H.js → timeline-definition-24CTP7MA-BFtdScaL.js} +1 -1
- package/dist/{toDate-Cu2pIZcC.js → toDate-CQAFSwos.js} +24 -24
- package/dist/{useAsyncData-DEhLdRIu.js → useAsyncData-BeyZyjso.js} +1 -1
- package/dist/{useDeepCompareMemoize-RjZGVhBV.js → useDeepCompareMemoize-DOQgae0W.js} +1 -1
- package/dist/{useIframeCapabilities-CSdWn6NP.js → useIframeCapabilities-DNvaj9wM.js} +1 -1
- package/dist/{useLifecycle-DtcB2s1z.js → useLifecycle-n2lnCFS8.js} +1 -1
- package/dist/{useTheme-CoEtr4mK.js → useTheme-CY777LXN.js} +303 -99
- package/dist/{vega-component-BhjTrP9-.js → vega-component-0nQzA-I8.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-BaYMoIpj.js → vennDiagram-4TSXK5OY-BXY8IGCA.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DjHeuj8p.js → wardleyDiagram-VM6X3IG4-D0tFe6eC.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-Bc_hcuXS.js → xychartDiagram-S5SC5T6Z-Dx8wFM-y.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/notebook.ts +0 -1
- package/src/__mocks__/partial.ts +26 -0
- package/src/__tests__/main.test.tsx +24 -1
- package/src/components/app-config/app-config-form.tsx +5 -9
- package/src/components/editor/__tests__/data-attributes.test.tsx +0 -1
- package/src/components/editor/__tests__/output-persistence.test.tsx +0 -1
- package/src/components/editor/actions/useCellActionButton.tsx +6 -5
- package/src/components/editor/actions/useConfigActions.tsx +3 -4
- package/src/components/editor/actions/useNotebookActions.tsx +5 -4
- package/src/components/editor/cell/code/cell-editor.tsx +13 -6
- package/src/components/editor/cell/collapse.tsx +6 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +1 -7
- package/src/components/editor/controls/Controls.tsx +1 -1
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +8 -6
- package/src/components/editor/navigation/__tests__/navigation.test.ts +15 -15
- package/src/components/editor/navigation/__tests__/selection.test.ts +44 -21
- package/src/components/editor/navigation/focus-utils.ts +19 -0
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +6 -13
- package/src/components/editor/navigation/navigation.ts +52 -43
- package/src/components/editor/navigation/selection.ts +30 -29
- package/src/components/editor/notebook-cell.tsx +10 -18
- package/src/components/editor/renderers/cell-array.tsx +6 -5
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
- package/src/components/pages/edit-page.tsx +0 -13
- package/src/components/scratchpad/scratchpad.tsx +0 -1
- package/src/components/slides/reveal-component.tsx +1 -1
- package/src/components/slides/slide-cell-view.tsx +0 -1
- package/src/components/sort/SortableCellsProvider.tsx +6 -5
- package/src/core/MarimoApp.tsx +1 -1
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -37
- package/src/core/cells/__tests__/actions.test.ts +190 -80
- package/src/core/cells/__tests__/arrange.test.ts +263 -0
- package/src/core/cells/__tests__/cells.test.ts +11 -1101
- package/src/core/cells/__tests__/document.test.ts +3 -32
- package/src/core/cells/__tests__/editor.test.ts +57 -0
- package/src/core/cells/__tests__/harness.ts +82 -0
- package/src/core/cells/__tests__/layout.test.ts +189 -0
- package/src/core/cells/__tests__/notebook-outline.test.ts +7 -1
- package/src/core/cells/__tests__/session.test.ts +329 -174
- package/src/core/cells/__tests__/utils.test.ts +0 -1
- package/src/core/cells/actions.ts +247 -82
- package/src/core/cells/arrange.ts +341 -0
- package/src/core/cells/cells.ts +27 -516
- package/src/core/cells/document.ts +6 -5
- package/src/core/cells/edit.ts +30 -0
- package/src/core/cells/editor.ts +82 -0
- package/src/core/cells/layout.ts +152 -0
- package/src/core/cells/session.ts +75 -52
- package/src/core/cells/types.ts +0 -5
- package/src/core/cells/utils.ts +6 -4
- package/src/core/config/__tests__/app-config.test.ts +64 -0
- package/src/core/config/__tests__/config-schema.test.ts +1 -1
- package/src/core/config/config-schema.ts +6 -2
- package/src/core/config/config.ts +26 -12
- package/src/core/islands/bootstrap.ts +0 -1
- package/src/core/kernel/handlers.ts +1 -13
- package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
- package/src/core/meta/code-visibility.ts +18 -9
- package/src/core/notebook/__tests__/operations.test.ts +51 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +15 -0
- package/src/core/notebook/index.ts +2 -1
- package/src/core/notebook/operations.ts +30 -0
- package/src/core/saving/__tests__/state.test.ts +111 -0
- package/src/core/saving/save-component.tsx +19 -33
- package/src/core/saving/state.ts +38 -39
- package/src/core/saving/useAutoSave.ts +8 -35
- package/src/core/session/__tests__/backend.test.ts +1 -0
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +1 -0
- package/src/core/session/active-notebook.ts +11 -0
- package/src/core/session/backend.ts +17 -19
- package/src/core/session/embedded.ts +7 -0
- package/src/core/session/useNotebookReplica.ts +3 -1
- package/src/core/session/useNotebookSession.tsx +7 -8
- package/src/core/transports/__tests__/static.test.ts +139 -8
- package/src/core/transports/static.ts +98 -16
- package/src/core/wasm/__tests__/bridge.test.ts +1 -0
- package/src/mount.tsx +19 -10
- package/src/stories/cell.stories.tsx +0 -2
- package/src/stories/layout/vertical/one-column.stories.tsx +0 -2
- package/src/utils/__tests__/id-tree.test.ts +20 -1548
- package/src/utils/id-tree.tsx +12 -537
- package/dist/assets/__vite-browser-external-C8gQho07.js +0 -1
- package/dist/feedback-button-CDf1yRm_.js +0 -379
- package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
- package/src/components/editor/navigation/state.ts +0 -65
|
@@ -501,35 +501,236 @@ function Me(e, t) {
|
|
|
501
501
|
return [H(e, t), U(e, t)];
|
|
502
502
|
}
|
|
503
503
|
//#endregion
|
|
504
|
+
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.0/node_modules/jotai/esm/vanilla/utils.mjs
|
|
505
|
+
var W = o(), Ne = /* @__PURE__ */ Symbol("");
|
|
506
|
+
function Pe(e, t) {
|
|
507
|
+
return F(e, function(e, n, r) {
|
|
508
|
+
n(this, t(e(this), r));
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
function Fe(e, t) {
|
|
512
|
+
let n = null, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), a = (i) => {
|
|
513
|
+
let s;
|
|
514
|
+
if (t === void 0) s = r.get(i);
|
|
515
|
+
else for (let [e, n] of r) if (t(e, i)) {
|
|
516
|
+
s = n;
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
if (s !== void 0) {
|
|
520
|
+
if (n?.(s[1], i)) a.remove(i);
|
|
521
|
+
else return s[0];
|
|
522
|
+
}
|
|
523
|
+
let c = e(i);
|
|
524
|
+
return r.set(i, [c, Date.now()]), o("CREATE", i, c), c;
|
|
525
|
+
}, o = (e, t, n) => {
|
|
526
|
+
for (let r of i) r({
|
|
527
|
+
type: e,
|
|
528
|
+
param: t,
|
|
529
|
+
atom: n
|
|
530
|
+
});
|
|
531
|
+
};
|
|
532
|
+
return a.unstable_listen = (e) => (i.add(e), () => {
|
|
533
|
+
i.delete(e);
|
|
534
|
+
}), a.getParams = () => r.keys(), a.remove = (e) => {
|
|
535
|
+
if (t === void 0) {
|
|
536
|
+
if (!r.has(e)) return;
|
|
537
|
+
let [t] = r.get(e);
|
|
538
|
+
r.delete(e), o("REMOVE", e, t);
|
|
539
|
+
} else for (let [n, [i]] of r) if (t(n, e)) {
|
|
540
|
+
r.delete(n), o("REMOVE", n, i);
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
}, a.setShouldRemove = (e) => {
|
|
544
|
+
if (n = e, n) for (let [e, [t, i]] of r) n(i, e) && (r.delete(e), o("REMOVE", e, t));
|
|
545
|
+
}, a;
|
|
546
|
+
}
|
|
547
|
+
var G = (e, t, n) => (t.has(n) ? t : t.set(n, e())).get(n), Ie = /* @__PURE__ */ new WeakMap(), Le = (e, t, n, r) => G(e, G(() => /* @__PURE__ */ new WeakMap(), G(() => /* @__PURE__ */ new WeakMap(), Ie, t), n), r);
|
|
548
|
+
function K(e, t, n = Object.is) {
|
|
549
|
+
return Le(() => {
|
|
550
|
+
let r = /* @__PURE__ */ Symbol(), i = ([e, i]) => {
|
|
551
|
+
if (i === r) return t(e);
|
|
552
|
+
let a = t(e, i);
|
|
553
|
+
return n(i, a) ? i : a;
|
|
554
|
+
}, a = F((t) => {
|
|
555
|
+
let n = t(a), r = t(e);
|
|
556
|
+
return i([r, n]);
|
|
557
|
+
});
|
|
558
|
+
return a.init = r, a;
|
|
559
|
+
}, e, t, n);
|
|
560
|
+
}
|
|
561
|
+
var Re = (e, t, n) => (t.has(n) ? t : t.set(n, e())).get(n), ze = /* @__PURE__ */ new WeakMap(), Be = (e, t, n) => Re(e, Re(() => /* @__PURE__ */ new WeakMap(), ze, t), n), Ve = {}, He = (e) => !!e.write, Ue = (e) => typeof e == "function";
|
|
562
|
+
function We(e, t) {
|
|
563
|
+
return Be(() => {
|
|
564
|
+
let n = /* @__PURE__ */ new WeakMap(), r = (a, o) => {
|
|
565
|
+
let s = n.get(a);
|
|
566
|
+
if (s) return s;
|
|
567
|
+
let c = o && n.get(o), l = [], u = [];
|
|
568
|
+
return a.forEach((n, o) => {
|
|
569
|
+
let s = t ? t(n) : o;
|
|
570
|
+
u[o] = s;
|
|
571
|
+
let d = c && c.atomList[c.keyList.indexOf(s)];
|
|
572
|
+
if (d) {
|
|
573
|
+
l[o] = d;
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
let f = (t) => {
|
|
577
|
+
let n = t(i), o = t(e), c = r(o, n?.arr).keyList.indexOf(s);
|
|
578
|
+
if (c < 0 || c >= o.length) {
|
|
579
|
+
let e = a[r(a).keyList.indexOf(s)];
|
|
580
|
+
if (e) return e;
|
|
581
|
+
throw Error("splitAtom: index out of bounds for read");
|
|
582
|
+
}
|
|
583
|
+
return o[c];
|
|
584
|
+
};
|
|
585
|
+
l[o] = He(e) ? F(f, (t, n, a) => {
|
|
586
|
+
let o = t(i), c = t(e), l = r(c, o?.arr).keyList.indexOf(s);
|
|
587
|
+
if (l < 0 || l >= c.length) throw Error("splitAtom: index out of bounds for write");
|
|
588
|
+
let u = Ue(a) ? a(c[l]) : a;
|
|
589
|
+
Object.is(c[l], u) || n(e, [
|
|
590
|
+
...c.slice(0, l),
|
|
591
|
+
u,
|
|
592
|
+
...c.slice(l + 1)
|
|
593
|
+
]);
|
|
594
|
+
}) : F(f);
|
|
595
|
+
}), s = c && c.keyList.length === u.length && c.keyList.every((e, t) => e === u[t]) ? c : {
|
|
596
|
+
arr: a,
|
|
597
|
+
atomList: l,
|
|
598
|
+
keyList: u
|
|
599
|
+
}, n.set(a, s), s;
|
|
600
|
+
}, i = F((t) => {
|
|
601
|
+
let n = t(i), a = t(e);
|
|
602
|
+
return r(a, n?.arr);
|
|
603
|
+
});
|
|
604
|
+
i.init = void 0;
|
|
605
|
+
let a = He(e) ? F((e) => e(i).atomList, (t, n, r) => {
|
|
606
|
+
switch (r.type) {
|
|
607
|
+
case "remove": {
|
|
608
|
+
let i = t(a).indexOf(r.atom);
|
|
609
|
+
if (i >= 0) {
|
|
610
|
+
let r = t(e);
|
|
611
|
+
n(e, [...r.slice(0, i), ...r.slice(i + 1)]);
|
|
612
|
+
}
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
case "insert": {
|
|
616
|
+
let i = r.before ? t(a).indexOf(r.before) : t(a).length;
|
|
617
|
+
if (i >= 0) {
|
|
618
|
+
let a = t(e);
|
|
619
|
+
n(e, [
|
|
620
|
+
...a.slice(0, i),
|
|
621
|
+
r.value,
|
|
622
|
+
...a.slice(i)
|
|
623
|
+
]);
|
|
624
|
+
}
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
case "move": {
|
|
628
|
+
let i = t(a).indexOf(r.atom), o = r.before ? t(a).indexOf(r.before) : t(a).length;
|
|
629
|
+
if (i >= 0 && o >= 0) {
|
|
630
|
+
let r = t(e);
|
|
631
|
+
i < o ? n(e, [
|
|
632
|
+
...r.slice(0, i),
|
|
633
|
+
...r.slice(i + 1, o),
|
|
634
|
+
r[i],
|
|
635
|
+
...r.slice(o)
|
|
636
|
+
]) : n(e, [
|
|
637
|
+
...r.slice(0, o),
|
|
638
|
+
r[i],
|
|
639
|
+
...r.slice(o, i),
|
|
640
|
+
...r.slice(i + 1)
|
|
641
|
+
]);
|
|
642
|
+
}
|
|
643
|
+
break;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}) : F((e) => e(i).atomList);
|
|
647
|
+
return a;
|
|
648
|
+
}, e, t || Ve);
|
|
649
|
+
}
|
|
650
|
+
var Ge = (e) => typeof e?.then == "function";
|
|
651
|
+
function Ke(e = () => {
|
|
652
|
+
try {
|
|
653
|
+
return window.localStorage;
|
|
654
|
+
} catch {
|
|
655
|
+
return;
|
|
656
|
+
}
|
|
657
|
+
}, t) {
|
|
658
|
+
let n, r, i = {
|
|
659
|
+
getItem: (i, a) => {
|
|
660
|
+
let o = (e) => {
|
|
661
|
+
if (e ||= "", n !== e) {
|
|
662
|
+
try {
|
|
663
|
+
r = JSON.parse(e, t?.reviver);
|
|
664
|
+
} catch {
|
|
665
|
+
return a;
|
|
666
|
+
}
|
|
667
|
+
n = e;
|
|
668
|
+
}
|
|
669
|
+
return r;
|
|
670
|
+
}, s = e()?.getItem(i) ?? null;
|
|
671
|
+
return Ge(s) ? s.then(o) : o(s);
|
|
672
|
+
},
|
|
673
|
+
setItem: (n, r) => e()?.setItem(n, JSON.stringify(r, t?.replacer)),
|
|
674
|
+
removeItem: (t) => e()?.removeItem(t)
|
|
675
|
+
}, a = (e) => (n, r, i) => e(n, (e) => {
|
|
676
|
+
let n;
|
|
677
|
+
try {
|
|
678
|
+
n = JSON.parse(e || "", t?.reviver);
|
|
679
|
+
} catch {
|
|
680
|
+
n = i;
|
|
681
|
+
}
|
|
682
|
+
r(n);
|
|
683
|
+
}), o;
|
|
684
|
+
try {
|
|
685
|
+
o = e()?.subscribe;
|
|
686
|
+
} catch {}
|
|
687
|
+
return !o && typeof window < "u" && typeof window.addEventListener == "function" && window.Storage && (o = (t, n) => {
|
|
688
|
+
if (!(e() instanceof window.Storage)) return () => {};
|
|
689
|
+
let r = (r) => {
|
|
690
|
+
r.storageArea === e() && r.key === t && n(r.newValue);
|
|
691
|
+
};
|
|
692
|
+
return window.addEventListener("storage", r), () => {
|
|
693
|
+
window.removeEventListener("storage", r);
|
|
694
|
+
};
|
|
695
|
+
}), o && (i.subscribe = a(o)), i;
|
|
696
|
+
}
|
|
697
|
+
var qe = Ke();
|
|
698
|
+
function Je(e, t, n = qe, r) {
|
|
699
|
+
let i = r?.getOnInit, a = F(i ? n.getItem(e, t) : t);
|
|
700
|
+
return a.onMount = (r) => (r(n.getItem(e, t)), n.subscribe?.call(n, e, r, t)), F((e) => e(a), (r, i, o) => {
|
|
701
|
+
let s = typeof o == "function" ? o(r(a)) : o;
|
|
702
|
+
return s === Ne ? (i(a, t), n.removeItem(e)) : Ge(s) ? s.then((t) => (i(a, t), n.setItem(e, t))) : (i(a, s), n.setItem(e, s));
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
//#endregion
|
|
504
706
|
//#region src/core/islands/utils.ts
|
|
505
|
-
|
|
506
|
-
function G() {
|
|
707
|
+
function Ye() {
|
|
507
708
|
return !0;
|
|
508
709
|
}
|
|
509
710
|
//#endregion
|
|
510
711
|
//#region ../node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.mjs
|
|
511
|
-
var
|
|
512
|
-
function
|
|
513
|
-
for (n of e.keys()) if (
|
|
712
|
+
var Xe = Object.prototype.hasOwnProperty;
|
|
713
|
+
function Ze(e, t, n) {
|
|
714
|
+
for (n of e.keys()) if (q(n, t)) return n;
|
|
514
715
|
}
|
|
515
|
-
function
|
|
716
|
+
function q(e, t) {
|
|
516
717
|
var n, r, i;
|
|
517
718
|
if (e === t) return !0;
|
|
518
719
|
if (e && t && (n = e.constructor) === t.constructor) {
|
|
519
720
|
if (n === Date) return e.getTime() === t.getTime();
|
|
520
721
|
if (n === RegExp) return e.toString() === t.toString();
|
|
521
722
|
if (n === Array) {
|
|
522
|
-
if ((r = e.length) === t.length) for (; r-- &&
|
|
723
|
+
if ((r = e.length) === t.length) for (; r-- && q(e[r], t[r]););
|
|
523
724
|
return r === -1;
|
|
524
725
|
}
|
|
525
726
|
if (n === Set) {
|
|
526
727
|
if (e.size !== t.size) return !1;
|
|
527
|
-
for (r of e) if (i = r, i && typeof i == "object" && (i =
|
|
728
|
+
for (r of e) if (i = r, i && typeof i == "object" && (i = Ze(t, i), !i) || !t.has(i)) return !1;
|
|
528
729
|
return !0;
|
|
529
730
|
}
|
|
530
731
|
if (n === Map) {
|
|
531
732
|
if (e.size !== t.size) return !1;
|
|
532
|
-
for (r of e) if (i = r[0], i && typeof i == "object" && (i =
|
|
733
|
+
for (r of e) if (i = r[0], i && typeof i == "object" && (i = Ze(t, i), !i) || !q(r[1], t.get(i))) return !1;
|
|
533
734
|
return !0;
|
|
534
735
|
}
|
|
535
736
|
if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
|
|
@@ -542,7 +743,7 @@ function K(e, t) {
|
|
|
542
743
|
return r === -1;
|
|
543
744
|
}
|
|
544
745
|
if (!n || typeof e == "object") {
|
|
545
|
-
for (n in r = 0, e) if (
|
|
746
|
+
for (n in r = 0, e) if (Xe.call(e, n) && ++r && !Xe.call(t, n) || !(n in t) || !q(e[n], t[n])) return !1;
|
|
546
747
|
return Object.keys(t).length === r;
|
|
547
748
|
}
|
|
548
749
|
}
|
|
@@ -550,16 +751,16 @@ function K(e, t) {
|
|
|
550
751
|
}
|
|
551
752
|
//#endregion
|
|
552
753
|
//#region src/core/state/jotai.ts
|
|
553
|
-
var
|
|
554
|
-
async function
|
|
555
|
-
return t(
|
|
556
|
-
let r =
|
|
557
|
-
let i =
|
|
754
|
+
var J = I();
|
|
755
|
+
async function Qe(e, t) {
|
|
756
|
+
return t(J.get(e)) ? J.get(e) : new Promise((n) => {
|
|
757
|
+
let r = J.sub(e, () => {
|
|
758
|
+
let i = J.get(e);
|
|
558
759
|
t(i) && (r(), n(i));
|
|
559
760
|
});
|
|
560
761
|
});
|
|
561
762
|
}
|
|
562
|
-
function
|
|
763
|
+
function $e(e, t) {
|
|
563
764
|
let n = (0, W.c)(5), r = R(), i, a;
|
|
564
765
|
n[0] !== e || n[1] !== t || n[2] !== r ? (i = () => {
|
|
565
766
|
let n = r.get(e);
|
|
@@ -573,54 +774,57 @@ function Ie(e, t) {
|
|
|
573
774
|
r
|
|
574
775
|
], n[0] = e, n[1] = t, n[2] = r, n[3] = i, n[4] = a) : (i = n[3], a = n[4]), (0, y.useEffect)(i, a);
|
|
575
776
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
578
|
-
let n =
|
|
777
|
+
var et = Symbol("sentinel");
|
|
778
|
+
function tt(e, t = q) {
|
|
779
|
+
let n = et;
|
|
579
780
|
return F((r) => {
|
|
580
781
|
let i = r(e);
|
|
581
|
-
return (n ===
|
|
782
|
+
return (n === et || !t(n, i)) && (n = i), n;
|
|
582
783
|
});
|
|
583
784
|
}
|
|
584
785
|
//#endregion
|
|
585
|
-
//#region src/core/
|
|
586
|
-
var
|
|
786
|
+
//#region src/core/session/active-notebook.ts
|
|
787
|
+
var nt = F(null), rt = F(null), it = F((e) => {
|
|
788
|
+
let t = e(nt);
|
|
789
|
+
return t === null ? null : e(t.documentAtom);
|
|
790
|
+
}), at = [
|
|
587
791
|
"pip",
|
|
588
792
|
"uv",
|
|
589
793
|
"rye",
|
|
590
794
|
"poetry",
|
|
591
795
|
"pixi"
|
|
592
|
-
],
|
|
796
|
+
], ot = [
|
|
593
797
|
"normal",
|
|
594
798
|
"compact",
|
|
595
799
|
"medium",
|
|
596
800
|
"full",
|
|
597
801
|
"columns"
|
|
598
|
-
],
|
|
802
|
+
], st = [
|
|
599
803
|
"auto",
|
|
600
804
|
"native",
|
|
601
805
|
"polars",
|
|
602
806
|
"lazy-polars",
|
|
603
807
|
"pandas"
|
|
604
|
-
],
|
|
808
|
+
], ct = [
|
|
605
809
|
"html",
|
|
606
810
|
"markdown",
|
|
607
811
|
"ipynb"
|
|
608
|
-
],
|
|
812
|
+
], lt = ["off", "jedi"], ut = [
|
|
609
813
|
"manual",
|
|
610
814
|
"ask",
|
|
611
815
|
"agent",
|
|
612
816
|
"code_mode"
|
|
613
|
-
],
|
|
817
|
+
], Y = f({
|
|
614
818
|
api_key: u().optional(),
|
|
615
819
|
base_url: u().optional(),
|
|
616
820
|
project: u().optional()
|
|
617
|
-
}).loose(),
|
|
821
|
+
}).loose(), dt = f({
|
|
618
822
|
chat_model: u().nullish(),
|
|
619
823
|
edit_model: u().nullish(),
|
|
620
824
|
autocomplete_model: u().nullish(),
|
|
621
825
|
displayed_models: c(u()).default([]),
|
|
622
826
|
custom_models: c(u()).default([])
|
|
623
|
-
}),
|
|
827
|
+
}), ft = s({
|
|
624
828
|
completion: f({
|
|
625
829
|
activate_on_typing: p().prefault(!0),
|
|
626
830
|
signature_hint_on_typing: p().prefault(!1),
|
|
@@ -639,7 +843,7 @@ var ze = [
|
|
|
639
843
|
}).prefault({}),
|
|
640
844
|
formatting: s({
|
|
641
845
|
line_length: d().nonnegative().prefault(79).transform((e) => Math.min(e, 1e3)),
|
|
642
|
-
infer_types: m(
|
|
846
|
+
infer_types: m(lt).prefault("off")
|
|
643
847
|
}).prefault({}),
|
|
644
848
|
keymap: s({
|
|
645
849
|
preset: m(["default", "vim"]).prefault("default"),
|
|
@@ -656,8 +860,8 @@ var ze = [
|
|
|
656
860
|
]).prefault("off"),
|
|
657
861
|
reactive_tests: p().prefault(!0),
|
|
658
862
|
watcher_on_save: m(["lazy", "autorun"]).prefault("lazy"),
|
|
659
|
-
default_sql_output: m(
|
|
660
|
-
default_auto_download: c(m(
|
|
863
|
+
default_sql_output: m(st).prefault("auto"),
|
|
864
|
+
default_auto_download: c(m(ct)).prefault([]),
|
|
661
865
|
show_tracebacks: p().prefault(!1)
|
|
662
866
|
}).prefault({}),
|
|
663
867
|
display: s({
|
|
@@ -671,37 +875,37 @@ var ze = [
|
|
|
671
875
|
dataframes: m(["rich", "plain"]).prefault("rich"),
|
|
672
876
|
default_table_page_size: d().prefault(10),
|
|
673
877
|
default_table_max_columns: d().prefault(50),
|
|
674
|
-
default_width: m(
|
|
878
|
+
default_width: m(ot).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
|
|
675
879
|
locale: u().nullable().optional(),
|
|
676
880
|
reference_highlighting: p().prefault(!0),
|
|
677
881
|
code_lens: p().prefault(!0)
|
|
678
882
|
}).prefault({}),
|
|
679
|
-
package_management: s({ manager: m(
|
|
883
|
+
package_management: s({ manager: m(at).prefault("pip") }).prefault({}),
|
|
680
884
|
ai: s({
|
|
681
885
|
enabled: p().prefault(!0),
|
|
682
886
|
rules: u().prefault(""),
|
|
683
887
|
max_tokens: d().int().positive().nullable().optional(),
|
|
684
|
-
mode: m(
|
|
888
|
+
mode: m(ut).transform((e) => e === "manual" ? "ask" : e).prefault("ask"),
|
|
685
889
|
inline_tooltip: p().prefault(!1),
|
|
686
890
|
allow_provider_config: p().prefault(!0),
|
|
687
|
-
open_ai:
|
|
688
|
-
github:
|
|
689
|
-
anthropic:
|
|
690
|
-
google:
|
|
691
|
-
ollama:
|
|
692
|
-
openrouter:
|
|
693
|
-
wandb:
|
|
694
|
-
opencode_go:
|
|
695
|
-
open_ai_compatible:
|
|
696
|
-
azure:
|
|
891
|
+
open_ai: Y.optional(),
|
|
892
|
+
github: Y.optional(),
|
|
893
|
+
anthropic: Y.optional(),
|
|
894
|
+
google: Y.optional(),
|
|
895
|
+
ollama: Y.optional(),
|
|
896
|
+
openrouter: Y.optional(),
|
|
897
|
+
wandb: Y.optional(),
|
|
898
|
+
opencode_go: Y.optional(),
|
|
899
|
+
open_ai_compatible: Y.optional(),
|
|
900
|
+
azure: Y.optional(),
|
|
697
901
|
bedrock: s({
|
|
698
902
|
region_name: u().optional(),
|
|
699
903
|
profile_name: u().optional(),
|
|
700
904
|
aws_access_key_id: u().optional(),
|
|
701
905
|
aws_secret_access_key: u().optional()
|
|
702
906
|
}).optional(),
|
|
703
|
-
custom_providers: l(u(),
|
|
704
|
-
models:
|
|
907
|
+
custom_providers: l(u(), Y).prefault({}),
|
|
908
|
+
models: dt.prefault({
|
|
705
909
|
displayed_models: [],
|
|
706
910
|
custom_models: []
|
|
707
911
|
})
|
|
@@ -742,27 +946,27 @@ var ze = [
|
|
|
742
946
|
ai: {},
|
|
743
947
|
package_management: {},
|
|
744
948
|
mcp: {}
|
|
745
|
-
})),
|
|
746
|
-
width: m(
|
|
747
|
-
app_title:
|
|
949
|
+
})), pt = u(), mt = m(st).prefault("auto"), ht = f({
|
|
950
|
+
width: m(ot).prefault("compact").transform((e) => e === "normal" ? "compact" : e),
|
|
951
|
+
app_title: pt.nullish(),
|
|
748
952
|
css_file: u().nullish(),
|
|
749
953
|
html_head_file: u().nullish(),
|
|
750
|
-
auto_download: c(m(
|
|
751
|
-
sql_output:
|
|
954
|
+
auto_download: c(m(ct)).prefault([]),
|
|
955
|
+
sql_output: mt
|
|
752
956
|
}).prefault(() => ({
|
|
753
|
-
width: "
|
|
957
|
+
width: "compact",
|
|
754
958
|
auto_download: [],
|
|
755
959
|
sql_output: "auto"
|
|
756
960
|
}));
|
|
757
|
-
function
|
|
961
|
+
function gt(e) {
|
|
758
962
|
try {
|
|
759
|
-
return
|
|
963
|
+
return ht.parse(e);
|
|
760
964
|
} catch (e) {
|
|
761
|
-
return r.error(`Marimo got an unexpected value in the configuration file: ${e}`),
|
|
965
|
+
return r.error(`Marimo got an unexpected value in the configuration file: ${e}`), ht.parse({});
|
|
762
966
|
}
|
|
763
967
|
}
|
|
764
|
-
function
|
|
765
|
-
return
|
|
968
|
+
function _t() {
|
|
969
|
+
return ft.parse({
|
|
766
970
|
completion: {},
|
|
767
971
|
save: {},
|
|
768
972
|
formatting: {},
|
|
@@ -780,47 +984,47 @@ function Xe() {
|
|
|
780
984
|
}
|
|
781
985
|
//#endregion
|
|
782
986
|
//#region src/core/config/config.ts
|
|
783
|
-
function
|
|
987
|
+
function vt(...e) {
|
|
784
988
|
return v({}, ...e, (e, t) => {
|
|
785
989
|
if (Array.isArray(t)) return [...t];
|
|
786
990
|
});
|
|
787
991
|
}
|
|
788
|
-
var X = F(
|
|
789
|
-
let t = e(
|
|
790
|
-
return
|
|
791
|
-
}),
|
|
992
|
+
var X = F(_t()), yt = F({}), Z = F((e) => {
|
|
993
|
+
let t = e(yt);
|
|
994
|
+
return vt(e(X), t);
|
|
995
|
+
}), bt = F((e) => e(Z).runtime.auto_instantiate), xt = F((e) => e(Z).keymap.overrides ?? {}), St = F(i());
|
|
792
996
|
F((e) => {
|
|
793
|
-
let t = e(
|
|
997
|
+
let t = e(xt), r = e(St);
|
|
794
998
|
return new n(t, { platform: r });
|
|
795
999
|
}), F((e) => e(Z).save), F((e) => e(Z).server.transport === "sse" ? "sse" : "websocket"), F((e) => e(Z).ai), F((e) => e(Z).completion), F((e) => e(Z).keymap.preset);
|
|
796
|
-
function
|
|
1000
|
+
function Ct() {
|
|
797
1001
|
let e = (0, W.c)(3), t = H(Z), n = U(X), r;
|
|
798
1002
|
return e[0] !== t || e[1] !== n ? (r = [t, n], e[0] = t, e[1] = n, e[2] = r) : r = e[2], r;
|
|
799
1003
|
}
|
|
800
|
-
function
|
|
801
|
-
return
|
|
1004
|
+
function wt() {
|
|
1005
|
+
return J.get(Z);
|
|
802
1006
|
}
|
|
803
|
-
F((e) =>
|
|
804
|
-
var
|
|
1007
|
+
F((e) => Ot(e(Z)));
|
|
1008
|
+
var Tt = F((e) => kt(e(Z))), Et = F((e) => At(e(Z)));
|
|
805
1009
|
F((e) => e(Z).display.code_editor_font_size);
|
|
806
|
-
var
|
|
807
|
-
function
|
|
1010
|
+
var Dt = F((e) => e(Z).display.locale);
|
|
1011
|
+
function Ot(e) {
|
|
808
1012
|
return e.ai?.enabled !== !1;
|
|
809
1013
|
}
|
|
810
|
-
function
|
|
1014
|
+
function kt(e) {
|
|
811
1015
|
return !!e.ai?.models?.chat_model || !!e.ai?.models?.edit_model || !!e.ai?.models?.autocomplete_model;
|
|
812
1016
|
}
|
|
813
|
-
function
|
|
814
|
-
return
|
|
1017
|
+
function At(e) {
|
|
1018
|
+
return Ot(e) && kt(e);
|
|
815
1019
|
}
|
|
816
|
-
var
|
|
817
|
-
F((e) => e(
|
|
1020
|
+
var jt = F({}), Mt = K(F((e) => e(it)?.revision.app_config ?? e(jt)), (e) => e, q), Nt = F((e) => gt(e(Mt)));
|
|
1021
|
+
F((e) => e(Nt).width), F((e) => {
|
|
818
1022
|
let t = e(Z), n = t.snippets?.custom_paths ?? [], r = t.snippets?.include_default_snippets;
|
|
819
1023
|
return n.length > 0 || r === !0;
|
|
820
1024
|
}), F((e) => e(Z).server?.disable_file_downloads ?? !1);
|
|
821
1025
|
//#endregion
|
|
822
1026
|
//#region src/core/constants.ts
|
|
823
|
-
var
|
|
1027
|
+
var Pt = {
|
|
824
1028
|
githubPage: "https://github.com/marimo-team/marimo",
|
|
825
1029
|
releasesPage: "https://github.com/marimo-team/marimo/releases",
|
|
826
1030
|
issuesPage: "https://github.com/marimo-team/marimo/issues",
|
|
@@ -830,7 +1034,7 @@ var dt = {
|
|
|
830
1034
|
docsPage: "https://docs.marimo.io",
|
|
831
1035
|
youtube: "https://www.youtube.com/@marimo-team",
|
|
832
1036
|
molab: "https://molab.marimo.io"
|
|
833
|
-
},
|
|
1037
|
+
}, Ft = {
|
|
834
1038
|
showCode: "show-code",
|
|
835
1039
|
includeCode: "include-code",
|
|
836
1040
|
sessionId: "session_id",
|
|
@@ -841,18 +1045,18 @@ var dt = {
|
|
|
841
1045
|
viewAs: "view-as",
|
|
842
1046
|
showChrome: "show-chrome",
|
|
843
1047
|
theme: "theme"
|
|
844
|
-
},
|
|
1048
|
+
}, It = { outputArea: "output-area" }, Lt = [
|
|
845
1049
|
"light",
|
|
846
1050
|
"dark",
|
|
847
1051
|
"system"
|
|
848
1052
|
];
|
|
849
|
-
function
|
|
1053
|
+
function Rt() {
|
|
850
1054
|
if (typeof window > "u") return;
|
|
851
|
-
let e = new URLSearchParams(window.location.search).get(
|
|
852
|
-
return
|
|
1055
|
+
let e = new URLSearchParams(window.location.search).get(Ft.theme);
|
|
1056
|
+
return Lt.includes(e) ? e : void 0;
|
|
853
1057
|
}
|
|
854
|
-
var
|
|
855
|
-
if (
|
|
1058
|
+
var zt = F((e) => {
|
|
1059
|
+
if (Ye()) {
|
|
856
1060
|
if (document.body.classList.contains("dark-mode") || document.body.classList.contains("dark") || document.body.dataset.theme === "dark" || document.body.dataset.mode === "dark" || $() === "dark") return "dark";
|
|
857
1061
|
let e = window.getComputedStyle(document.body), t = e.getPropertyValue("color-scheme").trim();
|
|
858
1062
|
if (t) return t.includes("dark") ? "dark" : "light";
|
|
@@ -863,16 +1067,16 @@ var gt = F((e) => {
|
|
|
863
1067
|
}
|
|
864
1068
|
return "light";
|
|
865
1069
|
}
|
|
866
|
-
return
|
|
1070
|
+
return Rt() ?? e(Z).display.theme;
|
|
867
1071
|
}), Q = F(!1);
|
|
868
|
-
function
|
|
1072
|
+
function Bt() {
|
|
869
1073
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
870
1074
|
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
871
|
-
|
|
872
|
-
|
|
1075
|
+
J.set(Q, e.matches), e.addEventListener("change", (e) => {
|
|
1076
|
+
J.set(Q, e.matches);
|
|
873
1077
|
});
|
|
874
1078
|
}
|
|
875
|
-
|
|
1079
|
+
Bt();
|
|
876
1080
|
function $() {
|
|
877
1081
|
switch (document.body.dataset.vscodeThemeKind) {
|
|
878
1082
|
case "vscode-dark": return "dark";
|
|
@@ -880,29 +1084,29 @@ function $() {
|
|
|
880
1084
|
case "vscode-light": return "light";
|
|
881
1085
|
}
|
|
882
1086
|
}
|
|
883
|
-
var
|
|
884
|
-
function
|
|
1087
|
+
var Vt = F($());
|
|
1088
|
+
function Ht() {
|
|
885
1089
|
let e = new MutationObserver(() => {
|
|
886
1090
|
let e = $();
|
|
887
|
-
|
|
1091
|
+
J.set(Vt, e);
|
|
888
1092
|
});
|
|
889
1093
|
return e.observe(document.body, {
|
|
890
1094
|
attributes: !0,
|
|
891
1095
|
attributeFilter: ["data-vscode-theme-kind"]
|
|
892
1096
|
}), () => e.disconnect();
|
|
893
1097
|
}
|
|
894
|
-
|
|
895
|
-
var
|
|
896
|
-
let t = e(
|
|
1098
|
+
Ht();
|
|
1099
|
+
var Ut = F((e) => {
|
|
1100
|
+
let t = e(zt), n = e(Vt);
|
|
897
1101
|
if (n !== void 0) return n;
|
|
898
1102
|
let r = e(Q);
|
|
899
1103
|
return t === "system" ? r ? "dark" : "light" : t;
|
|
900
1104
|
});
|
|
901
|
-
function
|
|
1105
|
+
function Wt() {
|
|
902
1106
|
let e = (0, W.c)(3), t;
|
|
903
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { store:
|
|
904
|
-
let n = H(
|
|
1107
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { store: J }, e[0] = t) : t = e[0];
|
|
1108
|
+
let n = H(Ut, t), r;
|
|
905
1109
|
return e[1] === n ? r = e[2] : (r = { theme: n }, e[1] = n, e[2] = r), r;
|
|
906
1110
|
}
|
|
907
1111
|
//#endregion
|
|
908
|
-
export {
|
|
1112
|
+
export { ke as A, Ye as C, Ke as D, Je as E, F, I, C as L, H as M, U as N, K as O, R as P, x as R, q as S, Pe as T, it as _, Ft as a, $e as b, bt as c, vt as d, Z as f, nt as g, rt as h, Pt as i, Me as j, We as k, wt as l, X as m, Wt as n, Et as o, Ct as p, It as r, Tt as s, Ut as t, Dt as u, tt as v, Fe as w, Qe as x, J as y };
|
|
@@ -3,20 +3,20 @@ import { g as t, h as n, m as r, o as i } from "./button-BQRdqQi1.js";
|
|
|
3
3
|
import { t as a } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as o } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { t as s } from "./tooltip-s4zZxwKe.js";
|
|
6
|
-
import { C as c, a as l } from "./toDate-
|
|
6
|
+
import { C as c, a as l } from "./toDate-CQAFSwos.js";
|
|
7
7
|
import { t as u } from "./jsx-runtime-3BD1kT0s.js";
|
|
8
8
|
import { n as d } from "./error-banner-DxJ3s8YO.js";
|
|
9
9
|
import { t as f } from "./debounce-C3jyATpc.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { R as p, n as ee } from "./useTheme-CY777LXN.js";
|
|
11
|
+
import { s as m, t as h } from "./arrays-DA6KkLfq.js";
|
|
12
12
|
import { t as te } from "./objects-DCmMvZtn.js";
|
|
13
|
-
import { t as ne } from "./useAsyncData-
|
|
14
|
-
import { a as g, i as re, n as ie, t as ae } from "./formats-
|
|
13
|
+
import { t as ne } from "./useAsyncData-BeyZyjso.js";
|
|
14
|
+
import { a as g, i as re, n as ie, t as ae } from "./formats-BtoHHy42.js";
|
|
15
15
|
import { t as _ } from "./semaphore-89jsoHtS.js";
|
|
16
16
|
import { D as oe, n as se } from "./vega-loader.browser-B9Pz0EGP.js";
|
|
17
17
|
import { t as ce } from "./react-vega-C4T9Rb_w.js";
|
|
18
18
|
import { a as le, n as v } from "./loader-DOVB0Syl.js";
|
|
19
|
-
import { t as ue } from "./useDeepCompareMemoize-
|
|
19
|
+
import { t as ue } from "./useDeepCompareMemoize-DOQgae0W.js";
|
|
20
20
|
import { t as de } from "./use-vega-container-remeasure-Bz4PZMtt.js";
|
|
21
21
|
//#region src/plugins/impl/vega/fix-relative-url.ts
|
|
22
22
|
var fe = /* @__PURE__ */ e(a(), 1), pe = o();
|
|
@@ -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-BwiyaNpg.js";
|
|
5
5
|
import { t as _ } from "./rough.esm-CtV9AnV1.js";
|
|
6
|
-
import { p as v } from "./mermaid-
|
|
6
|
+
import { p as v } from "./mermaid-CeWG4Egr.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-D7gxIs2Q.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-BwiyaNpg.js";
|
|
5
|
-
import { p as m } from "./mermaid-
|
|
5
|
+
import { p as m } from "./mermaid-CeWG4Egr.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
|
|
@@ -9,7 +9,7 @@ import { n as s } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
|
9
9
|
import { D as c, H as l, K as u, U as d, a as f, b as p, c as m, f as h, v as g, w as _, y as v, z as y } from "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
10
10
|
import "./chunk-PWAF6VOD-CQw5qATZ.js";
|
|
11
11
|
import { t as b } from "./chunk-GMAD6QVW-BhaJx0X3.js";
|
|
12
|
-
import { p as x } from "./mermaid-
|
|
12
|
+
import { p as x } from "./mermaid-CeWG4Egr.js";
|
|
13
13
|
//#region ../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/band.js
|
|
14
14
|
function S() {
|
|
15
15
|
var e = t().unknown(void 0), r = e.domain, i = e.range, o = 0, s = 1, c, l, u = !1, d = 0, f = 0, p = .5;
|