@mechane-ai/elements 0.64.0 → 0.67.0

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 (130) hide show
  1. package/README.md +39 -27
  2. package/dist/ai.js +285 -203
  3. package/dist/{article-BopqPz1K.js → article-anMy8fA5.js} +6 -6
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +137 -46
  6. package/dist/{categorical-values-8LA9KXhi.js → categorical-values-Bh7ZkEQn.js} +1 -1
  7. package/dist/charts/cartesian.js +1 -1
  8. package/dist/charts/comparison.js +1 -1
  9. package/dist/charts/distribution.js +1 -1
  10. package/dist/charts/figure.js +12 -12
  11. package/dist/charts/graph.js +1 -1
  12. package/dist/charts/hierarchy.js +1 -1
  13. package/dist/charts/image.js +1 -1
  14. package/dist/charts/matrix.js +1 -1
  15. package/dist/charts/plot.js +3 -3
  16. package/dist/charts/relationship.js +1 -1
  17. package/dist/charts/text.js +1 -1
  18. package/dist/charts/timeline.js +2 -2
  19. package/dist/charts/trend.js +1 -1
  20. package/dist/charts.js +2 -2
  21. package/dist/{code-block-BjQUIvvw.js → code-block-DbW_t9U4.js} +1 -1
  22. package/dist/collections.js +1 -1
  23. package/dist/{commands-BI9rWGpb.js → commands-C7Zrp-tG.js} +2 -2
  24. package/dist/content/code.js +1 -1
  25. package/dist/content/diff.js +3 -3
  26. package/dist/content/link.js +1 -1
  27. package/dist/content/markdown.js +1 -1
  28. package/dist/content/tree.js +2 -2
  29. package/dist/{content-link-C3RAJ2kP.js → content-link-BN4NPp0u.js} +1 -1
  30. package/dist/content.js +1 -1
  31. package/dist/{dates-D1v_jiva.js → dates-OTq-xU33.js} +2 -2
  32. package/dist/{dumbbell-plot-QGjFMk0X.js → dumbbell-plot-BQDGe0sQ.js} +3 -3
  33. package/dist/{embedding-map-D_RNxsCD.js → embedding-map-DmmknG7A.js} +6 -6
  34. package/dist/feedback.js +1 -1
  35. package/dist/{figure-frame-CF3298LZ.js → figure-frame-DlyNTDzh.js} +22 -21
  36. package/dist/forms/dates.js +1 -1
  37. package/dist/{forms-DlKhXUlc.js → forms-iAOjGRTO.js} +1 -1
  38. package/dist/forms.js +2 -2
  39. package/dist/{image-grid-BXsgVBnB.js → image-grid-CxEAQvTf.js} +3 -3
  40. package/dist/index.js +1 -1
  41. package/dist/kits/evaluation.js +13 -13
  42. package/dist/kits/interpretability.js +47 -43
  43. package/dist/kits/operations.js +80 -79
  44. package/dist/kits/research.js +364 -520
  45. package/dist/kits/training.js +108 -107
  46. package/dist/layout.js +1 -1
  47. package/dist/lesson.js +3 -3
  48. package/dist/{markdown-B92daSMP.js → markdown-Diffqqm7.js} +2 -2
  49. package/dist/mdx.js +6 -6
  50. package/dist/navigation/commands.js +1 -1
  51. package/dist/{navigation-D3vnWiVv.js → navigation-CTnYtVD8.js} +1 -1
  52. package/dist/navigation.js +4 -4
  53. package/dist/packages/ai/src/index.d.ts +2 -0
  54. package/dist/packages/ai/src/message-reactions.d.ts +51 -0
  55. package/dist/packages/ai/src/message.d.ts +3 -1
  56. package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
  57. package/dist/packages/collections/src/card-columns.d.ts +30 -0
  58. package/dist/packages/collections/src/collection-page.d.ts +43 -0
  59. package/dist/packages/collections/src/column-card.d.ts +15 -0
  60. package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
  61. package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
  62. package/dist/packages/collections/src/data-table.d.ts +2 -2
  63. package/dist/packages/collections/src/index.d.ts +5 -0
  64. package/dist/packages/collections/src/table-query.d.ts +13 -4
  65. package/dist/packages/collections/src/use-collection-controls.d.ts +6 -0
  66. package/dist/packages/feedback/src/feedback.d.ts +0 -4
  67. package/dist/packages/feedback/src/index.d.ts +1 -1
  68. package/dist/packages/kits/src/research/index.d.ts +0 -2
  69. package/dist/packages/layout/src/app-shell.d.ts +3 -1
  70. package/dist/packages/layout/src/index.d.ts +4 -4
  71. package/dist/packages/layout/src/page-inset.d.ts +5 -0
  72. package/dist/packages/layout/src/page-layout.d.ts +4 -9
  73. package/dist/packages/layout/src/page-toolbar.d.ts +1 -2
  74. package/dist/packages/layout/src/reading-column.d.ts +4 -0
  75. package/dist/packages/layout/src/record-page.d.ts +4 -6
  76. package/dist/packages/layout/src/sidebar.d.ts +3 -1
  77. package/dist/packages/layout/src/workbench.d.ts +2 -6
  78. package/dist/packages/navigation/src/current-page-click.d.ts +3 -0
  79. package/dist/packages/navigation/src/index.d.ts +1 -0
  80. package/dist/{param-DfOYi9wL.js → param-CKr8EYxF.js} +1 -1
  81. package/dist/{pierre-diff-DP_TXXIt.js → pierre-diff-DXVIwW7o.js} +1 -1
  82. package/dist/{plot-layout-BfXmAi71.js → plot-layout-CVzSbcU7.js} +24 -23
  83. package/dist/{plot-surface-UQgDiTVe.js → plot-surface-CBhI1alw.js} +1 -1
  84. package/dist/{reference-lines-BRHB78Wb.js → reference-lines-C970JwWZ.js} +1 -1
  85. package/dist/{scene-DlVQupfw.js → scene-C3dCxckI.js} +6 -6
  86. package/dist/scene.js +1 -1
  87. package/dist/{slope-chart-CjXcvoRJ.js → slope-chart-DekEJxsy.js} +4 -4
  88. package/dist/{src-DojhQZKX.js → src-BCAelv4f.js} +376 -399
  89. package/dist/{src-BYmv3_AL.js → src-Bkov5TTa.js} +204 -191
  90. package/dist/{src-BdQGb362.js → src-BsqbWDxS.js} +4 -4
  91. package/dist/{src-DPcnDU5H.js → src-CIyuaSCi.js} +101 -107
  92. package/dist/src-Dc1t1ugL.js +2612 -0
  93. package/dist/{src-BYnmQkDq.js → src-DceyVyL0.js} +2 -2
  94. package/dist/{src-BI1xQE7D.js → src-Dlh99sPD.js} +46 -32
  95. package/dist/styles2.css +35 -41
  96. package/dist/{time-series-Dg3DZRGx.js → time-series-BSNnijxf.js} +8 -8
  97. package/dist/{timeline-C2IVroD3.js → timeline-CnxfYSIg.js} +4 -4
  98. package/dist/{token-heatmap-CZtIPU60.js → token-heatmap-CJaXo56P.js} +3 -3
  99. package/dist/{token-predictions-BJ5L-Lrm.js → token-predictions-Bi7aKPnh.js} +3 -3
  100. package/dist/{transport-D9e0H2we.js → transport-CXj0DV6o.js} +4 -4
  101. package/dist/{tree-diagram-DRAJiqjW.js → tree-diagram-BxOZsjr1.js} +4 -4
  102. package/dist/{treemap-BdELCV7E.js → treemap-B2yOAetT.js} +4 -4
  103. package/dist/{use-tween-COV8bEYL.js → use-tween-C1TWJwce.js} +1 -1
  104. package/dist/{violin-plot-DuxqWnuD.js → violin-plot-W2L_2JRo.js} +3 -3
  105. package/dist/{waterfall-D4ewGb4u.js → waterfall-Bt73N2Ng.js} +4 -4
  106. package/package.json +1 -1
  107. package/recipes/allocation-report.tsx +4 -4
  108. package/recipes/calendar-workspace.tsx +14 -10
  109. package/recipes/consequential-form.tsx +4 -4
  110. package/recipes/searchable-collection.tsx +66 -58
  111. package/recipes/sectioned-report.tsx +17 -18
  112. package/recipes/session-timeline.tsx +59 -0
  113. package/recipes/tabbed-workspace.tsx +7 -8
  114. package/recipes/workspace-files.tsx +94 -0
  115. package/recipes/workspace-report.tsx +130 -0
  116. package/skills/extend-elements/SKILL.md +21 -0
  117. package/skills/review-elements/SKILL.md +20 -13
  118. package/skills/upgrade-elements/SKILL.md +3 -1
  119. package/skills/upgrade-elements/references/releases.md +36 -0
  120. package/skills/use-elements/SKILL.md +13 -7
  121. package/skills/use-elements/references/collections.md +67 -14
  122. package/skills/use-elements/references/conversations.md +32 -0
  123. package/skills/use-elements/references/editorial-restraint.md +17 -34
  124. package/skills/use-elements/references/figures.md +6 -2
  125. package/skills/use-elements/references/reports.md +4 -1
  126. package/skills/use-elements/references/workspace.md +18 -14
  127. package/dist/packages/kits/src/research/collection-page.d.ts +0 -72
  128. package/dist/packages/layout/src/detail-page.d.ts +0 -9
  129. package/dist/packages/layout/src/page-content.d.ts +0 -5
  130. package/dist/src-P19zz_aO.js +0 -2235
@@ -1,46 +1,31 @@
1
- import { E as e, F as t, M as n, O as r, i, k as a, l as o, n as s, u as c } from "./src-BYmv3_AL.js";
1
+ import { E as e, F as t, M as n, O as r, i, k as a, l as o, n as s, u as c } from "./src-Bkov5TTa.js";
2
2
  import { t as l } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
- import { a as u, i as d } from "./src-BI1xQE7D.js";
4
- import { n as f } from "./accessibility-P89UG9-r.js";
5
- import { a as p, i as m, t as h } from "./src-na2DdkKI.js";
6
- import { r as g } from "./commands-BI9rWGpb.js";
7
- import * as _ from "@stylexjs/stylex";
8
- import { Button as v } from "@ui-sdk/react/button";
9
- import { createParts as y, mergeProps as b } from "@ui-sdk/react/primitive";
10
- import { Children as x, createContext as S, useContext as C, useEffect as w, useId as T, useLayoutEffect as E, useRef as D, useState as O } from "react";
11
- import { definePrimitive as k } from "@ui-sdk/core";
12
- import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
13
- import { ArrowLeft as ee, PanelLeft as N, X as te } from "lucide-react";
3
+ import { a as u, i as d, o as f } from "./src-Dlh99sPD.js";
4
+ import { n as p } from "./accessibility-P89UG9-r.js";
5
+ import { a as m, i as h, t as g } from "./src-na2DdkKI.js";
6
+ import { r as _ } from "./commands-C7Zrp-tG.js";
7
+ import * as v from "@stylexjs/stylex";
8
+ import { Button as y } from "@ui-sdk/react/button";
9
+ import { createParts as b, mergeProps as x } from "@ui-sdk/react/primitive";
10
+ import { Children as S, createContext as C, useContext as w, useEffect as T, useId as E, useLayoutEffect as D, useRef as O, useState as k } from "react";
11
+ import { definePrimitive as A } from "@ui-sdk/core";
12
+ import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
13
+ import { ArrowLeft as ee, PanelLeft as P, X as te } from "lucide-react";
14
14
  import { Resizable as ne, ResizableHandle as re, ResizablePanel as ie } from "@ui-sdk/react/resizable";
15
- // packages/layout/src/page-content.tsx
16
- var P = S(!1);
17
- function F({ children: e }) {
18
- let t = C(P);
19
- return /* @__PURE__ */ j(P, {
20
- value: !0,
21
- children: /* @__PURE__ */ j("div", {
22
- ...{
23
- 0: { className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam" },
24
- 1: { className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli x1717udv" }
25
- }[!!t | 0],
26
- children: e
27
- })
28
- });
29
- }
30
15
  // packages/layout/src/page-context.tsx
31
- var ae = k({
16
+ var ae = A({
32
17
  name: "page-title",
33
18
  state: () => ({}),
34
19
  api: () => ({}),
35
20
  agent: { actions: [] },
36
21
  slots: (e) => ({ root: e({}) })
37
- }), I = y(ae, { root: "h1" }).Root;
22
+ }), F = b(ae, { root: "h1" }).Root;
38
23
  function oe({ section: e }) {
39
24
  if (e === null) return !1;
40
25
  let t = e.closest("[data-page-viewport]"), n = Math.max(0, t?.getBoundingClientRect().top ?? 0), r = e.getBoundingClientRect();
41
26
  return r.top <= n && r.bottom > n;
42
27
  }
43
- var se = k({
28
+ var se = A({
44
29
  name: "page-section",
45
30
  state: () => ({ section: null }),
46
31
  api: () => ({}),
@@ -51,14 +36,29 @@ var se = k({
51
36
  slots: (e) => ({ root: e({ bind(e, { store: t }) {
52
37
  t.set({ section: e });
53
38
  } }) })
54
- }), ce = y(se, { root: "section" }).Root, L = {
39
+ }), ce = b(se, { root: "section" }).Root, I = C(!1);
40
+ function L({ children: e }) {
41
+ let t = w(I);
42
+ return /* @__PURE__ */ M(I, {
43
+ value: !0,
44
+ children: /* @__PURE__ */ M("div", {
45
+ ...{
46
+ 0: { className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam" },
47
+ 1: { className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli x1717udv" }
48
+ }[!!t | 0],
49
+ children: e
50
+ })
51
+ });
52
+ }
53
+ // packages/layout/src/frame.stylex.ts
54
+ var R = {
55
55
  sidebarMobile: "@media (max-width:800px)",
56
56
  sidebarDesktopQuery: "(min-width:801px)",
57
57
  sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
58
58
  detailMobile: "@media (max-width:720px)",
59
59
  toolbarCompact: "@container toolbar (max-width:600px)",
60
60
  workbenchCompact: "@container workbench (max-width:860px)"
61
- }, R = S(null), z = {
61
+ }, z = C(null), B = {
62
62
  header: {
63
63
  kB7OPa: "x9f619",
64
64
  kVAEAm: "x1n2onr6",
@@ -73,6 +73,10 @@ var se = k({
73
73
  k1xSpc: "x1s85apg x1rhi5y4",
74
74
  $$css: !0
75
75
  },
76
+ collapsedNavigation: {
77
+ kg3NbH: "xksvo5r x1dbbav",
78
+ $$css: !0
79
+ },
76
80
  footer: {
77
81
  kB7OPa: "x9f619",
78
82
  kVAEAm: "x1n2onr6",
@@ -100,7 +104,7 @@ var se = k({
100
104
  inlineFooter: { $$css: !0 },
101
105
  navigationFooter: {
102
106
  k1xSpc: "x1lliihq",
103
- kg3NbH: "xnjsko4",
107
+ kg3NbH: "xksvo5r",
104
108
  k8WAf4: "xn9t2bk",
105
109
  $$css: !0
106
110
  },
@@ -122,68 +126,79 @@ var se = k({
122
126
  k1xSpc: "x1s85apg x1rhi5y4",
123
127
  $$css: !0
124
128
  }
125
- }, le = {
126
- inline: z.inlineFooter,
127
- navigation: z.navigationFooter
129
+ }, V = {
130
+ inline: {
131
+ base: B.inlineFooter,
132
+ collapsed: void 0
133
+ },
134
+ navigation: {
135
+ base: B.navigationFooter,
136
+ collapsed: B.collapsedNavigation
137
+ }
128
138
  };
129
- function B({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
130
- let a = C(R), o = a !== null && !a.isExpanded, s = e != null;
131
- return /* @__PURE__ */ M(A, { children: [
132
- /* @__PURE__ */ M("div", {
133
- ..._.props(z.header, c.blockEnd, !s && z.emptyHeader),
134
- children: [/* @__PURE__ */ j("div", {
139
+ function H({ header: e, navigationHeader: t, controls: n, footer: r, close: i, children: a }) {
140
+ let o = w(z), s = o !== null && !o.isExpanded, l = e != null, u = n != null && typeof n != "boolean";
141
+ return /* @__PURE__ */ N(j, { children: [
142
+ /* @__PURE__ */ N("div", {
143
+ ...v.props(B.header, c.blockEnd, !l && B.emptyHeader),
144
+ children: [/* @__PURE__ */ M("div", {
135
145
  ...{
136
146
  0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
137
147
  1: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli xl56j7k x1l31gyv xnjsko4 x7qzpmf" }
138
- }[!!o | 0],
148
+ }[!!s | 0],
139
149
  children: e
140
- }), r]
150
+ }), i]
141
151
  }),
142
152
  t,
143
- /* @__PURE__ */ j("div", {
153
+ /* @__PURE__ */ N("div", {
144
154
  role: "region",
145
155
  "aria-label": "Navigation links",
146
- className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
147
- children: i
156
+ ...{
157
+ 0: { className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj xksvo5r x13qnu6 x9v5kkp x19rmrnh x1bqaal" },
158
+ 1: { className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal xksvo5r x1dbbav" }
159
+ }[!!s | 0],
160
+ children: [u && /* @__PURE__ */ M("div", {
161
+ ...{
162
+ 0: { className: "xrvj5dj x1hnptsi xeuugli xh6i90z" },
163
+ 1: { className: "x1hnptsi xeuugli xh6i90z x1s85apg xxes8j5" }
164
+ }[!!s | 0],
165
+ children: n
166
+ }), a]
148
167
  }),
149
- n != null && /* @__PURE__ */ j("div", {
168
+ r != null && /* @__PURE__ */ M("div", {
150
169
  className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
151
- children: n
170
+ children: r
152
171
  })
153
172
  ] });
154
173
  }
155
- function ue() {
156
- return /* @__PURE__ */ j("div", {
174
+ function le() {
175
+ return /* @__PURE__ */ M("div", {
157
176
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
158
- children: /* @__PURE__ */ j(p.Close, {
159
- render: /* @__PURE__ */ j(r, {
177
+ children: /* @__PURE__ */ M(m.Close, {
178
+ render: /* @__PURE__ */ M(r, {
160
179
  variant: "ghost",
161
180
  "aria-label": "Close navigation"
162
181
  }),
163
- children: /* @__PURE__ */ j(te, {
182
+ children: /* @__PURE__ */ M(te, {
164
183
  size: 16,
165
184
  "aria-hidden": !0
166
185
  })
167
186
  })
168
187
  });
169
188
  }
170
- function de({ children: e, label: t = "Main" }) {
171
- let n = C(R), r = n !== null && !n.isExpanded;
172
- return /* @__PURE__ */ j("nav", {
189
+ function ue({ children: e, label: t = "Main" }) {
190
+ return /* @__PURE__ */ M("nav", {
173
191
  "aria-label": t,
174
- ...{
175
- 0: { className: "x78zum5 xdt5ytf xksvo5r" },
176
- 1: { className: "x78zum5 xdt5ytf xksvo5r x1dbbav" }
177
- }[!!r | 0],
192
+ className: "x78zum5 xdt5ytf",
178
193
  children: e
179
194
  });
180
195
  }
181
- function fe({ children: e, label: t }) {
182
- let n = C(R), r = n !== null && !n.isExpanded, i = T();
183
- return /* @__PURE__ */ M("section", {
196
+ function de({ children: e, label: t }) {
197
+ let n = w(z), r = n !== null && !n.isExpanded, i = E();
198
+ return /* @__PURE__ */ N("section", {
184
199
  "aria-labelledby": i,
185
200
  className: "xeuugli",
186
- children: [/* @__PURE__ */ j("div", {
201
+ children: [/* @__PURE__ */ M("div", {
187
202
  id: i,
188
203
  ...{
189
204
  0: { className: "xeuugli xmblgzg xngumbj xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
@@ -193,16 +208,16 @@ function fe({ children: e, label: t }) {
193
208
  }), e]
194
209
  });
195
210
  }
196
- function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
197
- let c = C(R), l = T(), u = c !== null && !c.isExpanded;
198
- return /* @__PURE__ */ j("div", {
211
+ function fe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
212
+ let c = w(z), l = E(), u = c !== null && !c.isExpanded;
213
+ return /* @__PURE__ */ M("div", {
199
214
  ...{
200
215
  0: { className: "x78zum5 xeuugli x1ok0vyi" },
201
216
  1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
202
217
  }[!!n | 0],
203
- children: /* @__PURE__ */ M(v, {
218
+ children: /* @__PURE__ */ N(y, {
204
219
  ...s,
205
- ...f({
220
+ ...p({
206
221
  className: a,
207
222
  style: o,
208
223
  styles: {
@@ -216,11 +231,11 @@ function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
216
231
  onClick: (e, t) => {
217
232
  i !== void 0 && i(e, t), !e.defaultPrevented && c !== null && r && c.onNavigate();
218
233
  },
219
- children: [t != null && /* @__PURE__ */ j("span", {
234
+ children: [t != null && /* @__PURE__ */ M("span", {
220
235
  "aria-hidden": !0,
221
236
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
222
237
  children: t
223
- }), /* @__PURE__ */ j("span", {
238
+ }), /* @__PURE__ */ M("span", {
224
239
  id: l,
225
240
  ...{
226
241
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
@@ -231,33 +246,31 @@ function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
231
246
  })
232
247
  });
233
248
  }
234
- function me({ children: e, icon: t, isSelected: r = !1, onClick: i, className: a, style: o, ...s }) {
235
- let c = C(R), l = T(), u = c !== null && !c.isExpanded, d = {
249
+ function pe({ children: e, icon: t, isSelected: r = !1, onClick: i, className: a, style: o, ...s }) {
250
+ let c = w(z), l = E(), u = c !== null && !c.isExpanded, d = {
236
251
  0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r" },
237
252
  2: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" },
238
253
  1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r x1r7kqkb" },
239
254
  3: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv x1r7kqkb" }
240
255
  }[!!u << 1 | !!r];
241
- return /* @__PURE__ */ M(n, {
256
+ return /* @__PURE__ */ N(n, {
242
257
  ...s,
243
258
  "aria-current": r ? "page" : void 0,
244
259
  "aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
245
260
  title: s.title ?? (typeof e == "string" ? e : void 0),
246
261
  onClick: (e) => {
247
- if (i !== void 0 && i(e), c === null || e.button !== 0) return;
248
- let t = e.metaKey || e.ctrlKey, n = e.shiftKey || e.altKey;
249
- t || n || c.onNavigate();
262
+ i !== void 0 && i(e), c !== null && f(e) && c.onNavigate();
250
263
  },
251
264
  className: [d.className, a].filter(Boolean).join(" "),
252
265
  style: {
253
266
  ...d.style,
254
267
  ...o
255
268
  },
256
- children: [t != null && /* @__PURE__ */ j("span", {
269
+ children: [t != null && /* @__PURE__ */ M("span", {
257
270
  "aria-hidden": !0,
258
271
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
259
272
  children: t
260
- }), /* @__PURE__ */ j("span", {
273
+ }), /* @__PURE__ */ M("span", {
261
274
  id: l,
262
275
  ...{
263
276
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
@@ -267,32 +280,32 @@ function me({ children: e, icon: t, isSelected: r = !1, onClick: i, className: a
267
280
  })]
268
281
  });
269
282
  }
270
- function he({ title: e, subtitle: t, icon: n }) {
271
- let r = C(R), i = r !== null && !r.isExpanded;
272
- return /* @__PURE__ */ M("div", {
283
+ function me({ title: e, subtitle: t, icon: n }) {
284
+ let r = w(z), i = r !== null && !r.isExpanded;
285
+ return /* @__PURE__ */ N("div", {
273
286
  className: "x78zum5 x6s0dn4 x1hnptsi xeuugli x98rzlu",
274
- children: [n != null && /* @__PURE__ */ j("span", {
287
+ children: [n != null && /* @__PURE__ */ M("span", {
275
288
  "aria-hidden": !0,
276
289
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
277
290
  children: n
278
- }), /* @__PURE__ */ M("div", {
291
+ }), /* @__PURE__ */ N("div", {
279
292
  ...{
280
293
  0: { className: "x78zum5 xdt5ytf xeuugli x1u7k74" },
281
294
  1: { className: "xdt5ytf xeuugli x1u7k74 x1s85apg xeod2sa" }
282
295
  }[!!i | 0],
283
- children: [/* @__PURE__ */ j("span", {
296
+ children: [/* @__PURE__ */ M("span", {
284
297
  className: "xtqrqnz xk4h15q xbixft xb3r6kr xlyipyv xuxw1ft",
285
298
  children: e
286
- }), t !== void 0 && /* @__PURE__ */ j("span", {
299
+ }), t !== void 0 && /* @__PURE__ */ M("span", {
287
300
  className: "xy8obcc x153jb6y xb3r6kr xlyipyv xuxw1ft",
288
301
  children: t
289
302
  })]
290
303
  })]
291
304
  });
292
305
  }
293
- function ge({ children: e, shouldGrow: t = !1 }) {
294
- let n = C(R), r = n !== null && !n.isExpanded;
295
- return /* @__PURE__ */ j("span", {
306
+ function he({ children: e, shouldGrow: t = !1 }) {
307
+ let n = w(z), r = n !== null && !n.isExpanded;
308
+ return /* @__PURE__ */ M("span", {
296
309
  ...{
297
310
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
298
311
  2: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x78zum5 x6s0dn4 x1hnptsi x98rzlu" },
@@ -302,39 +315,39 @@ function ge({ children: e, shouldGrow: t = !1 }) {
302
315
  children: e
303
316
  });
304
317
  }
305
- function _e({ children: e, layout: t = "inline" }) {
306
- let n = C(R), r = n !== null && !n.isExpanded;
307
- return /* @__PURE__ */ j("div", {
308
- ..._.props(z.footer, c.blockStart, r && z.collapsedFooter, le[t]),
318
+ function ge({ children: e, layout: t = "inline" }) {
319
+ let n = w(z), r = n !== null && !n.isExpanded;
320
+ return /* @__PURE__ */ M("div", {
321
+ ...v.props(B.footer, c.blockStart, r && B.collapsedFooter, V[t].base, r && V[t].collapsed),
309
322
  children: e
310
323
  });
311
324
  }
312
- function ve() {
313
- let e = C(R);
314
- return e === null ? null : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
315
- ..._.props(z.toggleCell, c.inlineEnd, z.desktop),
316
- children: /* @__PURE__ */ j(r, {
325
+ function _e() {
326
+ let e = w(z);
327
+ return e === null || e.isFocusMode ? null : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("div", {
328
+ ...v.props(B.toggleCell, c.inlineEnd, B.desktop),
329
+ children: /* @__PURE__ */ M(r, {
317
330
  ref: e.navigationToggleRef,
318
331
  variant: "ghost",
319
332
  "aria-label": e.isExpanded ? "Collapse navigation" : "Expand navigation",
320
333
  "aria-controls": e.sidebarId,
321
334
  "aria-expanded": e.isExpanded,
322
335
  onClick: e.onToggle,
323
- children: /* @__PURE__ */ j(N, {
336
+ children: /* @__PURE__ */ M(P, {
324
337
  size: 16,
325
338
  "aria-hidden": !0
326
339
  })
327
340
  })
328
- }), /* @__PURE__ */ j("div", {
329
- ..._.props(z.toggleCell, c.inlineEnd, z.mobile),
330
- children: /* @__PURE__ */ j(p.Trigger, {
341
+ }), /* @__PURE__ */ M("div", {
342
+ ...v.props(B.toggleCell, c.inlineEnd, B.mobile),
343
+ children: /* @__PURE__ */ M(m.Trigger, {
331
344
  ref: e.mobileNavigationToggleRef,
332
345
  controller: e.drawerController,
333
- render: /* @__PURE__ */ j(r, {
346
+ render: /* @__PURE__ */ M(r, {
334
347
  variant: "ghost",
335
348
  "aria-label": "Open navigation"
336
349
  }),
337
- children: /* @__PURE__ */ j(N, {
350
+ children: /* @__PURE__ */ M(P, {
338
351
  size: 16,
339
352
  "aria-hidden": !0
340
353
  })
@@ -342,7 +355,7 @@ function ve() {
342
355
  })] });
343
356
  }
344
357
  // packages/layout/src/page-toolbar.tsx
345
- var V = {
358
+ var U = {
346
359
  toolbar: {
347
360
  kB7OPa: "x9f619",
348
361
  kVAEAm: "x7wzq59",
@@ -371,51 +384,52 @@ var V = {
371
384
  $$css: !0
372
385
  }
373
386
  };
374
- function ye({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
375
- let a = x.toArray(e).length > 0, o = x.toArray(t).length > 0, s = x.toArray(i).length > 0;
376
- if (x.toArray([
387
+ function ve({ title: e, actions: t, showBreadcrumb: n = !1, leading: r }) {
388
+ let i = S.toArray(e).length > 0, a = S.toArray(t).length > 0, o = S.toArray(r).length > 0;
389
+ if (S.toArray([
377
390
  e,
378
391
  t,
379
- i
392
+ r
380
393
  ]).length === 0) return null;
381
- let l = n ? "nav" : I, u = n ? "div" : "span";
382
- return /* @__PURE__ */ M("div", {
383
- ..._.props(V.toolbar, c.blockEnd),
394
+ let s = n ? "nav" : F, l = n ? "div" : "span";
395
+ return /* @__PURE__ */ N("div", {
396
+ ...v.props(U.toolbar, c.blockEnd),
384
397
  children: [
385
- s ? /* @__PURE__ */ j("div", {
398
+ /* @__PURE__ */ M(_e, {}),
399
+ o && /* @__PURE__ */ M("div", {
386
400
  className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
387
- children: i
388
- }) : r && /* @__PURE__ */ j(ve, {}),
389
- a && /* @__PURE__ */ j(l, {
401
+ children: r
402
+ }),
403
+ i && /* @__PURE__ */ M(s, {
390
404
  tabIndex: n ? void 0 : -1,
391
405
  "aria-label": n ? "Breadcrumb" : void 0,
392
406
  className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xjnfzvw x1oec0jp x1cqoux5 x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
393
- children: /* @__PURE__ */ j(u, {
407
+ children: /* @__PURE__ */ M(l, {
394
408
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
395
409
  children: e
396
410
  })
397
411
  }),
398
- o && /* @__PURE__ */ j("div", {
412
+ a && /* @__PURE__ */ M("div", {
399
413
  className: "x78zum5 x1a02dak x6s0dn4 xunmzkg x1dc62k6 xeuugli x1oec0jp x193iq5w x9f619 xs83m0k x8x9d4c",
400
414
  children: t
401
415
  })
402
416
  ]
403
417
  });
404
418
  }
405
- function be({ icon: t, children: n, ...r }) {
419
+ function ye({ icon: t, children: n, ...r }) {
406
420
  let i = t != null;
407
- return /* @__PURE__ */ j("div", {
421
+ return /* @__PURE__ */ M("div", {
408
422
  className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
409
- children: /* @__PURE__ */ M(e, {
423
+ children: /* @__PURE__ */ N(e, {
410
424
  ...r,
411
425
  variant: "ghost",
412
426
  "aria-label": r["aria-label"] ?? (typeof n == "string" ? n : void 0),
413
- xstyle: V.action,
414
- children: [i && /* @__PURE__ */ j("span", {
427
+ xstyle: U.action,
428
+ children: [i && /* @__PURE__ */ M("span", {
415
429
  "aria-hidden": !0,
416
430
  className: "x3nfvp2 x2lah0s x6s0dn4",
417
431
  children: t
418
- }), i || typeof n == "string" ? /* @__PURE__ */ j("span", {
432
+ }), i || typeof n == "string" ? /* @__PURE__ */ M("span", {
419
433
  ...{
420
434
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
421
435
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
@@ -426,15 +440,15 @@ function be({ icon: t, children: n, ...r }) {
426
440
  });
427
441
  }
428
442
  // packages/layout/src/page-layout.tsx
429
- function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
443
+ function W({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
430
444
  let a = l();
431
- return /* @__PURE__ */ M("div", {
445
+ return /* @__PURE__ */ N("div", {
432
446
  ref: e,
433
447
  className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
434
- children: [/* @__PURE__ */ M("div", {
448
+ children: [/* @__PURE__ */ N("div", {
435
449
  className: "xeuugli",
436
- children: [/* @__PURE__ */ j(ye, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ j(u, { ...t }) : /* @__PURE__ */ j(d, { ...t }))]
437
- }), /* @__PURE__ */ j("div", {
450
+ children: [/* @__PURE__ */ M(ve, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ M(u, { ...t }) : /* @__PURE__ */ M(d, { ...t }))]
451
+ }), /* @__PURE__ */ M("div", {
438
452
  ref: a.ref,
439
453
  tabIndex: a.tabIndex,
440
454
  "data-page-viewport": "",
@@ -444,33 +458,29 @@ function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-
444
458
  })]
445
459
  });
446
460
  }
447
- function xe({ children: e, summary: t, breakdown: n, ...r }) {
448
- let i = t != null && t !== !1, a = e != null && e !== !1, s = T(), c = r.id ?? s;
449
- return /* @__PURE__ */ M(ce, {
450
- "aria-labelledby": c,
461
+ function be({ children: e, summary: t, ...n }) {
462
+ let r = t != null && typeof t != "boolean", i = E(), a = n.id ?? i;
463
+ return /* @__PURE__ */ N(ce, {
464
+ "aria-labelledby": a,
451
465
  className: "xeuugli x2lah0s xc8icb0",
452
- children: [/* @__PURE__ */ j("div", {
466
+ children: [/* @__PURE__ */ M("div", {
453
467
  className: "x1uhb9sk xsbffnv x13vifvy x11ru5tl",
454
- children: /* @__PURE__ */ j(o, {
455
- ...r,
456
- id: c
468
+ children: /* @__PURE__ */ M(o, {
469
+ ...n,
470
+ id: a
457
471
  })
458
- }), /* @__PURE__ */ M("div", {
472
+ }), /* @__PURE__ */ N("div", {
459
473
  className: "xc8icb0",
460
- children: [
461
- i && /* @__PURE__ */ j(F, { children: t }),
462
- n,
463
- a && /* @__PURE__ */ j(F, { children: e })
464
- ]
474
+ children: [r && /* @__PURE__ */ M(L, { children: t }), e]
465
475
  })]
466
476
  });
467
477
  }
468
478
  // packages/layout/src/devtools-bar.tsx
469
- var Se = { bar: {
479
+ var xe = { bar: {
470
480
  kOIVth: "x1n8ia3y",
471
481
  kAzted: "xzhxzul",
472
482
  $$css: !0
473
- } }, Ce = {
483
+ } }, Se = {
474
484
  neutral: { $$css: !0 },
475
485
  accent: {
476
486
  kWkggS: "x1r8u7ye",
@@ -478,19 +488,19 @@ var Se = { bar: {
478
488
  $$css: !0
479
489
  }
480
490
  };
481
- function we({ children: e = "DevTools", actions: t, tone: n = "neutral" }) {
482
- return /* @__PURE__ */ M("aside", {
491
+ function Ce({ children: e = "DevTools", actions: t, tone: n = "neutral" }) {
492
+ return /* @__PURE__ */ N("aside", {
483
493
  "aria-label": "Developer tools",
484
- ..._.props(c.row, c.blockStart, Se.bar, Ce[n]),
485
- children: [e, t != null && /* @__PURE__ */ j("div", {
486
- ..._.props(c.trailing),
494
+ ...v.props(c.row, c.blockStart, xe.bar, Se[n]),
495
+ children: [e, t != null && /* @__PURE__ */ M("div", {
496
+ ...v.props(c.trailing),
487
497
  children: t
488
498
  })]
489
499
  });
490
500
  }
491
- function Te(e) {
492
- let [t, n] = O(!1), r = D(!1);
493
- return E(() => {
501
+ function we(e) {
502
+ let [t, n] = k(!1), r = O(!1);
503
+ return D(() => {
494
504
  function t() {
495
505
  if (!r.current) try {
496
506
  n(globalThis.localStorage.getItem(e) === "1");
@@ -502,7 +512,7 @@ function Te(e) {
502
512
  return t(), globalThis.addEventListener("pageshow", t), globalThis.addEventListener("storage", i), () => {
503
513
  globalThis.removeEventListener("pageshow", t), globalThis.removeEventListener("storage", i);
504
514
  };
505
- }, [e]), g({
515
+ }, [e]), _({
506
516
  target: typeof document > "u" ? null : document.documentElement,
507
517
  isEnabled: !0,
508
518
  commands: [{
@@ -527,7 +537,7 @@ function Te(e) {
527
537
  }), t;
528
538
  }
529
539
  // packages/layout/src/navigation-rail.tsx
530
- var U = S("rail"), W = {
540
+ var G = C("rail"), K = {
531
541
  action: {
532
542
  kSGwAc: "xamitd3",
533
543
  $$css: !0
@@ -566,90 +576,88 @@ var U = S("rail"), W = {
566
576
  $$css: !0
567
577
  }
568
578
  };
569
- function Ee(e) {
570
- return /* @__PURE__ */ j(G, { ...e });
579
+ function Te(e) {
580
+ return /* @__PURE__ */ M(q, { ...e });
571
581
  }
572
- function G({ label: i, links: o, action: s, isFooter: c = !1 }) {
573
- let l = C(U) === "drawer", u = C(R);
582
+ function q({ label: i, links: o, action: s, isFooter: c = !1 }) {
583
+ let l = w(G) === "drawer", u = w(z);
574
584
  function d(e, t) {
575
- e?.(t);
576
- let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
577
- t.button !== 0 || n || r || u?.onNavigate();
585
+ e?.(t), f(t) && u?.onNavigate();
578
586
  }
579
- let f = (e) => {
587
+ let p = (e) => {
580
588
  s?.onClick(e), e.defaultPrevented || u?.onNavigate();
581
589
  };
582
- return l ? /* @__PURE__ */ M("div", {
590
+ return l ? /* @__PURE__ */ N("div", {
583
591
  className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
584
- children: [/* @__PURE__ */ j("nav", {
592
+ children: [/* @__PURE__ */ M("nav", {
585
593
  "aria-label": i,
586
594
  ...{
587
595
  0: { className: "xrvj5dj xnby9oq xunmzkg x1s01oa9" },
588
596
  1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
589
597
  }[!!c | 0],
590
- children: o.map(({ label: e, icon: r, isCurrent: i = !1, ...a }) => /* @__PURE__ */ M(n, {
591
- ...b(_.props(t.base, t.button, W.mobileLink, c && W.drawerFooterLink, W.rounded, W.selected), a),
598
+ children: o.map(({ label: e, icon: r, isCurrent: i = !1, ...a }) => /* @__PURE__ */ N(n, {
599
+ ...x(v.props(t.base, t.button, K.mobileLink, c && K.drawerFooterLink, K.rounded, K.selected), a),
592
600
  "aria-current": i ? "location" : void 0,
593
601
  onClick: (e) => d(a.onClick, e),
594
- children: [/* @__PURE__ */ j("span", {
602
+ children: [/* @__PURE__ */ M("span", {
595
603
  "aria-hidden": !0,
596
604
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
597
605
  children: r
598
- }), /* @__PURE__ */ j("span", {
606
+ }), /* @__PURE__ */ M("span", {
599
607
  className: "xeuugli x193iq5w xj0a0fe",
600
608
  children: e
601
609
  })]
602
610
  }, a.href))
603
- }), s !== void 0 && /* @__PURE__ */ j("div", {
611
+ }), s !== void 0 && /* @__PURE__ */ M("div", {
604
612
  className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
605
- children: /* @__PURE__ */ M(e, {
613
+ children: /* @__PURE__ */ N(e, {
606
614
  variant: "ghost",
607
- onClick: f,
608
- children: [/* @__PURE__ */ j("span", {
615
+ onClick: p,
616
+ children: [/* @__PURE__ */ M("span", {
609
617
  "aria-hidden": !0,
610
618
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
611
619
  children: s.icon
612
620
  }), s.label]
613
621
  })
614
622
  })]
615
- }) : /* @__PURE__ */ M("div", {
623
+ }) : /* @__PURE__ */ N("div", {
616
624
  ...{
617
625
  0: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli" },
618
626
  1: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk" }
619
627
  }[!c | 0],
620
- children: [/* @__PURE__ */ j("nav", {
628
+ children: [/* @__PURE__ */ M("nav", {
621
629
  "aria-label": i,
622
630
  className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg",
623
- children: o.map(({ label: e, icon: t, isCurrent: r = !1, ...i }) => /* @__PURE__ */ M(h.Root, { children: [/* @__PURE__ */ j(h.Trigger, {
624
- render: /* @__PURE__ */ j(a, {
625
- render: /* @__PURE__ */ j(n, {}),
626
- ...b({ className: "x1yk04ar" }, i),
631
+ children: o.map(({ label: e, icon: t, isCurrent: r = !1, ...i }) => /* @__PURE__ */ N(g.Root, { children: [/* @__PURE__ */ M(g.Trigger, {
632
+ render: /* @__PURE__ */ M(a, {
633
+ render: /* @__PURE__ */ M(n, {}),
634
+ ...x({ className: "x1yk04ar" }, i),
627
635
  "aria-current": r ? "location" : void 0,
628
636
  "aria-label": e,
629
637
  onClick: (e) => d(i.onClick, e)
630
638
  }),
631
639
  children: t
632
- }), /* @__PURE__ */ j(h.Popup, {
640
+ }), /* @__PURE__ */ M(g.Popup, {
633
641
  side: "right",
634
642
  children: e
635
643
  })] }, i.href))
636
- }), s !== void 0 && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ M(h.Root, { children: [/* @__PURE__ */ j(h.Trigger, {
637
- render: /* @__PURE__ */ j(r, {
644
+ }), s !== void 0 && /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ N(g.Root, { children: [/* @__PURE__ */ M(g.Trigger, {
645
+ render: /* @__PURE__ */ M(r, {
638
646
  variant: "ghost",
639
647
  "aria-label": s.label,
640
- xstyle: W.action
648
+ xstyle: K.action
641
649
  }),
642
- onClick: f,
650
+ onClick: p,
643
651
  children: s.icon
644
- }), /* @__PURE__ */ j(h.Popup, {
652
+ }), /* @__PURE__ */ M(g.Popup, {
645
653
  side: "right",
646
654
  children: s.label
647
655
  })] })] })]
648
656
  });
649
657
  }
650
- function De({ children: e }) {
651
- let t = C(U) === "drawer";
652
- return /* @__PURE__ */ j("div", {
658
+ function Ee({ children: e }) {
659
+ let t = w(G) === "drawer";
660
+ return /* @__PURE__ */ M("div", {
653
661
  ...{
654
662
  0: { className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1yrrsrt x1c526fk" },
655
663
  1: { className: "x78zum5 xdt5ytf xunmzkg x1yrrsrt x1c526fk x1cy8zhl x14w6jbu" }
@@ -657,22 +665,22 @@ function De({ children: e }) {
657
665
  children: e
658
666
  });
659
667
  }
660
- function K({ children: e }) {
661
- return /* @__PURE__ */ j("span", {
668
+ function J({ children: e }) {
669
+ return /* @__PURE__ */ M("span", {
662
670
  "aria-hidden": !0,
663
671
  className: "xrvj5dj x1ku5rj1 x9c6wpo x1ff4b4a x1f9pz31 x992rv9",
664
672
  children: e
665
673
  });
666
674
  }
667
- function Oe({ count: e, icon: t }) {
668
- return /* @__PURE__ */ j("div", {
675
+ function De({ count: e, icon: t }) {
676
+ return /* @__PURE__ */ M("div", {
669
677
  "aria-hidden": !0,
670
678
  className: "x1yrrsrt x1c526fk x78zum5 xdt5ytf x6s0dn4 xunmzkg",
671
- children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ j(K, { children: t }, n))
679
+ children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ M(J, { children: t }, n))
672
680
  });
673
681
  }
674
682
  // packages/layout/src/navigation-rail-menu.tsx
675
- var ke = {
683
+ var Oe = {
676
684
  rail: {
677
685
  side: "right",
678
686
  align: "end"
@@ -682,32 +690,32 @@ var ke = {
682
690
  align: "start"
683
691
  }
684
692
  };
685
- function q({ label: e, icon: t, children: n }) {
686
- let i = C(U), [a, o] = O(!1);
687
- return w(() => {
688
- let e = globalThis.matchMedia(L.sidebarDesktopQuery);
693
+ function Y({ label: e, icon: t, children: n }) {
694
+ let i = w(G), [a, o] = k(!1);
695
+ return T(() => {
696
+ let e = globalThis.matchMedia(R.sidebarDesktopQuery);
689
697
  function t() {
690
698
  o(!1);
691
699
  }
692
700
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
693
- }, []), /* @__PURE__ */ M(m.Root, {
701
+ }, []), /* @__PURE__ */ N(h.Root, {
694
702
  open: a,
695
703
  onOpenChange: o,
696
704
  modal: !1,
697
- children: [/* @__PURE__ */ M(h.Root, {
705
+ children: [/* @__PURE__ */ N(g.Root, {
698
706
  disabled: a || i === "drawer",
699
- children: [/* @__PURE__ */ j(h.Trigger, {
700
- render: /* @__PURE__ */ j(m.Trigger, { render: /* @__PURE__ */ j(r, {
707
+ children: [/* @__PURE__ */ M(g.Trigger, {
708
+ render: /* @__PURE__ */ M(h.Trigger, { render: /* @__PURE__ */ M(r, {
701
709
  variant: "ghost",
702
710
  "aria-label": e
703
711
  }) }),
704
712
  children: t
705
- }), /* @__PURE__ */ j(h.Popup, {
713
+ }), /* @__PURE__ */ M(g.Popup, {
706
714
  side: "right",
707
715
  children: e
708
716
  })]
709
- }), /* @__PURE__ */ j(m.Popup, {
710
- ...ke[i],
717
+ }), /* @__PURE__ */ M(h.Popup, {
718
+ ...Oe[i],
711
719
  sideOffset: 4,
712
720
  collisionPadding: 8,
713
721
  "aria-label": e,
@@ -717,9 +725,9 @@ function q({ label: e, icon: t, children: n }) {
717
725
  });
718
726
  }
719
727
  // packages/layout/src/shell-bottom-bar.tsx
720
- function Ae({ children: e }) {
721
- let t = D(null);
722
- return E(() => {
728
+ function ke({ children: e }) {
729
+ let t = O(null);
730
+ return D(() => {
723
731
  let e = t.current;
724
732
  if (e === null) return;
725
733
  let n = e.ownerDocument.documentElement;
@@ -731,7 +739,7 @@ function Ae({ children: e }) {
731
739
  return i.observe(e, { box: "border-box" }), () => {
732
740
  i.disconnect(), n.style.removeProperty("--mechane-shell-bottom-inset");
733
741
  };
734
- }, []), /* @__PURE__ */ j("div", {
742
+ }, []), /* @__PURE__ */ M("div", {
735
743
  ref: t,
736
744
  "data-mechane-shell-bottom-bar": "",
737
745
  className: "xeuugli xrvj5dj xbjcvb9 x1a148e8",
@@ -739,7 +747,7 @@ function Ae({ children: e }) {
739
747
  });
740
748
  }
741
749
  // packages/layout/src/app-shell.tsx
742
- var J = {
750
+ var X = {
743
751
  sidebar: {
744
752
  kB7OPa: "x9f619",
745
753
  k1xSpc: "x78zum5 x1ykma7f",
@@ -775,123 +783,121 @@ var J = {
775
783
  $$css: !0
776
784
  }
777
785
  };
778
- function Y({ footer: e }) {
779
- return /* @__PURE__ */ j("div", {
786
+ function Z({ footer: e }) {
787
+ return /* @__PURE__ */ M("div", {
780
788
  className: "x2lah0s x1vod7vm",
781
- children: /* @__PURE__ */ j(De, { children: "placeholder" in e ? /* @__PURE__ */ M(A, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ j(K, { children: e.placeholder.linkIcon }), /* @__PURE__ */ j(K, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ M(A, { children: [e.navigation !== void 0 && /* @__PURE__ */ j(G, {
789
+ children: /* @__PURE__ */ M(Ee, { children: "placeholder" in e ? /* @__PURE__ */ N(j, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ M(J, { children: e.placeholder.linkIcon }), /* @__PURE__ */ M(J, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ N(j, { children: [e.navigation !== void 0 && /* @__PURE__ */ M(q, {
782
790
  ...e.navigation,
783
791
  isFooter: !0
784
- }), /* @__PURE__ */ j(q, { ...e.menu })] }) })
792
+ }), /* @__PURE__ */ M(Y, { ...e.menu })] }) })
785
793
  });
786
794
  }
787
- function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, bottomBar: a, children: o, mainId: s = "main", shouldFocus: l = !1 }) {
788
- let u = a != null && typeof a != "boolean", d = e != null, [f, m] = O(!0), [h, g] = O(!1), v = l || d && !f, [y] = O(() => p.createController()), b = T(), x = D(null), S = D(null), C = D(null), E = D(!1);
789
- return w(() => {
790
- let e = globalThis.matchMedia(L.sidebarDesktopQuery);
795
+ function Ae({ rail: e, railFooter: t, sidebarHeader: n, sidebarControls: r, sidebar: i, footer: a, bottomBar: o, children: s, mainId: l = "main", shouldFocus: u = !1 }) {
796
+ let d = o != null && typeof o != "boolean", f = e != null, [p, h] = k(!0), [g, _] = k(!1), y = u || f && !p, [b] = k(() => m.createController()), x = E(), S = O(null), C = O(null), w = O(null), D = O(!1);
797
+ return T(() => {
798
+ let e = globalThis.matchMedia(R.sidebarDesktopQuery);
791
799
  function t() {
792
- e.matches && g(!1);
800
+ e.matches && _(!1);
793
801
  }
794
802
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
795
- }, []), /* @__PURE__ */ M(R.Provider, {
803
+ }, []), /* @__PURE__ */ N(z.Provider, {
796
804
  value: {
797
- isExpanded: f,
798
- sidebarId: b,
799
- drawerController: y,
800
- navigationToggleRef: x,
801
- mobileNavigationToggleRef: S,
802
- onToggle: () => m((e) => !e),
805
+ isFocusMode: u,
806
+ isExpanded: p,
807
+ sidebarId: x,
808
+ drawerController: b,
809
+ navigationToggleRef: S,
810
+ mobileNavigationToggleRef: C,
811
+ onToggle: () => h((e) => !e),
803
812
  onNavigate: () => {
804
- E.current = h, g(!1);
813
+ D.current = g, _(!1);
805
814
  }
806
815
  },
807
- children: [/* @__PURE__ */ M("div", {
816
+ children: [/* @__PURE__ */ N("div", {
808
817
  className: "x9f619 xtdtrs8 xb3r6kr xrvj5dj x1sx1omo x1mkdm3x xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
809
- children: [/* @__PURE__ */ M("div", {
818
+ children: [/* @__PURE__ */ N("div", {
810
819
  ...{
811
820
  0: { className: "x78zum5 xeuugli x2lwn1j" },
812
821
  1: { className: "x78zum5 xeuugli x2lwn1j xcl5tbm" }
813
- }[!!u | 0],
822
+ }[!!d | 0],
814
823
  children: [
815
- d && /* @__PURE__ */ M("div", {
816
- hidden: l,
817
- ..._.props(J.sidebar, c.inlineEnd, J.rail, l && J.hidden),
818
- children: [/* @__PURE__ */ j("div", {
824
+ f && /* @__PURE__ */ N("div", {
825
+ hidden: u,
826
+ ...v.props(X.sidebar, c.inlineEnd, X.rail, u && X.hidden),
827
+ children: [/* @__PURE__ */ M("div", {
819
828
  className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
820
829
  children: e
821
- }), t !== void 0 && /* @__PURE__ */ j(Y, { footer: t })]
830
+ }), t !== void 0 && /* @__PURE__ */ M(Z, { footer: t })]
822
831
  }),
823
- /* @__PURE__ */ j("aside", {
824
- id: b,
832
+ /* @__PURE__ */ M("aside", {
833
+ id: x,
825
834
  "aria-label": "Navigation",
826
- hidden: v,
827
- ..._.props(J.sidebar, c.inlineEnd, d && J.secondary, !d && !f && J.collapsed, v && J.hidden),
828
- children: /* @__PURE__ */ j(B, {
835
+ hidden: y,
836
+ ...v.props(X.sidebar, c.inlineEnd, f && X.secondary, !f && !p && X.collapsed, y && X.hidden),
837
+ children: /* @__PURE__ */ M(H, {
829
838
  header: n,
830
- footer: i,
831
- children: r
839
+ controls: r,
840
+ footer: a,
841
+ children: i
832
842
  })
833
843
  }),
834
- /* @__PURE__ */ j("main", {
835
- id: s,
844
+ /* @__PURE__ */ M("main", {
845
+ id: l,
836
846
  tabIndex: -1,
837
847
  className: "xeuugli x2lwn1j x98rzlu x78zum5 xdt5ytf x1odjw0f x6i9wio",
838
- children: o
848
+ children: s
839
849
  })
840
850
  ]
841
- }), u && /* @__PURE__ */ j(Ae, { children: a })]
842
- }), /* @__PURE__ */ M(p.Root, {
843
- controller: y,
844
- open: h && !l,
845
- onOpenChange: g,
846
- children: [/* @__PURE__ */ j(p.Backdrop, {}), /* @__PURE__ */ M(p.Popup, {
847
- ref: C,
848
- xstyle: J.drawer,
851
+ }), d && /* @__PURE__ */ M(ke, { children: o })]
852
+ }), /* @__PURE__ */ N(m.Root, {
853
+ controller: b,
854
+ open: g && !u,
855
+ onOpenChange: _,
856
+ children: [/* @__PURE__ */ M(m.Backdrop, {}), /* @__PURE__ */ N(m.Popup, {
857
+ ref: w,
858
+ xstyle: X.drawer,
849
859
  finalFocus: () => {
850
- if (E.current) {
851
- E.current = !1;
852
- let e = document.querySelector(`#${CSS.escape(s)}`), t = document.activeElement;
860
+ if (D.current) {
861
+ D.current = !1;
862
+ let e = document.querySelector(`#${CSS.escape(l)}`), t = document.activeElement;
853
863
  if (t instanceof HTMLElement) {
854
864
  let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
855
- if (e !== null && e !== C.current) return t;
865
+ if (e !== null && e !== w.current) return t;
856
866
  }
857
867
  return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
858
868
  }
859
- return globalThis.matchMedia(L.sidebarDesktopQuery).matches ? x.current : S.current;
869
+ return globalThis.matchMedia(R.sidebarDesktopQuery).matches ? S.current : C.current;
860
870
  },
861
- children: [/* @__PURE__ */ j(p.Title, {
871
+ children: [/* @__PURE__ */ M(m.Title, {
862
872
  isVisuallyHidden: !0,
863
873
  children: "Navigation"
864
- }), /* @__PURE__ */ j(B, {
874
+ }), /* @__PURE__ */ M(H, {
865
875
  header: n,
866
- navigationHeader: d && /* @__PURE__ */ j(U.Provider, {
876
+ controls: r,
877
+ navigationHeader: f && /* @__PURE__ */ M(G.Provider, {
867
878
  value: "drawer",
868
879
  children: e
869
880
  }),
870
- footer: /* @__PURE__ */ M(A, { children: [i, d && t !== void 0 && /* @__PURE__ */ j(U.Provider, {
881
+ footer: /* @__PURE__ */ N(j, { children: [a, f && t !== void 0 && /* @__PURE__ */ M(G.Provider, {
871
882
  value: "drawer",
872
- children: /* @__PURE__ */ j(Y, { footer: t })
883
+ children: /* @__PURE__ */ M(Z, { footer: t })
873
884
  })] }),
874
- close: /* @__PURE__ */ j(ue, {}),
875
- children: r
885
+ close: /* @__PURE__ */ M(le, {}),
886
+ children: i
876
887
  })]
877
888
  })]
878
889
  })]
879
890
  });
880
891
  }
881
- // packages/layout/src/detail-page.tsx
882
- function X({ children: e, isWide: t = !1, isBleed: n = !1 }) {
883
- return /* @__PURE__ */ j("div", {
884
- ...{
885
- 0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
886
- 2: { className: "x9f619 xeuugli xvueqy4 xh8yej3 x1x1rfll x1dc62k6 x10d9x1d x1l52sgj" },
887
- 1: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 xexx8yu x18d9i69" },
888
- 3: { className: "x9f619 xeuugli xvueqy4 xh8yej3 x1x1rfll xnjsko4 xexx8yu x18d9i69" }
889
- }[!!t << 1 | !!(t && n)],
892
+ // packages/layout/src/reading-column.tsx
893
+ function je({ children: e }) {
894
+ return /* @__PURE__ */ M("div", {
895
+ className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y",
890
896
  children: e
891
897
  });
892
898
  }
893
899
  // packages/layout/src/figure-grid.tsx
894
- var Z = {
900
+ var Q = {
895
901
  grid: {
896
902
  k1xSpc: "xrvj5dj",
897
903
  kOIVth: "x1j825kq",
@@ -912,26 +918,26 @@ var Z = {
912
918
  $$css: !0
913
919
  }
914
920
  }, Me = {
915
- "2-up": Z.twoUp,
916
- "hero-aside": Z.heroAside,
917
- "3-up": Z.threeUp
921
+ "2-up": Q.twoUp,
922
+ "hero-aside": Q.heroAside,
923
+ "3-up": Q.threeUp
918
924
  };
919
925
  function Ne({ layout: e = "2-up", children: t, ...n }) {
920
- return /* @__PURE__ */ j("div", {
926
+ return /* @__PURE__ */ M("div", {
921
927
  className: "x12h1iku x1rb1qiq xeuugli",
922
- children: /* @__PURE__ */ j("div", {
923
- ...b(_.props(Z.grid, Me[e]), n),
928
+ children: /* @__PURE__ */ M("div", {
929
+ ...x(v.props(Q.grid, Me[e]), n),
924
930
  children: t
925
931
  })
926
932
  });
927
933
  }
928
934
  // packages/layout/src/focus-page.tsx
929
935
  function Pe({ children: e }) {
930
- return /* @__PURE__ */ j("main", {
936
+ return /* @__PURE__ */ M("main", {
931
937
  id: "main",
932
938
  tabIndex: -1,
933
939
  className: "x9f619 x1ov3xa9 xeuugli xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
934
- children: /* @__PURE__ */ j("div", {
940
+ children: /* @__PURE__ */ M("div", {
935
941
  className: "xh8yej3 xxc7z9f xeuugli xrvj5dj x1mkdm3x x1j825kq",
936
942
  children: e
937
943
  })
@@ -939,7 +945,7 @@ function Pe({ children: e }) {
939
945
  }
940
946
  // packages/layout/src/resizable.tsx
941
947
  function Fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
942
- return /* @__PURE__ */ j(ne, {
948
+ return /* @__PURE__ */ M(ne, {
943
949
  orientation: e,
944
950
  ...t !== void 0 && { defaultLayout: t },
945
951
  onLayoutCommit: (e, { event: t }) => {
@@ -947,121 +953,99 @@ function Fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
947
953
  },
948
954
  disabled: r,
949
955
  ref: i,
950
- ...b({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
956
+ ...x({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
951
957
  });
952
958
  }
953
959
  function Ie({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
954
- return /* @__PURE__ */ j(ie, {
960
+ return /* @__PURE__ */ M(ie, {
955
961
  id: e,
956
962
  ...t !== void 0 && { defaultSize: t },
957
963
  minSize: n,
958
964
  maxSize: r,
959
965
  collapsible: i,
960
966
  ref: a,
961
- ...b({ className: "xeuugli x2lwn1j xysyzu8" }, o)
967
+ ...x({ className: "xeuugli x2lwn1j xysyzu8" }, o)
962
968
  });
963
969
  }
964
970
  function Le({ ref: e, ...t }) {
965
- return /* @__PURE__ */ j(re, {
971
+ return /* @__PURE__ */ M(re, {
966
972
  ref: e,
967
- ...b({ className: "x1n2onr6 x1vjfegm x9f619 x1fa40ue xqkn89t xsmyaan x1ff4b4a x7b6jwd xse4jxt x1jy3mcf x1k8hp4o x1rbdpqn x1ehdxp2 x1wg4s0h xse41gn xiti608 xxf9m8b x1ep60v ximv7tn xls05dq xkkvcqt x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
973
+ ...x({ className: "x1n2onr6 x1vjfegm x9f619 x1fa40ue xqkn89t xsmyaan x1ff4b4a x7b6jwd xse4jxt x1jy3mcf x1k8hp4o x1rbdpqn x1ehdxp2 x1wg4s0h xse41gn xiti608 xxf9m8b x1ep60v ximv7tn xls05dq xkkvcqt x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
968
974
  });
969
975
  }
970
- var Q = {
976
+ var $ = {
971
977
  Root: Fe,
972
978
  Pane: Ie,
973
979
  Handle: Le
974
980
  };
975
981
  // packages/layout/src/workbench.tsx
976
- function Re({ header: e, children: t, inspector: n, isResizable: r = !1, inspectorInitialPercent: i = 36 }) {
977
- let a = r && n !== void 0, o = Math.max(30, Math.min(80, 100 - i));
978
- return /* @__PURE__ */ M("div", {
982
+ function Re({ header: e, children: t, inspector: n }) {
983
+ let r = E(), i = n !== void 0;
984
+ return /* @__PURE__ */ N("div", {
979
985
  className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
980
- children: [e != null && /* @__PURE__ */ j("div", {
986
+ children: [e != null && /* @__PURE__ */ M("div", {
981
987
  className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
982
988
  children: e
983
- }), /* @__PURE__ */ j("div", {
989
+ }), /* @__PURE__ */ M("div", {
984
990
  className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
985
- children: a ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
986
- className: "x78zum5 x152g2jv x98rzlu xeuugli x2lwn1j",
987
- children: /* @__PURE__ */ M(Q.Root, {
988
- orientation: "horizontal",
989
- initialSizes: [o, 100 - o],
990
- children: [
991
- /* @__PURE__ */ j(Q.Pane, {
992
- id: "workbench-main",
993
- initialSizePercent: o,
994
- minimumSizePercent: 30,
995
- children: /* @__PURE__ */ j("div", {
996
- className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j",
997
- children: t
998
- })
999
- }),
1000
- /* @__PURE__ */ j(Q.Handle, { "aria-label": `Resize ${n.label}` }),
1001
- /* @__PURE__ */ j(Q.Pane, {
1002
- id: "workbench-inspector",
1003
- initialSizePercent: 100 - o,
1004
- minimumSizePercent: 20,
1005
- maximumSizePercent: 70,
1006
- children: /* @__PURE__ */ j("aside", {
1007
- "aria-label": n.label,
1008
- className: "x9f619 xh8yej3 x5yr21d xeuugli x1odjw0f x1c8xbx5 xpvm0e4",
1009
- children: n.content
1010
- })
1011
- })
1012
- ]
1013
- })
1014
- }), /* @__PURE__ */ j("div", {
1015
- className: "x1s85apg xbv8p1s x98rzlu xeuugli x2lwn1j",
1016
- children: /* @__PURE__ */ j("aside", {
1017
- "aria-label": n.label,
1018
- className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
1019
- children: n.content
1020
- })
1021
- })] }) : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
1022
- ...{
1023
- 0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
1024
- 1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
1025
- }[n !== void 0 | 0],
1026
- children: t
1027
- }), n !== void 0 && /* @__PURE__ */ j("aside", {
1028
- "aria-label": n.label,
1029
- className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
1030
- children: n.content
1031
- })] })
991
+ children: /* @__PURE__ */ N($.Root, {
992
+ disabled: !i,
993
+ className: "x1n2onr6",
994
+ children: [/* @__PURE__ */ M($.Pane, {
995
+ id: `${r}-main`,
996
+ initialSizePercent: 64,
997
+ minimumSizePercent: 30,
998
+ ...{
999
+ 0: { className: "x78zum5 xdt5ytf x10l6tqk x10a8y8t" },
1000
+ 1: { className: "xdt5ytf x78zum5 x152g2jv" }
1001
+ }[!!i | 0],
1002
+ children: t
1003
+ }), n !== void 0 && /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M($.Handle, {
1004
+ "aria-label": `Resize ${n.label}`,
1005
+ className: "x78zum5 x152g2jv"
1006
+ }), /* @__PURE__ */ M($.Pane, {
1007
+ id: `${r}-inspector`,
1008
+ initialSizePercent: 36,
1009
+ minimumSizePercent: 20,
1010
+ maximumSizePercent: 70,
1011
+ className: "x78zum5 xdt5ytf x1n2onr6 x1kh2hu9 x10a8y8t",
1012
+ children: /* @__PURE__ */ M("aside", {
1013
+ "aria-label": n.label,
1014
+ className: "x2lwn1j xeuugli x98rzlu xysyzu8 xpvm0e4",
1015
+ children: n.content
1016
+ })
1017
+ })] })]
1018
+ })
1032
1019
  })]
1033
1020
  });
1034
1021
  }
1035
- function ze({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
1036
- let i = l();
1037
- return /* @__PURE__ */ j("div", {
1038
- ref: i.ref,
1022
+ function ze({ label: e, children: t, scrollRestorationId: n }) {
1023
+ let r = l();
1024
+ return /* @__PURE__ */ M("div", {
1025
+ ref: r.ref,
1039
1026
  role: "region",
1040
1027
  "aria-label": e,
1041
- tabIndex: i.tabIndex,
1042
- "data-scroll-restoration-id": r,
1043
- ...{
1044
- 0: { className: "x1odjw0f x1e4zzel x98rzlu xeuugli x2lwn1j x1jvlu93 x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal" },
1045
- 1: { className: "x1odjw0f x1e4zzel x98rzlu xeuugli x2lwn1j x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal x1717udv" }
1046
- }[!!n | 0],
1028
+ tabIndex: r.tabIndex,
1029
+ "data-scroll-restoration-id": n,
1030
+ className: "x1odjw0f x1e4zzel x98rzlu xeuugli x2lwn1j x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal",
1047
1031
  children: t
1048
1032
  });
1049
1033
  }
1050
1034
  function Be({ children: e }) {
1051
- return /* @__PURE__ */ j("div", {
1035
+ return /* @__PURE__ */ M("div", {
1052
1036
  className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
1053
1037
  children: e
1054
1038
  });
1055
1039
  }
1056
1040
  // packages/layout/src/view-stack.tsx
1057
1041
  function Ve({ children: e }) {
1058
- return /* @__PURE__ */ j("div", {
1042
+ return /* @__PURE__ */ M("div", {
1059
1043
  className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
1060
1044
  children: e
1061
1045
  });
1062
1046
  }
1063
- function $({ isActive: e, children: t }) {
1064
- return /* @__PURE__ */ j("section", {
1047
+ function He({ isActive: e, children: t }) {
1048
+ return /* @__PURE__ */ M("section", {
1065
1049
  "aria-hidden": !e,
1066
1050
  inert: !e,
1067
1051
  ...{
@@ -1071,27 +1055,27 @@ function $({ isActive: e, children: t }) {
1071
1055
  children: t
1072
1056
  });
1073
1057
  }
1074
- var He = {
1058
+ var Ue = {
1075
1059
  Root: Ve,
1076
- Panel: $
1060
+ Panel: He
1077
1061
  };
1078
1062
  // packages/layout/src/collection-layout.tsx
1079
- function Ue({ header: e, children: t }) {
1080
- return /* @__PURE__ */ M("div", {
1063
+ function We({ header: e, children: t }) {
1064
+ return /* @__PURE__ */ N("div", {
1081
1065
  "data-page-layout": "collection",
1082
1066
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
1083
- children: [/* @__PURE__ */ j("div", {
1067
+ children: [/* @__PURE__ */ M("div", {
1084
1068
  className: "x2lah0s xeuugli",
1085
1069
  children: e
1086
- }), /* @__PURE__ */ j("div", {
1070
+ }), /* @__PURE__ */ M("div", {
1087
1071
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
1088
1072
  children: t
1089
1073
  })]
1090
1074
  });
1091
1075
  }
1092
1076
  // packages/layout/src/record-page.tsx
1093
- function We({ backLabel: e, backHref: t, onBack: r }) {
1094
- return /* @__PURE__ */ M(n, {
1077
+ function Ge({ backLabel: e, backHref: t, onBack: r }) {
1078
+ return /* @__PURE__ */ N(n, {
1095
1079
  href: t,
1096
1080
  className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
1097
1081
  onClick: (e) => {
@@ -1099,75 +1083,68 @@ function We({ backLabel: e, backHref: t, onBack: r }) {
1099
1083
  let t = e.metaKey || e.ctrlKey, n = e.shiftKey || e.altKey;
1100
1084
  t || n || (e.preventDefault(), r());
1101
1085
  },
1102
- children: [/* @__PURE__ */ j(ee, {
1086
+ children: [/* @__PURE__ */ M(ee, {
1103
1087
  size: 16,
1104
1088
  "aria-hidden": !0,
1105
1089
  className: "x2lah0s"
1106
- }), /* @__PURE__ */ j("span", {
1090
+ }), /* @__PURE__ */ M("span", {
1107
1091
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
1108
1092
  children: e
1109
1093
  })]
1110
1094
  });
1111
1095
  }
1112
- function Ge({ navigation: e, children: t, ...n }) {
1113
- return /* @__PURE__ */ j(H, {
1096
+ function Ke({ navigation: e, children: t, ...n }) {
1097
+ return /* @__PURE__ */ M(W, {
1114
1098
  showBreadcrumb: !0,
1115
- showNavigation: n.showNavigation ?? !0,
1116
1099
  actions: n.actions,
1117
- title: /* @__PURE__ */ j(We, { ...n }),
1100
+ title: /* @__PURE__ */ M(Ge, { ...n }),
1118
1101
  navigation: e,
1119
1102
  children: t
1120
1103
  });
1121
1104
  }
1122
- function Ke({ children: e, isWide: t = !1 }) {
1123
- return /* @__PURE__ */ j("div", {
1124
- className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
1125
- children: /* @__PURE__ */ j(X, {
1126
- isWide: t,
1127
- children: /* @__PURE__ */ j("div", {
1128
- className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
1129
- children: e
1130
- })
1131
- })
1105
+ function qe({ children: e }) {
1106
+ return /* @__PURE__ */ M("div", {
1107
+ className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
1108
+ children: e
1132
1109
  });
1133
1110
  }
1134
- function qe({ children: e }) {
1135
- return /* @__PURE__ */ j("div", {
1111
+ function Je({ children: e }) {
1112
+ return /* @__PURE__ */ M("div", {
1136
1113
  className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
1137
1114
  children: e
1138
1115
  });
1139
1116
  }
1140
- function Je({ title: e, description: t, icon: n, titleRef: r }) {
1141
- return /* @__PURE__ */ M("header", {
1117
+ function Ye({ title: e, description: t, icon: n, titleRef: r }) {
1118
+ return /* @__PURE__ */ N("header", {
1142
1119
  className: "xrvj5dj x1n8ia3y xeuugli",
1143
- children: [/* @__PURE__ */ M("div", {
1120
+ children: [/* @__PURE__ */ N("div", {
1144
1121
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
1145
- children: [n != null && /* @__PURE__ */ j("span", {
1122
+ children: [n != null && /* @__PURE__ */ M("span", {
1146
1123
  "aria-hidden": !0,
1147
1124
  className: "x3nfvp2 x6s0dn4 x2lah0s",
1148
1125
  children: n
1149
- }), /* @__PURE__ */ j(I, {
1150
- render: /* @__PURE__ */ j(s, {}),
1126
+ }), /* @__PURE__ */ M(F, {
1127
+ render: /* @__PURE__ */ M(s, {}),
1151
1128
  ref: r,
1152
1129
  tabIndex: -1,
1153
1130
  className: "xeuugli x1t137rt",
1154
1131
  children: e
1155
1132
  })]
1156
- }), t != null && /* @__PURE__ */ j(i, { children: t })]
1133
+ }), t != null && /* @__PURE__ */ M(i, { children: t })]
1157
1134
  });
1158
1135
  }
1159
- function Ye({ children: e, label: t = "Properties" }) {
1160
- return /* @__PURE__ */ j("aside", {
1136
+ function Xe({ children: e, label: t = "Properties" }) {
1137
+ return /* @__PURE__ */ M("aside", {
1161
1138
  "aria-label": t,
1162
1139
  className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
1163
1140
  children: e
1164
1141
  });
1165
1142
  }
1166
- var Xe = {
1167
- Layout: Ge,
1168
- Body: Ke,
1169
- Content: qe,
1170
- Header: Je,
1171
- Aside: Ye
1143
+ var Ze = {
1144
+ Layout: Ke,
1145
+ Body: qe,
1146
+ Content: Je,
1147
+ Header: Ye,
1148
+ Aside: Xe
1172
1149
  };
1173
- export { fe as C, F as D, ge as E, me as S, _e as T, H as _, Be as a, de as b, Pe as c, je as d, q as f, Te as g, we as h, Re as i, Ne as l, Oe as m, Ue as n, ze as o, Ee as p, He as r, Q as s, Xe as t, X as u, xe as v, he as w, pe as x, be as y };
1150
+ export { de as C, L as D, he as E, pe as S, ge as T, W as _, Be as a, ue as b, Pe as c, Ae as d, Y as f, we as g, Ce as h, Re as i, Ne as l, De as m, We as n, ze as o, Te as p, Ue as r, $ as s, Ze as t, je as u, be as v, me as w, fe as x, ye as y };