@marimo-team/islands 0.25.3-dev197 → 0.25.3-dev198

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 (135) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BRuwLOIx.js → ConnectedDataExplorerComponent-BsWiIPFk.js} +4 -4
  2. package/dist/{ErrorBoundary-jQVF8yMb.js → ErrorBoundary-D1Z3KAf_.js} +2 -2
  3. package/dist/{abnfDiagram-VCTEODGH-LlJTOOU_.js → abnfDiagram-VCTEODGH-I2x4Yu25.js} +2 -2
  4. package/dist/{architectureDiagram-5GKGNRK7-9PQtGLLZ.js → architectureDiagram-5GKGNRK7-1bSQMKzK.js} +1 -1
  5. package/dist/{arrays-DA6KkLfq.js → arrays-DoQ-AILx.js} +7 -21
  6. package/dist/{capabilities-CvWU-ey_.js → capabilities-C2QUNRXi.js} +1 -1
  7. package/dist/{chat-ui-Bl2euMBD.js → chat-ui-BAyHM_GD.js} +524 -524
  8. package/dist/{chunk-IMKFNOWR-DcXv-BD5.js → chunk-IMKFNOWR-fsCGAJ9G.js} +1 -1
  9. package/dist/{chunk-SHT3W25Y-VwnELN23.js → chunk-SHT3W25Y-D2STW4hj.js} +1 -1
  10. package/dist/{chunk-SVP7TREG-DgQpI5Zi.js → chunk-SVP7TREG-CiY7cQG-.js} +1 -1
  11. package/dist/{chunk-TICWLB2K-CTg6VTJT.js → chunk-TICWLB2K-C_t5RBp9.js} +1 -1
  12. package/dist/{classDiagram-ZZMXUADV-UzmcFrnW.js → classDiagram-ZZMXUADV-B2JvZAP4.js} +2 -2
  13. package/dist/{classDiagram-v2-VYDZK3BY-DhjiI6IQ.js → classDiagram-v2-VYDZK3BY-L8VsZG5A.js} +2 -2
  14. package/dist/{code-visibility-CjZo_SV8.js → code-visibility-CInEQd1e.js} +19 -19
  15. package/dist/{common-CFLvScF3.js → common-W5HfVJPN.js} +4362 -4362
  16. package/dist/{cynefinDiagram-5FMLGOSQ-O4ShIbJX.js → cynefinDiagram-5FMLGOSQ-DdllC264.js} +1 -1
  17. package/dist/{dagre-GXQ25YYZ-dtHhhcPu.js → dagre-GXQ25YYZ-BaWHw4_f.js} +1 -1
  18. package/dist/{data-grid-overlay-editor-CzW3mY6m.js → data-grid-overlay-editor-BQCaV0fI.js} +1 -1
  19. package/dist/{diagram-S7CK7UJ4-ppPYVZ6W.js → diagram-S7CK7UJ4-pFt-tUDe.js} +1 -1
  20. package/dist/{diagram-UQ7AKVKN-CMZDf--k.js → diagram-UQ7AKVKN-DqGJiBp4.js} +1 -1
  21. package/dist/{diagram-VX7I27RA-CFvJdx-C.js → diagram-VX7I27RA-Dr-yzMjf.js} +1 -1
  22. package/dist/{diagram-Z3DM3KII-Dt6_uFbv.js → diagram-Z3DM3KII-8xzJzv-w.js} +1 -1
  23. package/dist/{dropdown-menu-CeaOsjWZ.js → dropdown-menu-NlnsmNA6.js} +2 -2
  24. package/dist/{ebnfDiagram-PWID7BFC-DpRFrKK-.js → ebnfDiagram-PWID7BFC-Br04Wy-E.js} +2 -2
  25. package/dist/{erDiagram-RLTQ6QDP-CqAU4b0u.js → erDiagram-RLTQ6QDP-D5-XVgvv.js} +1 -1
  26. package/dist/{error-entries-CYGwr5-O.js → error-entries-BacCWMWj.js} +4678 -5028
  27. package/dist/{feedback-button-GR_8U4Vo.js → feedback-button-DLXUcQ7l.js} +113 -113
  28. package/dist/{flowDiagram-HODETNUW-i8-Gw8HO.js → flowDiagram-HODETNUW-CVl2kREF.js} +2 -2
  29. package/dist/{formats-BtoHHy42.js → formats-BCYthwyc.js} +1 -1
  30. package/dist/{glide-data-editor-Dfdxc22H.js → glide-data-editor-D5YaHPKx.js} +5 -5
  31. package/dist/{globals-CxjzBEbP.js → globals-DjX1uxzy.js} +2 -2
  32. package/dist/{html-to-image-Cy5UDpQJ.js → html-to-image-DAmgSo5P.js} +624 -573
  33. package/dist/{infoDiagram-27XIBGKW-DpfOKdLL.js → infoDiagram-27XIBGKW-BJ4vNcZE.js} +1 -1
  34. package/dist/{ishikawaDiagram-5VMMS53U-Dg7mrMG7.js → ishikawaDiagram-5VMMS53U-B_Jy1Dsm.js} +1 -1
  35. package/dist/{kanban-definition-UXKFOSKX-QB6e3Jrj.js → kanban-definition-UXKFOSKX-C6MkS9vw.js} +1 -1
  36. package/dist/main.js +1117 -1117
  37. package/dist/{mermaid-CeWG4Egr.js → mermaid-Bh918qrq.js} +34 -34
  38. package/dist/{mindmap-definition-YA3MSWOX-BTz3uTGe.js → mindmap-definition-YA3MSWOX-BP3ZTuir.js} +1 -1
  39. package/dist/{number-overlay-editor-CwHYeI4e.js → number-overlay-editor-3C_K6w_0.js} +1 -1
  40. package/dist/{once-DWGO2mQ2.js → once-NnpX_HnX.js} +1 -1
  41. package/dist/{pegDiagram-XKGWAZYB-3ZIEa3mB.js → pegDiagram-XKGWAZYB-nNGOQtnt.js} +2 -2
  42. package/dist/{pieDiagram-E7YTZNPT-BJAlk046.js → pieDiagram-E7YTZNPT-CpRz5BZz.js} +1 -1
  43. package/dist/{process-output-q9MTAIMX.js → process-output-DweUmAmV.js} +3 -3
  44. package/dist/{railroadDiagram-O6MQD6OU-Dn3bsSRa.js → railroadDiagram-O6MQD6OU-BqOEN4I0.js} +2 -2
  45. package/dist/{requirementDiagram-BXWQKSXE-wcOmQQCL.js → requirementDiagram-BXWQKSXE-CEfg6vu9.js} +1 -1
  46. package/dist/{reveal-component-C5bOqXlB.js → reveal-component-JjJRTT9d.js} +17 -17
  47. package/dist/{sequenceDiagram-WJ2MYXX4-DSh_qxoF.js → sequenceDiagram-WJ2MYXX4-IOmpQcOi.js} +1 -1
  48. package/dist/{spec-C7Fos-If.js → spec-Dkp64vVQ.js} +1 -1
  49. package/dist/{stateDiagram-D77RDMKH-DH_H8NMH.js → stateDiagram-D77RDMKH-tgU-EY9_.js} +2 -2
  50. package/dist/{stateDiagram-v2-MP3YSRHH-D_JM7MEK.js → stateDiagram-v2-MP3YSRHH-BofhG6q1.js} +2 -2
  51. package/dist/{swimlanes-42K2YHIH-CfoTJO-9.js → swimlanes-42K2YHIH-DW4vWDBd.js} +1 -1
  52. package/dist/{swimlanesDiagram-VR7AAH4N-Z_QhvK0G.js → swimlanesDiagram-VR7AAH4N-BJcrqUJr.js} +2 -2
  53. package/dist/{swiper-component-D2geL1Ku.js → swiper-component-BVfnhbnt.js} +1 -1
  54. package/dist/{timeline-definition-24CTP7MA-BFtdScaL.js → timeline-definition-24CTP7MA-D_QU3NGs.js} +1 -1
  55. package/dist/{toDate-CQAFSwos.js → toDate-BNDEXbfV.js} +30 -30
  56. package/dist/{useAsyncData-BeyZyjso.js → useAsyncData-ASDni9vH.js} +1 -1
  57. package/dist/{useDeepCompareMemoize-DOQgae0W.js → useDeepCompareMemoize-B1Ogyf53.js} +1 -1
  58. package/dist/{useIframeCapabilities-DNvaj9wM.js → useIframeCapabilities-6a_yDNXp.js} +1 -1
  59. package/dist/{useLifecycle-n2lnCFS8.js → useLifecycle-Bfpa2m7k.js} +1 -1
  60. package/dist/{useTheme-CY777LXN.js → useTheme-5TwyOh3B.js} +66 -66
  61. package/dist/{vega-component-0nQzA-I8.js → vega-component-BHS9UOtC.js} +19 -19
  62. package/dist/{vennDiagram-4TSXK5OY-BXY8IGCA.js → vennDiagram-4TSXK5OY-YFYsNIAh.js} +1 -1
  63. package/dist/{wardleyDiagram-VM6X3IG4-D0tFe6eC.js → wardleyDiagram-VM6X3IG4-i_n8mAWC.js} +1 -1
  64. package/dist/{xychartDiagram-S5SC5T6Z-Dx8wFM-y.js → xychartDiagram-S5SC5T6Z-BYGN95wW.js} +1 -1
  65. package/package.json +1 -1
  66. package/src/__mocks__/document.tsx +13 -4
  67. package/src/__mocks__/notebook.ts +1 -2
  68. package/src/components/datasources/datasources.tsx +1 -1
  69. package/src/components/dependency-graph/custom-node.tsx +1 -1
  70. package/src/components/dependency-graph/minimap-content.tsx +12 -14
  71. package/src/components/editor/actions/useSetCodeVisibility.ts +1 -1
  72. package/src/components/editor/actions/useSetOutputsExpanded.ts +1 -1
  73. package/src/components/editor/alerts/stdin-blocking-alert.tsx +1 -1
  74. package/src/components/editor/cell/code/cell-editor.tsx +1 -1
  75. package/src/components/editor/cell/useSplitCell.tsx +8 -5
  76. package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
  77. package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
  78. package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
  79. package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
  80. package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
  81. package/src/components/editor/columns/cell-column.tsx +1 -1
  82. package/src/components/editor/columns/sortable-column.tsx +1 -1
  83. package/src/components/editor/links/__tests__/cell-link.test.tsx +1 -1
  84. package/src/components/editor/links/cell-link-list.tsx +1 -1
  85. package/src/components/editor/links/cell-link.tsx +1 -1
  86. package/src/components/editor/navigation/__tests__/navigation.test.ts +20 -6
  87. package/src/components/editor/navigation/__tests__/selection.test.ts +1 -2
  88. package/src/components/editor/navigation/clipboard.ts +5 -3
  89. package/src/components/editor/renderers/cell-array.tsx +7 -12
  90. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
  91. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +4 -4
  92. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +1 -1
  93. package/src/components/editor/stdin-blocking-alert.tsx +1 -1
  94. package/src/components/slides/__tests__/minimap-actions.test.tsx +13 -4
  95. package/src/components/slides/__tests__/minimap.test.ts +38 -19
  96. package/src/components/slides/minimap.tsx +11 -10
  97. package/src/components/sort/SortableCellsProvider.tsx +2 -21
  98. package/src/components/tracing/tracing.tsx +1 -1
  99. package/src/core/ai/__tests__/staged-cells.test.ts +1 -1
  100. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +8 -12
  101. package/src/core/ai/context/providers/cell-output.ts +2 -2
  102. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +34 -66
  103. package/src/core/ai/tools/edit-notebook-tool.ts +12 -10
  104. package/src/core/cells/__tests__/actions.test.ts +64 -25
  105. package/src/core/cells/__tests__/arrange.test.ts +156 -4
  106. package/src/core/cells/__tests__/cells.test.ts +12 -290
  107. package/src/core/cells/__tests__/document.test.ts +2 -46
  108. package/src/core/cells/__tests__/harness.ts +28 -4
  109. package/src/core/cells/__tests__/layout.test.ts +42 -54
  110. package/src/core/cells/__tests__/session.test.ts +0 -2
  111. package/src/core/cells/__tests__/utils.test.ts +9 -107
  112. package/src/core/cells/actions.ts +112 -26
  113. package/src/core/cells/add-missing-import.ts +1 -1
  114. package/src/core/cells/arrange.ts +206 -13
  115. package/src/core/cells/cells.ts +28 -256
  116. package/src/core/cells/document.ts +18 -122
  117. package/src/core/cells/layout.ts +79 -10
  118. package/src/core/cells/pending-delete-service.ts +1 -1
  119. package/src/core/cells/utils.ts +4 -4
  120. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +6 -7
  121. package/src/core/codemirror/copilot/getCodes.ts +2 -2
  122. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
  123. package/src/core/codemirror/lsp/utils.ts +1 -1
  124. package/src/core/documentation/doc-lookup.ts +1 -1
  125. package/src/core/edit-app.tsx +2 -5
  126. package/src/core/errors/error-entries.ts +1 -1
  127. package/src/core/islands/__tests__/bootstrap.test.ts +2 -6
  128. package/src/core/islands/components/web-components.tsx +1 -1
  129. package/src/core/notebook/document/__tests__/codemirror.test.ts +8 -0
  130. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +1 -1
  131. package/src/stories/cell.stories.tsx +1 -2
  132. package/src/stories/layout/vertical/one-column.stories.tsx +1 -2
  133. package/src/stories/runtime-story.tsx +2 -3
  134. package/src/utils/__tests__/id-tree.test.ts +0 -617
  135. package/src/utils/id-tree.tsx +0 -609
@@ -3,7 +3,7 @@ import { g as t, s as n } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
3
3
  import { n as r, t as i } from "./src-CA_m4ONl.js";
4
4
  import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { H as o, K as s, U as c, a as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-DU6HZSFF-BwiyaNpg.js";
6
- import { r as h } from "./mermaid-CeWG4Egr.js";
6
+ import { r as h } from "./mermaid-Bh918qrq.js";
7
7
  import { t as g } from "./chunk-F27PBJKO-ufseIn5y.js";
8
8
  import { t as _ } from "./chunk-XXDRQBXY-Dnl5VBqG.js";
9
9
  import { t as v } from "./chunk-POPQ4Y6H-hYOXbYH_.js";
@@ -5,7 +5,7 @@ import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { G as o, H as s, K as c, U as l, a as u, d, k as f, rt as p, s as ee, v as m, w as h, x as g, y as _ } from "./chunk-DU6HZSFF-BwiyaNpg.js";
6
6
  import { t as te } from "./channel-CPObtJXj.js";
7
7
  import { i as ne } from "./chunk-4HAMMTFA-D4eFPyFh.js";
8
- import { a as re, i as v, n as y, r as b } from "./mermaid-CeWG4Egr.js";
8
+ import { a as re, i as v, n as y, r as b } from "./mermaid-Bh918qrq.js";
9
9
  import { t as x } from "./chunk-5VM5RSS4-DKsmPCL6.js";
10
10
  import { t as S } from "./chunk-F27PBJKO-ufseIn5y.js";
11
11
  import { t as C } from "./chunk-XXDRQBXY-Dnl5VBqG.js";
@@ -1,7 +1,7 @@
1
1
  import { n as e } from "./src-CA_m4ONl.js";
2
2
  import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
3
3
  import { D as n, a as r, b as i, c as a, x as o, z as s } from "./chunk-DU6HZSFF-BwiyaNpg.js";
4
- import { p as c } from "./mermaid-CeWG4Egr.js";
4
+ import { p as c } from "./mermaid-Bh918qrq.js";
5
5
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-SVP7TREG.mjs
6
6
  var l = "", u = "", d = "", f = [], p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ t((e) => s(e, o()), "sanitizeText"), h = /* @__PURE__ */ t((e) => {
7
7
  switch (e.type) {
@@ -3,7 +3,7 @@ import { c as t, g as n } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
3
3
  import { n as r, t as i } from "./src-CA_m4ONl.js";
4
4
  import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { H as o, K as s, M as c, U as l, a as u, s as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-DU6HZSFF-BwiyaNpg.js";
6
- import { n as _, r as v } from "./mermaid-CeWG4Egr.js";
6
+ import { n as _, r as v } from "./mermaid-Bh918qrq.js";
7
7
  import { t as y } from "./chunk-5VM5RSS4-DKsmPCL6.js";
8
8
  import { t as b } from "./chunk-F27PBJKO-ufseIn5y.js";
9
9
  import { t as x } from "./chunk-XXDRQBXY-Dnl5VBqG.js";
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
9
9
  import "./chunk-GVQU2GXP-Cwbt-lF0.js";
10
10
  import "./chunk-L3NEJ4N5-n-zgIVSy.js";
11
11
  import "./chunk-OSK3NFVY-DXa-Cxbn.js";
12
- import "./mermaid-CeWG4Egr.js";
12
+ import "./mermaid-Bh918qrq.js";
13
13
  import "./chunk-F27PBJKO-ufseIn5y.js";
14
14
  import "./chunk-XXDRQBXY-Dnl5VBqG.js";
15
15
  import "./chunk-POPQ4Y6H-hYOXbYH_.js";
16
- import { i as t, n, r, t as i } from "./chunk-TICWLB2K-CTg6VTJT.js";
16
+ import { i as t, n, r, t as i } from "./chunk-TICWLB2K-C_t5RBp9.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-ZZMXUADV.mjs
18
18
  var a = {
19
19
  parser: n,
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
9
9
  import "./chunk-GVQU2GXP-Cwbt-lF0.js";
10
10
  import "./chunk-L3NEJ4N5-n-zgIVSy.js";
11
11
  import "./chunk-OSK3NFVY-DXa-Cxbn.js";
12
- import "./mermaid-CeWG4Egr.js";
12
+ import "./mermaid-Bh918qrq.js";
13
13
  import "./chunk-F27PBJKO-ufseIn5y.js";
14
14
  import "./chunk-XXDRQBXY-Dnl5VBqG.js";
15
15
  import "./chunk-POPQ4Y6H-hYOXbYH_.js";
16
- import { i as t, n, r, t as i } from "./chunk-TICWLB2K-CTg6VTJT.js";
16
+ import { i as t, n, r, t as i } from "./chunk-TICWLB2K-C_t5RBp9.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-VYDZK3BY.mjs
18
18
  var a = {
19
19
  parser: n,
@@ -1,13 +1,13 @@
1
1
  import { g as e } from "./button-BQRdqQi1.js";
2
- import { G as t, q as n } from "./error-entries-CYGwr5-O.js";
2
+ import { H as t, W as n } from "./error-entries-BacCWMWj.js";
3
3
  import { C as r } from "./select-2KOiReNY.js";
4
- import { _ as i, c as a, x as o, y as s } from "./toDate-CQAFSwos.js";
5
- import { C as c, F as l, M as u, _ as d, a as f } from "./useTheme-CY777LXN.js";
4
+ import { S as i, _ as a, c as o, y as s } from "./toDate-BNDEXbfV.js";
5
+ import { F as c, M as l, a as u, o as d, v as f } from "./useTheme-5TwyOh3B.js";
6
6
  //#region src/core/islands/state.ts
7
- var p = l(!1), m = l(/* @__PURE__ */ new Set()), h = l((e) => e(m)?.size === 0), g = l(!1), _ = l((e) => e(g) && e(p) === !1), v = l({
7
+ var p = c(!1), m = c(/* @__PURE__ */ new Set()), h = c((e) => e(m)?.size === 0), g = c(!1), _ = c((e) => e(g) && e(p) === !1), v = c({
8
8
  isInstantiated: !1,
9
9
  error: null
10
- }), y = l(!1);
10
+ }), y = c(!1);
11
11
  //#endregion
12
12
  //#region src/core/meta/state.ts
13
13
  function b() {
@@ -17,11 +17,11 @@ function b() {
17
17
  return e.warn("Failed to get version from mount config"), null;
18
18
  }
19
19
  }
20
- var x = b() || "0.25.3-dev197", S = l(x), C = l(!0);
21
- l(null);
20
+ var x = b() || "0.25.3-dev198", S = c(x), C = c(!0);
21
+ c(null);
22
22
  //#endregion
23
23
  //#region src/core/wasm/state.ts
24
- var w = l({
24
+ var w = c({
25
25
  kind: "loading",
26
26
  message: "Initializing..."
27
27
  }), T = {
@@ -33,7 +33,7 @@ var w = l({
33
33
  kind: "wasm",
34
34
  label: "Pyodide",
35
35
  capabilities: T,
36
- state: l((e) => {
36
+ state: c((e) => {
37
37
  let t = e(w);
38
38
  switch (t.kind) {
39
39
  case "loading": return {
@@ -59,7 +59,7 @@ var w = l({
59
59
  canRestart: !0,
60
60
  supportsLsp: !0
61
61
  },
62
- state: l((e) => {
62
+ state: c((e) => {
63
63
  let r = e(t);
64
64
  switch (r.state) {
65
65
  case n.OPEN: return { kind: "ready" };
@@ -85,12 +85,12 @@ var w = l({
85
85
  kind: "static",
86
86
  label: "Static",
87
87
  capabilities: T,
88
- state: l({ kind: "ready" })
88
+ state: c({ kind: "ready" })
89
89
  }, k = {
90
90
  kind: "islands",
91
91
  label: "Islands",
92
92
  capabilities: T,
93
- state: l((e) => {
93
+ state: c((e) => {
94
94
  let t = e(p);
95
95
  return t === !0 ? { kind: "ready" } : typeof t == "string" ? {
96
96
  kind: "failed",
@@ -105,28 +105,28 @@ var w = l({
105
105
  })
106
106
  };
107
107
  function A() {
108
- return a() ? O : c() ? k : o() ? E : D;
108
+ return o() ? O : d() ? k : i() ? E : D;
109
109
  }
110
- var j = l(A());
111
- l((e) => {
110
+ var j = c(A());
111
+ c((e) => {
112
112
  let t = e(j);
113
113
  return e(t.state).kind !== "ready" || t.kind === "static" ? !1 : t.kind !== "remote" || e(v).isInstantiated;
114
114
  });
115
115
  //#endregion
116
116
  //#region src/core/meta/code-visibility.ts
117
- var M = l((e) => {
118
- let t = e(d);
117
+ var M = c((e) => {
118
+ let t = e(f);
119
119
  return t !== null && [...t.cells.values()].some((e) => e.code !== null);
120
120
  });
121
121
  function N() {
122
- let e = u(M), t = u(i), { mode: n } = u(s), a = u(C), o = u(j).kind;
122
+ let e = l(M), t = l(a), { mode: n } = l(s), i = l(C), o = l(j).kind;
123
123
  if (t && o === "remote") return !0;
124
124
  switch (n) {
125
125
  case "edit":
126
126
  case "present": return !0;
127
127
  case "home":
128
128
  case "gallery": return !1;
129
- case "read": return !a || new URLSearchParams(window.location.search).get(f.includeCode) === "false" ? !1 : e;
129
+ case "read": return !i || new URLSearchParams(window.location.search).get(u.includeCode) === "false" ? !1 : e;
130
130
  default: return r(n), !1;
131
131
  }
132
132
  }