@claudiolabs/claudin 0.7.2 → 0.7.4

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 (905) hide show
  1. package/LICENSE +23 -200
  2. package/README.md +25 -89
  3. package/dist/chunks/AgentTool-0.7.4-n3w81nr0.mjs +1 -0
  4. package/dist/chunks/App-0.7.4-f82nhj4b.mjs +1 -0
  5. package/dist/chunks/ApproveApiKey-0.7.4-27gdpx41.mjs +1 -0
  6. package/dist/chunks/AssistantSessionChooser-0.7.4-dfwr2199.mjs +1 -0
  7. package/dist/chunks/AutoModeOptInDialog-0.7.4-y9fxqce2.mjs +1 -0
  8. package/dist/chunks/BypassPermissionsModeDialog-0.7.4-vqmkfdv5.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.4-yya4exxc.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.7.4-pkmm3hrc.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.7.4-c524vxrv.mjs +7 -0
  12. package/dist/chunks/Doctor-0.7.4-pa6ms0qn.mjs +1 -0
  13. package/dist/chunks/ExplorerDialog-0.7.4-bmp67p2b.mjs +6 -0
  14. package/dist/chunks/Grove-0.7.4-9acw1m3r.mjs +1 -0
  15. package/dist/chunks/ITermBackend-0.7.4-dy75k5qx.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.7.4-8ra8bj22.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.7.4-n4h644pz.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.7.4-cnays88h.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.7.4-fqvxpdtd.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.7.4-e21vv07m.mjs +1 -0
  21. package/dist/chunks/REPL-0.7.4-n38hda18.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.7.4-f3xp8e01.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.7.4-39wyejgx.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.7.4-6373v72h.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.7.4-y6km4665.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.7.4-wh96svjn.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.7.4-grwq5d7n.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.7.4-k0kt2bxp.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.7.4-xhgj5jat.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.7.4-vzfmpvjc.mjs +1 -0
  31. package/dist/chunks/add-dir-0.7.4-mfwwzt70.mjs +1 -0
  32. package/dist/chunks/agentTypes-0.7.4-9fgk10yx.mjs +1 -0
  33. package/dist/chunks/agents-0.7.4-9fxas1pf.mjs +110 -0
  34. package/dist/chunks/agents-0.7.4-eart70kj.mjs +3 -0
  35. package/dist/chunks/api-0.7.4-eqsmhts7.mjs +1 -0
  36. package/dist/chunks/asciicast-0.7.4-900ptry2.mjs +1 -0
  37. package/dist/chunks/assistant-0.7.4-qp02hgvg.mjs +1 -0
  38. package/dist/chunks/auth-0.7.4-ccf1t8td.mjs +1 -0
  39. package/dist/chunks/auth-0.7.4-tzph01c0.mjs +1 -0
  40. package/dist/chunks/autoMode-0.7.4-5m9bs574.mjs +48 -0
  41. package/dist/chunks/autoUpdater-0.7.4-s4krk2je.mjs +1 -0
  42. package/dist/chunks/backgroundHousekeeping-0.7.4-zqytsqmx.mjs +1 -0
  43. package/dist/chunks/branch-0.7.4-29eypmvg.mjs +4 -0
  44. package/dist/chunks/bridge-0.7.4-45nq3nxm.mjs +2 -0
  45. package/dist/chunks/bridgeConfig-0.7.4-fb2nwbxq.mjs +1 -0
  46. package/dist/chunks/bridgeEnabled-0.7.4-rreg4xyn.mjs +1 -0
  47. package/dist/chunks/bridgeMain-0.7.4-m4rjydb5.mjs +88 -0
  48. package/dist/chunks/bridgePointer-0.7.4-mjexaxq5.mjs +1 -0
  49. package/dist/chunks/btw-0.7.4-rw5186va.mjs +1 -0
  50. package/dist/chunks/buddy-0.7.4-mwgfqb1k.mjs +3 -0
  51. package/dist/chunks/cacache-0.7.4-254mqspw.mjs +1 -0
  52. package/dist/chunks/cache-probe-0.7.4-kjrs8qh8.mjs +21 -0
  53. package/dist/chunks/cacheStats-0.7.4-2pfk76t7.mjs +4 -0
  54. package/dist/chunks/caches-0.7.4-qjs93vrb.mjs +1 -0
  55. package/dist/chunks/claudeDesktop-0.7.4-e2h7mp9r.mjs +1 -0
  56. package/dist/chunks/claudemd-0.7.4-tv76d8c5.mjs +1 -0
  57. package/dist/chunks/clear-0.7.4-2qt378q0.mjs +1 -0
  58. package/dist/chunks/clearTerminal-0.7.4-5jfekabd.mjs +1 -0
  59. package/dist/chunks/cli-0.7.4-00n6rj7y.mjs +3 -0
  60. package/dist/chunks/cli-0.7.4-0a7934k3.mjs +21 -0
  61. package/dist/chunks/cli-0.7.4-0a9kv7ps.mjs +2 -0
  62. package/dist/chunks/cli-0.7.4-0c1vbfmd.mjs +2 -0
  63. package/dist/chunks/cli-0.7.4-0h9b4tge.mjs +2 -0
  64. package/dist/chunks/cli-0.7.4-0thtf513.mjs +2 -0
  65. package/dist/chunks/cli-0.7.4-0ytxwr14.mjs +2 -0
  66. package/dist/chunks/cli-0.7.4-12k33ng9.mjs +2 -0
  67. package/dist/chunks/cli-0.7.4-15xs793c.mjs +2 -0
  68. package/dist/chunks/cli-0.7.4-1ba5bwdq.mjs +42 -0
  69. package/dist/chunks/cli-0.7.4-1tkzz9x6.mjs +5469 -0
  70. package/dist/chunks/cli-0.7.4-2apswqf5.mjs +59 -0
  71. package/dist/chunks/cli-0.7.4-2fxnz89x.mjs +6 -0
  72. package/dist/chunks/cli-0.7.4-2haqz80h.mjs +16 -0
  73. package/dist/chunks/cli-0.7.4-2p5w6279.mjs +45 -0
  74. package/dist/chunks/cli-0.7.4-33k7j18b.mjs +3 -0
  75. package/dist/chunks/cli-0.7.4-3e7assg4.mjs +2 -0
  76. package/dist/chunks/cli-0.7.4-3gn2tfsb.mjs +2 -0
  77. package/dist/chunks/cli-0.7.4-40m5mk3s.mjs +2 -0
  78. package/dist/chunks/cli-0.7.4-47nyf9j2.mjs +2 -0
  79. package/dist/chunks/cli-0.7.4-489pp4nd.mjs +2 -0
  80. package/dist/chunks/cli-0.7.4-4a6hn01n.mjs +133 -0
  81. package/dist/chunks/cli-0.7.4-4br84c8j.mjs +2 -0
  82. package/dist/chunks/cli-0.7.4-4ee9swqr.mjs +2 -0
  83. package/dist/chunks/cli-0.7.4-4pagjrxs.mjs +18 -0
  84. package/dist/chunks/cli-0.7.4-4sh782tn.mjs +2 -0
  85. package/dist/chunks/cli-0.7.4-507dp6s1.mjs +2 -0
  86. package/dist/chunks/cli-0.7.4-510c371d.mjs +12 -0
  87. package/dist/chunks/cli-0.7.4-51t8p2qe.mjs +2 -0
  88. package/dist/chunks/cli-0.7.4-533hdyc8.mjs +2 -0
  89. package/dist/chunks/cli-0.7.4-53k7apn9.mjs +2 -0
  90. package/dist/chunks/cli-0.7.4-58p1wenr.mjs +2 -0
  91. package/dist/chunks/cli-0.7.4-5fjrbavz.mjs +2 -0
  92. package/dist/chunks/cli-0.7.4-5k1t5jcn.mjs +2 -0
  93. package/dist/chunks/cli-0.7.4-61etrp8x.mjs +2 -0
  94. package/dist/chunks/cli-0.7.4-61svw97d.mjs +3 -0
  95. package/dist/chunks/cli-0.7.4-6265e9tz.mjs +2 -0
  96. package/dist/chunks/cli-0.7.4-62ac47x8.mjs +2 -0
  97. package/dist/chunks/cli-0.7.4-66p94pps.mjs +3 -0
  98. package/dist/chunks/cli-0.7.4-68dbzpkf.mjs +3 -0
  99. package/dist/chunks/cli-0.7.4-6cft4ytf.mjs +15 -0
  100. package/dist/chunks/cli-0.7.4-6n295sx3.mjs +2 -0
  101. package/dist/chunks/cli-0.7.4-6sqa761d.mjs +2 -0
  102. package/dist/chunks/cli-0.7.4-6tvnyqjj.mjs +2 -0
  103. package/dist/chunks/cli-0.7.4-6zr3mpvn.mjs +2 -0
  104. package/dist/chunks/cli-0.7.4-729n63er.mjs +2 -0
  105. package/dist/chunks/cli-0.7.4-7ftm6c0s.mjs +26 -0
  106. package/dist/chunks/cli-0.7.4-7k74b1yf.mjs +1 -0
  107. package/dist/chunks/cli-0.7.4-7mzefe20.mjs +2 -0
  108. package/dist/chunks/cli-0.7.4-7t2zsdm5.mjs +2 -0
  109. package/dist/chunks/cli-0.7.4-7tr153ha.mjs +2 -0
  110. package/dist/chunks/cli-0.7.4-7wr3z77e.mjs +2 -0
  111. package/dist/chunks/cli-0.7.4-85txq06q.mjs +2 -0
  112. package/dist/chunks/cli-0.7.4-8hskaxte.mjs +2 -0
  113. package/dist/chunks/cli-0.7.4-8nss0n1a.mjs +25 -0
  114. package/dist/chunks/cli-0.7.4-8vd2zhhw.mjs +2 -0
  115. package/dist/chunks/cli-0.7.4-8wbk60h9.mjs +2 -0
  116. package/dist/chunks/cli-0.7.4-8xxafyv0.mjs +18 -0
  117. package/dist/chunks/cli-0.7.4-90d95m4d.mjs +2 -0
  118. package/dist/chunks/cli-0.7.4-9kf16ber.mjs +2 -0
  119. package/dist/chunks/cli-0.7.4-9kzgbrwj.mjs +2 -0
  120. package/dist/chunks/cli-0.7.4-9r1s7xtv.mjs +6 -0
  121. package/dist/chunks/cli-0.7.4-9vph2ayc.mjs +2 -0
  122. package/dist/chunks/cli-0.7.4-9zsty6c5.mjs +2 -0
  123. package/dist/chunks/cli-0.7.4-abs9vv3n.mjs +2 -0
  124. package/dist/chunks/cli-0.7.4-ae96heq4.mjs +2 -0
  125. package/dist/chunks/cli-0.7.4-ahm3gnaw.mjs +2 -0
  126. package/dist/chunks/cli-0.7.4-akf6rhsn.mjs +4 -0
  127. package/dist/chunks/cli-0.7.4-aswaa5m4.mjs +2 -0
  128. package/dist/chunks/cli-0.7.4-at2fkgpk.mjs +2 -0
  129. package/dist/chunks/cli-0.7.4-b5qdnvdg.mjs +2 -0
  130. package/dist/chunks/cli-0.7.4-bh4xsr2c.mjs +4 -0
  131. package/dist/chunks/cli-0.7.4-bkgx5wz7.mjs +2 -0
  132. package/dist/chunks/cli-0.7.4-bmw3qchp.mjs +2 -0
  133. package/dist/chunks/cli-0.7.4-bqk5rkrz.mjs +2 -0
  134. package/dist/chunks/cli-0.7.4-c0e99xn9.mjs +24 -0
  135. package/dist/chunks/cli-0.7.4-cfsjq69q.mjs +2 -0
  136. package/dist/chunks/cli-0.7.4-d82gqb10.mjs +2 -0
  137. package/dist/chunks/cli-0.7.4-d9y5wx3y.mjs +2 -0
  138. package/dist/chunks/cli-0.7.4-da69w12w.mjs +3 -0
  139. package/dist/chunks/cli-0.7.4-deyaxrbc.mjs +2 -0
  140. package/dist/chunks/cli-0.7.4-djbdmzgq.mjs +2 -0
  141. package/dist/chunks/cli-0.7.4-dwjhqjan.mjs +2 -0
  142. package/dist/chunks/cli-0.7.4-e2bhfh6d.mjs +2 -0
  143. package/dist/chunks/cli-0.7.4-ee9ansx1.mjs +24 -0
  144. package/dist/chunks/cli-0.7.4-eg7xj51b.mjs +2 -0
  145. package/dist/chunks/cli-0.7.4-egc286gx.mjs +2 -0
  146. package/dist/chunks/cli-0.7.4-ejm88apc.mjs +2 -0
  147. package/dist/chunks/cli-0.7.4-emdbzgja.mjs +2 -0
  148. package/dist/chunks/cli-0.7.4-en1ggcz7.mjs +2 -0
  149. package/dist/chunks/cli-0.7.4-evtmfc7t.mjs +2 -0
  150. package/dist/chunks/cli-0.7.4-f23ty9s6.mjs +39 -0
  151. package/dist/chunks/cli-0.7.4-f8qmyn41.mjs +4 -0
  152. package/dist/chunks/cli-0.7.4-fhgnbfvj.mjs +2 -0
  153. package/dist/chunks/cli-0.7.4-g9hc44qq.mjs +2 -0
  154. package/dist/chunks/cli-0.7.4-g9w5x5ns.mjs +4 -0
  155. package/dist/chunks/cli-0.7.4-ge77h9d7.mjs +2 -0
  156. package/dist/chunks/cli-0.7.4-ghq0kwkv.mjs +2 -0
  157. package/dist/chunks/cli-0.7.4-gjn70n3p.mjs +2 -0
  158. package/dist/chunks/cli-0.7.4-gr1feczd.mjs +2 -0
  159. package/dist/chunks/cli-0.7.4-gxccpbef.mjs +3 -0
  160. package/dist/chunks/cli-0.7.4-h0ze5j97.mjs +2 -0
  161. package/dist/chunks/cli-0.7.4-h24m11yy.mjs +2 -0
  162. package/dist/chunks/cli-0.7.4-h5274d0h.mjs +2 -0
  163. package/dist/chunks/cli-0.7.4-h57hq23q.mjs +2 -0
  164. package/dist/chunks/cli-0.7.4-h5wxsd2h.mjs +9 -0
  165. package/dist/chunks/cli-0.7.4-h94hrj45.mjs +2 -0
  166. package/dist/chunks/cli-0.7.4-hayqy916.mjs +2 -0
  167. package/dist/chunks/cli-0.7.4-hegk157e.mjs +6 -0
  168. package/dist/chunks/cli-0.7.4-hnfm0p8b.mjs +2 -0
  169. package/dist/chunks/cli-0.7.4-hsa9khw7.mjs +17 -0
  170. package/dist/chunks/cli-0.7.4-hvnq08bj.mjs +24 -0
  171. package/dist/chunks/cli-0.7.4-hvnzwb5v.mjs +194 -0
  172. package/dist/chunks/cli-0.7.4-hvs3h0hc.mjs +3 -0
  173. package/dist/chunks/cli-0.7.4-hw93j7vq.mjs +2 -0
  174. package/dist/chunks/cli-0.7.4-hz7s1rtn.mjs +2 -0
  175. package/dist/chunks/cli-0.7.4-jg5ajbyb.mjs +2 -0
  176. package/dist/chunks/cli-0.7.4-jgg33mak.mjs +2 -0
  177. package/dist/chunks/cli-0.7.4-jgswqtvj.mjs +3 -0
  178. package/dist/chunks/cli-0.7.4-k735e5sg.mjs +133 -0
  179. package/dist/chunks/cli-0.7.4-k7s78hkt.mjs +58 -0
  180. package/dist/chunks/cli-0.7.4-kmgvx19r.mjs +5 -0
  181. package/dist/chunks/cli-0.7.4-kmxpdkne.mjs +2 -0
  182. package/dist/chunks/cli-0.7.4-kpp23hbz.mjs +2 -0
  183. package/dist/chunks/cli-0.7.4-kz0h2jkr.mjs +15 -0
  184. package/dist/chunks/cli-0.7.4-m1f3fc2v.mjs +2 -0
  185. package/dist/chunks/cli-0.7.4-m2yz2rtr.mjs +2 -0
  186. package/dist/chunks/cli-0.7.4-m6n2gga8.mjs +4 -0
  187. package/dist/chunks/cli-0.7.4-mdv26096.mjs +6 -0
  188. package/dist/chunks/cli-0.7.4-mg4yp3b0.mjs +2 -0
  189. package/dist/chunks/cli-0.7.4-mmzkb167.mjs +2 -0
  190. package/dist/chunks/cli-0.7.4-mq3qzben.mjs +2 -0
  191. package/dist/chunks/cli-0.7.4-mqbmk6y6.mjs +4 -0
  192. package/dist/chunks/cli-0.7.4-n9arxrya.mjs +12 -0
  193. package/dist/chunks/cli-0.7.4-naanktx2.mjs +34 -0
  194. package/dist/chunks/cli-0.7.4-nbnqrjgm.mjs +2 -0
  195. package/dist/chunks/cli-0.7.4-nnd4g2nm.mjs +2 -0
  196. package/dist/chunks/cli-0.7.4-nst28yat.mjs +2 -0
  197. package/dist/chunks/cli-0.7.4-p85h0qry.mjs +17 -0
  198. package/dist/chunks/cli-0.7.4-pgtn2eay.mjs +2 -0
  199. package/dist/chunks/cli-0.7.4-pjfb6eq2.mjs +2 -0
  200. package/dist/chunks/cli-0.7.4-pyyaz246.mjs +2 -0
  201. package/dist/chunks/cli-0.7.4-q23avgwg.mjs +2 -0
  202. package/dist/chunks/cli-0.7.4-q4g37dxk.mjs +2 -0
  203. package/dist/chunks/cli-0.7.4-q4q5x19y.mjs +2 -0
  204. package/dist/chunks/cli-0.7.4-q83h4xz7.mjs +10 -0
  205. package/dist/chunks/cli-0.7.4-qcc7kfkv.mjs +2 -0
  206. package/dist/chunks/cli-0.7.4-qcqz94w2.mjs +2 -0
  207. package/dist/chunks/cli-0.7.4-qjfmn9db.mjs +2 -0
  208. package/dist/chunks/cli-0.7.4-r0fkpzp3.mjs +2 -0
  209. package/dist/chunks/cli-0.7.4-r0nqh5aw.mjs +2 -0
  210. package/dist/chunks/cli-0.7.4-r1ebyx3p.mjs +2 -0
  211. package/dist/chunks/cli-0.7.4-r6ste2g4.mjs +2 -0
  212. package/dist/chunks/cli-0.7.4-rn8x06p3.mjs +2 -0
  213. package/dist/chunks/cli-0.7.4-rr7x6s9y.mjs +2 -0
  214. package/dist/chunks/cli-0.7.4-rskynrc5.mjs +4 -0
  215. package/dist/chunks/cli-0.7.4-rszd2m9d.mjs +3 -0
  216. package/dist/chunks/cli-0.7.4-rts5twex.mjs +2 -0
  217. package/dist/chunks/cli-0.7.4-rxsb2bkg.mjs +2 -0
  218. package/dist/chunks/cli-0.7.4-rzkdke3e.mjs +4 -0
  219. package/dist/chunks/cli-0.7.4-s97t3v7z.mjs +2 -0
  220. package/dist/chunks/cli-0.7.4-sm8wf8qx.mjs +67 -0
  221. package/dist/chunks/cli-0.7.4-sw7nh3hq.mjs +2 -0
  222. package/dist/chunks/cli-0.7.4-sxvnky38.mjs +2 -0
  223. package/dist/chunks/cli-0.7.4-syg2nab8.mjs +18 -0
  224. package/dist/chunks/cli-0.7.4-t68xf0hs.mjs +2 -0
  225. package/dist/chunks/cli-0.7.4-tcwf7yvv.mjs +2 -0
  226. package/dist/chunks/cli-0.7.4-te9nvehv.mjs +2 -0
  227. package/dist/chunks/cli-0.7.4-tkcchh6p.mjs +2 -0
  228. package/dist/chunks/cli-0.7.4-tme1sywb.mjs +2 -0
  229. package/dist/chunks/cli-0.7.4-tny04z8h.mjs +2 -0
  230. package/dist/chunks/cli-0.7.4-tsf2s2bg.mjs +2 -0
  231. package/dist/chunks/cli-0.7.4-tz5hgphm.mjs +3 -0
  232. package/dist/chunks/cli-0.7.4-v70q1qwp.mjs +2 -0
  233. package/dist/chunks/cli-0.7.4-ve6x1t8v.mjs +5 -0
  234. package/dist/chunks/cli-0.7.4-vq696c8w.mjs +2 -0
  235. package/dist/chunks/cli-0.7.4-vtnqj21e.mjs +2 -0
  236. package/dist/chunks/cli-0.7.4-vw2w38z0.mjs +2 -0
  237. package/dist/chunks/cli-0.7.4-wa74g17n.mjs +2 -0
  238. package/dist/chunks/cli-0.7.4-wb89zsbs.mjs +2 -0
  239. package/dist/chunks/cli-0.7.4-wes9w04e.mjs +2 -0
  240. package/dist/chunks/cli-0.7.4-wh44hxq2.mjs +5 -0
  241. package/dist/chunks/cli-0.7.4-wmw8fpv7.mjs +12 -0
  242. package/dist/chunks/cli-0.7.4-wtz9ed9r.mjs +2 -0
  243. package/dist/chunks/cli-0.7.4-wv6x6pzr.mjs +50 -0
  244. package/dist/chunks/cli-0.7.4-x1w88hnn.mjs +12 -0
  245. package/dist/chunks/cli-0.7.4-x5fcmgcd.mjs +4 -0
  246. package/dist/chunks/cli-0.7.4-xgw8jjs2.mjs +2 -0
  247. package/dist/chunks/cli-0.7.4-xhw7cmg0.mjs +2 -0
  248. package/dist/chunks/cli-0.7.4-xt87yshe.mjs +20 -0
  249. package/dist/chunks/cli-0.7.4-y3z3j4d9.mjs +8 -0
  250. package/dist/chunks/cli-0.7.4-y4w46256.mjs +2 -0
  251. package/dist/chunks/cli-0.7.4-y7sxx7d0.mjs +2 -0
  252. package/dist/chunks/cli-0.7.4-ybvnfxcf.mjs +4 -0
  253. package/dist/chunks/cli-0.7.4-yces9dz7.mjs +2 -0
  254. package/dist/chunks/cli-0.7.4-yjqyy8n2.mjs +2 -0
  255. package/dist/chunks/cli-0.7.4-yrbhzggw.mjs +3 -0
  256. package/dist/chunks/cli-0.7.4-yvdbdncp.mjs +2 -0
  257. package/dist/chunks/cli-0.7.4-z1vgf16g.mjs +25 -0
  258. package/dist/chunks/cli-0.7.4-z48enz4n.mjs +2 -0
  259. package/dist/chunks/cli-0.7.4-z88n7a08.mjs +2 -0
  260. package/dist/chunks/cli-0.7.4-za9xa1j8.mjs +3 -0
  261. package/dist/chunks/cli-0.7.4-zaa684f4.mjs +15 -0
  262. package/dist/chunks/cli-0.7.4-zbdceewq.mjs +7 -0
  263. package/dist/chunks/cli-0.7.4-zdkph0g9.mjs +2 -0
  264. package/dist/chunks/cli-0.7.4-zzze6t7f.mjs +2 -0
  265. package/dist/chunks/client-0.7.4-hxpb2apz.mjs +1 -0
  266. package/dist/chunks/color-0.7.4-pkanvtan.mjs +1 -0
  267. package/dist/chunks/compact-0.7.4-sjz49brs.mjs +3 -0
  268. package/dist/chunks/config-0.7.4-f5dgrp7x.mjs +1 -0
  269. package/dist/chunks/config-0.7.4-mc1mvka6.mjs +1 -0
  270. package/dist/chunks/constants-0.7.4-q426cgcp.mjs +1 -0
  271. package/dist/chunks/context-0.7.4-ssay296s.mjs +1 -0
  272. package/dist/chunks/context-noninteractive-0.7.4-y9y9az38.mjs +1 -0
  273. package/dist/chunks/conversation-0.7.4-m00s33jt.mjs +1 -0
  274. package/dist/chunks/copilotHeaders-0.7.4-pv50vnpq.mjs +1 -0
  275. package/dist/chunks/copy-0.7.4-ktk8gabv.mjs +9 -0
  276. package/dist/chunks/cost-0.7.4-r3td1n69.mjs +1 -0
  277. package/dist/chunks/createSSHSession-0.7.4-hhqxxfmb.mjs +1 -0
  278. package/dist/chunks/createSession-0.7.4-ebs0k8yt.mjs +1 -0
  279. package/dist/chunks/debug-0.7.4-0nebad2s.mjs +1 -0
  280. package/dist/chunks/defaultActionDeps-0.7.4-jbzptdbp.mjs +1446 -0
  281. package/dist/chunks/desktop-0.7.4-fmsm731w.mjs +1 -0
  282. package/dist/chunks/detectRepository-0.7.4-qse5a13f.mjs +1 -0
  283. package/dist/chunks/detection-0.7.4-a7c8arz9.mjs +1 -0
  284. package/dist/chunks/diff-0.7.4-ayakpeyz.mjs +1 -0
  285. package/dist/chunks/doctor-0.7.4-hwhyhjfr.mjs +1 -0
  286. package/dist/chunks/doctorDiagnostic-0.7.4-qm9knj52.mjs +1 -0
  287. package/dist/chunks/earlyInput-0.7.4-x3ysj16t.mjs +1 -0
  288. package/dist/chunks/effort-0.7.4-1sv0dhhk.mjs +10 -0
  289. package/dist/chunks/engine-0.7.4-gz82afzv.mjs +1 -0
  290. package/dist/chunks/envLessBridgeConfig-0.7.4-q1h5p7jv.mjs +1 -0
  291. package/dist/chunks/envUtils-0.7.4-ww7aa64y.mjs +1 -0
  292. package/dist/chunks/environmentSelection-0.7.4-r3g0hp0m.mjs +1 -0
  293. package/dist/chunks/environments-0.7.4-8n2fat2s.mjs +1 -0
  294. package/dist/chunks/errors-0.7.4-v9nwybq7.mjs +1 -0
  295. package/dist/chunks/exampleCommands-0.7.4-80n656nx.mjs +1 -0
  296. package/dist/chunks/exit-0.7.4-zmzt7mx8.mjs +1 -0
  297. package/dist/chunks/explorer-0.7.4-1knjqbak.mjs +1 -0
  298. package/dist/chunks/export-0.7.4-8b909kg4.mjs +2 -0
  299. package/dist/chunks/extra-usage-0.7.4-gwxf43jr.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-0.7.4-vntrq9c8.mjs +1 -0
  301. package/dist/chunks/fast-0.7.4-7d198jes.mjs +1 -0
  302. package/dist/chunks/feedback-0.7.4-5q49cx0k.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-0.7.4-w1471f1j.mjs +1 -0
  304. package/dist/chunks/git-0.7.4-qm9bjwe1.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-0.7.4-ecrp7kdj.mjs +1 -0
  306. package/dist/chunks/goal-0.7.4-ce3ysbxg.mjs +4 -0
  307. package/dist/chunks/grove-0.7.4-20a0nspg.mjs +1 -0
  308. package/dist/chunks/growthbook-0.7.4-85m0qnfn.mjs +1 -0
  309. package/dist/chunks/headless-0.7.4-g1me8a7s.mjs +2 -0
  310. package/dist/chunks/heapdump-0.7.4-sgk3zw0t.mjs +6 -0
  311. package/dist/chunks/help-0.7.4-aw6p8ena.mjs +1 -0
  312. package/dist/chunks/hookChains-0.7.4-3eqqv9t2.mjs +3 -0
  313. package/dist/chunks/hooks-0.7.4-q1wrys2h.mjs +79 -0
  314. package/dist/chunks/hooks-0.7.4-v782ktbj.mjs +1 -0
  315. package/dist/chunks/ide-0.7.4-nvtd5hpv.mjs +3 -0
  316. package/dist/chunks/image-processor-napi-0.7.4-a0arvwvs.mjs +1 -0
  317. package/dist/chunks/inboundAttachments-0.7.4-9hxndvnx.mjs +1 -0
  318. package/dist/chunks/index-0.7.4-0atnj624.mjs +1 -0
  319. package/dist/chunks/index-0.7.4-3yc5n58n.mjs +1 -0
  320. package/dist/chunks/index-0.7.4-46qessxk.mjs +1 -0
  321. package/dist/chunks/index-0.7.4-5x44zrgw.mjs +2 -0
  322. package/dist/chunks/index-0.7.4-97t4afz3.mjs +1 -0
  323. package/dist/chunks/index-0.7.4-9rhxb7ph.mjs +1 -0
  324. package/dist/chunks/index-0.7.4-9z6mgm05.mjs +2 -0
  325. package/dist/chunks/index-0.7.4-adfj0wz0.mjs +1 -0
  326. package/dist/chunks/index-0.7.4-bv491fah.mjs +5 -0
  327. package/dist/chunks/index-0.7.4-cxv3b9bg.mjs +1 -0
  328. package/dist/chunks/index-0.7.4-d7jstqgp.mjs +1 -0
  329. package/dist/chunks/index-0.7.4-fxa74szv.mjs +1 -0
  330. package/dist/chunks/index-0.7.4-hh3v0qz8.mjs +1 -0
  331. package/dist/chunks/index-0.7.4-kkcp2c2w.mjs +9 -0
  332. package/dist/chunks/index-0.7.4-n3dcdt88.mjs +1 -0
  333. package/dist/chunks/index-0.7.4-p8ts8cvg.mjs +1 -0
  334. package/dist/chunks/index-0.7.4-pamx7cgj.mjs +17 -0
  335. package/dist/chunks/index-0.7.4-pvvgj6g7.mjs +1 -0
  336. package/dist/chunks/index-0.7.4-rhf5p3mf.mjs +1 -0
  337. package/dist/chunks/index-0.7.4-rzztd31r.mjs +1 -0
  338. package/dist/chunks/index-0.7.4-sajaaw7k.mjs +30 -0
  339. package/dist/chunks/index-0.7.4-xdq0jf9r.mjs +1 -0
  340. package/dist/chunks/index-0.7.4-z3z8qmah.mjs +9 -0
  341. package/dist/chunks/init-0.7.4-4e9zty2q.mjs +1 -0
  342. package/dist/chunks/initReplBridge-0.7.4-yrparcz7.mjs +1 -0
  343. package/dist/chunks/ink-0.7.4-r1261h4c.mjs +1 -0
  344. package/dist/chunks/insights-0.7.4-t5dmav2c.mjs +870 -0
  345. package/dist/chunks/install-0.7.4-09cxj9vb.mjs +1 -0
  346. package/dist/chunks/install-github-app-0.7.4-hv9wkbxq.mjs +149 -0
  347. package/dist/chunks/install-slack-app-0.7.4-hgnea2d6.mjs +1 -0
  348. package/dist/chunks/instrumentation-0.7.4-17ca7p44.mjs +1 -0
  349. package/dist/chunks/interactiveHelpers-0.7.4-8jxj468e.mjs +1 -0
  350. package/dist/chunks/keybindings-0.7.4-raw68sen.mjs +2 -0
  351. package/dist/chunks/knowledge-0.7.4-xg9wb8wf.mjs +2 -0
  352. package/dist/chunks/latestVersionCache-0.7.4-60ks5x17.mjs +1 -0
  353. package/dist/chunks/loadAgentsDir-0.7.4-fg72pr2c.mjs +1 -0
  354. package/dist/chunks/loadPluginHooks-0.7.4-anp72ngw.mjs +1 -0
  355. package/dist/chunks/loadPluginHooks-0.7.4-jsx8r8aw.mjs +1 -0
  356. package/dist/chunks/log-0.7.4-12x7gw8q.mjs +1 -0
  357. package/dist/chunks/main-0.7.4-q6k044gc.mjs +1 -0
  358. package/dist/chunks/managedEnv-0.7.4-74e7mhhm.mjs +1 -0
  359. package/dist/chunks/mcp-0.7.4-4sr5rcvc.mjs +17 -0
  360. package/dist/chunks/mcp-0.7.4-9g6a64bt.mjs +4 -0
  361. package/dist/chunks/mcp-0.7.4-z4k2mzgy.mjs +1 -0
  362. package/dist/chunks/mcpb-0.7.4-jxskcyd8.mjs +1 -0
  363. package/dist/chunks/memory-0.7.4-541b29se.mjs +3 -0
  364. package/dist/chunks/model-0.7.4-mxvb5p7w.mjs +2 -0
  365. package/dist/chunks/model-0.7.4-nc7qk972.mjs +1 -0
  366. package/dist/chunks/node-0.7.4-hg387vyg.mjs +12 -0
  367. package/dist/chunks/oauth-0.7.4-e4sc7m0w.mjs +1 -0
  368. package/dist/chunks/openaiShim-0.7.4-mwtq6jnq.mjs +14 -0
  369. package/dist/chunks/output-style-0.7.4-b3vewghm.mjs +1 -0
  370. package/dist/chunks/package-GCDC7LJR-0.7.4-1e6194dg.mjs +1 -0
  371. package/dist/chunks/parseConnectUrl-0.7.4-46v5dfsp.mjs +1 -0
  372. package/dist/chunks/parser-0.7.4-2wt2btdd.mjs +1 -0
  373. package/dist/chunks/passes-0.7.4-182xeaj4.mjs +1 -0
  374. package/dist/chunks/permissions-0.7.4-hbqjvate.mjs +3 -0
  375. package/dist/chunks/permissions-0.7.4-qxf6e5nd.mjs +1 -0
  376. package/dist/chunks/plan-0.7.4-t5djkwkz.mjs +1 -0
  377. package/dist/chunks/plist-0.7.4-98g5pq7j.mjs +1 -0
  378. package/dist/chunks/plugin-0.7.4-0kmdzd88.mjs +29 -0
  379. package/dist/chunks/pluginStartupCheck-0.7.4-f1kq85sa.mjs +1 -0
  380. package/dist/chunks/plugins-0.7.4-52qggqw3.mjs +9 -0
  381. package/dist/chunks/preActionHook-0.7.4-qdyv0zgd.mjs +2 -0
  382. package/dist/chunks/print-0.7.4-1y1eqyhp.mjs +57 -0
  383. package/dist/chunks/privacy-settings-0.7.4-jrr06fw8.mjs +1 -0
  384. package/dist/chunks/process-0.7.4-bh0fjdst.mjs +1 -0
  385. package/dist/chunks/processBashCommand-0.7.4-8j3chrnm.mjs +1 -0
  386. package/dist/chunks/processSlashCommand-0.7.4-j53jaae7.mjs +9 -0
  387. package/dist/chunks/prompt-0.7.4-6eskezm8.mjs +1 -0
  388. package/dist/chunks/prompt-0.7.4-bnhsjhx3.mjs +1 -0
  389. package/dist/chunks/prompts-0.7.4-vevq7ae1.mjs +1 -0
  390. package/dist/chunks/protocolHandler-0.7.4-s4j6aeqh.mjs +13 -0
  391. package/dist/chunks/provider-0.7.4-jvtch160.mjs +2 -0
  392. package/dist/chunks/providerProfiles-0.7.4-yqetgvnq.mjs +1 -0
  393. package/dist/chunks/providerValidation-0.7.4-g6enpya6.mjs +6 -0
  394. package/dist/chunks/rate-limit-options-0.7.4-cwnmpqq9.mjs +1 -0
  395. package/dist/chunks/registerSubcommands-0.7.4-z1bdpgwx.mjs +34 -0
  396. package/dist/chunks/registry-0.7.4-5tne3d7e.mjs +1 -0
  397. package/dist/chunks/release-notes-0.7.4-sdsbw8s6.mjs +5 -0
  398. package/dist/chunks/reload-plugins-0.7.4-8fpph071.mjs +2 -0
  399. package/dist/chunks/remote-env-0.7.4-b1mzf95y.mjs +1 -0
  400. package/dist/chunks/remoteBridgeCore-0.7.4-9psc4fph.mjs +1 -0
  401. package/dist/chunks/remoteSession-0.7.4-8q76j945.mjs +1 -0
  402. package/dist/chunks/rename-0.7.4-x6q5drmn.mjs +1 -0
  403. package/dist/chunks/replBridgeHandle-0.7.4-dnp2by0g.mjs +1 -0
  404. package/dist/chunks/replLauncher-0.7.4-ztr3sg2j.mjs +1 -0
  405. package/dist/chunks/resume-0.7.4-zg3nxxte.mjs +2 -0
  406. package/dist/chunks/rewind-0.7.4-9j0zbj9a.mjs +1 -0
  407. package/dist/chunks/rootOptions-0.7.4-jrktzb1h.mjs +1 -0
  408. package/dist/chunks/sandbox-adapter-0.7.4-h71dwt2q.mjs +1 -0
  409. package/dist/chunks/sandbox-toggle-0.7.4-ks8gnbp8.mjs +1 -0
  410. package/dist/chunks/session-0.7.4-vc75bjkq.mjs +2 -0
  411. package/dist/chunks/sessionDiscovery-0.7.4-aqvmyy21.mjs +1 -0
  412. package/dist/chunks/sessionFileAccessHooks-0.7.4-7rw6txzf.mjs +1 -0
  413. package/dist/chunks/sessionStorage-0.7.4-820nxqcx.mjs +1 -0
  414. package/dist/chunks/settings-0.7.4-xn9kh7fk.mjs +1 -0
  415. package/dist/chunks/setup-0.7.4-ad98h634.mjs +5 -0
  416. package/dist/chunks/sinks-0.7.4-z7ad37zx.mjs +1 -0
  417. package/dist/chunks/skills-0.7.4-ad67cz1j.mjs +1 -0
  418. package/dist/chunks/startupProfiler-0.7.4-akaj65pe.mjs +1 -0
  419. package/dist/chunks/startupUpdateCheck-0.7.4-7r3vt1zf.mjs +1 -0
  420. package/dist/chunks/state-0.7.4-vjqm3ded.mjs +1 -0
  421. package/dist/chunks/stats-0.7.4-hqz1awtk.mjs +6 -0
  422. package/dist/chunks/status-0.7.4-e09aw5s3.mjs +1 -0
  423. package/dist/chunks/stickers-0.7.4-356twswm.mjs +1 -0
  424. package/dist/chunks/subprocessEnv-0.7.4-zjpbw9eg.mjs +1 -0
  425. package/dist/chunks/tasks-0.7.4-yqdwmw5j.mjs +1 -0
  426. package/dist/chunks/teamHelpers-0.7.4-0mtce030.mjs +1 -0
  427. package/dist/chunks/teammateModeSnapshot-0.7.4-q60shbd0.mjs +1 -0
  428. package/dist/chunks/teleport-0.7.4-6h25n23n.mjs +1 -0
  429. package/dist/chunks/terminalSetup-0.7.4-5fm9br3v.mjs +1 -0
  430. package/dist/chunks/theme-0.7.4-3cxdxqzd.mjs +1 -0
  431. package/dist/chunks/thinkback-0.7.4-k40dtctf.mjs +1 -0
  432. package/dist/chunks/thinkback-play-0.7.4-vmbx4r0v.mjs +1 -0
  433. package/dist/chunks/toolPool-0.7.4-fr9jcgkr.mjs +1 -0
  434. package/dist/chunks/toolSearch-0.7.4-72eq96x6.mjs +1 -0
  435. package/dist/chunks/tools-0.7.4-n2jj5cxj.mjs +1 -0
  436. package/dist/chunks/trustedDevice-0.7.4-5jh1e885.mjs +1 -0
  437. package/dist/chunks/turndown.cjs-0.7.4-3sq52e78.mjs +69 -0
  438. package/dist/chunks/types-0.7.4-cybkwcw1.mjs +1 -0
  439. package/dist/chunks/ultrareviewCommand-0.7.4-p3ykdjx4.mjs +4 -0
  440. package/dist/chunks/update-0.7.4-9hphbpbx.mjs +86 -0
  441. package/dist/chunks/upgrade-0.7.4-hhn879a5.mjs +1 -0
  442. package/dist/chunks/upload-0.7.4-rmfqa4n5.mjs +7 -0
  443. package/dist/chunks/upstreamproxy-0.7.4-f89cjzmp.mjs +14 -0
  444. package/dist/chunks/url-handler-napi-0.7.4-kdweyv4n.mjs +1 -0
  445. package/dist/chunks/usage-0.7.4-z5s6dhj7.mjs +1 -0
  446. package/dist/chunks/util-0.7.4-wf3hrc3w.mjs +1 -0
  447. package/dist/chunks/utils-0.7.4-f33hkvq8.mjs +1 -0
  448. package/dist/chunks/vim-0.7.4-pkw9kc18.mjs +1 -0
  449. package/dist/chunks/watcher-0.7.4-h80z0z8g.mjs +1 -0
  450. package/dist/chunks/wiki-0.7.4-5rfrx592.mjs +132 -0
  451. package/dist/chunks/workflows-0.7.4-7dgxra0n.mjs +1 -0
  452. package/dist/chunks/worktree-0.7.4-ar646nm5.mjs +1 -0
  453. package/dist/chunks/worktreeModeEnabled-0.7.4-1z56z896.mjs +1 -0
  454. package/dist/chunks/wrapper-0.7.4-bp55g4da.mjs +7 -0
  455. package/dist/claudin-vscode.vsix +0 -0
  456. package/dist/cli.mjs +2 -2
  457. package/package.json +18 -2
  458. package/dist/chunks/AgentTool-0.7.2-9q9cf0s2.mjs +0 -1
  459. package/dist/chunks/App-0.7.2-1yazneaj.mjs +0 -1
  460. package/dist/chunks/ApproveApiKey-0.7.2-r6n7yk1e.mjs +0 -1
  461. package/dist/chunks/AssistantSessionChooser-0.7.2-bq8tfzkt.mjs +0 -1
  462. package/dist/chunks/AutoModeOptInDialog-0.7.2-exq70cpt.mjs +0 -1
  463. package/dist/chunks/BypassPermissionsModeDialog-0.7.2-4wq8e6bg.mjs +0 -1
  464. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.2-tfd9bwks.mjs +0 -1
  465. package/dist/chunks/ConsoleOAuthFlow-0.7.2-x4nff112.mjs +0 -1
  466. package/dist/chunks/DiffDialog-0.7.2-rynq65x0.mjs +0 -7
  467. package/dist/chunks/Doctor-0.7.2-47kvka8v.mjs +0 -1
  468. package/dist/chunks/ExplorerDialog-0.7.2-whxpmm57.mjs +0 -6
  469. package/dist/chunks/Grove-0.7.2-xd5sc9zj.mjs +0 -1
  470. package/dist/chunks/ITermBackend-0.7.2-d9gvx90g.mjs +0 -1
  471. package/dist/chunks/InvalidConfigDialog-0.7.2-caf92zwe.mjs +0 -1
  472. package/dist/chunks/InvalidSettingsDialog-0.7.2-4ahhegj6.mjs +0 -1
  473. package/dist/chunks/MigrationDialog-0.7.2-j7wxkhr6.mjs +0 -1
  474. package/dist/chunks/Onboarding-0.7.2-4rq70qsr.mjs +0 -1
  475. package/dist/chunks/ProviderManager-0.7.2-gjmzm35c.mjs +0 -1
  476. package/dist/chunks/REPL-0.7.2-a8j6n2qa.mjs +0 -1
  477. package/dist/chunks/ResumeConversation-0.7.2-84wvvrx5.mjs +0 -1
  478. package/dist/chunks/SnapshotUpdateDialog-0.7.2-wk0qx8j6.mjs +0 -1
  479. package/dist/chunks/TeleportProgress-0.7.2-dj8zvkv5.mjs +0 -1
  480. package/dist/chunks/TeleportRepoMismatchDialog-0.7.2-ey2mmrd3.mjs +0 -1
  481. package/dist/chunks/TeleportResumeWrapper-0.7.2-j4vtrwzz.mjs +0 -1
  482. package/dist/chunks/TmuxBackend-0.7.2-en2ev5fc.mjs +0 -9
  483. package/dist/chunks/ToolSearchTool-0.7.2-qkk7a91f.mjs +0 -1
  484. package/dist/chunks/TrustDialog-0.7.2-eh3tqgea.mjs +0 -1
  485. package/dist/chunks/activeProvider-0.7.2-53s4g0s8.mjs +0 -1
  486. package/dist/chunks/add-dir-0.7.2-p09yjmj7.mjs +0 -1
  487. package/dist/chunks/agents-0.7.2-0m73ejzs.mjs +0 -3
  488. package/dist/chunks/agents-0.7.2-a1zpb02y.mjs +0 -110
  489. package/dist/chunks/api-0.7.2-gwy9gs1j.mjs +0 -1
  490. package/dist/chunks/asciicast-0.7.2-5vqep6sv.mjs +0 -1
  491. package/dist/chunks/assistant-0.7.2-txvf934b.mjs +0 -1
  492. package/dist/chunks/auth-0.7.2-02q30rsb.mjs +0 -1
  493. package/dist/chunks/auth-0.7.2-x29x49yh.mjs +0 -1
  494. package/dist/chunks/autoMode-0.7.2-5jnc8v33.mjs +0 -48
  495. package/dist/chunks/autoUpdater-0.7.2-pdqvbd3c.mjs +0 -1
  496. package/dist/chunks/backgroundHousekeeping-0.7.2-1m4w90vq.mjs +0 -1
  497. package/dist/chunks/branch-0.7.2-wgyhx41x.mjs +0 -4
  498. package/dist/chunks/bridge-0.7.2-f4ryhejx.mjs +0 -2
  499. package/dist/chunks/bridgeConfig-0.7.2-g6w4rghz.mjs +0 -1
  500. package/dist/chunks/bridgeEnabled-0.7.2-5aspb655.mjs +0 -1
  501. package/dist/chunks/bridgeMain-0.7.2-fey03cj7.mjs +0 -88
  502. package/dist/chunks/bridgePointer-0.7.2-8k41syzc.mjs +0 -1
  503. package/dist/chunks/btw-0.7.2-syxbtnxj.mjs +0 -1
  504. package/dist/chunks/buddy-0.7.2-gge72j8t.mjs +0 -3
  505. package/dist/chunks/cacache-0.7.2-gztwvvrm.mjs +0 -1
  506. package/dist/chunks/cache-probe-0.7.2-1gytt4j5.mjs +0 -21
  507. package/dist/chunks/cacheStats-0.7.2-sd9n48k1.mjs +0 -4
  508. package/dist/chunks/caches-0.7.2-cqzt5zwn.mjs +0 -1
  509. package/dist/chunks/claudeDesktop-0.7.2-7pna3peh.mjs +0 -1
  510. package/dist/chunks/claudemd-0.7.2-n2d9tbz6.mjs +0 -1
  511. package/dist/chunks/clear-0.7.2-v59pskrm.mjs +0 -1
  512. package/dist/chunks/clearTerminal-0.7.2-p4d7q5b7.mjs +0 -1
  513. package/dist/chunks/cli-0.7.2-0cmw1f4j.mjs +0 -2
  514. package/dist/chunks/cli-0.7.2-0mj25tns.mjs +0 -2
  515. package/dist/chunks/cli-0.7.2-0v8f8cx4.mjs +0 -2
  516. package/dist/chunks/cli-0.7.2-19vhaz2c.mjs +0 -2
  517. package/dist/chunks/cli-0.7.2-1a4j9k2f.mjs +0 -2
  518. package/dist/chunks/cli-0.7.2-1aerk8aa.mjs +0 -2
  519. package/dist/chunks/cli-0.7.2-1rwkghr2.mjs +0 -2
  520. package/dist/chunks/cli-0.7.2-21mtjks8.mjs +0 -15
  521. package/dist/chunks/cli-0.7.2-23xjb2nt.mjs +0 -2
  522. package/dist/chunks/cli-0.7.2-26rzbaez.mjs +0 -2
  523. package/dist/chunks/cli-0.7.2-29hh46ve.mjs +0 -3
  524. package/dist/chunks/cli-0.7.2-2dbmqwyn.mjs +0 -2
  525. package/dist/chunks/cli-0.7.2-2rj33835.mjs +0 -6
  526. package/dist/chunks/cli-0.7.2-31k7gjq7.mjs +0 -2
  527. package/dist/chunks/cli-0.7.2-358vh55m.mjs +0 -2
  528. package/dist/chunks/cli-0.7.2-3cc67r6d.mjs +0 -2
  529. package/dist/chunks/cli-0.7.2-3frg7csa.mjs +0 -2
  530. package/dist/chunks/cli-0.7.2-3s2zd715.mjs +0 -3
  531. package/dist/chunks/cli-0.7.2-3synxf81.mjs +0 -2
  532. package/dist/chunks/cli-0.7.2-40f37y02.mjs +0 -2
  533. package/dist/chunks/cli-0.7.2-40xymk1q.mjs +0 -2
  534. package/dist/chunks/cli-0.7.2-437jawbh.mjs +0 -2
  535. package/dist/chunks/cli-0.7.2-43d0yq0h.mjs +0 -2
  536. package/dist/chunks/cli-0.7.2-44rzmsbx.mjs +0 -2
  537. package/dist/chunks/cli-0.7.2-4d6z9fdj.mjs +0 -2
  538. package/dist/chunks/cli-0.7.2-4g4d682x.mjs +0 -3
  539. package/dist/chunks/cli-0.7.2-520tgkhw.mjs +0 -5438
  540. package/dist/chunks/cli-0.7.2-53qayxqk.mjs +0 -2
  541. package/dist/chunks/cli-0.7.2-5415yrkc.mjs +0 -2
  542. package/dist/chunks/cli-0.7.2-55ye29jy.mjs +0 -2
  543. package/dist/chunks/cli-0.7.2-5750g5et.mjs +0 -2
  544. package/dist/chunks/cli-0.7.2-59wm2srd.mjs +0 -2
  545. package/dist/chunks/cli-0.7.2-5aka4emf.mjs +0 -133
  546. package/dist/chunks/cli-0.7.2-5c89p68w.mjs +0 -2
  547. package/dist/chunks/cli-0.7.2-5ca5nqtj.mjs +0 -4
  548. package/dist/chunks/cli-0.7.2-5e72m61f.mjs +0 -25
  549. package/dist/chunks/cli-0.7.2-5ff63f31.mjs +0 -4
  550. package/dist/chunks/cli-0.7.2-5gqht4d7.mjs +0 -2
  551. package/dist/chunks/cli-0.7.2-5qd0bn5g.mjs +0 -193
  552. package/dist/chunks/cli-0.7.2-5tacs42k.mjs +0 -2
  553. package/dist/chunks/cli-0.7.2-5y498dyr.mjs +0 -2
  554. package/dist/chunks/cli-0.7.2-5y75zyrv.mjs +0 -15
  555. package/dist/chunks/cli-0.7.2-5yrman6f.mjs +0 -2
  556. package/dist/chunks/cli-0.7.2-60exfzc0.mjs +0 -2
  557. package/dist/chunks/cli-0.7.2-65v6wt4g.mjs +0 -2
  558. package/dist/chunks/cli-0.7.2-68dn8am7.mjs +0 -2
  559. package/dist/chunks/cli-0.7.2-6pjgt9bx.mjs +0 -2
  560. package/dist/chunks/cli-0.7.2-6zd4a6yh.mjs +0 -12
  561. package/dist/chunks/cli-0.7.2-796x24s1.mjs +0 -2
  562. package/dist/chunks/cli-0.7.2-7dh7rk2t.mjs +0 -2
  563. package/dist/chunks/cli-0.7.2-7rjfehxm.mjs +0 -2
  564. package/dist/chunks/cli-0.7.2-7xfph0pz.mjs +0 -2
  565. package/dist/chunks/cli-0.7.2-81s45w7r.mjs +0 -2
  566. package/dist/chunks/cli-0.7.2-828f420c.mjs +0 -7
  567. package/dist/chunks/cli-0.7.2-83dd0h2c.mjs +0 -2
  568. package/dist/chunks/cli-0.7.2-88h70xrj.mjs +0 -50
  569. package/dist/chunks/cli-0.7.2-894093rv.mjs +0 -2
  570. package/dist/chunks/cli-0.7.2-89wj5h3q.mjs +0 -2
  571. package/dist/chunks/cli-0.7.2-8pfcc363.mjs +0 -12
  572. package/dist/chunks/cli-0.7.2-8qd7xft9.mjs +0 -16
  573. package/dist/chunks/cli-0.7.2-9156j3vm.mjs +0 -6
  574. package/dist/chunks/cli-0.7.2-9328ezjz.mjs +0 -3
  575. package/dist/chunks/cli-0.7.2-9953mwyy.mjs +0 -2
  576. package/dist/chunks/cli-0.7.2-99am4r15.mjs +0 -4
  577. package/dist/chunks/cli-0.7.2-9kn29b9a.mjs +0 -4
  578. package/dist/chunks/cli-0.7.2-9ry87dm1.mjs +0 -2
  579. package/dist/chunks/cli-0.7.2-9vr6ts7b.mjs +0 -2
  580. package/dist/chunks/cli-0.7.2-a5svqzyj.mjs +0 -2
  581. package/dist/chunks/cli-0.7.2-a6q1amed.mjs +0 -2
  582. package/dist/chunks/cli-0.7.2-a9324x4q.mjs +0 -8
  583. package/dist/chunks/cli-0.7.2-aaxbm02p.mjs +0 -2
  584. package/dist/chunks/cli-0.7.2-apg4ptg9.mjs +0 -2
  585. package/dist/chunks/cli-0.7.2-atsd6734.mjs +0 -2
  586. package/dist/chunks/cli-0.7.2-avk3azcp.mjs +0 -2
  587. package/dist/chunks/cli-0.7.2-aye3y5eg.mjs +0 -2
  588. package/dist/chunks/cli-0.7.2-b0v1mt53.mjs +0 -2
  589. package/dist/chunks/cli-0.7.2-b9pdb0nv.mjs +0 -26
  590. package/dist/chunks/cli-0.7.2-bd97qyyb.mjs +0 -2
  591. package/dist/chunks/cli-0.7.2-bdnz1mnz.mjs +0 -21
  592. package/dist/chunks/cli-0.7.2-bjk14f5p.mjs +0 -2
  593. package/dist/chunks/cli-0.7.2-bmz47g1t.mjs +0 -18
  594. package/dist/chunks/cli-0.7.2-bttmh4fa.mjs +0 -4
  595. package/dist/chunks/cli-0.7.2-ccy16hvg.mjs +0 -2
  596. package/dist/chunks/cli-0.7.2-chg4zqj2.mjs +0 -2
  597. package/dist/chunks/cli-0.7.2-cjhzamwx.mjs +0 -2
  598. package/dist/chunks/cli-0.7.2-cqh66sd8.mjs +0 -2
  599. package/dist/chunks/cli-0.7.2-cqqj8v1e.mjs +0 -6
  600. package/dist/chunks/cli-0.7.2-czgmcj2j.mjs +0 -2
  601. package/dist/chunks/cli-0.7.2-d5fbych4.mjs +0 -2
  602. package/dist/chunks/cli-0.7.2-dggndd24.mjs +0 -2
  603. package/dist/chunks/cli-0.7.2-drxj7wsn.mjs +0 -2
  604. package/dist/chunks/cli-0.7.2-ds7h4ntr.mjs +0 -2
  605. package/dist/chunks/cli-0.7.2-dxm2c139.mjs +0 -24
  606. package/dist/chunks/cli-0.7.2-dzt53r0y.mjs +0 -2
  607. package/dist/chunks/cli-0.7.2-e6dtw86q.mjs +0 -2
  608. package/dist/chunks/cli-0.7.2-ec60dmtg.mjs +0 -2
  609. package/dist/chunks/cli-0.7.2-edf740pd.mjs +0 -5
  610. package/dist/chunks/cli-0.7.2-eey9qnsc.mjs +0 -2
  611. package/dist/chunks/cli-0.7.2-eyjs1wq5.mjs +0 -2
  612. package/dist/chunks/cli-0.7.2-f4nt233k.mjs +0 -3
  613. package/dist/chunks/cli-0.7.2-fcadqwem.mjs +0 -1
  614. package/dist/chunks/cli-0.7.2-fkp8v4sr.mjs +0 -2
  615. package/dist/chunks/cli-0.7.2-g3k7m45h.mjs +0 -12
  616. package/dist/chunks/cli-0.7.2-g6cqgcyf.mjs +0 -2
  617. package/dist/chunks/cli-0.7.2-gar34ch2.mjs +0 -4
  618. package/dist/chunks/cli-0.7.2-gn8ff3x2.mjs +0 -2
  619. package/dist/chunks/cli-0.7.2-gssxkynf.mjs +0 -2
  620. package/dist/chunks/cli-0.7.2-gx0r7hs8.mjs +0 -2
  621. package/dist/chunks/cli-0.7.2-gysw8esj.mjs +0 -2
  622. package/dist/chunks/cli-0.7.2-h248q4gt.mjs +0 -2
  623. package/dist/chunks/cli-0.7.2-h3jq0nx1.mjs +0 -2
  624. package/dist/chunks/cli-0.7.2-h7m849rt.mjs +0 -2
  625. package/dist/chunks/cli-0.7.2-h903zfjz.mjs +0 -2
  626. package/dist/chunks/cli-0.7.2-hbmczrch.mjs +0 -9
  627. package/dist/chunks/cli-0.7.2-he1hdn59.mjs +0 -18
  628. package/dist/chunks/cli-0.7.2-hspcdhd7.mjs +0 -2
  629. package/dist/chunks/cli-0.7.2-hv1z3had.mjs +0 -3
  630. package/dist/chunks/cli-0.7.2-hvk7rgt3.mjs +0 -2
  631. package/dist/chunks/cli-0.7.2-j029dkan.mjs +0 -3
  632. package/dist/chunks/cli-0.7.2-j0s33kp5.mjs +0 -2
  633. package/dist/chunks/cli-0.7.2-j3vx2jqw.mjs +0 -2
  634. package/dist/chunks/cli-0.7.2-jbhdwhp3.mjs +0 -2
  635. package/dist/chunks/cli-0.7.2-jc7jm1vm.mjs +0 -2
  636. package/dist/chunks/cli-0.7.2-jkt40yfs.mjs +0 -2
  637. package/dist/chunks/cli-0.7.2-jn2497vh.mjs +0 -2
  638. package/dist/chunks/cli-0.7.2-jv6k1kz6.mjs +0 -2
  639. package/dist/chunks/cli-0.7.2-k40k933y.mjs +0 -24
  640. package/dist/chunks/cli-0.7.2-k6jnr159.mjs +0 -2
  641. package/dist/chunks/cli-0.7.2-k9qpm29e.mjs +0 -2
  642. package/dist/chunks/cli-0.7.2-kyd7mrxn.mjs +0 -2
  643. package/dist/chunks/cli-0.7.2-mapkx1gt.mjs +0 -2
  644. package/dist/chunks/cli-0.7.2-mg2tmjs3.mjs +0 -12
  645. package/dist/chunks/cli-0.7.2-mja3g8j0.mjs +0 -2
  646. package/dist/chunks/cli-0.7.2-mp7jnva5.mjs +0 -15
  647. package/dist/chunks/cli-0.7.2-mqv265gk.mjs +0 -42
  648. package/dist/chunks/cli-0.7.2-mw93dmjz.mjs +0 -3
  649. package/dist/chunks/cli-0.7.2-n1ncm3tc.mjs +0 -2
  650. package/dist/chunks/cli-0.7.2-n8kpba5n.mjs +0 -2
  651. package/dist/chunks/cli-0.7.2-ndt224p1.mjs +0 -2
  652. package/dist/chunks/cli-0.7.2-nf346apq.mjs +0 -18
  653. package/dist/chunks/cli-0.7.2-ngdtr2fz.mjs +0 -2
  654. package/dist/chunks/cli-0.7.2-nkafymh4.mjs +0 -3
  655. package/dist/chunks/cli-0.7.2-nxtag6y2.mjs +0 -45
  656. package/dist/chunks/cli-0.7.2-p42bcqhs.mjs +0 -3
  657. package/dist/chunks/cli-0.7.2-pbaedfkk.mjs +0 -67
  658. package/dist/chunks/cli-0.7.2-pjavf176.mjs +0 -2
  659. package/dist/chunks/cli-0.7.2-pm05qj0a.mjs +0 -4
  660. package/dist/chunks/cli-0.7.2-ppaeptkd.mjs +0 -2
  661. package/dist/chunks/cli-0.7.2-q2pk22xv.mjs +0 -2
  662. package/dist/chunks/cli-0.7.2-q85af7gm.mjs +0 -2
  663. package/dist/chunks/cli-0.7.2-q88h44qv.mjs +0 -17
  664. package/dist/chunks/cli-0.7.2-q9twb2tn.mjs +0 -2
  665. package/dist/chunks/cli-0.7.2-qdapr4dz.mjs +0 -2
  666. package/dist/chunks/cli-0.7.2-qf8435qy.mjs +0 -2
  667. package/dist/chunks/cli-0.7.2-qftw5wyw.mjs +0 -5
  668. package/dist/chunks/cli-0.7.2-qr706n52.mjs +0 -10
  669. package/dist/chunks/cli-0.7.2-qsx52bst.mjs +0 -2
  670. package/dist/chunks/cli-0.7.2-r1502pen.mjs +0 -2
  671. package/dist/chunks/cli-0.7.2-r26ghgw6.mjs +0 -5
  672. package/dist/chunks/cli-0.7.2-r7x165sf.mjs +0 -17
  673. package/dist/chunks/cli-0.7.2-rn3w4y3r.mjs +0 -2
  674. package/dist/chunks/cli-0.7.2-s0av8fr2.mjs +0 -2
  675. package/dist/chunks/cli-0.7.2-s3r1krp7.mjs +0 -2
  676. package/dist/chunks/cli-0.7.2-s41x7s9w.mjs +0 -133
  677. package/dist/chunks/cli-0.7.2-se4w3qaw.mjs +0 -2
  678. package/dist/chunks/cli-0.7.2-sjrnxjfp.mjs +0 -2
  679. package/dist/chunks/cli-0.7.2-sr9m45tm.mjs +0 -2
  680. package/dist/chunks/cli-0.7.2-t1wtmnh8.mjs +0 -2
  681. package/dist/chunks/cli-0.7.2-tds456xt.mjs +0 -34
  682. package/dist/chunks/cli-0.7.2-tf3mc20k.mjs +0 -4
  683. package/dist/chunks/cli-0.7.2-twx01hwg.mjs +0 -2
  684. package/dist/chunks/cli-0.7.2-tx2rxhrx.mjs +0 -3
  685. package/dist/chunks/cli-0.7.2-tytdzgnc.mjs +0 -2
  686. package/dist/chunks/cli-0.7.2-tz5zv753.mjs +0 -6
  687. package/dist/chunks/cli-0.7.2-tzc6qkph.mjs +0 -3
  688. package/dist/chunks/cli-0.7.2-vb0ja1yz.mjs +0 -2
  689. package/dist/chunks/cli-0.7.2-vgq7ce31.mjs +0 -4
  690. package/dist/chunks/cli-0.7.2-vqvfxb9x.mjs +0 -2
  691. package/dist/chunks/cli-0.7.2-vvbp0ycp.mjs +0 -2
  692. package/dist/chunks/cli-0.7.2-vx10940a.mjs +0 -2
  693. package/dist/chunks/cli-0.7.2-vx90v3pr.mjs +0 -2
  694. package/dist/chunks/cli-0.7.2-w07ksegr.mjs +0 -2
  695. package/dist/chunks/cli-0.7.2-waas8a1p.mjs +0 -2
  696. package/dist/chunks/cli-0.7.2-wahbzckp.mjs +0 -58
  697. package/dist/chunks/cli-0.7.2-whm7dq8a.mjs +0 -2
  698. package/dist/chunks/cli-0.7.2-wk3m6ndw.mjs +0 -2
  699. package/dist/chunks/cli-0.7.2-wmz88sxe.mjs +0 -2
  700. package/dist/chunks/cli-0.7.2-xced0m7v.mjs +0 -2
  701. package/dist/chunks/cli-0.7.2-xkbkgc1x.mjs +0 -2
  702. package/dist/chunks/cli-0.7.2-xmf0q5j5.mjs +0 -39
  703. package/dist/chunks/cli-0.7.2-xpw13d73.mjs +0 -59
  704. package/dist/chunks/cli-0.7.2-xtj79p8n.mjs +0 -2
  705. package/dist/chunks/cli-0.7.2-xwmd0gap.mjs +0 -2
  706. package/dist/chunks/cli-0.7.2-xzq4nj1z.mjs +0 -2
  707. package/dist/chunks/cli-0.7.2-ydcqkbay.mjs +0 -20
  708. package/dist/chunks/cli-0.7.2-yeym3pfk.mjs +0 -4
  709. package/dist/chunks/cli-0.7.2-ygx94a70.mjs +0 -2
  710. package/dist/chunks/cli-0.7.2-ymes9mpn.mjs +0 -2
  711. package/dist/chunks/cli-0.7.2-yppcb6em.mjs +0 -2
  712. package/dist/chunks/cli-0.7.2-ze0wyhxh.mjs +0 -2
  713. package/dist/chunks/cli-0.7.2-zevvxkk3.mjs +0 -2
  714. package/dist/chunks/cli-0.7.2-zjn5drn1.mjs +0 -3
  715. package/dist/chunks/cli-0.7.2-zva1j44t.mjs +0 -2
  716. package/dist/chunks/cli-0.7.2-zvq6jw19.mjs +0 -2
  717. package/dist/chunks/client-0.7.2-5ayk0kpq.mjs +0 -1
  718. package/dist/chunks/color-0.7.2-qwk7wwhg.mjs +0 -1
  719. package/dist/chunks/compact-0.7.2-1htfptdq.mjs +0 -3
  720. package/dist/chunks/config-0.7.2-5qhqvs6r.mjs +0 -1
  721. package/dist/chunks/config-0.7.2-m4pjdgrd.mjs +0 -1
  722. package/dist/chunks/constants-0.7.2-pkxz3zw1.mjs +0 -1
  723. package/dist/chunks/context-0.7.2-sbj7xgcd.mjs +0 -1
  724. package/dist/chunks/context-noninteractive-0.7.2-0e342zm8.mjs +0 -1
  725. package/dist/chunks/conversation-0.7.2-8w1wm1xe.mjs +0 -1
  726. package/dist/chunks/copilotHeaders-0.7.2-qkkqpxf3.mjs +0 -1
  727. package/dist/chunks/copy-0.7.2-edx6f8tb.mjs +0 -9
  728. package/dist/chunks/cost-0.7.2-8arxgyd6.mjs +0 -1
  729. package/dist/chunks/createSSHSession-0.7.2-3n718ymh.mjs +0 -1
  730. package/dist/chunks/createSession-0.7.2-hm9d0q01.mjs +0 -1
  731. package/dist/chunks/debug-0.7.2-ngrc7p4e.mjs +0 -1
  732. package/dist/chunks/defaultActionDeps-0.7.2-dftsz493.mjs +0 -1446
  733. package/dist/chunks/desktop-0.7.2-vt6ymh81.mjs +0 -1
  734. package/dist/chunks/detectRepository-0.7.2-xgsqcqxv.mjs +0 -1
  735. package/dist/chunks/detection-0.7.2-m6c0amh8.mjs +0 -1
  736. package/dist/chunks/diff-0.7.2-7np6da8n.mjs +0 -1
  737. package/dist/chunks/doctor-0.7.2-spqx634t.mjs +0 -1
  738. package/dist/chunks/doctorDiagnostic-0.7.2-81rdywyn.mjs +0 -1
  739. package/dist/chunks/earlyInput-0.7.2-b7j7hx34.mjs +0 -1
  740. package/dist/chunks/effort-0.7.2-1jd0yvy3.mjs +0 -10
  741. package/dist/chunks/envLessBridgeConfig-0.7.2-x5wybzrg.mjs +0 -1
  742. package/dist/chunks/envUtils-0.7.2-srtr0ybx.mjs +0 -1
  743. package/dist/chunks/environmentSelection-0.7.2-drjpcqg5.mjs +0 -1
  744. package/dist/chunks/environments-0.7.2-c51gb5sh.mjs +0 -1
  745. package/dist/chunks/errors-0.7.2-4mfat7g5.mjs +0 -1
  746. package/dist/chunks/exampleCommands-0.7.2-c8b6smyk.mjs +0 -1
  747. package/dist/chunks/exit-0.7.2-0b21e2f4.mjs +0 -1
  748. package/dist/chunks/explorer-0.7.2-b2qgsg4r.mjs +0 -1
  749. package/dist/chunks/export-0.7.2-j6tnta5r.mjs +0 -2
  750. package/dist/chunks/extra-usage-0.7.2-8xrddgmh.mjs +0 -1
  751. package/dist/chunks/extra-usage-noninteractive-0.7.2-vzzkmfzw.mjs +0 -1
  752. package/dist/chunks/fast-0.7.2-kfcnj6wq.mjs +0 -1
  753. package/dist/chunks/feedback-0.7.2-cmhc12wj.mjs +0 -14
  754. package/dist/chunks/firstPartyEventLogger-0.7.2-pa49ax22.mjs +0 -1
  755. package/dist/chunks/git-0.7.2-9f7gvn9h.mjs +0 -1
  756. package/dist/chunks/githubModelsCredentials-0.7.2-qy1mhzsm.mjs +0 -1
  757. package/dist/chunks/goal-0.7.2-t9vq2zc6.mjs +0 -4
  758. package/dist/chunks/grove-0.7.2-9sxczf29.mjs +0 -1
  759. package/dist/chunks/growthbook-0.7.2-ch3yc64n.mjs +0 -1
  760. package/dist/chunks/headless-0.7.2-9kh4ecvm.mjs +0 -2
  761. package/dist/chunks/heapdump-0.7.2-jrxgec1e.mjs +0 -6
  762. package/dist/chunks/help-0.7.2-mkkkzv97.mjs +0 -1
  763. package/dist/chunks/hookChains-0.7.2-4rsz02te.mjs +0 -3
  764. package/dist/chunks/hooks-0.7.2-mpa8g97z.mjs +0 -1
  765. package/dist/chunks/hooks-0.7.2-yaybnthb.mjs +0 -79
  766. package/dist/chunks/ide-0.7.2-a5p1wn0n.mjs +0 -3
  767. package/dist/chunks/image-processor-napi-0.7.2-c971ey5m.mjs +0 -1
  768. package/dist/chunks/inboundAttachments-0.7.2-vkae77ac.mjs +0 -1
  769. package/dist/chunks/index-0.7.2-4qr2yjjg.mjs +0 -1
  770. package/dist/chunks/index-0.7.2-5mfmhd35.mjs +0 -1
  771. package/dist/chunks/index-0.7.2-62g62r4p.mjs +0 -1
  772. package/dist/chunks/index-0.7.2-7b6mkd4g.mjs +0 -9
  773. package/dist/chunks/index-0.7.2-87jrdmn3.mjs +0 -2
  774. package/dist/chunks/index-0.7.2-9h4tsef1.mjs +0 -1
  775. package/dist/chunks/index-0.7.2-9mk9g3c3.mjs +0 -1
  776. package/dist/chunks/index-0.7.2-a3w6at2z.mjs +0 -1
  777. package/dist/chunks/index-0.7.2-b296et1z.mjs +0 -1
  778. package/dist/chunks/index-0.7.2-c22bn4q9.mjs +0 -1
  779. package/dist/chunks/index-0.7.2-dn8m3dh3.mjs +0 -9
  780. package/dist/chunks/index-0.7.2-f8swc4mv.mjs +0 -30
  781. package/dist/chunks/index-0.7.2-fdsptfbt.mjs +0 -17
  782. package/dist/chunks/index-0.7.2-g2vfnmjs.mjs +0 -1
  783. package/dist/chunks/index-0.7.2-hjcptpaz.mjs +0 -1
  784. package/dist/chunks/index-0.7.2-hts44hhf.mjs +0 -2
  785. package/dist/chunks/index-0.7.2-k2y0b0h3.mjs +0 -1
  786. package/dist/chunks/index-0.7.2-nhtpksxs.mjs +0 -5
  787. package/dist/chunks/index-0.7.2-p5a52s17.mjs +0 -1
  788. package/dist/chunks/index-0.7.2-r0zwxc1g.mjs +0 -1
  789. package/dist/chunks/index-0.7.2-vfyvycvc.mjs +0 -1
  790. package/dist/chunks/index-0.7.2-vw5e1spt.mjs +0 -1
  791. package/dist/chunks/index-0.7.2-xp0gpx8w.mjs +0 -1
  792. package/dist/chunks/init-0.7.2-mdhax55g.mjs +0 -1
  793. package/dist/chunks/initReplBridge-0.7.2-sq5dka9e.mjs +0 -1
  794. package/dist/chunks/ink-0.7.2-xhfkzs8w.mjs +0 -1
  795. package/dist/chunks/insights-0.7.2-hnzbcbwt.mjs +0 -870
  796. package/dist/chunks/install-0.7.2-f33pbxz0.mjs +0 -1
  797. package/dist/chunks/install-github-app-0.7.2-rysxaqa4.mjs +0 -149
  798. package/dist/chunks/install-slack-app-0.7.2-nsg858f1.mjs +0 -1
  799. package/dist/chunks/instrumentation-0.7.2-6t0dw394.mjs +0 -1
  800. package/dist/chunks/interactiveHelpers-0.7.2-wqr53tgp.mjs +0 -1
  801. package/dist/chunks/keybindings-0.7.2-b6yhemd9.mjs +0 -2
  802. package/dist/chunks/knowledge-0.7.2-94b972dr.mjs +0 -2
  803. package/dist/chunks/latestVersionCache-0.7.2-1e9h6ycx.mjs +0 -1
  804. package/dist/chunks/loadAgentsDir-0.7.2-d3vy1hjh.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-0.7.2-9bdtab1f.mjs +0 -1
  806. package/dist/chunks/loadPluginHooks-0.7.2-v002c6d9.mjs +0 -1
  807. package/dist/chunks/log-0.7.2-n28x7jf3.mjs +0 -1
  808. package/dist/chunks/main-0.7.2-bbgx9tzn.mjs +0 -1
  809. package/dist/chunks/managedEnv-0.7.2-c7gnfsz5.mjs +0 -1
  810. package/dist/chunks/mcp-0.7.2-nakq1rhg.mjs +0 -1
  811. package/dist/chunks/mcp-0.7.2-v40gxs87.mjs +0 -17
  812. package/dist/chunks/mcp-0.7.2-wtmt0vpe.mjs +0 -4
  813. package/dist/chunks/mcpb-0.7.2-k7z7aa64.mjs +0 -1
  814. package/dist/chunks/memory-0.7.2-1hfh6410.mjs +0 -3
  815. package/dist/chunks/model-0.7.2-c8esc658.mjs +0 -1
  816. package/dist/chunks/model-0.7.2-sjw6chpt.mjs +0 -2
  817. package/dist/chunks/node-0.7.2-2bm5bpwx.mjs +0 -12
  818. package/dist/chunks/oauth-0.7.2-ze80cmtw.mjs +0 -1
  819. package/dist/chunks/openaiShim-0.7.2-qwqrcmfv.mjs +0 -14
  820. package/dist/chunks/output-style-0.7.2-mhfyzz5h.mjs +0 -1
  821. package/dist/chunks/package-GCDC7LJR-0.7.2-d271461v.mjs +0 -1
  822. package/dist/chunks/parseConnectUrl-0.7.2-5c6xzn22.mjs +0 -1
  823. package/dist/chunks/parser-0.7.2-ekqc81n3.mjs +0 -1
  824. package/dist/chunks/passes-0.7.2-dyr0j4xs.mjs +0 -1
  825. package/dist/chunks/permissions-0.7.2-ap5ve9y3.mjs +0 -3
  826. package/dist/chunks/permissions-0.7.2-pqbpv219.mjs +0 -1
  827. package/dist/chunks/plan-0.7.2-3qcvkebx.mjs +0 -1
  828. package/dist/chunks/plist-0.7.2-sfrs3sb5.mjs +0 -1
  829. package/dist/chunks/plugin-0.7.2-23zzkpzp.mjs +0 -29
  830. package/dist/chunks/pluginStartupCheck-0.7.2-hdbd4vjf.mjs +0 -1
  831. package/dist/chunks/plugins-0.7.2-8b79cq4h.mjs +0 -9
  832. package/dist/chunks/preActionHook-0.7.2-denqn35e.mjs +0 -2
  833. package/dist/chunks/print-0.7.2-k3jvb8xp.mjs +0 -57
  834. package/dist/chunks/privacy-settings-0.7.2-2a25e9zd.mjs +0 -1
  835. package/dist/chunks/process-0.7.2-bydxzc10.mjs +0 -1
  836. package/dist/chunks/processBashCommand-0.7.2-n8zeggtq.mjs +0 -1
  837. package/dist/chunks/processSlashCommand-0.7.2-8bkqmvyg.mjs +0 -9
  838. package/dist/chunks/prompt-0.7.2-xcyvamqv.mjs +0 -1
  839. package/dist/chunks/prompt-0.7.2-zgvfvr40.mjs +0 -1
  840. package/dist/chunks/prompts-0.7.2-v3chnzw2.mjs +0 -1
  841. package/dist/chunks/protocolHandler-0.7.2-pcar7hdp.mjs +0 -13
  842. package/dist/chunks/provider-0.7.2-amg0a8yq.mjs +0 -2
  843. package/dist/chunks/providerProfiles-0.7.2-nwbz4k4w.mjs +0 -1
  844. package/dist/chunks/providerValidation-0.7.2-acwg3yzh.mjs +0 -6
  845. package/dist/chunks/rate-limit-options-0.7.2-spv7s8hs.mjs +0 -1
  846. package/dist/chunks/registerSubcommands-0.7.2-7g1dds0b.mjs +0 -34
  847. package/dist/chunks/registry-0.7.2-kv34xe3p.mjs +0 -1
  848. package/dist/chunks/release-notes-0.7.2-amerc2cj.mjs +0 -5
  849. package/dist/chunks/reload-plugins-0.7.2-tx1872h3.mjs +0 -2
  850. package/dist/chunks/remote-env-0.7.2-hq2w0qkg.mjs +0 -1
  851. package/dist/chunks/remoteBridgeCore-0.7.2-5stcs58w.mjs +0 -1
  852. package/dist/chunks/remoteSession-0.7.2-zwc7cra7.mjs +0 -1
  853. package/dist/chunks/rename-0.7.2-gk2b22q0.mjs +0 -1
  854. package/dist/chunks/replBridgeHandle-0.7.2-17phx9ww.mjs +0 -1
  855. package/dist/chunks/replLauncher-0.7.2-th0j1erj.mjs +0 -1
  856. package/dist/chunks/resume-0.7.2-xmxzptvs.mjs +0 -2
  857. package/dist/chunks/rewind-0.7.2-bvjnkrk2.mjs +0 -1
  858. package/dist/chunks/rootOptions-0.7.2-2cy9mmwc.mjs +0 -1
  859. package/dist/chunks/sandbox-adapter-0.7.2-h0xxevv6.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-0.7.2-qhhmmtft.mjs +0 -1
  861. package/dist/chunks/session-0.7.2-c8me3g3x.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-0.7.2-3k39j4tc.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-0.7.2-rv6etkhg.mjs +0 -1
  864. package/dist/chunks/sessionStorage-0.7.2-97nxk3y6.mjs +0 -1
  865. package/dist/chunks/settings-0.7.2-xc200363.mjs +0 -1
  866. package/dist/chunks/setup-0.7.2-c982wyvz.mjs +0 -5
  867. package/dist/chunks/sinks-0.7.2-95rk1mrs.mjs +0 -1
  868. package/dist/chunks/skills-0.7.2-6gdq6xgn.mjs +0 -1
  869. package/dist/chunks/startupProfiler-0.7.2-bx988amf.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-0.7.2-n1cjfry1.mjs +0 -1
  871. package/dist/chunks/state-0.7.2-p9tevca2.mjs +0 -1
  872. package/dist/chunks/stats-0.7.2-8xhdefb7.mjs +0 -6
  873. package/dist/chunks/status-0.7.2-fh89jm1g.mjs +0 -1
  874. package/dist/chunks/stickers-0.7.2-8p2fssw5.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-0.7.2-rxrfb67k.mjs +0 -1
  876. package/dist/chunks/tasks-0.7.2-e27mj4dh.mjs +0 -1
  877. package/dist/chunks/teamHelpers-0.7.2-m3z5pcdz.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-0.7.2-p7amb3d6.mjs +0 -1
  879. package/dist/chunks/teleport-0.7.2-5esyfq9r.mjs +0 -1
  880. package/dist/chunks/terminalSetup-0.7.2-yscmphsc.mjs +0 -1
  881. package/dist/chunks/theme-0.7.2-1zmsca02.mjs +0 -1
  882. package/dist/chunks/thinkback-0.7.2-17ff2vy3.mjs +0 -1
  883. package/dist/chunks/thinkback-play-0.7.2-mdnape3r.mjs +0 -1
  884. package/dist/chunks/toolPool-0.7.2-jbgwb4kh.mjs +0 -1
  885. package/dist/chunks/toolSearch-0.7.2-c6qby1zz.mjs +0 -1
  886. package/dist/chunks/tools-0.7.2-b04qyzf8.mjs +0 -1
  887. package/dist/chunks/trustedDevice-0.7.2-jz3zmc03.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-0.7.2-bj6egxgk.mjs +0 -69
  889. package/dist/chunks/types-0.7.2-fsjvv1kt.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-0.7.2-w2fbj23d.mjs +0 -4
  891. package/dist/chunks/update-0.7.2-4ccgmd4p.mjs +0 -86
  892. package/dist/chunks/upgrade-0.7.2-d7h7vmqn.mjs +0 -1
  893. package/dist/chunks/upload-0.7.2-p6je053d.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-0.7.2-sjmkdjb8.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-0.7.2-snjwvzje.mjs +0 -1
  896. package/dist/chunks/usage-0.7.2-2k2m3v75.mjs +0 -1
  897. package/dist/chunks/util-0.7.2-n4vdasdr.mjs +0 -1
  898. package/dist/chunks/utils-0.7.2-bmqt59ff.mjs +0 -1
  899. package/dist/chunks/vim-0.7.2-bd15xeza.mjs +0 -1
  900. package/dist/chunks/watcher-0.7.2-pjzeng3k.mjs +0 -1
  901. package/dist/chunks/wiki-0.7.2-2a655hhv.mjs +0 -132
  902. package/dist/chunks/worktree-0.7.2-gs72mnyb.mjs +0 -1
  903. package/dist/chunks/worktreeModeEnabled-0.7.2-gqtz9ha6.mjs +0 -1
  904. package/dist/chunks/wrapper-0.7.2-j420s6rc.mjs +0 -7
  905. /package/dist/chunks/{cli-0.7.2-1xbehmgb.mjs → cli-0.7.4-a8qv9b1x.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
2
- export{z as cqa,A as dqa,B as eqa,C as fqa,D as gqa,F as hqa,G as iqa,H as jqa};
@@ -1,2 +0,0 @@
1
- import{AF as I,Kn as g,Ln as k,yF as h}from"./cli-0.7.2-520tgkhw.mjs";import{UX as S,UZ as _,pZ as s}from"./cli-0.7.2-xpw13d73.mjs";import{$1 as m,_1 as c,a2 as T}from"./cli-0.7.2-wmz88sxe.mjs";import{Uca as P,wca as b}from"./cli-0.7.2-5qd0bn5g.mjs";import{cqa as D}from"./cli-0.7.2-5tacs42k.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
2
- export{E as N};
@@ -1,15 +0,0 @@
1
- import{eqa as T,gqa as J5,hqa as M}from"./cli-0.7.2-5tacs42k.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
2
- ]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
3
- Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
4
- Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
5
- The chosen QR Code version cannot contain this amount of data.
6
- Minimum version required to store current data is: `+F+`.
7
- `);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
8
- `);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
9
- `}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
10
- `;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
11
- `}if(U+=R+`
12
- `,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
13
- `+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
14
- `;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
15
- export{T5 as De,X5 as Ee};
@@ -1,2 +0,0 @@
1
- import{Aoa as v,Boa as P1,Coa as Y5,Doa as w8,Eoa as q,Foa as y,Goa as S,Hoa as kQ,Ioa as L,Joa as a,Koa as n5,Loa as e8,Moa as R5,Noa as _8,Ooa as E,Poa as h8,Qoa as P,Roa as x1,Soa as d,Toa as xQ,Uoa as r,Voa as UQ,Woa as T5,Xoa as UY,yoa as _Q,zoa as YJ}from"./cli-0.7.2-bd97qyyb.mjs";import{fqa as aQ,gqa as X}from"./cli-0.7.2-5tacs42k.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var qQ;var DQ=X(()=>{qQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();DQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=q.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=S?S.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function qJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=qJ});var DJ,w;var M=X(()=>{DJ=Array.isArray,w=DJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var SQ;var mQ=X(()=>{SQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{mQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();m();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();m();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,SJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?q.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,SJ=yJ||cQ,A=SJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?mJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var mJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();m();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||D8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var q8,D8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();q8=Object.prototype,D8=q8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{_8();J1();q5=k8});function E8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var S1=X(()=>{x5();F5();D5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var m1;var O5=X(()=>{yQ();bQ();S1();m1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=m1(Q),B=U.length,K=m1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var S8,U1;var L5=X(()=>{x1();y();S8=P(q,"DataView"),U1=S8});var m8,K1;var f5=X(()=>{x1();y();m8=P(q,"Promise"),K1=m8});var A8,G1;var P5=X(()=>{x1();y();A8=P(q,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(q,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,S5;var m5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;S5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();S1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();m();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var q1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function qY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var D1;var b1=X(()=>{M();q1();s5();X$();D1=qY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-DY?"-0":J}var DY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();q1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as SY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=SY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,S$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,S$(Q)}function S$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function q9(){return $.directConnectServerUrl}function D9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){return Date.now()-$.startTime}function I9(){return $.totalAPIDurationWithoutRetries}function C9(){return $.totalToolDuration}function _9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function k9(){return $.turnHookDurationMs}function E9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function v9(){$.turnHookDurationMs=0,$.turnHookCount=0}function d9(){return $.turnHookCount}function g9(){return $.turnToolDurationMs}function p9(){$.turnToolDurationMs=0,$.turnToolCount=0}function y9(){return $.turnToolCount}function S9(){return $.turnClassifierDurationMs}function m9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function A9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function j9(){return $.turnClassifierCount}function h9(){return $.statsStore}function n9(Q){$.statsStore=Q}function b9(Q){if(Q)m$();else s1=!0}function i9(){if(s1)m$()}function m$(){$.lastInteractionTime=Date.now(),s1=!1}function u9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function l9(){return $.totalLinesAdded}function T9(){return $.totalLinesRemoved}function c9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function r9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function o9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function s9(){return b(Object.values($.modelUsage),"webSearchRequests")}function a9(){return A$()-a1}function t9(){return t1}function e9(Q){a1=A$(),t1=Q,f1=0}function QH(){return f1}function $H(){f1++}function JH(){$.hasUnknownModelCost=!0}function YH(){return $.hasUnknownModelCost}function ZH(){return $.lastMainRequestId}function XH(Q){$.lastMainRequestId=Q}function HH(){return $.lastApiCompletionTimestamp}function WH(Q){$.lastApiCompletionTimestamp=Q}function xH(){$.pendingPostCompaction=!0}function UH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function KH(){return $.lastInteractionTime}function GH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function BH(){return M1}async function NH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function wH(){return $.modelUsage}function zH(Q){return $.modelUsage[Q]}function FH(){return $.mainLoopModelOverride}function RH(){return $.initialMainLoopModel}function qH(Q){$.mainLoopModelOverride=Q}function DH(Q){$.initialMainLoopModel=Q}function OH(){return $.sdkBetas}function VH(Q){$.sdkBetas=Q}function MH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function LH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function fH(){throw Error("resetStateForTests can only be called in tests")}function PH(){return $.modelStrings}function IH(Q){$.modelStrings=Q}function CH(){$.modelStrings=null}function _H(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function kH(){return $.meter}function EH(){return $.sessionCounter}function vH(){return $.locCounter}function dH(){return $.prCounter}function gH(){return $.commitCounter}function pH(){return $.costCounter}function yH(){return $.tokenCounter}function SH(){return $.codeEditToolDecisionCounter}function mH(){return $.activeTimeCounter}function AH(){return $.loggerProvider}function jH(Q){$.loggerProvider=Q}function hH(){return $.eventLogger}function nH(Q){$.eventLogger=Q}function bH(){return $.meterProvider}function iH(Q){$.meterProvider=Q}function uH(){return $.tracerProvider}function lH(Q){$.tracerProvider=Q}function mY(){return!$.isInteractive}function TH(){return $.isInteractive}function cH(Q){$.isInteractive=Q}function rH(){return $.clientType}function oH(Q){$.clientType=Q}function sH(){return $.sdkAgentProgressSummariesEnabled}function aH(Q){$.sdkAgentProgressSummariesEnabled=Q}function tH(){return $.kairosActive}function eH(Q){$.kairosActive=Q,L1()}function Q4(){return $.strictToolResultPairing}function $4(Q){$.strictToolResultPairing=Q}function J4(){return $.userMsgOptIn}function Y4(Q){$.userMsgOptIn=Q,L1()}function Z4(){return $.sessionSource}function X4(Q){$.sessionSource=Q}function H4(){return $.questionPreviewFormat}function W4(Q){$.questionPreviewFormat=Q}function x4(){return $.agentColorMap}function U4(){return $.flagSettingsPath}function K4(Q){$.flagSettingsPath=Q}function G4(){return $.flagSettingsInline}function B4(Q){$.flagSettingsInline=Q}function N4(){return $.sessionIngressToken}function w4(Q){$.sessionIngressToken=Q}function z4(){return $.oauthTokenFromFd}function F4(Q){$.oauthTokenFromFd=Q}function R4(){return $.apiKeyFromFd}function q4(Q){$.apiKeyFromFd=Q}function D4(Q){$.lastAPIRequest=Q}function O4(){return $.lastAPIRequest}function V4(Q){$.lastAPIRequestMessages=Q}function M4(){return $.lastAPIRequestMessages}function L4(Q){$.lastClassifierRequests=Q}function f4(){return $.lastClassifierRequests}function P4(Q){$.cachedClaudeMdContent=Q}function I4(){return $.cachedClaudeMdContent}function C4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function _4(){return $.allowedSettingSources}function k4(Q){$.allowedSettingSources=Q}function E4(){return mY()&&$.clientType!=="claude-vscode"}function v4(Q){$.inlinePlugins=Q}function d4(){return $.inlinePlugins}function g4(Q){$.useCoworkPlugins=Q,E$()}function p4(){return $.useCoworkPlugins}function y4(Q){$.sessionBypassPermissionsMode=Q}function S4(){return $.sessionBypassPermissionsMode}function m4(Q){$.scheduledTasksEnabled=Q}function A4(){return $.scheduledTasksEnabled}function j4(){return $.sessionCronTasks}function h4(Q){$.sessionCronTasks.push(Q)}function n4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function b4(){return $.pendingSessionWakeup}function i4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function u4(){$.pendingSessionWakeup=null}function l4(Q){$.sessionTrustAccepted=Q}function T4(){return $.sessionTrustAccepted}function c4(Q){$.sessionPersistenceDisabled=Q}function r4(){return $.sessionPersistenceDisabled}function o4(){return $.hasExitedPlanMode}function s4(Q){$.hasExitedPlanMode=Q}function a4(){return $.needsPlanModeExitAttachment}function t4(Q){$.needsPlanModeExitAttachment=Q}function e4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function Q3(){return $.needsAutoModeExitAttachment}function $3(Q){$.needsAutoModeExitAttachment=Q}function J3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function Y3(Q){$.initJsonSchema=Q}function Z3(){return $.initJsonSchema}function X3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function H3(){return $.registeredHooks}function W3(){$.registeredHooks=null}function x3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function U3(){$.initJsonSchema=null,$.registeredHooks=null}function K3(){return $.planSlugCache}function G3(){return $.sessionCreatedTeams}function B3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function N3(){return $.teleportedSessionInfo}function w3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function z3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function F3(){return $.invokedSkills}function R3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function q3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function D3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function O3(Q,J){}function V3(){return AY}function M3(){return $.mainThreadAgentType}function L3(Q){$.mainThreadAgentType=Q}function f3(){return $.isRemoteMode}function P3(Q){$.isRemoteMode=Q}function I3(){return $.systemPromptSectionCache}function C3(Q,J){$.systemPromptSectionCache.set(Q,J)}function _3(){$.systemPromptSectionCache.clear()}function k3(){return $.lastEmittedDate}function E3(Q){$.lastEmittedDate=Q}function v3(){return $.additionalDirectoriesForClaudeMd}function d3(Q){$.additionalDirectoriesForClaudeMd=Q}function g3(){return $.allowedChannels}function p3(Q){$.allowedChannels=Q,L1()}function y3(){return $.hasDevChannels}function S3(Q){$.hasDevChannels=Q}function m3(){return $.largeSystemPromptDetected}function A3(Q){$.largeSystemPromptDetected=Q}function j3(){return $.afkModeHeaderLatched}function h3(Q){$.afkModeHeaderLatched=Q}function n3(){return $.fastModeHeaderLatched}function b3(Q){$.fastModeHeaderLatched=Q}function i3(){return $.thinkingClearLatched}function u3(Q){$.thinkingClearLatched=Q}function l3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function T3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function c3(){return $.deferredDeltaLegacySession}function r3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function o3(){return $.sessionEpochMs}function s3(){return $.promptId}function a3(Q){$.promptId=Q}function t3(){return!1}function e3(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
2
- export{p as Xia,I1 as Yia,FQ as Zia,RQ as _ia,OQ as $ia,VQ as aja,_1 as bja,MQ as cja,PQ as dja,IQ as eja,dQ as fja,gQ as gja,w as hja,M as ija,pQ as jja,yQ as kja,SQ as lja,mQ as mja,AQ as nja,jQ as oja,nQ as pja,bQ as qja,O as rja,m as sja,t as tja,v1 as uja,A as vja,d1 as wja,$1 as xja,g1 as yja,$5 as zja,J5 as Aja,X1 as Bja,X5 as Cja,H1 as Dja,y1 as Eja,W5 as Fja,x5 as Gja,U5 as Hja,K5 as Ija,G5 as Jja,B5 as Kja,q5 as Lja,D5 as Mja,W1 as Nja,S1 as Oja,m1 as Pja,O5 as Qja,G1 as Rja,P5 as Sja,A1 as Tja,d5 as Uja,w1 as Vja,j1 as Wja,h as Xja,R1 as Yja,a5 as Zja,t5 as _ja,Z$ as $ja,X$ as aka,D1 as bka,b1 as cka,I as dka,u as eka,O1 as fka,i1 as gka,F$ as hka,R$ as ika,f$ as jka,P$ as kka,nX as lka,bX as mka,iX as nka,uX as oka,lX as pka,TX as qka,E$ as rka,cX as ska,rX as tka,oX as uka,v$ as vka,d$ as wka,g$ as xka,Z9 as yka,X9 as zka,H9 as Aka,W9 as Bka,x9 as Cka,U9 as Dka,K9 as Eka,G9 as Fka,B9 as Gka,N9 as Hka,w9 as Ika,z9 as Jka,F9 as Kka,R9 as Lka,q9 as Mka,D9 as Nka,O9 as Oka,V9 as Pka,M9 as Qka,L9 as Rka,f9 as Ska,P9 as Tka,I9 as Uka,C9 as Vka,_9 as Wka,k9 as Xka,E9 as Yka,v9 as Zka,d9 as _ka,g9 as $ka,p9 as ala,y9 as bla,S9 as cla,m9 as dla,A9 as ela,j9 as fla,h9 as gla,n9 as hla,b9 as ila,i9 as jla,u9 as kla,l9 as lla,T9 as mla,c9 as nla,A$ as ola,r9 as pla,o9 as qla,s9 as rla,a9 as sla,t9 as tla,e9 as ula,QH as vla,$H as wla,JH as xla,YH as yla,ZH as zla,XH as Ala,HH as Bla,WH as Cla,xH as Dla,UH as Ela,KH as Fla,GH as Gla,BH as Hla,NH as Ila,wH as Jla,zH as Kla,FH as Lla,RH as Mla,qH as Nla,DH as Ola,OH as Pla,VH as Qla,MH as Rla,LH as Sla,fH as Tla,PH as Ula,IH as Vla,CH as Wla,_H as Xla,kH as Yla,EH as Zla,vH as _la,dH as $la,gH as ama,pH as bma,yH as cma,SH as dma,mH as ema,AH as fma,jH as gma,hH as hma,nH as ima,bH as jma,iH as kma,uH as lma,lH as mma,mY as nma,TH as oma,cH as pma,rH as qma,oH as rma,sH as sma,aH as tma,tH as uma,eH as vma,Q4 as wma,$4 as xma,J4 as yma,Y4 as zma,Z4 as Ama,X4 as Bma,H4 as Cma,W4 as Dma,x4 as Ema,U4 as Fma,K4 as Gma,G4 as Hma,B4 as Ima,N4 as Jma,w4 as Kma,z4 as Lma,F4 as Mma,R4 as Nma,q4 as Oma,D4 as Pma,O4 as Qma,V4 as Rma,M4 as Sma,L4 as Tma,f4 as Uma,P4 as Vma,I4 as Wma,C4 as Xma,_4 as Yma,k4 as Zma,E4 as _ma,v4 as $ma,d4 as ana,g4 as bna,p4 as cna,y4 as dna,S4 as ena,m4 as fna,A4 as gna,j4 as hna,h4 as ina,n4 as jna,b4 as kna,i4 as lna,u4 as mna,l4 as nna,T4 as ona,c4 as pna,r4 as qna,o4 as rna,s4 as sna,a4 as tna,t4 as una,e4 as vna,Q3 as wna,$3 as xna,J3 as yna,Y3 as zna,Z3 as Ana,X3 as Bna,H3 as Cna,W3 as Dna,x3 as Ena,U3 as Fna,K3 as Gna,G3 as Hna,B3 as Ina,N3 as Jna,w3 as Kna,z3 as Lna,F3 as Mna,R3 as Nna,q3 as Ona,D3 as Pna,O3 as Qna,V3 as Rna,M3 as Sna,L3 as Tna,f3 as Una,P3 as Vna,I3 as Wna,C3 as Xna,_3 as Yna,k3 as Zna,E3 as _na,v3 as $na,d3 as aoa,g3 as boa,p3 as coa,y3 as doa,S3 as eoa,m3 as foa,A3 as goa,j3 as hoa,h3 as ioa,n3 as joa,b3 as koa,i3 as loa,u3 as moa,l3 as noa,T3 as ooa,c3 as poa,r3 as qoa,jY as roa,o3 as soa,s3 as toa,a3 as uoa,t3 as voa,e3 as woa,hY as xoa};
@@ -1,2 +0,0 @@
1
- import{nb as W,ob as z}from"./cli-0.7.2-828f420c.mjs";import{tb as R}from"./cli-0.7.2-t1wtmnh8.mjs";import{TU as M,UU as w}from"./cli-0.7.2-ze0wyhxh.mjs";import{$ha as L,cia as j}from"./cli-0.7.2-cqqj8v1e.mjs";import{Gia as H,zia as Z}from"./cli-0.7.2-bttmh4fa.mjs";j();H();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:E,getAuthToken:N}=B,P;if(N)P=()=>{let x=N();if(!x)return{};return{Authorization:`Bearer ${x}`}};else M(_);let Q=B.epoch??await R(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new z(V,{},$,void 0,E,P),X,J=new W(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let f,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){f=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),f?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
2
- export{I as ib,k as jb,D as kb};
@@ -1,2 +0,0 @@
1
- import{CE as L,DE as h,oG as z,pG as M,pv as J,qv as Z}from"./cli-0.7.2-520tgkhw.mjs";import{UX as X}from"./cli-0.7.2-xpw13d73.mjs";import{b2 as W}from"./cli-0.7.2-jc7jm1vm.mjs";import{Una as H,xoa as V}from"./cli-0.7.2-5yrman6f.mjs";import{cqa as D,gqa as U}from"./cli-0.7.2-5tacs42k.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
2
- export{v as gg,A as hg};
@@ -1,2 +0,0 @@
1
- import{gqa as J}from"./cli-0.7.2-5tacs42k.mjs";import v from"node:path";function Z(q){if(q.endsWith(v.sep)||q.endsWith("/"))return K;let j=v.basename(q).toLowerCase();if(j.startsWith("readme"))return B[".md"];if(j.startsWith(".env"))return Q;let z=U[j];if(z)return z;let H=v.extname(j);return B[H]??P}var K="",Y="",P="",Q="",U,B;var V=J(()=>{U={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},B={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""}});
2
- export{K as uh,Y as vh,Z as wh,V as xh};
@@ -1,2 +0,0 @@
1
- import{Xc as z,Yc as K}from"./cli-0.7.2-j0s33kp5.mjs";import{XI as w,ZI as J}from"./cli-0.7.2-520tgkhw.mjs";import{b2 as H}from"./cli-0.7.2-jc7jm1vm.mjs";import{cqa as E,gqa as G}from"./cli-0.7.2-5tacs42k.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
2
- export{V as Tc,N as Uc};
@@ -1,12 +0,0 @@
1
- import{kg as $Z,lg as uZ,mg as fz}from"./cli-0.7.2-vb0ja1yz.mjs";import{sh as HJ,th as Vz}from"./cli-0.7.2-9953mwyy.mjs";import{Dh as GJ,Eh as Bz}from"./cli-0.7.2-mja3g8j0.mjs";import{$u as UQ,An as RQ,BS as BQ,Bn as wX,CP as nQ,GP as iQ,HP as lQ,Iz as SZ,JP as nZ,Jz as hZ,KP as aQ,Kz as TZ,Lz as dJ,MP as g0,Mj as _Z,Mz as cQ,NP as rQ,Nj as TQ,Nz as cJ,PP as eJ,QP as ZQ,Qn as XQ,RP as oQ,SP as tQ,Sn as xZ,Tz as e0,UP as OZ,Uz as gJ,Vj as IJ,Vz as mJ,Wj as SJ,Wz as nJ,Xy as pQ,Xz as yz,Yy as PX,ao as WQ,av as jQ,bk as pJ,bv as $Q,cv as uQ,dz as dQ,eo as uz,ez as DX,gv as MQ,hv as EQ,iS as VQ,is as NJ,kP as mQ,mS as KQ,ms as Uz,pS as fZ,sn as zQ,tn as $z,uk as mZ,vk as FX,wv as fQ,zv as AX}from"./cli-0.7.2-520tgkhw.mjs";import{DT as OX,uT as xQ}from"./cli-0.7.2-r7x165sf.mjs";import{EW as FZ,FW as qJ,ZW as YJ,bX as qz,cX as UZ,dX as NX}from"./cli-0.7.2-55ye29jy.mjs";import{KX as WJ,LX as Wz,RY as jZ,SY as Jz,UX as u0,UZ as p0,gZ as hQ,hZ as KX,nZ as b,oY as c0,oZ as DQ,pZ as g,qZ as JX,sY as vZ}from"./cli-0.7.2-xpw13d73.mjs";import{$1 as $,Z1 as f0,_1 as B,a2 as F0}from"./cli-0.7.2-wmz88sxe.mjs";import{b2 as S0}from"./cli-0.7.2-jc7jm1vm.mjs";import{x2 as VJ,y2 as BJ,z2 as Yz}from"./cli-0.7.2-nkafymh4.mjs";import{B5 as PQ,C5 as ZX,H5 as JZ,H6 as xz,K5 as QZ,c6 as JQ,m6 as QQ}from"./cli-0.7.2-8qd7xft9.mjs";import{b7 as gZ,c7 as GX}from"./cli-0.7.2-2rj33835.mjs";import{H$ as LX,Raa as LZ,Uca as HQ,Zaa as XJ,i8 as v0,j8 as zJ,l$ as SQ,zca as DZ}from"./cli-0.7.2-5qd0bn5g.mjs";import{Dea as PZ,Eea as TJ,Oea as ZZ,Vea as hz}from"./cli-0.7.2-5ca5nqtj.mjs";import{Aga as wZ,Bga as NZ,Nga as Dz,iga as RZ,jga as Rz,vga as KZ}from"./cli-0.7.2-dzt53r0y.mjs";import{$ha as m0,cia as ez}from"./cli-0.7.2-cqqj8v1e.mjs";import{Mia as IQ,Wia as HX}from"./cli-0.7.2-wk3m6ndw.mjs";import{Una as kQ,xoa as BX}from"./cli-0.7.2-5yrman6f.mjs";import{cqa as N0,gqa as L0}from"./cli-0.7.2-5tacs42k.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=jZ){MZ();return}$0=setTimeout(MZ,jZ-J)}function iZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var lZ=L0(()=>{Jz();EZ=N0(S0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=N0(u0(),1),K0=N0(S0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,S=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,w]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:w},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??wz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)i=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==S||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!S&&H0&&X==null&&B(Nz,{count:d,onClick:M}),Z[16]=S,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let I;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)I=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=I;else I=Z[28];let W0,N;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),N=B(Pz,{}),Z[29]=W0,Z[30]=N;else W0=Z[29],N=Z[30];let U;if(Z[31]!==z)U=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,N,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==I||Z[39]!==U||Z[40]!==R)s=$(sZ,{children:[I,U,R]}),Z[38]=I,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$(f0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function wz(){}function Nz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Pz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();p0();Yz();vZ();XJ();CZ();Vz();F0();a0=N0(u0(),1),q0=N0(S0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function wJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,wZ)!=="completed")return!1;return _Z(Z.text,NZ)?.startsWith(NJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(wJ(X)){let W=0;while(z<J.length&&wJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${wZ}>completed</${wZ}><${NZ}>${W} background commands completed</${NZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Dz();Uz();vZ();OZ()});function PJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function DJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(PJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!PJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var UJ=()=>{};function jJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=0;while(Q<J.length&&jJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function jz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=jz(Z),X=new Map;for(let F of J){let P=kZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=kZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let S=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((S)=>q.has(S.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
2
- `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
3
- `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
- `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
- `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
- `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
- `)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
- `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
- `))}return Q.join(`
10
- `)}var yJ="</system-reminder>",_J,kJ;var IZ=L0(()=>{OZ();_J=new Set([IJ,SJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=PZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();p0();F0();hJ=N0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=PZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var fJ=L0(()=>{TJ();p0();F0();$J=N0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(SZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(SZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=iJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:S,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",w=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==w||Z[3]!==d||Z[4]!==Q)D=w&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=w,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==w||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:w?dJ(Q):Q,Z[6]=w,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==w||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||w?[]:ZQ(Q,O),Z[10]=w,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==w||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let I=_||w?pJ:eJ(Q,O);Y0=tJ(Q,K,Y,I,F,O),Z[15]=Y,Z[16]=w,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let I;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(N)=>{let U=N.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];I=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=I}else I=Z[25];h=I}else if(w){let I;if(Z[28]!==Y||Z[29]!==Q)I=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=I;else I=Z[30];h=I}else{let I;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);I=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=I}else I=Z[33];h=I}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==S||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:S}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=S,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let I;if(Z[55]!==i)I=B(e0,{children:i}),Z[55]=i,Z[56]=I;else I=Z[56];return I}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Iz(J.message,J.streamingToolUseIDs),W=Sz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var iJ,lJ,rJ;var oJ=L0(()=>{p0();cJ();OZ();yz();xJ();sJ();fJ();gJ();F0();iJ=N0(u0(),1),lJ=N0(S0(),1);rJ=lJ.memo(_z,Tz)});import{relative as pz}from"path";function qQ(J){return lz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,iz,lz;var YQ=L0(()=>{p0();BQ();zJ();Rz();hz();xz();fz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>fZ(J.memoryFiles).length>0,render:(J)=>{let Z=fZ(J.memoryFiles);return B(f0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?pz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},iz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},lz=[dz,nz,cz,gz,mz,iz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:DZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",P=1,v=Y.map((S)=>B(r0.Fragment,{children:S.render(V)},S.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{p0();BQ();HQ();YQ();F0();GQ=N0(u0(),1),r0=N0(S0(),1),XZ=[]});function wQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let N=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*N)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,S=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((N)=>J.current?.subscribe(N)??sz,[J]);m.useSyncExternalStore(d,()=>{let N=J.current;if(!N)return NaN;let U=N.getScrollTop()+N.getPendingDelta(),R=Math.floor(U/tz);return N.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,w=J.current?.isSticky()??!0;m.useMemo(()=>{let N=new Set(Z),U=!1;for(let R of z.current.keys())if(!N.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!N.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let N=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);N[0]=0;for(let U=0;U<D;U++)N[U+1]=N[U]+(z.current.get(Z[U])??rz);q.current={arr:N,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,k;if(M)[E,k]=M,E=Math.min(E,D),k=Math.min(k,D);else if(_===0||O<0)E=Math.max(0,D-oz),k=D;else{if(w){let V0=_+o0;E=D;while(E>0&&J0-p[E-1]<V0)E--;k=D}else{let V0=S.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,D0=y0>G0?C<0?n0-G0:M0:M0,T0=D0+Math.min(y0,G0),i0=Math.max(0,D0-V0),h0=T0-V0,b0=i0-o0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let l0=_+2*o0,t0=Math.min(D,E+WZ),_0=0;k=E;while(k<t0&&(_0<l0||p[k]<h0+_+o0))_0+=z.current.get(Z[k])??pZ,k++}let N=_+2*o0,U=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??pZ;while(E>U&&R<N)E--,R+=z.current.get(Z[E])??pZ;let s=P.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),l=E<H0?H0:E,h=k>Y0?Y0:k;if(l>h||w)l=E,h=k;if(C>0)h=k;if(h-l>WZ){let N=(p[l]+p[h])/2;if(O-S.current<N)h=l+WZ;else l=h-WZ}let z0=S.current,Q0=p[l],X0=l===0?0:Q0+z0,O0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(w)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let N=Z0.current?.yogaNode;if(N&&N.getComputedWidth()>0)S.current=N.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((N)=>{let U=Y.current.get(N);if(!U)U=(R)=>{if(R)V.current.set(N,R);else{let s=V.current.get(N)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(N)!==A0)z.current.set(N,A0),X.current++}V.current.delete(N)}},Y.current.set(N,U);return U},[]),i=m.useCallback((N)=>{let U=V.current.get(Z[N])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((N)=>V.current.get(Z[N])??null,[Z]),t=m.useCallback((N)=>z.current.get(Z[N]),[Z]),I=m.useCallback((N)=>{let U=q.current;if(N<0||N>=U.n)return;J.current?.scrollTo(U.arr[N]+S.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:I}}var m,rz=3,o0=80,oz=30,tz,pZ=1,WZ=300,qZ=25,sz=()=>{};var NQ=L0(()=>{m=N0(S0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
- `)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let S=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)C=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,w;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)w=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=w;else w=Z[18];let D;if(Z[19]!==_||Z[20]!==w)D=B(DQ.Provider,{value:_,children:w}),Z[19]=_,Z[20]=w,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==S||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==D)p=B(b,{ref:M,flexDirection:"column",backgroundColor:S,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:D}),Z[22]=M,Z[23]=S,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=D,Z[29]=p;else p=Z[29];return p}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:S,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let w=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=wQ(Z,w,Q),[Q0,X0]=D,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return UQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:jQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),I=y.useRef(0),W0=y.useRef(0),N=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+u+1;S?.(U0,j0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){i.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),N.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},m0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++I.current>20){I.current=0;return}N.current(A?-1:1);return}I.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,N.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;S?.(u,e)}N.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let k0=Y(U0[j0]),G=k0.indexOf(L),j=0;while(G>=0)j++,G=k0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,P0=R0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&r){let U0=s.current>=0?s.current:r.getScrollTop(),j0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-U0);if(G<=j0)j0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);S?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await PQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[i0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let l0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(f0,{children:[B(b,{ref:k,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=w[A],u=!!W&&(q?.(H)??!0),n=u&&i0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:l0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((w)=>q.current?.subscribe(w)??YX,[q]);y.useSyncExternalStore(Y,()=>{let w=q.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta();return w.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let w=Q-1;w>=Z;w--){let D=X(w);if(D>=0){if(D<F)break;v=D}P=w}let M=-1,S=null;if(P>0&&!K)for(let w=P-1;w>=0;w--){let D=XX(J[w]);if(D===null)continue;let p=X(w);if(p>=0&&p+1>=F)continue;M=w,S=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let w=C.current==="force";if(C.current="none",!w&&_.current===M)return;if(_.current=M,S===null){V(null);return}let D=S.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let w=W(O.current.idx);if(w)q.current?.scrollToElement(w,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{NQ();p0();JX();LJ();ez();ZX();IZ();EQ();F0();bQ=N0(u0(),1),y=N0(S0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function IX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var gQ,YZ,f,UX,jX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:S=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:w,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=f.useMemo(()=>nZ(J).filter(nQ),[J]),i=f.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=f.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${j.uuid}:${a}`}else if(j?.type==="user"){if(!j.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=f.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let a of B0)if(a.type==="text"){let w0=a.text;if(w0.startsWith("<bash-stdout")||w0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),I=f.useMemo(()=>tQ(T),[T]),W0=f.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!I.has(G.contentBlock.id)),[F,q,I]),N=f.useMemo(()=>W0.flatMap((G)=>{let j=mQ({content:[G.contentBlock]});return j.uuid=TQ(G.contentBlock.id,0),nZ([j])}),[W0]),U=K==="transcript",R=f.useMemo(()=>IQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,A0=U&&!P&&!s,V0=f.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=f.useMemo(()=>{let G=z||c0()?T:iQ(T,{includeSnipped:!0}),j=aQ(G.filter((I0)=>I0.type!=="progress").filter((I0)=>!GZ(I0)).filter((I0)=>lQ(I0,U)),N),B0=[yQ,MX].filter((I0)=>I0!==null),a=[yQ].filter((I0)=>I0!==null),w0=B0.length>0&&!U?_?EX(j,B0):a.length>0?bX(j,a):j:j,C0=A0?w0.slice(-cZ):w0,VZ=A0&&w0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(DJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=j.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,U,N,A0,Z,_]),D0=f.useMemo(()=>{let j=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),T0=f.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),i0=fQ((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=f.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[j,B0]of h0){let a=i0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(j)}return G.size>0?G:null},[i0,h0]),l0=f.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),t0=f.useMemo(()=>{if(!w)return-1;let G=w.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[w,D0]),_0=f.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=f.useState(()=>new Set),A=f.useCallback((G)=>{let j=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(j))a.delete(j);else a.add(j);return a})},[]),x=f.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=f.useRef(M0);u.current=M0;let n=f.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let w0=G.message.content[0];return w0!=null&&xQ(w0)&&w0.type==="advisor_tool_result"&&w0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=l0.size>0,{progress:e}=hQ(),R0=f.useRef(null),P0=DZ().terminalProgressBarEnabled&&!kQ()&&!(jX?.isProactiveActive()??!1);f.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,P0,c]),f.useEffect(()=>{return()=>e(null)},[e]);let E0=f.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,a=G.type==="user"&&B0==="user",w0=G.type==="collapsed_read_search"&&(C||aJ(D0,j,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:w0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:l0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B($Q.Provider,{value:j===_0,children:VZ},C0);if(w&&j===t0)return[B(b,{marginTop:1,children:B(UZ,{title:`${w.count} new ${LZ(w.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},j0=f.useRef(new WeakMap),k0=f.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let w0=G.message.content.find((C0)=>C0.type==="tool_result");if(w0&&"tool_use_id"in w0){let C0=M0.toolUseByToolUseID.get(w0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return j0.current.set(G,a),a},[Z,M0]);return $(f0,{children:[!S&&!(Q0&&Q0[0]>0)&&B(UX,{agentDefinitions:v}),n0&&B(UZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(UZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(uQ.Provider,{value:!0,children:B(CQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):D0.flatMap(U0),C&&!_&&B(kX,{}),i&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=iZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:SQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();p0();wX();AX();FX();OX();AJ();UJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();IZ();NX();PX();lZ();oJ();EQ();DX();CZ();gJ();FQ();vQ();F0();gQ=N0(u0(),1),YZ=N0(S0(),1),f=N0(S0(),1),UX=YZ.memo(function(Z){let Q=gQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(IX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
- export{s0 as re,TX as se,lZ as te,xX as ue,$X as ve,JJ as we,QW as xe,zW as ye,XW as ze,LJ as Ae,g8 as Be,sJ as Ce};
@@ -1,2 +0,0 @@
1
- function i(){}function n(){}
2
- export{i as v,n as w};
@@ -1,2 +0,0 @@
1
- import{gqa as P}from"./cli-0.7.2-5tacs42k.mjs";import{homedir as Q}from"os";import{join as F}from"path";function J(q){return{env:q?.env??process.env,home:q?.homedir??process.env.HOME??Q()}}function k(q){let{env:x,home:B}=J(q);return x.XDG_STATE_HOME??F(B,".local","state")}function w(q){let{env:x,home:B}=J(q);return x.XDG_CACHE_HOME??F(B,".cache")}function H(q){let{env:x,home:B}=J(q);return x.XDG_DATA_HOME??F(B,".local","share")}function g(q){let{home:x}=J(q);return F(x,".local","bin")}var V=()=>{};function W(q){let x=q,B="",C=0,K=10;while(x!==B&&C<K)B=x,x=x.normalize("NFKC"),x=x.replace(/[\p{Cf}\p{Co}\p{Cn}]/gu,""),x=x.replace(/[\u200B-\u200F]/g,"").replace(/[\u202A-\u202E]/g,"").replace(/[\u2066-\u2069]/g,"").replace(/[\uFEFF]/g,"").replace(/[\uE000-\uF8FF]/g,""),C++;if(C>=K)throw Error(`Unicode sanitization reached maximum iterations (${K}) for input: ${q.slice(0,100)}`);return x}function L(q){if(typeof q==="string")return W(q);if(Array.isArray(q))return q.map(L);if(q!==null&&typeof q==="object"){let x={};for(let[B,C]of Object.entries(q))x[L(B)]=L(C);return x}return q}var Y=()=>{};
2
- export{k as qV,w as rV,H as sV,g as tV,V as uV,W as vV,L as wV,Y as xV};
@@ -1,2 +0,0 @@
1
- import{gqa as j}from"./cli-0.7.2-5tacs42k.mjs";var q,v,z;var w=j(()=>{q=["acceptEdits","bypassPermissions","default","dontAsk","plan"],v=[...q,"auto"],z=v});
2
- export{q as lfa,v as mfa,z as nfa,w as ofa};
@@ -1,2 +0,0 @@
1
- import{gqa as K}from"./cli-0.7.2-5tacs42k.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
2
- export{M as dia,N as eia,Q as fia,R as gia,S as hia,L as iia};
@@ -1,2 +0,0 @@
1
- import{Go as Z,Lo as G}from"./cli-0.7.2-520tgkhw.mjs";import{qea as X,yea as R}from"./cli-0.7.2-5qd0bn5g.mjs";import{$ha as U,Eha as v,Fha as B,Jha as A,Nha as C,Rha as M,cia as O}from"./cli-0.7.2-cqqj8v1e.mjs";import{gqa as b}from"./cli-0.7.2-5tacs42k.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
- export{o as nd,c as od,p as pd,d as qd,g as rd,w as sd};
@@ -1,7 +0,0 @@
1
- import{ub as d}from"./cli-0.7.2-aaxbm02p.mjs";import{$U as i,RU as y,SU as U,UU as f,VU as h,WU as c}from"./cli-0.7.2-ze0wyhxh.mjs";import{i2 as O,k2 as b}from"./cli-0.7.2-q2pk22xv.mjs";import{B5 as B,C5 as M}from"./cli-0.7.2-8qd7xft9.mjs";import{$6 as u,U6 as I}from"./cli-0.7.2-8pfcc363.mjs";import{v8 as V,x8 as v}from"./cli-0.7.2-5qd0bn5g.mjs";import{$ha as G,Eha as H,Fha as m,Jha as T,cia as D}from"./cli-0.7.2-cqqj8v1e.mjs";import{Aia as S,Gia as F,zia as q}from"./cli-0.7.2-bttmh4fa.mjs";import{Jpa as s,rpa as p}from"./cli-0.7.2-bmz47g1t.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
2
-
3
- `,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
4
- `)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
5
- `+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
6
- `)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
7
- export{R as lb,k as mb,a as nb,YJ as ob};
@@ -1,2 +0,0 @@
1
- import{Ci as R,Ei as y,Fi as v}from"./cli-0.7.2-40xymk1q.mjs";import{UX as c,UZ as E,pZ as K}from"./cli-0.7.2-xpw13d73.mjs";import{$1 as M,Z1 as O,_1 as N,a2 as U}from"./cli-0.7.2-wmz88sxe.mjs";import{b2 as G}from"./cli-0.7.2-jc7jm1vm.mjs";import{Uca as b,zca as L}from"./cli-0.7.2-5qd0bn5g.mjs";import{Jea as Z,Vea as W}from"./cli-0.7.2-5ca5nqtj.mjs";import{$ga as p}from"./cli-0.7.2-kyd7mrxn.mjs";import{cqa as F,gqa as j}from"./cli-0.7.2-5tacs42k.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
2
- export{f as Dg,r as Eg,n as Fg,l as Gg};