@pstdio/ui 0.45.0-nightly.20261021030241 → 0.45.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 (133) hide show
  1. package/dist/{EquationComponent-DDd5UoIP.js → EquationComponent-BtOgXA3g.js} +3 -5
  2. package/dist/{EquationComponent-DDd5UoIP.js.map → EquationComponent-BtOgXA3g.js.map} +1 -1
  3. package/dist/{MermaidComponent-CTWuGAqI.js → MermaidComponent--W7gDFCk.js} +4 -5
  4. package/dist/{MermaidComponent-CTWuGAqI.js.map → MermaidComponent--W7gDFCk.js.map} +1 -1
  5. package/dist/activity-timeline-D-IDENMg.js +349 -0
  6. package/dist/activity-timeline-D-IDENMg.js.map +1 -0
  7. package/dist/{apply-theme-preference-B0vCu8zY.d.ts → apply-theme-preference-Wdm8bz5f.d.ts} +0 -2
  8. package/dist/{browser-storage-C_ipoNwP.js → browser-storage-CIj_9R9x.js} +2 -3
  9. package/dist/{browser-storage-C_ipoNwP.js.map → browser-storage-CIj_9R9x.js.map} +1 -1
  10. package/dist/chat-ui.d.ts +2 -40
  11. package/dist/chat-ui.js +219 -280
  12. package/dist/chat-ui.js.map +1 -1
  13. package/dist/{collection-view-fields-tMtZmuhS.d.ts → collection-view-fields-CBlYAPxD.d.ts} +1 -9
  14. package/dist/{collection-view-grouping-BQMfKdQG.js → collection-view-grouping-BHuFPVAV.js} +3 -4
  15. package/dist/{collection-view-grouping-BQMfKdQG.js.map → collection-view-grouping-BHuFPVAV.js.map} +1 -1
  16. package/dist/{collection-view-search-DS9U9WAl.js → collection-view-search-CLvyY0cg.js} +21 -35
  17. package/dist/{collection-view-search-DS9U9WAl.js.map → collection-view-search-CLvyY0cg.js.map} +1 -1
  18. package/dist/collection-view.d.ts +1 -15
  19. package/dist/collection-view.js +3 -4
  20. package/dist/collection-view.js.map +1 -1
  21. package/dist/{data-table-stat-chart-content-waJAm_nt.js → data-table-stat-chart-content-CJVgiHlL.js} +2 -3
  22. package/dist/{data-table-stat-chart-content-waJAm_nt.js.map → data-table-stat-chart-content-CJVgiHlL.js.map} +1 -1
  23. package/dist/data-table.d.ts +2 -14
  24. package/dist/data-table.js +16 -22
  25. package/dist/data-table.js.map +1 -1
  26. package/dist/{diff-bubble-DewUd_2w.js → diff-bubble-DietCcSc.js} +2 -3
  27. package/dist/{diff-bubble-DewUd_2w.js.map → diff-bubble-DietCcSc.js.map} +1 -1
  28. package/dist/{diff-drawer-ByJsQg8F.js → diff-drawer-COlghuX8.js} +11 -25
  29. package/dist/{diff-drawer-ByJsQg8F.js.map → diff-drawer-COlghuX8.js.map} +1 -1
  30. package/dist/{diff-editor-CGpeyoCE.js → diff-editor-BMBk4KXR.js} +3 -4
  31. package/dist/{diff-editor-CGpeyoCE.js.map → diff-editor-BMBk4KXR.js.map} +1 -1
  32. package/dist/{diff-size-Dydn_Uw5.js → diff-size-BR8D-bcL.js} +2 -3
  33. package/dist/{diff-size-Dydn_Uw5.js.map → diff-size-BR8D-bcL.js.map} +1 -1
  34. package/dist/{diff-viewer-ChEyTNpa.js → diff-viewer-nCYtig03.js} +10 -15
  35. package/dist/{diff-viewer-ChEyTNpa.js.map → diff-viewer-nCYtig03.js.map} +1 -1
  36. package/dist/diff.d.ts +0 -22
  37. package/dist/diff.js +8 -9
  38. package/dist/{display-sort-control-BUMkmlIu.js → display-sort-control-DXXkOgUC.js} +6 -7
  39. package/dist/{display-sort-control-BUMkmlIu.js.map → display-sort-control-DXXkOgUC.js.map} +1 -1
  40. package/dist/{drop-indicator-HjlBSIeV.js → drop-indicator-66rhST1K.js} +2 -3
  41. package/dist/{drop-indicator-HjlBSIeV.js.map → drop-indicator-66rhST1K.js.map} +1 -1
  42. package/dist/{edit-mode-data-table-MKEjfFUw.js → edit-mode-data-table-lvGsQ1Da.js} +17 -27
  43. package/dist/{edit-mode-data-table-MKEjfFUw.js.map → edit-mode-data-table-lvGsQ1Da.js.map} +1 -1
  44. package/dist/{empty-state-3mVV_pV-.js → empty-state-J96iLli9.js} +2 -3
  45. package/dist/{empty-state-3mVV_pV-.js.map → empty-state-J96iLli9.js.map} +1 -1
  46. package/dist/{file-change-badge-0QFNv82B.js → file-change-badge-5_T5hnWQ.js} +2 -3
  47. package/dist/{file-change-badge-0QFNv82B.js.map → file-change-badge-5_T5hnWQ.js.map} +1 -1
  48. package/dist/{host-storage-28AkEy1N.js → host-storage-CtscVB4w.js} +3 -4
  49. package/dist/{host-storage-28AkEy1N.js.map → host-storage-CtscVB4w.js.map} +1 -1
  50. package/dist/{host-storage-J0089Hyk.d.ts → host-storage-SnBKPpbc.d.ts} +0 -2
  51. package/dist/{icon-options-DpzDAnlu.js → icon-options-DJmsp8bw.js} +2 -4
  52. package/dist/{icon-options-DpzDAnlu.js.map → icon-options-DJmsp8bw.js.map} +1 -1
  53. package/dist/{index-3H4B61XK.d.ts → index-B0bZ__Yf.d.ts} +1 -5
  54. package/dist/{index-DlmvvQ6x.d.ts → index-CYiWcIGu.d.ts} +0 -18
  55. package/dist/{index-C0PaeiBy.d.ts → index-DYCXgPCg.d.ts} +2 -34
  56. package/dist/{index-eV_0Gjzo.d.ts → index-DzVOXj8n.d.ts} +1 -37
  57. package/dist/index.d.ts +6 -156
  58. package/dist/index.js +973 -958
  59. package/dist/index.js.map +1 -1
  60. package/dist/kanban-renderer.d.ts +2 -2
  61. package/dist/kanban-renderer.js +24 -44
  62. package/dist/kanban-renderer.js.map +1 -1
  63. package/dist/{list-row-BDDAVuVd.js → list-row-Dqb5Xfjf.js} +12 -39
  64. package/dist/{list-row-BDDAVuVd.js.map → list-row-Dqb5Xfjf.js.map} +1 -1
  65. package/dist/{markdown-editor-BPGIS9ku.js → markdown-editor-D419iTD2.js} +65 -159
  66. package/dist/markdown-editor-D419iTD2.js.map +1 -0
  67. package/dist/{mermaid-renderer-BtW_13Sz.js → mermaid-renderer-B8LpF3rD.js} +6 -12
  68. package/dist/{mermaid-renderer-BtW_13Sz.js.map → mermaid-renderer-B8LpF3rD.js.map} +1 -1
  69. package/dist/mermaid.d.ts +0 -2
  70. package/dist/mermaid.js +1 -2
  71. package/dist/{monaco-browser-CLRPSE4-.js → monaco-browser-BBIyiPtL.js} +2 -3
  72. package/dist/{monaco-browser-CLRPSE4-.js.map → monaco-browser-BBIyiPtL.js.map} +1 -1
  73. package/dist/{number-input-QDqWYzTR.js → number-input-DzRvKj64.js} +3 -4
  74. package/dist/{number-input-QDqWYzTR.js.map → number-input-DzRvKj64.js.map} +1 -1
  75. package/dist/{param-editor-Bva0M7Ns.js → param-editor-DyIO1rSf.js} +8 -14
  76. package/dist/{param-editor-Bva0M7Ns.js.map → param-editor-DyIO1rSf.js.map} +1 -1
  77. package/dist/{param-editor-field-BPBlweVg.js → param-editor-field-Bt7NP9OH.js} +682 -676
  78. package/dist/param-editor-field-Bt7NP9OH.js.map +1 -0
  79. package/dist/param-editor.d.ts +0 -66
  80. package/dist/param-editor.js +3 -3
  81. package/dist/prism-CQBZiF5P.js +391 -0
  82. package/dist/prism-CQBZiF5P.js.map +1 -0
  83. package/dist/{queued-follow-up-Bj_vtMgd.js → queued-follow-up-Bl8TC36-.js} +2 -3
  84. package/dist/{queued-follow-up-Bj_vtMgd.js.map → queued-follow-up-Bl8TC36-.js.map} +1 -1
  85. package/dist/{radio-CiFrDN6O.js → radio-BPnviQ4h.js} +2 -3
  86. package/dist/{radio-CiFrDN6O.js.map → radio-BPnviQ4h.js.map} +1 -1
  87. package/dist/{resolve-icon-component-Dy0pOuj5.js → resolve-icon-component-BrIOFsnC.js} +3 -4
  88. package/dist/{resolve-icon-component-Dy0pOuj5.js.map → resolve-icon-component-BrIOFsnC.js.map} +1 -1
  89. package/dist/{resource-badge-DGwekS-G.d.ts → resource-badge-C73K0Vg9.d.ts} +0 -4
  90. package/dist/{rich-text-CH2psble.js → rich-text-DBpBdWtn.js} +75 -104
  91. package/dist/{rich-text-CH2psble.js.map → rich-text-DBpBdWtn.js.map} +1 -1
  92. package/dist/rich-text.d.ts +1 -1
  93. package/dist/rich-text.js +3 -3
  94. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  95. package/dist/{scroll-area-IeoRS73V.js → scroll-area-BfAlvhjh.js} +3 -5
  96. package/dist/{scroll-area-IeoRS73V.js.map → scroll-area-BfAlvhjh.js.map} +1 -1
  97. package/dist/split-panel-motion-context-B8QvAyTv.js +6 -0
  98. package/dist/{split-panel-motion-context-YB0sduVv.js.map → split-panel-motion-context-B8QvAyTv.js.map} +1 -1
  99. package/dist/terminal.d.ts +1 -11
  100. package/dist/terminal.js +7 -15
  101. package/dist/terminal.js.map +1 -1
  102. package/dist/{theme-kKuLN2jb.js → theme-BMHkV5Ry.js} +2 -3
  103. package/dist/{theme-kKuLN2jb.js.map → theme-BMHkV5Ry.js.map} +1 -1
  104. package/dist/{theme-preference-BV4cbJNB.js → theme-preference-Bdi0s7vE.js} +10 -19
  105. package/dist/{theme-preference-BV4cbJNB.js.map → theme-preference-Bdi0s7vE.js.map} +1 -1
  106. package/dist/{theme-BsStBWWL.js → theme-rmCwx-aG.js} +30 -14
  107. package/dist/theme-rmCwx-aG.js.map +1 -0
  108. package/dist/theme.d.ts +1 -1
  109. package/dist/theme.js +2 -2
  110. package/dist/{tree-list-aNC_UTGS.js → tree-list-Bg8U7ZYc.js} +31 -65
  111. package/dist/{tree-list-aNC_UTGS.js.map → tree-list-Bg8U7ZYc.js.map} +1 -1
  112. package/dist/{use-virtualizer-CqDYJolY.js → use-virtualizer-B6ABIiNI.js} +2 -3
  113. package/dist/{use-virtualizer-CqDYJolY.js.map → use-virtualizer-B6ABIiNI.js.map} +1 -1
  114. package/dist/{workspace-badge-BMjS8ii4.d.ts → workspace-badge-DI6ZpW9Z.d.ts} +0 -6
  115. package/dist/{workspace-badge-DqQKSUJw.js → workspace-badge-Dqi-Sh_Q.js} +3 -4
  116. package/dist/{workspace-badge-DqQKSUJw.js.map → workspace-badge-Dqi-Sh_Q.js.map} +1 -1
  117. package/dist-monaco/assets/{css.worker-DFdt6_zu.js → css.worker-D55UB6Ki.js} +7 -7
  118. package/dist-monaco/assets/editor.worker-C3R1XRkp.js +26 -0
  119. package/dist-monaco/assets/{html.worker-JUzsMP-j.js → html.worker-CFLR1M2C.js} +7 -7
  120. package/dist-monaco/assets/json.worker-DJ19GkSR.js +58 -0
  121. package/dist-monaco/assets/{ts.worker-CmEKzkmF.js → ts.worker-DJNYEI7I.js} +32 -32
  122. package/dist-monaco/monaco.js +188 -188
  123. package/package.json +2 -2
  124. package/dist/alert-CO-uOKLm.js +0 -409
  125. package/dist/alert-CO-uOKLm.js.map +0 -1
  126. package/dist/markdown-editor-BPGIS9ku.js.map +0 -1
  127. package/dist/param-editor-field-BPBlweVg.js.map +0 -1
  128. package/dist/prism-E3-NXX_t.js +0 -335
  129. package/dist/prism-E3-NXX_t.js.map +0 -1
  130. package/dist/split-panel-motion-context-YB0sduVv.js +0 -7
  131. package/dist/theme-BsStBWWL.js.map +0 -1
  132. package/dist-monaco/assets/editor.worker-O-CH8JUO.js +0 -26
  133. package/dist-monaco/assets/json.worker-B4dEhy0e.js +0 -58
package/dist/chat-ui.js CHANGED
@@ -1,17 +1,16 @@
1
- import { t as e } from "./alert-CO-uOKLm.js";
2
- import { n as t, t as n } from "./scroll-area-IeoRS73V.js";
3
- import { t as r } from "./list-row-BDDAVuVd.js";
4
- import { t as i } from "./use-virtualizer-CqDYJolY.js";
5
- import { i as a } from "./prism-E3-NXX_t.js";
6
- import { a as o } from "./host-storage-28AkEy1N.js";
7
- import { t as s } from "./drop-indicator-HjlBSIeV.js";
8
- import { t as c } from "./empty-state-3mVV_pV-.js";
9
- import { t as l } from "./icon-options-DpzDAnlu.js";
10
- import { n as u, t as d } from "./radio-CiFrDN6O.js";
11
- import { n as f, t as p } from "./queued-follow-up-Bj_vtMgd.js";
12
- import { B as m, C as h, E as g, F as _, L as v, P as y, S as b, T as x, w as S, z as C } from "./markdown-editor-BPGIS9ku.js";
13
- import { c as w, l as T, o as E, s as D } from "./rich-text-CH2psble.js";
14
- import { t as O } from "./diff-bubble-DewUd_2w.js";
1
+ import { n as e, t } from "./scroll-area-BfAlvhjh.js";
2
+ import { t as n } from "./list-row-Dqb5Xfjf.js";
3
+ import { t as r } from "./use-virtualizer-B6ABIiNI.js";
4
+ import { c as i, i as a } from "./prism-CQBZiF5P.js";
5
+ import { a as o } from "./host-storage-CtscVB4w.js";
6
+ import { t as s } from "./drop-indicator-66rhST1K.js";
7
+ import { t as c } from "./empty-state-J96iLli9.js";
8
+ import { t as l } from "./icon-options-DJmsp8bw.js";
9
+ import { n as u, t as d } from "./radio-BPnviQ4h.js";
10
+ import { n as f, t as p } from "./queued-follow-up-Bl8TC36-.js";
11
+ import { B as m, C as h, E as g, F as _, L as v, P as y, S as b, T as x, w as S, z as C } from "./markdown-editor-D419iTD2.js";
12
+ import { c as w, l as T, o as E, s as D } from "./rich-text-DBpBdWtn.js";
13
+ import { t as O } from "./diff-bubble-DietCcSc.js";
15
14
  import { AbsoluteCenter as k, Avatar as A, Box as j, Button as M, Card as N, Code as P, Field as F, Flex as I, HStack as L, Icon as ee, IconButton as R, Image as z, Input as te, Kbd as B, Link as ne, Menu as re, Popover as V, Portal as ie, Skeleton as H, Span as U, Spinner as ae, Stack as W, Tag as oe, Text as G, Textarea as se, Timeline as ce, Tooltip as le, chakra as K, createSlotRecipeContext as ue, defineSlotRecipe as de, useRecipe as fe, useSlotRecipe as pe } from "@chakra-ui/react";
16
15
  import { c as q } from "react/compiler-runtime";
17
16
  import { Fragment as me, jsx as J, jsxs as Y } from "react/jsx-runtime";
@@ -20,7 +19,7 @@ import { AlertTriangle as xe, ArrowDownIcon as Se, ArrowRight as Ce, ArrowUp as
20
19
  import { defaultRangeExtractor as Je } from "@tanstack/react-virtual";
21
20
  import { DndContext as Ye, KeyboardSensor as Xe, PointerSensor as Ze, pointerWithin as Qe, rectIntersection as $e, useDraggable as et, useDroppable as tt, useSensor as nt, useSensors as rt } from "@dnd-kit/core";
22
21
  import { StickToBottom as it, useStickToBottomContext as at } from "use-stick-to-bottom";
23
- //#region src/components/chat-ui/components/use-conversation-visibility.ts
22
+ // src/components/chat-ui/components/use-conversation-visibility.ts
24
23
  var ot = () => {
25
24
  let e = q(5), { scrollRef: t, stopScroll: n, scrollToBottom: r } = at(), i, a;
26
25
  e[0] !== t || e[1] !== r || e[2] !== n ? (i = () => {
@@ -66,19 +65,19 @@ var ot = () => {
66
65
  role: "log"
67
66
  }
68
67
  }), ct = (e) => {
69
- let t = q(10), r, i;
70
- t[0] === e ? (r = t[1], i = t[2]) : ({children: r, ...i} = e, t[0] = e, t[1] = r, t[2] = i);
68
+ let n = q(10), r, i;
69
+ n[0] === e ? (r = n[1], i = n[2]) : ({children: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
71
70
  let { contentRef: a, scrollRef: o } = at();
72
71
  ot();
73
72
  let s = o, c = a, l, u;
74
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = { zIndex: 2 }, u = {
73
+ n[3] === Symbol.for("react.memo_cache_sentinel") ? (l = { zIndex: 2 }, u = {
75
74
  layerStyle: "chatContent",
76
75
  py: "sm",
77
76
  "aria-live": "polite",
78
77
  role: "list"
79
- }, t[3] = l, t[4] = u) : (l = t[3], u = t[4]);
78
+ }, n[3] = l, n[4] = u) : (l = n[3], u = n[4]);
80
79
  let d;
81
- return t[5] !== r || t[6] !== i || t[7] !== s || t[8] !== c ? (d = /* @__PURE__ */ J(n, {
80
+ return n[5] !== r || n[6] !== i || n[7] !== s || n[8] !== c ? (d = /* @__PURE__ */ J(t, {
82
81
  ...i,
83
82
  height: "full",
84
83
  width: "full",
@@ -88,7 +87,7 @@ var ot = () => {
88
87
  verticalScrollbarProps: l,
89
88
  contentProps: u,
90
89
  children: r
91
- }), t[5] = r, t[6] = i, t[7] = s, t[8] = c, t[9] = d) : d = t[9], d;
90
+ }), n[5] = r, n[6] = i, n[7] = s, n[8] = c, n[9] = d) : d = n[9], d;
92
91
  }, lt = {
93
92
  axis: "horizontal",
94
93
  bottom: "md",
@@ -201,10 +200,10 @@ var ot = () => {
201
200
  let t = typeof e == "string" ? e : JSON.stringify(e, null, 2);
202
201
  return t.length === 0 ? null : t.length > 200 ? `${t.slice(0, 200)}...` : t;
203
202
  }, gt = (e) => {
204
- let t = q(19), { toolName: r, toolInput: i, onApprove: a, onDeny: o } = e, s;
205
- t[0] === i ? s = t[1] : (s = ht(i), t[0] = i, t[1] = s);
203
+ let n = q(19), { toolName: r, toolInput: i, onApprove: a, onDeny: o } = e, s;
204
+ n[0] === i ? s = n[1] : (s = ht(i), n[0] = i, n[1] = s);
206
205
  let c = s, l;
207
- t[2] === r ? l = t[3] : (l = /* @__PURE__ */ Y(G, {
206
+ n[2] === r ? l = n[3] : (l = /* @__PURE__ */ Y(G, {
208
207
  textStyle: "label/S/medium",
209
208
  color: "fg",
210
209
  children: [
@@ -215,9 +214,9 @@ var ot = () => {
215
214
  }),
216
215
  "?"
217
216
  ]
218
- }), t[2] = r, t[3] = l);
217
+ }), n[2] = r, n[3] = l);
219
218
  let u;
220
- t[4] === c ? u = t[5] : (u = c ? /* @__PURE__ */ J(n, {
219
+ n[4] === c ? u = n[5] : (u = c ? /* @__PURE__ */ J(t, {
221
220
  maxH: "6rem",
222
221
  children: /* @__PURE__ */ J(P, {
223
222
  size: "sm",
@@ -226,33 +225,33 @@ var ot = () => {
226
225
  width: "100%",
227
226
  children: c
228
227
  })
229
- }) : null, t[4] = c, t[5] = u);
228
+ }) : null, n[4] = c, n[5] = u);
230
229
  let d;
231
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ J(Ge, { size: 14 }), t[6] = d) : d = t[6];
230
+ n[6] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ J(Ge, { size: 14 }), n[6] = d) : d = n[6];
232
231
  let f;
233
- t[7] === o ? f = t[8] : (f = /* @__PURE__ */ Y(M, {
232
+ n[7] === o ? f = n[8] : (f = /* @__PURE__ */ Y(M, {
234
233
  size: "xs",
235
234
  variant: "outline",
236
235
  onClick: o,
237
236
  children: [d, "Deny"]
238
- }), t[7] = o, t[8] = f);
237
+ }), n[7] = o, n[8] = f);
239
238
  let p;
240
- t[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ J(We, { size: 14 }), t[9] = p) : p = t[9];
239
+ n[9] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ J(We, { size: 14 }), n[9] = p) : p = n[9];
241
240
  let m;
242
- t[10] === a ? m = t[11] : (m = /* @__PURE__ */ Y(M, {
241
+ n[10] === a ? m = n[11] : (m = /* @__PURE__ */ Y(M, {
243
242
  size: "xs",
244
243
  colorPalette: "green",
245
244
  onClick: a,
246
245
  children: [p, "Allow"]
247
- }), t[10] = a, t[11] = m);
246
+ }), n[10] = a, n[11] = m);
248
247
  let h;
249
- t[12] !== f || t[13] !== m ? (h = /* @__PURE__ */ Y(L, {
248
+ n[12] !== f || n[13] !== m ? (h = /* @__PURE__ */ Y(L, {
250
249
  gap: "xs",
251
250
  justifyContent: "flex-end",
252
251
  children: [f, m]
253
- }), t[12] = f, t[13] = m, t[14] = h) : h = t[14];
252
+ }), n[12] = f, n[13] = m, n[14] = h) : h = n[14];
254
253
  let g;
255
- return t[15] !== l || t[16] !== u || t[17] !== h ? (g = /* @__PURE__ */ J(j, {
254
+ return n[15] !== l || n[16] !== u || n[17] !== h ? (g = /* @__PURE__ */ J(j, {
256
255
  px: "sm",
257
256
  py: "xs",
258
257
  mx: "sm",
@@ -269,7 +268,7 @@ var ot = () => {
269
268
  h
270
269
  ]
271
270
  })
272
- }), t[15] = l, t[16] = u, t[17] = h, t[18] = g) : g = t[18], g;
271
+ }), n[15] = l, n[16] = u, n[17] = h, n[18] = g) : g = n[18], g;
273
272
  }, _t = "md", vt = "neutral", yt = (e) => {
274
273
  let t = q(17), { attachments: n, onSelect: r, onRemove: i, renderBadge: o, size: s, tone: c } = e, l;
275
274
  t[0] === n ? l = t[1] : (l = n === void 0 ? [] : n, t[0] = n, t[1] = l);
@@ -353,8 +352,7 @@ function Ct(e) {
353
352
  i
354
353
  ], t[3] = n, t[4] = i, t[5] = r, t[6] = c, t[7] = l) : (c = t[6], l = t[7]), X(c, l), null;
355
354
  }
356
- //#endregion
357
- //#region src/theme/recipes/chat-composer.ts
355
+ // src/theme/recipes/chat-composer.ts
358
356
  var wt = de({
359
357
  className: "ps-chat-composer",
360
358
  slots: ["input", "workspace"],
@@ -459,8 +457,8 @@ var wt = de({
459
457
  }
460
458
  return u;
461
459
  }, Mt = (e) => {
462
- let t = q(18), { actions: r, submitActions: i, questionPrompt: a, skipDisabled: o, skipTitle: s, onSkip: c, buttonAction: l, submitTitle: u, submitLabel: d, messageTitle: f, runAction: p } = e, m;
463
- t[0] === r ? m = t[1] : (m = /* @__PURE__ */ J(n, {
460
+ let n = q(18), { actions: r, submitActions: i, questionPrompt: a, skipDisabled: o, skipTitle: s, onSkip: c, buttonAction: l, submitTitle: u, submitLabel: d, messageTitle: f, runAction: p } = e, m;
461
+ n[0] === r ? m = n[1] : (m = /* @__PURE__ */ J(t, {
464
462
  flex: "1",
465
463
  minW: "0",
466
464
  showVerticalScrollbar: !1,
@@ -471,18 +469,18 @@ var wt = de({
471
469
  minH: "7",
472
470
  children: r
473
471
  })
474
- }), t[0] = r, t[1] = m);
472
+ }), n[0] = r, n[1] = m);
475
473
  let h;
476
- t[2] !== c || t[3] !== a || t[4] !== o || t[5] !== s ? (h = a ? /* @__PURE__ */ J(M, {
474
+ n[2] !== c || n[3] !== a || n[4] !== o || n[5] !== s ? (h = a ? /* @__PURE__ */ J(M, {
477
475
  size: "xs",
478
476
  variant: "ghost",
479
477
  disabled: o,
480
478
  title: s,
481
479
  onClick: c,
482
480
  children: "Skip"
483
- }) : null, t[2] = c, t[3] = a, t[4] = o, t[5] = s, t[6] = h) : h = t[6];
481
+ }) : null, n[2] = c, n[3] = a, n[4] = o, n[5] = s, n[6] = h) : h = n[6];
484
482
  let g;
485
- t[7] !== l || t[8] !== f || t[9] !== p || t[10] !== d || t[11] !== u ? (g = d ? /* @__PURE__ */ J(M, {
483
+ n[7] !== l || n[8] !== f || n[9] !== p || n[10] !== d || n[11] !== u ? (g = d ? /* @__PURE__ */ J(M, {
486
484
  size: "xs",
487
485
  variant: "primary",
488
486
  disabled: l === "none",
@@ -494,9 +492,9 @@ var wt = de({
494
492
  shortcut: l === "submit" ? "Enter" : void 0,
495
493
  onClick: () => p(l),
496
494
  disabled: l === "none"
497
- }), t[7] = l, t[8] = f, t[9] = p, t[10] = d, t[11] = u, t[12] = g) : g = t[12];
495
+ }), n[7] = l, n[8] = f, n[9] = p, n[10] = d, n[11] = u, n[12] = g) : g = n[12];
498
496
  let _;
499
- return t[13] !== i || t[14] !== m || t[15] !== h || t[16] !== g ? (_ = /* @__PURE__ */ Y(L, {
497
+ return n[13] !== i || n[14] !== m || n[15] !== h || n[16] !== g ? (_ = /* @__PURE__ */ Y(L, {
500
498
  gap: "1",
501
499
  minH: "7",
502
500
  align: "center",
@@ -506,7 +504,7 @@ var wt = de({
506
504
  h,
507
505
  g
508
506
  ]
509
- }), t[13] = i, t[14] = m, t[15] = h, t[16] = g, t[17] = _) : _ = t[17], _;
507
+ }), n[13] = i, n[14] = m, n[15] = h, n[16] = g, n[17] = _) : _ = n[17], _;
510
508
  }, Nt = async (e) => {
511
509
  await e.onSubmit(e.text, e.response ? [] : e.attachments, e.response), e.response || e.onClearAttachments?.();
512
510
  }, Pt = "Other", Ft = "__pstdio_other__", It = (e, t) => Object.hasOwn(e, t) ? e[t] : void 0, Lt = (e) => !!e.allowCustomAnswer && e.options.length > 0, Rt = (e, t) => e.id ?? `question-${t}`, zt = (e, t, n) => Object.hasOwn(e, Rt(t, n)), Bt = (e, t, n) => {
@@ -570,8 +568,8 @@ var wt = de({
570
568
  if (!(!i.required || Jt(i, Rt(i, n), t, r).length > 0)) return !0;
571
569
  }
572
570
  return !1;
573
- }, tn = (e, t, n, r) => Jt(e, Rt(e, t), n, r).length > 0, nn = (e) => {
574
- let n = q(22), { question: r, questionIndex: i, isActive: a, selectedOptionsByQuestion: o, customAnswersByQuestion: s, onSelectStep: c } = e, l;
571
+ }, tn = (e, t, n, r) => Jt(e, Rt(e, t), n, r).length > 0, nn = (t) => {
572
+ let n = q(22), { question: r, questionIndex: i, isActive: a, selectedOptionsByQuestion: o, customAnswersByQuestion: s, onSelectStep: c } = t, l;
575
573
  n[0] !== s || n[1] !== r || n[2] !== i || n[3] !== o ? (l = tn(r, i, o, s), n[0] = s, n[1] = r, n[2] = i, n[3] = o, n[4] = l) : l = n[4];
576
574
  let u = l, d = u ? "answered" : "not answered", f = a ? "outline" : "ghost", p = `question-step-tab-${r.id}`, m = `${r.question} (${d})`, h = `question-step-panel-${r.id}`, g;
577
575
  n[5] !== c || n[6] !== i ? (g = () => c(i), n[5] = c, n[6] = i, n[7] = g) : g = n[7];
@@ -591,7 +589,7 @@ var wt = de({
591
589
  children: _
592
590
  }), n[11] = a, n[12] = p, n[13] = m, n[14] = h, n[15] = g, n[16] = _, n[17] = f, n[18] = v) : v = n[18];
593
591
  let y;
594
- return n[19] !== r.question || n[20] !== v ? (y = /* @__PURE__ */ J(t, {
592
+ return n[19] !== r.question || n[20] !== v ? (y = /* @__PURE__ */ J(e, {
595
593
  content: r.question,
596
594
  children: v
597
595
  }), n[19] = r.question, n[20] = v, n[21] = y) : y = n[21], y;
@@ -938,8 +936,7 @@ function Pn(e, t) {
938
936
  })
939
937
  }, `${e.label}-${t}`);
940
938
  }
941
- //#endregion
942
- //#region src/components/chat-ui/components/chat-input-question-prompt.tsx
939
+ // src/components/chat-ui/components/chat-input-question-prompt.tsx
943
940
  var Fn = (e) => e.questions.map((e, t) => ({
944
941
  id: Rt(e, t),
945
942
  question: e.question,
@@ -1277,8 +1274,7 @@ var Fn = (e) => e.questions.map((e, t) => ({
1277
1274
  function Jn(e) {
1278
1275
  return e + 1;
1279
1276
  }
1280
- //#endregion
1281
- //#region src/components/chat-ui/components/composer-request.ts
1277
+ // src/components/chat-ui/components/composer-request.ts
1282
1278
  var Yn = (e, t, n) => {
1283
1279
  let r = [];
1284
1280
  return e && r.push({
@@ -1304,7 +1300,7 @@ var Yn = (e, t, n) => {
1304
1300
  children: n
1305
1301
  }), t[0] = n, t[1] = r), r;
1306
1302
  }, Qn = (e) => {
1307
- let { defaultState: t, recentUserMessages: r = [], onSubmit: i = () => {}, onInterrupt: a, onAttachFiles: o, onAttachText: s, textAttachmentPasteLineThreshold: c = 200, streaming: l = !1, attachedResources: u = [], onClearAttachments: d, isDisabled: f = !1, submitDisabled: p = !1, onChange: m, placeholder: h, attachmentList: g, actions: _, submitActions: v, attachmentActions: y, attachedToTop: b = !1, questionPrompt: x, decision: S, autoFocus: C = !1, focusSignal: w = 0, submitTitle: T, submitLabel: E, initialSelection: O, onSelectionChange: k, onEditorStateChange: A, retainTextUntilAcknowledged: M = !1, commands: N = [] } = e, P = Xn(x, S), F = !!P, L = pe({ recipe: wt })({ attachedToTop: b }), [ee, R] = Q(!1), { editorKey: z, editorState: te, remountEditor: B, setEditorState: ne, setText: re, text: V } = qn(t), ie = Un(C, w), H = Kn({
1303
+ let { defaultState: n, recentUserMessages: r = [], onSubmit: i = () => {}, onInterrupt: a, onAttachFiles: o, onAttachText: s, textAttachmentPasteLineThreshold: c = 200, streaming: l = !1, attachedResources: u = [], onClearAttachments: d, isDisabled: f = !1, submitDisabled: p = !1, onChange: m, placeholder: h, attachmentList: g, actions: _, submitActions: v, attachmentActions: y, attachedToTop: b = !1, questionPrompt: x, decision: S, autoFocus: C = !1, focusSignal: w = 0, submitTitle: T, submitLabel: E, initialSelection: O, onSelectionChange: k, onEditorStateChange: A, retainTextUntilAcknowledged: M = !1, commands: N = [] } = e, P = Xn(x, S), F = !!P, L = pe({ recipe: wt })({ attachedToTop: b }), [ee, R] = Q(!1), { editorKey: z, editorState: te, remountEditor: B, setEditorState: ne, setText: re, text: V } = qn(n), ie = Un(C, w), H = Kn({
1308
1304
  recentUserMessages: r,
1309
1305
  text: V,
1310
1306
  blocked: f || ee || F,
@@ -1378,7 +1374,7 @@ var Yn = (e, t, n) => {
1378
1374
  children: [g ? /* @__PURE__ */ J(j, {
1379
1375
  mb: "xs",
1380
1376
  children: g
1381
- }) : null, /* @__PURE__ */ J(n, {
1377
+ }) : null, /* @__PURE__ */ J(t, {
1382
1378
  maxH: "10rem",
1383
1379
  showHorizontalScrollbar: !1,
1384
1380
  contentProps: { pr: "2xs" },
@@ -1457,8 +1453,8 @@ var Yn = (e, t, n) => {
1457
1453
  hour: "numeric",
1458
1454
  minute: "2-digit",
1459
1455
  timeZone: n
1460
- }).format(new Date(e.createdAt)) : "", or = (e) => {
1461
- let n = q(20), { message: r, alwaysVisible: i, copyAlwaysVisible: a } = e, o = i !== void 0 && i, s = a === void 0 ? o : a, [c, l] = Q(!1), u = Z(null), d;
1456
+ }).format(new Date(e.createdAt)) : "", or = (t) => {
1457
+ let n = q(20), { message: r, alwaysVisible: i, copyAlwaysVisible: a } = t, o = i !== void 0 && i, s = a === void 0 ? o : a, [c, l] = Q(!1), u = Z(null), d;
1462
1458
  n[0] === r ? d = n[1] : (d = ir(r), n[0] = r, n[1] = d);
1463
1459
  let f = d, p;
1464
1460
  n[2] === r ? p = n[3] : (p = ar(r), n[2] = r, n[3] = p);
@@ -1488,7 +1484,7 @@ var Yn = (e, t, n) => {
1488
1484
  pointerEvents: s ? "auto" : "none",
1489
1485
  transition: "opacity 120ms ease",
1490
1486
  css: sr,
1491
- children: /* @__PURE__ */ J(t, {
1487
+ children: /* @__PURE__ */ J(e, {
1492
1488
  content: c ? "Copied" : "Copy message",
1493
1489
  children: /* @__PURE__ */ J(R, {
1494
1490
  "aria-label": c ? "Copied" : "Copy message",
@@ -1622,8 +1618,7 @@ var Yn = (e, t, n) => {
1622
1618
  default: return n === "todowrite" || n === "todo" ? "todo" : mr;
1623
1619
  }
1624
1620
  };
1625
- //#endregion
1626
- //#region src/components/chat-ui/utils/diff.ts
1621
+ // src/components/chat-ui/utils/diff.ts
1627
1622
  function vr(e) {
1628
1623
  let t = e.lastIndexOf("/");
1629
1624
  return t >= 0 ? e.slice(t + 1) : e;
@@ -1695,13 +1690,7 @@ var Mr = (e) => br(e) || e.startsWith("diff --git "), Nr = (e) => e.startsWith("
1695
1690
  if (e.startsWith(" ")) {
1696
1691
  let r = e.slice(1);
1697
1692
  t.push(r), n.push(r);
1698
- return;
1699
- }
1700
- if (e.startsWith("-")) {
1701
- t.push(e.slice(1));
1702
- return;
1703
- }
1704
- e.startsWith("+") && n.push(e.slice(1));
1693
+ } else e.startsWith("-") ? t.push(e.slice(1)) : e.startsWith("+") && n.push(e.slice(1));
1705
1694
  }, Fr = (e, t, n, r) => {
1706
1695
  let i = t;
1707
1696
  for (; i < e.length;) {
@@ -1717,11 +1706,7 @@ var Mr = (e) => br(e) || e.startsWith("diff --git "), Nr = (e) => e.startsWith("
1717
1706
  for (; s < e.length;) {
1718
1707
  let t = e[s] || "";
1719
1708
  if (Mr(t)) break;
1720
- if (!Sr(t)) {
1721
- s += 1;
1722
- continue;
1723
- }
1724
- s = Fr(e, s + 1, a, o);
1709
+ Sr(t) ? s = Fr(e, s + 1, a, o) : s += 1;
1725
1710
  }
1726
1711
  return {
1727
1712
  nextIndex: s,
@@ -1745,8 +1730,7 @@ function Lr(e) {
1745
1730
  }
1746
1731
  return n;
1747
1732
  }
1748
- //#endregion
1749
- //#region src/components/chat-ui/tool-rendering/shared.ts
1733
+ // src/components/chat-ui/tool-rendering/shared.ts
1750
1734
  var Rr = {
1751
1735
  apply_patch: "Apply patch",
1752
1736
  bash: "Run command",
@@ -2137,17 +2121,13 @@ var Rr = {
2137
2121
  if (i === "image") {
2138
2122
  let e = qi(r, t);
2139
2123
  e && n.push(e);
2140
- continue;
2141
- }
2142
- if (i === "text") {
2124
+ } else if (i === "text") {
2143
2125
  let t = Ui(e?.text);
2144
2126
  t && n.push({
2145
2127
  type: "text",
2146
2128
  text: t
2147
2129
  });
2148
- continue;
2149
- }
2150
- n.push(...ta(r, t));
2130
+ } else n.push(...ta(r, t));
2151
2131
  }
2152
2132
  return n;
2153
2133
  }, $i = (e) => {
@@ -2240,15 +2220,14 @@ var Rr = {
2240
2220
  }, ua = (e, t) => {
2241
2221
  let n = sa(t?.toolRenderers);
2242
2222
  return { items: e.map((e) => la(e, n, t)).filter(oa) };
2243
- }, da = ve(() => import("./diff-editor-CGpeyoCE.js").then((e) => e.n).then((e) => ({ default: e.DiffEditor }))), fa = (e) => {
2223
+ }, da = ve(() => import("./diff-editor-BMBk4KXR.js").then((e) => e.n).then((e) => ({ default: e.DiffEditor }))), fa = (e) => {
2244
2224
  let t = q(2), n;
2245
2225
  return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ J(ge, {
2246
2226
  fallback: null,
2247
2227
  children: /* @__PURE__ */ J(da, { ...e })
2248
2228
  }), t[0] = e, t[1] = n), n;
2249
2229
  };
2250
- //#endregion
2251
- //#region src/components/chat-ui/components/timeline-indicator.tsx
2230
+ // src/components/chat-ui/components/timeline-indicator.tsx
2252
2231
  function pa(e) {
2253
2232
  let t = q(10), { ind: n } = e;
2254
2233
  if (!n || n.type === "none") return null;
@@ -2287,8 +2266,7 @@ function pa(e) {
2287
2266
  children: [r, i]
2288
2267
  }) }), t[8] = r, t[9] = a), a;
2289
2268
  }
2290
- //#endregion
2291
- //#region src/components/chat-ui/components/timeline-title.tsx
2269
+ // src/components/chat-ui/components/timeline-title.tsx
2292
2270
  var ma = (e, t, n, r = !1) => {
2293
2271
  r && e.stopPropagation(), t.href || e.preventDefault(), t.filePath && n?.(t.filePath);
2294
2272
  };
@@ -2363,8 +2341,8 @@ function va(e) {
2363
2341
  children: n.text
2364
2342
  }), t[5] = i, t[6] = n.text, t[7] = a, t[8] = o, t[9] = s, t[10] = l, t[11] = u) : u = t[11], u;
2365
2343
  }
2366
- function ya(e) {
2367
- let n = q(14), { seg: r, isClickable: i } = e, a = r.bold ? "medium" : void 0, o = r.monospace ? "mono/XS" : void 0, s = r.truncate ? "0" : void 0, c = r.truncate ? "hidden" : void 0, l = r.truncate ? "ellipsis" : void 0, u = r.truncate ? "nowrap" : void 0, d = i && !r.muted ? "fg" : "fg.muted", f;
2344
+ function ya(t) {
2345
+ let n = q(14), { seg: r, isClickable: i } = t, a = r.bold ? "medium" : void 0, o = r.monospace ? "mono/XS" : void 0, s = r.truncate ? "0" : void 0, c = r.truncate ? "hidden" : void 0, l = r.truncate ? "ellipsis" : void 0, u = r.truncate ? "nowrap" : void 0, d = i && !r.muted ? "fg" : "fg.muted", f;
2368
2346
  n[0] === d ? f = n[1] : (f = { color: d }, n[0] = d, n[1] = f);
2369
2347
  let p;
2370
2348
  n[2] !== r.text || n[3] !== a || n[4] !== o || n[5] !== s || n[6] !== c || n[7] !== l || n[8] !== u || n[9] !== f ? (p = /* @__PURE__ */ J(U, {
@@ -2381,7 +2359,7 @@ function ya(e) {
2381
2359
  let m = p;
2382
2360
  if (!r.truncate) return m;
2383
2361
  let h;
2384
- return n[11] !== r.text || n[12] !== m ? (h = /* @__PURE__ */ J(t, {
2362
+ return n[11] !== r.text || n[12] !== m ? (h = /* @__PURE__ */ J(e, {
2385
2363
  content: r.text,
2386
2364
  children: m
2387
2365
  }), n[11] = r.text, n[12] = m, n[13] = h) : h = n[13], h;
@@ -2438,17 +2416,16 @@ function ba(e) {
2438
2416
  default: return null;
2439
2417
  }
2440
2418
  }
2441
- //#endregion
2442
- //#region src/components/chat-ui/components/timeline.tsx
2419
+ // src/components/chat-ui/components/timeline.tsx
2443
2420
  var xa = ce;
2444
2421
  function Sa(e) {
2445
- let t = q(5), { code: r, language: i } = e, a = i ? `${i} code block` : "code block", o;
2446
- t[0] === r ? o = t[1] : (o = /* @__PURE__ */ J(j, {
2422
+ let n = q(5), { code: r, language: i } = e, a = i ? `${i} code block` : "code block", o;
2423
+ n[0] === r ? o = n[1] : (o = /* @__PURE__ */ J(j, {
2447
2424
  as: "code",
2448
2425
  children: r
2449
- }), t[0] = r, t[1] = o);
2426
+ }), n[0] = r, n[1] = o);
2450
2427
  let s;
2451
- return t[2] !== a || t[3] !== o ? (s = /* @__PURE__ */ J(n, {
2428
+ return n[2] !== a || n[3] !== o ? (s = /* @__PURE__ */ J(t, {
2452
2429
  background: "bg.code",
2453
2430
  color: "fg.muted",
2454
2431
  borderWidth: "1px",
@@ -2464,7 +2441,7 @@ function Sa(e) {
2464
2441
  "aria-label": a,
2465
2442
  children: o
2466
2443
  })
2467
- }), t[2] = a, t[3] = o, t[4] = s) : s = t[4], s;
2444
+ }), n[2] = a, n[3] = o, n[4] = s) : s = n[4], s;
2468
2445
  }
2469
2446
  function Ca(e) {
2470
2447
  let t = q(38), { b: n, onOpenFile: r } = e;
@@ -2720,8 +2697,7 @@ function Da(e) {
2720
2697
  function Oa(e, t) {
2721
2698
  return e.id ? `id:${e.id}` : `idx:${t}`;
2722
2699
  }
2723
- //#endregion
2724
- //#region src/components/chat-ui/components/tool-invocation-timeline.tsx
2700
+ // src/components/chat-ui/components/tool-invocation-timeline.tsx
2725
2701
  var ka = (e) => ur(e.tool ?? "").replace(/_/g, "") === "question", Aa = (e) => {
2726
2702
  let t = e.state?.output;
2727
2703
  return typeof t == "string" ? t.trim().length > 0 : Array.isArray(t) ? t.length > 0 : t && typeof t == "object" ? Object.keys(t).length > 0 : t != null;
@@ -2750,8 +2726,7 @@ function ja(e) {
2750
2726
  function Ma(e) {
2751
2727
  return !ka(e) || Aa(e);
2752
2728
  }
2753
- //#endregion
2754
- //#region src/components/chat-ui/components/message-parts-renderer.tsx
2729
+ // src/components/chat-ui/components/message-parts-renderer.tsx
2755
2730
  var Na = (e) => e.type === "tool", Pa = (e) => e.filename ?? e.url.split("/").pop() ?? "attachment", Fa = /\.(avif|bmp|gif|jpe?g|png|svg|webp)$/i, Ia = (e) => e.mediaType?.startsWith("image/") || Fa.test(Pa(e)), La = (e) => Ia(e) ? /* @__PURE__ */ J(z, {
2756
2731
  src: e.url,
2757
2732
  alt: `${Pa(e)} preview thumbnail`,
@@ -2759,14 +2734,10 @@ var Na = (e) => e.type === "tool", Pa = (e) => e.filename ?? e.url.split("/").po
2759
2734
  borderRadius: "xs",
2760
2735
  objectFit: "cover"
2761
2736
  }) : void 0, Ra = (e, t) => {
2762
- if (t) {
2763
- t.open({
2764
- source: e.url,
2765
- origin: "reference"
2766
- });
2767
- return;
2768
- }
2769
- typeof window < "u" && window.open(e.url, "_blank", "noopener,noreferrer");
2737
+ t ? t.open({
2738
+ source: e.url,
2739
+ origin: "reference"
2740
+ }) : typeof window < "u" && window.open(e.url, "_blank", "noopener,noreferrer");
2770
2741
  }, za = (e) => {
2771
2742
  if (e.message && e.message.trim().length > 0) return e.message;
2772
2743
  let { errorType: t } = e;
@@ -2803,18 +2774,18 @@ function Ha(e) {
2803
2774
  children: i
2804
2775
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
2805
2776
  }
2806
- function Ua(t) {
2807
- let n = q(9), { message: r, streaming: i, hideQuestionForms: o, toolInvocationTimeline: s } = t, c = i !== void 0 && i, l = o !== void 0 && o, u = v(), d = g(), f;
2808
- if (n[0] !== l || n[1] !== d || n[2] !== u || n[3] !== r || n[4] !== c || n[5] !== s) {
2809
- let t = x([r], u), i = s ?? ja, o;
2810
- n[7] === r.parts ? o = n[8] : (o = r.parts ?? [], n[7] = r.parts, n[8] = o);
2777
+ function Ua(e) {
2778
+ let t = q(9), { message: n, streaming: r, hideQuestionForms: o, toolInvocationTimeline: s } = e, c = r !== void 0 && r, l = o !== void 0 && o, u = v(), d = g(), f;
2779
+ if (t[0] !== l || t[1] !== d || t[2] !== u || t[3] !== n || t[4] !== c || t[5] !== s) {
2780
+ let e = x([n], u), r = s ?? ja, o;
2781
+ t[7] === n.parts ? o = t[8] : (o = n.parts ?? [], t[7] = n.parts, t[8] = o);
2811
2782
  let p = o, m = [];
2812
- for (let n = 0; n < p.length; n += 1) {
2813
- let o = p[n], s = `${r.id}-${n}`;
2783
+ for (let t = 0; t < p.length; t += 1) {
2784
+ let o = p[t], s = `${n.id}-${t}`;
2814
2785
  bb0: switch (o.type) {
2815
2786
  case "text":
2816
2787
  m.push(/* @__PURE__ */ J(h, {
2817
- value: d.get(o) ?? t.get(o) ?? S,
2788
+ value: d.get(o) ?? e.get(o) ?? S,
2818
2789
  children: /* @__PURE__ */ J("div", { children: /* @__PURE__ */ J(cr, {
2819
2790
  streaming: c,
2820
2791
  children: o.text
@@ -2840,10 +2811,10 @@ function Ua(t) {
2840
2811
  m.push(/* @__PURE__ */ J(lr, { part: o }, s));
2841
2812
  break bb0;
2842
2813
  }
2843
- let { invocations: e, nextIndex: t } = Va(p, n);
2844
- n = t, m.push(/* @__PURE__ */ J(j, {
2814
+ let { invocations: e, nextIndex: n } = Va(p, t);
2815
+ t = n, m.push(/* @__PURE__ */ J(j, {
2845
2816
  width: "full",
2846
- children: /* @__PURE__ */ J(i, {
2817
+ children: /* @__PURE__ */ J(r, {
2847
2818
  invocations: e,
2848
2819
  linkHandler: u,
2849
2820
  labeledBlocks: !0,
@@ -2868,7 +2839,7 @@ function Ua(t) {
2868
2839
  m.push(/* @__PURE__ */ J(j, {
2869
2840
  py: "2",
2870
2841
  width: "full",
2871
- children: /* @__PURE__ */ J(e, {
2842
+ children: /* @__PURE__ */ J(i, {
2872
2843
  borderRadius: "xs",
2873
2844
  status: "error",
2874
2845
  colorPalette: "red",
@@ -2881,7 +2852,7 @@ function Ua(t) {
2881
2852
  case "alert":
2882
2853
  m.push(/* @__PURE__ */ J(j, {
2883
2854
  width: "full",
2884
- children: /* @__PURE__ */ J(e, {
2855
+ children: /* @__PURE__ */ J(i, {
2885
2856
  borderRadius: "xs",
2886
2857
  status: o.status === "loading" ? "info" : o.status,
2887
2858
  colorPalette: Ba[o.status],
@@ -2895,12 +2866,11 @@ function Ua(t) {
2895
2866
  default: m.push(null);
2896
2867
  }
2897
2868
  }
2898
- f = /* @__PURE__ */ J(me, { children: m }), n[0] = l, n[1] = d, n[2] = u, n[3] = r, n[4] = c, n[5] = s, n[6] = f;
2899
- } else f = n[6];
2869
+ f = /* @__PURE__ */ J(me, { children: m }), t[0] = l, t[1] = d, t[2] = u, t[3] = n, t[4] = c, t[5] = s, t[6] = f;
2870
+ } else f = t[6];
2900
2871
  return f;
2901
2872
  }
2902
- //#endregion
2903
- //#region src/components/chat-ui/components/message-types.ts
2873
+ // src/components/chat-ui/components/message-types.ts
2904
2874
  var Wa = (e) => e === "user" || e === "assistant" || e === "developer" ? e : "assistant", Ga = (e) => e.text.trim().length > 0, Ka = (e) => e.title.trim().length > 0 || !!e.message?.trim(), qa = (e) => {
2905
2875
  switch (e.type) {
2906
2876
  case "text":
@@ -2932,22 +2902,10 @@ var Wa = (e) => e === "user" || e === "assistant" || e === "developer" ? e : "as
2932
2902
  ...t,
2933
2903
  parts: e
2934
2904
  };
2935
- if (a.role === "user") {
2936
- i(), n.push(a);
2937
- continue;
2938
- }
2939
- if (Ya(a)) {
2940
- r.push(a);
2941
- continue;
2942
- }
2943
- if (r.length > 0) {
2944
- n.push({
2945
- ...a,
2946
- parts: [...r.flatMap((e) => e.parts), ...a.parts]
2947
- }), i();
2948
- continue;
2949
- }
2950
- n.push(a);
2905
+ a.role === "user" ? (i(), n.push(a)) : Ya(a) ? r.push(a) : r.length > 0 ? (n.push({
2906
+ ...a,
2907
+ parts: [...r.flatMap((e) => e.parts), ...a.parts]
2908
+ }), i()) : n.push(a);
2951
2909
  }
2952
2910
  if (t.streaming && r.length > 0) {
2953
2911
  let e = Xa(r);
@@ -3051,68 +3009,68 @@ var Wa = (e) => e === "user" || e === "assistant" || e === "developer" ? e : "as
3051
3009
  oo(e.currentTarget, e.deltaY) && e.stopPropagation();
3052
3010
  };
3053
3011
  function co(e) {
3054
- let t = q(46), { message: r, expanded: i, animate: a, onToggle: o } = e, s = Z(null), c = Z(null), l = Z(null), [u, d] = Q(!1), f = u && i, p;
3055
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (p = { key: "stickyUserMessage" }, t[0] = p) : p = t[0];
3012
+ let n = q(46), { message: r, expanded: i, animate: a, onToggle: o } = e, s = Z(null), c = Z(null), l = Z(null), [u, d] = Q(!1), f = u && i, p;
3013
+ n[0] === Symbol.for("react.memo_cache_sentinel") ? (p = { key: "stickyUserMessage" }, n[0] = p) : p = n[0];
3056
3014
  let m = pe(p), h;
3057
- t[1] !== f || t[2] !== m ? (h = m({ expanded: f }), t[1] = f, t[2] = m, t[3] = h) : h = t[3];
3015
+ n[1] !== f || n[2] !== m ? (h = m({ expanded: f }), n[1] = f, n[2] = m, n[3] = h) : h = n[3];
3058
3016
  let g = h, _ = f ? "expanded" : "collapsed", v = f ? so : void 0, y;
3059
- t[4] !== g.viewport || t[5] !== _ || t[6] !== v ? (y = {
3017
+ n[4] !== g.viewport || n[5] !== _ || n[6] !== v ? (y = {
3060
3018
  css: g.viewport,
3061
3019
  "data-sticky-user-message-content": _,
3062
3020
  onWheel: v
3063
- }, t[4] = g.viewport, t[5] = _, t[6] = v, t[7] = y) : y = t[7];
3021
+ }, n[4] = g.viewport, n[5] = _, n[6] = v, n[7] = y) : y = n[7];
3064
3022
  let b = y, x, S;
3065
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (x = () => {
3023
+ n[8] === Symbol.for("react.memo_cache_sentinel") ? (x = () => {
3066
3024
  let e = c.current, t = l.current, n = () => {
3067
3025
  d(e.getBoundingClientRect().height > t.getBoundingClientRect().height + 1);
3068
3026
  }, r = new ResizeObserver(n);
3069
3027
  return r.observe(e), r.observe(t), n(), () => r.disconnect();
3070
- }, S = [], t[8] = x, t[9] = S) : (x = t[8], S = t[9]), be(x, S);
3028
+ }, S = [], n[8] = x, n[9] = S) : (x = n[8], S = n[9]), be(x, S);
3071
3029
  let C, w;
3072
- t[10] === f ? (C = t[11], w = t[12]) : (C = () => {
3030
+ n[10] === f ? (C = n[11], w = n[12]) : (C = () => {
3073
3031
  f || (s.current.scrollTop = 0);
3074
- }, w = [f], t[10] = f, t[11] = C, t[12] = w), be(C, w);
3032
+ }, w = [f], n[10] = f, n[11] = C, n[12] = w), be(C, w);
3075
3033
  let T;
3076
- t[13] === r ? T = t[14] : (T = /* @__PURE__ */ J(or, {
3034
+ n[13] === r ? T = n[14] : (T = /* @__PURE__ */ J(or, {
3077
3035
  message: r,
3078
3036
  alwaysVisible: !0,
3079
3037
  copyAlwaysVisible: !1
3080
- }), t[13] = r, t[14] = T);
3038
+ }), n[13] = r, n[14] = T);
3081
3039
  let E = T, D = r.delivery ?? "sent", O = a ? $n : void 0, k;
3082
- t[15] === g.preview ? k = t[16] : (k = /* @__PURE__ */ J(j, {
3040
+ n[15] === g.preview ? k = n[16] : (k = /* @__PURE__ */ J(j, {
3083
3041
  ref: l,
3084
3042
  css: g.preview,
3085
3043
  "aria-hidden": "true"
3086
- }), t[15] = g.preview, t[16] = k);
3044
+ }), n[15] = g.preview, n[16] = k);
3087
3045
  let A;
3088
- t[17] === r ? A = t[18] : (A = /* @__PURE__ */ J(Ha, { message: r }), t[17] = r, t[18] = A);
3046
+ n[17] === r ? A = n[18] : (A = /* @__PURE__ */ J(Ha, { message: r }), n[17] = r, n[18] = A);
3089
3047
  let M;
3090
- t[19] !== g.body || t[20] !== A ? (M = /* @__PURE__ */ J(j, {
3048
+ n[19] !== g.body || n[20] !== A ? (M = /* @__PURE__ */ J(j, {
3091
3049
  ref: c,
3092
3050
  css: g.body,
3093
3051
  children: A
3094
- }), t[19] = g.body, t[20] = A, t[21] = M) : M = t[21];
3052
+ }), n[19] = g.body, n[20] = A, n[21] = M) : M = n[21];
3095
3053
  let N;
3096
- t[22] !== f || t[23] !== M || t[24] !== b ? (N = /* @__PURE__ */ J(n, {
3054
+ n[22] !== f || n[23] !== M || n[24] !== b ? (N = /* @__PURE__ */ J(t, {
3097
3055
  viewportRef: s,
3098
3056
  showVerticalScrollbar: f,
3099
3057
  viewportProps: b,
3100
3058
  children: M
3101
- }), t[22] = f, t[23] = M, t[24] = b, t[25] = N) : N = t[25];
3059
+ }), n[22] = f, n[23] = M, n[24] = b, n[25] = N) : N = n[25];
3102
3060
  let P;
3103
- t[26] !== E || t[27] !== u || t[28] !== g.actions ? (P = u ? null : /* @__PURE__ */ J(j, {
3061
+ n[26] !== E || n[27] !== u || n[28] !== g.actions ? (P = u ? null : /* @__PURE__ */ J(j, {
3104
3062
  css: g.actions,
3105
3063
  children: E
3106
- }), t[26] = E, t[27] = u, t[28] = g.actions, t[29] = P) : P = t[29];
3064
+ }), n[26] = E, n[27] = u, n[28] = g.actions, n[29] = P) : P = n[29];
3107
3065
  let F;
3108
- t[30] !== E || t[31] !== u || t[32] !== f || t[33] !== r.id || t[34] !== o ? (F = u ? /* @__PURE__ */ J(to, {
3066
+ n[30] !== E || n[31] !== u || n[32] !== f || n[33] !== r.id || n[34] !== o ? (F = u ? /* @__PURE__ */ J(to, {
3109
3067
  expanded: f,
3110
3068
  label: f ? "Show less" : "Show more",
3111
3069
  onClick: () => o(r.id),
3112
3070
  actionPanel: E
3113
- }) : null, t[30] = E, t[31] = u, t[32] = f, t[33] = r.id, t[34] = o, t[35] = F) : F = t[35];
3071
+ }) : null, n[30] = E, n[31] = u, n[32] = f, n[33] = r.id, n[34] = o, n[35] = F) : F = n[35];
3114
3072
  let I;
3115
- t[36] !== g.root || t[37] !== k || t[38] !== N || t[39] !== P || t[40] !== F ? (I = /* @__PURE__ */ Y(mt.Content, {
3073
+ n[36] !== g.root || n[37] !== k || n[38] !== N || n[39] !== P || n[40] !== F ? (I = /* @__PURE__ */ Y(mt.Content, {
3116
3074
  from: "user",
3117
3075
  css: g.root,
3118
3076
  children: [
@@ -3121,17 +3079,16 @@ function co(e) {
3121
3079
  P,
3122
3080
  F
3123
3081
  ]
3124
- }), t[36] = g.root, t[37] = k, t[38] = N, t[39] = P, t[40] = F, t[41] = I) : I = t[41];
3082
+ }), n[36] = g.root, n[37] = k, n[38] = N, n[39] = P, n[40] = F, n[41] = I) : I = n[41];
3125
3083
  let L;
3126
- return t[42] !== D || t[43] !== O || t[44] !== I ? (L = /* @__PURE__ */ J(mt.Root, {
3084
+ return n[42] !== D || n[43] !== O || n[44] !== I ? (L = /* @__PURE__ */ J(mt.Root, {
3127
3085
  from: "user",
3128
3086
  delivery: D,
3129
3087
  ...O,
3130
3088
  children: I
3131
- }), t[42] = D, t[43] = O, t[44] = I, t[45] = L) : L = t[45], L;
3089
+ }), n[42] = D, n[43] = O, n[44] = I, n[45] = L) : L = n[45], L;
3132
3090
  }
3133
- //#endregion
3134
- //#region src/components/chat-ui/components/use-chat-tail-ready.ts
3091
+ // src/components/chat-ui/components/use-chat-tail-ready.ts
3135
3092
  var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop) <= fo && Math.abs(e.totalSize - t.totalSize) <= fo, mo = (e) => !!e && e.scrollHeight <= e.clientHeight, ho = (e) => ({
3136
3093
  scrollTop: e?.scrollTop ?? 0,
3137
3094
  totalSize: e?.scrollHeight ?? 0
@@ -3149,16 +3106,12 @@ var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3149
3106
  let e = 0, t = 0, n = 0, a = null, o = () => {
3150
3107
  t += 1;
3151
3108
  let s = ho(r.current);
3152
- if (n = a && po(s, a) ? n + 1 : 0, a = s, n >= lo || t >= uo) {
3153
- i.current?.();
3154
- return;
3155
- }
3156
- e = requestAnimationFrame(o);
3109
+ n = a && po(s, a) ? n + 1 : 0, a = s, n >= lo || t >= uo ? i.current?.() : e = requestAnimationFrame(o);
3157
3110
  };
3158
3111
  return e = requestAnimationFrame(o), () => cancelAnimationFrame(e);
3159
3112
  }, c = [r], t[3] = r, t[4] = s, t[5] = c), be(s, c);
3160
3113
  }, _o = 360, vo = 4, yo = 8, bo = (e) => {
3161
- let { leadingResponses: t, groups: n, streaming: r, hideActiveQuestionForms: a, expandedStickyMessageIds: o, onToggleStickyMessage: s, onReady: c } = e, { scrollRef: l } = at(), u = no(t, n), d = nr(u.map((e) => e.key)), f = l.current?.clientHeight || 1, p = Math.max(t.length + n.length - 1, 0), { virtualizer: m, virtualItems: h, totalSize: g, measurements: _ } = i({
3114
+ let { leadingResponses: t, groups: n, streaming: i, hideActiveQuestionForms: a, expandedStickyMessageIds: o, onToggleStickyMessage: s, onReady: c } = e, { scrollRef: l } = at(), u = no(t, n), d = nr(u.map((e) => e.key)), f = l.current?.clientHeight || 1, p = Math.max(t.length + n.length - 1, 0), { virtualizer: m, virtualItems: h, totalSize: g, measurements: _ } = r({
3162
3115
  count: u.length,
3163
3116
  getScrollElement: () => l.current,
3164
3117
  estimateSize: (e) => _o + (io(u, e) ? yo : 0),
@@ -3227,7 +3180,7 @@ var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3227
3180
  style: { top: e.start },
3228
3181
  children: /* @__PURE__ */ J(eo, {
3229
3182
  message: t.message,
3230
- streaming: r && t.isActiveTurn && t.showAssistantActions,
3183
+ streaming: i && t.isActiveTurn && t.showAssistantActions,
3231
3184
  hideQuestionForms: !t.isActiveTurn || a,
3232
3185
  animate: d.has(t.key),
3233
3186
  showAssistantActions: t.showAssistantActions
@@ -3267,32 +3220,24 @@ var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3267
3220
  u
3268
3221
  ]);
3269
3222
  let L = (e) => {
3270
- if (!f) {
3271
- e !== n && k(null), r?.(e);
3272
- return;
3273
- }
3274
- h((t) => ({
3223
+ f ? h((t) => ({
3275
3224
  ...t,
3276
3225
  [f.id]: {
3277
3226
  text: e,
3278
3227
  state: Tt(e)
3279
3228
  }
3280
- }));
3229
+ })) : (e !== n && k(null), r?.(e));
3281
3230
  }, ee = (e, t) => {
3282
- if (!f) {
3283
- _({
3284
- text: e,
3285
- state: t
3286
- });
3287
- return;
3288
- }
3289
- h((n) => ({
3231
+ f ? h((n) => ({
3290
3232
  ...n,
3291
3233
  [f.id]: {
3292
3234
  text: e,
3293
3235
  state: t
3294
3236
  }
3295
- }));
3237
+ })) : _({
3238
+ text: e,
3239
+ state: t
3240
+ });
3296
3241
  }, R = () => {
3297
3242
  f && (d?.(f.id), h((e) => {
3298
3243
  let t = { ...e };
@@ -3602,28 +3547,28 @@ var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3602
3547
  ]
3603
3548
  });
3604
3549
  }, Oo = (e) => JSON.stringify([e.model, Object.entries(e.params ?? {}).sort(([e], [t]) => e.localeCompare(t))]), ko = (e) => {
3605
- let t = q(87), { items: r, editingItemId: i, editor: a, retainedEditor: o, retainedEditorPosition: s, dirtyItemIds: c, steeringUnavailableReason: l, onEdit: u, onRemove: d, onMove: f, onSteer: m, onCombine: h } = e, g;
3606
- t[0] === c ? g = t[1] : (g = c === void 0 ? [] : c, t[0] = c, t[1] = g);
3550
+ let n = q(87), { items: r, editingItemId: i, editor: a, retainedEditor: o, retainedEditorPosition: s, dirtyItemIds: c, steeringUnavailableReason: l, onEdit: u, onRemove: d, onMove: f, onSteer: m, onCombine: h } = e, g;
3551
+ n[0] === c ? g = n[1] : (g = c === void 0 ? [] : c, n[0] = c, n[1] = g);
3607
3552
  let _ = g, v;
3608
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (v = { recipe: p }, t[2] = v) : v = t[2];
3553
+ n[2] === Symbol.for("react.memo_cache_sentinel") ? (v = { recipe: p }, n[2] = v) : v = n[2];
3609
3554
  let y = pe(v), b;
3610
- t[3] === y ? b = t[4] : (b = y(), t[3] = y, t[4] = b);
3555
+ n[3] === y ? b = n[4] : (b = y(), n[3] = y, n[4] = b);
3611
3556
  let x = b, [S, C] = Q(null), w;
3612
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (w = { activationConstraint: { distance: 4 } }, t[5] = w) : w = t[5];
3557
+ n[5] === Symbol.for("react.memo_cache_sentinel") ? (w = { activationConstraint: { distance: 4 } }, n[5] = w) : w = n[5];
3613
3558
  let T;
3614
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (T = { coordinateGetter: (e, t) => wo(e, t, C) }, t[6] = T) : T = t[6];
3559
+ n[6] === Symbol.for("react.memo_cache_sentinel") ? (T = { coordinateGetter: (e, t) => wo(e, t, C) }, n[6] = T) : T = n[6];
3615
3560
  let E = rt(nt(Ze, w), nt(Xe, T)), [D, O] = Q(null), k;
3616
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (k = [], t[7] = k) : k = t[7];
3561
+ n[7] === Symbol.for("react.memo_cache_sentinel") ? (k = [], n[7] = k) : k = n[7];
3617
3562
  let [A, M] = Q(k), [N, P] = Q(null), [F, I] = Q(null), [L, ee] = Q(!1);
3618
3563
  if (!r.length && !o) return null;
3619
3564
  let R;
3620
- t[8] !== r || t[9] !== s ? (R = Ao(r, s), t[8] = r, t[9] = s, t[10] = R) : R = t[10];
3565
+ n[8] !== r || n[9] !== s ? (R = Ao(r, s), n[8] = r, n[9] = s, n[10] = R) : R = n[10];
3621
3566
  let z = R, te;
3622
- t[11] !== _ || t[12] !== m || t[13] !== D || t[14] !== l ? (te = D?.steeringUnavailableReason ?? l ?? (D && _.includes(D.id) ? "Update or Cancel this edit before sending." : null) ?? (m ? null : "This conversation cannot accept live input."), t[11] = _, t[12] = m, t[13] = D, t[14] = l, t[15] = te) : te = t[15];
3567
+ n[11] !== _ || n[12] !== m || n[13] !== D || n[14] !== l ? (te = D?.steeringUnavailableReason ?? l ?? (D && _.includes(D.id) ? "Update or Cancel this edit before sending." : null) ?? (m ? null : "This conversation cannot accept live input."), n[11] = _, n[12] = m, n[13] = D, n[14] = l, n[15] = te) : te = n[15];
3623
3568
  let B = te, ne = !!(D && m && !l), re;
3624
- t[16] !== _ || t[17] !== D ? (re = (e) => !D || D.id === e.id ? "Choose another request." : _.includes(D.id) || _.includes(e.id) ? "Update or Cancel the edits first." : Oo(D) === Oo(e) ? e.steeringDelivery ? "Delivery is still being confirmed." : null : "Model and thinking settings must match.", t[16] = _, t[17] = D, t[18] = re) : re = t[18];
3569
+ n[16] !== _ || n[17] !== D ? (re = (e) => !D || D.id === e.id ? "Choose another request." : _.includes(D.id) || _.includes(e.id) ? "Update or Cancel the edits first." : Oo(D) === Oo(e) ? e.steeringDelivery ? "Delivery is still being confirmed." : null : "Model and thinking settings must match.", n[16] = _, n[17] = D, n[18] = re) : re = n[18];
3625
3570
  let V = re, ie;
3626
- t[19] !== A || t[20] !== f ? (ie = (e, t, n) => {
3571
+ n[19] !== A || n[20] !== f ? (ie = (e, t, n) => {
3627
3572
  let r = A.filter(Mo), i = r.findIndex((t) => t.id === e.id), a = r.findIndex((e) => e.id === t.id);
3628
3573
  if (i < 0 || a < 0 || i === a) return;
3629
3574
  let o = a + +(n === "after"), s = o - +(i < o);
@@ -3631,47 +3576,45 @@ var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3631
3576
  source: e,
3632
3577
  items: A
3633
3578
  });
3634
- }, t[19] = A, t[20] = f, t[21] = ie) : ie = t[21];
3579
+ }, n[19] = A, n[20] = f, n[21] = ie) : ie = n[21];
3635
3580
  let H = ie, U;
3636
- t[22] !== V || t[23] !== h || t[24] !== m || t[25] !== H || t[26] !== B ? (U = (e, t) => {
3581
+ n[22] !== V || n[23] !== h || n[24] !== m || n[25] !== H || n[26] !== B ? (U = (e, t) => {
3637
3582
  if (t.kind === "steer") {
3638
3583
  if (!B) return m?.(e);
3639
3584
  I(B);
3640
- return;
3641
- }
3642
- if (t.item) return t.kind === "combine" ? V(t.item) ? void 0 : h?.(e, t.item) : H(e, t.item, t.kind);
3643
- }, t[22] = V, t[23] = h, t[24] = m, t[25] = H, t[26] = B, t[27] = U) : U = t[27];
3585
+ } else if (t.item) return t.kind === "combine" ? V(t.item) ? void 0 : h?.(e, t.item) : H(e, t.item, t.kind);
3586
+ }, n[22] = V, n[23] = h, n[24] = m, n[25] = H, n[26] = B, n[27] = U) : U = n[27];
3644
3587
  let ae = U, W;
3645
- t[28] === S ? W = t[29] : (W = (e) => {
3588
+ n[28] === S ? W = n[29] : (W = (e) => {
3646
3589
  if (!e.pointerCoordinates && S !== null) return [{ id: S }];
3647
3590
  let t = Qe(e);
3648
3591
  return t.length ? t : $e(e);
3649
- }, t[28] = S, t[29] = W);
3592
+ }, n[28] = S, n[29] = W);
3650
3593
  let oe;
3651
- t[30] === r ? oe = t[31] : (oe = (e) => {
3594
+ n[30] === r ? oe = n[31] : (oe = (e) => {
3652
3595
  C(null), O(e.active.data.current?.item ?? null), M(r), I(null);
3653
- }, t[30] = r, t[31] = oe);
3596
+ }, n[30] = r, n[31] = oe);
3654
3597
  let se, ce;
3655
- t[32] === Symbol.for("react.memo_cache_sentinel") ? (se = (e) => P(e.over?.data.current ?? null), ce = () => {
3598
+ n[32] === Symbol.for("react.memo_cache_sentinel") ? (se = (e) => P(e.over?.data.current ?? null), ce = () => {
3656
3599
  C(null), O(null), P(null);
3657
- }, t[32] = se, t[33] = ce) : (se = t[32], ce = t[33]);
3600
+ }, n[32] = se, n[33] = ce) : (se = n[32], ce = n[33]);
3658
3601
  let le;
3659
- t[34] !== L || t[35] !== ae || t[36] !== D ? (le = (e) => {
3602
+ n[34] !== L || n[35] !== ae || n[36] !== D ? (le = (e) => {
3660
3603
  let t = D, n = e.over?.data.current;
3661
3604
  O(null), P(null), t && n && !L && (ee(!0), Promise.resolve().then(() => ae(t, n)).catch((e) => I(e instanceof Error ? e.message : "Could not change the queue. Saved input is kept.")).finally(() => ee(!1)));
3662
- }, t[34] = L, t[35] = ae, t[36] = D, t[37] = le) : le = t[37];
3605
+ }, n[34] = L, n[35] = ae, n[36] = D, n[37] = le) : le = n[37];
3663
3606
  let K = x.root, ue = N?.kind === "steer", de;
3664
- t[38] !== ne || t[39] !== B || t[40] !== ue ? (de = /* @__PURE__ */ J(Eo, {
3607
+ n[38] !== ne || n[39] !== B || n[40] !== ue ? (de = /* @__PURE__ */ J(Eo, {
3665
3608
  visible: ne,
3666
3609
  targeted: ue,
3667
3610
  reason: B
3668
- }), t[38] = ne, t[39] = B, t[40] = ue, t[41] = de) : de = t[41];
3611
+ }), n[38] = ne, n[39] = B, n[40] = ue, n[41] = de) : de = n[41];
3669
3612
  let fe;
3670
- t[42] === Symbol.for("react.memo_cache_sentinel") ? (fe = { maxH: "queue-viewport" }, t[42] = fe) : fe = t[42];
3613
+ n[42] === Symbol.for("react.memo_cache_sentinel") ? (fe = { maxH: "queue-viewport" }, n[42] = fe) : fe = n[42];
3671
3614
  let me;
3672
- if (t[43] !== V || t[44] !== N || t[45] !== i || t[46] !== a || t[47] !== r || t[48] !== u || t[49] !== d || t[50] !== o || t[51] !== z || t[52] !== D?.id) {
3615
+ if (n[43] !== V || n[44] !== N || n[45] !== i || n[46] !== a || n[47] !== r || n[48] !== u || n[49] !== d || n[50] !== o || n[51] !== z || n[52] !== D?.id) {
3673
3616
  let e;
3674
- t[54] !== V || t[55] !== N || t[56] !== i || t[57] !== a || t[58] !== u || t[59] !== d || t[60] !== o || t[61] !== z || t[62] !== D?.id ? (e = (e, t) => /* @__PURE__ */ Y(he, { children: [o && t === z ? /* @__PURE__ */ J(jo, { children: o }) : null, /* @__PURE__ */ J(Do, {
3617
+ n[54] !== V || n[55] !== N || n[56] !== i || n[57] !== a || n[58] !== u || n[59] !== d || n[60] !== o || n[61] !== z || n[62] !== D?.id ? (e = (e, t) => /* @__PURE__ */ Y(he, { children: [o && t === z ? /* @__PURE__ */ J(jo, { children: o }) : null, /* @__PURE__ */ J(Do, {
3675
3618
  item: e,
3676
3619
  index: t,
3677
3620
  source: D?.id === e.id,
@@ -3681,25 +3624,25 @@ var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3681
3624
  editor: i === e.id ? a : void 0,
3682
3625
  onEdit: u,
3683
3626
  onRemove: d
3684
- })] }, e.id), t[54] = V, t[55] = N, t[56] = i, t[57] = a, t[58] = u, t[59] = d, t[60] = o, t[61] = z, t[62] = D?.id, t[63] = e) : e = t[63], me = r.map(e), t[43] = V, t[44] = N, t[45] = i, t[46] = a, t[47] = r, t[48] = u, t[49] = d, t[50] = o, t[51] = z, t[52] = D?.id, t[53] = me;
3685
- } else me = t[53];
3627
+ })] }, e.id), n[54] = V, n[55] = N, n[56] = i, n[57] = a, n[58] = u, n[59] = d, n[60] = o, n[61] = z, n[62] = D?.id, n[63] = e) : e = n[63], me = r.map(e), n[43] = V, n[44] = N, n[45] = i, n[46] = a, n[47] = r, n[48] = u, n[49] = d, n[50] = o, n[51] = z, n[52] = D?.id, n[53] = me;
3628
+ } else me = n[53];
3686
3629
  let ge;
3687
- t[64] !== r.length || t[65] !== o || t[66] !== z ? (ge = o && z === r.length ? /* @__PURE__ */ J(jo, { children: o }) : null, t[64] = r.length, t[65] = o, t[66] = z, t[67] = ge) : ge = t[67];
3630
+ n[64] !== r.length || n[65] !== o || n[66] !== z ? (ge = o && z === r.length ? /* @__PURE__ */ J(jo, { children: o }) : null, n[64] = r.length, n[65] = o, n[66] = z, n[67] = ge) : ge = n[67];
3688
3631
  let _e;
3689
- t[68] !== me || t[69] !== ge ? (_e = /* @__PURE__ */ Y(n, {
3632
+ n[68] !== me || n[69] !== ge ? (_e = /* @__PURE__ */ Y(t, {
3690
3633
  maxH: "queue-viewport",
3691
3634
  minH: "0",
3692
3635
  viewportProps: fe,
3693
3636
  children: [me, ge]
3694
- }), t[68] = me, t[69] = ge, t[70] = _e) : _e = t[70];
3637
+ }), n[68] = me, n[69] = ge, n[70] = _e) : _e = n[70];
3695
3638
  let ve;
3696
- t[71] !== F || t[72] !== x.notice ? (ve = F ? /* @__PURE__ */ J(G, {
3639
+ n[71] !== F || n[72] !== x.notice ? (ve = F ? /* @__PURE__ */ J(G, {
3697
3640
  css: x.notice,
3698
3641
  role: "alert",
3699
3642
  children: F
3700
- }) : null, t[71] = F, t[72] = x.notice, t[73] = ve) : ve = t[73];
3643
+ }) : null, n[71] = F, n[72] = x.notice, n[73] = ve) : ve = n[73];
3701
3644
  let ye;
3702
- t[74] !== L || t[75] !== ne || t[76] !== x.root || t[77] !== de || t[78] !== _e || t[79] !== ve ? (ye = /* @__PURE__ */ Y(j, {
3645
+ n[74] !== L || n[75] !== ne || n[76] !== x.root || n[77] !== de || n[78] !== _e || n[79] !== ve ? (ye = /* @__PURE__ */ Y(j, {
3703
3646
  css: K,
3704
3647
  "data-send-now-visible": ne,
3705
3648
  "aria-busy": L,
@@ -3708,9 +3651,9 @@ var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3708
3651
  _e,
3709
3652
  ve
3710
3653
  ]
3711
- }), t[74] = L, t[75] = ne, t[76] = x.root, t[77] = de, t[78] = _e, t[79] = ve, t[80] = ye) : ye = t[80];
3654
+ }), n[74] = L, n[75] = ne, n[76] = x.root, n[77] = de, n[78] = _e, n[79] = ve, n[80] = ye) : ye = n[80];
3712
3655
  let X;
3713
- return t[81] !== E || t[82] !== W || t[83] !== oe || t[84] !== le || t[85] !== ye ? (X = /* @__PURE__ */ J(Ye, {
3656
+ return n[81] !== E || n[82] !== W || n[83] !== oe || n[84] !== le || n[85] !== ye ? (X = /* @__PURE__ */ J(Ye, {
3714
3657
  sensors: E,
3715
3658
  collisionDetection: W,
3716
3659
  autoScroll: !0,
@@ -3719,7 +3662,7 @@ var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3719
3662
  onDragCancel: ce,
3720
3663
  onDragEnd: le,
3721
3664
  children: ye
3722
- }), t[81] = E, t[82] = W, t[83] = oe, t[84] = le, t[85] = ye, t[86] = X) : X = t[86], X;
3665
+ }), n[81] = E, n[82] = W, n[83] = oe, n[84] = le, n[85] = ye, n[86] = X) : X = n[86], X;
3723
3666
  }, Ao = (e, t = Infinity) => {
3724
3667
  let n = e.findIndex((e) => (e.position ?? Infinity) > t);
3725
3668
  return n < 0 ? e.length : n;
@@ -3743,8 +3686,7 @@ var lo = 3, uo = 20, fo = 1, po = (e, t) => Math.abs(e.scrollTop - t.scrollTop)
3743
3686
  function Mo(e) {
3744
3687
  return !e.sending && !e.steeringDelivery;
3745
3688
  }
3746
- //#endregion
3747
- //#region src/components/chat-ui/components/chat-panel-composer.tsx
3689
+ // src/components/chat-ui/components/chat-panel-composer.tsx
3748
3690
  var No = (e) => {
3749
3691
  let t = q(40), { composerHeader: n, composerFallback: r, chatInputQuestionPrompt: i, composerDecision: a, hasWorkspaceHub: o, onQueuedFollowUpMove: s, onQueuedFollowUpRemove: c, onQueuedFollowUpUpdate: l, onQueuedFollowUpSteer: u, onQueuedFollowUpCombine: d, queueSteeringUnavailableReason: f, unsavedQueueItemIds: m, queuedComposer: h, queuedFollowUps: g, workspaceHub: _ } = e, v;
3750
3692
  t[0] === m ? v = t[1] : (v = m === void 0 ? [] : m, t[0] = m, t[1] = v);
@@ -3992,8 +3934,7 @@ function Lo(e, t) {
3992
3934
  function Ro() {
3993
3935
  return /* @__PURE__ */ new Set();
3994
3936
  }
3995
- //#endregion
3996
- //#region src/components/chat-ui/components/chat-skeleton.tsx
3937
+ // src/components/chat-ui/components/chat-skeleton.tsx
3997
3938
  var zo = (e) => {
3998
3939
  let t = q(4), { widths: n } = e, r;
3999
3940
  t[0] === n ? r = t[1] : (r = n.map(Vo), t[0] = n, t[1] = r);
@@ -4037,8 +3978,7 @@ function Vo(e, t) {
4037
3978
  borderRadius: "xs"
4038
3979
  }, `${e}-${t}`);
4039
3980
  }
4040
- //#endregion
4041
- //#region src/components/chat-ui/components/conversation-browse.tsx
3981
+ // src/components/chat-ui/components/conversation-browse.tsx
4042
3982
  var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4043
3983
  if (t === null) return 0;
4044
3984
  let n = Math.abs(e - t);
@@ -4145,8 +4085,8 @@ var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4145
4085
  flexShrink: 0,
4146
4086
  children: [_, v]
4147
4087
  }), t[19] = _, t[20] = v, t[21] = y) : y = t[21], y;
4148
- }, Yo = (e) => {
4149
- let n = q(17), { tag: r } = e, i;
4088
+ }, Yo = (t) => {
4089
+ let n = q(17), { tag: r } = t, i;
4150
4090
  n[0] !== r.description || n[1] !== r.label ? (i = /* @__PURE__ */ J(re.Trigger, {
4151
4091
  asChild: !0,
4152
4092
  children: /* @__PURE__ */ J(oe.Label, {
@@ -4170,7 +4110,7 @@ var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4170
4110
  children: [i, o]
4171
4111
  }), n[6] = i, n[7] = o, n[8] = s) : s = n[8];
4172
4112
  let c;
4173
- n[9] !== s || n[10] !== r.description ? (c = /* @__PURE__ */ J(t, {
4113
+ n[9] !== s || n[10] !== r.description ? (c = /* @__PURE__ */ J(e, {
4174
4114
  content: r.description,
4175
4115
  openDelay: 300,
4176
4116
  closeDelay: 150,
@@ -4185,40 +4125,40 @@ var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4185
4125
  }) }) }) }), n[12] = r.description, n[13] = l);
4186
4126
  let u;
4187
4127
  return n[14] !== c || n[15] !== l ? (u = /* @__PURE__ */ Y(re.Root, { children: [c, l] }), n[14] = c, n[15] = l, n[16] = u) : u = n[16], u;
4188
- }, Xo = (e) => {
4189
- let n = q(64), { mode: i, pending: a, unavailable: o, onRequestConfirmation: s, onAction: c } = e, u;
4190
- n[0] === Symbol.for("react.memo_cache_sentinel") ? (u = { key: "menu" }, n[0] = u) : u = n[0];
4128
+ }, Xo = (t) => {
4129
+ let r = q(64), { mode: i, pending: a, unavailable: o, onRequestConfirmation: s, onAction: c } = t, u;
4130
+ r[0] === Symbol.for("react.memo_cache_sentinel") ? (u = { key: "menu" }, r[0] = u) : u = r[0];
4191
4131
  let d = pe(u), f;
4192
- n[1] === d ? f = n[2] : (f = d(), n[1] = d, n[2] = f);
4132
+ r[1] === d ? f = r[2] : (f = d(), r[1] = d, r[2] = f);
4193
4133
  let p = f, [m, h] = Q(null), [g, _] = Q(""), [v, y] = Q(!1), b;
4194
- if (n[3] !== i.actions || n[4] !== i.closeActionId) {
4134
+ if (r[3] !== i.actions || r[4] !== i.closeActionId) {
4195
4135
  let e;
4196
- n[6] === i.closeActionId ? e = n[7] : (e = (e) => e.id === i.closeActionId && !e.argument, n[6] = i.closeActionId, n[7] = e), b = i.actions.find(e), n[3] = i.actions, n[4] = i.closeActionId, n[5] = b;
4197
- } else b = n[5];
4136
+ r[6] === i.closeActionId ? e = r[7] : (e = (e) => e.id === i.closeActionId && !e.argument, r[6] = i.closeActionId, r[7] = e), b = i.actions.find(e), r[3] = i.actions, r[4] = i.closeActionId, r[5] = b;
4137
+ } else b = r[5];
4198
4138
  let x = b, S;
4199
- n[8] !== i || n[9] !== c ? (S = async (e, t, n) => {
4139
+ r[8] !== i || r[9] !== c ? (S = async (e, t, n) => {
4200
4140
  let r = n === void 0 ? i : n;
4201
4141
  try {
4202
4142
  return await c(i.id, e.id, t, r), h(null), y(!1), !0;
4203
4143
  } catch {
4204
4144
  return !1;
4205
4145
  }
4206
- }, n[8] = i, n[9] = c, n[10] = S) : S = n[10];
4146
+ }, r[8] = i, r[9] = c, r[10] = S) : S = r[10];
4207
4147
  let C = S, w = i.state;
4208
4148
  a && (w = `Checking · Last confirmed: ${i.state}`), o && (w = `Status unavailable · Last confirmed: ${i.state}`);
4209
4149
  let T, E;
4210
- n[11] === Symbol.for("react.memo_cache_sentinel") ? (T = { placement: "top-start" }, E = (e) => {
4150
+ r[11] === Symbol.for("react.memo_cache_sentinel") ? (T = { placement: "top-start" }, E = (e) => {
4211
4151
  y(e.open), e.open || h(null);
4212
- }, n[11] = T, n[12] = E) : (T = n[11], E = n[12]);
4152
+ }, r[11] = T, r[12] = E) : (T = r[11], E = r[12]);
4213
4153
  let D = `${i.label}: ${i.description} · ${w}`, O;
4214
- n[13] !== i.indicator || n[14] !== o ? (O = i.indicator ? /* @__PURE__ */ J(oe.StartElement, { children: /* @__PURE__ */ J(K.span, {
4154
+ r[13] !== i.indicator || r[14] !== o ? (O = i.indicator ? /* @__PURE__ */ J(oe.StartElement, { children: /* @__PURE__ */ J(K.span, {
4215
4155
  role: "img",
4216
4156
  "aria-label": o ? "Status unavailable" : i.indicator.label,
4217
4157
  "data-status-dot": "",
4218
4158
  "data-tone": o ? "neutral" : i.indicator.tone
4219
- }) }) : null, n[13] = i.indicator, n[14] = o, n[15] = O) : O = n[15];
4159
+ }) }) : null, r[13] = i.indicator, r[14] = o, r[15] = O) : O = r[15];
4220
4160
  let k = `${i.label} details`, A;
4221
- n[16] !== i.label || n[17] !== k ? (A = /* @__PURE__ */ J(V.Trigger, {
4161
+ r[16] !== i.label || r[17] !== k ? (A = /* @__PURE__ */ J(V.Trigger, {
4222
4162
  asChild: !0,
4223
4163
  children: /* @__PURE__ */ J(oe.Label, {
4224
4164
  asChild: !0,
@@ -4228,15 +4168,15 @@ var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4228
4168
  children: i.label
4229
4169
  })
4230
4170
  })
4231
- }), n[16] = i.label, n[17] = k, n[18] = A) : A = n[18];
4171
+ }), r[16] = i.label, r[17] = k, r[18] = A) : A = r[18];
4232
4172
  let j;
4233
- n[19] !== x || n[20] !== C || n[21] !== a || n[22] !== o ? (j = x ? /* @__PURE__ */ J(oe.CloseTrigger, {
4173
+ r[19] !== x || r[20] !== C || r[21] !== a || r[22] !== o ? (j = x ? /* @__PURE__ */ J(oe.CloseTrigger, {
4234
4174
  "aria-label": x.label,
4235
4175
  disabled: a || o,
4236
4176
  onClick: () => void C(x)
4237
- }) : null, n[19] = x, n[20] = C, n[21] = a, n[22] = o, n[23] = j) : j = n[23];
4177
+ }) : null, r[19] = x, r[20] = C, r[21] = a, r[22] = o, r[23] = j) : j = r[23];
4238
4178
  let N;
4239
- n[24] !== A || n[25] !== j || n[26] !== O ? (N = /* @__PURE__ */ Y(oe.Root, {
4179
+ r[24] !== A || r[25] !== j || r[26] !== O ? (N = /* @__PURE__ */ Y(oe.Root, {
4240
4180
  variant: "ticket",
4241
4181
  size: "composer",
4242
4182
  children: [
@@ -4244,33 +4184,33 @@ var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4244
4184
  A,
4245
4185
  j
4246
4186
  ]
4247
- }), n[24] = A, n[25] = j, n[26] = O, n[27] = N) : N = n[27];
4187
+ }), r[24] = A, r[25] = j, r[26] = O, r[27] = N) : N = r[27];
4248
4188
  let P;
4249
- n[28] !== N || n[29] !== D ? (P = /* @__PURE__ */ J(t, {
4189
+ r[28] !== N || r[29] !== D ? (P = /* @__PURE__ */ J(e, {
4250
4190
  content: D,
4251
4191
  openDelay: 300,
4252
4192
  closeDelay: 150,
4253
4193
  children: N
4254
- }), n[28] = N, n[29] = D, n[30] = P) : P = n[30];
4194
+ }), r[28] = N, r[29] = D, r[30] = P) : P = r[30];
4255
4195
  let I = `${i.label} details`, R;
4256
- n[31] === i.label ? R = n[32] : (R = /* @__PURE__ */ J(G, {
4196
+ r[31] === i.label ? R = r[32] : (R = /* @__PURE__ */ J(G, {
4257
4197
  textStyle: "label/S/medium",
4258
4198
  children: i.label
4259
- }), n[31] = i.label, n[32] = R);
4199
+ }), r[31] = i.label, r[32] = R);
4260
4200
  let z;
4261
- n[33] === i.description ? z = n[34] : (z = /* @__PURE__ */ J(G, {
4201
+ r[33] === i.description ? z = r[34] : (z = /* @__PURE__ */ J(G, {
4262
4202
  textStyle: "label/S/regular",
4263
4203
  overflowWrap: "anywhere",
4264
4204
  children: i.description
4265
- }), n[33] = i.description, n[34] = z);
4205
+ }), r[33] = i.description, r[34] = z);
4266
4206
  let B;
4267
- n[35] === w ? B = n[36] : (B = /* @__PURE__ */ J(G, {
4207
+ r[35] === w ? B = r[36] : (B = /* @__PURE__ */ J(G, {
4268
4208
  textStyle: "label/XS/regular",
4269
4209
  color: "fg.muted",
4270
4210
  children: w
4271
- }), n[35] = w, n[36] = B);
4211
+ }), r[35] = w, r[36] = B);
4272
4212
  let ne;
4273
- n[37] !== g || n[38] !== m || n[39] !== C || n[40] !== a || n[41] !== o ? (ne = m?.action.argument ? /* @__PURE__ */ Y(F.Root, { children: [
4213
+ r[37] !== g || r[38] !== m || r[39] !== C || r[40] !== a || r[41] !== o ? (ne = m?.action.argument ? /* @__PURE__ */ Y(F.Root, { children: [
4274
4214
  /* @__PURE__ */ J(F.Label, { children: m.action.argument.label }),
4275
4215
  /* @__PURE__ */ J(te, {
4276
4216
  autoFocus: !0,
@@ -4290,9 +4230,9 @@ var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4290
4230
  onClick: () => void C(m.action, g, m.mode),
4291
4231
  children: "Apply"
4292
4232
  })] })
4293
- ] }) : null, n[37] = g, n[38] = m, n[39] = C, n[40] = a, n[41] = o, n[42] = ne) : ne = n[42];
4233
+ ] }) : null, r[37] = g, r[38] = m, r[39] = C, r[40] = a, r[41] = o, r[42] = ne) : ne = r[42];
4294
4234
  let re;
4295
- n[43] !== R || n[44] !== z || n[45] !== B || n[46] !== ne ? (re = /* @__PURE__ */ Y(W, {
4235
+ r[43] !== R || r[44] !== z || r[45] !== B || r[46] !== ne ? (re = /* @__PURE__ */ Y(W, {
4296
4236
  p: "sm",
4297
4237
  gap: "xs",
4298
4238
  children: [
@@ -4301,9 +4241,9 @@ var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4301
4241
  B,
4302
4242
  ne
4303
4243
  ]
4304
- }), n[43] = R, n[44] = z, n[45] = B, n[46] = ne, n[47] = re) : re = n[47];
4244
+ }), r[43] = R, r[44] = z, r[45] = B, r[46] = ne, r[47] = re) : re = r[47];
4305
4245
  let H;
4306
- n[48] !== m || n[49] !== C || n[50] !== i || n[51] !== s || n[52] !== a || n[53] !== o ? (H = m ? null : i.actions.map((e) => /* @__PURE__ */ J(r, {
4246
+ r[48] !== m || r[49] !== C || r[50] !== i || r[51] !== s || r[52] !== a || r[53] !== o ? (H = m ? null : i.actions.map((e) => /* @__PURE__ */ J(n, {
4307
4247
  role: "button",
4308
4248
  variant: "full-width",
4309
4249
  label: e.label,
@@ -4318,20 +4258,20 @@ var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4318
4258
  mode: i
4319
4259
  })) : C(e);
4320
4260
  }
4321
- }, e.id)), n[48] = m, n[49] = C, n[50] = i, n[51] = s, n[52] = a, n[53] = o, n[54] = H) : H = n[54];
4261
+ }, e.id)), r[48] = m, r[49] = C, r[50] = i, r[51] = s, r[52] = a, r[53] = o, r[54] = H) : H = r[54];
4322
4262
  let U;
4323
- n[55] !== p.content || n[56] !== I || n[57] !== re || n[58] !== H ? (U = /* @__PURE__ */ J(ie, { children: /* @__PURE__ */ J(V.Positioner, { children: /* @__PURE__ */ Y(V.Content, {
4263
+ r[55] !== p.content || r[56] !== I || r[57] !== re || r[58] !== H ? (U = /* @__PURE__ */ J(ie, { children: /* @__PURE__ */ J(V.Positioner, { children: /* @__PURE__ */ Y(V.Content, {
4324
4264
  css: p.content,
4325
4265
  "aria-label": I,
4326
4266
  children: [re, H]
4327
- }) }) }), n[55] = p.content, n[56] = I, n[57] = re, n[58] = H, n[59] = U) : U = n[59];
4267
+ }) }) }), r[55] = p.content, r[56] = I, r[57] = re, r[58] = H, r[59] = U) : U = r[59];
4328
4268
  let ae;
4329
- return n[60] !== v || n[61] !== P || n[62] !== U ? (ae = /* @__PURE__ */ Y(V.Root, {
4269
+ return r[60] !== v || r[61] !== P || r[62] !== U ? (ae = /* @__PURE__ */ Y(V.Root, {
4330
4270
  open: v,
4331
4271
  positioning: T,
4332
4272
  onOpenChange: E,
4333
4273
  children: [P, U]
4334
- }), n[60] = v, n[61] = P, n[62] = U, n[63] = ae) : ae = n[63], ae;
4274
+ }), r[60] = v, r[61] = P, r[62] = U, r[63] = ae) : ae = r[63], ae;
4335
4275
  }, Zo = (e) => {
4336
4276
  let t = q(19), { modes: n, draftTag: r, sentTag: i, pending: a, unavailable: o, onRequestConfirmation: s, onAction: c } = e, l;
4337
4277
  if (t[0] !== n || t[1] !== c || t[2] !== s || t[3] !== a || t[4] !== o) {
@@ -4446,7 +4386,6 @@ var Ho = 3, Uo = 10, Wo = 4, Go = (e, t) => {
4446
4386
  children: [u, d]
4447
4387
  }), t[10] = u, t[11] = d, t[12] = f) : f = t[12], f;
4448
4388
  };
4449
- //#endregion
4450
4389
  export { gt as ApprovalPrompt, yt as AttachmentList, Ct as AutoScroll, Qn as ChatInput, mt as ChatMessage, Io as ChatPanel, ut as ChatPrimitives, Bo as ChatSkeleton, $o as ChatWorkspaceHub, Jo as ConversationBrowse, Zo as HarnessControls, Ln as QuestionPromptControls, jt as SendButton, Tt as createSerializedPromptState, C as isGuessedChatLink, m as parseChatLink, zn as useQuestionPromptState };
4451
4390
 
4452
4391
  //# sourceMappingURL=chat-ui.js.map