@p4code/cli 0.9.18 → 0.9.19

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 (362) hide show
  1. package/dist/AcpMcpStdioBridge-DbCGhPmy.mjs +3 -0
  2. package/dist/{AcpMcpStdioBridge-4vUttgH1.mjs → AcpMcpStdioBridge-DxIZyDJz.mjs} +4 -4
  3. package/dist/{Effect-_Rz7VLdg.mjs → Effect-BqRgldaH.mjs} +20 -4
  4. package/dist/{Schema-APnY3Ozr.mjs → Schema-CkGB1Dgx.mjs} +2 -2
  5. package/dist/{Stream-CJtpwu3-.mjs → Stream-DZTo5F3N.mjs} +2 -2
  6. package/dist/{TraceDiagnostics-CeQ-TvdA.mjs → TraceDiagnostics-BU8mTsuy.mjs} +278 -50
  7. package/dist/bin.mjs +2 -2
  8. package/dist/{binCli-DzRO6f_z.mjs → binCli-CJGD6FcB.mjs} +297 -125
  9. package/dist/claude-history-worker.mjs +1 -1
  10. package/dist/{claudeHistoryWorker-B6KX_N9G.mjs → claudeHistoryWorker-Cst8OnLH.mjs} +1 -1
  11. package/dist/{claudeHistoryWorker-DZ1Ft4NK.mjs → claudeHistoryWorker-r4mV4Dxy.mjs} +2 -2
  12. package/dist/client/.vite/manifest.json +2143 -2131
  13. package/dist/client/assets/{2NI2N5EU-Ds9jiLPm.js → 2NI2N5EU-dXNVRqH0.js} +2 -2
  14. package/dist/client/assets/{4UO7MD6I-BWEQQJHY.js → 4UO7MD6I-BnTV2LIU.js} +2 -2
  15. package/dist/client/assets/{5B3SVYGG-lcm66GRf.js → 5B3SVYGG-BW_NJOn9.js} +2 -2
  16. package/dist/client/assets/{5GK6JWQ2-DegG64te.js → 5GK6JWQ2-zR4M88FU.js} +2 -2
  17. package/dist/client/assets/{5N7A7DKN-CDv2ioO3.js → 5N7A7DKN-DIzrmjXm.js} +2 -2
  18. package/dist/client/assets/{5OC2THR4-CaZVvwg8.js → 5OC2THR4-D9gz0spY.js} +2 -2
  19. package/dist/client/assets/{5S6HY5KT-B8WMtvrw.js → 5S6HY5KT-BFO1LsJz.js} +2 -2
  20. package/dist/client/assets/{6IMQ5BUJ-R-et-GtO.js → 6IMQ5BUJ-CflGSI2z.js} +2 -2
  21. package/dist/client/assets/{6OLKWJ4F-CdOZHr7D.js → 6OLKWJ4F-B_-tUtQE.js} +2 -2
  22. package/dist/client/assets/{74OO7NKP-DVS5qE0v.js → 74OO7NKP-CNFGk064.js} +2 -2
  23. package/dist/client/assets/{75O6YZUN-B6bJpGs2.js → 75O6YZUN-DSw7e3qz.js} +2 -2
  24. package/dist/client/assets/{77XECAW3-DDozcJnk.js → 77XECAW3-C1endahg.js} +2 -2
  25. package/dist/client/assets/{ABYRPUBD-BZd5-ucB.js → ABYRPUBD-DGyrlbqz.js} +2 -2
  26. package/dist/client/assets/AlertDialogRoot-CfwItD_i.js +2 -0
  27. package/dist/client/assets/{AnimatedHeight-CsOfc5H1.js → AnimatedHeight-DG3oq8Fl.js} +2 -2
  28. package/dist/client/assets/{AuthSurfaceShell--2lH1vql.js → AuthSurfaceShell-uHFuClfP.js} +2 -2
  29. package/dist/client/assets/{BB2UYUI2-DAb-WdIu.js → BB2UYUI2-DJtfqV3f.js} +2 -2
  30. package/dist/client/assets/{BUM34MOA-DMU6CGcz.js → BUM34MOA-B4MgXIYY.js} +2 -2
  31. package/dist/client/assets/{CEQABKGZ-BnDJUiDl.js → CEQABKGZ-CnWbDLSz.js} +2 -2
  32. package/dist/client/assets/{CXAC5362-QKBU6D2s.js → CXAC5362-DdZ6n5qP.js} +2 -2
  33. package/dist/client/assets/ChatGptUsageButton-Dg1SR7pz.js +2 -0
  34. package/dist/client/assets/ChatMarkdown-eJNo9q4b.js +49 -0
  35. package/dist/client/assets/CheckboxIndicator-BpGIx6Ze.js +2 -0
  36. package/dist/client/assets/{ClippedText-aNLi0IDp.js → ClippedText-Cny-j-4e.js} +2 -2
  37. package/dist/client/assets/CodexSetupSection.logic-C4KEUUA1.js +2 -0
  38. package/dist/client/assets/CollapsiblePanel-vHsKk5wM.js +2 -0
  39. package/dist/client/assets/ComboboxClear-DI8al7ca.js +2 -0
  40. package/dist/client/assets/{ComboboxGroupLabel-BaZLyLCv.js → ComboboxGroupLabel-9alK0hYt.js} +2 -2
  41. package/dist/client/assets/{CommandBlock-Bg2O3rbF.js → CommandBlock-BOYakQHx.js} +2 -2
  42. package/dist/client/assets/CompositeRoot-OiiGu5cn.js +2 -0
  43. package/dist/client/assets/{ConnectAgentSurface-D-fMTn_R.js → ConnectAgentSurface-D9vE8btn.js} +2 -2
  44. package/dist/client/assets/{ConnectionStatusDot-vOKtZfeV.js → ConnectionStatusDot-DL0Hsk-v.js} +2 -2
  45. package/dist/client/assets/{DRLTVNUE-DvpJAT6K.js → DRLTVNUE-D99K7hWK.js} +2 -2
  46. package/dist/client/assets/{DYY6UVD2-DFSg5DAZ.js → DYY6UVD2-BF6iP9-o.js} +2 -2
  47. package/dist/client/assets/DevicePanel-BzIRsUjQ.js +2 -0
  48. package/dist/client/assets/DeviceSetup-DQqwNSXQ.js +2 -0
  49. package/dist/client/assets/DialogTitle-BNEjkHZl.js +2 -0
  50. package/dist/client/assets/{DiffCommentAnnotation-CAml763Q.js → DiffCommentAnnotation-DOn5F9Vx.js} +3 -3
  51. package/dist/client/assets/{DiffFileTree-2Y-Da6MW.js → DiffFileTree-C7d_tSjH.js} +2 -2
  52. package/dist/client/assets/DiffPanel-zzTYLQBt.js +2 -0
  53. package/dist/client/assets/{DiffWorkerPoolProvider-Czi5bOUV.js → DiffWorkerPoolProvider-CHaL1Ona.js} +3 -3
  54. package/dist/client/assets/{EmbeddedDesign-AHra-cLY.js → EmbeddedDesign-DZezJSS1.js} +8 -8
  55. package/dist/client/assets/{EnvironmentMachineIcon-BnMVjB89.js → EnvironmentMachineIcon-BrYDn6tR.js} +2 -2
  56. package/dist/client/assets/{ExpandableText-gKNgCxfU.js → ExpandableText-BsOIEd28.js} +2 -2
  57. package/dist/client/assets/{FNOVOB4O-D2IqnTWb.js → FNOVOB4O-B07Bu4_g.js} +2 -2
  58. package/dist/client/assets/{FieldControl-Bjdbc6Ii.js → FieldControl-Ua5R3Une.js} +2 -2
  59. package/dist/client/assets/{FileDiff-Di0hvnyJ.js → FileDiff-CAhD0qa4.js} +2 -2
  60. package/dist/client/assets/{FilePreviewPanel-2-RLs_YZ.js → FilePreviewPanel-Ptxxfl5h.js} +6 -6
  61. package/dist/client/assets/FoldedSettingsSection-C-4eZXtv.js +2 -0
  62. package/dist/client/assets/{HDGCDEEZ-AZF834xy.js → HDGCDEEZ-BiCUaNcl.js} +2 -2
  63. package/dist/client/assets/{HSJLKHB7-Dtz-7WMf.js → HSJLKHB7-MsC8mniI.js} +2 -2
  64. package/dist/client/assets/{Icons-BzIBDVKW.js → Icons-D8Idteuf.js} +2 -2
  65. package/dist/client/assets/Input-BtekXNnW.js +2 -0
  66. package/dist/client/assets/{IntervalSecondsField-Fdrpvkqj.js → IntervalSecondsField-Aqwzi0Sz.js} +2 -2
  67. package/dist/client/assets/JZOYTAAL-B8yh1QUr.js +1 -0
  68. package/dist/client/assets/{K3MD6TGW-BPz_yQfQ.js → K3MD6TGW-CkU_KXkd.js} +2 -2
  69. package/dist/client/assets/{K7RP3OMA-C-IhAYzY.js → K7RP3OMA-DLs66X2w.js} +2 -2
  70. package/dist/client/assets/{KeybindingsSettings.logic-DjD-8Wsr.js → KeybindingsSettings.logic-DNTed1xn.js} +2 -2
  71. package/dist/client/assets/{LHDIQX7Q-Dw7FK-yZ.js → LHDIQX7Q-BOSadp0O.js} +2 -2
  72. package/dist/client/assets/{LUXOKEGN-Cp4yLfcO.js → LUXOKEGN-qg2nPaOP.js} +2 -2
  73. package/dist/client/assets/{LinkMachineSelect-v3ZAAPFG.js → LinkMachineSelect-CQIJcmq4.js} +2 -2
  74. package/dist/client/assets/{MathTypeset-CAVYwtpt.js → MathTypeset-B_2pC76G.js} +2 -2
  75. package/dist/client/assets/ModelLiveLayer-BdDN1RwJ.js +3 -0
  76. package/dist/client/assets/{N3JZAHOW-sZve4CbV.js → N3JZAHOW-DkFZrX8t.js} +2 -2
  77. package/dist/client/assets/{NUIALGQ3-DMlKhtdq.js → NUIALGQ3-DF_hOTNF.js} +2 -2
  78. package/dist/client/assets/{NoProjectsHero-B0ChXuQG.js → NoProjectsHero-DIDw2XWy.js} +2 -2
  79. package/dist/client/assets/{O65XPQGZ-COhBlGA1.js → O65XPQGZ-DX7_CzKu.js} +2 -2
  80. package/dist/client/assets/{O7XIQ6OM-D-y75rjS.js → O7XIQ6OM-mHLqolvI.js} +2 -2
  81. package/dist/client/assets/{OFQON5FD-kw-f4mV4.js → OFQON5FD-Suig0WTF.js} +2 -2
  82. package/dist/client/assets/{P4ConnectAccountPages-BXM_FJyy.js → P4ConnectAccountPages-naPvNZLz.js} +2 -2
  83. package/dist/client/assets/{P4ConnectSidebarSignIn-D8uwPPR6.js → P4ConnectSidebarSignIn-D2rgfUAh.js} +2 -2
  84. package/dist/client/assets/{PJQHF43J-Dww1R-k6.js → PJQHF43J-7rnsehAx.js} +2 -2
  85. package/dist/client/assets/PanelLayoutControls-D6h4yyW-.js +216 -0
  86. package/dist/client/assets/{PierreEntryIcon-C-5f-jFb.js → PierreEntryIcon-0R4z7KQU.js} +2 -2
  87. package/dist/client/assets/PopoverHandle-BxV9_kh8.js +2 -0
  88. package/dist/client/assets/PreviewPanel-DCN5UudG.js +2 -0
  89. package/dist/client/assets/ProjectDefaultsSettings-BVdLNACE.js +2 -0
  90. package/dist/client/assets/{ProjectFavicon-CPvmNs3J.js → ProjectFavicon-DJmxMkvz.js} +3 -3
  91. package/dist/client/assets/{ProjectIconPickerDialog-blbck4gY.js → ProjectIconPickerDialog-3Bcbbvvc.js} +2 -2
  92. package/dist/client/assets/{ProjectMonogram-Cesz5yVS.js → ProjectMonogram-Bb9wZVNY.js} +2 -2
  93. package/dist/client/assets/{ProviderAuthTerminal-BXGE9cPY.js → ProviderAuthTerminal-mgY-tn0M.js} +2 -2
  94. package/dist/client/assets/ProviderModelPicker-D3VH0Z__.js +2 -0
  95. package/dist/client/assets/{ProviderSettingsForm-CRvI8mDe.js → ProviderSettingsForm-CGySH9bP.js} +2 -2
  96. package/dist/client/assets/PullRequestCodeTab-D-J3laup.js +6 -0
  97. package/dist/client/assets/{RHNBAITX-CY4FKVtu.js → RHNBAITX-Ddcb7a4G.js} +2 -2
  98. package/dist/client/assets/{ReadOnlySourcePreview-DK9ZCAf4.js → ReadOnlySourcePreview-CUrcvaQB.js} +2 -2
  99. package/dist/client/assets/{RedactedSensitiveText-DrIhPFXw.js → RedactedSensitiveText-DiLAhy4C.js} +2 -2
  100. package/dist/client/assets/RenderErrorBoundary-DNjP1Gq4.js +23 -0
  101. package/dist/client/assets/{RightPanelResizeHandle-DBCfKzRv.js → RightPanelResizeHandle-BKZPxtjZ.js} +2 -2
  102. package/dist/client/assets/{SLD4V6NK-Dtrbq5qR.js → SLD4V6NK-CAdpUQd9.js} +2 -2
  103. package/dist/client/assets/ScheduledTasksSettings-BIqva7uG.js +6 -0
  104. package/dist/client/assets/{ScopedSwitch-DQHfQgMZ.js → ScopedSwitch-CjWqxV6P.js} +2 -2
  105. package/dist/client/assets/{ScrollAreaCorner-B9Aiu69u.js → ScrollAreaCorner-BNGMax5h.js} +2 -2
  106. package/dist/client/assets/{SecretInput-CxJl9pux.js → SecretInput-F_2AS4sm.js} +2 -2
  107. package/dist/client/assets/SelectScrollUpArrow-r18qpNEu.js +2 -0
  108. package/dist/client/assets/{SelfImproveSettingsSection-yFj7aCio.js → SelfImproveSettingsSection-dyJbezur.js} +2 -2
  109. package/dist/client/assets/{SettingsPanels-H_7XUe5G.js → SettingsPanels-BwrWyM3f.js} +7 -7
  110. package/dist/client/assets/{SettingsPanels.logic-BYLv56aj.js → SettingsPanels.logic-DWRYwc9b.js} +2 -2
  111. package/dist/client/assets/{SettingsScopeNotice-pJqEfHRd.js → SettingsScopeNotice-DpC9Q9ae.js} +2 -2
  112. package/dist/client/assets/{SidebarStageBackdrop-DWShR_RZ.js → SidebarStageBackdrop-ByWEF0y2.js} +2 -2
  113. package/dist/client/assets/{T3PCR2KE-BFmO9IZ-.js → T3PCR2KE-BsP9x4U3.js} +2 -2
  114. package/dist/client/assets/{TKWO2OVW-DMeVANpK.js → TKWO2OVW-BONiqXri.js} +2 -2
  115. package/dist/client/assets/{TSHNXIZL-COvYTPCc.js → TSHNXIZL-CLTZIB-s.js} +2 -2
  116. package/dist/client/assets/{ThemeEditorPanel-BxOl9N6E.js → ThemeEditorPanel-C7o3GtWa.js} +3 -3
  117. package/dist/client/assets/{ThreadDetailsItemsMenu-BXQbo6bY.js → ThreadDetailsItemsMenu-Bq_XM62t.js} +40 -40
  118. package/dist/client/assets/ThreadTerminalDrawer-CD5oxZhC.js +5 -0
  119. package/dist/client/assets/TooltipProvider-DPt8xz_3.js +2 -0
  120. package/dist/client/assets/{UQJE5E4I-CajoppS3.js → UQJE5E4I-BS_wwVFT.js} +2 -2
  121. package/dist/client/assets/{USNYFO5S-BQLaJAkC.js → USNYFO5S-CpDVNtuT.js} +2 -2
  122. package/dist/client/assets/{Virtualizer-kAxtf9JI.js → Virtualizer-BWztABfX.js} +2 -2
  123. package/dist/client/assets/{WEVWDWVA-Bn1CMBLe.js → WEVWDWVA-4IVaqPOG.js} +2 -2
  124. package/dist/client/assets/{WorkspaceBreadcrumb-KdZMrP13.js → WorkspaceBreadcrumb-BHensDdi.js} +2 -2
  125. package/dist/client/assets/{WorkspacePageContainer-VqvvyrKx.js → WorkspacePageContainer-CCJOwHlv.js} +2 -2
  126. package/dist/client/assets/{WorkspacePageHeader-Ca7-ugiS.js → WorkspacePageHeader-C9Tpr_np.js} +2 -2
  127. package/dist/client/assets/{X5RFHQXM-CPBgn0uR.js → X5RFHQXM-DO1k5hPx.js} +2 -2
  128. package/dist/client/assets/{X62E3GBT-DEsBFWSE.js → X62E3GBT-DR5ebldd.js} +2 -2
  129. package/dist/client/assets/{XBNEOJTC-rIiejuIa.js → XBNEOJTC-D6Kx02Ci.js} +2 -2
  130. package/dist/client/assets/{YHV2MVVZ-FepTeOr1.js → YHV2MVVZ-B7xQdu1d.js} +2 -2
  131. package/dist/client/assets/{YURCZMG2-Co7j1onF.js → YURCZMG2-vpRi9ruy.js} +2 -2
  132. package/dist/client/assets/{YVG2LODB-CH8YtqJ9.js → YVG2LODB-BPr-N_Eh.js} +2 -2
  133. package/dist/client/assets/_chat-B7MuBHoN.js +47 -0
  134. package/dist/client/assets/{_chat.design-C593M39o.js → _chat.design-JY93KEj-.js} +2 -2
  135. package/dist/client/assets/{_chat.index-DZmhCx_Q.js → _chat.index-BLQil4HT.js} +2 -2
  136. package/dist/client/assets/{_chat.new-BLxqLetm.js → _chat.new-BUUjlaam.js} +3 -3
  137. package/dist/client/assets/_chat.pull-requests-hoMASTBm.js +2 -0
  138. package/dist/client/assets/{alert-BdISKl4u.js → alert-Eh-IusVP.js} +2 -2
  139. package/dist/client/assets/{alert-dialog-Broi1wym.js → alert-dialog-BxwvNOYD.js} +2 -2
  140. package/dist/client/assets/{assetUrls-DyJx-URx.js → assetUrls-Bk8CvVQ5.js} +2 -2
  141. package/dist/client/assets/assets-w0TTeveX.js +2 -0
  142. package/dist/client/assets/{browserHistoryStore-zdRsIuMc.js → browserHistoryStore-CQgs_U0x.js} +2 -2
  143. package/dist/client/assets/{browserLinkTarget-aye_Gpt4.js → browserLinkTarget-BD9wK52f.js} +2 -2
  144. package/dist/client/assets/{checkbox-ueGFMqVv.js → checkbox-CDoyvSyH.js} +2 -2
  145. package/dist/client/assets/{color-picker-CUoPp4AJ.js → color-picker-BOsv4n_B.js} +2 -2
  146. package/dist/client/assets/{combobox-BfOjf6Iu.js → combobox-BJsEk7ze.js} +2 -2
  147. package/dist/client/assets/{command-CeMH9lgx.js → command-Cg83G2rG.js} +2 -2
  148. package/dist/client/assets/{connect-CQUjsv6p.js → connect-C7ENaX3L.js} +2 -2
  149. package/dist/client/assets/connect-agent-BEYL9KOm.js +2 -0
  150. package/dist/client/assets/{design-BL2REeQ-.js → design-pZfTAgOJ.js} +2 -2
  151. package/dist/client/assets/{device-DUMKyegd.js → device-CG5GzxuX.js} +2 -2
  152. package/dist/client/assets/{dialog-BzESHWgr.js → dialog-wBelv1Ac.js} +2 -2
  153. package/dist/client/assets/diffPanelStore-C8bCQWTi.js +2 -0
  154. package/dist/client/assets/{diffRendering-BnN6RWwy.js → diffRendering-C_l9f0DJ.js} +2 -2
  155. package/dist/client/assets/{dist--Lo1A95S.js → dist-1X_vspyy.js} +3 -3
  156. package/dist/client/assets/{draft-input-BozMgkbl.js → draft-input-BhYlt4Pu.js} +2 -2
  157. package/dist/client/assets/{duoViewer-mOZwt5UN.js → duoViewer-C9zEhnho.js} +2 -2
  158. package/dist/client/assets/{dynamic-3CmgXeht.js → dynamic--1QgBotz.js} +3 -3
  159. package/dist/client/assets/{embeddedScripts-g3gqCUmg.js → embeddedScripts-B_jWJYkI.js} +2 -2
  160. package/dist/client/assets/{empty-CeYEMFdG.js → empty-CJnssipy.js} +2 -2
  161. package/dist/client/assets/entities-CRXY8xy3.js +2 -0
  162. package/dist/client/assets/{fileLinks-LQyYck3z.js → fileLinks-Bg40qEqI.js} +2 -2
  163. package/dist/client/assets/{fileTreeExpansion-CY-keZ2e.js → fileTreeExpansion-C_MZA2Fb.js} +2 -2
  164. package/dist/client/assets/fold-vertical-CN9ryhZz.js +2 -0
  165. package/dist/client/assets/{getDiffFileInput-ClUa7N40.js → getDiffFileInput-PLuWhYlb.js} +2 -2
  166. package/dist/client/assets/{htmlRender-CxBGTvqW.js → htmlRender-DNX1FsUO.js} +2 -2
  167. package/dist/client/assets/index-BeP8Inse.js +3 -0
  168. package/dist/client/assets/{input-K95B1E2P.js → input-Cd-93Wp0.js} +2 -2
  169. package/dist/client/assets/{input-group-BAbOiIZs.js → input-group-CsS-Psw7.js} +2 -2
  170. package/dist/client/assets/{kbd-D9Q8zN3_.js → kbd-DB5SHS11.js} +2 -2
  171. package/dist/client/assets/{keybindings-C427DPQo.js → keybindings-DBugaGH3.js} +2 -2
  172. package/dist/client/assets/{lazy-BDrl-IrZ.js → lazy-8c6T_8yh.js} +4 -4
  173. package/dist/client/assets/{lazyRouteComponent-Bi84pz13.js → lazyRouteComponent-DtOhACEQ.js} +2 -2
  174. package/dist/client/assets/{link-B57I0_wC.js → link-BrJlIcQX.js} +2 -2
  175. package/dist/client/assets/{linkedPrompt-zM8XlD0_.js → linkedPrompt-CN6Qis59.js} +2 -2
  176. package/dist/client/assets/main-CNyrs4J_.js +37 -0
  177. package/dist/client/assets/main-h6l_SQzg.css +2 -0
  178. package/dist/client/assets/mediaReference-CJpFszQ0.js +2 -0
  179. package/dist/client/assets/{mediaSource-BQkNpHYP.js → mediaSource-D0cInV6V.js} +2 -2
  180. package/dist/client/assets/{modelScene-DWYEc7-j.js → modelScene-BmBrNhLd.js} +2 -2
  181. package/dist/client/assets/number-field-CSK9SRbZ.js +2 -0
  182. package/dist/client/assets/{observeResize-nOwAB2yP.js → observeResize-CFw3_anS.js} +2 -2
  183. package/dist/client/assets/{onboarding-BpYTNtvC.js → onboarding-Eqww5SU9.js} +2 -2
  184. package/dist/client/assets/openFileInPreview-D0wySgTe.js +2 -0
  185. package/dist/client/assets/{p4ProjectFile-Dkwk3dWQ.js → p4ProjectFile-BBI5SxD4.js} +2 -2
  186. package/dist/client/assets/{pair-Bc34xPWk.js → pair-DQR36eTM.js} +2 -2
  187. package/dist/client/assets/{pendingSendStore-ettG1x40.js → pendingSendStore-Dxq1oBH6.js} +2 -2
  188. package/dist/client/assets/{phoneViewer-BCeyyPaZ.js → phoneViewer-DLo78qRr.js} +2 -2
  189. package/dist/client/assets/{pierre-icons-C2-xRx0J.js → pierre-icons-uaZzWTro.js} +2 -2
  190. package/dist/client/assets/{popover-CtPuvMeZ.js → popover-DU7x_UNP.js} +2 -2
  191. package/dist/client/assets/{preview-DIIM6Lws.js → preview-CiDRJw3K.js} +2 -2
  192. package/dist/client/assets/{preview-CS0uw3GP.js → preview-DpJtvz_q.js} +2 -2
  193. package/dist/client/assets/previewMiniPlayerStore-D98YBqjW.js +2 -0
  194. package/dist/client/assets/primary-B5Ds-X9y.js +2 -0
  195. package/dist/client/assets/primaryCloudLinkState-7otRI1yH.js +2 -0
  196. package/dist/client/assets/projectFilesQueryState-CgQDudyR.js +2 -0
  197. package/dist/client/assets/{projectScriptEditor-Bp7idsB3.js → projectScriptEditor-BvwaSAI1.js} +2 -2
  198. package/dist/client/assets/providerSkills-BzFbjrTC.js +2 -0
  199. package/dist/client/assets/{pullRequestDetail.logic-8vF2qB9V.js → pullRequestDetail.logic-D9w_E_Dv.js} +3 -3
  200. package/dist/client/assets/{pullRequestIcons-6_4tgVDN.js → pullRequestIcons-gBL3Yt9x.js} +2 -2
  201. package/dist/client/assets/{pullRequestReviewStore-C8_coQYO.js → pullRequestReviewStore-CDUFfLmu.js} +2 -2
  202. package/dist/client/assets/pullRequests-BZ7PzmTm.js +2 -0
  203. package/dist/client/assets/queries-CzRpIoRQ.js +2 -0
  204. package/dist/client/assets/query-B8d0w621.js +2 -0
  205. package/dist/client/assets/radio-group-XlBZKXvU.js +2 -0
  206. package/dist/client/assets/relay-BWVOLzv_.js +2 -0
  207. package/dist/client/assets/{renderScheduler-Cvu4oEGc.js → renderScheduler-B6SrQg1c.js} +2 -2
  208. package/dist/client/assets/{rightPanelStore-D-meSGn7.js → rightPanelStore-BuudmoUr.js} +2 -2
  209. package/dist/client/assets/runtime-DYDOkR3G.js +7 -0
  210. package/dist/client/assets/{runtimeModeConfig-MYD8WQl8.js → runtimeModeConfig-DyiI0NS9.js} +2 -2
  211. package/dist/client/assets/{scheduledTasksSettings.logic-DmlMHwKF.js → scheduledTasksSettings.logic-DK9Z9azP.js} +3 -3
  212. package/dist/client/assets/{scroll-area-D9QT2Odm.js → scroll-area-B1iVi_db.js} +2 -2
  213. package/dist/client/assets/{select-BtqP8nTL.js → select-Dn3MxyiK.js} +2 -2
  214. package/dist/client/assets/{selfImproveFindings-DZS7PCvJ.js → selfImproveFindings-D5ELz2sX.js} +2 -2
  215. package/dist/client/assets/server-DQkamj54.js +2 -0
  216. package/dist/client/assets/session-A0FOa5Fv.js +2 -0
  217. package/dist/client/assets/session-logic-21koHfxl.js +27 -0
  218. package/dist/client/assets/{settings-A-pqSt1Y.js → settings-RZUSGfch.js} +2 -2
  219. package/dist/client/assets/{settings.appearance-C_uChPSz.js → settings.appearance-C2NUZQFB.js} +2 -2
  220. package/dist/client/assets/settings.archived-BOhwFyi3.js +2 -0
  221. package/dist/client/assets/{settings.computer-use-Dg_7f0JL.js → settings.computer-use-BhT0XlhO.js} +2 -2
  222. package/dist/client/assets/settings.connections-CVIPNlOU.js +2 -0
  223. package/dist/client/assets/{settings.data-controls-SDdipjc2.js → settings.data-controls-GIrtB4_J.js} +2 -2
  224. package/dist/client/assets/{settings.decisions-CoyKjdc1.js → settings.decisions-BBnbf4E4.js} +2 -2
  225. package/dist/client/assets/{settings.designs-4eHPAt6y.js → settings.designs-BrpJ4wJk.js} +2 -2
  226. package/dist/client/assets/settings.diagnostics-H0YPr7JD.js +2 -0
  227. package/dist/client/assets/{settings.general-DAWqQIHm.js → settings.general-CuMxiE8w.js} +2 -2
  228. package/dist/client/assets/settings.integrations-bw-NYX6w.js +2 -0
  229. package/dist/client/assets/{settings.keybindings-B0oNRJrN.js → settings.keybindings-Mqx8YmX-.js} +2 -2
  230. package/dist/client/assets/{settings.open-source-licenses-BI8-fEG8.js → settings.open-source-licenses-DppmDqdO.js} +2 -2
  231. package/dist/client/assets/settings.plugins-PhsBK5Nz.js +5 -0
  232. package/dist/client/assets/settings.projects-DvjxFMyV.js +4 -0
  233. package/dist/client/assets/settings.providers-DZac28bF.js +3 -0
  234. package/dist/client/assets/{settings.scheduled-tasks-Bx6ZIK0R.js → settings.scheduled-tasks-_8iDYzJF.js} +2 -2
  235. package/dist/client/assets/{settings.secrets-Dt4ORQnt.js → settings.secrets-B5WZy_fN.js} +2 -2
  236. package/dist/client/assets/{settings.snap-shot-CytMd2pC.js → settings.snap-shot-BThcjeQt.js} +2 -2
  237. package/dist/client/assets/settings.source-control-Cj9K4HE8.js +2 -0
  238. package/dist/client/assets/{settings.storage-BfvQd358.js → settings.storage-D3QQPs1U.js} +2 -2
  239. package/dist/client/assets/settingsLayout-LNYGC372.js +3 -0
  240. package/dist/client/assets/{sidebar-DbrWNN9-.js → sidebar-CCcDCy-Q.js} +2 -2
  241. package/dist/client/assets/{sidebarProjectGrouping-CZnpDNTf.js → sidebarProjectGrouping-Bj_Qatcf.js} +2 -2
  242. package/dist/client/assets/{skeleton-DxuQc9Kk.js → skeleton-dlFZVmO8.js} +2 -2
  243. package/dist/client/assets/{sourceControl-BbrGhAuF.js → sourceControl-Tyc4OKDH.js} +2 -2
  244. package/dist/client/assets/sourceControlClients-ECBkjM0e.js +2 -0
  245. package/dist/client/assets/{spinner-DmRIQvmI.js → spinner-fU7Q2OR1.js} +2 -2
  246. package/dist/client/assets/src-B7vcPG0D.js +15 -0
  247. package/dist/client/assets/terminal-links-CPJORRle.js +2 -0
  248. package/dist/client/assets/terminalSessions-B00GvWIU.js +2 -0
  249. package/dist/client/assets/{textarea-C_3SxeEV.js → textarea-CEng2dlo.js} +2 -2
  250. package/dist/client/assets/{themePalette-DSR5tBE9.js → themePalette-CcasVi_y.js} +3 -3
  251. package/dist/client/assets/{threadCheckpoints-D0dMlqZE.js → threadCheckpoints-D7P5EX0m.js} +2 -2
  252. package/dist/client/assets/{toggle-Zti3zuzr.js → toggle-DN8nwGi8.js} +2 -2
  253. package/dist/client/assets/{toggle-group-D015gcqT.js → toggle-group-Dx-ruC5S.js} +2 -2
  254. package/dist/client/assets/{tooltip-CAzkzAoH.js → tooltip-Da633nbs.js} +2 -2
  255. package/dist/client/assets/uiStateStore-aIXF8Zlu.js +2 -0
  256. package/dist/client/assets/unfold-vertical-CldLe1hB.js +2 -0
  257. package/dist/client/assets/{usage-BJA7zQoS.js → usage-DXoXMoKb.js} +2 -2
  258. package/dist/client/assets/{usageAccess-D5FAb4jV.js → usageAccess-RRnEiTSy.js} +2 -2
  259. package/dist/client/assets/{usageFormat-Njxx7Q49.js → usageFormat-D95Lw1XX.js} +2 -2
  260. package/dist/client/assets/{usageShortcuts-DuJeedG7.js → usageShortcuts-3UXG3hMD.js} +2 -2
  261. package/dist/client/assets/{use-atom-command-DMW6SFOx.js → use-atom-command-BkSai4ZH.js} +2 -2
  262. package/dist/client/assets/{useAriaLabelledBy-E7KNTqMb.js → useAriaLabelledBy-rzE7PQnj.js} +2 -2
  263. package/dist/client/assets/useHandleNewThread-CT3UAzyB.js +2 -0
  264. package/dist/client/assets/{useLocation-hVHAnHTx.js → useLocation-D7ZCVKu2.js} +2 -2
  265. package/dist/client/assets/{useNavigate-B7EiSugn.js → useNavigate-C6_wm78C.js} +2 -2
  266. package/dist/client/assets/{useNavigateBack-BC3GGm7e.js → useNavigateBack-iqJmvild.js} +2 -2
  267. package/dist/client/assets/{useP4ConnectAuthPrompt-D3qxx30I.js → useP4ConnectAuthPrompt-CKTZ-MxU.js} +2 -2
  268. package/dist/client/assets/{useParams-C5b2x5BH.js → useParams-DND-Jy5h.js} +2 -2
  269. package/dist/client/assets/{usePermissionStatus-Zf48W2tu.js → usePermissionStatus-DFJ-2rdQ.js} +2 -2
  270. package/dist/client/assets/{usePopupViewport-Dtwu2x5j.js → usePopupViewport-EARvZG9w.js} +2 -2
  271. package/dist/client/assets/{usePullRequestActions-BtPaWuCg.js → usePullRequestActions-DRrQpPhD.js} +3 -3
  272. package/dist/client/assets/{useRegisterFieldControl-BMmbsxkx.js → useRegisterFieldControl-Byb-EJOb.js} +2 -2
  273. package/dist/client/assets/{useScopedModelAvailability-BIveWOlk.js → useScopedModelAvailability-tXU_0tMY.js} +2 -2
  274. package/dist/client/assets/useSettings-BOuYsEM0.js +3 -0
  275. package/dist/client/assets/utils-DsOiwDNN.js +24 -0
  276. package/dist/client/assets/vcsRefInvalidation-CnjZD1r1.js +2 -0
  277. package/dist/client/assets/welcome-BgxI7gmD.js +2 -0
  278. package/dist/client/index.html +1 -1
  279. package/dist/{mcpResponsePayloads-BBvPAlwj.mjs → mcpResponsePayloads-tqyeJD3c.mjs} +10 -9
  280. package/dist/{ProjectCloneTracker-DAE46hjz.mjs → preview-C_h8Tda3.mjs} +894 -438
  281. package/dist/{renderer-iWfzRWCX.mjs → renderer-BeTlHpQk.mjs} +2 -2
  282. package/dist/{runtime-CllDK9QU.mjs → runtime-BUfUqrrw.mjs} +3 -3
  283. package/dist/{runtimeLayer-CblMBDQ6.mjs → runtimeLayer-5R-ZfBsl.mjs} +3152 -2949
  284. package/dist/{runtimeLayer-D1H3yRj8.mjs → runtimeLayer-DurN_FAN.mjs} +1 -1
  285. package/dist/{server-vm1eH-y1.mjs → server-DuD96ZSr.mjs} +347 -228
  286. package/dist/{sha2-9FUhed4s.mjs → sha2-oCwRxj9g.mjs} +13 -7
  287. package/package.json +1 -1
  288. package/dist/AcpMcpStdioBridge-RQnwhGrw.mjs +0 -3
  289. package/dist/client/assets/AlertDialogRoot-D2Lzxp77.js +0 -2
  290. package/dist/client/assets/ChatGptUsageButton-CM16mB7z.js +0 -2
  291. package/dist/client/assets/ChatMarkdown-LYkpVHJO.js +0 -49
  292. package/dist/client/assets/CheckboxIndicator-CLFg8-A1.js +0 -2
  293. package/dist/client/assets/CodexSetupSection.logic-CNAX4_fV.js +0 -2
  294. package/dist/client/assets/CollapsiblePanel-BlUD5mJC.js +0 -2
  295. package/dist/client/assets/ComboboxClear-DKHwuDAL.js +0 -2
  296. package/dist/client/assets/CompositeRoot-_C3uLH2F.js +0 -2
  297. package/dist/client/assets/DevicePanel-Dvozgov3.js +0 -2
  298. package/dist/client/assets/DeviceSetup-O_9LLGD9.js +0 -2
  299. package/dist/client/assets/DialogTitle-C9j5Tmuy.js +0 -2
  300. package/dist/client/assets/DiffPanel-CDixqNzb.js +0 -2
  301. package/dist/client/assets/FoldedSettingsSection-CrJX4FnL.js +0 -2
  302. package/dist/client/assets/Input-BWhtnCC0.js +0 -2
  303. package/dist/client/assets/JZOYTAAL-BCdmxsmo.js +0 -1
  304. package/dist/client/assets/ModelLiveLayer-CxX5pYmA.js +0 -3
  305. package/dist/client/assets/PanelLayoutControls-CC5OYRRR.js +0 -216
  306. package/dist/client/assets/PopoverHandle-BwqnKm9Y.js +0 -2
  307. package/dist/client/assets/PreviewPanel-BvRNyyKQ.js +0 -2
  308. package/dist/client/assets/ProjectDefaultsSettings-rvN_67Gu.js +0 -2
  309. package/dist/client/assets/ProviderModelPicker-Cq3CogU6.js +0 -2
  310. package/dist/client/assets/PullRequestCodeTab-C5kr72DG.js +0 -6
  311. package/dist/client/assets/RenderErrorBoundary-DgYrYlQR.js +0 -23
  312. package/dist/client/assets/ScheduledTasksSettings-CvbQDrJp.js +0 -6
  313. package/dist/client/assets/SelectScrollUpArrow-Dj2om6Qx.js +0 -2
  314. package/dist/client/assets/ThreadTerminalDrawer-DcYWT4k2.js +0 -5
  315. package/dist/client/assets/TooltipProvider-BzOo4iyi.js +0 -2
  316. package/dist/client/assets/_chat-DoDgVLYz.js +0 -47
  317. package/dist/client/assets/_chat.pull-requests-0Ce1mGUC.js +0 -2
  318. package/dist/client/assets/assets-lJdcWn_Q.js +0 -2
  319. package/dist/client/assets/connect-agent-DsQQcex2.js +0 -2
  320. package/dist/client/assets/diffPanelStore-B-hQEy6C.js +0 -2
  321. package/dist/client/assets/entities-CpJdh0W5.js +0 -2
  322. package/dist/client/assets/fold-vertical-BscQ96iN.js +0 -2
  323. package/dist/client/assets/index-BWKkBtFt.js +0 -3
  324. package/dist/client/assets/main-C8b9a0ht.js +0 -37
  325. package/dist/client/assets/main-CCH0X0zL.css +0 -2
  326. package/dist/client/assets/mediaReference-BIsAfUoY.js +0 -2
  327. package/dist/client/assets/number-field-D6t0GpAB.js +0 -2
  328. package/dist/client/assets/openFileInPreview-DFpXOfx7.js +0 -2
  329. package/dist/client/assets/previewMiniPlayerStore-oJw0qrRM.js +0 -2
  330. package/dist/client/assets/primary-B0bbGdiR.js +0 -2
  331. package/dist/client/assets/primaryCloudLinkState-B6CxZwAR.js +0 -2
  332. package/dist/client/assets/projectFilesQueryState-DpLF9eJd.js +0 -2
  333. package/dist/client/assets/providerSkills-yqPKKW6i.js +0 -2
  334. package/dist/client/assets/pullRequests-u-PJpGXV.js +0 -2
  335. package/dist/client/assets/queries-DDAXRF4r.js +0 -2
  336. package/dist/client/assets/query-DpmTmXUV.js +0 -2
  337. package/dist/client/assets/radio-group-DSfZzUu8.js +0 -2
  338. package/dist/client/assets/relay-CnLeC-mg.js +0 -2
  339. package/dist/client/assets/runtime-DUPVFypn.js +0 -7
  340. package/dist/client/assets/server-BYnv0CK4.js +0 -2
  341. package/dist/client/assets/session-BryEqNW-.js +0 -2
  342. package/dist/client/assets/session-logic-DZfPxiBF.js +0 -26
  343. package/dist/client/assets/settings.archived-BtKfrhpi.js +0 -2
  344. package/dist/client/assets/settings.connections-CHawbHDz.js +0 -2
  345. package/dist/client/assets/settings.diagnostics-BFlcsuN0.js +0 -2
  346. package/dist/client/assets/settings.integrations-CpUf4-MX.js +0 -2
  347. package/dist/client/assets/settings.plugins-B6My9wD7.js +0 -5
  348. package/dist/client/assets/settings.projects-hrhEEIli.js +0 -4
  349. package/dist/client/assets/settings.providers-BKeGnq6G.js +0 -3
  350. package/dist/client/assets/settings.source-control-B6eUVvNg.js +0 -2
  351. package/dist/client/assets/settingsLayout-BijX6mlS.js +0 -3
  352. package/dist/client/assets/sourceControlClients-CG8qRQgm.js +0 -2
  353. package/dist/client/assets/src-BZzGU-vc.js +0 -15
  354. package/dist/client/assets/terminal-links-FD1wyGOp.js +0 -2
  355. package/dist/client/assets/terminalSessions-D1m7FXoa.js +0 -2
  356. package/dist/client/assets/uiStateStore-B0Z02qoV.js +0 -2
  357. package/dist/client/assets/unfold-vertical-DeuiNAAp.js +0 -2
  358. package/dist/client/assets/useHandleNewThread-Cmiu3y4G.js +0 -2
  359. package/dist/client/assets/useSettings-C6RmJr-q.js +0 -3
  360. package/dist/client/assets/utils-Cs97wR6T.js +0 -24
  361. package/dist/client/assets/vcsRefInvalidation-CAa5en8i.js +0 -2
  362. package/dist/client/assets/welcome-BRX7e-eN.js +0 -2
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Nl as i,jn as a,lf as o,mr as s,rp as c,t as l}from"./utils-Cs97wR6T.js";import{a as u,f as d,g as f,i as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,u as S}from"./ComboboxClear-DKHwuDAL.js";import{n as C,t as w}from"./ComboboxGroupLabel-BaZLyLCv.js";import{t as ee}from"./input-K95B1E2P.js";import{t as T}from"./scroll-area-D9QT2Odm.js";import{n as E,o as D,r as O,s as k,u as A}from"./DialogTitle-C9j5Tmuy.js";import{f as j,u as M}from"./dialog-BzESHWgr.js";var N=e(t()),P=e(r());function F(e){let{openOnInputClick:t=!1,value:n,defaultValue:r,onValueChange:i,mode:o=`list`,itemToStringValue:s,...c}=e,l=o===`inline`||o===`both`,u=o===`inline`||o===`none`,d=n!==void 0,[p,m]=N.useState(r??``),[g,_]=N.useState(``);N.useEffect(()=>{d&&_(``)},[n,d]);let v;v=l&&g!==``?g:d?n??``:p;let y=f(),b=N.useMemo(()=>c.filter===void 0?y.contains:c.filter,[c.filter,y]),x=String(d?n:p).trim(),S=N.useMemo(()=>o===`both`?b===null?null:(e,t,n)=>b(e,x,n):u?null:b,[b,o,x,u]);function C(e,t){_(``),d||m(e),i?.(e,t)}function w(t,n){e.onItemHighlighted?.(t,n),n.reason!==`pointer`&&_(l?t==null?``:a(t,s):``)}return(0,P.jsx)(h,{...c,itemToStringLabel:s,openOnInputClick:t,selectionMode:`none`,fillInputOnItemPress:!0,filter:S,autoComplete:o,inputValue:v,defaultInputValue:r,onInputValueChange:C,onItemHighlighted:w})}var I=d,L=y,R=n(),z=F;function B(e){let t=(0,R.c)(30),n,r,a,o,s,u;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],u=t[6]):({className:n,showTrigger:s,showClear:u,startAddon:o,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=u);let d=s!==void 0&&s,f=u!==void 0&&u,m=a??`default`,h;t[7]===o?h=t[8]:(h=o&&(0,P.jsx)(`div`,{"aria-hidden":`true`,className:`[&_svg]:-mx-0.5 pointer-events-none has-[button]:pointer-events-auto absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4`,"data-slot":`autocomplete-start-addon`,children:o}),t[7]=o,t[8]=h);let g=o&&`data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=autocomplete-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(8)-1px)]`,_=m===`sm`?`has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-6.5`:`has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-7`,y;t[9]!==n||t[10]!==g||t[11]!==_?(y=l(g,_,n),t[9]=n,t[10]=g,t[11]=_,t[12]=y):y=t[12];let b;t[13]===m?b=t[14]:(b=(0,P.jsx)(ee,{nativeInput:!0,size:m}),t[13]=m,t[14]=b);let x;t[15]!==r||t[16]!==y||t[17]!==b?(x=(0,P.jsx)(v,{className:y,"data-slot":`autocomplete-input`,render:b,...r}),t[15]=r,t[16]=y,t[17]=b,t[18]=x):x=t[18];let S;t[19]!==d||t[20]!==m?(S=d&&(0,P.jsx)(Q,{className:l(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,m===`sm`?`end-0`:`end-0.5`),children:(0,P.jsx)(p,{"data-slot":`autocomplete-icon`,children:(0,P.jsx)(i,{})})}),t[19]=d,t[20]=m,t[21]=S):S=t[21];let C;t[22]!==f||t[23]!==m?(C=f&&(0,P.jsx)(X,{className:l(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,m===`sm`?`end-0`:`end-0.5`),children:(0,P.jsx)(c,{})}),t[22]=f,t[23]=m,t[24]=C):C=t[24];let w;return t[25]!==C||t[26]!==h||t[27]!==x||t[28]!==S?(w=(0,P.jsxs)(`div`,{className:`relative not-has-[>*.w-full]:w-fit w-full text-foreground has-disabled:opacity-64`,children:[h,x,S,C]}),t[25]=C,t[26]=h,t[27]=x,t[28]=S,t[29]=w):w=t[29],w}function V(e){let t=(0,R.c)(24),n,r,i,a,o,s,c,d;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],d=t[8]):({className:a,children:i,side:s,sideOffset:c,alignOffset:n,align:d,anchor:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=d);let f=s===void 0?`bottom`:s,p=c===void 0?4:c,m=d===void 0?`start`:d,h;t[9]===a?h=t[10]:(h=l(`relative flex max-h-full min-w-(--anchor-width) max-w-(--available-width) origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding shadow-lg/5 transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,a),t[9]=a,t[10]=h);let g;t[11]!==i||t[12]!==o?(g=(0,P.jsx)(u,{className:`flex max-h-[min(var(--available-height),23rem)] flex-1 flex-col text-foreground`,"data-slot":`autocomplete-popup`,...o,children:i}),t[11]=i,t[12]=o,t[13]=g):g=t[13];let v;t[14]!==h||t[15]!==g?(v=(0,P.jsx)(`span`,{className:h,children:g}),t[14]=h,t[15]=g,t[16]=v):v=t[16];let y;return t[17]!==m||t[18]!==n||t[19]!==r||t[20]!==f||t[21]!==p||t[22]!==v?(y=(0,P.jsx)(b,{children:(0,P.jsx)(_,{align:m,alignOffset:n,anchor:r,className:`z-[130] select-none`,"data-slot":`autocomplete-positioner`,side:f,sideOffset:p,children:v})}),t[17]=m,t[18]=n,t[19]=r,t[20]=f,t[21]=p,t[22]=v,t[23]=y):y=t[23],y}function H(e){let t=(0,R.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=l(`flex min-h-8 cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base outline-none hover:bg-accent data-disabled:pointer-events-none data-selected:bg-accent/50 data-selected:text-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-accent [&[data-highlighted][data-selected]]:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='text-'])]:text-muted-foreground`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,P.jsx)(L,{className:a,"data-slot":`autocomplete-item`,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function U(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`[[role=group]+&]:mt-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(C,{className:i,"data-slot":`autocomplete-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var W=`px-2 py-1.5 font-medium text-muted-foreground text-xs`;function G(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(W,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(w,{className:i,"data-slot":`autocomplete-group-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function K(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(W,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(`div`,{className:i,"data-slot":`autocomplete-group-label`,role:`presentation`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function q(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`size-full min-w-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(m,{className:i,"data-slot":`autocomplete-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function J(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(g,{className:i,"data-slot":`autocomplete-empty`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Y(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`not-empty:scroll-py-1 not-empty:p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(T,{scrollbarGutter:!0,scrollFade:!0,children:(0,P.jsx)(m,{className:i,"data-slot":`autocomplete-list`,...r})}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function X(e){let t=(0,R.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`-translate-y-1/2 absolute end-0.5 top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-[color,background-color,box-shadow,opacity] pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,P.jsx)(c,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,P.jsx)(x,{className:i,"data-slot":`autocomplete-clear`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Z(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(S,{"data-slot":`autocomplete-collection`,...n}),t[2]=n,t[3]=r),r}function Q(e){let t=(0,R.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,P.jsx)(I,{className:r,"data-slot":`autocomplete-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var $=O,te=D;function ne(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(M,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(A,{className:i,"data-slot":`command-dialog-backdrop`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function re(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`pointer-events-none fixed inset-0 z-50 flex flex-col items-center px-4 py-[max(--spacing(4),4vh)] sm:py-[10vh]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(E,{className:i,"data-slot":`command-dialog-viewport`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ie(e){let t=(0,R.c)(16),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,onBackdropPointerDown:i,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]===i?o=t[6]:(o=(0,P.jsx)(ne,{onPointerDown:i}),t[5]=i,t[6]=o);let s;t[7]===r?s=t[8]:(s=l(j,`pointer-events-auto max-h-105 max-w-xl text-foreground`,r),t[7]=r,t[8]=s);let c;t[9]!==n||t[10]!==a||t[11]!==s?(c=(0,P.jsx)(re,{children:(0,P.jsx)(k,{className:s,"data-slot":`command-dialog-popup`,...a,children:n})}),t[9]=n,t[10]=a,t[11]=s,t[12]=c):c=t[12];let u;return t[13]!==o||t[14]!==c?(u=(0,P.jsxs)(te,{children:[o,c]}),t[13]=o,t[14]=c,t[15]=u):u=t[15],u}function ae(e){let t=(0,R.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({autoHighlight:r,keepHighlight:i,...n}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=r===void 0?`always`:r,o=i===void 0||i,s;return t[4]!==a||t[5]!==o||t[6]!==n?(s=(0,P.jsx)(z,{autoHighlight:a,inline:!0,keepHighlight:o,open:!0,...n}),t[4]=a,t[5]=o,t[6]=n,t[7]=s):s=t[7],s}function oe(e){let t=(0,R.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,placeholder:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=l(`border-transparent! bg-transparent! shadow-none before:hidden has-focus-visible:ring-0 placeholder:text-placeholder *:data-[slot=autocomplete-input]:ps-9! sm:*:data-[slot=autocomplete-input]:ps-[calc(var(--command-shell-inset)+1.5rem)]!`,n),t[4]=n,t[5]=a);let s;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,P.jsx)(o,{className:`translate-x-0.5 text-icon-muted`}),t[6]=s):s=t[6];let c;return t[7]!==r||t[8]!==i||t[9]!==a?(c=(0,P.jsx)(`div`,{className:`px-[var(--command-shell-inset)] py-1.5 [&_[data-slot=autocomplete-start-addon]]:ps-[calc(var(--command-shell-inset)+0.0625rem)]`,children:(0,P.jsx)(B,{autoFocus:!0,className:a,placeholder:r,size:`lg`,startAddon:s,...i})}),t[7]=r,t[8]=i,t[9]=a,t[10]=c):c=t[10],c}function se(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`not-empty:scroll-py-2 not-empty:p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(Y,{className:i,"data-slot":`command-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ce(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`flex max-h-[inherit] flex-col`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(q,{className:i,"data-slot":`command-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function le(e){let t=(0,R.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,P.jsx)(K,{className:n,"data-slot":`command-group-label`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ue(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`relative min-h-0 overflow-hidden rounded-t-xl not-has-[+[data-slot=command-footer]]:rounded-b-2xl bg-transparent **:data-[slot=scroll-area-scrollbar]:mt-2 [touch-action:pan-y]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(`div`,{className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function de(e){let t=(0,R.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,P.jsx)(U,{className:n,"data-slot":`command-group`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function fe(e){let t=(0,R.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,P.jsx)(G,{className:n,"data-slot":`command-group-label`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function pe(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(Z,{"data-slot":`command-collection`,...n}),t[2]=n,t[3]=r),r}function me(e){let t=(0,R.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,active:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n!==void 0&&`cursor-pointer hover:bg-transparent hover:text-inherit data-highlighted:bg-transparent data-highlighted:text-inherit data-selected:bg-transparent data-selected:text-inherit [&[data-highlighted][data-selected]]:bg-transparent [&[data-highlighted][data-selected]]:text-inherit`,o=n&&`bg-accent! text-accent-foreground!`,s;t[4]!==r||t[5]!==a||t[6]!==o?(s=l(`py-1.5 data-selected:bg-foreground/[0.06] data-highlighted:bg-foreground/[0.09] data-highlighted:text-foreground [&[data-highlighted][data-selected]]:bg-foreground/[0.09] [&[data-highlighted][data-selected]]:text-foreground`,a,o,r),t[4]=r,t[5]=a,t[6]=o,t[7]=s):s=t[7];let c=n||void 0,u;return t[8]!==i||t[9]!==s||t[10]!==c?(u=(0,P.jsx)(H,{className:s,"data-active":c,"data-slot":`command-item`,...i}),t[8]=i,t[9]=s,t[10]=c,t[11]=u):u=t[11],u}function he(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`ms-auto font-medium font-sans text-secondary-label text-xs tracking-widest`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(`kbd`,{className:i,"data-slot":`command-shortcut`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ge(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`relative flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] bg-foreground/[0.025] px-[var(--command-content-inset)] py-2.5 font-medium text-sm text-muted-foreground [&_[data-slot=kbd-group]]:font-sans [&_[data-slot=kbd]]:bg-foreground/[0.08] [&_[data-slot=kbd]]:text-foreground [&_[data-slot=kbd]]:ring-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(`div`,{className:i,"data-slot":`command-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function _e(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`h-auto px-2 text-xs hover:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(s,{...r,variant:`ghost-muted`,size:`xs`,className:i}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{J as _,ge as a,Y as b,fe as c,se as d,le as f,z as g,he as h,ie as i,oe as l,ue as m,pe as n,_e as o,ce as p,$ as r,de as s,ae as t,me as u,B as v,V as x,H as y};
2
- //# sourceMappingURL=command-CeMH9lgx.js.map
1
+ import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Il as i,cp as a,jn as o,mr as s,pf as c,t as l}from"./utils-DsOiwDNN.js";import{a as u,f as d,g as f,i as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,u as S}from"./ComboboxClear-DI8al7ca.js";import{n as C,t as w}from"./ComboboxGroupLabel-9alK0hYt.js";import{t as ee}from"./input-Cd-93Wp0.js";import{t as T}from"./scroll-area-B1iVi_db.js";import{n as E,o as D,r as O,s as k,u as A}from"./DialogTitle-BNEjkHZl.js";import{f as j,u as M}from"./dialog-wBelv1Ac.js";var N=e(t()),P=e(r());function F(e){let{openOnInputClick:t=!1,value:n,defaultValue:r,onValueChange:i,mode:a=`list`,itemToStringValue:s,...c}=e,l=a===`inline`||a===`both`,u=a===`inline`||a===`none`,d=n!==void 0,[p,m]=N.useState(r??``),[g,_]=N.useState(``);N.useEffect(()=>{d&&_(``)},[n,d]);let v;v=l&&g!==``?g:d?n??``:p;let y=f(),b=N.useMemo(()=>c.filter===void 0?y.contains:c.filter,[c.filter,y]),x=String(d?n:p).trim(),S=N.useMemo(()=>a===`both`?b===null?null:(e,t,n)=>b(e,x,n):u?null:b,[b,a,x,u]);function C(e,t){_(``),d||m(e),i?.(e,t)}function w(t,n){e.onItemHighlighted?.(t,n),n.reason!==`pointer`&&_(l?t==null?``:o(t,s):``)}return(0,P.jsx)(h,{...c,itemToStringLabel:s,openOnInputClick:t,selectionMode:`none`,fillInputOnItemPress:!0,filter:S,autoComplete:a,inputValue:v,defaultInputValue:r,onInputValueChange:C,onItemHighlighted:w})}var I=d,L=y,R=n(),z=F;function B(e){let t=(0,R.c)(30),n,r,o,s,c,u;t[0]===e?(n=t[1],r=t[2],o=t[3],s=t[4],c=t[5],u=t[6]):({className:n,showTrigger:c,showClear:u,startAddon:s,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=c,t[6]=u);let d=c!==void 0&&c,f=u!==void 0&&u,m=o??`default`,h;t[7]===s?h=t[8]:(h=s&&(0,P.jsx)(`div`,{"aria-hidden":`true`,className:`[&_svg]:-mx-0.5 pointer-events-none has-[button]:pointer-events-auto absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4`,"data-slot":`autocomplete-start-addon`,children:s}),t[7]=s,t[8]=h);let g=s&&`data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=autocomplete-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(8)-1px)]`,_=m===`sm`?`has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-6.5`:`has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-7`,y;t[9]!==n||t[10]!==g||t[11]!==_?(y=l(g,_,n),t[9]=n,t[10]=g,t[11]=_,t[12]=y):y=t[12];let b;t[13]===m?b=t[14]:(b=(0,P.jsx)(ee,{nativeInput:!0,size:m}),t[13]=m,t[14]=b);let x;t[15]!==r||t[16]!==y||t[17]!==b?(x=(0,P.jsx)(v,{className:y,"data-slot":`autocomplete-input`,render:b,...r}),t[15]=r,t[16]=y,t[17]=b,t[18]=x):x=t[18];let S;t[19]!==d||t[20]!==m?(S=d&&(0,P.jsx)(Q,{className:l(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,m===`sm`?`end-0`:`end-0.5`),children:(0,P.jsx)(p,{"data-slot":`autocomplete-icon`,children:(0,P.jsx)(i,{})})}),t[19]=d,t[20]=m,t[21]=S):S=t[21];let C;t[22]!==f||t[23]!==m?(C=f&&(0,P.jsx)(X,{className:l(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,m===`sm`?`end-0`:`end-0.5`),children:(0,P.jsx)(a,{})}),t[22]=f,t[23]=m,t[24]=C):C=t[24];let w;return t[25]!==C||t[26]!==h||t[27]!==x||t[28]!==S?(w=(0,P.jsxs)(`div`,{className:`relative not-has-[>*.w-full]:w-fit w-full text-foreground has-disabled:opacity-64`,children:[h,x,S,C]}),t[25]=C,t[26]=h,t[27]=x,t[28]=S,t[29]=w):w=t[29],w}function V(e){let t=(0,R.c)(24),n,r,i,a,o,s,c,d;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],d=t[8]):({className:a,children:i,side:s,sideOffset:c,alignOffset:n,align:d,anchor:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=d);let f=s===void 0?`bottom`:s,p=c===void 0?4:c,m=d===void 0?`start`:d,h;t[9]===a?h=t[10]:(h=l(`relative flex max-h-full min-w-(--anchor-width) max-w-(--available-width) origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding shadow-lg/5 transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,a),t[9]=a,t[10]=h);let g;t[11]!==i||t[12]!==o?(g=(0,P.jsx)(u,{className:`flex max-h-[min(var(--available-height),23rem)] flex-1 flex-col text-foreground`,"data-slot":`autocomplete-popup`,...o,children:i}),t[11]=i,t[12]=o,t[13]=g):g=t[13];let v;t[14]!==h||t[15]!==g?(v=(0,P.jsx)(`span`,{className:h,children:g}),t[14]=h,t[15]=g,t[16]=v):v=t[16];let y;return t[17]!==m||t[18]!==n||t[19]!==r||t[20]!==f||t[21]!==p||t[22]!==v?(y=(0,P.jsx)(b,{children:(0,P.jsx)(_,{align:m,alignOffset:n,anchor:r,className:`z-[130] select-none`,"data-slot":`autocomplete-positioner`,side:f,sideOffset:p,children:v})}),t[17]=m,t[18]=n,t[19]=r,t[20]=f,t[21]=p,t[22]=v,t[23]=y):y=t[23],y}function H(e){let t=(0,R.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=l(`flex min-h-8 cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base outline-none hover:bg-accent data-disabled:pointer-events-none data-selected:bg-accent/50 data-selected:text-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-accent [&[data-highlighted][data-selected]]:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='text-'])]:text-muted-foreground`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,P.jsx)(L,{className:a,"data-slot":`autocomplete-item`,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function U(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`[[role=group]+&]:mt-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(C,{className:i,"data-slot":`autocomplete-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var W=`px-2 py-1.5 font-medium text-muted-foreground text-xs`;function G(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(W,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(w,{className:i,"data-slot":`autocomplete-group-label`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function K(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(W,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(`div`,{className:i,"data-slot":`autocomplete-group-label`,role:`presentation`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function q(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`size-full min-w-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(m,{className:i,"data-slot":`autocomplete-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function J(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(g,{className:i,"data-slot":`autocomplete-empty`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Y(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`not-empty:scroll-py-1 not-empty:p-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(T,{scrollbarGutter:!0,scrollFade:!0,children:(0,P.jsx)(m,{className:i,"data-slot":`autocomplete-list`,...r})}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function X(e){let t=(0,R.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`-translate-y-1/2 absolute end-0.5 top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-[color,background-color,box-shadow,opacity] pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,n),t[3]=n,t[4]=i);let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,P.jsx)(a,{}),t[5]=o):o=t[5];let s;return t[6]!==r||t[7]!==i?(s=(0,P.jsx)(x,{className:i,"data-slot":`autocomplete-clear`,...r,children:o}),t[6]=r,t[7]=i,t[8]=s):s=t[8],s}function Z(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(S,{"data-slot":`autocomplete-collection`,...n}),t[2]=n,t[3]=r),r}function Q(e){let t=(0,R.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,P.jsx)(I,{className:r,"data-slot":`autocomplete-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var $=O,te=D;function ne(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(M,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(A,{className:i,"data-slot":`command-dialog-backdrop`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function re(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`pointer-events-none fixed inset-0 z-50 flex flex-col items-center px-4 py-[max(--spacing(4),4vh)] sm:py-[10vh]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(E,{className:i,"data-slot":`command-dialog-viewport`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ie(e){let t=(0,R.c)(16),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,onBackdropPointerDown:i,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]===i?o=t[6]:(o=(0,P.jsx)(ne,{onPointerDown:i}),t[5]=i,t[6]=o);let s;t[7]===r?s=t[8]:(s=l(j,`pointer-events-auto max-h-105 max-w-xl text-foreground`,r),t[7]=r,t[8]=s);let c;t[9]!==n||t[10]!==a||t[11]!==s?(c=(0,P.jsx)(re,{children:(0,P.jsx)(k,{className:s,"data-slot":`command-dialog-popup`,...a,children:n})}),t[9]=n,t[10]=a,t[11]=s,t[12]=c):c=t[12];let u;return t[13]!==o||t[14]!==c?(u=(0,P.jsxs)(te,{children:[o,c]}),t[13]=o,t[14]=c,t[15]=u):u=t[15],u}function ae(e){let t=(0,R.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({autoHighlight:r,keepHighlight:i,...n}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=r===void 0?`always`:r,o=i===void 0||i,s;return t[4]!==a||t[5]!==o||t[6]!==n?(s=(0,P.jsx)(z,{autoHighlight:a,inline:!0,keepHighlight:o,open:!0,...n}),t[4]=a,t[5]=o,t[6]=n,t[7]=s):s=t[7],s}function oe(e){let t=(0,R.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,placeholder:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=l(`border-transparent! bg-transparent! shadow-none before:hidden has-focus-visible:ring-0 placeholder:text-placeholder *:data-[slot=autocomplete-input]:ps-9! sm:*:data-[slot=autocomplete-input]:ps-[calc(var(--command-shell-inset)+1.5rem)]!`,n),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,P.jsx)(c,{className:`translate-x-0.5 text-icon-muted`}),t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==i||t[9]!==a?(s=(0,P.jsx)(`div`,{className:`px-[var(--command-shell-inset)] py-1.5 [&_[data-slot=autocomplete-start-addon]]:ps-[calc(var(--command-shell-inset)+0.0625rem)]`,children:(0,P.jsx)(B,{autoFocus:!0,className:a,placeholder:r,size:`lg`,startAddon:o,...i})}),t[7]=r,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}function se(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`not-empty:scroll-py-2 not-empty:p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(Y,{className:i,"data-slot":`command-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ce(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`flex max-h-[inherit] flex-col`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(q,{className:i,"data-slot":`command-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function le(e){let t=(0,R.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,P.jsx)(K,{className:n,"data-slot":`command-group-label`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ue(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`relative min-h-0 overflow-hidden rounded-t-xl not-has-[+[data-slot=command-footer]]:rounded-b-2xl bg-transparent **:data-[slot=scroll-area-scrollbar]:mt-2 [touch-action:pan-y]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(`div`,{className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function de(e){let t=(0,R.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,P.jsx)(U,{className:n,"data-slot":`command-group`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function fe(e){let t=(0,R.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,P.jsx)(G,{className:n,"data-slot":`command-group-label`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function pe(e){let t=(0,R.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,P.jsx)(Z,{"data-slot":`command-collection`,...n}),t[2]=n,t[3]=r),r}function me(e){let t=(0,R.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,active:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n!==void 0&&`cursor-pointer hover:bg-transparent hover:text-inherit data-highlighted:bg-transparent data-highlighted:text-inherit data-selected:bg-transparent data-selected:text-inherit [&[data-highlighted][data-selected]]:bg-transparent [&[data-highlighted][data-selected]]:text-inherit`,o=n&&`bg-accent! text-accent-foreground!`,s;t[4]!==r||t[5]!==a||t[6]!==o?(s=l(`py-1.5 data-selected:bg-foreground/[0.06] data-highlighted:bg-foreground/[0.09] data-highlighted:text-foreground [&[data-highlighted][data-selected]]:bg-foreground/[0.09] [&[data-highlighted][data-selected]]:text-foreground`,a,o,r),t[4]=r,t[5]=a,t[6]=o,t[7]=s):s=t[7];let c=n||void 0,u;return t[8]!==i||t[9]!==s||t[10]!==c?(u=(0,P.jsx)(H,{className:s,"data-active":c,"data-slot":`command-item`,...i}),t[8]=i,t[9]=s,t[10]=c,t[11]=u):u=t[11],u}function he(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`ms-auto font-medium font-sans text-secondary-label text-xs tracking-widest`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(`kbd`,{className:i,"data-slot":`command-shortcut`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ge(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`relative flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] bg-foreground/[0.025] px-[var(--command-content-inset)] py-2.5 font-medium text-sm text-muted-foreground [&_[data-slot=kbd-group]]:font-sans [&_[data-slot=kbd]]:bg-foreground/[0.08] [&_[data-slot=kbd]]:text-foreground [&_[data-slot=kbd]]:ring-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(`div`,{className:i,"data-slot":`command-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function _e(e){let t=(0,R.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=l(`h-auto px-2 text-xs hover:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,P.jsx)(s,{...r,variant:`ghost-muted`,size:`xs`,className:i}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{J as _,ge as a,Y as b,fe as c,se as d,le as f,z as g,he as h,ie as i,oe as l,ue as m,pe as n,_e as o,ce as p,$ as r,de as s,ae as t,me as u,B as v,V as x,H as y};
2
+ //# sourceMappingURL=command-Cg83G2rG.js.map
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{mr as i}from"./utils-Cs97wR6T.js";import{j as a}from"./runtime-DUPVFypn.js";import{t as o}from"./env-BfPir1X4.js";import{i as s,r as c}from"./dist--Lo1A95S.js";import{t as l}from"./authRedirect-DWE5a_T9.js";import{o as u,s as d}from"./main-C8b9a0ht.js";import{t as f}from"./AuthSurfaceShell--2lH1vql.js";var p=n(),m=e(t(),1),h=e(r(),1);function g(e){let t=(0,p.c)(10),{eyebrow:n,title:r,description:i}=e,a;t[0]===n?a=t[1]:(a=n?(0,h.jsx)(`p`,{className:`text-3xs font-semibold tracking-widest text-primary uppercase`,children:n}):null,t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=(0,h.jsx)(`h1`,{className:`mt-2 text-2xl font-semibold tracking-tight sm:text-3xl`,children:r}),t[2]=r,t[3]=o);let s;t[4]===i?s=t[5]:(s=(0,h.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-muted-foreground`,children:i}),t[4]=i,t[5]=s);let c;return t[6]!==a||t[7]!==o||t[8]!==s?(c=(0,h.jsxs)(h.Fragment,{children:[a,o,s]}),t[6]=a,t[7]=o,t[8]=s,t[9]=c):c=t[9],c}var _={eyebrow:`Authorization request`,title:`This connect link is incomplete`,description:"The link is missing its authorization request. Re-run `p4c connect` in your terminal and open the freshly printed URL."};function v(){let e=(0,p.c)(19),[t]=(0,m.useState)(y),n=s(),{isLoaded:r,isSignedIn:a}=c(),v=(0,m.useRef)(!1),b=(0,m.useRef)(!1),x;e[0]!==n||e[1]!==t?(x=()=>{t&&n.openSignIn(l(d(t,window.location.href),o))},e[0]=n,e[1]=t,e[2]=x):x=e[2];let S=x,C,w;if(e[3]!==r||e[4]!==a||e[5]!==S||e[6]!==t?(C=()=>{if(!t||!r||b.current)return;if(!a){v.current||(v.current=!0,S());return}let e=u(t);e&&(b.current=!0,window.location.assign(e))},w=[r,a,S,t],e[3]=r,e[4]=a,e[5]=S,e[6]=t,e[7]=C,e[8]=w):(C=e[7],w=e[8]),(0,m.useEffect)(C,w),!t){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,h.jsx)(f,{children:(0,h.jsx)(g,{..._})}),e[9]=t):t=e[9],t}let T=a?`Redirecting to authorize P4 Connect for your CLI…`:`Sign in to continue authorizing P4 Connect for your CLI.`,E;e[10]===T?E=e[11]:(E=(0,h.jsx)(g,{eyebrow:`Browser authorization`,title:`Connecting your terminal`,description:T}),e[10]=T,e[11]=E);let D;e[12]!==r||e[13]!==a||e[14]!==S?(D=r&&!a?(0,h.jsx)(`div`,{className:`mt-6`,children:(0,h.jsx)(i,{type:`button`,onClick:S,children:`Sign in`})}):null,e[12]=r,e[13]=a,e[14]=S,e[15]=D):D=e[15];let O;return e[16]!==E||e[17]!==D?(O=(0,h.jsxs)(f,{children:[E,D]}),e[16]=E,e[17]=D,e[18]=O):O=e[18],O}function y(){return a(new URL(window.location.href))}var b=v;export{b as component};
2
- //# sourceMappingURL=connect-CQUjsv6p.js.map
1
+ import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{mr as i}from"./utils-DsOiwDNN.js";import{j as a}from"./runtime-DYDOkR3G.js";import{t as o}from"./env-BfPir1X4.js";import{i as s,r as c}from"./dist-1X_vspyy.js";import{t as l}from"./authRedirect-DWE5a_T9.js";import{o as u,s as d}from"./main-CNyrs4J_.js";import{t as f}from"./AuthSurfaceShell-uHFuClfP.js";var p=n(),m=e(t(),1),h=e(r(),1);function g(e){let t=(0,p.c)(10),{eyebrow:n,title:r,description:i}=e,a;t[0]===n?a=t[1]:(a=n?(0,h.jsx)(`p`,{className:`text-3xs font-semibold tracking-widest text-primary uppercase`,children:n}):null,t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=(0,h.jsx)(`h1`,{className:`mt-2 text-2xl font-semibold tracking-tight sm:text-3xl`,children:r}),t[2]=r,t[3]=o);let s;t[4]===i?s=t[5]:(s=(0,h.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-muted-foreground`,children:i}),t[4]=i,t[5]=s);let c;return t[6]!==a||t[7]!==o||t[8]!==s?(c=(0,h.jsxs)(h.Fragment,{children:[a,o,s]}),t[6]=a,t[7]=o,t[8]=s,t[9]=c):c=t[9],c}var _={eyebrow:`Authorization request`,title:`This connect link is incomplete`,description:"The link is missing its authorization request. Re-run `p4c connect` in your terminal and open the freshly printed URL."};function v(){let e=(0,p.c)(19),[t]=(0,m.useState)(y),n=s(),{isLoaded:r,isSignedIn:a}=c(),v=(0,m.useRef)(!1),b=(0,m.useRef)(!1),x;e[0]!==n||e[1]!==t?(x=()=>{t&&n.openSignIn(l(d(t,window.location.href),o))},e[0]=n,e[1]=t,e[2]=x):x=e[2];let S=x,C,w;if(e[3]!==r||e[4]!==a||e[5]!==S||e[6]!==t?(C=()=>{if(!t||!r||b.current)return;if(!a){v.current||(v.current=!0,S());return}let e=u(t);e&&(b.current=!0,window.location.assign(e))},w=[r,a,S,t],e[3]=r,e[4]=a,e[5]=S,e[6]=t,e[7]=C,e[8]=w):(C=e[7],w=e[8]),(0,m.useEffect)(C,w),!t){let t;return e[9]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,h.jsx)(f,{children:(0,h.jsx)(g,{..._})}),e[9]=t):t=e[9],t}let T=a?`Redirecting to authorize P4 Connect for your CLI…`:`Sign in to continue authorizing P4 Connect for your CLI.`,E;e[10]===T?E=e[11]:(E=(0,h.jsx)(g,{eyebrow:`Browser authorization`,title:`Connecting your terminal`,description:T}),e[10]=T,e[11]=E);let D;e[12]!==r||e[13]!==a||e[14]!==S?(D=r&&!a?(0,h.jsx)(`div`,{className:`mt-6`,children:(0,h.jsx)(i,{type:`button`,onClick:S,children:`Sign in`})}):null,e[12]=r,e[13]=a,e[14]=S,e[15]=D):D=e[15];let O;return e[16]!==E||e[17]!==D?(O=(0,h.jsxs)(f,{children:[E,D]}),e[16]=E,e[17]=D,e[18]=O):O=e[18],O}function y(){return a(new URL(window.location.href))}var b=v;export{b as component};
2
+ //# sourceMappingURL=connect-C7ENaX3L.js.map
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./ConnectAgentSurface-D9vE8btn.js";var t=e;export{t as component};
2
+ //# sourceMappingURL=connect-agent-BEYL9KOm.js.map
@@ -1,2 +1,2 @@
1
- import{Au as e,Eu as t,Hd as n,Md as r,Nu as i,So as a,_u as o,ko as s,md as c}from"./src-BZzGU-vc.js";import{Ar as l,Fr as u,Ir as d,Nr as f,Rr as p,Vr as m,gr as h,hr as g,kr as _,t as v,zr as y}from"./runtime-DUPVFypn.js";import{Va as b}from"./main-C8b9a0ht.js";function x(e){let t=b(e),n=t.replace(/[-_]+/g,` `).trim()||t;return n.charAt(0).toUpperCase()+n.slice(1)}function S(e){let t=e.lastIndexOf(`/`);return t>0?e.slice(0,t):null}function C(e){let t=new Set(e.linkedPaths),n=e.entries??e.paths.map(e=>({path:e,secondary:!1,modifiedAt:void 0})),r=new Set(n.map(e=>e.path)),i=e=>({path:e.path,name:x(e.path),folder:S(e.path),modifiedAt:e.modifiedAt??null,pageCount:e.pageCount??null,group:t.has(e.path)?`thread`:e.secondary?`other`:`project`,missing:!r.has(e.path)}),a=e.linkedPaths.map(e=>i(n.find(t=>t.path===e)??{path:e,secondary:!1})),o=n.filter(e=>!t.has(e.path)).map(i);return[...a,...o.filter(e=>e.group===`project`),...o.filter(e=>e.group===`other`)]}function w(e,t,n=!0){let r=[e.pageCount===null?null:`${e.pageCount} ${e.pageCount===1?`page`:`pages`}`,D(e.modifiedAt,t)].filter(Boolean),i=e.folder??`Project root`;return(n||r.length===0?[i,...r]:r).join(` - `)}function T(e,t){let n=t.trim().toLowerCase(),r=n?e.toLowerCase().indexOf(n):-1;return r<0?{before:e,match:``,after:``}:{before:e.slice(0,r),match:e.slice(r,r+n.length),after:e.slice(r+n.length)}}function E(e,t){let n=t.trim().toLowerCase();return!n||`${e.name} ${e.path}`.toLowerCase().includes(n)}function D(e,t){if(!e)return null;let n=Date.parse(e);if(Number.isNaN(n))return null;let r=Math.max(0,Math.round((t-n)/6e4));if(r<1)return`just now`;if(r<60)return`${r}m ago`;let i=Math.round(r/60);if(i<24)return`${i}h ago`;let a=Math.round(i/24);return a===1?`yesterday`:a<7?`${a}d ago`:new Date(n).toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function O(e){let t=d(e,`design.transfer`);return{permissionAtom:t.permissionAtom,run:(e,n,r)=>y(n,f(`design.transfer`,r).pipe(s(_,{authorize:n=>t.authorize(e,n)})))}}var k=g(v,{label:`design-catalog`,execute:e=>l(`design.catalog`,e)}),A=g(v,{label:`design-thumbnail`,execute:e=>{let{revision:t,...n}=e;return l(`design.thumbnail`,n)}}),j=(e,t,n)=>A({environmentId:e.environmentId,input:{...N(e),documentPath:t,revision:n}}),M=e=>k({environmentId:e.environmentId,input:N(e)}),N=e=>({projectId:e.projectId,...e.threadId?{threadId:e.threadId}:{}}),P=h(v,{label:`Save design review`,tag:`design.review`}),F=h(v,{label:`Save model poster`,tag:`design.poster`}),I=h(v,{label:`Restore design revision`,tag:`design.revisions.restore`}),L=h(v,{label:`Rename design revision`,tag:`design.revisions.rename`}),R=h(v,{label:`Delete design revision`,tag:`design.revisions.delete`}),z=h(v,{label:`Delete design`,tag:`design.documents.delete`}),B=O(v);function V(s){return{revisions:(t,n)=>e(m,e=>e.run(t.environmentId,l(`design.revisions`,{...N(t),documentPath:n}))),restoreRevision:(r,i,a,o)=>c(()=>I.run(s,{environmentId:r.environmentId,input:{...N(r),documentPath:i,revisionId:a,expectedFileHash:o}})).pipe(e(e=>e._tag===`Success`?n(e.value):t(e.cause))),readRevision:(t,n,r)=>e(m,e=>e.run(t.environmentId,l(`design.revisions.read`,{...N(t),documentPath:n,revisionId:r}))),renameRevision:(r,i,a,o)=>c(()=>L.run(s,{environmentId:r.environmentId,input:{...N(r),documentPath:i,revisionId:a,label:o}})).pipe(e(e=>e._tag===`Success`?n(e.value):t(e.cause))),deleteRevision:(r,i,a)=>c(()=>R.run(s,{environmentId:r.environmentId,input:{...N(r),documentPath:i,revisionId:a}})).pipe(e(e=>e._tag===`Success`?n(e.value):t(e.cause))),subscribe:(e,t)=>p(e.environmentId,u(`design.subscribe`,()=>n({...N(e),documentPath:t})).pipe(a(i(`DesignTransport.assets`)(function*(t){let n=yield*m,i=yield*o();return{event:t,fetchAsset:t=>r(i)(n.run(e.environmentId,l(`design.asset`,t)))}})))),catalog:M,thumbnail:j,review:(r,i)=>c(()=>P.run(s,{environmentId:r.environmentId,input:{target:N(r),request:i}})).pipe(e(e=>e._tag===`Success`?n(e.value):t(e.cause))),poster:(r,i)=>c(()=>F.run(s,{environmentId:r.environmentId,input:{target:N(r),request:i}})).pipe(e(e=>e._tag===`Success`?n(e.value):t(e.cause))),view:(t,n,r)=>e(m,e=>e.run(t.environmentId,l(`design.view`,{...N(t),documentPath:n,viewport:r.viewport,selection:[...r.selection]}))),transfer:(e,t)=>B.run(s,e.environmentId,t)}}export{j as a,x as c,T as d,P as i,C as l,M as n,D as o,z as r,w as s,V as t,E as u};
2
- //# sourceMappingURL=design-BL2REeQ-.js.map
1
+ import{Ao as e,Co as t,Du as n,Nd as r,Pu as i,Wd as a,hd as o,ju as s,vu as c}from"./src-B7vcPG0D.js";import{Ar as l,Fr as u,Ir as d,Nr as f,Rr as p,Vr as m,gr as h,hr as g,kr as _,t as v,zr as y}from"./runtime-DYDOkR3G.js";import{za as b}from"./main-CNyrs4J_.js";function x(e){let t=b(e),n=t.replace(/[-_]+/g,` `).trim()||t;return n.charAt(0).toUpperCase()+n.slice(1)}function S(e){let t=e.lastIndexOf(`/`);return t>0?e.slice(0,t):null}function C(e){let t=new Set(e.linkedPaths),n=e.entries??e.paths.map(e=>({path:e,secondary:!1,modifiedAt:void 0})),r=new Set(n.map(e=>e.path)),i=e=>({path:e.path,name:x(e.path),folder:S(e.path),modifiedAt:e.modifiedAt??null,pageCount:e.pageCount??null,group:t.has(e.path)?`thread`:e.secondary?`other`:`project`,missing:!r.has(e.path)}),a=e.linkedPaths.map(e=>i(n.find(t=>t.path===e)??{path:e,secondary:!1})),o=n.filter(e=>!t.has(e.path)).map(i);return[...a,...o.filter(e=>e.group===`project`),...o.filter(e=>e.group===`other`)]}function w(e,t,n=!0){let r=[e.pageCount===null?null:`${e.pageCount} ${e.pageCount===1?`page`:`pages`}`,D(e.modifiedAt,t)].filter(Boolean),i=e.folder??`Project root`;return(n||r.length===0?[i,...r]:r).join(` - `)}function T(e,t){let n=t.trim().toLowerCase(),r=n?e.toLowerCase().indexOf(n):-1;return r<0?{before:e,match:``,after:``}:{before:e.slice(0,r),match:e.slice(r,r+n.length),after:e.slice(r+n.length)}}function E(e,t){let n=t.trim().toLowerCase();return!n||`${e.name} ${e.path}`.toLowerCase().includes(n)}function D(e,t){if(!e)return null;let n=Date.parse(e);if(Number.isNaN(n))return null;let r=Math.max(0,Math.round((t-n)/6e4));if(r<1)return`just now`;if(r<60)return`${r}m ago`;let i=Math.round(r/60);if(i<24)return`${i}h ago`;let a=Math.round(i/24);return a===1?`yesterday`:a<7?`${a}d ago`:new Date(n).toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function O(t){let n=d(t,`design.transfer`);return{permissionAtom:n.permissionAtom,run:(t,r,i)=>y(r,f(`design.transfer`,i).pipe(e(_,{authorize:e=>n.authorize(t,e)})))}}var k=g(v,{label:`design-catalog`,execute:e=>l(`design.catalog`,e)}),A=g(v,{label:`design-thumbnail`,execute:e=>{let{revision:t,...n}=e;return l(`design.thumbnail`,n)}}),j=(e,t,n)=>A({environmentId:e.environmentId,input:{...N(e),documentPath:t,revision:n}}),M=e=>k({environmentId:e.environmentId,input:N(e)}),N=e=>({projectId:e.projectId,...e.threadId?{threadId:e.threadId}:{}}),P=h(v,{label:`Save design review`,tag:`design.review`}),F=h(v,{label:`Save model poster`,tag:`design.poster`}),I=h(v,{label:`Restore design revision`,tag:`design.revisions.restore`}),L=h(v,{label:`Rename design revision`,tag:`design.revisions.rename`}),R=h(v,{label:`Delete design revision`,tag:`design.revisions.delete`}),z=h(v,{label:`Delete design`,tag:`design.documents.delete`}),B=O(v);function V(e){return{revisions:(e,t)=>s(m,n=>n.run(e.environmentId,l(`design.revisions`,{...N(e),documentPath:t}))),restoreRevision:(t,r,i,c)=>o(()=>I.run(e,{environmentId:t.environmentId,input:{...N(t),documentPath:r,revisionId:i,expectedFileHash:c}})).pipe(s(e=>e._tag===`Success`?a(e.value):n(e.cause))),readRevision:(e,t,n)=>s(m,r=>r.run(e.environmentId,l(`design.revisions.read`,{...N(e),documentPath:t,revisionId:n}))),renameRevision:(t,r,i,c)=>o(()=>L.run(e,{environmentId:t.environmentId,input:{...N(t),documentPath:r,revisionId:i,label:c}})).pipe(s(e=>e._tag===`Success`?a(e.value):n(e.cause))),deleteRevision:(t,r,i)=>o(()=>R.run(e,{environmentId:t.environmentId,input:{...N(t),documentPath:r,revisionId:i}})).pipe(s(e=>e._tag===`Success`?a(e.value):n(e.cause))),subscribe:(e,n)=>p(e.environmentId,u(`design.subscribe`,()=>a({...N(e),documentPath:n})).pipe(t(i(`DesignTransport.assets`)(function*(t){let n=yield*m,i=yield*c();return{event:t,fetchAsset:t=>r(i)(n.run(e.environmentId,l(`design.asset`,t)))}})))),catalog:M,thumbnail:j,review:(t,r)=>o(()=>P.run(e,{environmentId:t.environmentId,input:{target:N(t),request:r}})).pipe(s(e=>e._tag===`Success`?a(e.value):n(e.cause))),poster:(t,r)=>o(()=>F.run(e,{environmentId:t.environmentId,input:{target:N(t),request:r}})).pipe(s(e=>e._tag===`Success`?a(e.value):n(e.cause))),view:(e,t,n)=>s(m,r=>r.run(e.environmentId,l(`design.view`,{...N(e),documentPath:t,viewport:n.viewport,selection:[...n.selection]}))),transfer:(t,n)=>B.run(e,t.environmentId,n)}}export{j as a,x as c,T as d,P as i,C as l,M as n,D as o,z as r,w as s,V as t,E as u};
2
+ //# sourceMappingURL=design-pZfTAgOJ.js.map
@@ -1,2 +1,2 @@
1
- import{n as e}from"./jsx-runtime-DJeoFXNw.js";import{Jo as t,Wo as n,Zo as r,as as i,bs as a,es as o,ls as s,uc as c,xs as l}from"./utils-Cs97wR6T.js";import{Bd as u,Nu as d,n as f,sd as p,sh as m}from"./src-BZzGU-vc.js";import{Br as h,gr as g,li as _,pr as v,si as y,t as b,vr as x}from"./runtime-DUPVFypn.js";import{t as S}from"./session-BryEqNW-.js";import{n as C}from"./query-DpmTmXUV.js";var w=e();function T(e){let t=v(),n={mode:`serial`,key:({environmentId:e})=>e};return{state:x(e,{label:`environment-data:device:state`,tag:f.subscribeDeviceState}),configure:g(e,{label:`environment-data:device:configure`,tag:f.deviceConfigure,scheduler:t,concurrency:n}),testHost:g(e,{label:`environment-data:device:test-host`,tag:f.deviceTestHost}),easAccount:g(e,{label:`environment-data:device:eas-account`,tag:f.deviceEasAccount}),list:g(e,{label:`environment-data:device:list`,tag:f.deviceList,scheduler:t,concurrency:n}),open:g(e,{label:`environment-data:device:open`,tag:f.deviceOpen,scheduler:t,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,`open`,t.threadId,t.hostId??null,t.deviceId])}}),close:g(e,{label:`environment-data:device:close`,tag:f.deviceClose,scheduler:t,concurrency:n}),shutdown:g(e,{label:`environment-data:device:shutdown`,tag:f.deviceShutdown,scheduler:t,concurrency:n}),detail:g(e,{label:`environment-data:device:detail`,tag:f.deviceDetail,scheduler:t,concurrency:n}),action:g(e,{label:`environment-data:device:action`,tag:f.deviceAction,scheduler:t,concurrency:n})}}var E=8e3,D=d(`clientRuntime.state.resolveDeviceHubAccess`)(function*(e){let t=c(e.prepared.httpBaseUrl,e.hubBasePath),n=t.replace(/^http/,`ws`);if(e.prepared.httpAuthorization===null)return{httpBase:t,wsBase:n,query:{},credentials:!0};let r=yield*u(_),i=yield*u(y);return{httpBase:t,wsBase:n,query:{wsTicket:(yield*h({prepared:e.prepared,signer:r,remoteAuthorization:i,group:`auth`,method:`POST`,url:e=>e.webSocketTicketFor({params:{use:`media`}}),timeoutMs:E,request:({client:e,headers:t})=>e.webSocketTicketFor({headers:t,params:{use:`media`}})})).ticket},credentials:!1}}),O=T(b),k={hosts:[],hostStatus:`disabled`,hostStatuses:{},devices:[],sessions:[],onboardingCompleted:!1,agentAccessEnabled:!1,hubBasePath:`/api/device-hub`,revision:0};function A(e){let t=(0,w.c)(7),n;t[0]===e?n=t[1]:(n=e===null?null:O.state({environmentId:e,input:{}}),t[0]=e,t[1]=n);let r=C(n),i=r.data??k,a=r.data!==null,o;return t[2]!==r.error||t[3]!==r.refresh||t[4]!==i||t[5]!==a?(o={state:i,loaded:a,error:r.error,refresh:r.refresh},t[2]=r.error,t[3]=r.refresh,t[4]=i,t[5]=a,t[6]=o):o=t[6],o}var j=r(e=>b.atom(t=>{let n=m(t(S.preparedConnectionValueAtom(e)));return n===null?p:D({prepared:n,hubBasePath:k.hubBasePath})}).pipe(i(6e4),s(`device-hub-access:${e}`)));function M(e,n){let r=(0,w.c)(5),i=n===void 0?`local`:n,a;r[0]===e?a=r[1]:(a=e===null?N:j(e),r[0]=e,r[1]=a);let o=t(a),s;return r[2]!==i||r[3]!==o?(s=l(o)?{...o.value,query:{...o.value.query,hostId:i}}:null,r[2]=i,r[3]=o,r[4]=s):s=r[4],s}var N=o(a()).pipe(s(`device-hub-access:empty`));function P(e){n.refresh(j(e))}export{D as a,A as i,P as n,M as r,O as t};
2
- //# sourceMappingURL=device-DUMKyegd.js.map
1
+ import{n as e}from"./jsx-runtime-DJeoFXNw.js";import{Cs as t,Zo as n,cs as r,es as i,fs as a,pc as o,qo as s,rs as c,ws as l}from"./utils-DsOiwDNN.js";import{Hd as u,Pu as d,cd as f,lh as p,n as m}from"./src-B7vcPG0D.js";import{Br as h,gr as g,li as _,pr as v,si as y,t as b,vr as x}from"./runtime-DYDOkR3G.js";import{t as S}from"./session-A0FOa5Fv.js";import{n as C}from"./query-B8d0w621.js";var w=e();function T(e){let t=v(),n={mode:`serial`,key:({environmentId:e})=>e};return{state:x(e,{label:`environment-data:device:state`,tag:m.subscribeDeviceState}),configure:g(e,{label:`environment-data:device:configure`,tag:m.deviceConfigure,scheduler:t,concurrency:n}),testHost:g(e,{label:`environment-data:device:test-host`,tag:m.deviceTestHost}),easAccount:g(e,{label:`environment-data:device:eas-account`,tag:m.deviceEasAccount}),list:g(e,{label:`environment-data:device:list`,tag:m.deviceList,scheduler:t,concurrency:n}),open:g(e,{label:`environment-data:device:open`,tag:m.deviceOpen,scheduler:t,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,`open`,t.threadId,t.hostId??null,t.deviceId])}}),close:g(e,{label:`environment-data:device:close`,tag:m.deviceClose,scheduler:t,concurrency:n}),shutdown:g(e,{label:`environment-data:device:shutdown`,tag:m.deviceShutdown,scheduler:t,concurrency:n}),detail:g(e,{label:`environment-data:device:detail`,tag:m.deviceDetail,scheduler:t,concurrency:n}),action:g(e,{label:`environment-data:device:action`,tag:m.deviceAction,scheduler:t,concurrency:n})}}var E=8e3,D=d(`clientRuntime.state.resolveDeviceHubAccess`)(function*(e){let t=o(e.prepared.httpBaseUrl,e.hubBasePath),n=t.replace(/^http/,`ws`);if(e.prepared.httpAuthorization===null)return{httpBase:t,wsBase:n,query:{},credentials:!0};let r=yield*u(_),i=yield*u(y);return{httpBase:t,wsBase:n,query:{wsTicket:(yield*h({prepared:e.prepared,signer:r,remoteAuthorization:i,group:`auth`,method:`POST`,url:e=>e.webSocketTicketFor({params:{use:`media`}}),timeoutMs:E,request:({client:e,headers:t})=>e.webSocketTicketFor({headers:t,params:{use:`media`}})})).ticket},credentials:!1}}),O=T(b),k={hosts:[],hostStatus:`disabled`,hostStatuses:{},devices:[],sessions:[],onboardingCompleted:!1,agentAccessEnabled:!1,hubBasePath:`/api/device-hub`,revision:0};function A(e){let t=(0,w.c)(7),n;t[0]===e?n=t[1]:(n=e===null?null:O.state({environmentId:e,input:{}}),t[0]=e,t[1]=n);let r=C(n),i=r.data??k,a=r.data!==null,o;return t[2]!==r.error||t[3]!==r.refresh||t[4]!==i||t[5]!==a?(o={state:i,loaded:a,error:r.error,refresh:r.refresh},t[2]=r.error,t[3]=r.refresh,t[4]=i,t[5]=a,t[6]=o):o=t[6],o}var j=i(e=>b.atom(t=>{let n=p(t(S.preparedConnectionValueAtom(e)));return n===null?f:D({prepared:n,hubBasePath:k.hubBasePath})}).pipe(r(6e4),a(`device-hub-access:${e}`)));function M(e,t){let r=(0,w.c)(5),i=t===void 0?`local`:t,a;r[0]===e?a=r[1]:(a=e===null?N:j(e),r[0]=e,r[1]=a);let o=n(a),s;return r[2]!==i||r[3]!==o?(s=l(o)?{...o.value,query:{...o.value.query,hostId:i}}:null,r[2]=i,r[3]=o,r[4]=s):s=r[4],s}var N=c(t()).pipe(a(`device-hub-access:empty`));function P(e){s.refresh(j(e))}export{D as a,A as i,P as n,M as r,O as t};
2
+ //# sourceMappingURL=device-CG5GzxuX.js.map
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Co as i,Dr as a,Gi as o,Ii as s,Na as c,Ti as l,Va as u,mr as d,rp as f,t as p}from"./utils-Cs97wR6T.js";import{f as m,n as h}from"./useRender-BP5vR6yH.js";import{t as g}from"./scroll-area-D9QT2Odm.js";import{c as _,d as v,l as y,n as b,o as x,r as S,s as C,t as w,u as T}from"./DialogTitle-C9j5Tmuy.js";var E=e(t()),D=E.forwardRef(function(e,t){let{render:n,className:r,style:d,disabled:f=!1,nativeButton:p=!0,id:g,payload:_,handle:y,...b}=e,x=v(!0),S=y?.store??x?.store;if(!S)throw Error(m(79));let C=c(g),w=S.useState(`floatingRootContext`),T=S.useState(`isOpenedByTrigger`,C),D=S.useState(`triggerPopupId`,C),O=E.useRef(null),{registerTrigger:k,isMountedByThisTrigger:A}=l(C,O,S,{payload:_}),{getButtonProps:j,buttonRef:M}=u({disabled:f,native:p}),N=s(w,{enabled:w!=null}),P=a(()=>S.select(`open`),e=>{S.set(`openMethod`,e)}),F={disabled:f,open:T},I=S.useState(`triggerProps`,A);return h(`button`,e,{state:F,ref:[M,t,k,O],props:[N.reference,I,P,{[o]:``,id:C,"aria-haspopup":`dialog`,"aria-expanded":T,"aria-controls":D},b,j],stateAttributesMapping:i})}),O=n(),k=`fixed inset-0 z-50 transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0`,A=`dialog-backdrop ${k}`,j=`${k} bg-black/75 backdrop-blur-none`,M=`-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative flex min-h-0 w-full min-w-0 scale-[calc(1-0.1*var(--nested-dialogs))] flex-col opacity-[calc(1-0.1*var(--nested-dialogs))] outline-none transition-[scale,opacity,translate] duration-200 ease-in-out will-change-transform data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 [-webkit-app-region:no-drag]`,N=`dialog-glass ${M} rounded-2xl border`,P=`${M} max-h-[92vh] w-auto max-w-[92vw] overflow-visible rounded-none border border-transparent bg-transparent p-0 shadow-none`,F=`max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4`,I=e(r(),1),L=S,R=x;function z(e){let t=(0,O.c)(2),n;return t[0]===e?n=t[1]:(n=(0,I.jsx)(D,{"data-slot":`dialog-trigger`,...e}),t[0]=e,t[1]=n),n}function B(e){let t=(0,O.c)(2),n;return t[0]===e?n=t[1]:(n=(0,I.jsx)(y,{"data-slot":`dialog-close`,...e}),t[0]=e,t[1]=n),n}function V(e){let t=(0,O.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=(i===void 0?`default`:i)===`media`?j:A,o;t[4]!==n||t[5]!==a?(o=p(a,n),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o?(s=(0,I.jsx)(T,{forceRender:!0,className:o,"data-slot":`dialog-backdrop`,...r}),t[7]=r,t[8]=o,t[9]=s):s=t[9],s}function H(e){let t=(0,O.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=p(`fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center p-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(b,{className:i,"data-slot":`dialog-viewport`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function U(e){let t=(0,O.c)(31),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:r,children:n,showCloseButton:a,bottomStickOnMobile:o,variant:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0||a,l=o===void 0||o,u=s===void 0?`default`:s,m=u===`media`?`z-[60]`:void 0,h;t[7]!==m||t[8]!==u?(h=(0,I.jsx)(V,{className:m,variant:u}),t[7]=m,t[8]=u,t[9]=h):h=t[9];let g=l&&`max-sm:grid-rows-[1fr_auto] max-sm:p-0 max-sm:pt-12`,_=u===`media`&&`z-[60] grid-rows-1 place-items-center px-4 py-6 [-webkit-app-region:no-drag]`,v;t[10]!==g||t[11]!==_?(v=p(g,_),t[10]=g,t[11]=_,t[12]=v):v=t[12];let b=u===`media`?P:N,x=u==="default"&&`max-h-full max-w-lg`,S=l&&`max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4`,w;t[13]!==r||t[14]!==x||t[15]!==S||t[16]!==b?(w=p(b,`row-start-2 text-popover-foreground`,x,S,r),t[13]=r,t[14]=x,t[15]=S,t[16]=b,t[17]=w):w=t[17];let T;t[18]===c?T=t[19]:(T=c&&(0,I.jsx)(y,{"aria-label":`Close`,className:`absolute end-2 top-2`,render:(0,I.jsx)(d,{size:`icon`,variant:`ghost`}),children:(0,I.jsx)(f,{})}),t[18]=c,t[19]=T);let E;t[20]!==n||t[21]!==i||t[22]!==w||t[23]!==T?(E=(0,I.jsxs)(C,{className:w,"data-slot":`dialog-popup`,...i,children:[n,T]}),t[20]=n,t[21]=i,t[22]=w,t[23]=T,t[24]=E):E=t[24];let D;t[25]!==E||t[26]!==v?(D=(0,I.jsx)(H,{className:v,children:E}),t[25]=E,t[26]=v,t[27]=D):D=t[27];let k;return t[28]!==D||t[29]!==h?(k=(0,I.jsxs)(R,{children:[h,D]}),t[28]=D,t[29]=h,t[30]=k):k=t[30],k}function W(e){let t=(0,O.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=p(`flex flex-col gap-2 p-6 in-[[data-slot=dialog-popup]:has([data-slot=dialog-panel])]:pb-3 max-sm:pb-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(`div`,{className:i,"data-slot":`dialog-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function G(e){let t=(0,O.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o=a==="default"&&`border-t bg-muted/72 py-4`,s=a===`bare`&&`py-4`,c;t[4]!==n||t[5]!==o||t[6]!==s?(c=p(`flex flex-col-reverse gap-2 px-6 sm:flex-row sm:justify-end sm:rounded-b-[calc(var(--radius-2xl)-1px)]`,o,s,n),t[4]=n,t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==c?(l=(0,I.jsx)(`div`,{className:c,"data-slot":`dialog-footer`,...r}),t[8]=r,t[9]=c,t[10]=l):l=t[10],l}function K(e){let t=(0,O.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=p(`wrap-anywhere font-semibold text-xl leading-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(w,{className:i,"data-slot":`dialog-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function q(e){let t=(0,O.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=p(`text-muted-foreground text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(_,{className:i,"data-slot":`dialog-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function J(e){let t=(0,O.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,scrollFade:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0||i,o;t[4]===n?o=t[5]:(o=p(`space-y-4 p-6 in-[[data-slot=dialog-popup]:has([data-slot=dialog-header])]:pt-1 in-[[data-slot=dialog-popup]:has([data-slot=dialog-footer]:not(.border-t))]:pb-1`,n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==o?(s=(0,I.jsx)(`div`,{className:o,"data-slot":`dialog-panel`,...r}),t[6]=r,t[7]=o,t[8]=s):s=t[8];let c;return t[9]!==a||t[10]!==s?(c=(0,I.jsx)(g,{scrollFade:a,children:s}),t[9]=a,t[10]=s,t[11]=c):c=t[11],c}export{W as a,K as c,F as d,N as f,G as i,z as l,B as n,J as o,q as r,U as s,L as t,A as u};
2
- //# sourceMappingURL=dialog-BzESHWgr.js.map
1
+ import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Dr as i,Eo as a,Ia as o,Ji as s,Oi as c,Wa as l,cp as u,mr as d,t as f,zi as p}from"./utils-DsOiwDNN.js";import{f as m,n as h}from"./useRender-BP5vR6yH.js";import{t as g}from"./scroll-area-B1iVi_db.js";import{c as _,d as v,l as y,n as b,o as x,r as S,s as C,t as w,u as T}from"./DialogTitle-BNEjkHZl.js";var E=e(t()),D=E.forwardRef(function(e,t){let{render:n,className:r,style:u,disabled:d=!1,nativeButton:f=!0,id:g,payload:_,handle:y,...b}=e,x=v(!0),S=y?.store??x?.store;if(!S)throw Error(m(79));let C=o(g),w=S.useState(`floatingRootContext`),T=S.useState(`isOpenedByTrigger`,C),D=S.useState(`triggerPopupId`,C),O=E.useRef(null),{registerTrigger:k,isMountedByThisTrigger:A}=c(C,O,S,{payload:_}),{getButtonProps:j,buttonRef:M}=l({disabled:d,native:f}),N=p(w,{enabled:w!=null}),P=i(()=>S.select(`open`),e=>{S.set(`openMethod`,e)}),F={disabled:d,open:T},I=S.useState(`triggerProps`,A);return h(`button`,e,{state:F,ref:[M,t,k,O],props:[N.reference,I,P,{[s]:``,id:C,"aria-haspopup":`dialog`,"aria-expanded":T,"aria-controls":D},b,j],stateAttributesMapping:a})}),O=n(),k=`fixed inset-0 z-50 transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0`,A=`dialog-backdrop ${k}`,j=`${k} bg-black/75 backdrop-blur-none`,M=`-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative flex min-h-0 w-full min-w-0 scale-[calc(1-0.1*var(--nested-dialogs))] flex-col opacity-[calc(1-0.1*var(--nested-dialogs))] outline-none transition-[scale,opacity,translate] duration-200 ease-in-out will-change-transform data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 [-webkit-app-region:no-drag]`,N=`dialog-glass ${M} rounded-2xl border`,P=`${M} max-h-[92vh] w-auto max-w-[92vw] overflow-visible rounded-none border border-transparent bg-transparent p-0 shadow-none`,F=`max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4`,I=e(r(),1),L=S,R=x;function z(e){let t=(0,O.c)(2),n;return t[0]===e?n=t[1]:(n=(0,I.jsx)(D,{"data-slot":`dialog-trigger`,...e}),t[0]=e,t[1]=n),n}function B(e){let t=(0,O.c)(2),n;return t[0]===e?n=t[1]:(n=(0,I.jsx)(y,{"data-slot":`dialog-close`,...e}),t[0]=e,t[1]=n),n}function V(e){let t=(0,O.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=(i===void 0?`default`:i)===`media`?j:A,o;t[4]!==n||t[5]!==a?(o=f(a,n),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o?(s=(0,I.jsx)(T,{forceRender:!0,className:o,"data-slot":`dialog-backdrop`,...r}),t[7]=r,t[8]=o,t[9]=s):s=t[9],s}function H(e){let t=(0,O.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center p-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(b,{className:i,"data-slot":`dialog-viewport`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function U(e){let t=(0,O.c)(31),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:r,children:n,showCloseButton:a,bottomStickOnMobile:o,variant:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0||a,l=o===void 0||o,p=s===void 0?`default`:s,m=p===`media`?`z-[60]`:void 0,h;t[7]!==m||t[8]!==p?(h=(0,I.jsx)(V,{className:m,variant:p}),t[7]=m,t[8]=p,t[9]=h):h=t[9];let g=l&&`max-sm:grid-rows-[1fr_auto] max-sm:p-0 max-sm:pt-12`,_=p===`media`&&`z-[60] grid-rows-1 place-items-center px-4 py-6 [-webkit-app-region:no-drag]`,v;t[10]!==g||t[11]!==_?(v=f(g,_),t[10]=g,t[11]=_,t[12]=v):v=t[12];let b=p===`media`?P:N,x=p==="default"&&`max-h-full max-w-lg`,S=l&&`max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4`,w;t[13]!==r||t[14]!==x||t[15]!==S||t[16]!==b?(w=f(b,`row-start-2 text-popover-foreground`,x,S,r),t[13]=r,t[14]=x,t[15]=S,t[16]=b,t[17]=w):w=t[17];let T;t[18]===c?T=t[19]:(T=c&&(0,I.jsx)(y,{"aria-label":`Close`,className:`absolute end-2 top-2`,render:(0,I.jsx)(d,{size:`icon`,variant:`ghost`}),children:(0,I.jsx)(u,{})}),t[18]=c,t[19]=T);let E;t[20]!==n||t[21]!==i||t[22]!==w||t[23]!==T?(E=(0,I.jsxs)(C,{className:w,"data-slot":`dialog-popup`,...i,children:[n,T]}),t[20]=n,t[21]=i,t[22]=w,t[23]=T,t[24]=E):E=t[24];let D;t[25]!==E||t[26]!==v?(D=(0,I.jsx)(H,{className:v,children:E}),t[25]=E,t[26]=v,t[27]=D):D=t[27];let k;return t[28]!==D||t[29]!==h?(k=(0,I.jsxs)(R,{children:[h,D]}),t[28]=D,t[29]=h,t[30]=k):k=t[30],k}function W(e){let t=(0,O.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`flex flex-col gap-2 p-6 in-[[data-slot=dialog-popup]:has([data-slot=dialog-panel])]:pb-3 max-sm:pb-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(`div`,{className:i,"data-slot":`dialog-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function G(e){let t=(0,O.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o=a==="default"&&`border-t bg-muted/72 py-4`,s=a===`bare`&&`py-4`,c;t[4]!==n||t[5]!==o||t[6]!==s?(c=f(`flex flex-col-reverse gap-2 px-6 sm:flex-row sm:justify-end sm:rounded-b-[calc(var(--radius-2xl)-1px)]`,o,s,n),t[4]=n,t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==c?(l=(0,I.jsx)(`div`,{className:c,"data-slot":`dialog-footer`,...r}),t[8]=r,t[9]=c,t[10]=l):l=t[10],l}function K(e){let t=(0,O.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`wrap-anywhere font-semibold text-xl leading-snug`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(w,{className:i,"data-slot":`dialog-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function q(e){let t=(0,O.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=f(`text-muted-foreground text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,I.jsx)(_,{className:i,"data-slot":`dialog-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function J(e){let t=(0,O.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,scrollFade:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0||i,o;t[4]===n?o=t[5]:(o=f(`space-y-4 p-6 in-[[data-slot=dialog-popup]:has([data-slot=dialog-header])]:pt-1 in-[[data-slot=dialog-popup]:has([data-slot=dialog-footer]:not(.border-t))]:pb-1`,n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==o?(s=(0,I.jsx)(`div`,{className:o,"data-slot":`dialog-panel`,...r}),t[6]=r,t[7]=o,t[8]=s):s=t[8];let c;return t[9]!==a||t[10]!==s?(c=(0,I.jsx)(g,{scrollFade:a,children:s}),t[9]=a,t[10]=s,t[11]=c):c=t[11],c}export{W as a,K as c,F as d,N as f,G as i,z as l,B as n,J as o,q as r,U as s,L as t,A as u};
2
+ //# sourceMappingURL=dialog-wBelv1Ac.js.map
@@ -0,0 +1,2 @@
1
+ import{$s as e,H as t,R as n,U as r,W as i}from"./utils-DsOiwDNN.js";var a={kind:`branch`,baseRef:null};function o(e){return e?.trim()||null}var s=i()(r(t=>({byThreadKey:{},branchBaseRefByThreadKey:{},selectGitScope:(n,r)=>t(t=>{let i=e(n),a=t.byThreadKey[i],o=a?.kind===`branch`?a.baseRef:t.branchBaseRefByThreadKey[i]??null;return{byThreadKey:{...t.byThreadKey,[i]:r===`branch`?{kind:`branch`,baseRef:o}:{kind:`unstaged`}},branchBaseRefByThreadKey:a?.kind===`branch`?{...t.branchBaseRefByThreadKey,[i]:a.baseRef}:t.branchBaseRefByThreadKey}}),selectBranchBaseRef:(n,r)=>t(t=>{let i=e(n),a=o(r);return{byThreadKey:{...t.byThreadKey,[i]:{kind:`branch`,baseRef:a}},branchBaseRefByThreadKey:{...t.branchBaseRefByThreadKey,[i]:a}}}),selectTurn:(n,r,i)=>t(t=>{let a=e(n),o=t.byThreadKey[a];return{byThreadKey:{...t.byThreadKey,[a]:{kind:`turn`,turnId:r,filePath:i?.trim()||null,revealRequestId:o?.kind===`turn`?o.revealRequestId+1:1}}}}),reconcileTurnSelection:(n,r)=>t(t=>{let i=e(n),a=t.byThreadKey[i],o=r[0];return a?.kind!==`turn`||o===void 0||r.includes(a.turnId)?t:{byThreadKey:{...t.byThreadKey,[i]:{...a,turnId:o}}}}),removeThread:n=>t(t=>{let r=e(n);if(!(r in t.byThreadKey)&&!(r in t.branchBaseRefByThreadKey))return t;let{[r]:i,...a}=t.byThreadKey,{[r]:o,...s}=t.branchBaseRefByThreadKey;return{byThreadKey:a,branchBaseRefByThreadKey:s}})}),{name:`p4code:diff-panel-state:v1`,version:2,storage:t(()=>n(typeof window<`u`?window.localStorage:void 0)),partialize:e=>({byThreadKey:e.byThreadKey,branchBaseRefByThreadKey:e.branchBaseRefByThreadKey})}));function c(t,n){return n?t[e(n)]??a:a}export{s as n,c as t};
2
+ //# sourceMappingURL=diffPanelStore-C8bCQWTi.js.map
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-Dscbee-m.js","assets/react-BUfh6y28.js","assets/html-JVdRd_s_.js","assets/javascript-DbGpLy3T.js","assets/css-DmzebGAQ.js","assets/angular-ts-D-jGJ_Pq.js","assets/scss-C1TD-6fV.js","assets/apl-CzEPtPTc.js","assets/xml-BFskX1hV.js","assets/java-bZhdevBK.js","assets/json-DLF-Bl6Q.js","assets/astro-CmY6SEby.js","assets/typescript-_xw_BO23.js","assets/postcss-BXeXVLqQ.js","assets/tsx-DkTKnfFo.js","assets/blade-Ds_cvm4L.js","assets/html-derivative-DUwzLBCZ.js","assets/sql-C9B7LE25.js","assets/bsl-BkkzgIyY.js","assets/sdbl-bTVj8UrX.js","assets/c-DSFROXGY.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/cobol-DLPVIrhs.js","assets/coffee-B_bn1VYp.js","assets/cpp-CbDky0eJ.js","assets/regexp-Ck_wuBVz.js","assets/glsl-DP3rrPw6.js","assets/crystal-fA8WMqwt.js","assets/shellscript-3Qq9gwlS.js","assets/edge-Ce8CSiFN.js","assets/elixir-DykRiWUM.js","assets/elm-C-iCykg9.js","assets/erb-BFuDw3CT.js","assets/ruby-ndQmZR1k.js","assets/haml-Dsj6-ySI.js","assets/graphql-Bd-pc_d8.js","assets/jsx-Iv3gHRJV.js","assets/lua-DR4llJYx.js","assets/yaml-6Jl9gLap.js","assets/erlang-Cphh6RMH.js","assets/markdown-BYOwaDjH.js","assets/fortran-fixed-form-DEKoE2YW.js","assets/fortran-free-form-CYNrtFtB.js","assets/fsharp-D13ZGOAj.js","assets/gdresource-C0sCabJj.js","assets/gdshader-CBce3t8t.js","assets/gdscript-Cp2uCuqX.js","assets/git-commit-BSykSTBG.js","assets/diff-woXpYk--.js","assets/git-rebase-DXKkGhsX.js","assets/glimmer-js-D7WwjkLz.js","assets/glimmer-ts-BBSqdiTO.js","assets/hack-Dr5ngBL9.js","assets/handlebars-DVXMvVv-.js","assets/http-BoguuhrT.js","assets/hurl-Cc3-KYCE.js","assets/csv-Dx-8-gkx.js","assets/hxml-B0Qn7Nwc.js","assets/haxe-OTjmBuCE.js","assets/jinja-DdmilaIB.js","assets/jison-BqsA7oS9.js","assets/julia-ChBzJ_L5.js","assets/r-6vw7t5JQ.js","assets/just-ntj6nUg1.js","assets/perl-DoXLZjGC.js","assets/latex-BZU9mfmY.js","assets/tex-B4EAMU1v.js","assets/liquid-D1J77W8y.js","assets/marko-CdaEEJfU.js","assets/less-DVTAwKKz.js","assets/mdc-BWphm-5r.js","assets/nextflow-BJtWHP5T.js","assets/nextflow-groovy-DJMQeKeT.js","assets/nginx-Bq8VN40l.js","assets/nim-B3YkiVai.js","assets/php-CwbWs1hn.js","assets/pug-CRGvWO7M.js","assets/qml-CvBlkciY.js","assets/razor-CumYku6Z.js","assets/csharp-oqKa8noW.js","assets/rst-C_K9v_G3.js","assets/cmake-Bj61d0ZC.js","assets/sas-DFAq7W3b.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-BRC5XaKg.js","assets/soy-5wy2kids.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-jNNfWZMe.js","assets/surrealql-BLrrhEVC.js","assets/svelte-tm8YDV5G.js","assets/templ-C-uCf6Or.js","assets/go-rLFTqkRN.js","assets/ts-tags-BXyGTkiY.js","assets/twig-BITHnBTK.js","assets/vue-DMywKCGn.js","assets/vue-html-Cy0Bx-d-.js","assets/vue-vine-B0NsELeL.js","assets/stylus-B6D30XZt.js","assets/xsl-DsdFnTo4.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./react-BUfh6y28.js";import{t}from"./index-BWKkBtFt.js";var n=`diffs-container`,r=(()=>{try{return!1}catch{return!1}})(),i=/(?=^From [a-f0-9]+ .+$)/m,a=/(?=^diff --git)/gm,o=/(?<=\n)/,s=/^(---|\+\+\+)\s+([^\t\r\n]+)/,c=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,l=`header-prefix`,u=`header-filename-suffix`,d=`header-metadata`,f=`header-custom`,p={dark:`pierre-dark`,light:`pierre-light`},m=`data-theme-css`,h=`data-unsafe-css`,g=`data-core-css`,_=`data-diffs-scrollbar-measure`,v=`data-diffs-code-view-header`,y=`data-diffs-code-view-footer`,ee=`--diffs-scrollbar-gutter-measured`,te=1e5,b={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},x={...b,hunkLineCount:1},S={paddingTop:8,paddingBottom:8,gap:8},ne={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},re=Object.freeze({fromStart:0,fromEnd:0}),ie={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ae={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function oe(e,t){return e-(t===0?0:1)}function se(e,t){return oe(e,t)+t}var ce=1;function le(e,...t){return`ck${ce}:${JSON.stringify([e,...t])}`}function ue(e){let t=e.length;return e.charCodeAt(t-1)===10&&(t--,e.charCodeAt(t-1)===13&&t--),e.slice(0,t)}var de=new TextEncoder,fe=new TextDecoder(`utf-8`,{ignoreBOM:!0}),pe=/[\uD800-\uDFFF]/,me=1024,he=new Uint8Array(me);function ge(){he.length!==me&&(he=new Uint8Array(me))}function C(e){if(e.length===0)return e;if(pe.test(e))return JSON.parse(JSON.stringify(e));let t=e.length*3;he.length<t&&(he=new Uint8Array(t));let{written:n}=de.encodeInto(e,he);return fe.decode(he.subarray(0,n))}var _e=new TextDecoder(`utf-8`,{ignoreBOM:!0}),ve={'"':`"`,"\\":`\\`,a:`\x07`,b:`\b`,t:` `,n:`
2
+ import{r as e}from"./react-BUfh6y28.js";import{t}from"./index-BeP8Inse.js";var n=`diffs-container`,r=(()=>{try{return!1}catch{return!1}})(),i=/(?=^From [a-f0-9]+ .+$)/m,a=/(?=^diff --git)/gm,o=/(?<=\n)/,s=/^(---|\+\+\+)\s+([^\t\r\n]+)/,c=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,l=`header-prefix`,u=`header-filename-suffix`,d=`header-metadata`,f=`header-custom`,p={dark:`pierre-dark`,light:`pierre-light`},m=`data-theme-css`,h=`data-unsafe-css`,g=`data-core-css`,_=`data-diffs-scrollbar-measure`,v=`data-diffs-code-view-header`,y=`data-diffs-code-view-footer`,ee=`--diffs-scrollbar-gutter-measured`,te=1e5,b={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},x={...b,hunkLineCount:1},S={paddingTop:8,paddingBottom:8,gap:8},ne={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},re=Object.freeze({fromStart:0,fromEnd:0}),ie={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ae={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function oe(e,t){return e-(t===0?0:1)}function se(e,t){return oe(e,t)+t}var ce=1;function le(e,...t){return`ck${ce}:${JSON.stringify([e,...t])}`}function ue(e){let t=e.length;return e.charCodeAt(t-1)===10&&(t--,e.charCodeAt(t-1)===13&&t--),e.slice(0,t)}var de=new TextEncoder,fe=new TextDecoder(`utf-8`,{ignoreBOM:!0}),pe=/[\uD800-\uDFFF]/,me=1024,he=new Uint8Array(me);function ge(){he.length!==me&&(he=new Uint8Array(me))}function C(e){if(e.length===0)return e;if(pe.test(e))return JSON.parse(JSON.stringify(e));let t=e.length*3;he.length<t&&(he=new Uint8Array(t));let{written:n}=de.encodeInto(e,he);return fe.decode(he.subarray(0,n))}var _e=new TextDecoder(`utf-8`,{ignoreBOM:!0}),ve={'"':`"`,"\\":`\\`,a:`\x07`,b:`\b`,t:` `,n:`
3
3
  `,v:`\v`,f:`\f`,r:`\r`};function ye(e){if(e[0]!==`"`)return;let t=``,n=1;for(;n<e.length;){let r=e[n];if(r===`"`)return{fileName:t,rawLength:n+1};if(r!==`\\`){t+=r,n++;continue}let i=ve[e[n+1]];if(i!=null){t+=i,n+=2;continue}let a=[];do{let t=be(e,n+1);if(t==null)return;a.push(t),n+=4}while(e[n]===`\\`&&e[n+1]>=`0`&&e[n+1]<=`7`);t+=_e.decode(new Uint8Array(a))}}function be(e,t){let n=e.charCodeAt(t)-48,r=e.charCodeAt(t+1)-48,i=e.charCodeAt(t+2)-48;if(n>=0&&n<=3&&r>=0&&r<=7&&i>=0&&i<=7)return n*64+r*8+i}var xe=4096,Se=.5;function Ce(e){for(let t of e.hunks)for(let n=0;n<t.hunkContent.length;n++){let r=t.hunkContent[n];if(r.type!==`change`)continue;let i=Te(e,r);i!=null&&(t.hunkContent.splice(n,1,...i),n+=i.length-1)}}function we(e,t,n){let{hunkContent:r}=e;for(let e=1;e<r.length;e++){let i=r[e],a=r[e-1];if(i.type!==`change`||i.additions>0&&i.deletions>0||a.type!==`context`)continue;let o=i.additions>0,s=o?t.additionLines:t.deletionLines,c=o?i.additionLineIndex:i.deletionLineIndex,l=o?i.additions:i.deletions,u=s[c]??``;if(u.trim()!==``)continue;let d=!0;for(let e=1;e<l;e++)if(s[c+e]!==u){d=!1;break}if(!d)continue;let f=0;for(;f<a.lines&&t.additionLines[a.additionLineIndex+a.lines-1-f]===u;)f++;if(f===0||e===1&&f===a.lines||n!=null&&(f=n(i,f),f===0))continue;i.additionLineIndex-=f,i.deletionLineIndex-=f;let p=i.additionLineIndex+i.additions,m=i.deletionLineIndex+i.deletions,h=r[e+1];h?.type===`context`?(h.lines+=f,h.additionLineIndex=p,h.deletionLineIndex=m):r.splice(e+1,0,{type:`context`,lines:f,additionLineIndex:p,deletionLineIndex:m}),a.lines-=f,a.lines===0&&(r.splice(e-1,1),e--)}}function Te(e,t){let{deletions:n,additions:r,deletionLineIndex:i,additionLineIndex:a}=t,o=Math.min(n,r),s=Math.abs(r-n);if(o===0||s===0||o*(s+1)>xe)return null;let c=[];for(let t=0;t<n;t++)c.push(De(e.deletionLines[i+t]??``));let l=[];for(let t=0;t<r;t++)l.push(De(e.additionLines[a+t]??``));let u=r>n,d=0,f=-1;for(let e=0;e<=s;e++){let t=0;for(let n=0;n<o;n++)t+=Oe(c[n+(u?0:e)],l[n+(u?e:0)]);e===0?f=t+o*Se:t>f&&(f=t,d=e)}if(d===0)return null;let p=[],m=(e,t,n,r)=>{(e>0||t>0)&&p.push({type:`change`,deletions:e,additions:t,deletionLineIndex:n,additionLineIndex:r})};return u?(m(0,d,i,a),m(o,o,i,a+d),m(0,r-o-d,i+o,a+d+o)):(m(d,0,i,a),m(o,o,i+d,a),m(n-o-d,0,i+d+o,a+o)),p}var Ee=/\s+/g;function De(e){return e.replace(Ee,``)}function Oe(e,t){if(e===t)return 1;let n=Math.max(e.length,t.length),r=Math.min(e.length,t.length);if(r===0)return 0;let i=0;for(;i<r&&e[i]===t[i];)i++;let a=0;for(;a<r-i&&e[e.length-1-a]===t[t.length-1-a];)a++;return(i+a)/n}var ke=/^diff --git ("a\/(?:[^"\\]|\\.)*"|a\/.+?) ("b\/(?:[^"\\]|\\.)*"|b\/.+?)$/;function Ae(e,t,n=!1,r){let i=Ye(e),o=i?Re(e):ze(e),s,c=[];for(let e of o){if(i&&!a.test(e)||!i&&!Be(e)){if(s==null)s=C(e);else if(n)throw Error(`parsePatchContent: unknown file blob`);else console.error(`parsePatchContent: unknown file blob:`,e);continue}let o=Me(e,{cacheKey:t==null?void 0:r==null?le(`patch-file`,t,String(c.length)):le(`patch-file`,t,String(r),String(c.length)),isGitDiff:i,throwOnError:n});o!=null&&c.push(o)}return{patchMetadata:s,files:c}}function je(e,t){try{return Me(e,t)}finally{ge()}}function Me(e,{cacheKey:t,isGitDiff:n=a.test(e),oldFile:r,newFile:i,throwOnError:o=!1}={}){let l=0,u=Xe(e,`@@ `),d,f=r==null||i==null,p=0,m=0;for(let e of u){let a=Le(e),u=a[0];if(u==null){if(o)throw Error(`parsePatchContent: invalid hunk`);console.error(`parsePatchContent: invalid hunk`,e);continue}let h=Ke(u),g=0,_=0;if(h==null||d==null){if(d!=null){if(o)throw Error(`parsePatchContent: Invalid hunk`);console.error(`parsePatchContent: Invalid hunk`,e);continue}d={name:``,type:`change`,hunks:[],splitLineCount:0,unifiedLineCount:0,isPartial:f,additionLines:!f&&r!=null&&i!=null?Ie(i.contents):[],deletionLines:!f&&r!=null&&i!=null?Ie(r.contents):[],cacheKey:Qe(t)},d.additionLines.length===1&&i?.contents===``&&(d.additionLines.length=0),d.deletionLines.length===1&&r?.contents===``&&(d.deletionLines.length=0);for(let e of a){if(e.startsWith(`diff --git`)){let t=e.trim().match(ke);if(t==null){if(o)throw Error(`parsePatchContent: invalid git diff header`);console.error(`parsePatchContent: invalid git diff header`,e);continue}let n=Pe(t[1],!0),r=Pe(t[2],!0);d.name=C(r),n!==r&&(d.prevName=C(n));continue}let t=e.startsWith(`---`)||e.startsWith(`+++`)?e.match(s):null;if(t!=null){let[,e,r]=t,i=Pe(r,n);if(e===`---`&&i!==`/dev/null`){let e=C(i);d.prevName=e,d.name=e}else e===`+++`&&i!==`/dev/null`&&(d.name=C(i))}else if(n){if(e.startsWith(`new mode `)&&(d.mode=C(e.slice(8).trim())),e.startsWith(`old mode `)&&(d.prevMode=C(e.slice(8).trim())),e.startsWith(`new file mode`)&&(d.type=`new`,d.mode=C(e.slice(13).trim())),e.startsWith(`deleted file mode`)&&(d.type=`deleted`,d.mode=C(e.slice(17).trim())),e.startsWith(`similarity index`)&&(e.startsWith(`similarity index 100%`)?d.type=`rename-pure`:d.type=`rename-changed`),e.startsWith(`index `)){let[,t,n,r]=e.trim().match(c)??[];t!=null&&(d.prevObjectId=C(t)),n!=null&&(d.newObjectId=C(n)),r!=null&&(d.mode=C(r))}(e.startsWith(`rename from `)||e.startsWith(`copy from `))&&(d.prevName=C(Pe(e.slice(e.startsWith(`rename`)?12:10)))),(e.startsWith(`rename to `)||e.startsWith(`copy to `))&&(d.name=C(Pe(e.slice(e.startsWith(`rename`)?10:8))))}}continue}let v,y;for(;a.length>0&&(a[a.length-1]===`
4
4
  `||a[a.length-1]===`\r`||a[a.length-1]===`\r
5
5
  `||a[a.length-1]===``);)a.pop();let{additionStart:ee,deletionStart:te}=h;p=f?p:te-1,m=f?m:ee-1;let b={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:h.additionCount,additionStart:ee,additionLines:g,deletionCount:h.deletionCount,deletionStart:te,deletionLines:_,deletionLineIndex:p,additionLineIndex:m,hunkContent:[],hunkContext:Qe(h.hunkContext),hunkSpecs:C(u),noEOFCRAdditions:!1,noEOFCRDeletions:!1},x=0,S=0;for(let e=1;e<a.length;e++){let t=a[e];if(x>=b.additionCount&&S>=b.deletionCount&&!t.startsWith(`\\`)){if(!We(t)||Ge(t))break;if(o)throw Error(`parsePatchContent: hunk has more lines than expected`)}let n=t[0];if(n!==`+`&&n!==`-`&&n!==` `&&n!==`\\`){if(o)throw Error(`parsePatchContent: invalid hunk line`);console.error(`parseLineType: Invalid firstChar: "${n}", full line: "${t}"`),console.error(`processFile: invalid rawLine:`,t);continue}let r=$e(n);if(r===`addition`){if(o&&x>=b.additionCount)throw Error(`parsePatchContent: hunk has too many addition lines`);let e=et(t);(v==null||v.type!==`change`)&&(v=tt(`change`,p,m),b.hunkContent.push(v)),m++,x++,f&&d.additionLines.push(e),v.additions++,g++,y=`addition`}else if(r===`deletion`){if(o&&S>=b.deletionCount)throw Error(`parsePatchContent: hunk has too many deletion lines`);let e=et(t);(v==null||v.type!==`change`)&&(v=tt(`change`,p,m),b.hunkContent.push(v)),p++,S++,f&&d.deletionLines.push(e),v.deletions++,_++,y=`deletion`}else if(r===`context`){if(o&&(S>=b.deletionCount||x>=b.additionCount))throw Error(`parsePatchContent: hunk has too many context lines`);let e=et(t);(v==null||v.type!==`context`)&&(v=tt(`context`,p,m),b.hunkContent.push(v)),m++,p++,x++,S++,f&&(d.deletionLines.push(e),d.additionLines.push(e)),v.lines++,y=`context`}else if(r===`metadata`&&v!=null){if(v.type===`context`?(b.noEOFCRAdditions=!0,b.noEOFCRDeletions=!0):y===`deletion`?b.noEOFCRDeletions=!0:y===`addition`&&(b.noEOFCRAdditions=!0),f&&(y===`addition`||y===`context`)){let e=d.additionLines.length-1;e>=0&&(d.additionLines[e]=ue(d.additionLines[e]))}if(f&&(y===`deletion`||y===`context`)){let e=d.deletionLines.length-1;e>=0&&(d.deletionLines[e]=ue(d.deletionLines[e]))}}}if(x!==b.additionCount||S!==b.deletionCount){if(o)throw Error(`parsePatchContent: hunk line count mismatch`);console.error(`parsePatchContent: hunk line count mismatch: "${u.trimEnd()}", declared old/new ${b.deletionCount}/${b.additionCount}, parsed old/new ${S}/${x}`);let e=oe(b.additionStart,b.additionCount)+(x===0?0:1),t=oe(b.deletionStart,b.deletionCount)+(S===0?0:1);if(!f){let n=e-b.additionStart,r=t-b.deletionStart;b.additionLineIndex+=n,b.deletionLineIndex+=r;for(let e of b.hunkContent)e.additionLineIndex+=n,e.deletionLineIndex+=r}b.additionStart=e,b.deletionStart=t,b.additionCount=x,b.deletionCount=S}b.additionLines=g,b.deletionLines=_,b.collapsedBefore=Math.max(oe(b.additionStart,b.additionCount)-l,0),d.hunks.push(b),l=se(b.additionStart,b.additionCount);for(let e of b.hunkContent)e.type===`context`?(b.splitLineCount+=e.lines,b.unifiedLineCount+=e.lines):(b.splitLineCount+=Math.max(e.additions,e.deletions),b.unifiedLineCount+=e.deletions+e.additions);b.splitLineStart=d.splitLineCount+b.collapsedBefore,b.unifiedLineStart=d.unifiedLineCount+b.collapsedBefore,d.splitLineCount+=b.collapsedBefore+b.splitLineCount,d.unifiedLineCount+=b.collapsedBefore+b.unifiedLineCount}if(d!=null){if(o&&f&&!n&&d.hunks.length===0)throw Error(`parsePatchContent: unified file has no hunks`);if(d.hunks.length>0&&!f&&d.additionLines.length>0&&d.deletionLines.length>0){let e=d.hunks[d.hunks.length-1],t=se(e.additionStart,e.additionCount),n=d.additionLines.length,r=Math.max(n-t,0);d.splitLineCount+=r,d.unifiedLineCount+=r}return n||(d.prevName!=null&&d.name!==d.prevName?d.hunks.length>0?d.type=`rename-changed`:d.type=`rename-pure`:(r==null||r.contents===``)&&i!=null&&i.contents!==``?d.type=`new`:r!=null&&r.contents!==``&&(i==null||i.contents===``)&&(d.type=`deleted`)),d.type!==`rename-pure`&&d.type!==`rename-changed`&&(d.prevName=void 0),Ce(d),d}}function Ne(e,t,n=!1){let r=[],a=Fe(e)?e.split(i):[e];for(let e of a)try{r.push(Ae(e,t,n,t==null?void 0:r.length))}catch(e){if(n)throw e;console.error(e)}finally{ge()}return r}function Pe(e,t=!1){let n=e.trim(),r=n.startsWith(`"`)?ye(n)?.fileName??n:n;return t&&(r.startsWith(`a/`)||r.startsWith(`b/`))?r.slice(2):r}function Fe(e){return e.startsWith(`From `)||e.includes(`
@@ -238,4 +238,4 @@ XID_Start XIDS`.split(/\s/).map(e=>[Jc(e),e])),Il=new Map([[`s`,H(383)],[H(383),
238
238
  color: var(--code-foreground) !important;
239
239
  }
240
240
  `;export{g as $,Ca as A,gi as B,zu as C,ho as D,Fu as E,Gi as F,Ne as G,kr as H,Hi as I,le as J,we as K,Ui as L,xa as M,ya as N,Ta as O,ia as P,v as Q,zi as R,X as S,Iu as T,ot as U,xn as V,nt as W,oe as X,se as Y,y as Z,Sd as _,o as _t,ff as a,ne as at,vd as b,_f as c,b as ct,yf as d,_ as dt,f as et,rf as f,n as ft,xd as g,l as gt,Cd as h,d as ht,xf as i,ie as it,ba as j,Sa as k,sf as l,r as lt,Dd as m,u as mt,Cf as n,S as nt,wf as o,p as ot,Wd as p,ae as pt,ue as q,bf as r,re as rt,mf as s,te as st,Tf as t,x as tt,vf as u,ee as ut,Td as v,m as vt,Lu as w,Xu as x,_d as y,h as yt,yi as z};
241
- //# sourceMappingURL=diffRendering-BnN6RWwy.js.map
241
+ //# sourceMappingURL=diffRendering-C_l9f0DJ.js.map