@hanzo/dev 4.1.0 → 4.2.1

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 (122) hide show
  1. package/dist/{BinaryViewer-CmFUK4zZ.js → BinaryViewer-BCDMNW2g.js} +19 -19
  2. package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-BUidXqSs.js} +2460 -2460
  3. package/dist/{DevicePanel-v5e3sEIf.js → DevicePanel-D-pksK3r.js} +532 -532
  4. package/dist/{DeviceStreamView-CCIfmbxH.js → DeviceStreamView-DsCoOzDV.js} +377 -377
  5. package/dist/{DiffCommentAnnotation-BPTN_2a6.js → DiffCommentAnnotation-2HD5qiyt.js} +227 -227
  6. package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-CuWvI5hS.js} +13 -13
  7. package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-Z2QVmBzu.js} +328 -328
  8. package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-CEfiCIGR.js} +3 -3
  9. package/dist/{DocumentPages-VSn83vty.js → DocumentPages-glImt2JO.js} +3 -3
  10. package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-iqO3LiIj.js} +404 -404
  11. package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-GwnRmXEh.js} +4 -4
  12. package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-CXWpTlfI.js} +1089 -1089
  13. package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-CDydHOXg.js} +2 -2
  14. package/dist/{FontViewer-CLDdwhSr.js → FontViewer-DDt9C5Cb.js} +5 -5
  15. package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-_sfrtw9j.js} +357 -357
  16. package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-coFQvyRw.js} +3 -3
  17. package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
  18. package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-D3RklYQB.js} +8 -8
  19. package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
  20. package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BmPdNxW5.js} +2 -2
  21. package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-BlKTevTF.js} +3 -3
  22. package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-C0gSEyeO.js} +10 -10
  23. package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-Ago_DWEt.js} +2 -2
  24. package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-DBRqtLet.js} +10 -10
  25. package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-DD_h7VLv.js} +287 -287
  26. package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-B4dxjpba.js} +4 -4
  27. package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
  28. package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-BwYKB-3e.js} +892 -892
  29. package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-6UU-M6_B.js} +3 -3
  30. package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-D-00K-A9.js} +3 -3
  31. package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-CiuHdDv8.js} +489 -489
  32. package/dist/{PreviewPanelShell-DhXLeN5j.js → PreviewPanelShell-Dezxjg0T.js} +71 -71
  33. package/dist/{ProjectIconPickerDialog-D0kFzt8f.js → ProjectIconPickerDialog-LomrzROv.js} +29 -29
  34. package/dist/{ProjectMonogram-D35xrrXQ.js → ProjectMonogram-D21--FQY.js} +1 -1
  35. package/dist/{ProviderAuthTerminal-DfsXnu7A.js → ProviderAuthTerminal-pQXIfodT.js} +3 -3
  36. package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Cqfh5eN2.js} +476 -476
  37. package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-B4Lp8Ktf.js} +334 -334
  38. package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-7xXUUySV.js} +5 -5
  39. package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-B_yprjav.js} +2 -2
  40. package/dist/{RightPanelResizeHandle-BLbSz-gk.js → RightPanelResizeHandle-PumvYb9P.js} +2 -2
  41. package/dist/{ThemeEditorPanel-CUDdsRsE.js → ThemeEditorPanel-BmXXpaCI.js} +196 -196
  42. package/dist/{ThreadTerminalDrawer-BF3Ix0q_.js → ThreadTerminalDrawer-DCgE3ojz.js} +461 -461
  43. package/dist/{VirtualTablePreview-dajviAfu.js → VirtualTablePreview-mA6DOFwb.js} +1 -1
  44. package/dist/{anchoredCopyToast-DnUtg1n_.js → anchoredCopyToast-BVa_dlBU.js} +2 -2
  45. package/dist/{assetUrls-DkY7vXfM.js → assetUrls-D8lRk7Xd.js} +45 -45
  46. package/dist/{browserLinkTarget-CA46wnQC.js → browserLinkTarget-BbVlDQYx.js} +18 -18
  47. package/dist/builder/api/git.d.ts +32 -4
  48. package/dist/builder/api/git.js +74 -4
  49. package/dist/builder/api/github.d.ts +54 -0
  50. package/dist/builder/api/github.js +103 -1
  51. package/dist/builder/api/models.d.ts +2 -0
  52. package/dist/builder/api/models.js +6 -1
  53. package/dist/builder/api/sandbox.d.ts +2 -0
  54. package/dist/builder/api/sandbox.js +3 -1
  55. package/dist/builder/desk.d.ts +6 -0
  56. package/dist/builder/desk.js +79 -14
  57. package/dist/builder/forge.js +79 -10
  58. package/dist/builder/github-sync.d.ts +70 -0
  59. package/dist/builder/github-sync.js +435 -0
  60. package/dist/builder/mind.d.ts +5 -5
  61. package/dist/builder/mind.js +35 -14
  62. package/dist/builder/pane.d.ts +1 -1
  63. package/dist/builder/pane.js +1 -1
  64. package/dist/builder/panel.js +5 -5
  65. package/dist/builder/preview-fallback.d.ts +47 -0
  66. package/dist/builder/preview-fallback.js +341 -0
  67. package/dist/builder/project.js +17 -4
  68. package/dist/builder/sync.js +27 -4
  69. package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-DrjqPCpz.js} +5 -5
  70. package/dist/{collapsible-DFT41MdC.js → collapsible-CDT6JKbk.js} +1 -1
  71. package/dist/{color-picker-CshqBbpY.js → color-picker-kSVcH92L.js} +16 -16
  72. package/dist/core.js +1 -1
  73. package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-ZtWU3urU.js} +2 -2
  74. package/dist/{delimitedPreview-BiEpdYOj.js → delimitedPreview-DbbXcqOT.js} +1 -1
  75. package/dist/{dialog-DhQtWGRa.js → dialog-EmpqFZiK.js} +40 -40
  76. package/dist/{embed-c030vUqM.js → embed-CPWZKyIW.js} +36098 -35677
  77. package/dist/{empty-Bm5EzcG8.js → empty-ChM6gdzn.js} +1 -1
  78. package/dist/{errors-DrFQSJW3.js → errors-D8_Zn8KN.js} +2 -2
  79. package/dist/{fileContextMenu-BBo91omq.js → fileContextMenu-DW94DZj4.js} +54 -54
  80. package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-Cfz-3q1U.js} +507 -507
  81. package/dist/{fileSurfaceChrome-Cqkvn8RQ.js → fileSurfaceChrome-BDyKklTq.js} +26 -26
  82. package/dist/{hanzoWebAnalytics-CCxpTzcI.js → hanzoWebAnalytics-B1eETW-7.js} +1 -1
  83. package/dist/index.css +1 -1
  84. package/dist/{input-group-DEJEuwc9.js → input-group-BZ_QN-y7.js} +1 -1
  85. package/dist/{keybindings-C5tK_GAk.js → keybindings-D0pBlT1k.js} +7812 -7806
  86. package/dist/keymap.js +1 -1
  87. package/dist/{lucideIconByName-DUaXKH0V.js → lucideIconByName-CXY44V8P.js} +6835 -6848
  88. package/dist/{mediaReference-Bt_mh-ag.js → mediaReference-3wc4ZfY8.js} +95 -95
  89. package/dist/mediaSource-jW5c7b4r.js +70 -0
  90. package/dist/{modelPickerVisibility-Jue3CLfc.js → modelPickerVisibility-DBTc5r1G.js} +1 -1
  91. package/dist/{network-BbwqRm8c.js → network-wuXD7-is.js} +1 -1
  92. package/dist/{popover-anNQdce7.js → popover-BAyP2Tdr.js} +1 -1
  93. package/dist/{presentation-D9mVPBHm.js → presentation-68y8EAuH.js} +299 -299
  94. package/dist/{previewFailureMessages-BKpsSGX5.js → previewFailureMessages-CFguipaK.js} +3 -3
  95. package/dist/query-BPk2W3QN.js +63 -0
  96. package/dist/{readBinaryPreview-BAQ4fFjm.js → readBinaryPreview-CjZdBNVR.js} +2 -2
  97. package/dist/{refresh-icon-BYx64to1.js → refresh-icon-Vo5ImiQL.js} +1 -1
  98. package/dist/{scroll-area-ChvX8uOh.js → scroll-area-CEoyjC7h.js} +1 -1
  99. package/dist/{select-DumYjny_.js → select-DLFnkZsI.js} +2 -2
  100. package/dist/{session-_kmiSv2A.js → session-Decc4Fo5.js} +1063 -1063
  101. package/dist/{skeleton-CJqwfMSF.js → skeleton-BOKpAZv6.js} +1 -1
  102. package/dist/{switch-COwevwaq.js → switch-DjpPjtQN.js} +2 -2
  103. package/dist/{themePalette-Dl_7omVL.js → themePalette-C-GtwwqV.js} +977 -977
  104. package/dist/{threadSearch-BHyWwcV3.js → threadSearch-CrtCof6n.js} +162 -162
  105. package/dist/{toggle-CEO6qTxB.js → toggle-B4F0EEtI.js} +1 -1
  106. package/dist/{toggle-group-BHovdMDl.js → toggle-group-l8hRPswr.js} +2 -2
  107. package/dist/{use-atom-command-ByoYq_K6.js → use-atom-command-XemtT1Gv.js} +1 -1
  108. package/dist/{useAriaLabelledBy-DPSISlnL.js → useAriaLabelledBy-CibvSz-b.js} +1 -1
  109. package/dist/{useFileMetadata-e7zsixVX.js → useFileMetadata-PesehDX0.js} +33 -33
  110. package/dist/{useFloatingRootContext-CJ9stHca.js → useFloatingRootContext-ppoGvqar.js} +1 -1
  111. package/dist/{useLiveRefresh-BkKJKXhH.js → useLiveRefresh-aHkPuz6N.js} +172 -172
  112. package/dist/{useNextRenderData-CyUmSAgz.js → useNextRenderData-CNhjWfP0.js} +1 -1
  113. package/dist/{useSettings-DYG9Dmro.js → useSettings-B_MtcTyD.js} +139 -139
  114. package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-B1wCgLPO.js} +1404 -1404
  115. package/dist/{useTheme-D2ZM1gvV.js → useTheme-WlXpQRKG.js} +4 -4
  116. package/dist/{utils-515nQ17G.js → utils-DtKQl-D3.js} +6184 -6172
  117. package/dist/{wizard-i86ViMRc.js → wizard-DjD4UNew.js} +3 -3
  118. package/dist/{workspaceFocus-BV1_9KiH.js → workspaceFocus-MR1plm6A.js} +144 -144
  119. package/dist/{zap-e0OsRjBR.js → zap-iwsUKtvA.js} +30 -17
  120. package/package.json +1 -1
  121. package/dist/mediaSource-zI7JWid4.js +0 -70
  122. package/dist/query-BxrrBAp6.js +0 -63
@@ -1,7 +1,7 @@
1
- import { j as e } from "./session-_kmiSv2A.js";
1
+ import { j as e } from "./session-Decc4Fo5.js";
2
2
  import { c as t, n } from "./messages-yqmY7G5x.js";
3
- import { Br as r, Fc as i, Fr as a, G as o, Gh as s, Gr as c, H as l, Hh as u, Ir as d, J as f, Jh as p, Kh as m, Lr as h, Mr as g, Or as ee, S_ as _, Zh as v, b_ as te, bf as ne, ci as y, gg as re, gr as b, hf as x, hr as S, kr as ie, nc as C, q as ae, qt as oe, sg as w, t as se, uc as ce, vd as le, x_ as ue, y_ as T, yr as E, z as de } from "./utils-515nQ17G.js";
4
- import { ad as fe, ct as pe } from "./keybindings-C5tK_GAk.js";
3
+ import { Br as r, C_ as i, Fc as a, Fr as o, G as s, Gr as c, H as l, Ir as u, J as d, Kh as f, Lr as p, Mr as m, Or as h, Qh as g, S_ as ee, Uh as te, Yh as _, _g as ne, b_ as v, cg as y, ci as b, gf as x, gr as S, hr as C, kr as re, nc as w, q as ie, qh as ae, qt as oe, t as se, uc as ce, x_ as le, xf as T, yd as ue, yr as E, z as de } from "./utils-DtKQl-D3.js";
4
+ import { ad as fe, ct as pe } from "./keybindings-D0pBlT1k.js";
5
5
  import { i as me } from "./search-3oqTSaO6.js";
6
6
  import { t as he } from "./external-link-BJbZG79p.js";
7
7
  import { n as ge } from "./chevron-up-B5PN0DAN.js";
@@ -11,40 +11,40 @@ import { i as Se } from "./user-round-DXjpOTSK.js";
11
11
  import { n as Ce } from "./smile-plus-DQGGycyd.js";
12
12
  import { i as we, n as Te, r as Ee, t as De } from "./rows-3-htYGoJUI.js";
13
13
  import { t as Oe } from "./message-square-off-DzWBGuDr.js";
14
- import { Jt as ke, o as Ae } from "./ChatMarkdown-nvEI7iCv.js";
15
- import { M as je, S as Me, a as Ne, c as Pe, i as Fe, n as Ie, r as Le, t as Re, w as ze } from "./PullRequestReviewAnnotation-LeuwO-iH.js";
16
- import { f as Be, p as Ve } from "./useSettings-DYG9Dmro.js";
17
- import { s as He } from "./presentation-D9mVPBHm.js";
18
- import { t as Ue } from "./use-atom-command-ByoYq_K6.js";
19
- import { f as We } from "./useTheme-D2ZM1gvV.js";
20
- import { n as Ge } from "./query-BxrrBAp6.js";
14
+ import { Jt as ke, o as Ae } from "./ChatMarkdown-BUidXqSs.js";
15
+ import { M as je, S as Me, a as Ne, c as Pe, i as Fe, n as Ie, r as Le, t as Re, w as ze } from "./PullRequestReviewAnnotation-B4Lp8Ktf.js";
16
+ import { f as Be, p as Ve } from "./useSettings-B_MtcTyD.js";
17
+ import { s as He } from "./presentation-68y8EAuH.js";
18
+ import { t as Ue } from "./use-atom-command-XemtT1Gv.js";
19
+ import { f as We } from "./useTheme-WlXpQRKG.js";
20
+ import { n as Ge } from "./query-BPk2W3QN.js";
21
21
  import { t as Ke } from "./observeIntersection-C0N8P8-O.js";
22
- import { $n as qe, B as D, W as Je, Zn as Ye, at as Xe, er as Ze, ft as Qe, hn as $e, it as et, nt as tt, rt as nt, tr as rt, ut as it } from "./useTextFieldSpeech-COa9XcRx.js";
23
- import { n as at, t as ot } from "./toggle-group-BHovdMDl.js";
24
- import { i as st, t as ct } from "./DiffCommentAnnotation-BPTN_2a6.js";
25
- import { t as lt } from "./refresh-icon-BYx64to1.js";
26
- import { n as ut, r as dt, t as ft } from "./collapsible-DFT41MdC.js";
27
- import { t as pt } from "./FileExplorerPane-CeHulcPz.js";
28
- import { n as mt } from "./DiffWorkerPoolProvider-BwFR-Fc9.js";
22
+ import { $n as qe, B as D, W as Je, Zn as Ye, at as Xe, er as Ze, ft as Qe, hn as $e, it as et, nt as tt, rt as nt, tr as rt, ut as it } from "./useTextFieldSpeech-B1wCgLPO.js";
23
+ import { n as at, t as ot } from "./toggle-group-l8hRPswr.js";
24
+ import { i as st, t as ct } from "./DiffCommentAnnotation-2HD5qiyt.js";
25
+ import { t as lt } from "./refresh-icon-Vo5ImiQL.js";
26
+ import { n as ut, r as dt, t as ft } from "./collapsible-CDT6JKbk.js";
27
+ import { t as pt } from "./FileExplorerPane-GwnRmXEh.js";
28
+ import { n as mt } from "./DiffWorkerPoolProvider-CEfiCIGR.js";
29
29
  import { a as ht, c as gt, i as _t, l as O, o as vt, s as yt, u as bt } from "./diffRendering-tvIuzFsP.js";
30
30
  import { t as xt } from "./syntaxHighlighting-CqVs1cUM.js";
31
- import { c as St, i as Ct, o as wt, t as Tt } from "./changedFileKind-D6QYvIez.js";
32
- import { i as Et, o as Dt, r as Ot, t as kt } from "./empty-Bm5EzcG8.js";
33
- import { i as At, n as jt, o as Mt, r as k, s as Nt, t as Pt } from "./DiffFileTree-B_br90vY.js";
34
- import { createContext as Ft, use as It, useContext as Lt, useEffect as Rt, useEffectEvent as zt, useRef as Bt, useState as A, useSyncExternalStore as j } from "react";
35
- import { c as Vt } from "react/compiler-runtime";
36
- import { Fragment as Ht, jsx as M, jsxs as N } from "react/jsx-runtime";
31
+ import { c as St, i as Ct, o as wt, t as Tt } from "./changedFileKind-DrjqPCpz.js";
32
+ import { i as Et, o as Dt, r as Ot, t as kt } from "./empty-ChM6gdzn.js";
33
+ import { i as At, n as jt, o as Mt, r as k, s as Nt, t as Pt } from "./DiffFileTree-CuWvI5hS.js";
34
+ import { createContext as Ft, use as It, useContext as Lt, useEffect as Rt, useEffectEvent as zt, useRef as Bt, useState as A, useSyncExternalStore as Vt } from "react";
35
+ import { c as Ht } from "react/compiler-runtime";
36
+ import { Fragment as Ut, jsx as j, jsxs as M } from "react/jsx-runtime";
37
37
  // ../../packages/client-runtime/src/pullRequestDiffFold.ts
38
- function Ut(e, t, n, r = !1) {
38
+ function Wt(e, t, n, r = !1) {
39
39
  return n.get(e) ?? (t === null ? r : t === "folded");
40
40
  }
41
- function Wt(e, t, n) {
41
+ function Gt(e, t, n) {
42
42
  if (e.get(t) === n) return e;
43
43
  let r = new Map(e);
44
44
  return n === void 0 ? r.delete(t) : r.set(t, n), r;
45
45
  }
46
46
  // src/components/pullRequest/pullRequestFileOrder.logic.ts
47
- var P = /* @__PURE__ */ new Set([
47
+ var N = /* @__PURE__ */ new Set([
48
48
  "pnpm-lock.yaml",
49
49
  "yarn.lock",
50
50
  "package-lock.json",
@@ -53,17 +53,17 @@ var P = /* @__PURE__ */ new Set([
53
53
  "go.sum",
54
54
  "composer.lock",
55
55
  "Gemfile.lock"
56
- ]), F = /* @__PURE__ */ new Set([
56
+ ]), P = /* @__PURE__ */ new Set([
57
57
  "__snapshots__",
58
58
  "__generated__",
59
59
  "dist",
60
60
  "build",
61
61
  "vendor"
62
- ]), Gt = /* @__PURE__ */ new Set([
62
+ ]), Kt = /* @__PURE__ */ new Set([
63
63
  "__tests__",
64
64
  "tests",
65
65
  "test"
66
- ]), Kt = [
66
+ ]), qt = [
67
67
  ".mts",
68
68
  ".cts",
69
69
  ".mjs",
@@ -73,23 +73,23 @@ var P = /* @__PURE__ */ new Set([
73
73
  ".ts",
74
74
  ".js"
75
75
  ];
76
- function qt(e) {
76
+ function Jt(e) {
77
77
  let t = e.split("/"), n = t.at(-1) ?? "";
78
- return P.has(n) || n.endsWith(".snap") || n.endsWith(".min.js") || n.endsWith(".min.css") || /\.generated\./.test(n) || t.slice(0, -1).some((e) => F.has(e)) ? "generated" : /\.(?:test|spec)\./.test(n) || t.slice(0, -1).some((e) => Gt.has(e)) ? "test" : "source";
78
+ return N.has(n) || n.endsWith(".snap") || n.endsWith(".min.js") || n.endsWith(".min.css") || /\.generated\./.test(n) || t.slice(0, -1).some((e) => P.has(e)) ? "generated" : /\.(?:test|spec)\./.test(n) || t.slice(0, -1).some((e) => Kt.has(e)) ? "test" : "source";
79
79
  }
80
- function Jt(e) {
80
+ function Yt(e) {
81
81
  let t = e.lastIndexOf(".");
82
82
  return t > e.lastIndexOf("/") ? e.slice(0, t) : e;
83
83
  }
84
- function Yt(e) {
85
- return Jt(e.split("/").at(-1) ?? "");
86
- }
87
84
  function Xt(e) {
88
- let t = Kt.find((t) => e.endsWith(t));
89
- return t === void 0 ? e : e.slice(0, -t.length);
85
+ return Yt(e.split("/").at(-1) ?? "");
90
86
  }
91
87
  function Zt(e) {
92
- return Xt(e.split("/").at(-1) ?? "");
88
+ let t = qt.find((t) => e.endsWith(t));
89
+ return t === void 0 ? e : e.slice(0, -t.length);
90
+ }
91
+ function F(e) {
92
+ return Zt(e.split("/").at(-1) ?? "");
93
93
  }
94
94
  function Qt(e, t) {
95
95
  let n = e.split("/").slice(0, -1);
@@ -103,7 +103,7 @@ function en(e, t, n, r) {
103
103
  $t.lastIndex = 0;
104
104
  let t = $t.exec(a);
105
105
  for (; t !== null;) {
106
- let o = (t[1] ?? "").replace(/\?.*$/, ""), s = Xt(o.startsWith(".") ? Qt(e, o) : o), c = n.get(s) ?? n.get(`${s}/index`) ?? r.get(Zt(s));
106
+ let o = (t[1] ?? "").replace(/\?.*$/, ""), s = Zt(o.startsWith(".") ? Qt(e, o) : o), c = n.get(s) ?? n.get(`${s}/index`) ?? r.get(F(s));
107
107
  c !== void 0 && c !== e && i.add(c), t = $t.exec(a);
108
108
  }
109
109
  }
@@ -131,11 +131,11 @@ function rn(e) {
131
131
  let t = /* @__PURE__ */ new Map();
132
132
  for (let n of e) t.set(O(n), n);
133
133
  let n = /* @__PURE__ */ new Map();
134
- for (let e of t.keys()) n.set(e, qt(e));
134
+ for (let e of t.keys()) n.set(e, Jt(e));
135
135
  let r = [...t.keys()].filter((e) => n.get(e) === "source"), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
136
136
  for (let e of r) {
137
- i.set(Xt(e), e);
138
- let t = Zt(e);
137
+ i.set(Zt(e), e);
138
+ let t = F(e);
139
139
  o.has(t) && a.add(t), o.set(t, e);
140
140
  }
141
141
  for (let e of a) o.delete(e);
@@ -146,7 +146,7 @@ function rn(e) {
146
146
  }
147
147
  let c = tn(r, s), l = /* @__PURE__ */ new Map();
148
148
  c.forEach((e, t) => {
149
- let n = Yt(e);
149
+ let n = Xt(e);
150
150
  l.has(n) || l.set(n, t);
151
151
  });
152
152
  let u = [...t.keys()].filter((e) => n.get(e) === "test").sort((e, t) => nn(e, l) - nn(t, l) || e.localeCompare(t)), d = [...t.keys()].filter((e) => n.get(e) === "generated").sort((e, t) => e.localeCompare(t));
@@ -171,81 +171,81 @@ function an(e, r, i, a = n) {
171
171
  }
172
172
  // src/components/pullRequest/PullRequestDiffUnavailableState.tsx
173
173
  function on(e) {
174
- let t = Vt(35), { error: n, provider: r, url: i, onRetry: a } = e, o = ue(), s, c;
174
+ let t = Ht(35), { error: n, provider: r, url: i, onRetry: a } = e, o = ee(), s, c;
175
175
  if (t[0] !== n || t[1] !== o || t[2] !== r) {
176
176
  let { providerName: e, terminology: i } = ke(r);
177
177
  s = e, c = an(n, s, oe(i), o), t[0] = n, t[1] = o, t[2] = r, t[3] = s, t[4] = c;
178
178
  } else s = t[3], c = t[4];
179
179
  let { title: l, description: u } = c, d;
180
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ M("div", {
180
+ t[5] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ j("div", {
181
181
  className: "flex size-11 items-center justify-center rounded-full bg-warning-surface text-warning",
182
- children: /* @__PURE__ */ M(xe, {
182
+ children: /* @__PURE__ */ j(xe, {
183
183
  "aria-hidden": !0,
184
184
  className: "size-5"
185
185
  })
186
186
  }), t[5] = d) : d = t[5];
187
187
  let f;
188
- t[6] === l ? f = t[7] : (f = /* @__PURE__ */ M(Dt, { children: l }), t[6] = l, t[7] = f);
188
+ t[6] === l ? f = t[7] : (f = /* @__PURE__ */ j(Dt, { children: l }), t[6] = l, t[7] = f);
189
189
  let p;
190
- t[8] === u ? p = t[9] : (p = /* @__PURE__ */ M(Ot, { children: u }), t[8] = u, t[9] = p);
190
+ t[8] === u ? p = t[9] : (p = /* @__PURE__ */ j(Ot, { children: u }), t[8] = u, t[9] = p);
191
191
  let m;
192
- t[10] !== f || t[11] !== p ? (m = /* @__PURE__ */ N(Et, { children: [f, p] }), t[10] = f, t[11] = p, t[12] = m) : m = t[12];
192
+ t[10] !== f || t[11] !== p ? (m = /* @__PURE__ */ M(Et, { children: [f, p] }), t[10] = f, t[11] = p, t[12] = m) : m = t[12];
193
193
  let h, g;
194
- t[13] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ M(lt, {}), g = /* @__PURE__ */ M(T, { children: "Try again" }), t[13] = h, t[14] = g) : (h = t[13], g = t[14]);
195
- let ee;
196
- t[15] === a ? ee = t[16] : (ee = /* @__PURE__ */ N(y, {
194
+ t[13] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ j(lt, {}), g = /* @__PURE__ */ j(v, { children: "Try again" }), t[13] = h, t[14] = g) : (h = t[13], g = t[14]);
195
+ let te;
196
+ t[15] === a ? te = t[16] : (te = /* @__PURE__ */ M(b, {
197
197
  size: "sm",
198
198
  variant: "default",
199
199
  onClick: a,
200
200
  children: [h, g]
201
- }), t[15] = a, t[16] = ee);
201
+ }), t[15] = a, t[16] = te);
202
202
  let _;
203
- t[17] === i ? _ = t[18] : (_ = /* @__PURE__ */ M("a", {
203
+ t[17] === i ? _ = t[18] : (_ = /* @__PURE__ */ j("a", {
204
204
  href: i,
205
205
  target: "_blank",
206
206
  rel: "noopener noreferrer"
207
207
  }), t[17] = i, t[18] = _);
208
- let v;
209
- t[19] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ M(he, { "aria-hidden": !0 }), t[19] = v) : v = t[19];
210
208
  let ne;
211
- t[20] === s ? ne = t[21] : (ne = /* @__PURE__ */ N(T, { children: ["Open on ", /* @__PURE__ */ M(te, { children: s })] }), t[20] = s, t[21] = ne);
212
- let re;
213
- t[22] !== ne || t[23] !== _ ? (re = /* @__PURE__ */ N(y, {
209
+ t[19] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ j(he, { "aria-hidden": !0 }), t[19] = ne) : ne = t[19];
210
+ let y;
211
+ t[20] === s ? y = t[21] : (y = /* @__PURE__ */ M(v, { children: ["Open on ", /* @__PURE__ */ j(le, { children: s })] }), t[20] = s, t[21] = y);
212
+ let x;
213
+ t[22] !== y || t[23] !== _ ? (x = /* @__PURE__ */ M(b, {
214
214
  size: "sm",
215
215
  variant: "outline",
216
216
  render: _,
217
- children: [v, ne]
218
- }), t[22] = ne, t[23] = _, t[24] = re) : re = t[24];
219
- let b;
220
- t[25] !== re || t[26] !== ee ? (b = /* @__PURE__ */ N("div", {
217
+ children: [ne, y]
218
+ }), t[22] = y, t[23] = _, t[24] = x) : x = t[24];
219
+ let S;
220
+ t[25] !== x || t[26] !== te ? (S = /* @__PURE__ */ M("div", {
221
221
  className: "flex flex-wrap justify-center gap-2",
222
- children: [ee, re]
223
- }), t[25] = re, t[26] = ee, t[27] = b) : b = t[27];
224
- let x;
225
- t[28] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ M("summary", {
222
+ children: [te, x]
223
+ }), t[25] = x, t[26] = te, t[27] = S) : S = t[27];
224
+ let C;
225
+ t[28] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ j("summary", {
226
226
  className: "mx-auto w-fit cursor-pointer rounded-sm -outline-offset-2 hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",
227
- children: /* @__PURE__ */ M(T, { children: "Technical details" })
228
- }), t[28] = x) : x = t[28];
229
- let S;
230
- t[29] === n ? S = t[30] : (S = /* @__PURE__ */ N("details", {
227
+ children: /* @__PURE__ */ j(v, { children: "Technical details" })
228
+ }), t[28] = C) : C = t[28];
229
+ let re;
230
+ t[29] === n ? re = t[30] : (re = /* @__PURE__ */ M("details", {
231
231
  className: "w-full max-w-lg text-xs text-muted-foreground",
232
- children: [x, /* @__PURE__ */ M("pre", {
232
+ children: [C, /* @__PURE__ */ j("pre", {
233
233
  className: "scrollbar-gutter-both mt-3 max-h-40 overflow-auto whitespace-pre-wrap break-words rounded-lg border border-border bg-muted/40 p-3 text-left font-mono text-xs",
234
234
  children: n
235
235
  })]
236
- }), t[29] = n, t[30] = S);
237
- let ie;
238
- return t[31] !== b || t[32] !== S || t[33] !== m ? (ie = /* @__PURE__ */ N(kt, {
236
+ }), t[29] = n, t[30] = re);
237
+ let w;
238
+ return t[31] !== S || t[32] !== re || t[33] !== m ? (w = /* @__PURE__ */ M(kt, {
239
239
  size: "compact",
240
240
  className: "min-h-full",
241
241
  role: "status",
242
242
  children: [
243
243
  d,
244
244
  m,
245
- b,
246
- S
245
+ S,
246
+ re
247
247
  ]
248
- }), t[31] = b, t[32] = S, t[33] = m, t[34] = ie) : ie = t[34], ie;
248
+ }), t[31] = S, t[32] = re, t[33] = m, t[34] = w) : w = t[34], w;
249
249
  }
250
250
  // src/components/pullRequest/pullRequestFilesViewed.logic.ts
251
251
  function I(e) {
@@ -377,14 +377,14 @@ var mn = ({ environmentId: e, reference: t }) => D.filesViewed({
377
377
  environmentId: e,
378
378
  input: t
379
379
  }, n),
380
- send: ({ environmentId: e, reference: t }, n) => ne(C, D.setFilesViewed, {
380
+ send: ({ environmentId: e, reference: t }, n) => T(w, D.setFilesViewed, {
381
381
  environmentId: e,
382
382
  input: {
383
383
  ...t,
384
384
  files: n
385
385
  }
386
386
  }, { reportFailure: !1 }),
387
- refresh: (e) => C.refresh(mn(e)),
387
+ refresh: (e) => w.refresh(mn(e)),
388
388
  reportFailure: () => He.add({
389
389
  type: "error",
390
390
  title: n(t("Could not update viewed files"))
@@ -400,19 +400,19 @@ var gn = /* @__PURE__ */ new Map(), _n = {
400
400
  setViewed: () => {}
401
401
  };
402
402
  function vn(e) {
403
- let t = Vt(22), { environmentId: n, reference: r, enabled: i } = e, a;
403
+ let t = Ht(22), { environmentId: n, reference: r, enabled: i } = e, a;
404
404
  t[0] !== i || t[1] !== n || t[2] !== r ? (a = i ? D.filesViewed({
405
405
  environmentId: n,
406
406
  input: r
407
407
  }) : null, t[0] = i, t[1] = n, t[2] = r, t[3] = a) : a = t[3];
408
- let o = Ge(a, ue()), s;
408
+ let o = Ge(a, ee()), s;
409
409
  t[4] === o.data ? s = t[5] : (s = I(o.data), t[4] = o.data, t[5] = s);
410
410
  let c = s, l;
411
411
  t[6] !== i || t[7] !== n || t[8] !== r ? (l = i ? z({
412
412
  environmentId: n,
413
413
  reference: r
414
414
  }) : _n, t[6] = i, t[7] = n, t[8] = r, t[9] = l) : l = t[9];
415
- let u = l, d = j(u.subscribe, u.getSnapshot), f, p;
415
+ let u = l, d = Vt(u.subscribe, u.getSnapshot), f, p;
416
416
  t[10] !== d || t[11] !== c ? (f = (e) => L(e, c, d), p = (e) => !d.has(e) && cn(c?.get(e)), t[10] = d, t[11] = c, t[12] = f, t[13] = p) : (f = t[12], p = t[13]);
417
417
  let m = o.data?.truncated === !0, h;
418
418
  return t[14] !== i || t[15] !== o.error || t[16] !== o.refresh || t[17] !== u.setViewed || t[18] !== f || t[19] !== p || t[20] !== m ? (h = {
@@ -460,15 +460,15 @@ function wn(e) {
460
460
  }
461
461
  }
462
462
  // src/components/pullRequest/PullRequestCodeTab.tsx
463
- var Tn = p((e) => {
463
+ var Tn = _((e) => {
464
464
  let { environmentId: t, input: n, paths: r } = JSON.parse(e);
465
- return v((e) => r.map((r) => e(D.diff({
465
+ return g((e) => r.map((r) => e(D.diff({
466
466
  environmentId: t,
467
467
  input: {
468
468
  ...n,
469
469
  path: r
470
470
  }
471
- })))).pipe(w(`pull-request-withheld-file-diffs:${e}`));
471
+ })))).pipe(y(`pull-request-withheld-file-diffs:${e}`));
472
472
  }), En = [], Dn = 10, On = "hanzodev.pullRequestFileTreeOpen", kn = "\n[data-diffs-header] [data-additions-count],\n[data-diffs-header] [data-deletions-count] {\n display: none !important;\n}", An = [], jn = /* @__PURE__ */ new WeakMap(), Mn = ((e) => e);
473
473
  function Nn(e, t, n) {
474
474
  let r = jn.get(e.source);
@@ -510,51 +510,51 @@ function In(e) {
510
510
  }
511
511
  var Ln = Ft(null);
512
512
  function Rn(e) {
513
- let t = Vt(24), { fileKey: n, path: r, stat: i } = e, a = _(), o = It(Ln);
514
- if (o === null || !o.enabled) return i;
515
- let s;
516
- t[0] !== r || t[1] !== o ? (s = o.isViewed(r), t[0] = r, t[1] = o, t[2] = s) : s = t[2];
517
- let c = s, l;
518
- t[3] !== r || t[4] !== o ? (l = o.isStale(r), t[3] = r, t[4] = o, t[5] = l) : l = t[5];
519
- let u = l, d;
520
- t[6] !== a || t[7] !== u ? (d = u ? a("Changed", { $context: "file changed since viewed" }) : a("Viewed", { $context: "file marked as viewed" }), t[6] = a, t[7] = u, t[8] = d) : d = t[8];
521
- let f;
522
- t[9] !== n || t[10] !== o ? (f = (e, t) => o.setFileViewed(n, e === !0, "shiftKey" in t.event && t.event.shiftKey === !0), t[9] = n, t[10] = o, t[11] = f) : f = t[11];
513
+ let t = Ht(24), { fileKey: n, path: r, stat: a } = e, o = i(), s = It(Ln);
514
+ if (s === null || !s.enabled) return a;
515
+ let c;
516
+ t[0] !== r || t[1] !== s ? (c = s.isViewed(r), t[0] = r, t[1] = s, t[2] = c) : c = t[2];
517
+ let l = c, u;
518
+ t[3] !== r || t[4] !== s ? (u = s.isStale(r), t[3] = r, t[4] = s, t[5] = u) : u = t[5];
519
+ let d = u, f;
520
+ t[6] !== o || t[7] !== d ? (f = d ? o("Changed", { $context: "file changed since viewed" }) : o("Viewed", { $context: "file marked as viewed" }), t[6] = o, t[7] = d, t[8] = f) : f = t[8];
523
521
  let p;
524
- t[12] !== d || t[13] !== f || t[14] !== c ? (p = /* @__PURE__ */ M(je, {
525
- "aria-label": d,
526
- checked: c,
527
- onCheckedChange: f
528
- }), t[12] = d, t[13] = f, t[14] = c, t[15] = p) : p = t[15];
522
+ t[9] !== n || t[10] !== s ? (p = (e, t) => s.setFileViewed(n, e === !0, "shiftKey" in t.event && t.event.shiftKey === !0), t[9] = n, t[10] = s, t[11] = p) : p = t[11];
529
523
  let m;
530
- t[16] === u ? m = t[17] : (m = u ? /* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, {
531
- render: /* @__PURE__ */ M("span", { className: "text-warning-foreground" }),
532
- children: /* @__PURE__ */ M(T, {
524
+ t[12] !== f || t[13] !== p || t[14] !== l ? (m = /* @__PURE__ */ j(je, {
525
+ "aria-label": f,
526
+ checked: l,
527
+ onCheckedChange: p
528
+ }), t[12] = f, t[13] = p, t[14] = l, t[15] = m) : m = t[15];
529
+ let h;
530
+ t[16] === d ? h = t[17] : (h = d ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
531
+ render: /* @__PURE__ */ j("span", { className: "text-warning-foreground" }),
532
+ children: /* @__PURE__ */ j(v, {
533
533
  context: "file changed since viewed",
534
534
  children: "Changed"
535
535
  })
536
- }), /* @__PURE__ */ M(b, {
536
+ }), /* @__PURE__ */ j(S, {
537
537
  side: "bottom",
538
- children: /* @__PURE__ */ M(T, { children: "This file has been pushed to since you marked it viewed." })
539
- })] }) : /* @__PURE__ */ M("span", {
538
+ children: /* @__PURE__ */ j(v, { children: "This file has been pushed to since you marked it viewed." })
539
+ })] }) : /* @__PURE__ */ j("span", {
540
540
  className: "@max-xs:hidden",
541
- children: /* @__PURE__ */ M(T, {
541
+ children: /* @__PURE__ */ j(v, {
542
542
  context: "file marked as viewed",
543
543
  children: "Viewed"
544
544
  })
545
- }), t[16] = u, t[17] = m);
546
- let h;
547
- t[18] !== p || t[19] !== m ? (h = /* @__PURE__ */ N("label", {
545
+ }), t[16] = d, t[17] = h);
546
+ let g;
547
+ t[18] !== m || t[19] !== h ? (g = /* @__PURE__ */ M("label", {
548
548
  "data-viewed-toggle": "",
549
549
  className: "flex h-8 w-18 shrink-0 cursor-pointer select-none items-center gap-1.5 text-2xs text-muted-foreground",
550
550
  onClick: zn,
551
- children: [p, m]
552
- }), t[18] = p, t[19] = m, t[20] = h) : h = t[20];
553
- let g;
554
- return t[21] !== i || t[22] !== h ? (g = /* @__PURE__ */ N("span", {
551
+ children: [m, h]
552
+ }), t[18] = m, t[19] = h, t[20] = g) : g = t[20];
553
+ let ee;
554
+ return t[21] !== a || t[22] !== g ? (ee = /* @__PURE__ */ M("span", {
555
555
  className: "flex items-center gap-3",
556
- children: [i, h]
557
- }), t[21] = i, t[22] = h, t[23] = g) : g = t[23], g;
556
+ children: [a, g]
557
+ }), t[21] = a, t[22] = g, t[23] = ee) : ee = t[23], ee;
558
558
  }
559
559
  function zn(e) {
560
560
  return e.stopPropagation();
@@ -568,37 +568,37 @@ function Bn(e, t) {
568
568
  });
569
569
  });
570
570
  }
571
- function Vn(p) {
572
- let v = Vt(259), { scrollerRef: ne, environmentId: x, reference: C, detail: w, selectedCommitOid: he, onSelectedCommitChange: ke, pendingFinding: je, fixFindingLabel: Be, onFixFinding: Je, onAddToChat: lt, onAddToAgentSelection: yt, onRefresh: Et, refreshToken: Dt, backgroundRefreshToken: Ot, revealRequest: kt, revealUrl: k, onRevealSettled: Ft } = p, It = Dt === void 0 ? 0 : Dt, j = Ot === void 0 ? 0 : Ot, P = kt === void 0 ? null : kt, F = _(), Gt = ue(), Kt;
573
- v[0] !== F || v[1] !== Be ? (Kt = Be ?? F("Fix in a thread"), v[0] = F, v[1] = Be, v[2] = Kt) : Kt = v[2];
574
- let qt = Kt, Jt = We();
571
+ function Vn(g) {
572
+ let _ = Ht(259), { scrollerRef: y, environmentId: x, reference: w, detail: T, selectedCommitOid: he, onSelectedCommitChange: ke, pendingFinding: je, fixFindingLabel: Be, onFixFinding: Je, onAddToChat: lt, onAddToAgentSelection: yt, onRefresh: Et, refreshToken: Dt, backgroundRefreshToken: Ot, revealRequest: kt, revealUrl: k, onRevealSettled: Ft } = g, It = Dt === void 0 ? 0 : Dt, Vt = Ot === void 0 ? 0 : Ot, N = kt === void 0 ? null : kt, P = i(), Kt = ee(), qt;
573
+ _[0] !== P || _[1] !== Be ? (qt = Be ?? P("Fix in a thread"), _[0] = P, _[1] = Be, _[2] = qt) : qt = _[2];
574
+ let Jt = qt, Yt = We();
575
575
  mt();
576
- let Yt = Ve(pr), [Xt, Zt] = A(fr), [Qt, $t] = A(null), [en, tn] = A(Dn), [nn, rn] = A(null), an = nn ?? (Yt.diffFilesCollapsed ? "folded" : null), I = Yt.diffLayout, [sn, cn] = A(null), L = sn ?? Yt.wordWrap, [R, ln] = A(Yt.diffIgnoreWhitespace), [un, dn] = ce(On, !1, fe), [fn, pn] = Mt(), [mn, hn] = A(null), [z, gn] = A(null), [_n, yn] = A(!1), [bn, Sn] = A(!1), B;
577
- v[3] === Symbol.for("react.memo_cache_sentinel") ? (B = {
576
+ let Xt = Ve(pr), [Zt, F] = A(fr), [Qt, $t] = A(null), [en, tn] = A(Dn), [nn, rn] = A(null), an = nn ?? (Xt.diffFilesCollapsed ? "folded" : null), I = Xt.diffLayout, [sn, cn] = A(null), L = sn ?? Xt.wordWrap, [R, ln] = A(Xt.diffIgnoreWhitespace), [un, dn] = ce(On, !1, fe), [fn, pn] = Mt(), [mn, hn] = A(null), [z, gn] = A(null), [_n, yn] = A(!1), [bn, Sn] = A(!1), B;
577
+ _[3] === Symbol.for("react.memo_cache_sentinel") ? (B = {
578
578
  key: "",
579
579
  cursor: null,
580
580
  slices: An
581
- }, v[3] = B) : B = v[3];
582
- let [jn, Mn] = A(B), Pn = nt(C), V = he !== null && w.commits.some((e) => e.oid === he) ? he : null, H = JSON.stringify([
581
+ }, _[3] = B) : B = _[3];
582
+ let [jn, Mn] = A(B), Pn = nt(w), V = he !== null && T.commits.some((e) => e.oid === he) ? he : null, H = JSON.stringify([
583
583
  x,
584
584
  Pn,
585
585
  V
586
586
  ]), [zn, Vn] = A(H);
587
- zn !== H && (Vn(H), $t(null), gn(null), hn(null), Zt(/* @__PURE__ */ new Map()), rn(null), tn(Dn), Sn(!1), Mn({
587
+ zn !== H && (Vn(H), $t(null), gn(null), hn(null), F(/* @__PURE__ */ new Map()), rn(null), tn(Dn), Sn(!1), Mn({
588
588
  key: H,
589
589
  cursor: null,
590
590
  slices: An
591
591
  }));
592
592
  let U = jn.key === H ? jn.slices : An, W = jn.key === H ? jn.cursor : null, tr;
593
- v[4] !== V || v[5] !== W || v[6] !== x || v[7] !== C ? (tr = D.diff({
593
+ _[4] !== V || _[5] !== W || _[6] !== x || _[7] !== w ? (tr = D.diff({
594
594
  environmentId: x,
595
595
  input: {
596
- ...C,
596
+ ...w,
597
597
  ...W === null ? {} : { cursor: W },
598
598
  ...V === null ? {} : { commit: V }
599
599
  }
600
- }), v[4] = V, v[5] = W, v[6] = x, v[7] = C, v[8] = tr) : tr = v[8];
601
- let G = Ge(tr, Gt), [ir, hr] = A(null), gr = G.data;
600
+ }), _[4] = V, _[5] = W, _[6] = x, _[7] = w, _[8] = tr) : tr = _[8];
601
+ let G = Ge(tr, Kt), [ir, hr] = A(null), gr = G.data;
602
602
  gr !== null && (ir?.data !== gr || ir.cursor !== W || ir.scopeKey !== H) && (hr({
603
603
  data: gr,
604
604
  cursor: W,
@@ -628,99 +628,99 @@ function Vn(p) {
628
628
  };
629
629
  }));
630
630
  let _r;
631
- v[9] !== V || v[10] !== x || v[11] !== C ? (_r = D.diff({
631
+ _[9] !== V || _[10] !== x || _[11] !== w ? (_r = D.diff({
632
632
  environmentId: x,
633
633
  input: {
634
- ...C,
634
+ ...w,
635
635
  ...V === null ? {} : { commit: V }
636
636
  }
637
- }), v[9] = V, v[10] = x, v[11] = C, v[12] = _r) : _r = v[12];
638
- let K = u(_r), vr = Pn, yr = et(C), br = Xe(dr), xr = Xe(ur), Sr;
639
- v[13] === Symbol.for("react.memo_cache_sentinel") ? (Sr = { reportFailure: !1 }, v[13] = Sr) : Sr = v[13];
637
+ }), _[9] = V, _[10] = x, _[11] = w, _[12] = _r) : _r = _[12];
638
+ let K = te(_r), vr = Pn, yr = et(w), br = Xe(dr), xr = Xe(ur), Sr;
639
+ _[13] === Symbol.for("react.memo_cache_sentinel") ? (Sr = { reportFailure: !1 }, _[13] = Sr) : Sr = _[13];
640
640
  let Cr = Ue(D.replyToThread, Sr), wr;
641
- v[14] === Symbol.for("react.memo_cache_sentinel") ? (wr = { reportFailure: !1 }, v[14] = wr) : wr = v[14];
641
+ _[14] === Symbol.for("react.memo_cache_sentinel") ? (wr = { reportFailure: !1 }, _[14] = wr) : wr = _[14];
642
642
  let Tr = Ue(D.setThreadResolution, wr), Er;
643
- v[15] === Symbol.for("react.memo_cache_sentinel") ? (Er = { reportFailure: !1 }, v[15] = Er) : Er = v[15];
643
+ _[15] === Symbol.for("react.memo_cache_sentinel") ? (Er = { reportFailure: !1 }, _[15] = Er) : Er = _[15];
644
644
  let Dr = Ue(D.updateComment, Er), Or;
645
- v[16] === Symbol.for("react.memo_cache_sentinel") ? (Or = { reportFailure: !1 }, v[16] = Or) : Or = v[16];
646
- let kr = Ue(D.threadComments, Or), Ar = Ue(D.diffFileContents), jr = w.capabilities.viewedFiles, Mr = jr !== void 0, Nr;
647
- v[17] !== x || v[18] !== C || v[19] !== Mr ? (Nr = {
645
+ _[16] === Symbol.for("react.memo_cache_sentinel") ? (Or = { reportFailure: !1 }, _[16] = Or) : Or = _[16];
646
+ let kr = Ue(D.threadComments, Or), Ar = Ue(D.diffFileContents), jr = T.capabilities.viewedFiles, Mr = jr !== void 0, Nr;
647
+ _[17] !== x || _[18] !== w || _[19] !== Mr ? (Nr = {
648
648
  environmentId: x,
649
- reference: C,
649
+ reference: w,
650
650
  enabled: Mr
651
- }, v[17] = x, v[18] = C, v[19] = Mr, v[20] = Nr) : Nr = v[20];
651
+ }, _[17] = x, _[18] = w, _[19] = Mr, _[20] = Nr) : Nr = _[20];
652
652
  let Pr = vn(Nr), { setViewed: Fr, refresh: q, enabled: Ir, isViewed: Lr, isStale: Rr } = Pr, zr;
653
- v[21] === Symbol.for("react.memo_cache_sentinel") ? (zr = {
653
+ _[21] === Symbol.for("react.memo_cache_sentinel") ? (zr = {
654
654
  scope: "",
655
655
  paths: En,
656
656
  shownKeys: /* @__PURE__ */ new Map()
657
- }, v[21] = zr) : zr = v[21];
657
+ }, _[21] = zr) : zr = _[21];
658
658
  let [Br, Vr] = A(zr), Hr = Br.scope === H ? Br.paths : En, Ur;
659
- v[22] === V ? Ur = v[23] : (Ur = V === null ? {} : { commit: V }, v[22] = V, v[23] = Ur);
659
+ _[22] === V ? Ur = _[23] : (Ur = V === null ? {} : { commit: V }, _[22] = V, _[23] = Ur);
660
660
  let Wr;
661
- v[24] !== C || v[25] !== Ur ? (Wr = {
662
- ...C,
661
+ _[24] !== w || _[25] !== Ur ? (Wr = {
662
+ ...w,
663
663
  ...Ur
664
- }, v[24] = C, v[25] = Ur, v[26] = Wr) : Wr = v[26];
665
- let Gr = Wr, Kr = Lt(m), qr;
666
- v[27] !== x || v[28] !== Gr ? (qr = (e) => D.diff({
664
+ }, _[24] = w, _[25] = Ur, _[26] = Wr) : Wr = _[26];
665
+ let Gr = Wr, Kr = Lt(ae), qr;
666
+ _[27] !== x || _[28] !== Gr ? (qr = (e) => D.diff({
667
667
  environmentId: x,
668
668
  input: {
669
669
  ...Gr,
670
670
  path: e
671
671
  }
672
- }), v[27] = x, v[28] = Gr, v[29] = qr) : qr = v[29];
672
+ }), _[27] = x, _[28] = Gr, _[29] = qr) : qr = _[29];
673
673
  let Jr = qr, Yr;
674
- v[30] !== Kr || v[31] !== Jr || v[32] !== Hr ? (Yr = () => {
674
+ _[30] !== Kr || _[31] !== Jr || _[32] !== Hr ? (Yr = () => {
675
675
  for (let e of Hr) Kr.refresh(Jr(e));
676
- }, v[30] = Kr, v[31] = Jr, v[32] = Hr, v[33] = Yr) : Yr = v[33];
676
+ }, _[30] = Kr, _[31] = Jr, _[32] = Hr, _[33] = Yr) : Yr = _[33];
677
677
  let Xr = zt(Yr), Zr = Bt(It), Qr;
678
- v[34] !== q || v[35] !== K || v[36] !== It || v[37] !== H ? (Qr = [
678
+ _[34] !== q || _[35] !== K || _[36] !== It || _[37] !== H ? (Qr = [
679
679
  It,
680
680
  H,
681
681
  K,
682
682
  q
683
- ], v[34] = q, v[35] = K, v[36] = It, v[37] = H, v[38] = Qr) : Qr = v[38], Rt(() => {
683
+ ], _[34] = q, _[35] = K, _[36] = It, _[37] = H, _[38] = Qr) : Qr = _[38], Rt(() => {
684
684
  Zr.current !== It && (Zr.current = It, Mn({
685
685
  key: H,
686
686
  cursor: null,
687
687
  slices: An
688
688
  }), hr(null), K(), Xr(), q());
689
689
  }, Qr);
690
- let $r = Bt(j), ei;
691
- v[39] !== j || v[40] !== q || v[41] !== K || v[42] !== Xr ? (ei = () => {
692
- $r.current !== j && ($r.current = j, Mn(lr), K(), Xr(), q());
693
- }, v[39] = j, v[40] = q, v[41] = K, v[42] = Xr, v[43] = ei) : ei = v[43];
690
+ let $r = Bt(Vt), ei;
691
+ _[39] !== Vt || _[40] !== q || _[41] !== K || _[42] !== Xr ? (ei = () => {
692
+ $r.current !== Vt && ($r.current = Vt, Mn(lr), K(), Xr(), q());
693
+ }, _[39] = Vt, _[40] = q, _[41] = K, _[42] = Xr, _[43] = ei) : ei = _[43];
694
694
  let ti;
695
- v[44] !== j || v[45] !== q || v[46] !== K ? (ti = [
696
- j,
695
+ _[44] !== Vt || _[45] !== q || _[46] !== K ? (ti = [
696
+ Vt,
697
697
  K,
698
698
  q
699
- ], v[44] = j, v[45] = q, v[46] = K, v[47] = ti) : ti = v[47], Rt(ei, ti);
699
+ ], _[44] = Vt, _[45] = q, _[46] = K, _[47] = ti) : ti = _[47], Rt(ei, ti);
700
700
  let ni = Nt(), ri = Bt(null), ii = wt(Ar, {
701
701
  environmentId: x,
702
- reference: C,
702
+ reference: w,
703
703
  commit: V,
704
- cacheKey: `pull-request:${Pn}:${w.updatedAt}:${V ?? "all"}`
704
+ cacheKey: `pull-request:${Pn}:${T.updatedAt}:${V ?? "all"}`
705
705
  }), ai;
706
- v[48] !== w || v[49] !== x || v[50] !== C ? (ai = st(w, x, C), v[48] = w, v[49] = x, v[50] = C, v[51] = ai) : ai = v[51];
707
- let oi = ai, si = w.capabilities.review, ci = {
708
- inlineComment: si.inlineComment && w.viewerPermissions.comment,
709
- reply: si.reply && w.viewerPermissions.comment,
710
- resolve: si.resolve && w.viewerPermissions.resolve
706
+ _[48] !== T || _[49] !== x || _[50] !== w ? (ai = st(T, x, w), _[48] = T, _[49] = x, _[50] = w, _[51] = ai) : ai = _[51];
707
+ let oi = ai, si = T.capabilities.review, ci = {
708
+ inlineComment: si.inlineComment && T.viewerPermissions.comment,
709
+ reply: si.reply && T.viewerPermissions.comment,
710
+ resolve: si.resolve && T.viewerPermissions.resolve
711
711
  }, li = ci.inlineComment && V === null, ui = si.rangeComment === !0, di = V === null && (ci.inlineComment || yt !== void 0), { parsedSlices: fi, loadedFiles: pi, sourceFileStats: mi } = Fn(U, `pull-request:${H}:${R}`, R), hi;
712
- v[52] !== x || v[53] !== Gr || v[54] !== Hr ? (hi = Tn(JSON.stringify({
712
+ _[52] !== x || _[53] !== Gr || _[54] !== Hr ? (hi = Tn(JSON.stringify({
713
713
  environmentId: x,
714
714
  input: Gr,
715
715
  paths: Hr
716
- })), v[52] = x, v[53] = Gr, v[54] = Hr, v[55] = hi) : hi = v[55];
717
- let gi = s(hi), _i;
718
- v[56] === gi ? _i = v[57] : (_i = gi.some(cr), v[56] = gi, v[57] = _i);
716
+ })), _[52] = x, _[53] = Gr, _[54] = Hr, _[55] = hi) : hi = _[55];
717
+ let gi = f(hi), _i;
718
+ _[56] === gi ? _i = _[57] : (_i = gi.some(cr), _[56] = gi, _[57] = _i);
719
719
  let vi = _i, yi = /* @__PURE__ */ new Map(), bi = /* @__PURE__ */ new Map(), xi = /* @__PURE__ */ new Set();
720
720
  Hr.forEach((e, t) => {
721
721
  let n = gi[t];
722
722
  if (n === void 0) return;
723
- let r = n._tag === "Failure" ? null : re(n, sr);
723
+ let r = n._tag === "Failure" ? null : ne(n, sr);
724
724
  if (r === null) {
725
725
  yi.set(e, n._tag === "Failure" ? "error" : "loading");
726
726
  return;
@@ -742,9 +742,9 @@ function Vn(p) {
742
742
  Br.scope === H && Si.length > 0 && (Vr({
743
743
  ...Br,
744
744
  shownKeys: new Map([...Br.shownKeys, ...Si])
745
- }), Zt((e) => Si.reduce((t, n) => {
745
+ }), F((e) => Si.reduce((t, n) => {
746
746
  let [r, i] = n, a = Br.shownKeys.get(r), o = a !== void 0 && e.get(a);
747
- return o === void 0 ? t : Wt(t, i, o);
747
+ return o === void 0 ? t : Gt(t, i, o);
748
748
  }, e)));
749
749
  let Ci = bi.size === 0 ? pi : pi.map((e) => e.hunks.length === 0 ? bi.get(O(e)) ?? e : e), wi = (e) => {
750
750
  Kr.refresh(Jr(e)), !Hr.includes(e) && Vr({
@@ -754,20 +754,20 @@ function Vn(p) {
754
754
  });
755
755
  }, Ti = Ye(k), Ei = Ti?.kind === "diff" ? Ci.find((e) => qe(Ti.digest, O(e))) : void 0, J = Ei ? O(Ei) : null, [Di, Oi] = A(null), ki = J ?? (Di?.scope === H ? Di.path : null), Ai = Ci.filter(or).length, Y = fn ? Ci.filter((e) => {
756
756
  let t = O(e);
757
- return t === P?.path || t === ki || !Tt(t);
757
+ return t === N?.path || t === ki || !Tt(t);
758
758
  }) : Ci, ji = Ci.length - Y.length, Mi = Y.map(ar), Ni;
759
- v[58] === U ? Ni = v[59] : (Ni = new Map(U.flatMap(rr)), v[58] = U, v[59] = Ni);
760
- let Pi = Ni, Fi = jt(Y), Ii = In(w.reviewThreads), Li;
759
+ _[58] === U ? Ni = _[59] : (Ni = new Map(U.flatMap(rr)), _[58] = U, _[59] = Ni);
760
+ let Pi = Ni, Fi = jt(Y), Ii = In(T.reviewThreads), Li;
761
761
  bb0: {
762
762
  let e = /* @__PURE__ */ new Set();
763
763
  if (V !== null) {
764
764
  Li = e;
765
765
  break bb0;
766
766
  }
767
- for (let t of Y) for (let n of Ii.get(O(t)) ?? []) n.line !== null && f(t, n.side, n.line) && e.add(n.id);
767
+ for (let t of Y) for (let n of Ii.get(O(t)) ?? []) n.line !== null && d(t, n.side, n.line) && e.add(n.id);
768
768
  Li = e;
769
769
  }
770
- let Ri = Li, zi = V ?? w.headSha, Bi = le.find(w.provider)?.rawFileUrl, Vi = le.parseChangeRequestUrl(w.url)?.link.repositoryUrl, Hi = (e, t) => e.hunks.length === 0 && e.type !== "deleted" && i(t) && zi !== void 0 && Bi !== void 0 && Vi !== void 0 ? Bi({
770
+ let Ri = Li, zi = V ?? T.headSha, Bi = ue.find(T.provider)?.rawFileUrl, Vi = ue.parseChangeRequestUrl(T.url)?.link.repositoryUrl, Hi = (e, t) => e.hunks.length === 0 && e.type !== "deleted" && a(t) && zi !== void 0 && Bi !== void 0 && Vi !== void 0 ? Bi({
771
771
  repositoryUrl: Vi,
772
772
  sha: zi,
773
773
  path: t
@@ -828,36 +828,36 @@ function Vn(p) {
828
828
  annotationsVersion: ht(o.map(er).join("|"))
829
829
  };
830
830
  }), Wi;
831
- v[60] === U ? Wi = v[61] : (Wi = U.at(-1)?.nextCursor ?? null, v[60] = U, v[61] = Wi);
832
- let X = Wi, Gi = U[0]?.source.withheldFilesReadable === !0, Ki = U.some($n) || fi.some(Qn), qi = X === null ? fi.flatMap(Zn) : [], Ji = Y.length === 0 && qi.length > 0 ? /* @__PURE__ */ M("div", {
831
+ _[60] === U ? Wi = _[61] : (Wi = U.at(-1)?.nextCursor ?? null, _[60] = U, _[61] = Wi);
832
+ let X = Wi, Gi = U[0]?.source.withheldFilesReadable === !0, Ki = U.some($n) || fi.some(Qn), qi = X === null ? fi.flatMap(Zn) : [], Ji = Y.length === 0 && qi.length > 0 ? /* @__PURE__ */ j("div", {
833
833
  className: "space-y-4 px-4 py-5",
834
- children: qi.map((e) => /* @__PURE__ */ N("div", {
834
+ children: qi.map((e) => /* @__PURE__ */ M("div", {
835
835
  className: "space-y-2",
836
- children: [/* @__PURE__ */ M("p", {
836
+ children: [/* @__PURE__ */ j("p", {
837
837
  className: "text-xs text-muted-foreground",
838
- children: Gt(e.reason)
839
- }), /* @__PURE__ */ M("pre", {
838
+ children: Kt(e.reason)
839
+ }), /* @__PURE__ */ j("pre", {
840
840
  className: "whitespace-pre-wrap break-words font-mono text-xs",
841
841
  children: e.text
842
842
  })]
843
843
  }, `${e.reason}:${e.text.slice(0, 64)}`))
844
- }) : null, Yi = qi.length === 0 ? null : /* @__PURE__ */ M("div", {
844
+ }) : null, Yi = qi.length === 0 ? null : /* @__PURE__ */ j("div", {
845
845
  className: "space-y-4 border-t border-border/60 px-4 py-5",
846
- children: qi.map((e) => /* @__PURE__ */ N("div", {
846
+ children: qi.map((e) => /* @__PURE__ */ M("div", {
847
847
  className: "space-y-2",
848
- children: [/* @__PURE__ */ M("p", {
848
+ children: [/* @__PURE__ */ j("p", {
849
849
  className: "text-xs text-muted-foreground",
850
- children: Gt(e.reason)
851
- }), /* @__PURE__ */ M("pre", {
850
+ children: Kt(e.reason)
851
+ }), /* @__PURE__ */ j("pre", {
852
852
  className: "whitespace-pre-wrap break-words font-mono text-xs",
853
853
  children: e.text
854
854
  })]
855
855
  }, `${e.reason}:${e.text.slice(0, 64)}`))
856
856
  }), Xi;
857
- v[62] !== Ir || v[63] !== Lr || v[64] !== Rr ? (Xi = (e) => Ir && Lr(e) && !Rr(e), v[62] = Ir, v[63] = Lr, v[64] = Rr, v[65] = Xi) : Xi = v[65];
857
+ _[62] !== Ir || _[63] !== Lr || _[64] !== Rr ? (Xi = (e) => Ir && Lr(e) && !Rr(e), _[62] = Ir, _[63] = Lr, _[64] = Rr, _[65] = Xi) : Xi = _[65];
858
858
  let Zi = Xi, Qi;
859
- v[66] !== an || v[67] !== Ir || v[68] !== Xt || v[69] !== Zi || v[70] !== Lr || v[71] !== Rr ? (Qi = (e) => {
860
- let { fileKey: t, path: n, fileDiff: r, annotations: i, annotationsVersion: a } = e, o = Ut(t, an, Xt, Zi(n)), s = Ir ? `e${Lr(n) ? "v" : ""}${Rr(n) ? "s" : ""}` : "";
859
+ _[66] !== an || _[67] !== Ir || _[68] !== Zt || _[69] !== Zi || _[70] !== Lr || _[71] !== Rr ? (Qi = (e) => {
860
+ let { fileKey: t, path: n, fileDiff: r, annotations: i, annotationsVersion: a } = e, o = Wt(t, an, Zt, Zi(n)), s = Ir ? `e${Lr(n) ? "v" : ""}${Rr(n) ? "s" : ""}` : "";
861
861
  return {
862
862
  id: t,
863
863
  type: "diff",
@@ -866,48 +866,48 @@ function Vn(p) {
866
866
  collapsed: o,
867
867
  version: ht(`${o ? "1" : "0"}:${s}:${a}`)
868
868
  };
869
- }, v[66] = an, v[67] = Ir, v[68] = Xt, v[69] = Zi, v[70] = Lr, v[71] = Rr, v[72] = Qi) : Qi = v[72];
869
+ }, _[66] = an, _[67] = Ir, _[68] = Zt, _[69] = Zi, _[70] = Lr, _[71] = Rr, _[72] = Qi) : Qi = _[72];
870
870
  let Z = Ui.map(Qi), $i = Z.map(Xn), ea = new Set(Z.filter(Yn).map(Jn)), ta = At($i, ea), Q = X !== null && X !== W && !G.isPending && G.error === null, na;
871
- v[73] === X ? na = v[74] : (na = () => {
871
+ _[73] === X ? na = _[74] : (na = () => {
872
872
  X !== null && Mn((e) => ({
873
873
  ...e,
874
874
  cursor: X
875
875
  }));
876
- }, v[73] = X, v[74] = na);
876
+ }, _[73] = X, _[74] = na);
877
877
  let $ = na, ra;
878
- v[75] !== Q || v[76] !== $ ? (ra = (e) => {
878
+ _[75] !== Q || _[76] !== $ ? (ra = (e) => {
879
879
  if (e !== null && Q) return Ke(e, (e) => {
880
880
  e.isIntersecting && $();
881
881
  }, { rootMargin: "240px" });
882
- }, v[75] = Q, v[76] = $, v[77] = ra) : ra = v[77];
882
+ }, _[75] = Q, _[76] = $, _[77] = ra) : ra = _[77];
883
883
  let ia = ra, aa = (e) => {
884
884
  let t = Ui.find((t) => t.fileKey === e)?.path, n = t !== void 0 && Zi(t);
885
- Zt((t) => Wt(t, e, !Ut(e, an, t, n)));
885
+ F((t) => Gt(t, e, !Wt(e, an, t, n)));
886
886
  }, oa = {
887
887
  enabled: Ir,
888
888
  isViewed: Lr,
889
889
  isStale: Rr,
890
890
  setFileViewed: (e, t, n) => {
891
- let r = ae(Ui, e, n ? Qt : null);
891
+ let r = ie(Ui, e, n ? Qt : null);
892
892
  $t(e);
893
893
  for (let e of r) Fr(e.path, t, V === null ? e.fileDiff.newObjectId : void 0);
894
- Zt((e) => r.reduce((e, n) => Wt(e, n.fileKey, an === null ? void 0 : t), e));
894
+ F((e) => r.reduce((e, n) => Gt(e, n.fileKey, an === null ? void 0 : t), e));
895
895
  }
896
896
  }, sa = (e, t) => {
897
897
  let n = Z.find((t) => O(t.fileDiff) === e);
898
- n !== void 0 && (Zt((e) => Wt(e, n.id, !1)), t && hn({
898
+ n !== void 0 && (F((e) => Gt(e, n.id, !1)), t && hn({
899
899
  id: n.id,
900
900
  range: t
901
901
  }), ni.request(n.id, t));
902
902
  }, ca = () => {
903
- rn(At($i, ea) ? "expanded" : "folded"), Zt(/* @__PURE__ */ new Map());
904
- }, la = w.commits.toSorted(qn), ua = (e, t) => {
903
+ rn(At($i, ea) ? "expanded" : "folded"), F(/* @__PURE__ */ new Map());
904
+ }, la = T.commits.toSorted(qn), ua = (e, t) => {
905
905
  if (!e || !di || vi) return;
906
906
  let n = t.item;
907
907
  if (n.type !== "diff") return;
908
908
  let r = Y.find((e) => _t(e) === n.id);
909
909
  if (!r) return;
910
- let i = O(r), a = bt(r), s = fi.flatMap(Kn).find((e) => O(e) === i), c = (s && o(s, e, ui)) ?? o(r, e, ui);
910
+ let i = O(r), a = bt(r), o = fi.flatMap(Kn).find((e) => O(e) === i), c = (o && s(o, e, ui)) ?? s(r, e, ui);
911
911
  c !== null && gn({
912
912
  fileKey: n.id,
913
913
  path: i,
@@ -918,8 +918,8 @@ function Vn(p) {
918
918
  }, da = (e, t, n) => {
919
919
  let r = Y.find((t) => _t(t) === e.fileKey), i = r === void 0 ? null : de({
920
920
  id: `pull-request-selection:${l(e.fileKey, e.range)}`,
921
- sectionId: `pull-request:${w.number}`,
922
- sectionTitle: `PR #${w.number} review`,
921
+ sectionId: `pull-request:${T.number}`,
922
+ sectionTitle: `PR #${T.number} review`,
923
923
  filePath: e.path,
924
924
  fileDiff: r,
925
925
  range: e.range,
@@ -927,28 +927,28 @@ function Vn(p) {
927
927
  });
928
928
  gn(null), hn(null), i !== null && n(i);
929
929
  }, fa;
930
- v[78] !== G || v[79] !== F || v[80] !== X || v[81] !== ia ? (fa = () => X === null ? null : /* @__PURE__ */ M("div", {
930
+ _[78] !== G || _[79] !== P || _[80] !== X || _[81] !== ia ? (fa = () => X === null ? null : /* @__PURE__ */ j("div", {
931
931
  ref: ia,
932
932
  className: "flex items-center justify-center gap-2 py-2 text-xs text-muted-foreground",
933
- children: G.error === null ? G.isPending ? F("Loading more files...") : null : /* @__PURE__ */ N(Ht, { children: [/* @__PURE__ */ M("span", { children: /* @__PURE__ */ M(T, { children: "The rest of this diff could not be loaded." }) }), /* @__PURE__ */ M(y, {
933
+ children: G.error === null ? G.isPending ? P("Loading more files...") : null : /* @__PURE__ */ M(Ut, { children: [/* @__PURE__ */ j("span", { children: /* @__PURE__ */ j(v, { children: "The rest of this diff could not be loaded." }) }), /* @__PURE__ */ j(b, {
934
934
  size: "xs",
935
935
  variant: "outline",
936
936
  onClick: () => G.refresh(),
937
- children: /* @__PURE__ */ M(T, { children: "Retry" })
937
+ children: /* @__PURE__ */ j(v, { children: "Retry" })
938
938
  })] })
939
- }), v[78] = G, v[79] = F, v[80] = X, v[81] = ia, v[82] = fa) : fa = v[82];
939
+ }), _[78] = G, _[79] = P, _[80] = X, _[81] = ia, _[82] = fa) : fa = _[82];
940
940
  let pa = fa, ma = (e) => {
941
941
  let t = e.collapsed === !0;
942
- return /* @__PURE__ */ M(y, {
942
+ return /* @__PURE__ */ j(b, {
943
943
  size: "icon-micro",
944
944
  variant: "ghost-muted",
945
945
  "aria-expanded": !t,
946
- "aria-label": F(t ? "Expand diff" : "Collapse diff"),
946
+ "aria-label": P(t ? "Expand diff" : "Collapse diff"),
947
947
  className: "mr-1",
948
948
  onClick: (t) => {
949
949
  t.stopPropagation(), aa(e.id);
950
950
  },
951
- children: M(t ? me : ge, { className: "size-4" })
951
+ children: j(t ? me : ge, { className: "size-4" })
952
952
  });
953
953
  }, ha = (e) => {
954
954
  if (e.type !== "diff") return null;
@@ -957,24 +957,24 @@ function Vn(p) {
957
957
  let e = Pi.get(r);
958
958
  e && ({additions: t, deletions: n} = e);
959
959
  }
960
- return /* @__PURE__ */ M(Rn, {
960
+ return /* @__PURE__ */ j(Rn, {
961
961
  fileKey: e.id,
962
962
  path: r,
963
- stat: /* @__PURE__ */ M(it, {
963
+ stat: /* @__PURE__ */ j(it, {
964
964
  additions: t,
965
965
  deletions: n,
966
966
  className: "font-mono text-2xs"
967
967
  })
968
968
  });
969
969
  }, ga;
970
- v[83] === Symbol.for("react.memo_cache_sentinel") ? (ga = (e, t) => Zt((e) => Wt(e, t.id, t.collapsed === !0)), v[83] = ga) : ga = v[83];
970
+ _[83] === Symbol.for("react.memo_cache_sentinel") ? (ga = (e, t) => F((e) => Gt(e, t.id, t.collapsed === !0)), _[83] = ga) : ga = _[83];
971
971
  let _a = {
972
972
  diffStyle: I === "split" ? "split" : "unified",
973
973
  lineDiffType: "none",
974
974
  overflow: L ? "wrap" : "scroll",
975
- theme: gt(Jt),
975
+ theme: gt(Yt),
976
976
  preferredHighlighter: xt,
977
- themeType: Jt,
977
+ themeType: Yt,
978
978
  stickyHeaders: !0,
979
979
  loadDiffFiles: (e) => xi.has(e) ? Promise.reject(Error(n(t("Unchanged lines are unavailable in a file with cut lines.")))) : ii(e),
980
980
  enableGutterUtility: di && z === null && !vi,
@@ -986,7 +986,7 @@ function Vn(p) {
986
986
  },
987
987
  onItemCollapsedChange: ga
988
988
  }, va;
989
- v[84] !== Et || v[85] !== _n ? (va = async (e, t) => {
989
+ _[84] !== Et || _[85] !== _n ? (va = async (e, t) => {
990
990
  if (_n) return !1;
991
991
  yn(!0);
992
992
  let n = await t();
@@ -994,22 +994,22 @@ function Vn(p) {
994
994
  type: "error",
995
995
  title: e
996
996
  }), !1) : (Et(), !0);
997
- }, v[84] = Et, v[85] = _n, v[86] = va) : va = v[86];
998
- let ya = va, ba = (e, r) => /* @__PURE__ */ M(Le, {
997
+ }, _[84] = Et, _[85] = _n, _[86] = va) : va = _[86];
998
+ let ya = va, ba = (e, r) => /* @__PURE__ */ j(Le, {
999
999
  thread: e,
1000
- workspaceRoot: w.workspaceRoot,
1000
+ workspaceRoot: T.workspaceRoot,
1001
1001
  canReply: ci.reply,
1002
- canResolve: ci.resolve && ze(w, e),
1003
- canReact: w.capabilities.reactions === !0,
1002
+ canResolve: ci.resolve && ze(T, e),
1003
+ canReact: T.capabilities.reactions === !0,
1004
1004
  environmentId: x,
1005
- reference: C,
1005
+ reference: w,
1006
1006
  completionScope: oi,
1007
1007
  pending: _n,
1008
1008
  fixPending: je === $e({
1009
1009
  kind: "thread",
1010
1010
  thread: e
1011
1011
  }),
1012
- fixLabel: qt,
1012
+ fixLabel: Jt,
1013
1013
  ...Je ? { onFix: () => Je({
1014
1014
  kind: "thread",
1015
1015
  thread: e
@@ -1022,7 +1022,7 @@ function Vn(p) {
1022
1022
  let i = await kr({
1023
1023
  environmentId: x,
1024
1024
  input: {
1025
- ...C,
1025
+ ...w,
1026
1026
  threadId: e.id,
1027
1027
  cursor: r
1028
1028
  }
@@ -1035,12 +1035,12 @@ function Vn(p) {
1035
1035
  onReply: (r) => ya(n(t("Reply could not be posted")), () => Cr({
1036
1036
  environmentId: x,
1037
1037
  input: {
1038
- ...C,
1038
+ ...w,
1039
1039
  threadId: e.id,
1040
1040
  body: r
1041
1041
  }
1042
1042
  })),
1043
- canEditComment: (e) => Me(w, {
1043
+ canEditComment: (e) => Me(T, {
1044
1044
  author: e.author,
1045
1045
  kind: "review-comment",
1046
1046
  canEdit: e.canEdit
@@ -1048,7 +1048,7 @@ function Vn(p) {
1048
1048
  onEditComment: (e, r) => ya(n(t("The comment could not be saved")), () => Dr({
1049
1049
  environmentId: x,
1050
1050
  input: {
1051
- ...C,
1051
+ ...w,
1052
1052
  commentId: e,
1053
1053
  kind: "review-comment",
1054
1054
  body: r
@@ -1057,46 +1057,46 @@ function Vn(p) {
1057
1057
  onToggleResolved: () => void ya(n(t("The conversation could not be updated")), () => Tr({
1058
1058
  environmentId: x,
1059
1059
  input: {
1060
- ...C,
1060
+ ...w,
1061
1061
  threadId: e.id,
1062
1062
  resolved: !e.isResolved
1063
1063
  }
1064
1064
  })),
1065
1065
  onReacted: Et,
1066
1066
  ...r === void 0 ? {} : { hidden: r }
1067
- }, `${C.projectId}#${C.number}:${e.id}`), xa = (...e) => {
1067
+ }, `${w.projectId}#${w.number}:${e.id}`), xa = (...e) => {
1068
1068
  let [t] = e;
1069
- return /* @__PURE__ */ N("div", {
1069
+ return /* @__PURE__ */ M("div", {
1070
1070
  className: "relative font-sans text-foreground has-[>:not([data-resolved-threads])]:py-1",
1071
1071
  children: [
1072
- t.metadata.image ? /* @__PURE__ */ M("div", {
1072
+ t.metadata.image ? /* @__PURE__ */ j("div", {
1073
1073
  className: "flex justify-center p-3",
1074
- children: /* @__PURE__ */ M(Ae, {
1074
+ children: /* @__PURE__ */ j(Ae, {
1075
1075
  environmentId: x,
1076
1076
  resource: {
1077
1077
  _tag: pe,
1078
- cwd: w.workspaceRoot,
1078
+ cwd: T.workspaceRoot,
1079
1079
  url: t.metadata.image.url,
1080
- repository: w.repository
1080
+ repository: T.repository
1081
1081
  },
1082
1082
  alt: t.metadata.image.path
1083
1083
  })
1084
1084
  }) : null,
1085
- t.metadata.withheld ? /* @__PURE__ */ M(mr, {
1085
+ t.metadata.withheld ? /* @__PURE__ */ j(mr, {
1086
1086
  ...t.metadata.withheld,
1087
1087
  onLoad: Gi ? wi : void 0
1088
1088
  }) : null,
1089
- /* @__PURE__ */ M(Re, {
1089
+ /* @__PURE__ */ j(Re, {
1090
1090
  threads: t.metadata.threads,
1091
1091
  renderThread: ba
1092
1092
  }),
1093
- t.metadata.pending.map((e) => /* @__PURE__ */ M(Ie, {
1093
+ t.metadata.pending.map((e) => /* @__PURE__ */ j(Ie, {
1094
1094
  comment: e,
1095
1095
  onRemove: () => xr(vr, e.id)
1096
1096
  }, e.id)),
1097
- t.metadata.draft && z && di ? /* @__PURE__ */ M(ct, {
1097
+ t.metadata.draft && z && di ? /* @__PURE__ */ j(ct, {
1098
1098
  environmentId: x,
1099
- projectId: C.projectId,
1099
+ projectId: w.projectId,
1100
1100
  ownerKey: JSON.stringify([
1101
1101
  x,
1102
1102
  vr,
@@ -1106,9 +1106,9 @@ function Vn(p) {
1106
1106
  rangeLabel: `${z.path}:${Fe(z.position).line}`,
1107
1107
  text: "",
1108
1108
  completionScope: li ? oi : null,
1109
- submitLabel: F(li ? "Add to review" : "Add to agent"),
1109
+ submitLabel: P(li ? "Add to review" : "Add to agent"),
1110
1110
  ...li && yt ? { secondaryAction: {
1111
- label: F("Add to agent"),
1111
+ label: P("Add to agent"),
1112
1112
  onAction: (e) => da(z, e, (t) => yt({
1113
1113
  comment: t,
1114
1114
  request: e
@@ -1134,103 +1134,103 @@ function Vn(p) {
1134
1134
  ]
1135
1135
  });
1136
1136
  }, Sa;
1137
- v[87] === V ? Sa = v[88] : (Sa = (e) => e.oid === V, v[87] = V, v[88] = Sa);
1138
- let Ca = la.find(Sa), wa = Ca ? Ca.messageHeadline : F("All commits"), Ta;
1139
- v[89] === Symbol.for("react.memo_cache_sentinel") ? (Ta = (e) => {
1137
+ _[87] === V ? Sa = _[88] : (Sa = (e) => e.oid === V, _[87] = V, _[88] = Sa);
1138
+ let Ca = la.find(Sa), wa = Ca ? Ca.messageHeadline : P("All commits"), Ta;
1139
+ _[89] === Symbol.for("react.memo_cache_sentinel") ? (Ta = (e) => {
1140
1140
  ln(e), gn(null), hn(null);
1141
- }, v[89] = Ta) : Ta = v[89];
1141
+ }, _[89] = Ta) : Ta = _[89];
1142
1142
  let Ea = Ta, Da;
1143
- v[90] !== F || v[91] !== ji || v[92] !== pn ? (Da = ji > 0 ? /* @__PURE__ */ M(y, {
1143
+ _[90] !== P || _[91] !== ji || _[92] !== pn ? (Da = ji > 0 ? /* @__PURE__ */ j(b, {
1144
1144
  type: "button",
1145
1145
  size: "xs",
1146
1146
  variant: "link",
1147
1147
  onClick: () => pn(!1),
1148
- children: F("{count, plural, one {{count} test file hidden} other {{count} test files hidden}}", { count: ji })
1149
- }) : null, v[90] = F, v[91] = ji, v[92] = pn, v[93] = Da) : Da = v[93];
1148
+ children: P("{count, plural, one {{count} test file hidden} other {{count} test files hidden}}", { count: ji })
1149
+ }) : null, _[90] = P, _[91] = ji, _[92] = pn, _[93] = Da) : Da = _[93];
1150
1150
  let Oa;
1151
- v[94] !== F || v[95] !== Ki ? (Oa = Ki ? /* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, {
1152
- render: /* @__PURE__ */ M("span", { className: "flex shrink-0 items-center" }),
1153
- children: /* @__PURE__ */ M(xe, {
1154
- "aria-label": F("Some of this diff was not shown"),
1151
+ _[94] !== P || _[95] !== Ki ? (Oa = Ki ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
1152
+ render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
1153
+ children: /* @__PURE__ */ j(xe, {
1154
+ "aria-label": P("Some of this diff was not shown"),
1155
1155
  className: "size-3.5 text-warning-foreground"
1156
1156
  })
1157
- }), /* @__PURE__ */ M(b, {
1157
+ }), /* @__PURE__ */ j(S, {
1158
1158
  side: "bottom",
1159
- children: /* @__PURE__ */ M(T, { children: "The host withheld part of this diff: a binary file, or a change too large to inline." })
1160
- })] }) : null, v[94] = F, v[95] = Ki, v[96] = Oa) : Oa = v[96];
1159
+ children: /* @__PURE__ */ j(v, { children: "The host withheld part of this diff: a binary file, or a change too large to inline." })
1160
+ })] }) : null, _[94] = P, _[95] = Ki, _[96] = Oa) : Oa = _[96];
1161
1161
  let ka;
1162
- v[97] === Symbol.for("react.memo_cache_sentinel") ? (ka = /* @__PURE__ */ M(y, {
1162
+ _[97] === Symbol.for("react.memo_cache_sentinel") ? (ka = /* @__PURE__ */ j(b, {
1163
1163
  size: "icon-sm",
1164
1164
  variant: "ghost"
1165
- }), v[97] = ka) : ka = v[97];
1165
+ }), _[97] = ka) : ka = _[97];
1166
1166
  let Aa;
1167
- v[98] === F ? Aa = v[99] : (Aa = F("Diff options"), v[98] = F, v[99] = Aa);
1167
+ _[98] === P ? Aa = _[99] : (Aa = P("Diff options"), _[98] = P, _[99] = Aa);
1168
1168
  let ja;
1169
- v[100] === Aa ? ja = v[101] : (ja = /* @__PURE__ */ M(c, {
1169
+ _[100] === Aa ? ja = _[101] : (ja = /* @__PURE__ */ j(c, {
1170
1170
  render: ka,
1171
1171
  className: "@lg:hidden",
1172
1172
  "aria-label": Aa
1173
- }), v[100] = Aa, v[101] = ja);
1173
+ }), _[100] = Aa, _[101] = ja);
1174
1174
  let Ma;
1175
- v[102] === Symbol.for("react.memo_cache_sentinel") ? (Ma = /* @__PURE__ */ M(Ce, { className: "size-3.5" }), v[102] = Ma) : Ma = v[102];
1175
+ _[102] === Symbol.for("react.memo_cache_sentinel") ? (Ma = /* @__PURE__ */ j(Ce, { className: "size-3.5" }), _[102] = Ma) : Ma = _[102];
1176
1176
  let Na;
1177
- v[103] === ja ? Na = v[104] : (Na = /* @__PURE__ */ M(E, {
1177
+ _[103] === ja ? Na = _[104] : (Na = /* @__PURE__ */ j(E, {
1178
1178
  render: ja,
1179
1179
  children: Ma
1180
- }), v[103] = ja, v[104] = Na);
1180
+ }), _[103] = ja, _[104] = Na);
1181
1181
  let Pa;
1182
- v[105] === Symbol.for("react.memo_cache_sentinel") ? (Pa = /* @__PURE__ */ M(b, {
1182
+ _[105] === Symbol.for("react.memo_cache_sentinel") ? (Pa = /* @__PURE__ */ j(S, {
1183
1183
  side: "top",
1184
- children: /* @__PURE__ */ M(T, { children: "Diff options" })
1185
- }), v[105] = Pa) : Pa = v[105];
1184
+ children: /* @__PURE__ */ j(v, { children: "Diff options" })
1185
+ }), _[105] = Pa) : Pa = _[105];
1186
1186
  let Fa;
1187
- v[106] === Na ? Fa = v[107] : (Fa = /* @__PURE__ */ N(S, { children: [Na, Pa] }), v[106] = Na, v[107] = Fa);
1187
+ _[106] === Na ? Fa = _[107] : (Fa = /* @__PURE__ */ M(C, { children: [Na, Pa] }), _[106] = Na, _[107] = Fa);
1188
1188
  let Ia;
1189
- v[108] === Ea ? Ia = v[109] : (Ia = (e) => Ea(e), v[108] = Ea, v[109] = Ia);
1189
+ _[108] === Ea ? Ia = _[109] : (Ia = (e) => Ea(e), _[108] = Ea, _[109] = Ia);
1190
1190
  let La;
1191
- v[110] === Symbol.for("react.memo_cache_sentinel") ? (La = /* @__PURE__ */ M(T, { children: "Hide whitespace changes" }), v[110] = La) : La = v[110];
1191
+ _[110] === Symbol.for("react.memo_cache_sentinel") ? (La = /* @__PURE__ */ j(v, { children: "Hide whitespace changes" }), _[110] = La) : La = _[110];
1192
1192
  let Ra;
1193
- v[111] !== R || v[112] !== Ia ? (Ra = /* @__PURE__ */ M(ie, {
1193
+ _[111] !== R || _[112] !== Ia ? (Ra = /* @__PURE__ */ j(re, {
1194
1194
  checked: R,
1195
1195
  onCheckedChange: Ia,
1196
1196
  children: La
1197
- }), v[111] = R, v[112] = Ia, v[113] = Ra) : Ra = v[113];
1197
+ }), _[111] = R, _[112] = Ia, _[113] = Ra) : Ra = _[113];
1198
1198
  let za, Ba;
1199
- v[114] === Symbol.for("react.memo_cache_sentinel") ? (za = (e) => cn(e), Ba = /* @__PURE__ */ M(T, { children: "Wrap lines" }), v[114] = za, v[115] = Ba) : (za = v[114], Ba = v[115]);
1199
+ _[114] === Symbol.for("react.memo_cache_sentinel") ? (za = (e) => cn(e), Ba = /* @__PURE__ */ j(v, { children: "Wrap lines" }), _[114] = za, _[115] = Ba) : (za = _[114], Ba = _[115]);
1200
1200
  let Va;
1201
- v[116] === L ? Va = v[117] : (Va = /* @__PURE__ */ M(ie, {
1201
+ _[116] === L ? Va = _[117] : (Va = /* @__PURE__ */ j(re, {
1202
1202
  checked: L,
1203
1203
  onCheckedChange: za,
1204
1204
  children: Ba
1205
- }), v[116] = L, v[117] = Va);
1205
+ }), _[116] = L, _[117] = Va);
1206
1206
  let Ha;
1207
- v[118] === Symbol.for("react.memo_cache_sentinel") ? (Ha = /* @__PURE__ */ M(r, {}), v[118] = Ha) : Ha = v[118];
1207
+ _[118] === Symbol.for("react.memo_cache_sentinel") ? (Ha = /* @__PURE__ */ j(r, {}), _[118] = Ha) : Ha = _[118];
1208
1208
  let Ua;
1209
- v[119] === Symbol.for("react.memo_cache_sentinel") ? (Ua = /* @__PURE__ */ M(h, {
1209
+ _[119] === Symbol.for("react.memo_cache_sentinel") ? (Ua = /* @__PURE__ */ j(p, {
1210
1210
  value: "stacked",
1211
1211
  closeOnClick: !0,
1212
- children: /* @__PURE__ */ M(T, {
1212
+ children: /* @__PURE__ */ j(v, {
1213
1213
  context: "diff layout",
1214
1214
  children: "Stacked"
1215
1215
  })
1216
- }), v[119] = Ua) : Ua = v[119];
1216
+ }), _[119] = Ua) : Ua = _[119];
1217
1217
  let Wa;
1218
- v[120] === Symbol.for("react.memo_cache_sentinel") ? (Wa = /* @__PURE__ */ M(h, {
1218
+ _[120] === Symbol.for("react.memo_cache_sentinel") ? (Wa = /* @__PURE__ */ j(p, {
1219
1219
  value: "split",
1220
1220
  closeOnClick: !0,
1221
- children: /* @__PURE__ */ M(T, {
1221
+ children: /* @__PURE__ */ j(v, {
1222
1222
  context: "diff layout",
1223
1223
  children: "Split"
1224
1224
  })
1225
- }), v[120] = Wa) : Wa = v[120];
1225
+ }), _[120] = Wa) : Wa = _[120];
1226
1226
  let Ga;
1227
- v[121] === I ? Ga = v[122] : (Ga = /* @__PURE__ */ N(d, {
1227
+ _[121] === I ? Ga = _[122] : (Ga = /* @__PURE__ */ M(u, {
1228
1228
  value: I,
1229
1229
  onValueChange: Un,
1230
1230
  children: [Ua, Wa]
1231
- }), v[121] = I, v[122] = Ga);
1231
+ }), _[121] = I, _[122] = Ga);
1232
1232
  let Ka;
1233
- v[123] !== Ra || v[124] !== Va || v[125] !== Ga ? (Ka = /* @__PURE__ */ N(a, {
1233
+ _[123] !== Ra || _[124] !== Va || _[125] !== Ga ? (Ka = /* @__PURE__ */ M(o, {
1234
1234
  align: "end",
1235
1235
  children: [
1236
1236
  Ra,
@@ -1238,153 +1238,153 @@ function Vn(p) {
1238
1238
  Ha,
1239
1239
  Ga
1240
1240
  ]
1241
- }), v[123] = Ra, v[124] = Va, v[125] = Ga, v[126] = Ka) : Ka = v[126];
1241
+ }), _[123] = Ra, _[124] = Va, _[125] = Ga, _[126] = Ka) : Ka = _[126];
1242
1242
  let qa;
1243
- v[127] !== Fa || v[128] !== Ka ? (qa = /* @__PURE__ */ N(ee, { children: [Fa, Ka] }), v[127] = Fa, v[128] = Ka, v[129] = qa) : qa = v[129];
1243
+ _[127] !== Fa || _[128] !== Ka ? (qa = /* @__PURE__ */ M(h, { children: [Fa, Ka] }), _[127] = Fa, _[128] = Ka, _[129] = qa) : qa = _[129];
1244
1244
  let Ja;
1245
- v[130] !== F || v[131] !== R ? (Ja = F(R ? "Show whitespace changes" : "Hide whitespace changes"), v[130] = F, v[131] = R, v[132] = Ja) : Ja = v[132];
1245
+ _[130] !== P || _[131] !== R ? (Ja = P(R ? "Show whitespace changes" : "Hide whitespace changes"), _[130] = P, _[131] = R, _[132] = Ja) : Ja = _[132];
1246
1246
  let Ya;
1247
- v[133] === Ea ? Ya = v[134] : (Ya = (e) => Ea(!!e), v[133] = Ea, v[134] = Ya);
1247
+ _[133] === Ea ? Ya = _[134] : (Ya = (e) => Ea(!!e), _[133] = Ea, _[134] = Ya);
1248
1248
  let Xa;
1249
- v[135] !== R || v[136] !== Ja || v[137] !== Ya ? (Xa = /* @__PURE__ */ M(ot, {
1249
+ _[135] !== R || _[136] !== Ja || _[137] !== Ya ? (Xa = /* @__PURE__ */ j(ot, {
1250
1250
  "aria-label": Ja,
1251
1251
  variant: "ghost",
1252
1252
  size: "sm",
1253
1253
  pressed: R,
1254
1254
  onPressedChange: Ya
1255
- }), v[135] = R, v[136] = Ja, v[137] = Ya, v[138] = Xa) : Xa = v[138];
1255
+ }), _[135] = R, _[136] = Ja, _[137] = Ya, _[138] = Xa) : Xa = _[138];
1256
1256
  let Za;
1257
- v[139] === Symbol.for("react.memo_cache_sentinel") ? (Za = /* @__PURE__ */ M(Te, { className: "size-3.5" }), v[139] = Za) : Za = v[139];
1257
+ _[139] === Symbol.for("react.memo_cache_sentinel") ? (Za = /* @__PURE__ */ j(Te, { className: "size-3.5" }), _[139] = Za) : Za = _[139];
1258
1258
  let Qa;
1259
- v[140] === Xa ? Qa = v[141] : (Qa = /* @__PURE__ */ M(E, {
1259
+ _[140] === Xa ? Qa = _[141] : (Qa = /* @__PURE__ */ j(E, {
1260
1260
  render: Xa,
1261
1261
  children: Za
1262
- }), v[140] = Xa, v[141] = Qa);
1262
+ }), _[140] = Xa, _[141] = Qa);
1263
1263
  let $a;
1264
- v[142] !== F || v[143] !== R ? ($a = F(R ? "Show whitespace changes" : "Hide whitespace changes"), v[142] = F, v[143] = R, v[144] = $a) : $a = v[144];
1264
+ _[142] !== P || _[143] !== R ? ($a = P(R ? "Show whitespace changes" : "Hide whitespace changes"), _[142] = P, _[143] = R, _[144] = $a) : $a = _[144];
1265
1265
  let eo;
1266
- v[145] === $a ? eo = v[146] : (eo = /* @__PURE__ */ M(b, {
1266
+ _[145] === $a ? eo = _[146] : (eo = /* @__PURE__ */ j(S, {
1267
1267
  side: "top",
1268
1268
  children: $a
1269
- }), v[145] = $a, v[146] = eo);
1269
+ }), _[145] = $a, _[146] = eo);
1270
1270
  let to;
1271
- v[147] !== Qa || v[148] !== eo ? (to = /* @__PURE__ */ N(S, { children: [Qa, eo] }), v[147] = Qa, v[148] = eo, v[149] = to) : to = v[149];
1271
+ _[147] !== Qa || _[148] !== eo ? (to = /* @__PURE__ */ M(C, { children: [Qa, eo] }), _[147] = Qa, _[148] = eo, _[149] = to) : to = _[149];
1272
1272
  let no;
1273
- v[150] === F ? no = v[151] : (no = F("Diff layout"), v[150] = F, v[151] = no);
1273
+ _[150] === P ? no = _[151] : (no = P("Diff layout"), _[150] = P, _[151] = no);
1274
1274
  let ro;
1275
- v[152] === I ? ro = v[153] : (ro = [I], v[152] = I, v[153] = ro);
1275
+ _[152] === I ? ro = _[153] : (ro = [I], _[152] = I, _[153] = ro);
1276
1276
  let io;
1277
- v[154] === F ? io = v[155] : (io = F("Stacked diff view"), v[154] = F, v[155] = io);
1277
+ _[154] === P ? io = _[155] : (io = P("Stacked diff view"), _[154] = P, _[155] = io);
1278
1278
  let ao;
1279
- v[156] === Symbol.for("react.memo_cache_sentinel") ? (ao = /* @__PURE__ */ M(De, { className: "size-3.5" }), v[156] = ao) : ao = v[156];
1279
+ _[156] === Symbol.for("react.memo_cache_sentinel") ? (ao = /* @__PURE__ */ j(De, { className: "size-3.5" }), _[156] = ao) : ao = _[156];
1280
1280
  let oo;
1281
- v[157] === io ? oo = v[158] : (oo = /* @__PURE__ */ M(ot, {
1281
+ _[157] === io ? oo = _[158] : (oo = /* @__PURE__ */ j(ot, {
1282
1282
  "aria-label": io,
1283
1283
  value: "stacked",
1284
1284
  children: ao
1285
- }), v[157] = io, v[158] = oo);
1285
+ }), _[157] = io, _[158] = oo);
1286
1286
  let so;
1287
- v[159] === F ? so = v[160] : (so = F("Split diff view"), v[159] = F, v[160] = so);
1287
+ _[159] === P ? so = _[160] : (so = P("Split diff view"), _[159] = P, _[160] = so);
1288
1288
  let co;
1289
- v[161] === Symbol.for("react.memo_cache_sentinel") ? (co = /* @__PURE__ */ M(we, { className: "size-3.5" }), v[161] = co) : co = v[161];
1289
+ _[161] === Symbol.for("react.memo_cache_sentinel") ? (co = /* @__PURE__ */ j(we, { className: "size-3.5" }), _[161] = co) : co = _[161];
1290
1290
  let lo;
1291
- v[162] === so ? lo = v[163] : (lo = /* @__PURE__ */ M(ot, {
1291
+ _[162] === so ? lo = _[163] : (lo = /* @__PURE__ */ j(ot, {
1292
1292
  "aria-label": so,
1293
1293
  value: "split",
1294
1294
  children: co
1295
- }), v[162] = so, v[163] = lo);
1295
+ }), _[162] = so, _[163] = lo);
1296
1296
  let uo;
1297
- v[164] !== no || v[165] !== ro || v[166] !== oo || v[167] !== lo ? (uo = /* @__PURE__ */ N(at, {
1297
+ _[164] !== no || _[165] !== ro || _[166] !== oo || _[167] !== lo ? (uo = /* @__PURE__ */ M(at, {
1298
1298
  "aria-label": no,
1299
1299
  className: "shrink-0",
1300
1300
  variant: "segmented",
1301
1301
  value: ro,
1302
1302
  onValueChange: Hn,
1303
1303
  children: [oo, lo]
1304
- }), v[164] = no, v[165] = ro, v[166] = oo, v[167] = lo, v[168] = uo) : uo = v[168];
1304
+ }), _[164] = no, _[165] = ro, _[166] = oo, _[167] = lo, _[168] = uo) : uo = _[168];
1305
1305
  let fo;
1306
- v[169] !== F || v[170] !== L ? (fo = F(L ? "Disable diff line wrapping" : "Enable diff line wrapping"), v[169] = F, v[170] = L, v[171] = fo) : fo = v[171];
1306
+ _[169] !== P || _[170] !== L ? (fo = P(L ? "Disable diff line wrapping" : "Enable diff line wrapping"), _[169] = P, _[170] = L, _[171] = fo) : fo = _[171];
1307
1307
  let po;
1308
- v[172] === Symbol.for("react.memo_cache_sentinel") ? (po = (e) => {
1308
+ _[172] === Symbol.for("react.memo_cache_sentinel") ? (po = (e) => {
1309
1309
  cn(!!e);
1310
- }, v[172] = po) : po = v[172];
1310
+ }, _[172] = po) : po = _[172];
1311
1311
  let mo;
1312
- v[173] !== fo || v[174] !== L ? (mo = /* @__PURE__ */ M(ot, {
1312
+ _[173] !== fo || _[174] !== L ? (mo = /* @__PURE__ */ j(ot, {
1313
1313
  "aria-label": fo,
1314
1314
  variant: "ghost",
1315
1315
  size: "sm",
1316
1316
  pressed: L,
1317
1317
  onPressedChange: po
1318
- }), v[173] = fo, v[174] = L, v[175] = mo) : mo = v[175];
1318
+ }), _[173] = fo, _[174] = L, _[175] = mo) : mo = _[175];
1319
1319
  let ho;
1320
- v[176] === Symbol.for("react.memo_cache_sentinel") ? (ho = /* @__PURE__ */ M(Se, { className: "size-3.5" }), v[176] = ho) : ho = v[176];
1320
+ _[176] === Symbol.for("react.memo_cache_sentinel") ? (ho = /* @__PURE__ */ j(Se, { className: "size-3.5" }), _[176] = ho) : ho = _[176];
1321
1321
  let go;
1322
- v[177] === mo ? go = v[178] : (go = /* @__PURE__ */ M(E, {
1322
+ _[177] === mo ? go = _[178] : (go = /* @__PURE__ */ j(E, {
1323
1323
  render: mo,
1324
1324
  children: ho
1325
- }), v[177] = mo, v[178] = go);
1325
+ }), _[177] = mo, _[178] = go);
1326
1326
  let _o;
1327
- v[179] !== F || v[180] !== L ? (_o = F(L ? "Disable line wrapping" : "Enable line wrapping"), v[179] = F, v[180] = L, v[181] = _o) : _o = v[181];
1327
+ _[179] !== P || _[180] !== L ? (_o = P(L ? "Disable line wrapping" : "Enable line wrapping"), _[179] = P, _[180] = L, _[181] = _o) : _o = _[181];
1328
1328
  let vo;
1329
- v[182] === _o ? vo = v[183] : (vo = /* @__PURE__ */ M(b, {
1329
+ _[182] === _o ? vo = _[183] : (vo = /* @__PURE__ */ j(S, {
1330
1330
  side: "top",
1331
1331
  children: _o
1332
- }), v[182] = _o, v[183] = vo);
1332
+ }), _[182] = _o, _[183] = vo);
1333
1333
  let yo;
1334
- v[184] !== go || v[185] !== vo ? (yo = /* @__PURE__ */ N(S, { children: [go, vo] }), v[184] = go, v[185] = vo, v[186] = yo) : yo = v[186];
1334
+ _[184] !== go || _[185] !== vo ? (yo = /* @__PURE__ */ M(C, { children: [go, vo] }), _[184] = go, _[185] = vo, _[186] = yo) : yo = _[186];
1335
1335
  let bo;
1336
- v[187] !== to || v[188] !== uo || v[189] !== yo ? (bo = /* @__PURE__ */ N("div", {
1336
+ _[187] !== to || _[188] !== uo || _[189] !== yo ? (bo = /* @__PURE__ */ M("div", {
1337
1337
  className: "hidden items-center gap-1 @lg:flex",
1338
1338
  children: [
1339
1339
  to,
1340
1340
  uo,
1341
1341
  yo
1342
1342
  ]
1343
- }), v[187] = to, v[188] = uo, v[189] = yo, v[190] = bo) : bo = v[190];
1343
+ }), _[187] = to, _[188] = uo, _[189] = yo, _[190] = bo) : bo = _[190];
1344
1344
  let xo;
1345
- v[191] !== ta || v[192] !== $i.length || v[193] !== F || v[194] !== ca ? (xo = $i.length > 0 ? /* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, {
1346
- render: /* @__PURE__ */ M(y, {
1345
+ _[191] !== ta || _[192] !== $i.length || _[193] !== P || _[194] !== ca ? (xo = $i.length > 0 ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
1346
+ render: /* @__PURE__ */ j(b, {
1347
1347
  type: "button",
1348
1348
  size: "icon-sm",
1349
1349
  variant: "ghost",
1350
- "aria-label": F(ta ? "Expand all files" : "Collapse all files"),
1350
+ "aria-label": P(ta ? "Expand all files" : "Collapse all files"),
1351
1351
  onClick: ca
1352
1352
  }),
1353
- children: M(ta ? ye : _e, { className: "size-3.5" })
1354
- }), /* @__PURE__ */ M(b, {
1353
+ children: j(ta ? ye : _e, { className: "size-3.5" })
1354
+ }), /* @__PURE__ */ j(S, {
1355
1355
  side: "top",
1356
- children: F(ta ? "Expand all files" : "Collapse all files")
1357
- })] }) : null, v[191] = ta, v[192] = $i.length, v[193] = F, v[194] = ca, v[195] = xo) : xo = v[195];
1356
+ children: P(ta ? "Expand all files" : "Collapse all files")
1357
+ })] }) : null, _[191] = ta, _[192] = $i.length, _[193] = P, _[194] = ca, _[195] = xo) : xo = _[195];
1358
1358
  let So;
1359
- v[196] !== F || v[197] !== fn || v[198] !== pn || v[199] !== Ai ? (So = Ai > 0 ? /* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, {
1360
- render: /* @__PURE__ */ M(ot, {
1361
- "aria-label": F("Hide test files"),
1359
+ _[196] !== P || _[197] !== fn || _[198] !== pn || _[199] !== Ai ? (So = Ai > 0 ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
1360
+ render: /* @__PURE__ */ j(ot, {
1361
+ "aria-label": P("Hide test files"),
1362
1362
  variant: "ghost",
1363
1363
  size: "sm",
1364
1364
  pressed: fn,
1365
1365
  onPressedChange: (e) => pn(!!e)
1366
1366
  }),
1367
- children: /* @__PURE__ */ M(Ee, { className: "size-3.5" })
1368
- }), /* @__PURE__ */ M(b, {
1367
+ children: /* @__PURE__ */ j(Ee, { className: "size-3.5" })
1368
+ }), /* @__PURE__ */ j(S, {
1369
1369
  side: "top",
1370
- children: F(fn ? "Show test files" : "Hide test files")
1371
- })] }) : null, v[196] = F, v[197] = fn, v[198] = pn, v[199] = Ai, v[200] = So) : So = v[200];
1370
+ children: P(fn ? "Show test files" : "Hide test files")
1371
+ })] }) : null, _[196] = P, _[197] = fn, _[198] = pn, _[199] = Ai, _[200] = So) : So = _[200];
1372
1372
  let Co;
1373
- v[201] !== $i.length || v[202] !== un || v[203] !== F || v[204] !== dn ? (Co = $i.length > 0 ? /* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, {
1374
- render: /* @__PURE__ */ M(ot, {
1375
- "aria-label": F(un ? "Hide file tree" : "Show file tree"),
1373
+ _[201] !== $i.length || _[202] !== un || _[203] !== P || _[204] !== dn ? (Co = $i.length > 0 ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
1374
+ render: /* @__PURE__ */ j(ot, {
1375
+ "aria-label": P(un ? "Hide file tree" : "Show file tree"),
1376
1376
  variant: "ghost",
1377
1377
  size: "sm",
1378
1378
  pressed: un,
1379
1379
  onPressedChange: (e) => dn(!!e)
1380
1380
  }),
1381
- children: /* @__PURE__ */ M(ve, { className: "size-3.5" })
1382
- }), /* @__PURE__ */ M(b, {
1381
+ children: /* @__PURE__ */ j(ve, { className: "size-3.5" })
1382
+ }), /* @__PURE__ */ j(S, {
1383
1383
  side: "top",
1384
- children: F(un ? "Hide file tree" : "Show file tree")
1385
- })] }) : null, v[201] = $i.length, v[202] = un, v[203] = F, v[204] = dn, v[205] = Co) : Co = v[205];
1384
+ children: P(un ? "Hide file tree" : "Show file tree")
1385
+ })] }) : null, _[201] = $i.length, _[202] = un, _[203] = P, _[204] = dn, _[205] = Co) : Co = _[205];
1386
1386
  let wo;
1387
- v[206] !== qa || v[207] !== bo || v[208] !== xo || v[209] !== So || v[210] !== Co ? (wo = /* @__PURE__ */ N("div", {
1387
+ _[206] !== qa || _[207] !== bo || _[208] !== xo || _[209] !== So || _[210] !== Co ? (wo = /* @__PURE__ */ M("div", {
1388
1388
  className: "flex shrink-0 items-center gap-1",
1389
1389
  children: [
1390
1390
  qa,
@@ -1393,51 +1393,51 @@ function Vn(p) {
1393
1393
  So,
1394
1394
  Co
1395
1395
  ]
1396
- }), v[206] = qa, v[207] = bo, v[208] = xo, v[209] = So, v[210] = Co, v[211] = wo) : wo = v[211];
1397
- let To = /* @__PURE__ */ N("div", {
1396
+ }), _[206] = qa, _[207] = bo, _[208] = xo, _[209] = So, _[210] = Co, _[211] = wo) : wo = _[211];
1397
+ let To = /* @__PURE__ */ M("div", {
1398
1398
  className: "@container flex h-10 min-h-10 shrink-0 items-center justify-between gap-2 border-b border-border/60 bg-background px-4 text-xs text-muted-foreground",
1399
- children: [/* @__PURE__ */ N("div", {
1399
+ children: [/* @__PURE__ */ M("div", {
1400
1400
  className: "flex min-w-0 flex-1 items-center gap-3",
1401
- children: [la.length > 0 ? /* @__PURE__ */ N(ee, { children: [/* @__PURE__ */ N(c, {
1402
- render: /* @__PURE__ */ M(y, {
1401
+ children: [la.length > 0 ? /* @__PURE__ */ M(h, { children: [/* @__PURE__ */ M(c, {
1402
+ render: /* @__PURE__ */ j(b, {
1403
1403
  size: "xs",
1404
1404
  variant: "secondary"
1405
1405
  }),
1406
1406
  className: "min-w-0 max-w-64",
1407
- "aria-label": F("Diff scope: {scope}", { scope: wa }),
1408
- children: [/* @__PURE__ */ M("span", {
1407
+ "aria-label": P("Diff scope: {scope}", { scope: wa }),
1408
+ children: [/* @__PURE__ */ j("span", {
1409
1409
  className: "truncate",
1410
1410
  children: wa
1411
- }), /* @__PURE__ */ M(ge, { className: "size-3.5 shrink-0 opacity-70" })]
1412
- }), /* @__PURE__ */ N(a, {
1411
+ }), /* @__PURE__ */ j(ge, { className: "size-3.5 shrink-0 opacity-70" })]
1412
+ }), /* @__PURE__ */ M(o, {
1413
1413
  align: "start",
1414
1414
  className: "max-w-[min(28rem,calc(100vw-2rem))]",
1415
- children: [/* @__PURE__ */ N(d, {
1415
+ children: [/* @__PURE__ */ M(u, {
1416
1416
  value: V ?? "all",
1417
1417
  onValueChange: (e) => ke(e === "all" ? null : e),
1418
- children: [/* @__PURE__ */ M(h, {
1418
+ children: [/* @__PURE__ */ j(p, {
1419
1419
  value: "all",
1420
1420
  closeOnClick: !0,
1421
- children: /* @__PURE__ */ M("span", { children: /* @__PURE__ */ M(T, { children: "All commits" }) })
1421
+ children: /* @__PURE__ */ j("span", { children: /* @__PURE__ */ j(v, { children: "All commits" }) })
1422
1422
  }), la.slice(0, en).map(Gn)]
1423
- }), la.length > en ? /* @__PURE__ */ M(g, {
1423
+ }), la.length > en ? /* @__PURE__ */ j(m, {
1424
1424
  closeOnClick: !1,
1425
1425
  onClick: () => tn(Wn),
1426
- children: /* @__PURE__ */ M("span", {
1426
+ children: /* @__PURE__ */ j("span", {
1427
1427
  className: "text-muted-foreground",
1428
- children: F("{count, plural, one {Show more ({count} left)} other {Show more ({count} left)}}", { count: la.length - en })
1428
+ children: P("{count, plural, one {Show more ({count} left)} other {Show more ({count} left)}}", { count: la.length - en })
1429
1429
  })
1430
1430
  }) : null]
1431
- })] }) : null, /* @__PURE__ */ N(Qe, { children: [
1432
- /* @__PURE__ */ N("span", {
1431
+ })] }) : null, /* @__PURE__ */ M(Qe, { children: [
1432
+ /* @__PURE__ */ M("span", {
1433
1433
  className: "shrink-0 tabular-nums",
1434
- children: [F("{count, plural, one {{count} file} other {{count} files}}", { count: Y.length }), X === null ? "" : "+"]
1434
+ children: [P("{count, plural, one {{count} file} other {{count} files}}", { count: Y.length }), X === null ? "" : "+"]
1435
1435
  }),
1436
1436
  Da,
1437
- Pr.enabled && Y.length > 0 ? /* @__PURE__ */ N("span", {
1437
+ Pr.enabled && Y.length > 0 ? /* @__PURE__ */ M("span", {
1438
1438
  className: "flex min-w-0 items-center gap-1 tabular-nums",
1439
1439
  children: [
1440
- /* @__PURE__ */ N("span", {
1440
+ /* @__PURE__ */ M("span", {
1441
1441
  className: "shrink-0",
1442
1442
  children: [
1443
1443
  Mi.filter(Lr).length,
@@ -1445,74 +1445,74 @@ function Vn(p) {
1445
1445
  Y.length
1446
1446
  ]
1447
1447
  }),
1448
- /* @__PURE__ */ M("span", {
1448
+ /* @__PURE__ */ j("span", {
1449
1449
  className: "truncate",
1450
- children: jr === "environment" ? F("viewed in {app}", { app: e }) : F("viewed", { $context: "files marked as viewed" })
1450
+ children: jr === "environment" ? P("viewed in {app}", { app: e }) : P("viewed", { $context: "files marked as viewed" })
1451
1451
  }),
1452
- jr === "environment" ? /* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, {
1453
- render: /* @__PURE__ */ M("span", { className: "flex shrink-0 items-center" }),
1454
- children: /* @__PURE__ */ M(be, {
1455
- "aria-label": F("These ticks are kept here, not on the host"),
1452
+ jr === "environment" ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
1453
+ render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
1454
+ children: /* @__PURE__ */ j(be, {
1455
+ "aria-label": P("These ticks are kept here, not on the host"),
1456
1456
  className: "text-muted-foreground size-3.5"
1457
1457
  })
1458
- }), /* @__PURE__ */ M(b, {
1458
+ }), /* @__PURE__ */ j(S, {
1459
1459
  side: "bottom",
1460
- children: /* @__PURE__ */ M(T, { children: "This host keeps no shared record of which files you have read, so these ticks are kept by this environment. They follow you between the apps connected to it, but the host's own web UI will not show them." })
1460
+ children: /* @__PURE__ */ j(v, { children: "This host keeps no shared record of which files you have read, so these ticks are kept by this environment. They follow you between the apps connected to it, but the host's own web UI will not show them." })
1461
1461
  })] }) : null,
1462
- Pr.error === null ? null : /* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, {
1463
- render: /* @__PURE__ */ M("span", { className: "flex shrink-0 items-center" }),
1464
- children: /* @__PURE__ */ M(xe, {
1465
- "aria-label": F("Your ticks could not be read"),
1462
+ Pr.error === null ? null : /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
1463
+ render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
1464
+ children: /* @__PURE__ */ j(xe, {
1465
+ "aria-label": P("Your ticks could not be read"),
1466
1466
  className: "size-3.5 text-warning-foreground"
1467
1467
  })
1468
- }), /* @__PURE__ */ M(b, {
1468
+ }), /* @__PURE__ */ j(S, {
1469
1469
  side: "bottom",
1470
- children: /* @__PURE__ */ N(T, { children: ["The boxes below are whatever was last read, and empty if nothing has been read yet. ", /* @__PURE__ */ M(te, { children: Pr.error })] })
1470
+ children: /* @__PURE__ */ M(v, { children: ["The boxes below are whatever was last read, and empty if nothing has been read yet. ", /* @__PURE__ */ j(le, { children: Pr.error })] })
1471
1471
  })] }),
1472
- Pr.truncated ? /* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, {
1473
- render: /* @__PURE__ */ M("span", { className: "flex shrink-0 items-center" }),
1474
- children: /* @__PURE__ */ M(xe, {
1475
- "aria-label": F("This count covers only part of the change"),
1472
+ Pr.truncated ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
1473
+ render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
1474
+ children: /* @__PURE__ */ j(xe, {
1475
+ "aria-label": P("This count covers only part of the change"),
1476
1476
  className: "size-3.5 text-warning-foreground"
1477
1477
  })
1478
- }), /* @__PURE__ */ M(b, {
1478
+ }), /* @__PURE__ */ j(S, {
1479
1479
  side: "bottom",
1480
- children: /* @__PURE__ */ M(T, { children: "This change has more files than the host will report ticks for in one read, so the count is short and some boxes below start empty." })
1480
+ children: /* @__PURE__ */ j(v, { children: "This change has more files than the host will report ticks for in one read, so the count is short and some boxes below start empty." })
1481
1481
  })] }) : null
1482
1482
  ]
1483
1483
  }) : null,
1484
1484
  Oa,
1485
- V !== null && ci.inlineComment ? /* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, {
1486
- render: /* @__PURE__ */ M("span", { className: "flex shrink-0 items-center" }),
1487
- children: /* @__PURE__ */ M(Oe, {
1488
- "aria-label": F("Line comments are written from the whole change"),
1485
+ V !== null && ci.inlineComment ? /* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, {
1486
+ render: /* @__PURE__ */ j("span", { className: "flex shrink-0 items-center" }),
1487
+ children: /* @__PURE__ */ j(Oe, {
1488
+ "aria-label": P("Line comments are written from the whole change"),
1489
1489
  className: "size-3.5"
1490
1490
  })
1491
- }), /* @__PURE__ */ M(b, {
1491
+ }), /* @__PURE__ */ j(S, {
1492
1492
  side: "bottom",
1493
- children: /* @__PURE__ */ M(T, { children: "A comment is anchored to the whole change, so switch to All commits to write one." })
1493
+ children: /* @__PURE__ */ j(v, { children: "A comment is anchored to the whole change, so switch to All commits to write one." })
1494
1494
  })] }) : null
1495
1495
  ] })]
1496
1496
  }), wo]
1497
1497
  }), Eo;
1498
- v[212] !== Q || v[213] !== Z || v[214] !== $ || v[215] !== sa || v[216] !== P ? (Eo = () => {
1499
- P !== null && ri.current !== P.nonce && (Z.some((e) => O(e.fileDiff) === P.path) ? (ri.current = P.nonce, sa(P.path)) : Q && $());
1500
- }, v[212] = Q, v[213] = Z, v[214] = $, v[215] = sa, v[216] = P, v[217] = Eo) : Eo = v[217];
1498
+ _[212] !== Q || _[213] !== Z || _[214] !== $ || _[215] !== sa || _[216] !== N ? (Eo = () => {
1499
+ N !== null && ri.current !== N.nonce && (Z.some((e) => O(e.fileDiff) === N.path) ? (ri.current = N.nonce, sa(N.path)) : Q && $());
1500
+ }, _[212] = Q, _[213] = Z, _[214] = $, _[215] = sa, _[216] = N, _[217] = Eo) : Eo = _[217];
1501
1501
  let Do = zt(Eo), Oo;
1502
- v[218] === Do ? Oo = v[219] : (Oo = () => {
1502
+ _[218] === Do ? Oo = _[219] : (Oo = () => {
1503
1503
  Do();
1504
- }, v[218] = Do, v[219] = Oo);
1504
+ }, _[218] = Do, _[219] = Oo);
1505
1505
  let ko;
1506
- v[220] !== Q || v[221] !== Z || v[222] !== P ? (ko = [
1506
+ _[220] !== Q || _[221] !== Z || _[222] !== N ? (ko = [
1507
1507
  Q,
1508
1508
  Z,
1509
- P
1510
- ], v[220] = Q, v[221] = Z, v[222] = P, v[223] = ko) : ko = v[223], Rt(Oo, ko);
1509
+ N
1510
+ ], _[220] = Q, _[221] = Z, _[222] = N, _[223] = ko) : ko = _[223], Rt(Oo, ko);
1511
1511
  let Ao = Bt(null), jo;
1512
- v[224] !== Q || v[225] !== V || v[226] !== w.commits || v[227] !== Z || v[228] !== Ti || v[229] !== Ei || v[230] !== $ || v[231] !== U.length || v[232] !== X || v[233] !== Ft || v[234] !== J || v[235] !== sa || v[236] !== k || v[237] !== H || v[238] !== Oi ? (jo = () => {
1512
+ _[224] !== Q || _[225] !== V || _[226] !== T.commits || _[227] !== Z || _[228] !== Ti || _[229] !== Ei || _[230] !== $ || _[231] !== U.length || _[232] !== X || _[233] !== Ft || _[234] !== J || _[235] !== sa || _[236] !== k || _[237] !== H || _[238] !== Oi ? (jo = () => {
1513
1513
  if (k === void 0 && (Ao.current = null), k === void 0 || Ti?.kind !== "diff") return;
1514
1514
  let e = Ze(k);
1515
- if ((w.commits.some((t) => t.oid === e) ? e : null) !== V) return;
1515
+ if ((T.commits.some((t) => t.oid === e) ? e : null) !== V) return;
1516
1516
  let t = `${H}:${k}`;
1517
1517
  if (Ao.current === t) return;
1518
1518
  if (!J || !Z.some((e) => O(e.fileDiff) === J)) {
@@ -1530,52 +1530,52 @@ function Vn(p) {
1530
1530
  side: Ne(n.side),
1531
1531
  endSide: Ne(n.endSide)
1532
1532
  } : void 0);
1533
- }, v[224] = Q, v[225] = V, v[226] = w.commits, v[227] = Z, v[228] = Ti, v[229] = Ei, v[230] = $, v[231] = U.length, v[232] = X, v[233] = Ft, v[234] = J, v[235] = sa, v[236] = k, v[237] = H, v[238] = Oi, v[239] = jo) : jo = v[239];
1533
+ }, _[224] = Q, _[225] = V, _[226] = T.commits, _[227] = Z, _[228] = Ti, _[229] = Ei, _[230] = $, _[231] = U.length, _[232] = X, _[233] = Ft, _[234] = J, _[235] = sa, _[236] = k, _[237] = H, _[238] = Oi, _[239] = jo) : jo = _[239];
1534
1534
  let Mo = zt(jo), No;
1535
- v[240] === Mo ? No = v[241] : (No = () => {
1535
+ _[240] === Mo ? No = _[241] : (No = () => {
1536
1536
  Mo();
1537
- }, v[240] = Mo, v[241] = No);
1537
+ }, _[240] = Mo, _[241] = No);
1538
1538
  let Po;
1539
- v[242] !== Q || v[243] !== Z || v[244] !== J || v[245] !== k ? (Po = [
1539
+ _[242] !== Q || _[243] !== Z || _[244] !== J || _[245] !== k ? (Po = [
1540
1540
  k,
1541
1541
  J,
1542
1542
  Q,
1543
1543
  Z
1544
- ], v[242] = Q, v[243] = Z, v[244] = J, v[245] = k, v[246] = Po) : Po = v[246], Rt(No, Po);
1545
- let Fo = (e) => /* @__PURE__ */ N("div", {
1544
+ ], _[242] = Q, _[243] = Z, _[244] = J, _[245] = k, _[246] = Po) : Po = _[246], Rt(No, Po);
1545
+ let Fo = (e) => /* @__PURE__ */ M("div", {
1546
1546
  className: "flex h-full min-h-0 flex-col",
1547
- children: [To, /* @__PURE__ */ M("div", {
1548
- ref: ne,
1547
+ children: [To, /* @__PURE__ */ j("div", {
1548
+ ref: y,
1549
1549
  className: "min-h-0 flex-1 overflow-auto",
1550
1550
  children: e
1551
1551
  })]
1552
- }), Io = oe(le.get(w.provider).changeRequest);
1553
- if (G.isPending && U.length === 0) return Fo(/* @__PURE__ */ M(St, { label: F("Loading {term, select, mr {merge request} cr {change request} other {pull request}} diff...", { term: Io }) }));
1552
+ }), Io = oe(ue.get(T.provider).changeRequest);
1553
+ if (G.isPending && U.length === 0) return Fo(/* @__PURE__ */ j(St, { label: P("Loading {term, select, mr {merge request} cr {change request} other {pull request}} diff...", { term: Io }) }));
1554
1554
  if (G.error && U.length === 0) {
1555
1555
  let e;
1556
- v[247] === G ? e = v[248] : (e = () => G.refresh(), v[247] = G, v[248] = e);
1556
+ _[247] === G ? e = _[248] : (e = () => G.refresh(), _[247] = G, _[248] = e);
1557
1557
  let t;
1558
- return v[249] !== w.provider || v[250] !== w.url || v[251] !== G.error || v[252] !== e ? (t = /* @__PURE__ */ M(on, {
1558
+ return _[249] !== T.provider || _[250] !== T.url || _[251] !== G.error || _[252] !== e ? (t = /* @__PURE__ */ j(on, {
1559
1559
  error: G.error,
1560
- provider: w.provider,
1561
- url: w.url,
1560
+ provider: T.provider,
1561
+ url: T.url,
1562
1562
  onRetry: e
1563
- }), v[249] = w.provider, v[250] = w.url, v[251] = G.error, v[252] = e, v[253] = t) : t = v[253], Fo(t);
1563
+ }), _[249] = T.provider, _[250] = T.url, _[251] = G.error, _[252] = e, _[253] = t) : t = _[253], Fo(t);
1564
1564
  }
1565
1565
  if (Ji !== null) return Fo(Ji);
1566
- if (Z.length === 0 && X === null) return Fo(/* @__PURE__ */ M("p", {
1566
+ if (Z.length === 0 && X === null) return Fo(/* @__PURE__ */ j("p", {
1567
1567
  className: "px-4 py-5 text-sm text-muted-foreground",
1568
- children: V === null ? F("This {term, select, mr {merge request} cr {change request} other {pull request}} has no file changes.", { term: Io }) : F("This commit has no file changes.")
1568
+ children: V === null ? P("This {term, select, mr {merge request} cr {change request} other {pull request}} has no file changes.", { term: Io }) : P("This commit has no file changes.")
1569
1569
  }));
1570
1570
  let Lo;
1571
- v[254] === Ri ? Lo = v[255] : (Lo = (e) => !Ri.has(e.id), v[254] = Ri, v[255] = Lo);
1572
- let Ro = w.reviewThreads.filter(Lo), zo = /* @__PURE__ */ new Map();
1571
+ _[254] === Ri ? Lo = _[255] : (Lo = (e) => !Ri.has(e.id), _[254] = Ri, _[255] = Lo);
1572
+ let Ro = T.reviewThreads.filter(Lo), zo = /* @__PURE__ */ new Map();
1573
1573
  for (let e of Ro) {
1574
1574
  let t = zo.get(e.path);
1575
1575
  t ? t.push(e) : zo.set(e.path, [e]);
1576
1576
  }
1577
1577
  let Bo;
1578
- return v[256] !== Z || v[257] !== aa ? (Bo = (e) => {
1578
+ return _[256] !== Z || _[257] !== aa ? (Bo = (e) => {
1579
1579
  let t = e.nativeEvent.composedPath?.() ?? [];
1580
1580
  for (let e of t) if (e instanceof HTMLElement) {
1581
1581
  if (e instanceof HTMLButtonElement || e instanceof HTMLAnchorElement || e.hasAttribute("data-viewed-toggle")) return;
@@ -1587,68 +1587,68 @@ function Vn(p) {
1587
1587
  return;
1588
1588
  }
1589
1589
  }
1590
- }, v[256] = Z, v[257] = aa, v[258] = Bo) : Bo = v[258], /* @__PURE__ */ N("div", {
1590
+ }, _[256] = Z, _[257] = aa, _[258] = Bo) : Bo = _[258], /* @__PURE__ */ M("div", {
1591
1591
  className: "flex h-full min-h-0 flex-col",
1592
1592
  children: [
1593
1593
  To,
1594
- zo.size > 0 ? /* @__PURE__ */ M("div", {
1594
+ zo.size > 0 ? /* @__PURE__ */ j("div", {
1595
1595
  className: "shrink-0 border-b border-border/60",
1596
- children: /* @__PURE__ */ N(ft, {
1596
+ children: /* @__PURE__ */ M(ft, {
1597
1597
  open: bn,
1598
1598
  onOpenChange: Sn,
1599
- children: [/* @__PURE__ */ M("h2", { children: /* @__PURE__ */ N(dt, {
1599
+ children: [/* @__PURE__ */ j("h2", { children: /* @__PURE__ */ M(dt, {
1600
1600
  className: "flex w-full items-center gap-1.5 px-4 py-2 text-left text-xs text-muted-foreground",
1601
1601
  children: [
1602
- /* @__PURE__ */ M("span", { children: F(X === null ? "Conversations not on the current diff" : "Conversations not on the diff loaded so far") }),
1603
- /* @__PURE__ */ M(me, {
1602
+ /* @__PURE__ */ j("span", { children: P(X === null ? "Conversations not on the current diff" : "Conversations not on the diff loaded so far") }),
1603
+ /* @__PURE__ */ j(me, {
1604
1604
  "aria-hidden": !0,
1605
1605
  className: se("size-3.5 transition-transform", bn && "rotate-90")
1606
1606
  }),
1607
- /* @__PURE__ */ M("span", {
1607
+ /* @__PURE__ */ j("span", {
1608
1608
  "aria-hidden": !0,
1609
1609
  className: "tabular-nums",
1610
1610
  children: Ro.length
1611
1611
  }),
1612
- /* @__PURE__ */ M("span", {
1612
+ /* @__PURE__ */ j("span", {
1613
1613
  className: "sr-only",
1614
- children: F("{count, plural, one {{count} conversation} other {{count} conversations}}", { count: Ro.length })
1614
+ children: P("{count, plural, one {{count} conversation} other {{count} conversations}}", { count: Ro.length })
1615
1615
  })
1616
1616
  ]
1617
- }) }), /* @__PURE__ */ M(ut, { children: /* @__PURE__ */ M("div", {
1617
+ }) }), /* @__PURE__ */ j(ut, { children: /* @__PURE__ */ j("div", {
1618
1618
  className: "max-h-64 space-y-1 overflow-auto px-1 pb-1",
1619
1619
  children: [...zo].map((e) => {
1620
1620
  let [t, n] = e;
1621
- return /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, { render: /* @__PURE__ */ M("p", {
1621
+ return /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, { render: /* @__PURE__ */ j("p", {
1622
1622
  className: "truncate px-3 text-xs text-muted-foreground",
1623
1623
  children: t
1624
- }) }), /* @__PURE__ */ M(b, {
1624
+ }) }), /* @__PURE__ */ j(S, {
1625
1625
  side: "top",
1626
1626
  children: t
1627
- })] }), /* @__PURE__ */ M("div", {
1627
+ })] }), /* @__PURE__ */ j("div", {
1628
1628
  className: "mt-1 space-y-2",
1629
- children: n.map((e) => /* @__PURE__ */ N("div", { children: [e.line === null ? null : /* @__PURE__ */ M("p", {
1629
+ children: n.map((e) => /* @__PURE__ */ M("div", { children: [e.line === null ? null : /* @__PURE__ */ j("p", {
1630
1630
  className: "px-3 text-xs text-muted-foreground",
1631
- children: /* @__PURE__ */ N(T, { children: ["Line ", /* @__PURE__ */ M(te, { children: e.line })] })
1631
+ children: /* @__PURE__ */ M(v, { children: ["Line ", /* @__PURE__ */ j(le, { children: e.line })] })
1632
1632
  }), ba(e)] }, e.id))
1633
1633
  })] }, t);
1634
1634
  })
1635
1635
  }) })]
1636
1636
  })
1637
1637
  }) : null,
1638
- /* @__PURE__ */ N("div", {
1638
+ /* @__PURE__ */ M("div", {
1639
1639
  className: "flex min-h-0 flex-1 overflow-hidden",
1640
- children: [/* @__PURE__ */ M("div", {
1640
+ children: [/* @__PURE__ */ j("div", {
1641
1641
  className: "relative min-h-0 min-w-0 flex-1",
1642
1642
  onWheelCapture: ni.cancel,
1643
1643
  onTouchStartCapture: ni.cancel,
1644
1644
  onPointerDownCapture: ni.cancel,
1645
1645
  onKeyDownCapture: ni.cancel,
1646
1646
  onClickCapture: Bo,
1647
- children: /* @__PURE__ */ M(Ln, {
1647
+ children: /* @__PURE__ */ j(Ln, {
1648
1648
  value: oa,
1649
- children: /* @__PURE__ */ M(Ct, {
1649
+ children: /* @__PURE__ */ j(Ct, {
1650
1650
  className: "@container h-full overflow-auto [scrollbar-gutter:stable]",
1651
- containerRef: ne,
1651
+ containerRef: y,
1652
1652
  viewerRef: ni.attach,
1653
1653
  items: Z,
1654
1654
  selectedLines: mn,
@@ -1661,30 +1661,30 @@ function Vn(p) {
1661
1661
  unsafeCSSExtra: `${kn}\n${Cn}`
1662
1662
  })
1663
1663
  })
1664
- }), un ? /* @__PURE__ */ M(pt, {
1664
+ }), un ? /* @__PURE__ */ j(pt, {
1665
1665
  resizable: !0,
1666
1666
  storageKey: "hanzodev:diff-file-tree-width",
1667
1667
  defaultWidth: 320,
1668
1668
  defaultWidthFraction: .4,
1669
1669
  minWidth: 192,
1670
- resizeLabel: F("Resize PR Code files"),
1671
- children: /* @__PURE__ */ M(Pt, {
1672
- ariaLabel: F("{term, select, mr {Merge request} cr {Change request} other {Pull request}} #{number} files", {
1670
+ resizeLabel: P("Resize PR Code files"),
1671
+ children: /* @__PURE__ */ j(Pt, {
1672
+ ariaLabel: P("{term, select, mr {Merge request} cr {Change request} other {Pull request}} #{number} files", {
1673
1673
  term: Io,
1674
- number: w.number
1674
+ number: T.number
1675
1675
  }),
1676
1676
  entries: Fi,
1677
1677
  onSelectFile: sa,
1678
- footer: X === null ? null : /* @__PURE__ */ M("div", {
1678
+ footer: X === null ? null : /* @__PURE__ */ j("div", {
1679
1679
  className: "shrink-0 border-t border-border/60 p-2",
1680
- children: /* @__PURE__ */ M(y, {
1680
+ children: /* @__PURE__ */ j(b, {
1681
1681
  type: "button",
1682
1682
  size: "xs",
1683
1683
  variant: "outline",
1684
1684
  className: "w-full",
1685
1685
  disabled: G.isPending,
1686
1686
  onClick: G.error === null ? $ : () => G.refresh(),
1687
- children: G.error === null ? G.isPending ? F("Loading more files...") : F("Load more files") : F("Retry")
1687
+ children: G.error === null ? G.isPending ? P("Loading more files...") : P("Load more files") : P("Retry")
1688
1688
  })
1689
1689
  })
1690
1690
  })
@@ -1705,18 +1705,18 @@ function Wn(e) {
1705
1705
  return e + Dn;
1706
1706
  }
1707
1707
  function Gn(e) {
1708
- return /* @__PURE__ */ M(h, {
1708
+ return /* @__PURE__ */ j(p, {
1709
1709
  value: e.oid,
1710
1710
  closeOnClick: !0,
1711
- children: /* @__PURE__ */ N("span", {
1711
+ children: /* @__PURE__ */ M("span", {
1712
1712
  className: "flex items-center gap-2",
1713
- children: [/* @__PURE__ */ N(S, { children: [/* @__PURE__ */ M(E, { render: /* @__PURE__ */ M("span", {
1713
+ children: [/* @__PURE__ */ M(C, { children: [/* @__PURE__ */ j(E, { render: /* @__PURE__ */ j("span", {
1714
1714
  className: "min-w-0 truncate",
1715
1715
  children: e.messageHeadline
1716
- }) }), /* @__PURE__ */ M(b, {
1716
+ }) }), /* @__PURE__ */ j(S, {
1717
1717
  side: "top",
1718
1718
  children: e.messageHeadline
1719
- })] }), /* @__PURE__ */ M("span", {
1719
+ })] }), /* @__PURE__ */ j("span", {
1720
1720
  className: "ml-auto shrink-0 font-mono text-xs text-muted-foreground",
1721
1721
  children: e.oid.slice(0, 7)
1722
1722
  })]
@@ -1816,31 +1816,31 @@ function pr(e) {
1816
1816
  };
1817
1817
  }
1818
1818
  function mr(e) {
1819
- let t = Vt(14), { path: n, status: r, onLoad: i } = e, a = _(), o;
1820
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ M(xe, {
1819
+ let t = Ht(14), { path: n, status: r, onLoad: a } = e, o = i(), s;
1820
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ j(xe, {
1821
1821
  "aria-hidden": !0,
1822
1822
  className: "size-3.5 shrink-0 text-warning"
1823
- }), t[0] = o) : o = t[0];
1824
- let s;
1825
- t[1] !== a || t[2] !== r ? (s = a(r === "error" ? "Couldn't load this diff." : r === "empty" ? "No text diff for this file." : "Diff too large to display."), t[1] = a, t[2] = r, t[3] = s) : s = t[3];
1823
+ }), t[0] = s) : s = t[0];
1826
1824
  let c;
1827
- t[4] === s ? c = t[5] : (c = /* @__PURE__ */ M("span", { children: s }), t[4] = s, t[5] = c);
1825
+ t[1] !== o || t[2] !== r ? (c = o(r === "error" ? "Couldn't load this diff." : r === "empty" ? "No text diff for this file." : "Diff too large to display."), t[1] = o, t[2] = r, t[3] = c) : c = t[3];
1828
1826
  let l;
1829
- t[6] !== a || t[7] !== i || t[8] !== n || t[9] !== r ? (l = i === void 0 || r === "empty" ? null : /* @__PURE__ */ M(y, {
1827
+ t[4] === c ? l = t[5] : (l = /* @__PURE__ */ j("span", { children: c }), t[4] = c, t[5] = l);
1828
+ let u;
1829
+ t[6] !== o || t[7] !== a || t[8] !== n || t[9] !== r ? (u = a === void 0 || r === "empty" ? null : /* @__PURE__ */ j(b, {
1830
1830
  size: "micro",
1831
1831
  variant: "warning-outline",
1832
1832
  disabled: r === "loading",
1833
- onClick: () => i(n),
1834
- children: a(r === "loading" ? "Loading..." : r === "error" ? "Retry" : "Load diff")
1835
- }), t[6] = a, t[7] = i, t[8] = n, t[9] = r, t[10] = l) : l = t[10];
1836
- let u;
1837
- return t[11] !== c || t[12] !== l ? (u = /* @__PURE__ */ N("div", {
1833
+ onClick: () => a(n),
1834
+ children: o(r === "loading" ? "Loading..." : r === "error" ? "Retry" : "Load diff")
1835
+ }), t[6] = o, t[7] = a, t[8] = n, t[9] = r, t[10] = u) : u = t[10];
1836
+ let d;
1837
+ return t[11] !== l || t[12] !== u ? (d = /* @__PURE__ */ M("div", {
1838
1838
  className: "flex items-center gap-2 bg-warning/8 px-3 py-2 text-xs text-warning-foreground",
1839
1839
  children: [
1840
- o,
1841
- c,
1842
- l
1840
+ s,
1841
+ l,
1842
+ u
1843
1843
  ]
1844
- }), t[11] = c, t[12] = l, t[13] = u) : u = t[13], u;
1844
+ }), t[11] = l, t[12] = u, t[13] = d) : d = t[13], d;
1845
1845
  }
1846
1846
  export { Vn as default };