@claudiolabs/claudin 0.6.5 → 0.6.7

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 (892) hide show
  1. package/README.md +56 -25
  2. package/dist/chunks/AgentTool-0.6.7-f7t2mgqb.mjs +1 -0
  3. package/dist/chunks/App-0.6.7-9x70f9jb.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.6.7-2tb75j23.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.6.7-afdtan0w.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.6.7-pyzr75b3.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.6.7-nfncnj0q.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.7-n2e142wm.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.6.7-phc7vznz.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.6.7-s9x3mya9.mjs +7 -0
  11. package/dist/chunks/Doctor-0.6.7-smded214.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-0.6.7-4hy6ry9q.mjs +6 -0
  13. package/dist/chunks/Grove-0.6.7-ahyrvw0t.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.6.7-fcnt914g.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-0.6.7-00bjfj0e.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.6.7-13q0q9de.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.6.7-858rv0qw.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.6.7-dt8tdzek.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.6.7-6v39p38e.mjs +1 -0
  20. package/dist/chunks/REPL-0.6.7-q0nc0w32.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.6.7-pdhahpga.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-0.6.7-m392exrv.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-0.6.7-1dr1gjn2.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.6.7-sv7jdzae.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.6.7-p36an880.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.6.7-aefcv1eq.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.6.7-ff2nyjj7.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.6.7-seknmzsh.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.6.7-0w1yte74.mjs +1 -0
  30. package/dist/chunks/add-dir-0.6.7-85gjr3q5.mjs +1 -0
  31. package/dist/chunks/agents-0.6.7-bwmzpbmy.mjs +110 -0
  32. package/dist/chunks/agents-0.6.7-zctgtzc9.mjs +3 -0
  33. package/dist/chunks/api-0.6.7-mfw9d6jg.mjs +1 -0
  34. package/dist/chunks/asciicast-0.6.7-tecyvajs.mjs +1 -0
  35. package/dist/chunks/assistant-0.6.7-0krnapvp.mjs +1 -0
  36. package/dist/chunks/auth-0.6.7-vsm2s3fs.mjs +1 -0
  37. package/dist/chunks/auth-0.6.7-y4kcahyj.mjs +1 -0
  38. package/dist/chunks/autoMode-0.6.7-ysajwbz7.mjs +48 -0
  39. package/dist/chunks/autoUpdater-0.6.7-ztgvnr84.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-0.6.7-hyrc03zs.mjs +1 -0
  41. package/dist/chunks/branch-0.6.7-hs9qva1m.mjs +4 -0
  42. package/dist/chunks/bridge-0.6.7-6tz3q7eh.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-0.6.7-nb52xna6.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-0.6.7-a4xw7wv8.mjs +1 -0
  45. package/dist/chunks/bridgeMain-0.6.7-tdh5qxzb.mjs +88 -0
  46. package/dist/chunks/bridgePointer-0.6.7-dh27kqnd.mjs +1 -0
  47. package/dist/chunks/btw-0.6.7-7mwpkxc8.mjs +1 -0
  48. package/dist/chunks/buddy-0.6.7-nq3yjbfx.mjs +3 -0
  49. package/dist/chunks/cacache-0.6.7-g9830zbt.mjs +1 -0
  50. package/dist/chunks/cache-probe-0.6.7-f97mkfrz.mjs +21 -0
  51. package/dist/chunks/cacheStats-0.6.7-cajakjmn.mjs +4 -0
  52. package/dist/chunks/caches-0.6.7-j5y9mwvb.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-0.6.7-86f3d3gt.mjs +1 -0
  54. package/dist/chunks/claudemd-0.6.7-bhnp37nv.mjs +1 -0
  55. package/dist/chunks/clear-0.6.7-b2weanr6.mjs +1 -0
  56. package/dist/chunks/clearTerminal-0.6.7-dtmyqs1m.mjs +1 -0
  57. package/dist/chunks/cli-0.6.7-04v8p8ay.mjs +2 -0
  58. package/dist/chunks/cli-0.6.7-09aymh1b.mjs +2 -0
  59. package/dist/chunks/cli-0.6.7-0a04vzzk.mjs +28 -0
  60. package/dist/chunks/cli-0.6.7-0a406bqw.mjs +2 -0
  61. package/dist/chunks/cli-0.6.7-0c5ban8m.mjs +2 -0
  62. package/dist/chunks/cli-0.6.7-0ecsc6v5.mjs +2 -0
  63. package/dist/chunks/cli-0.6.7-0eeyfjk8.mjs +2 -0
  64. package/dist/chunks/cli-0.6.7-0fc4sq47.mjs +42 -0
  65. package/dist/chunks/cli-0.6.7-0ncx2c9t.mjs +2 -0
  66. package/dist/chunks/cli-0.6.7-0qzj0d6r.mjs +2 -0
  67. package/dist/chunks/cli-0.6.7-0t1e9vab.mjs +2 -0
  68. package/dist/chunks/cli-0.6.7-0t5ssfvj.mjs +2 -0
  69. package/dist/chunks/cli-0.6.7-0z5z87v6.mjs +1 -0
  70. package/dist/chunks/cli-0.6.7-105zxdx5.mjs +2 -0
  71. package/dist/chunks/cli-0.6.7-11a89p5q.mjs +2 -0
  72. package/dist/chunks/cli-0.6.7-15mn3n46.mjs +2 -0
  73. package/dist/chunks/cli-0.6.7-17dafwxd.mjs +2 -0
  74. package/dist/chunks/cli-0.6.7-1jmt8r8f.mjs +7 -0
  75. package/dist/chunks/cli-0.6.7-1mvkcg2k.mjs +2 -0
  76. package/dist/chunks/cli-0.6.7-1nxk10ra.mjs +12 -0
  77. package/dist/chunks/cli-0.6.7-1v8p5kj1.mjs +2 -0
  78. package/dist/chunks/cli-0.6.7-1vdk7j2f.mjs +2 -0
  79. package/dist/chunks/cli-0.6.7-1wy6neqr.mjs +2 -0
  80. package/dist/chunks/cli-0.6.7-26ph2hrd.mjs +2 -0
  81. package/dist/chunks/cli-0.6.7-26tkvqk3.mjs +2 -0
  82. package/dist/chunks/cli-0.6.7-29j5a7qt.mjs +2 -0
  83. package/dist/chunks/cli-0.6.7-2kkhf54p.mjs +133 -0
  84. package/dist/chunks/cli-0.6.7-2rppvwcw.mjs +2 -0
  85. package/dist/chunks/cli-0.6.7-2rxv4h2n.mjs +5348 -0
  86. package/dist/chunks/cli-0.6.7-30y87jp9.mjs +3 -0
  87. package/dist/chunks/cli-0.6.7-31vjvqm0.mjs +2 -0
  88. package/dist/chunks/cli-0.6.7-32sp32ph.mjs +2 -0
  89. package/dist/chunks/cli-0.6.7-37a1n221.mjs +2 -0
  90. package/dist/chunks/cli-0.6.7-393mf77x.mjs +2 -0
  91. package/dist/chunks/cli-0.6.7-3anc14y3.mjs +2 -0
  92. package/dist/chunks/cli-0.6.7-3nk6g2dp.mjs +2 -0
  93. package/dist/chunks/cli-0.6.7-3rkngb3p.mjs +2 -0
  94. package/dist/chunks/cli-0.6.7-3w59rctc.mjs +2 -0
  95. package/dist/chunks/cli-0.6.7-3zgmbaw1.mjs +2 -0
  96. package/dist/chunks/cli-0.6.7-417g4eq7.mjs +2 -0
  97. package/dist/chunks/cli-0.6.7-4723xt8g.mjs +4 -0
  98. package/dist/chunks/cli-0.6.7-4qezg54y.mjs +2 -0
  99. package/dist/chunks/cli-0.6.7-4qv89taa.mjs +2 -0
  100. package/dist/chunks/cli-0.6.7-4r8s96as.mjs +18 -0
  101. package/dist/chunks/cli-0.6.7-4rswb0s0.mjs +2 -0
  102. package/dist/chunks/cli-0.6.7-4y6eh566.mjs +2 -0
  103. package/dist/chunks/cli-0.6.7-568qkrtn.mjs +2 -0
  104. package/dist/chunks/cli-0.6.7-5jkermx7.mjs +2 -0
  105. package/dist/chunks/cli-0.6.7-5tksrgt5.mjs +2 -0
  106. package/dist/chunks/cli-0.6.7-5y4c00t6.mjs +2 -0
  107. package/dist/chunks/cli-0.6.7-6ezmhmp0.mjs +67 -0
  108. package/dist/chunks/cli-0.6.7-6fh5e7r0.mjs +2 -0
  109. package/dist/chunks/cli-0.6.7-79a1ryqj.mjs +17 -0
  110. package/dist/chunks/cli-0.6.7-7eze8zyh.mjs +2 -0
  111. package/dist/chunks/cli-0.6.7-7ggj90ge.mjs +26 -0
  112. package/dist/chunks/cli-0.6.7-7hqt2520.mjs +2 -0
  113. package/dist/chunks/cli-0.6.7-7jnmn6s1.mjs +2 -0
  114. package/dist/chunks/cli-0.6.7-7p1zvk1f.mjs +4 -0
  115. package/dist/chunks/cli-0.6.7-7q89ngt8.mjs +4 -0
  116. package/dist/chunks/cli-0.6.7-7wfcpd35.mjs +5 -0
  117. package/dist/chunks/cli-0.6.7-895afk0q.mjs +39 -0
  118. package/dist/chunks/cli-0.6.7-8hg68yde.mjs +3 -0
  119. package/dist/chunks/cli-0.6.7-8npy06pd.mjs +2 -0
  120. package/dist/chunks/cli-0.6.7-8nt66wx8.mjs +2 -0
  121. package/dist/chunks/cli-0.6.7-8rckbxrq.mjs +2 -0
  122. package/dist/chunks/cli-0.6.7-94jxfcfx.mjs +2 -0
  123. package/dist/chunks/cli-0.6.7-986a2c9a.mjs +20 -0
  124. package/dist/chunks/cli-0.6.7-9ewdkgf6.mjs +2 -0
  125. package/dist/chunks/cli-0.6.7-9qjmzyph.mjs +59 -0
  126. package/dist/chunks/cli-0.6.7-9zvbhkwn.mjs +2 -0
  127. package/dist/chunks/cli-0.6.7-a49h84jx.mjs +2 -0
  128. package/dist/chunks/cli-0.6.7-a8d5a7gy.mjs +2 -0
  129. package/dist/chunks/cli-0.6.7-ad305tsz.mjs +2 -0
  130. package/dist/chunks/cli-0.6.7-aj0r6e7f.mjs +2 -0
  131. package/dist/chunks/cli-0.6.7-ajy2kcrw.mjs +4 -0
  132. package/dist/chunks/cli-0.6.7-askr0gdn.mjs +12 -0
  133. package/dist/chunks/cli-0.6.7-axgab18a.mjs +2 -0
  134. package/dist/chunks/cli-0.6.7-b6ssk5st.mjs +50 -0
  135. package/dist/chunks/cli-0.6.7-bf5gjw6d.mjs +4 -0
  136. package/dist/chunks/cli-0.6.7-bgtwgprg.mjs +2 -0
  137. package/dist/chunks/cli-0.6.7-bvke740f.mjs +58 -0
  138. package/dist/chunks/cli-0.6.7-bvsyxh29.mjs +45 -0
  139. package/dist/chunks/cli-0.6.7-c9drqby8.mjs +5 -0
  140. package/dist/chunks/cli-0.6.7-cc1w6ch6.mjs +2 -0
  141. package/dist/chunks/cli-0.6.7-csw6s95q.mjs +2 -0
  142. package/dist/chunks/cli-0.6.7-cykfmytk.mjs +2 -0
  143. package/dist/chunks/cli-0.6.7-d0hce9x9.mjs +2 -0
  144. package/dist/chunks/cli-0.6.7-d513frqa.mjs +2 -0
  145. package/dist/chunks/cli-0.6.7-d6md6s9z.mjs +2 -0
  146. package/dist/chunks/cli-0.6.7-dn51gm8s.mjs +2 -0
  147. package/dist/chunks/cli-0.6.7-dzhzeyee.mjs +2 -0
  148. package/dist/chunks/cli-0.6.7-e96htnt8.mjs +2 -0
  149. package/dist/chunks/cli-0.6.7-egf9dysz.mjs +2 -0
  150. package/dist/chunks/cli-0.6.7-ej85ys91.mjs +133 -0
  151. package/dist/chunks/cli-0.6.7-ery7wb2b.mjs +25 -0
  152. package/dist/chunks/cli-0.6.7-ewn2cwb7.mjs +6 -0
  153. package/dist/chunks/cli-0.6.7-ex9w59mx.mjs +3 -0
  154. package/dist/chunks/cli-0.6.7-fbgdkq7p.mjs +2 -0
  155. package/dist/chunks/cli-0.6.7-fbkbnkmx.mjs +2 -0
  156. package/dist/chunks/cli-0.6.7-g3bdwra6.mjs +12 -0
  157. package/dist/chunks/cli-0.6.7-g4r471w6.mjs +15 -0
  158. package/dist/chunks/cli-0.6.7-ggbx3zye.mjs +21 -0
  159. package/dist/chunks/cli-0.6.7-gj1zv8je.mjs +2 -0
  160. package/dist/chunks/cli-0.6.7-gp1x8mcf.mjs +2 -0
  161. package/dist/chunks/cli-0.6.7-hcp3t5gk.mjs +2 -0
  162. package/dist/chunks/cli-0.6.7-hd512c6x.mjs +2 -0
  163. package/dist/chunks/cli-0.6.7-hsf1v92p.mjs +2 -0
  164. package/dist/chunks/cli-0.6.7-hsxghzzr.mjs +2 -0
  165. package/dist/chunks/cli-0.6.7-hvjb13p8.mjs +2 -0
  166. package/dist/chunks/cli-0.6.7-hxpbsv1t.mjs +2 -0
  167. package/dist/chunks/cli-0.6.7-jayzyra3.mjs +2 -0
  168. package/dist/chunks/cli-0.6.7-jry3hr0z.mjs +18 -0
  169. package/dist/chunks/cli-0.6.7-jt8cfe25.mjs +3 -0
  170. package/dist/chunks/cli-0.6.7-jvyry09r.mjs +3 -0
  171. package/dist/chunks/cli-0.6.7-k0h6t7d8.mjs +3 -0
  172. package/dist/chunks/cli-0.6.7-k69edthm.mjs +2 -0
  173. package/dist/chunks/cli-0.6.7-k7qq705k.mjs +2 -0
  174. package/dist/chunks/cli-0.6.7-kfm63wm2.mjs +17 -0
  175. package/dist/chunks/cli-0.6.7-m5a4md2p.mjs +24 -0
  176. package/dist/chunks/cli-0.6.7-m7f7sbcz.mjs +3 -0
  177. package/dist/chunks/cli-0.6.7-m9gs7avb.mjs +2 -0
  178. package/dist/chunks/cli-0.6.7-me667czz.mjs +2 -0
  179. package/dist/chunks/cli-0.6.7-mfw4bdkw.mjs +2 -0
  180. package/dist/chunks/cli-0.6.7-mgzf6br3.mjs +2 -0
  181. package/dist/chunks/cli-0.6.7-mh4wva6p.mjs +2 -0
  182. package/dist/chunks/cli-0.6.7-mjkd8p19.mjs +16 -0
  183. package/dist/chunks/cli-0.6.7-mq2xzatd.mjs +34 -0
  184. package/dist/chunks/cli-0.6.7-mr3rwnv4.mjs +2 -0
  185. package/dist/chunks/cli-0.6.7-msab4rsa.mjs +3 -0
  186. package/dist/chunks/cli-0.6.7-mxbbt73y.mjs +2 -0
  187. package/dist/chunks/cli-0.6.7-n4hcg1jw.mjs +2 -0
  188. package/dist/chunks/cli-0.6.7-n7v99j1c.mjs +3 -0
  189. package/dist/chunks/cli-0.6.7-n9b6fykd.mjs +2 -0
  190. package/dist/chunks/cli-0.6.7-ndz1ybhe.mjs +2 -0
  191. package/dist/chunks/cli-0.6.7-nembqgq6.mjs +4 -0
  192. package/dist/chunks/cli-0.6.7-njtz9caz.mjs +2 -0
  193. package/dist/chunks/cli-0.6.7-nkk7dy60.mjs +3 -0
  194. package/dist/chunks/cli-0.6.7-nkngqbzm.mjs +2 -0
  195. package/dist/chunks/cli-0.6.7-nmasp64q.mjs +2 -0
  196. package/dist/chunks/cli-0.6.7-nsaek892.mjs +2 -0
  197. package/dist/chunks/cli-0.6.7-nyj8vj8s.mjs +2 -0
  198. package/dist/chunks/cli-0.6.7-p01n2g5q.mjs +3 -0
  199. package/dist/chunks/cli-0.6.7-p0s9xa7d.mjs +2 -0
  200. package/dist/chunks/cli-0.6.7-p140ghs7.mjs +4 -0
  201. package/dist/chunks/cli-0.6.7-p1s9dq5f.mjs +2 -0
  202. package/dist/chunks/cli-0.6.7-p76h2hj4.mjs +193 -0
  203. package/dist/chunks/cli-0.6.7-p77b3p80.mjs +4 -0
  204. package/dist/chunks/cli-0.6.7-p8qqm0e2.mjs +10 -0
  205. package/dist/chunks/cli-0.6.7-pacmjx4t.mjs +6 -0
  206. package/dist/chunks/cli-0.6.7-pd4qacrw.mjs +2 -0
  207. package/dist/chunks/cli-0.6.7-pt6c37tf.mjs +2 -0
  208. package/dist/chunks/cli-0.6.7-pz0hvq11.mjs +2 -0
  209. package/dist/chunks/cli-0.6.7-q2qk5c16.mjs +2 -0
  210. package/dist/chunks/cli-0.6.7-q7rhxc3k.mjs +2 -0
  211. package/dist/chunks/cli-0.6.7-qcc8znjg.mjs +2 -0
  212. package/dist/chunks/cli-0.6.7-qkzax44g.mjs +2 -0
  213. package/dist/chunks/cli-0.6.7-qnpad07x.mjs +15 -0
  214. package/dist/chunks/cli-0.6.7-qwv7z40j.mjs +2 -0
  215. package/dist/chunks/cli-0.6.7-qz4f20t8.mjs +9 -0
  216. package/dist/chunks/cli-0.6.7-r2phypw4.mjs +2 -0
  217. package/dist/chunks/cli-0.6.7-r4494gs0.mjs +2 -0
  218. package/dist/chunks/cli-0.6.7-r4njgjve.mjs +2 -0
  219. package/dist/chunks/cli-0.6.7-r57fq6gw.mjs +4 -0
  220. package/dist/chunks/cli-0.6.7-rcx8mb9z.mjs +2 -0
  221. package/dist/chunks/cli-0.6.7-rgfh878z.mjs +2 -0
  222. package/dist/chunks/cli-0.6.7-rp0ejp3a.mjs +2 -0
  223. package/dist/chunks/cli-0.6.7-rq1v6xnn.mjs +2 -0
  224. package/dist/chunks/cli-0.6.7-rqfxfpg7.mjs +2 -0
  225. package/dist/chunks/cli-0.6.7-sdxzxe1y.mjs +2 -0
  226. package/dist/chunks/cli-0.6.7-sea2kbnt.mjs +2 -0
  227. package/dist/chunks/cli-0.6.7-sfc53wbe.mjs +2 -0
  228. package/dist/chunks/cli-0.6.7-sfvrze2k.mjs +2 -0
  229. package/dist/chunks/cli-0.6.7-sh9fbs9v.mjs +2 -0
  230. package/dist/chunks/cli-0.6.7-sw46gwfw.mjs +2 -0
  231. package/dist/chunks/cli-0.6.7-sx1q6ybw.mjs +2 -0
  232. package/dist/chunks/cli-0.6.7-t4vdc40t.mjs +2 -0
  233. package/dist/chunks/cli-0.6.7-tb1cvasf.mjs +5 -0
  234. package/dist/chunks/cli-0.6.7-tg6w7ex7.mjs +8 -0
  235. package/dist/chunks/cli-0.6.7-tnrt8ht0.mjs +2 -0
  236. package/dist/chunks/cli-0.6.7-tqfm4g33.mjs +2 -0
  237. package/dist/chunks/cli-0.6.7-tthw17vc.mjs +6 -0
  238. package/dist/chunks/cli-0.6.7-v1emd8z7.mjs +4 -0
  239. package/dist/chunks/cli-0.6.7-v65b4qmr.mjs +2 -0
  240. package/dist/chunks/cli-0.6.7-v82zs0dw.mjs +6 -0
  241. package/dist/chunks/cli-0.6.7-vd2t62t5.mjs +2 -0
  242. package/dist/chunks/cli-0.6.7-vdks0afp.mjs +3 -0
  243. package/dist/chunks/cli-0.6.7-vs95ynh5.mjs +2 -0
  244. package/dist/chunks/cli-0.6.7-vy64g49j.mjs +2 -0
  245. package/dist/chunks/cli-0.6.7-w2amr6nt.mjs +2 -0
  246. package/dist/chunks/cli-0.6.7-wbqq7cmg.mjs +15 -0
  247. package/dist/chunks/cli-0.6.7-wjg0q7hk.mjs +2 -0
  248. package/dist/chunks/cli-0.6.7-wyped9p6.mjs +2 -0
  249. package/dist/chunks/cli-0.6.7-xjbwt2hg.mjs +2 -0
  250. package/dist/chunks/cli-0.6.7-xzf3g8pg.mjs +3 -0
  251. package/dist/chunks/cli-0.6.7-y6pqw2vj.mjs +2 -0
  252. package/dist/chunks/cli-0.6.7-ybk07j40.mjs +2 -0
  253. package/dist/chunks/cli-0.6.7-z26mhn5a.mjs +2 -0
  254. package/dist/chunks/cli-0.6.7-z4dw5tyz.mjs +2 -0
  255. package/dist/chunks/cli-0.6.7-z7jett9s.mjs +2 -0
  256. package/dist/chunks/cli-0.6.7-zwd8kz5t.mjs +24 -0
  257. package/dist/chunks/cli-0.6.7-zwf5adf9.mjs +2 -0
  258. package/dist/chunks/client-0.6.7-445v9987.mjs +1 -0
  259. package/dist/chunks/color-0.6.7-856m55kg.mjs +1 -0
  260. package/dist/chunks/compact-0.6.7-xkjxsjky.mjs +3 -0
  261. package/dist/chunks/config-0.6.7-8cp9wg00.mjs +1 -0
  262. package/dist/chunks/config-0.6.7-h357gwre.mjs +1 -0
  263. package/dist/chunks/constants-0.6.7-jz2rzgah.mjs +1 -0
  264. package/dist/chunks/context-0.6.7-52mqtjt5.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-0.6.7-0vn31bty.mjs +1 -0
  266. package/dist/chunks/conversation-0.6.7-6rb0jxt5.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-0.6.7-6szcxcqp.mjs +1 -0
  268. package/dist/chunks/copy-0.6.7-kt6m78c9.mjs +9 -0
  269. package/dist/chunks/cost-0.6.7-mcmacwts.mjs +1 -0
  270. package/dist/chunks/createSSHSession-0.6.7-2bxjzphp.mjs +1 -0
  271. package/dist/chunks/createSession-0.6.7-h53s0r94.mjs +1 -0
  272. package/dist/chunks/debug-0.6.7-40mxhr43.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-0.6.7-swjqrq2d.mjs +1367 -0
  274. package/dist/chunks/desktop-0.6.7-m8hceses.mjs +1 -0
  275. package/dist/chunks/detectRepository-0.6.7-37snr69q.mjs +1 -0
  276. package/dist/chunks/detection-0.6.7-796dd7my.mjs +1 -0
  277. package/dist/chunks/diff-0.6.7-jvhy5bfv.mjs +1 -0
  278. package/dist/chunks/doctor-0.6.7-69xecv72.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-0.6.7-86wn5fas.mjs +1 -0
  280. package/dist/chunks/earlyInput-0.6.7-j5kqcad7.mjs +1 -0
  281. package/dist/chunks/effort-0.6.7-pzsgdygp.mjs +10 -0
  282. package/dist/chunks/envLessBridgeConfig-0.6.7-8ev8zrnr.mjs +1 -0
  283. package/dist/chunks/envUtils-0.6.7-t2mfcf3k.mjs +1 -0
  284. package/dist/chunks/environmentSelection-0.6.7-qsjyn0qh.mjs +1 -0
  285. package/dist/chunks/environments-0.6.7-s37ppzq2.mjs +1 -0
  286. package/dist/chunks/errors-0.6.7-ewn9ej98.mjs +1 -0
  287. package/dist/chunks/exampleCommands-0.6.7-ha5gh86w.mjs +1 -0
  288. package/dist/chunks/exit-0.6.7-ke7w1zfb.mjs +1 -0
  289. package/dist/chunks/explorer-0.6.7-mwasq7vb.mjs +1 -0
  290. package/dist/chunks/export-0.6.7-nxr4yk69.mjs +2 -0
  291. package/dist/chunks/extra-usage-0.6.7-4y4y16s7.mjs +1 -0
  292. package/dist/chunks/extra-usage-noninteractive-0.6.7-39bqy32f.mjs +1 -0
  293. package/dist/chunks/fast-0.6.7-kq9cp91g.mjs +1 -0
  294. package/dist/chunks/feedback-0.6.7-negh6v8m.mjs +14 -0
  295. package/dist/chunks/firstPartyEventLogger-0.6.7-tx7c7x8t.mjs +1 -0
  296. package/dist/chunks/git-0.6.7-2vwe8z3v.mjs +1 -0
  297. package/dist/chunks/githubModelsCredentials-0.6.7-33qbe5yn.mjs +1 -0
  298. package/dist/chunks/goal-0.6.7-h6jz54qb.mjs +4 -0
  299. package/dist/chunks/grove-0.6.7-54ezkxs0.mjs +1 -0
  300. package/dist/chunks/growthbook-0.6.7-dtryf1q9.mjs +1 -0
  301. package/dist/chunks/headless-0.6.7-35yksmzv.mjs +2 -0
  302. package/dist/chunks/heapdump-0.6.7-k6xhk8rq.mjs +6 -0
  303. package/dist/chunks/help-0.6.7-xe78z9ep.mjs +1 -0
  304. package/dist/chunks/hookChains-0.6.7-cr0c8y5v.mjs +3 -0
  305. package/dist/chunks/hooks-0.6.7-3dzcec4j.mjs +79 -0
  306. package/dist/chunks/hooks-0.6.7-8d0h5mh8.mjs +1 -0
  307. package/dist/chunks/ide-0.6.7-5yx4zawt.mjs +3 -0
  308. package/dist/chunks/image-processor-napi-0.6.7-58mhvg4s.mjs +1 -0
  309. package/dist/chunks/inboundAttachments-0.6.7-9afh5jdh.mjs +1 -0
  310. package/dist/chunks/index-0.6.7-0p9m5cfc.mjs +1 -0
  311. package/dist/chunks/index-0.6.7-1ngjds1q.mjs +30 -0
  312. package/dist/chunks/index-0.6.7-269433vt.mjs +2 -0
  313. package/dist/chunks/index-0.6.7-299hd0kq.mjs +1 -0
  314. package/dist/chunks/index-0.6.7-2p1qzv7b.mjs +9 -0
  315. package/dist/chunks/index-0.6.7-7fw7s1w6.mjs +1 -0
  316. package/dist/chunks/index-0.6.7-938hete3.mjs +1 -0
  317. package/dist/chunks/index-0.6.7-9qxbggwj.mjs +1 -0
  318. package/dist/chunks/index-0.6.7-adw6e99t.mjs +1 -0
  319. package/dist/chunks/index-0.6.7-da5n32m6.mjs +1 -0
  320. package/dist/chunks/index-0.6.7-ebdnq1xs.mjs +1 -0
  321. package/dist/chunks/index-0.6.7-fewh0t9g.mjs +1 -0
  322. package/dist/chunks/index-0.6.7-jyep217e.mjs +1 -0
  323. package/dist/chunks/index-0.6.7-mmh99nq4.mjs +1 -0
  324. package/dist/chunks/index-0.6.7-p9vm0q7s.mjs +2 -0
  325. package/dist/chunks/index-0.6.7-pspakten.mjs +1 -0
  326. package/dist/chunks/index-0.6.7-qy50jasm.mjs +5 -0
  327. package/dist/chunks/index-0.6.7-r7sewgza.mjs +1 -0
  328. package/dist/chunks/index-0.6.7-tet87444.mjs +1 -0
  329. package/dist/chunks/index-0.6.7-vwv8f9ey.mjs +1 -0
  330. package/dist/chunks/index-0.6.7-xhxjqdft.mjs +1 -0
  331. package/dist/chunks/index-0.6.7-yc13tnk8.mjs +1 -0
  332. package/dist/chunks/index-0.6.7-zm9ed9xd.mjs +9 -0
  333. package/dist/chunks/init-0.6.7-9mxee8s9.mjs +1 -0
  334. package/dist/chunks/initReplBridge-0.6.7-2v1w7wq6.mjs +1 -0
  335. package/dist/chunks/ink-0.6.7-24swqw8m.mjs +1 -0
  336. package/dist/chunks/insights-0.6.7-wf368crb.mjs +870 -0
  337. package/dist/chunks/install-0.6.7-a9dezzjy.mjs +1 -0
  338. package/dist/chunks/install-github-app-0.6.7-wr0r1fb5.mjs +149 -0
  339. package/dist/chunks/install-slack-app-0.6.7-ftc8w786.mjs +1 -0
  340. package/dist/chunks/instrumentation-0.6.7-y1xv08zm.mjs +1 -0
  341. package/dist/chunks/interactiveHelpers-0.6.7-kg2yqwhs.mjs +1 -0
  342. package/dist/chunks/keybindings-0.6.7-xa10wdn0.mjs +2 -0
  343. package/dist/chunks/knowledge-0.6.7-p8ys3wf6.mjs +2 -0
  344. package/dist/chunks/latestVersionCache-0.6.7-7ss3jynk.mjs +1 -0
  345. package/dist/chunks/loadAgentsDir-0.6.7-g16npyc7.mjs +1 -0
  346. package/dist/chunks/loadPluginHooks-0.6.7-d1p7v7wd.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-0.6.7-qy17rc72.mjs +1 -0
  348. package/dist/chunks/log-0.6.7-a9pyn4zr.mjs +1 -0
  349. package/dist/chunks/main-0.6.7-epme77xk.mjs +1 -0
  350. package/dist/chunks/managedEnv-0.6.7-1h0tpwq1.mjs +1 -0
  351. package/dist/chunks/mcp-0.6.7-1pq6d47c.mjs +17 -0
  352. package/dist/chunks/mcp-0.6.7-krdmdzbj.mjs +4 -0
  353. package/dist/chunks/mcp-0.6.7-sh0wnst3.mjs +1 -0
  354. package/dist/chunks/mcpb-0.6.7-wethrsb6.mjs +1 -0
  355. package/dist/chunks/memory-0.6.7-wwbx8j9h.mjs +3 -0
  356. package/dist/chunks/model-0.6.7-bnf162h5.mjs +2 -0
  357. package/dist/chunks/model-0.6.7-ta2zt9yw.mjs +1 -0
  358. package/dist/chunks/node-0.6.7-9wgtbtkn.mjs +12 -0
  359. package/dist/chunks/oauth-0.6.7-ecry38es.mjs +1 -0
  360. package/dist/chunks/openaiShim-0.6.7-6haddefk.mjs +14 -0
  361. package/dist/chunks/output-style-0.6.7-heg5p49f.mjs +1 -0
  362. package/dist/chunks/package-FMOR3ELU-0.6.7-g0c2811q.mjs +1 -0
  363. package/dist/chunks/parseConnectUrl-0.6.7-rmje9xpc.mjs +1 -0
  364. package/dist/chunks/parser-0.6.7-dwxttek7.mjs +1 -0
  365. package/dist/chunks/passes-0.6.7-6md5xpaz.mjs +1 -0
  366. package/dist/chunks/permissions-0.6.7-25nzz9y0.mjs +3 -0
  367. package/dist/chunks/permissions-0.6.7-bm6zx02e.mjs +1 -0
  368. package/dist/chunks/plan-0.6.7-9pxaje2z.mjs +1 -0
  369. package/dist/chunks/plist-0.6.7-vcn459ke.mjs +1 -0
  370. package/dist/chunks/plugin-0.6.7-a5erdt59.mjs +29 -0
  371. package/dist/chunks/pluginStartupCheck-0.6.7-4v446m9d.mjs +1 -0
  372. package/dist/chunks/plugins-0.6.7-g2r5qgvr.mjs +9 -0
  373. package/dist/chunks/preActionHook-0.6.7-m3b66d2g.mjs +2 -0
  374. package/dist/chunks/print-0.6.7-qwsqdjpa.mjs +57 -0
  375. package/dist/chunks/privacy-settings-0.6.7-f7mdzrj9.mjs +1 -0
  376. package/dist/chunks/process-0.6.7-mwpj2ag5.mjs +1 -0
  377. package/dist/chunks/processBashCommand-0.6.7-zmq7s8bg.mjs +1 -0
  378. package/dist/chunks/processSlashCommand-0.6.7-aeq77f0r.mjs +9 -0
  379. package/dist/chunks/prompt-0.6.7-bjk6r969.mjs +1 -0
  380. package/dist/chunks/prompt-0.6.7-cqwn4ebm.mjs +1 -0
  381. package/dist/chunks/prompts-0.6.7-sx1ddpn3.mjs +1 -0
  382. package/dist/chunks/protocolHandler-0.6.7-4htrgj10.mjs +13 -0
  383. package/dist/chunks/provider-0.6.7-cf13j8jp.mjs +2 -0
  384. package/dist/chunks/providerProfiles-0.6.7-s1vbbbf8.mjs +1 -0
  385. package/dist/chunks/providerValidation-0.6.7-d5tsv9wn.mjs +6 -0
  386. package/dist/chunks/rate-limit-options-0.6.7-xxb91evy.mjs +1 -0
  387. package/dist/chunks/registerSubcommands-0.6.7-qmmn95tv.mjs +34 -0
  388. package/dist/chunks/registry-0.6.7-vnf153w2.mjs +1 -0
  389. package/dist/chunks/release-notes-0.6.7-140nchxs.mjs +5 -0
  390. package/dist/chunks/reload-plugins-0.6.7-2zjnq8rk.mjs +2 -0
  391. package/dist/chunks/remote-env-0.6.7-dmn903f9.mjs +1 -0
  392. package/dist/chunks/remoteBridgeCore-0.6.7-vjavg15v.mjs +1 -0
  393. package/dist/chunks/remoteSession-0.6.7-j6t9wnvq.mjs +1 -0
  394. package/dist/chunks/rename-0.6.7-9hky49hm.mjs +1 -0
  395. package/dist/chunks/replBridgeHandle-0.6.7-fg56fjhe.mjs +1 -0
  396. package/dist/chunks/replLauncher-0.6.7-135zqkvm.mjs +1 -0
  397. package/dist/chunks/resume-0.6.7-ag66nvjc.mjs +2 -0
  398. package/dist/chunks/rewind-0.6.7-pbgnt37r.mjs +1 -0
  399. package/dist/chunks/rootOptions-0.6.7-dhbhchhw.mjs +1 -0
  400. package/dist/chunks/sandbox-adapter-0.6.7-wav9ed7k.mjs +1 -0
  401. package/dist/chunks/sandbox-toggle-0.6.7-xvjvjn90.mjs +1 -0
  402. package/dist/chunks/session-0.6.7-dv8ptwrb.mjs +2 -0
  403. package/dist/chunks/sessionDiscovery-0.6.7-k5zpyw84.mjs +1 -0
  404. package/dist/chunks/sessionFileAccessHooks-0.6.7-rrcrsek8.mjs +1 -0
  405. package/dist/chunks/sessionStorage-0.6.7-fx0mbvg6.mjs +1 -0
  406. package/dist/chunks/settings-0.6.7-nwqqfy0f.mjs +1 -0
  407. package/dist/chunks/setup-0.6.7-1w2gtqvq.mjs +5 -0
  408. package/dist/chunks/sinks-0.6.7-rh7wgd1s.mjs +1 -0
  409. package/dist/chunks/skills-0.6.7-p7nm0dqx.mjs +1 -0
  410. package/dist/chunks/startupProfiler-0.6.7-0sgmtd5m.mjs +1 -0
  411. package/dist/chunks/startupUpdateCheck-0.6.7-pe8vnbmy.mjs +1 -0
  412. package/dist/chunks/state-0.6.7-7zgmm7bx.mjs +1 -0
  413. package/dist/chunks/stats-0.6.7-qwjhmd0m.mjs +6 -0
  414. package/dist/chunks/status-0.6.7-4dybregh.mjs +1 -0
  415. package/dist/chunks/stickers-0.6.7-me3v3dmh.mjs +1 -0
  416. package/dist/chunks/subprocessEnv-0.6.7-qnce4qzp.mjs +1 -0
  417. package/dist/chunks/tasks-0.6.7-sbx5a37t.mjs +1 -0
  418. package/dist/chunks/teamHelpers-0.6.7-pwbpqycb.mjs +1 -0
  419. package/dist/chunks/teammateModeSnapshot-0.6.7-qef93h04.mjs +1 -0
  420. package/dist/chunks/teleport-0.6.7-rtj4ts5d.mjs +1 -0
  421. package/dist/chunks/terminalSetup-0.6.7-tka4bjp2.mjs +1 -0
  422. package/dist/chunks/theme-0.6.7-x8qqpmm6.mjs +1 -0
  423. package/dist/chunks/thinkback-0.6.7-w6wj1na3.mjs +1 -0
  424. package/dist/chunks/thinkback-play-0.6.7-m433zrvk.mjs +1 -0
  425. package/dist/chunks/toolPool-0.6.7-5x90r1f5.mjs +1 -0
  426. package/dist/chunks/toolSearch-0.6.7-ev30cxmd.mjs +1 -0
  427. package/dist/chunks/tools-0.6.7-w23c68c1.mjs +1 -0
  428. package/dist/chunks/trustedDevice-0.6.7-yp482r12.mjs +1 -0
  429. package/dist/chunks/turndown.cjs-0.6.7-6qtfbqqk.mjs +69 -0
  430. package/dist/chunks/types-0.6.7-q8m8v654.mjs +1 -0
  431. package/dist/chunks/ultrareviewCommand-0.6.7-8azkbc2y.mjs +4 -0
  432. package/dist/chunks/update-0.6.7-gwfz54bh.mjs +86 -0
  433. package/dist/chunks/upgrade-0.6.7-3mraezx0.mjs +1 -0
  434. package/dist/chunks/upload-0.6.7-xxfcdyx1.mjs +7 -0
  435. package/dist/chunks/upstreamproxy-0.6.7-5w2ftmfc.mjs +14 -0
  436. package/dist/chunks/url-handler-napi-0.6.7-3jfvm422.mjs +1 -0
  437. package/dist/chunks/usage-0.6.7-pkmqvqgq.mjs +1 -0
  438. package/dist/chunks/util-0.6.7-3z6r92wt.mjs +1 -0
  439. package/dist/chunks/utils-0.6.7-sdkkjj30.mjs +1 -0
  440. package/dist/chunks/vim-0.6.7-3rsss4ez.mjs +1 -0
  441. package/dist/chunks/watcher-0.6.7-kh7rkhx8.mjs +1 -0
  442. package/dist/chunks/wiki-0.6.7-jrn54nk5.mjs +132 -0
  443. package/dist/chunks/worktree-0.6.7-214cy52d.mjs +1 -0
  444. package/dist/chunks/worktreeModeEnabled-0.6.7-3z7e768n.mjs +1 -0
  445. package/dist/chunks/wrapper-0.6.7-h3kjv9nf.mjs +7 -0
  446. package/dist/claudin-vscode.vsix +0 -0
  447. package/dist/cli.mjs +2 -2
  448. package/package.json +14 -14
  449. package/dist/chunks/AgentTool-0.6.5-9pre88qb.mjs +0 -1
  450. package/dist/chunks/App-0.6.5-syfacmqb.mjs +0 -1
  451. package/dist/chunks/ApproveApiKey-0.6.5-2rrtj277.mjs +0 -1
  452. package/dist/chunks/AssistantSessionChooser-0.6.5-8deawh7z.mjs +0 -1
  453. package/dist/chunks/AutoModeOptInDialog-0.6.5-8e3v3cgx.mjs +0 -1
  454. package/dist/chunks/BypassPermissionsModeDialog-0.6.5-3pjygvs2.mjs +0 -1
  455. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.5-s2js1wag.mjs +0 -1
  456. package/dist/chunks/ConsoleOAuthFlow-0.6.5-36z08571.mjs +0 -1
  457. package/dist/chunks/DiffDialog-0.6.5-g256mdz0.mjs +0 -3
  458. package/dist/chunks/Doctor-0.6.5-vty8ec8n.mjs +0 -1
  459. package/dist/chunks/Grove-0.6.5-p00f24rh.mjs +0 -1
  460. package/dist/chunks/ITermBackend-0.6.5-53j2wh9w.mjs +0 -1
  461. package/dist/chunks/InvalidConfigDialog-0.6.5-gtpj7hn7.mjs +0 -1
  462. package/dist/chunks/InvalidSettingsDialog-0.6.5-3d3v9kn1.mjs +0 -1
  463. package/dist/chunks/MigrationDialog-0.6.5-mnbsk1bz.mjs +0 -1
  464. package/dist/chunks/Onboarding-0.6.5-9r9rkgj0.mjs +0 -1
  465. package/dist/chunks/ProviderManager-0.6.5-yb8w75gs.mjs +0 -1
  466. package/dist/chunks/REPL-0.6.5-wqyg8nfv.mjs +0 -1
  467. package/dist/chunks/ResumeConversation-0.6.5-0d1tkqfd.mjs +0 -1
  468. package/dist/chunks/SnapshotUpdateDialog-0.6.5-n5pa0d9r.mjs +0 -1
  469. package/dist/chunks/TeleportProgress-0.6.5-t863eyfb.mjs +0 -1
  470. package/dist/chunks/TeleportRepoMismatchDialog-0.6.5-11ykz8de.mjs +0 -1
  471. package/dist/chunks/TeleportResumeWrapper-0.6.5-dn6dvzvv.mjs +0 -1
  472. package/dist/chunks/TmuxBackend-0.6.5-yd46t6dv.mjs +0 -9
  473. package/dist/chunks/ToolSearchTool-0.6.5-6kssfnkp.mjs +0 -1
  474. package/dist/chunks/TrustDialog-0.6.5-mdbqw8dc.mjs +0 -1
  475. package/dist/chunks/activeProvider-0.6.5-wpe1bnhr.mjs +0 -1
  476. package/dist/chunks/add-dir-0.6.5-zphaxr62.mjs +0 -1
  477. package/dist/chunks/agents-0.6.5-9rhdp3vp.mjs +0 -110
  478. package/dist/chunks/agents-0.6.5-krnahvn4.mjs +0 -3
  479. package/dist/chunks/api-0.6.5-vfnxfssn.mjs +0 -1
  480. package/dist/chunks/asciicast-0.6.5-hr205c81.mjs +0 -1
  481. package/dist/chunks/assistant-0.6.5-nfbsgssx.mjs +0 -1
  482. package/dist/chunks/auth-0.6.5-9baxvtxg.mjs +0 -1
  483. package/dist/chunks/auth-0.6.5-cq4yrhn2.mjs +0 -1
  484. package/dist/chunks/autoMode-0.6.5-kzhwpmfg.mjs +0 -48
  485. package/dist/chunks/autoUpdater-0.6.5-bkzpv0pd.mjs +0 -1
  486. package/dist/chunks/backgroundHousekeeping-0.6.5-2mkev4qh.mjs +0 -1
  487. package/dist/chunks/branch-0.6.5-8vtt7esr.mjs +0 -4
  488. package/dist/chunks/bridge-0.6.5-9c1v2e52.mjs +0 -2
  489. package/dist/chunks/bridgeConfig-0.6.5-w77y3p5n.mjs +0 -1
  490. package/dist/chunks/bridgeEnabled-0.6.5-k6hvamvf.mjs +0 -1
  491. package/dist/chunks/bridgeMain-0.6.5-pea2hztr.mjs +0 -88
  492. package/dist/chunks/bridgePointer-0.6.5-87t92nmh.mjs +0 -1
  493. package/dist/chunks/btw-0.6.5-xhyyarh0.mjs +0 -1
  494. package/dist/chunks/buddy-0.6.5-g9csmkdw.mjs +0 -3
  495. package/dist/chunks/cacache-0.6.5-kzjmbjve.mjs +0 -1
  496. package/dist/chunks/cache-probe-0.6.5-c2br8x9m.mjs +0 -21
  497. package/dist/chunks/cacheStats-0.6.5-kbdcab9q.mjs +0 -4
  498. package/dist/chunks/caches-0.6.5-nwzvsny2.mjs +0 -1
  499. package/dist/chunks/claudeDesktop-0.6.5-51tkmdr1.mjs +0 -1
  500. package/dist/chunks/claudemd-0.6.5-212twher.mjs +0 -1
  501. package/dist/chunks/clear-0.6.5-yg0wcbw4.mjs +0 -1
  502. package/dist/chunks/clearTerminal-0.6.5-0c24f1yy.mjs +0 -1
  503. package/dist/chunks/cli-0.6.5-00kbsd9f.mjs +0 -2
  504. package/dist/chunks/cli-0.6.5-0356tc6y.mjs +0 -2
  505. package/dist/chunks/cli-0.6.5-06d8zge2.mjs +0 -2
  506. package/dist/chunks/cli-0.6.5-0j7fzwkx.mjs +0 -2
  507. package/dist/chunks/cli-0.6.5-0pt0eq6a.mjs +0 -3
  508. package/dist/chunks/cli-0.6.5-13g3042y.mjs +0 -12
  509. package/dist/chunks/cli-0.6.5-192npvx3.mjs +0 -2
  510. package/dist/chunks/cli-0.6.5-19mg5dfx.mjs +0 -6
  511. package/dist/chunks/cli-0.6.5-1bz46ywp.mjs +0 -2
  512. package/dist/chunks/cli-0.6.5-1fqhk4mv.mjs +0 -9
  513. package/dist/chunks/cli-0.6.5-1k5wyv3x.mjs +0 -2
  514. package/dist/chunks/cli-0.6.5-1m46f13z.mjs +0 -2
  515. package/dist/chunks/cli-0.6.5-1r4j3nda.mjs +0 -58
  516. package/dist/chunks/cli-0.6.5-2dq7pa8p.mjs +0 -34
  517. package/dist/chunks/cli-0.6.5-2s673b9m.mjs +0 -2
  518. package/dist/chunks/cli-0.6.5-38gqwg2m.mjs +0 -2
  519. package/dist/chunks/cli-0.6.5-3hemanw8.mjs +0 -15
  520. package/dist/chunks/cli-0.6.5-3p5vg2yx.mjs +0 -2
  521. package/dist/chunks/cli-0.6.5-3ybp7ww7.mjs +0 -6
  522. package/dist/chunks/cli-0.6.5-406dcpxw.mjs +0 -2
  523. package/dist/chunks/cli-0.6.5-41tc50h9.mjs +0 -2
  524. package/dist/chunks/cli-0.6.5-477kp2fg.mjs +0 -2
  525. package/dist/chunks/cli-0.6.5-47s6s6ew.mjs +0 -2
  526. package/dist/chunks/cli-0.6.5-4k3kk3pr.mjs +0 -17
  527. package/dist/chunks/cli-0.6.5-4whh4m3h.mjs +0 -2
  528. package/dist/chunks/cli-0.6.5-54w728vm.mjs +0 -2
  529. package/dist/chunks/cli-0.6.5-57jmtd2z.mjs +0 -2
  530. package/dist/chunks/cli-0.6.5-58ck75qn.mjs +0 -2
  531. package/dist/chunks/cli-0.6.5-5py2stcw.mjs +0 -2
  532. package/dist/chunks/cli-0.6.5-5rpfanmw.mjs +0 -3
  533. package/dist/chunks/cli-0.6.5-5t6d3asz.mjs +0 -5347
  534. package/dist/chunks/cli-0.6.5-5wr197ms.mjs +0 -25
  535. package/dist/chunks/cli-0.6.5-5ymbb1v4.mjs +0 -2
  536. package/dist/chunks/cli-0.6.5-60hfev34.mjs +0 -2
  537. package/dist/chunks/cli-0.6.5-61tnv5c7.mjs +0 -2
  538. package/dist/chunks/cli-0.6.5-6829jyhh.mjs +0 -9
  539. package/dist/chunks/cli-0.6.5-69f24h9w.mjs +0 -8
  540. package/dist/chunks/cli-0.6.5-6ab8b50h.mjs +0 -2
  541. package/dist/chunks/cli-0.6.5-6e6pv00e.mjs +0 -2
  542. package/dist/chunks/cli-0.6.5-6ev1k0qv.mjs +0 -133
  543. package/dist/chunks/cli-0.6.5-6q2d7p49.mjs +0 -2
  544. package/dist/chunks/cli-0.6.5-6qvtcs5y.mjs +0 -2
  545. package/dist/chunks/cli-0.6.5-6wpz6mks.mjs +0 -2
  546. package/dist/chunks/cli-0.6.5-6x91apzw.mjs +0 -2
  547. package/dist/chunks/cli-0.6.5-72v6gjqf.mjs +0 -2
  548. package/dist/chunks/cli-0.6.5-7am1hb1v.mjs +0 -2
  549. package/dist/chunks/cli-0.6.5-7tzhpeyn.mjs +0 -2
  550. package/dist/chunks/cli-0.6.5-7vnp5x55.mjs +0 -15
  551. package/dist/chunks/cli-0.6.5-81fzcvec.mjs +0 -4
  552. package/dist/chunks/cli-0.6.5-87qz97g2.mjs +0 -2
  553. package/dist/chunks/cli-0.6.5-8hsxq1p3.mjs +0 -2
  554. package/dist/chunks/cli-0.6.5-8zsy7h21.mjs +0 -2
  555. package/dist/chunks/cli-0.6.5-95a4872h.mjs +0 -2
  556. package/dist/chunks/cli-0.6.5-983fq4aj.mjs +0 -7
  557. package/dist/chunks/cli-0.6.5-987r1x1q.mjs +0 -2
  558. package/dist/chunks/cli-0.6.5-9cs6r2j7.mjs +0 -2
  559. package/dist/chunks/cli-0.6.5-9d9gmzev.mjs +0 -2
  560. package/dist/chunks/cli-0.6.5-9g1pn7jy.mjs +0 -2
  561. package/dist/chunks/cli-0.6.5-9g7p6wdj.mjs +0 -5
  562. package/dist/chunks/cli-0.6.5-9hp0d08c.mjs +0 -2
  563. package/dist/chunks/cli-0.6.5-a0ke5n08.mjs +0 -2
  564. package/dist/chunks/cli-0.6.5-a1csk51d.mjs +0 -3
  565. package/dist/chunks/cli-0.6.5-a23zsgke.mjs +0 -3
  566. package/dist/chunks/cli-0.6.5-a8za8sjg.mjs +0 -2
  567. package/dist/chunks/cli-0.6.5-akw85jbw.mjs +0 -2
  568. package/dist/chunks/cli-0.6.5-amtt1tbm.mjs +0 -39
  569. package/dist/chunks/cli-0.6.5-awhfeefv.mjs +0 -5
  570. package/dist/chunks/cli-0.6.5-azwzatpd.mjs +0 -20
  571. package/dist/chunks/cli-0.6.5-b7x38zg8.mjs +0 -2
  572. package/dist/chunks/cli-0.6.5-bm7v9qp0.mjs +0 -2
  573. package/dist/chunks/cli-0.6.5-brk2sfdw.mjs +0 -2
  574. package/dist/chunks/cli-0.6.5-bzz83kdv.mjs +0 -2
  575. package/dist/chunks/cli-0.6.5-c0nyamvd.mjs +0 -17
  576. package/dist/chunks/cli-0.6.5-c4v4vgw4.mjs +0 -2
  577. package/dist/chunks/cli-0.6.5-c7yx03g7.mjs +0 -16
  578. package/dist/chunks/cli-0.6.5-ce51qb6k.mjs +0 -4
  579. package/dist/chunks/cli-0.6.5-ckc9hr8m.mjs +0 -2
  580. package/dist/chunks/cli-0.6.5-cwaewkgb.mjs +0 -2
  581. package/dist/chunks/cli-0.6.5-czc9nvxh.mjs +0 -133
  582. package/dist/chunks/cli-0.6.5-d7nvtk63.mjs +0 -2
  583. package/dist/chunks/cli-0.6.5-dcr7rpqe.mjs +0 -2
  584. package/dist/chunks/cli-0.6.5-dm2rwpsb.mjs +0 -2
  585. package/dist/chunks/cli-0.6.5-e47bwdgy.mjs +0 -2
  586. package/dist/chunks/cli-0.6.5-e5pzxdbx.mjs +0 -2
  587. package/dist/chunks/cli-0.6.5-e7k35s7j.mjs +0 -2
  588. package/dist/chunks/cli-0.6.5-e9t7harq.mjs +0 -2
  589. package/dist/chunks/cli-0.6.5-ef17hb7w.mjs +0 -2
  590. package/dist/chunks/cli-0.6.5-ef6b5qvc.mjs +0 -193
  591. package/dist/chunks/cli-0.6.5-efh1xzne.mjs +0 -24
  592. package/dist/chunks/cli-0.6.5-efsxkpxr.mjs +0 -2
  593. package/dist/chunks/cli-0.6.5-ej3jf59h.mjs +0 -2
  594. package/dist/chunks/cli-0.6.5-env00jtm.mjs +0 -1
  595. package/dist/chunks/cli-0.6.5-eq4cscgw.mjs +0 -2
  596. package/dist/chunks/cli-0.6.5-eqk6q7pf.mjs +0 -2
  597. package/dist/chunks/cli-0.6.5-ev41fmky.mjs +0 -2
  598. package/dist/chunks/cli-0.6.5-f34ttkbg.mjs +0 -2
  599. package/dist/chunks/cli-0.6.5-f4x1fb90.mjs +0 -4
  600. package/dist/chunks/cli-0.6.5-f71ncwzk.mjs +0 -59
  601. package/dist/chunks/cli-0.6.5-fg2a16s4.mjs +0 -2
  602. package/dist/chunks/cli-0.6.5-g43wnabd.mjs +0 -2
  603. package/dist/chunks/cli-0.6.5-g7d8vsb2.mjs +0 -2
  604. package/dist/chunks/cli-0.6.5-g8qt9gm7.mjs +0 -2
  605. package/dist/chunks/cli-0.6.5-gjzdpmdx.mjs +0 -2
  606. package/dist/chunks/cli-0.6.5-gk89f6jk.mjs +0 -4
  607. package/dist/chunks/cli-0.6.5-gw6ygdnq.mjs +0 -3
  608. package/dist/chunks/cli-0.6.5-h08jc3cj.mjs +0 -18
  609. package/dist/chunks/cli-0.6.5-h0xnjwg1.mjs +0 -2
  610. package/dist/chunks/cli-0.6.5-h3cch37f.mjs +0 -2
  611. package/dist/chunks/cli-0.6.5-h5x9r5ap.mjs +0 -50
  612. package/dist/chunks/cli-0.6.5-j45setk1.mjs +0 -2
  613. package/dist/chunks/cli-0.6.5-j5v5jpq8.mjs +0 -2
  614. package/dist/chunks/cli-0.6.5-je97ssab.mjs +0 -2
  615. package/dist/chunks/cli-0.6.5-jqbkgjhs.mjs +0 -2
  616. package/dist/chunks/cli-0.6.5-jrnx4znh.mjs +0 -2
  617. package/dist/chunks/cli-0.6.5-jygg6ynx.mjs +0 -2
  618. package/dist/chunks/cli-0.6.5-k15yzap9.mjs +0 -2
  619. package/dist/chunks/cli-0.6.5-k74repdw.mjs +0 -2
  620. package/dist/chunks/cli-0.6.5-k8vb0qqx.mjs +0 -2
  621. package/dist/chunks/cli-0.6.5-k8vgyecf.mjs +0 -2
  622. package/dist/chunks/cli-0.6.5-kac7d6qe.mjs +0 -2
  623. package/dist/chunks/cli-0.6.5-kd1sw5qm.mjs +0 -2
  624. package/dist/chunks/cli-0.6.5-ke48d24y.mjs +0 -2
  625. package/dist/chunks/cli-0.6.5-khsn0wkk.mjs +0 -21
  626. package/dist/chunks/cli-0.6.5-kjntnfas.mjs +0 -2
  627. package/dist/chunks/cli-0.6.5-kqhpzqdw.mjs +0 -67
  628. package/dist/chunks/cli-0.6.5-kr0q8v74.mjs +0 -2
  629. package/dist/chunks/cli-0.6.5-kxwg80ye.mjs +0 -42
  630. package/dist/chunks/cli-0.6.5-kyp268ew.mjs +0 -2
  631. package/dist/chunks/cli-0.6.5-kzr5p1mv.mjs +0 -2
  632. package/dist/chunks/cli-0.6.5-kztnt6aq.mjs +0 -2
  633. package/dist/chunks/cli-0.6.5-m2619f84.mjs +0 -2
  634. package/dist/chunks/cli-0.6.5-mgv2cvps.mjs +0 -45
  635. package/dist/chunks/cli-0.6.5-mpdvzrnw.mjs +0 -2
  636. package/dist/chunks/cli-0.6.5-mtx91sgr.mjs +0 -2
  637. package/dist/chunks/cli-0.6.5-n4hnag3x.mjs +0 -2
  638. package/dist/chunks/cli-0.6.5-n64fe6ey.mjs +0 -2
  639. package/dist/chunks/cli-0.6.5-nd6kqcck.mjs +0 -2
  640. package/dist/chunks/cli-0.6.5-nngqh0bh.mjs +0 -2
  641. package/dist/chunks/cli-0.6.5-p6n42hmh.mjs +0 -4
  642. package/dist/chunks/cli-0.6.5-pa3ap7rs.mjs +0 -2
  643. package/dist/chunks/cli-0.6.5-pbahk0n4.mjs +0 -12
  644. package/dist/chunks/cli-0.6.5-pbyhms5s.mjs +0 -2
  645. package/dist/chunks/cli-0.6.5-pgs0eeqg.mjs +0 -2
  646. package/dist/chunks/cli-0.6.5-pky7r4pf.mjs +0 -2
  647. package/dist/chunks/cli-0.6.5-pv1b8wyy.mjs +0 -2
  648. package/dist/chunks/cli-0.6.5-pw1077hd.mjs +0 -2
  649. package/dist/chunks/cli-0.6.5-pz5add8h.mjs +0 -4
  650. package/dist/chunks/cli-0.6.5-q027r0rf.mjs +0 -2
  651. package/dist/chunks/cli-0.6.5-q1qpax7b.mjs +0 -2
  652. package/dist/chunks/cli-0.6.5-q2z0n0me.mjs +0 -2
  653. package/dist/chunks/cli-0.6.5-q4gh8d4w.mjs +0 -6
  654. package/dist/chunks/cli-0.6.5-q67zwknt.mjs +0 -4
  655. package/dist/chunks/cli-0.6.5-qhq9tmd4.mjs +0 -24
  656. package/dist/chunks/cli-0.6.5-qx67z0cv.mjs +0 -2
  657. package/dist/chunks/cli-0.6.5-r06ahe39.mjs +0 -3
  658. package/dist/chunks/cli-0.6.5-r2khv6re.mjs +0 -2
  659. package/dist/chunks/cli-0.6.5-ras9cma3.mjs +0 -2
  660. package/dist/chunks/cli-0.6.5-rkjw25m5.mjs +0 -2
  661. package/dist/chunks/cli-0.6.5-rrteyxna.mjs +0 -5
  662. package/dist/chunks/cli-0.6.5-rsve86mh.mjs +0 -12
  663. package/dist/chunks/cli-0.6.5-rvnz8f4b.mjs +0 -3
  664. package/dist/chunks/cli-0.6.5-ry2zfh45.mjs +0 -2
  665. package/dist/chunks/cli-0.6.5-s1ahtmc1.mjs +0 -2
  666. package/dist/chunks/cli-0.6.5-s42kf4d5.mjs +0 -2
  667. package/dist/chunks/cli-0.6.5-s580r0vs.mjs +0 -2
  668. package/dist/chunks/cli-0.6.5-sph3w6xt.mjs +0 -2
  669. package/dist/chunks/cli-0.6.5-svr5tx29.mjs +0 -2
  670. package/dist/chunks/cli-0.6.5-sz8mbg6v.mjs +0 -2
  671. package/dist/chunks/cli-0.6.5-t0x65qv4.mjs +0 -26
  672. package/dist/chunks/cli-0.6.5-t4tz7xht.mjs +0 -18
  673. package/dist/chunks/cli-0.6.5-th48yhz2.mjs +0 -2
  674. package/dist/chunks/cli-0.6.5-thfwpyjp.mjs +0 -2
  675. package/dist/chunks/cli-0.6.5-tj3hcx9x.mjs +0 -2
  676. package/dist/chunks/cli-0.6.5-tqwbfn5c.mjs +0 -2
  677. package/dist/chunks/cli-0.6.5-ts0kvt5k.mjs +0 -2
  678. package/dist/chunks/cli-0.6.5-vbw9z7ya.mjs +0 -2
  679. package/dist/chunks/cli-0.6.5-vj647gqr.mjs +0 -2
  680. package/dist/chunks/cli-0.6.5-vjydf7v2.mjs +0 -2
  681. package/dist/chunks/cli-0.6.5-vn8pa80z.mjs +0 -3
  682. package/dist/chunks/cli-0.6.5-vpebat6v.mjs +0 -4
  683. package/dist/chunks/cli-0.6.5-vqb4jtcr.mjs +0 -2
  684. package/dist/chunks/cli-0.6.5-vsmwyh7p.mjs +0 -2
  685. package/dist/chunks/cli-0.6.5-vywqm5j0.mjs +0 -2
  686. package/dist/chunks/cli-0.6.5-w2qf3sbz.mjs +0 -2
  687. package/dist/chunks/cli-0.6.5-wa6b2ksg.mjs +0 -2
  688. package/dist/chunks/cli-0.6.5-wgdp3ytt.mjs +0 -15
  689. package/dist/chunks/cli-0.6.5-xbz59an6.mjs +0 -2
  690. package/dist/chunks/cli-0.6.5-xngsek99.mjs +0 -3
  691. package/dist/chunks/cli-0.6.5-xwvfjaga.mjs +0 -2
  692. package/dist/chunks/cli-0.6.5-xxnhfq1f.mjs +0 -3
  693. package/dist/chunks/cli-0.6.5-xxtrec34.mjs +0 -2
  694. package/dist/chunks/cli-0.6.5-y4kbaj8m.mjs +0 -3
  695. package/dist/chunks/cli-0.6.5-ybxktrwn.mjs +0 -4
  696. package/dist/chunks/cli-0.6.5-ynxewk0a.mjs +0 -18
  697. package/dist/chunks/cli-0.6.5-yv4805v6.mjs +0 -2
  698. package/dist/chunks/cli-0.6.5-ywh9eaz9.mjs +0 -3
  699. package/dist/chunks/cli-0.6.5-yy3mtt7p.mjs +0 -4
  700. package/dist/chunks/cli-0.6.5-z5qqy4bb.mjs +0 -10
  701. package/dist/chunks/cli-0.6.5-z64827fd.mjs +0 -2
  702. package/dist/chunks/cli-0.6.5-zxppzj42.mjs +0 -3
  703. package/dist/chunks/client-0.6.5-kcsx56gb.mjs +0 -1
  704. package/dist/chunks/color-0.6.5-m4adc5zy.mjs +0 -1
  705. package/dist/chunks/compact-0.6.5-pp3jftxy.mjs +0 -3
  706. package/dist/chunks/config-0.6.5-4t1bbgpf.mjs +0 -1
  707. package/dist/chunks/config-0.6.5-8j3ajra5.mjs +0 -1
  708. package/dist/chunks/constants-0.6.5-z1rfnbw0.mjs +0 -1
  709. package/dist/chunks/context-0.6.5-k4dkxskt.mjs +0 -1
  710. package/dist/chunks/context-noninteractive-0.6.5-t2s33qfv.mjs +0 -1
  711. package/dist/chunks/conversation-0.6.5-wtjv42fh.mjs +0 -1
  712. package/dist/chunks/copilotHeaders-0.6.5-t5d64yyd.mjs +0 -1
  713. package/dist/chunks/copy-0.6.5-r2cah677.mjs +0 -9
  714. package/dist/chunks/cost-0.6.5-8bs4d6y0.mjs +0 -1
  715. package/dist/chunks/createSSHSession-0.6.5-7p69k83d.mjs +0 -1
  716. package/dist/chunks/createSession-0.6.5-fwtmdngf.mjs +0 -1
  717. package/dist/chunks/debug-0.6.5-xmxftwgk.mjs +0 -1
  718. package/dist/chunks/defaultActionDeps-0.6.5-z6w9jmje.mjs +0 -1367
  719. package/dist/chunks/desktop-0.6.5-fargeve3.mjs +0 -1
  720. package/dist/chunks/detectRepository-0.6.5-ymk4cd49.mjs +0 -1
  721. package/dist/chunks/detection-0.6.5-9v4p8jdz.mjs +0 -1
  722. package/dist/chunks/diff-0.6.5-8ja76cbj.mjs +0 -1
  723. package/dist/chunks/doctor-0.6.5-j9ztya6c.mjs +0 -1
  724. package/dist/chunks/doctorDiagnostic-0.6.5-4rk9v7gn.mjs +0 -1
  725. package/dist/chunks/earlyInput-0.6.5-jnt6pqdj.mjs +0 -1
  726. package/dist/chunks/effort-0.6.5-wn6gayah.mjs +0 -10
  727. package/dist/chunks/envLessBridgeConfig-0.6.5-eptez4tg.mjs +0 -1
  728. package/dist/chunks/envUtils-0.6.5-62qkktte.mjs +0 -1
  729. package/dist/chunks/environmentSelection-0.6.5-zdqp06ex.mjs +0 -1
  730. package/dist/chunks/environments-0.6.5-4cxm9f2v.mjs +0 -1
  731. package/dist/chunks/errors-0.6.5-zrzdygzb.mjs +0 -1
  732. package/dist/chunks/exampleCommands-0.6.5-c4p6gs14.mjs +0 -1
  733. package/dist/chunks/exit-0.6.5-491d2dm3.mjs +0 -1
  734. package/dist/chunks/export-0.6.5-ydgbaqvw.mjs +0 -2
  735. package/dist/chunks/extra-usage-0.6.5-qc1chr9f.mjs +0 -1
  736. package/dist/chunks/extra-usage-noninteractive-0.6.5-g2ratb24.mjs +0 -1
  737. package/dist/chunks/fast-0.6.5-19egbvsn.mjs +0 -1
  738. package/dist/chunks/feedback-0.6.5-r15hzy5x.mjs +0 -14
  739. package/dist/chunks/firstPartyEventLogger-0.6.5-h0wam92d.mjs +0 -1
  740. package/dist/chunks/git-0.6.5-kd4a5hgs.mjs +0 -1
  741. package/dist/chunks/githubModelsCredentials-0.6.5-ahxqf63c.mjs +0 -1
  742. package/dist/chunks/goal-0.6.5-kyahd6wn.mjs +0 -4
  743. package/dist/chunks/grove-0.6.5-qjgh7ss3.mjs +0 -1
  744. package/dist/chunks/growthbook-0.6.5-ax1nfvk4.mjs +0 -1
  745. package/dist/chunks/headless-0.6.5-4pg9fsvq.mjs +0 -2
  746. package/dist/chunks/heapdump-0.6.5-9k0vppqs.mjs +0 -6
  747. package/dist/chunks/help-0.6.5-tfhm2beq.mjs +0 -1
  748. package/dist/chunks/hookChains-0.6.5-6szjehhz.mjs +0 -3
  749. package/dist/chunks/hooks-0.6.5-dgpkkjn0.mjs +0 -79
  750. package/dist/chunks/hooks-0.6.5-w5dctm3q.mjs +0 -1
  751. package/dist/chunks/ide-0.6.5-13et7be7.mjs +0 -3
  752. package/dist/chunks/image-processor-napi-0.6.5-hnw96fqh.mjs +0 -1
  753. package/dist/chunks/inboundAttachments-0.6.5-qc951hng.mjs +0 -1
  754. package/dist/chunks/index-0.6.5-01x1ejhn.mjs +0 -1
  755. package/dist/chunks/index-0.6.5-0abf9jmk.mjs +0 -1
  756. package/dist/chunks/index-0.6.5-1mp331dd.mjs +0 -1
  757. package/dist/chunks/index-0.6.5-1sg6s6z6.mjs +0 -1
  758. package/dist/chunks/index-0.6.5-4q6jjbs7.mjs +0 -1
  759. package/dist/chunks/index-0.6.5-6sk15ws5.mjs +0 -2
  760. package/dist/chunks/index-0.6.5-6t864t2c.mjs +0 -1
  761. package/dist/chunks/index-0.6.5-6xqpvv54.mjs +0 -30
  762. package/dist/chunks/index-0.6.5-7zhnqzn2.mjs +0 -1
  763. package/dist/chunks/index-0.6.5-89hxhv95.mjs +0 -1
  764. package/dist/chunks/index-0.6.5-aty810n8.mjs +0 -1
  765. package/dist/chunks/index-0.6.5-c2hwywv3.mjs +0 -1
  766. package/dist/chunks/index-0.6.5-e2wq7gh6.mjs +0 -2
  767. package/dist/chunks/index-0.6.5-g0kwgaqr.mjs +0 -17
  768. package/dist/chunks/index-0.6.5-gtcspa71.mjs +0 -1
  769. package/dist/chunks/index-0.6.5-h3efeppv.mjs +0 -1
  770. package/dist/chunks/index-0.6.5-m5ejvtqa.mjs +0 -1
  771. package/dist/chunks/index-0.6.5-mh7r1b3g.mjs +0 -1
  772. package/dist/chunks/index-0.6.5-pvve2ng4.mjs +0 -5
  773. package/dist/chunks/index-0.6.5-snpzxxv3.mjs +0 -9
  774. package/dist/chunks/index-0.6.5-tfw7v414.mjs +0 -9
  775. package/dist/chunks/index-0.6.5-wjkwk8e7.mjs +0 -1
  776. package/dist/chunks/index-0.6.5-z62wqvcx.mjs +0 -1
  777. package/dist/chunks/init-0.6.5-zhc6fyd5.mjs +0 -1
  778. package/dist/chunks/initReplBridge-0.6.5-7r1y5662.mjs +0 -1
  779. package/dist/chunks/ink-0.6.5-tndp68zg.mjs +0 -1
  780. package/dist/chunks/insights-0.6.5-vqzkktqr.mjs +0 -870
  781. package/dist/chunks/install-0.6.5-5gr23h3m.mjs +0 -1
  782. package/dist/chunks/install-github-app-0.6.5-tng076rr.mjs +0 -149
  783. package/dist/chunks/install-slack-app-0.6.5-gsz9yrym.mjs +0 -1
  784. package/dist/chunks/instrumentation-0.6.5-nqsng4g6.mjs +0 -1
  785. package/dist/chunks/interactiveHelpers-0.6.5-k1pvqxme.mjs +0 -1
  786. package/dist/chunks/keybindings-0.6.5-xerpw7ac.mjs +0 -2
  787. package/dist/chunks/knowledge-0.6.5-3cqswtp3.mjs +0 -2
  788. package/dist/chunks/latestVersionCache-0.6.5-mvrgq9dd.mjs +0 -1
  789. package/dist/chunks/loadAgentsDir-0.6.5-h16ggtfs.mjs +0 -1
  790. package/dist/chunks/loadPluginHooks-0.6.5-35e6kcw6.mjs +0 -1
  791. package/dist/chunks/loadPluginHooks-0.6.5-qm874zd2.mjs +0 -1
  792. package/dist/chunks/log-0.6.5-xge4vs13.mjs +0 -1
  793. package/dist/chunks/main-0.6.5-4pf8xcyc.mjs +0 -1
  794. package/dist/chunks/managedEnv-0.6.5-qbgyznrt.mjs +0 -1
  795. package/dist/chunks/mcp-0.6.5-293k7n7h.mjs +0 -4
  796. package/dist/chunks/mcp-0.6.5-45d2qxwd.mjs +0 -17
  797. package/dist/chunks/mcp-0.6.5-b5jvd286.mjs +0 -1
  798. package/dist/chunks/mcpb-0.6.5-e68tqw35.mjs +0 -1
  799. package/dist/chunks/memory-0.6.5-9htftc81.mjs +0 -3
  800. package/dist/chunks/model-0.6.5-rpyjsh6m.mjs +0 -1
  801. package/dist/chunks/model-0.6.5-zsk9vwg7.mjs +0 -2
  802. package/dist/chunks/node-0.6.5-j42ec4dm.mjs +0 -12
  803. package/dist/chunks/oauth-0.6.5-d8r75abq.mjs +0 -1
  804. package/dist/chunks/openaiShim-0.6.5-deev7qr4.mjs +0 -14
  805. package/dist/chunks/output-style-0.6.5-t4my27zb.mjs +0 -1
  806. package/dist/chunks/package-D6422PQU-0.6.5-a34phgmb.mjs +0 -1
  807. package/dist/chunks/parseConnectUrl-0.6.5-3rw1krw2.mjs +0 -1
  808. package/dist/chunks/parser-0.6.5-hnbj9e8f.mjs +0 -1
  809. package/dist/chunks/passes-0.6.5-9x43pms7.mjs +0 -1
  810. package/dist/chunks/permissions-0.6.5-aymv501j.mjs +0 -1
  811. package/dist/chunks/permissions-0.6.5-y4jnw514.mjs +0 -3
  812. package/dist/chunks/plan-0.6.5-kct7xqkt.mjs +0 -1
  813. package/dist/chunks/plist-0.6.5-gp660say.mjs +0 -1
  814. package/dist/chunks/plugin-0.6.5-5vnph48t.mjs +0 -29
  815. package/dist/chunks/pluginStartupCheck-0.6.5-y74n8rfx.mjs +0 -1
  816. package/dist/chunks/plugins-0.6.5-y0xna858.mjs +0 -9
  817. package/dist/chunks/preActionHook-0.6.5-gd8pge33.mjs +0 -2
  818. package/dist/chunks/print-0.6.5-zr884wv0.mjs +0 -57
  819. package/dist/chunks/privacy-settings-0.6.5-gm8tkeqk.mjs +0 -1
  820. package/dist/chunks/process-0.6.5-ha5587zb.mjs +0 -1
  821. package/dist/chunks/processBashCommand-0.6.5-qpanbrjt.mjs +0 -1
  822. package/dist/chunks/processSlashCommand-0.6.5-0zzej132.mjs +0 -9
  823. package/dist/chunks/prompt-0.6.5-n2e16857.mjs +0 -1
  824. package/dist/chunks/prompt-0.6.5-yd9wwvye.mjs +0 -1
  825. package/dist/chunks/prompts-0.6.5-4h181zjj.mjs +0 -1
  826. package/dist/chunks/protocolHandler-0.6.5-btkqsev6.mjs +0 -13
  827. package/dist/chunks/provider-0.6.5-pk6rtf1a.mjs +0 -2
  828. package/dist/chunks/providerProfiles-0.6.5-spn4hk2w.mjs +0 -1
  829. package/dist/chunks/providerValidation-0.6.5-j9fqm33r.mjs +0 -6
  830. package/dist/chunks/rate-limit-options-0.6.5-n0s4jxw7.mjs +0 -1
  831. package/dist/chunks/registerSubcommands-0.6.5-s6pemg0a.mjs +0 -34
  832. package/dist/chunks/registry-0.6.5-q9cda2p7.mjs +0 -1
  833. package/dist/chunks/release-notes-0.6.5-5s8sv8ea.mjs +0 -5
  834. package/dist/chunks/reload-plugins-0.6.5-bqh5fz13.mjs +0 -2
  835. package/dist/chunks/remote-env-0.6.5-29f08tqs.mjs +0 -1
  836. package/dist/chunks/remoteBridgeCore-0.6.5-gk9afz22.mjs +0 -1
  837. package/dist/chunks/remoteSession-0.6.5-w7r3dh6h.mjs +0 -1
  838. package/dist/chunks/rename-0.6.5-es4wyt7z.mjs +0 -1
  839. package/dist/chunks/replBridgeHandle-0.6.5-66va2rkv.mjs +0 -1
  840. package/dist/chunks/replLauncher-0.6.5-xzbbew8q.mjs +0 -1
  841. package/dist/chunks/resume-0.6.5-q2e001ra.mjs +0 -2
  842. package/dist/chunks/rewind-0.6.5-hhxvb1pk.mjs +0 -1
  843. package/dist/chunks/rootOptions-0.6.5-smyb5d6s.mjs +0 -1
  844. package/dist/chunks/sandbox-adapter-0.6.5-6zvjjrgg.mjs +0 -1
  845. package/dist/chunks/sandbox-toggle-0.6.5-ch59ryyz.mjs +0 -1
  846. package/dist/chunks/session-0.6.5-22r80wyd.mjs +0 -2
  847. package/dist/chunks/sessionDiscovery-0.6.5-aae5t467.mjs +0 -1
  848. package/dist/chunks/sessionFileAccessHooks-0.6.5-a6xg367a.mjs +0 -1
  849. package/dist/chunks/sessionStorage-0.6.5-dqg82tdb.mjs +0 -1
  850. package/dist/chunks/settings-0.6.5-egjxpxrx.mjs +0 -1
  851. package/dist/chunks/setup-0.6.5-ks0cjhc0.mjs +0 -5
  852. package/dist/chunks/sinks-0.6.5-vnqdp1xs.mjs +0 -1
  853. package/dist/chunks/skills-0.6.5-fhq4v7kx.mjs +0 -1
  854. package/dist/chunks/startupProfiler-0.6.5-qg0j96r8.mjs +0 -1
  855. package/dist/chunks/startupUpdateCheck-0.6.5-kgegmr3s.mjs +0 -1
  856. package/dist/chunks/state-0.6.5-s7hqk377.mjs +0 -1
  857. package/dist/chunks/stats-0.6.5-1c35kfn8.mjs +0 -6
  858. package/dist/chunks/status-0.6.5-wxfn3y7k.mjs +0 -1
  859. package/dist/chunks/stickers-0.6.5-vr2yr1fh.mjs +0 -1
  860. package/dist/chunks/subprocessEnv-0.6.5-p4nz5egm.mjs +0 -1
  861. package/dist/chunks/tasks-0.6.5-jq5x8fny.mjs +0 -1
  862. package/dist/chunks/teamHelpers-0.6.5-s5tew7t1.mjs +0 -1
  863. package/dist/chunks/teammateModeSnapshot-0.6.5-0yh7b47q.mjs +0 -1
  864. package/dist/chunks/teleport-0.6.5-hmv7mh01.mjs +0 -1
  865. package/dist/chunks/terminalSetup-0.6.5-k9d4e82r.mjs +0 -1
  866. package/dist/chunks/theme-0.6.5-24hr0s0e.mjs +0 -1
  867. package/dist/chunks/thinkback-0.6.5-6997cmgj.mjs +0 -1
  868. package/dist/chunks/thinkback-play-0.6.5-5bm6dv3e.mjs +0 -1
  869. package/dist/chunks/toolPool-0.6.5-599y15ba.mjs +0 -1
  870. package/dist/chunks/toolSearch-0.6.5-acm72rsk.mjs +0 -1
  871. package/dist/chunks/tools-0.6.5-kydccz7r.mjs +0 -1
  872. package/dist/chunks/trustedDevice-0.6.5-44vjv9at.mjs +0 -1
  873. package/dist/chunks/turndown.cjs-0.6.5-s2n7faa4.mjs +0 -69
  874. package/dist/chunks/types-0.6.5-h60ghfcx.mjs +0 -1
  875. package/dist/chunks/ultrareviewCommand-0.6.5-vhpd8cxc.mjs +0 -4
  876. package/dist/chunks/update-0.6.5-j61jnpbt.mjs +0 -86
  877. package/dist/chunks/upgrade-0.6.5-yg323wxz.mjs +0 -1
  878. package/dist/chunks/upload-0.6.5-5tsm3bt7.mjs +0 -7
  879. package/dist/chunks/upstreamproxy-0.6.5-0ayrwt4t.mjs +0 -14
  880. package/dist/chunks/url-handler-napi-0.6.5-6sb73p95.mjs +0 -1
  881. package/dist/chunks/usage-0.6.5-0tjr5c54.mjs +0 -1
  882. package/dist/chunks/util-0.6.5-xcfvn255.mjs +0 -1
  883. package/dist/chunks/utils-0.6.5-gjqewwe3.mjs +0 -1
  884. package/dist/chunks/vim-0.6.5-hmp35ayy.mjs +0 -1
  885. package/dist/chunks/watcher-0.6.5-jra6eh4m.mjs +0 -1
  886. package/dist/chunks/wiki-0.6.5-0k1cftcn.mjs +0 -132
  887. package/dist/chunks/worktree-0.6.5-a5vvycs0.mjs +0 -1
  888. package/dist/chunks/worktreeModeEnabled-0.6.5-rva8222w.mjs +0 -1
  889. package/dist/chunks/wrapper-0.6.5-0bxnwc77.mjs +0 -7
  890. /package/dist/chunks/{cli-0.6.5-pynms6t8.mjs → cli-0.6.7-790sqdfy.mjs} +0 -0
  891. /package/dist/chunks/{cli-0.6.5-dy5v4gms.mjs → cli-0.6.7-nzdwcqxv.mjs} +0 -0
  892. /package/dist/chunks/{cli-0.6.5-pev4540w.mjs → cli-0.6.7-pgcg3w1c.mjs} +0 -0
@@ -1,3 +0,0 @@
1
- import{qg as RY,rg as BQ}from"./cli-0.6.5-nd6kqcck.mjs";import{sg as kq,ug as Mq,vg as WX}from"./cli-0.6.5-sph3w6xt.mjs";import{Ig as IJ,Jg as AQ,Kg as NY,Lg as UQ}from"./cli-0.6.5-kr0q8v74.mjs";import{Mg as FY,Ng as MQ}from"./cli-0.6.5-406dcpxw.mjs";import{Og as LY,Pg as IQ,Qg as PY,Rg as EQ}from"./cli-0.6.5-57jmtd2z.mjs";import{Sg as Cq,Tg as l0,Vg as HY,Wg as DY}from"./cli-0.6.5-60hfev34.mjs";import{ji as Lq,ki as GX}from"./cli-0.6.5-akw85jbw.mjs";import{$m as zQ,AR as UY,As as n0,Cn as FQ,Cs as XX,GE as TZ,GI as BJ,HE as QQ,HI as PQ,IF as QZ,IQ as LZ,JF as XZ,KF as GZ,KR as BY,LF as VZ,LI as YJ,LR as IY,MF as WZ,MI as BZ,NF as KZ,NI as IZ,OF as OZ,OI as EZ,Oo as XY,PF as HZ,PR as SQ,Po as NQ,QE as T0,QF as DZ,RE as ZQ,RF as zZ,Ru as K0,SE as PZ,SF as dq,Su as GY,Tu as VY,Uu as qZ,YK as R0,ZK as TJ,_m as Z0,an as C,bn as f0,cn as p,dn as XJ,gn as S0,hn as FJ,kH as OY,lH as LQ,nn as UJ,rn as QY,ry as Pq,sy as VX,tR as JQ,zs as Rq}from"./cli-0.6.5-5t6d3asz.mjs";import{JS as WY,KS as KY,OS as RQ}from"./cli-0.6.5-41tc50h9.mjs";import{qU as zY,yU as kQ}from"./cli-0.6.5-gw6ygdnq.mjs";import{SV as V0,TV as v0,eW as l,fW as qY,gW as w0,jW as Iq,kW as HX,mW as C0,nW as Eq,pW as zJ,sW as fq,tW as DX}from"./cli-0.6.5-6x91apzw.mjs";import{BY as U,CX as ZY,DY as V,GX as DQ,fY as YY,gX as U0,gZ as H0,pX as e0,qX as JY}from"./cli-0.6.5-f71ncwzk.mjs";import{l1 as n,m1 as Q,n1 as H,o1 as $}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as s}from"./cli-0.6.5-vqb4jtcr.mjs";import{x1 as lY,y1 as nQ}from"./cli-0.6.5-k74repdw.mjs";import{G5 as vJ,N2 as h0,O2 as OQ,V5 as QX,Y3 as Nq,a4 as tZ,e2 as Fq,e3 as m0,f3 as MJ,h3 as oZ,i3 as AJ,i4 as qJ,j2 as qX,k3 as aZ,m4 as eZ,p3 as sZ,y3 as HQ}from"./cli-0.6.5-c7yx03g7.mjs";import{p6 as D0,q6 as GQ}from"./cli-0.6.5-3ybp7ww7.mjs";import{$_ as cZ,B7 as O0,C7 as DJ,Fda as N0,Jaa as PJ,Laa as x,Lba as T,Nda as QJ,Oaa as kJ,Oba as S,Pba as uZ,Uba as dZ,Uca as SY,Xca as TY,Yaa as KQ,Yba as iZ,Yca as TQ,Z_ as vZ,Zba as rZ,__ as pZ,_ca as wY,a$ as xZ,eda as hY,f$ as WQ,gda as bY,hca as nZ,jda as yY,nda as wQ,qda as B0,tda as lZ}from"./cli-0.6.5-ef6b5qvc.mjs";import{aea as mJ,bea as $0,hea as VJ,iea as SJ}from"./cli-0.6.5-pz5add8h.mjs";import{Cea as mZ}from"./cli-0.6.5-ry2zfh45.mjs";import{Nea as _Z,Zea as VQ}from"./cli-0.6.5-kac7d6qe.mjs";import{xfa as t0,yfa as YZ}from"./cli-0.6.5-rkjw25m5.mjs";import{lga as f,oga as XQ}from"./cli-0.6.5-6qvtcs5y.mjs";import{Tga as zq,Yga as YX,oha as c0,rha as CY}from"./cli-0.6.5-q4gh8d4w.mjs";import{Vha as $Z,Xha as fY,aia as LJ,dia as jZ}from"./cli-0.6.5-s580r0vs.mjs";import{$ja as Vq,Gna as ZZ,Hka as Hq,Hla as RJ,Ila as gZ,Jja as JZ,Ska as Dq,_ja as Gq,aka as Wq,uka as Kq,vka as Oq}from"./cli-0.6.5-ckc9hr8m.mjs";import{lpa as j,ppa as c}from"./cli-0.6.5-bm7v9qp0.mjs";function iq(){let Z=JZ(),q=LZ(Z)??Q(V,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"0.6.5"},{label:"Session name",value:q},{label:"Session ID",value:Z},{label:"cwd",value:t0()},...HZ(),...DZ()]}function rq({mainLoopModel:Z,mcp:J,theme:q,context:X}){return[{label:"Model",value:zZ(Z)},...XZ(J.clients,X.options.ideInstallationStatus,q),...GZ(J.clients,q),...QZ(),...WZ()]}async function FZ(){return[...await KZ(),...await OZ(),...await VZ()]}function nq(Z){let J=JJ.c(8),{value:q}=Z;if(Array.isArray(q)){let X;if(J[0]!==q){let D;if(J[2]!==q.length)D=(N,P)=>H(V,{children:[N,P<q.length-1?",":""]},P),J[2]=q.length,J[3]=D;else D=J[3];X=q.map(D),J[0]=q,J[1]=X}else X=J[1];let W;if(J[4]!==X)W=Q(U,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:X}),J[4]=X,J[5]=W;else W=J[5];return W}if(typeof q==="string"){let X;if(J[6]!==q)X=Q(V,{children:q}),J[6]=q,J[7]=X;else X=J[7];return X}return q}function NZ(Z){let J=JJ.c(20),{context:q,diagnosticsPromise:X}=Z,W=K0(sq),D=K0(aq),[N]=e0(),P;if(J[0]===Symbol.for("react.memo_cache_sentinel"))P=iq(),J[0]=P;else P=J[0];let M;if(J[1]!==q||J[2]!==W||J[3]!==D||J[4]!==N)M=rq({mainLoopModel:W,mcp:D,theme:N,context:q}),J[1]=q,J[2]=W,J[3]=D,J[4]=N,J[5]=M;else M=J[5];let k;if(J[6]!==M)k=[P,M],J[6]=M,J[7]=k;else k=J[7];let K=k,F=C0()?1:void 0,z;if(J[8]!==K)z=K.map(lq),J[8]=K,J[9]=z;else z=J[9];let O;if(J[10]!==X)O=Q(ZJ.Suspense,{fallback:null,children:Q(tq,{promise:X})}),J[10]=X,J[11]=O;else O=J[11];let R;if(J[12]!==F||J[13]!==z||J[14]!==O)R=H(U,{flexDirection:"column",gap:1,flexGrow:F,children:[z,O]}),J[12]=F,J[13]=z,J[14]=O,J[15]=R;else R=J[15];let A;if(J[16]===Symbol.for("react.memo_cache_sentinel"))A=Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),J[16]=A;else A=J[16];let B;if(J[17]!==F||J[18]!==R)B=H(U,{flexDirection:"column",flexGrow:F,children:[R,A]}),J[17]=F,J[18]=R,J[19]=B;else B=J[19];return B}function lq(Z,J){return Z.length>0&&Q(U,{flexDirection:"column",children:Z.map(oq)},J)}function oq(Z,J){let{label:q,value:X}=Z;return H(U,{flexDirection:"row",gap:1,flexShrink:0,children:[q!==void 0&&H(V,{bold:!0,children:[q,":"]}),Q(nq,{value:X})]},J)}function aq(Z){return Z.mcp}function sq(Z){return Z.mainLoopModel}function tq(Z){let J=JJ.c(5),{promise:q}=Z,X=ZJ.use(q);if(X.length===0)return null;let W;if(J[0]===Symbol.for("react.memo_cache_sentinel"))W=Q(V,{bold:!0,children:"System Diagnostics"}),J[0]=W;else W=J[0];let D;if(J[1]!==X)D=X.map(eq),J[1]=X,J[2]=D;else D=J[2];let N;if(J[3]!==D)N=H(U,{flexDirection:"column",paddingBottom:1,children:[W,D]}),J[3]=D,J[4]=N;else N=J[4];return N}function eq(Z,J){return H(U,{flexDirection:"row",gap:1,paddingX:1,children:[Q(V,{color:"error",children:O0.warning}),typeof Z==="string"?Q(V,{wrap:"wrap",children:Z}):Z]},J)}var JJ,ZJ;var RZ=c(()=>{DJ();ZZ();zJ();H0();qZ();YZ();JQ();dq();f0();$();JJ=j(U0(),1),ZJ=j(s(),1)});function MZ(Z){let J=kZ.c(17),{currentVersion:q,onChoice:X}=Z,W;if(J[0]!==X)W=function(B){X(B)},J[0]=X,J[1]=W;else W=J[1];let D=W,N;if(J[2]!==X)N=function(){X("cancel")},J[2]=X,J[3]=N;else N=J[3];let P=N,M;if(J[4]!==q)M=H(V,{children:["The stable channel may have an older version than what you're currently running (",q,")."]}),J[4]=q,J[5]=M;else M=J[5];let k;if(J[6]===Symbol.for("react.memo_cache_sentinel"))k=Q(V,{dimColor:!0,children:"How would you like to handle this?"}),J[6]=k;else k=J[6];let K;if(J[7]===Symbol.for("react.memo_cache_sentinel"))K={label:"Allow possible downgrade to stable version",value:"downgrade"},J[7]=K;else K=J[7];let F=`Stay on current version (${q}) until stable catches up`,z;if(J[8]!==F)z=[K,{label:F,value:"stay"}],J[8]=F,J[9]=z;else z=J[9];let O;if(J[10]!==D||J[11]!==z)O=Q(T0,{options:z,onChange:D}),J[10]=D,J[11]=z,J[12]=O;else O=J[12];let R;if(J[13]!==P||J[14]!==M||J[15]!==O)R=H(S0,{title:"Switch to Stable Channel",onCancel:P,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[M,k,O]}),J[13]=P,J[14]=M,J[15]=O,J[16]=R;else R=J[16];return R}var kZ;var AZ=c(()=>{H0();PZ();FJ();$();kZ=j(U0(),1)});function UZ(Z){return Object.entries(Z).map(([J,q])=>({label:q?.name??YQ,value:J,description:q?.description??qQ}))}function CZ(Z){let J=fZ.c(16),{initialStyle:q,onComplete:X,onCancel:W,isStandaloneCommand:D}=Z,N;if(J[0]===Symbol.for("react.memo_cache_sentinel"))N=[],J[0]=N;else N=J[0];let[P,M]=_0.useState(N),[k,K]=_0.useState(!0),F,z;if(J[1]===Symbol.for("react.memo_cache_sentinel"))F=()=>{IZ(t0()).then((d)=>{let t=UZ(d);M(t),K(!1)}).catch(()=>{let d=UZ(BZ);M(d),K(!1)})},z=[],J[1]=F,J[2]=z;else F=J[1],z=J[2];_0.useEffect(F,z);let O;if(J[3]!==X)O=(d)=>{X(d)},J[3]=X,J[4]=O;else O=J[4];let R=O,A=!D,B=!D,E;if(J[5]===Symbol.for("react.memo_cache_sentinel"))E=Q(U,{marginTop:1,children:Q(V,{dimColor:!0,children:"This changes how Claude Code communicates with you"})}),J[5]=E;else E=J[5];let h;if(J[6]!==R||J[7]!==q||J[8]!==k||J[9]!==P)h=H(U,{flexDirection:"column",gap:1,children:[E,k?Q(V,{dimColor:!0,children:"Loading output styles…"}):Q(T0,{options:P,onChange:R,visibleOptionCount:10,defaultValue:q})]}),J[6]=R,J[7]=q,J[8]=k,J[9]=P,J[10]=h;else h=J[10];let w;if(J[11]!==W||J[12]!==A||J[13]!==B||J[14]!==h)w=Q(S0,{title:"Preferred output style",onCancel:W,hideInputGuide:A,hideBorder:B,children:h}),J[11]=W,J[12]=A,J[13]=B,J[14]=h,J[15]=w;else w=J[15];return w}var fZ,_0,YQ="Default",qQ="Claude completes coding tasks efficiently and provides concise responses";var SZ=c(()=>{EZ();H0();YZ();ZQ();FJ();$();fZ=j(U0(),1),_0=j(s(),1)});function hZ(Z){let J=wZ.c(13),{initialLanguage:q,onComplete:X,onCancel:W}=Z,[D,N]=NJ.useState(q),[P,M]=NJ.useState((q??"").length),k;if(J[0]===Symbol.for("react.memo_cache_sentinel"))k={context:"Settings"},J[0]=k;else k=J[0];l("confirm:no",W,k);let K;if(J[1]!==D||J[2]!==X)K=function(){let w=D?.trim();X(w||void 0)},J[1]=D,J[2]=X,J[3]=K;else K=J[3];let F=K,z;if(J[4]===Symbol.for("react.memo_cache_sentinel"))z=Q(V,{children:"Enter your preferred response and voice language:"}),J[4]=z;else z=J[4];let O;if(J[5]===Symbol.for("react.memo_cache_sentinel"))O=Q(V,{children:O0.pointer}),J[5]=O;else O=J[5];let R=D??"",A;if(J[6]!==P||J[7]!==F||J[8]!==R)A=H(U,{flexDirection:"row",gap:1,children:[O,Q(TZ,{value:R,onChange:N,onSubmit:F,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${O0.ellipsis}`,columns:60,cursorOffset:P,onChangeCursorOffset:M})]}),J[6]=P,J[7]=F,J[8]=R,J[9]=A;else A=J[9];let B;if(J[10]===Symbol.for("react.memo_cache_sentinel"))B=Q(V,{dimColor:!0,children:"Leave empty for default (English)"}),J[10]=B;else B=J[10];let E;if(J[11]!==A)E=H(U,{flexDirection:"column",gap:1,children:[z,A,B]}),J[11]=A,J[12]=E;else E=J[12];return E}var wZ,NJ;var bZ=c(()=>{DJ();H0();w0();QQ();$();wZ=j(U0(),1),NJ=j(s(),1)});function MY({onClose:Z,context:J,setTabsHidden:q,onIsSearchModeChange:X,contentHeight:W}){let{headerFocused:D,focusHeader:N}=HY(),P=C0(),[,M]=e0(),k=JY(),[K,F]=g.useState(S()),z=v.useRef(S()),[O,R]=g.useState(kJ()),A=v.useRef(kJ()),[B,E]=g.useState(O?.outputStyle||YJ),h=v.useRef(B),[w,d]=g.useState(O?.language),t=v.useRef(w),[_,F0]=g.useState(0),[i,q0]=g.useState(0),[r,Q0]=g.useState(!0),j0=YY(),{rows:I0}=V0(),Tq=W??Math.min(Math.floor(I0*0.8),30),X0=Math.max(5,Tq-10),E0=K0((Y)=>Y.mainLoopModel),wq=K0((Y)=>Y.verbose),xJ=K0((Y)=>Y.thinkingEnabled),uJ=K0((Y)=>m0()?Y.fastMode:!1),hq=K0((Y)=>Y.promptSuggestionEnabled),RX=!1,e=GY(),[dJ,M0]=g.useState({}),bq=v.useRef(xJ),[iJ]=g.useState(()=>PJ("localSettings")),[rJ]=g.useState(()=>PJ("userSettings")),nJ=v.useRef(k),yq=VY(),[lJ]=g.useState(()=>{let Y=yq.getState();return{mainLoopModel:Y.mainLoopModel,mainLoopModelForSession:Y.mainLoopModelForSession,verbose:Y.verbose,thinkingEnabled:Y.thinkingEnabled,fastMode:Y.fastMode,promptSuggestionEnabled:Y.promptSuggestionEnabled,isBriefOnly:Y.isBriefOnly,replBridgeEnabled:Y.replBridgeEnabled,replBridgeOutboundOnly:Y.replBridgeOutboundOnly,settings:Y.settings}}),[KJ]=g.useState(()=>RJ()),J0=v.useRef(!1),[gq,o0]=g.useState(!1),[m,y]=g.useState(null),{query:A0,setQuery:a0,cursorOffset:$q}=PY({isActive:r&&m===null&&!D,onExit:()=>Q0(!1),onExitUp:N,passthroughCtrlKeys:["c","d"]}),oJ=r&&!D;v.useEffect(()=>{X?.(oJ)},[oJ,X]);let jq=QY(J.options.mcpClients),_q=!$Z(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),aJ=v.use(UY(!0)),mq=IY(aJ),W0=rZ();function sJ(Y){f("tengu_config_model_changed",{from_model:E0,to_model:Y}),e((L)=>({...L,mainLoopModel:Y,mainLoopModelForSession:null})),M0((L)=>{let I=qJ(Y)+(NY(Y,!1,tZ())?" · Billed as extra usage":"");if("model"in L){let{model:b,...o}=L;return{...o,model:I}}return{...L,model:I}})}function vq(Y){T((G)=>({...G,verbose:Y})),F({...S(),verbose:Y}),e((G)=>({...G,verbose:Y})),M0((G)=>{if("verbose"in G){let{verbose:L,...I}=G;return I}return{...G,verbose:Y}})}let OJ=[{id:"autoCompactEnabled",label:"Auto-compact",value:K.autoCompactEnabled,type:"boolean",onChange(Y){T((G)=>({...G,autoCompactEnabled:Y})),F({...S(),autoCompactEnabled:Y}),f("tengu_auto_compact_setting_changed",{enabled:Y})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:K.thinkingHistoryRedactionEnabled,type:"boolean",onChange(Y){T((G)=>({...G,thinkingHistoryRedactionEnabled:Y})),F({...S(),thinkingHistoryRedactionEnabled:Y}),f("claudin_thinking_history_redaction_setting_changed",{enabled:Y})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:K.narrationHistoryRedactionEnabled,type:"boolean",onChange(Y){T((G)=>({...G,narrationHistoryRedactionEnabled:Y})),F({...S(),narrationHistoryRedactionEnabled:Y}),f("claudin_narration_history_redaction_setting_changed",{enabled:Y})}},{id:"showCacheStats",label:"Cache stats display",value:K.showCacheStats,options:["off","compact","full"],type:"enum",onChange(Y){let G=Y==="off"||Y==="compact"||Y==="full"?Y:"compact";T((L)=>({...L,showCacheStats:G})),F({...S(),showCacheStats:G}),f("tengu_show_cache_stats_setting_changed",{mode:G})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:K.toolResultSummarizerEnabled,type:"boolean",onChange(Y){T((G)=>({...G,toolResultSummarizerEnabled:Y})),F({...S(),toolResultSummarizerEnabled:Y}),f("claudin_tool_result_summarizer_setting_changed",{enabled:Y})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:K.bashOutputFilterEnabled!==!1,type:"boolean",onChange(Y){T((G)=>({...G,bashOutputFilterEnabled:Y})),F({...S(),bashOutputFilterEnabled:Y}),f("claudin_bash_output_filter_setting_changed",{enabled:Y})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:K.autoBackgroundAgentsEnabled!==!1,type:"boolean",onChange(Y){T((G)=>({...G,autoBackgroundAgentsEnabled:Y})),F({...S(),autoBackgroundAgentsEnabled:Y}),f("claudin_auto_background_agents_setting_changed",{enabled:Y})}},{id:"inlineImagesMode",label:"Inline terminal images",value:K.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(Y){let G=Y==="auto"||Y==="enable"||Y==="disable"?Y:"auto";T((L)=>({...L,inlineImagesMode:G})),F({...S(),inlineImagesMode:G}),f("claudin_inline_images_setting_changed",{mode:G})}},{id:"spinnerTipsEnabled",label:"Show tips",value:O?.spinnerTipsEnabled??!0,type:"boolean",onChange(Y){x("localSettings",{spinnerTipsEnabled:Y}),R((G)=>({...G,spinnerTipsEnabled:Y})),f("tengu_tips_setting_changed",{enabled:Y})}},{id:"prefersReducedMotion",label:"Reduce motion",value:O?.prefersReducedMotion??!1,type:"boolean",onChange(Y){x("localSettings",{prefersReducedMotion:Y}),R((G)=>({...G,prefersReducedMotion:Y})),e((G)=>({...G,settings:{...G.settings,prefersReducedMotion:Y}})),f("tengu_reduce_motion_setting_changed",{enabled:Y})}},{id:"thinkingEnabled",label:"Thinking mode",value:xJ??!0,type:"boolean",onChange(Y){e((G)=>({...G,thinkingEnabled:Y})),x("userSettings",{alwaysThinkingEnabled:Y?void 0:!1}),f("tengu_thinking_toggled",{enabled:Y})}},...m0()&&MJ()?[{id:"fastMode",label:`Fast mode (${oZ} only)`,value:!!uJ,type:"boolean",onChange(Y){if(sZ(),x("userSettings",{fastMode:Y?!0:void 0}),Y)e((G)=>({...G,mainLoopModel:AJ(),mainLoopModelForSession:null,fastMode:!0})),M0((G)=>({...G,model:AJ(),"Fast mode":"ON"}));else e((G)=>({...G,fastMode:!1})),M0((G)=>({...G,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:hq,type:"boolean",onChange(Y){e((G)=>({...G,promptSuggestionEnabled:Y})),x("userSettings",{promptSuggestionEnabled:Y?void 0:!1})}},..._q?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:K.fileCheckpointingEnabled,type:"boolean",onChange(Y){T((G)=>({...G,fileCheckpointingEnabled:Y})),F({...S(),fileCheckpointingEnabled:Y}),f("tengu_file_history_snapshots_setting_changed",{enabled:Y})}}]:[],{id:"verbose",label:"Verbose output",value:wq,type:"boolean",onChange:vq},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:K.terminalProgressBarEnabled,type:"boolean",onChange(Y){T((G)=>({...G,terminalProgressBarEnabled:Y})),F({...S(),terminalProgressBarEnabled:Y}),f("tengu_terminal_progress_bar_setting_changed",{enabled:Y})}},..._Z("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:K.showStatusInTerminalTab??!1,type:"boolean",onChange(Y){T((G)=>({...G,showStatusInTerminalTab:Y})),F({...S(),showStatusInTerminalTab:Y}),f("tengu_terminal_tab_status_setting_changed",{enabled:Y})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:K.showTurnDuration,type:"boolean",onChange(Y){T((G)=>({...G,showTurnDuration:Y})),F({...S(),showTurnDuration:Y}),f("tengu_show_turn_duration_setting_changed",{enabled:Y})}},{id:"defaultPermissionMode",label:"Default permission mode",value:O?.permissions?.defaultMode||"default",options:(()=>{let Y=["default","plan"],G=mZ,L=["bypassPermissions"];return[...Y,...G.filter((I)=>!Y.includes(I)&&!L.includes(I))]})(),type:"enum",onChange(Y){let G=cZ(Y),L=vZ(G)?pZ(G):G,I=x("userSettings",{permissions:{...O?.permissions,defaultMode:L}});if(I.error){N0(I.error);return}R((b)=>({...b,permissions:{...b?.permissions,defaultMode:L}})),M0((b)=>({...b,defaultPermissionMode:Y})),f("tengu_config_changed",{setting:"defaultPermissionMode",value:Y})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:O?.useAutoModeDuringPlan??!0,type:"boolean",onChange(Y){x("userSettings",{useAutoModeDuringPlan:Y}),R((G)=>({...G,useAutoModeDuringPlan:Y})),e((G)=>{let L=BJ(G.toolPermissionContext);if(L===G.toolPermissionContext)return G;return{...G,toolPermissionContext:L}}),M0((G)=>({...G,"Use auto mode during plan":Y}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:K.respectGitignore,type:"boolean",onChange(Y){T((G)=>({...G,respectGitignore:Y})),F({...S(),respectGitignore:Y}),f("tengu_respect_gitignore_setting_changed",{enabled:Y})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy picker)",value:K.copyFullResponse,type:"boolean",onChange(Y){T((G)=>({...G,copyFullResponse:Y})),F({...S(),copyFullResponse:Y}),f("tengu_config_changed",{setting:"copyFullResponse",value:String(Y)})}},...ZY()?[{id:"copyOnSelect",label:"Copy on select",value:K.copyOnSelect??!0,type:"boolean",onChange(Y){T((G)=>({...G,copyOnSelect:Y})),F({...S(),copyOnSelect:Y}),f("tengu_config_changed",{setting:"copyOnSelect",value:String(Y)})}}]:[],{id:"flickerFreeMode",label:"Flicker-free mode",value:K.flickerFreeMode??!1,type:"boolean",onChange(Y){T((G)=>({...G,flickerFreeMode:Y})),F({...S(),flickerFreeMode:Y}),f("tengu_config_changed",{setting:"flickerFreeMode",value:String(Y)})}},W0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:O?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:k,type:"managedEnum",onChange:M},{id:"notifChannel",label:"Notifications",value:K.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(Y){T((G)=>({...G,preferredNotifChannel:Y})),F({...S(),preferredNotifChannel:Y})}},{id:"outputStyle",label:"Output style",value:B,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:K.editorMode==="emacs"?"normal":K.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(Y){T((G)=>({...G,editorMode:Y})),F({...S(),editorMode:Y}),f("tengu_editor_mode_changed",{mode:Y,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:K.prStatusFooterEnabled??!0,type:"boolean",onChange(Y){T((G)=>{if(G.prStatusFooterEnabled===Y)return G;return{...G,prStatusFooterEnabled:Y}}),F({...S(),prStatusFooterEnabled:Y}),f("tengu_pr_status_footer_setting_changed",{enabled:Y})}},{id:"model",label:"Model",value:E0===null?"Default (recommended)":E0,type:"managedEnum",onChange:sJ},...jq?[{id:"diffTool",label:"Diff tool",value:K.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(Y){T((G)=>({...G,diffTool:Y})),F({...S(),diffTool:Y}),f("tengu_diff_tool_changed",{tool:Y,source:"config_panel"})}}]:[],...!UJ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:K.autoConnectIde??!1,type:"boolean",onChange(Y){T((G)=>({...G,autoConnectIde:Y})),F({...S(),autoConnectIde:Y}),f("tengu_auto_connect_ide_changed",{enabled:Y,source:"config_panel"})}}]:[],...UJ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:K.autoInstallIdeExtension??!0,type:"boolean",onChange(Y){T((G)=>({...G,autoInstallIdeExtension:Y})),F({...S(),autoInstallIdeExtension:Y}),f("tengu_auto_install_ide_extension_changed",{enabled:Y,source:"config_panel"})}}]:[],...XY()?(()=>{let Y=WY();return[{id:"teammateMode",label:Y?`Teammate mode [overridden: ${Y}]`:"Teammate mode",value:K.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(L){if(L!=="auto"&&L!=="tmux"&&L!=="in-process")return;KY(L),T((I)=>({...I,teammateMode:L})),F({...S(),teammateMode:L}),f("tengu_teammate_mode_changed",{mode:L})}},{id:"teammateDefaultModel",label:"Default teammate model",value:yZ(K.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...zY()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:K.remoteControlAtStartup===void 0?"default":String(K.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(Y){if(Y==="default")T((L)=>{if(L.remoteControlAtStartup===void 0)return L;let I={...L};return delete I.remoteControlAtStartup,I}),F({...S(),remoteControlAtStartup:void 0});else{let L=Y==="true";T((I)=>{if(I.remoteControlAtStartup===L)return I;return{...I,remoteControlAtStartup:L}}),F({...S(),remoteControlAtStartup:L})}let G=uZ();e((L)=>{if(L.replBridgeEnabled===G&&!L.replBridgeOutboundOnly)return L;return{...L,replBridgeEnabled:G,replBridgeOutboundOnly:!1}})}}]:[],...mq?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(dZ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let Y=B0(),G=Y?.transport==="anthropic"?Y.apiKey?.trim():void 0;if(!G||LJ())return[];return[{id:"apiKey",label:H(V,{children:["Use custom API key:"," ",Q(V,{bold:!0,children:h0(G)})]}),searchText:"Use custom API key",value:Boolean(K.customApiKeyResponses?.approved?.includes(h0(G))),type:"boolean",onChange(L){T((I)=>{let b={...I};if(!b.customApiKeyResponses)b.customApiKeyResponses={approved:[],rejected:[]};if(!b.customApiKeyResponses.approved)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[]};if(!b.customApiKeyResponses.rejected)b.customApiKeyResponses={...b.customApiKeyResponses,rejected:[]};{let o=h0(G);if(L)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[...(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),o],rejected:(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o)};else b.customApiKeyResponses={...b.customApiKeyResponses,approved:(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),rejected:[...(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o),o]}}return b}),F(S())}}]})()],G0=v.useMemo(()=>{if(!A0)return OJ;let Y=A0.toLowerCase();return OJ.filter((G)=>{if(G.id.toLowerCase().includes(Y))return!0;return("searchText"in G?G.searchText:G.label).toLowerCase().includes(Y)})},[OJ,A0]);v.useEffect(()=>{if(_>=G0.length){let Y=Math.max(0,G0.length-1);F0(Y),q0(Math.max(0,Y-X0+1));return}q0((Y)=>{if(_<Y)return _;if(_>=Y+X0)return _-X0+1;return Y})},[G0.length,_,X0]);let pq=g.useCallback((Y)=>{q0((G)=>{if(Y<G)return Y;if(Y>=G+X0)return Y-X0+1;return G})},[X0]),cq=g.useCallback(()=>{if(m!==null)return;let Y=Object.entries(dJ).map(([a,eJ])=>{return f("tengu_config_changed",{key:a,value:eJ}),`Set ${a} to ${D0.bold(eJ)}`}),G=B0(),L=G?.transport==="anthropic"?G.apiKey?.trim():void 0,I=LJ()?void 0:L,b=Boolean(I&&z.current.customApiKeyResponses?.approved?.includes(h0(I))),o=Boolean(I&&K.customApiKeyResponses?.approved?.includes(h0(I)));if(b!==o)Y.push(`${o?"Enabled":"Disabled"} custom API key`),f("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:o});if(K.theme!==z.current.theme)Y.push(`Set theme to ${D0.bold(K.theme)}`);if(K.preferredNotifChannel!==z.current.preferredNotifChannel)Y.push(`Set notifications to ${D0.bold(K.preferredNotifChannel)}`);if(B!==h.current)Y.push(`Set output style to ${D0.bold(B)}`);if(w!==t.current)Y.push(`Set response language to ${D0.bold(w??"Default (English)")}`);if(K.editorMode!==z.current.editorMode)Y.push(`Set editor mode to ${D0.bold(K.editorMode||"emacs")}`);if(K.diffTool!==z.current.diffTool)Y.push(`Set diff tool to ${D0.bold(K.diffTool)}`);if(K.autoConnectIde!==z.current.autoConnectIde)Y.push(`${K.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(K.autoInstallIdeExtension!==z.current.autoInstallIdeExtension)Y.push(`${K.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(K.autoCompactEnabled!==z.current.autoCompactEnabled)Y.push(`${K.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(K.thinkingHistoryRedactionEnabled!==z.current.thinkingHistoryRedactionEnabled)Y.push(`${K.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(K.narrationHistoryRedactionEnabled!==z.current.narrationHistoryRedactionEnabled)Y.push(`${K.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(K.toolResultSummarizerEnabled!==z.current.toolResultSummarizerEnabled)Y.push(`${K.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(K.autoBackgroundAgentsEnabled!==z.current.autoBackgroundAgentsEnabled)Y.push(`${K.autoBackgroundAgentsEnabled!==!1?"Enabled":"Disabled"} auto-background agents`);if(K.bashOutputFilterEnabled!==z.current.bashOutputFilterEnabled)Y.push(`${K.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(K.respectGitignore!==z.current.respectGitignore)Y.push(`${K.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(K.copyFullResponse!==z.current.copyFullResponse)Y.push(`${K.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(K.copyOnSelect!==z.current.copyOnSelect)Y.push(`${K.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(K.terminalProgressBarEnabled!==z.current.terminalProgressBarEnabled)Y.push(`${K.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(K.showStatusInTerminalTab!==z.current.showStatusInTerminalTab)Y.push(`${K.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(K.showTurnDuration!==z.current.showTurnDuration)Y.push(`${K.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(K.remoteControlAtStartup!==z.current.remoteControlAtStartup){let a=K.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${K.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;Y.push(a)}if(O?.autoUpdatesChannel!==A.current?.autoUpdatesChannel)Y.push(`Set auto-update channel to ${D0.bold(O?.autoUpdatesChannel??"latest")}`);if(Y.length>0)Z(Y.join(`
2
- `));else Z("Config dialog dismissed",{display:"system"})},[m,dJ,K,E0,B,w,O?.autoUpdatesChannel,m0()?O?.fastMode:void 0,Z]),tJ=g.useCallback(()=>{if(k!==nJ.current)M(nJ.current);T(()=>z.current);let Y=iJ;x("localSettings",{spinnerTipsEnabled:Y?.spinnerTipsEnabled,prefersReducedMotion:Y?.prefersReducedMotion,defaultView:Y?.defaultView,outputStyle:Y?.outputStyle});let G=rJ;x("userSettings",{alwaysThinkingEnabled:G?.alwaysThinkingEnabled,fastMode:G?.fastMode,promptSuggestionEnabled:G?.promptSuggestionEnabled,autoUpdatesChannel:G?.autoUpdatesChannel,minimumVersion:G?.minimumVersion,language:G?.language,...{useAutoModeDuringPlan:G?.useAutoModeDuringPlan},syntaxHighlightingDisabled:G?.syntaxHighlightingDisabled,permissions:G?.permissions===void 0?void 0:{...G.permissions,defaultMode:G.permissions.defaultMode}});let L=lJ;if(e((I)=>({...I,mainLoopModel:L.mainLoopModel,mainLoopModelForSession:L.mainLoopModelForSession,verbose:L.verbose,thinkingEnabled:L.thinkingEnabled,fastMode:L.fastMode,promptSuggestionEnabled:L.promptSuggestionEnabled,isBriefOnly:L.isBriefOnly,replBridgeEnabled:L.replBridgeEnabled,replBridgeOutboundOnly:L.replBridgeOutboundOnly,settings:L.settings,toolPermissionContext:BJ(I.toolPermissionContext)})),RJ()!==KJ)gZ(KJ)},[k,M,iJ,rJ,lJ,KJ,e]),xq=g.useCallback(()=>{if(m!==null)return;if(J0.current)tJ();Z("Config dialog dismissed",{display:"system"})},[m,tJ,Z]);l("confirm:no",xq,{context:"Settings",isActive:m===null&&!r&&!D}),l("settings:close",cq,{context:"Settings",isActive:m===null&&!r&&!D});let HJ=g.useCallback(()=>{let Y=G0[_];if(!Y||!Y.onChange)return;if(Y.type==="boolean"){if(J0.current=!0,Y.onChange(!Y.value),Y.id==="thinkingEnabled"){if(!Y.value===bq.current)o0(!1);else if(J.messages.some((I)=>I.type==="assistant"))o0(!0)}return}if(Y.id==="theme"||Y.id==="model"||Y.id==="teammateDefaultModel"||Y.id==="showExternalIncludesDialog"||Y.id==="outputStyle"||Y.id==="language")switch(Y.id){case"theme":y("Theme"),q(!0);return;case"model":y("Model"),q(!0);return;case"teammateDefaultModel":y("TeammateModel"),q(!0);return;case"showExternalIncludesDialog":y("ExternalIncludes"),q(!0);return;case"outputStyle":y("OutputStyle"),q(!0);return;case"language":y("Language"),q(!0);return}if(Y.id==="autoUpdatesChannel"){if(W0){y("EnableAutoUpdates"),q(!0);return}if((O?.autoUpdatesChannel??"latest")==="latest")y("ChannelDowngrade"),q(!0);else J0.current=!0,x("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((L)=>({...L,autoUpdatesChannel:"latest",minimumVersion:void 0})),f("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(Y.type==="enum"){J0.current=!0;let L=(Y.options.indexOf(Y.value)+1)%Y.options.length;Y.onChange(Y.options[L]);return}},[W0,G0,_,O?.autoUpdatesChannel,q]),s0=(Y)=>{o0(!1);let G=Math.max(0,Math.min(G0.length-1,_+Y));F0(G),pq(G)};qY({"select:previous":()=>{if(_===0)o0(!1),Q0(!0),q0(0);else s0(-1)},"select:next":()=>s0(1),"scroll:lineUp":()=>s0(-1),"scroll:lineDown":()=>s0(1),"select:accept":HJ,"settings:search":()=>{Q0(!0),a0("")}},{context:"Settings",isActive:m===null&&!r&&!D});let uq=g.useCallback((Y)=>{if(m!==null)return;if(D)return;if(r){if(Y.key==="escape"){if(Y.preventDefault(),A0.length>0)a0("");else Q0(!1);return}if(Y.key==="return"||Y.key==="down"||Y.key==="wheeldown")Y.preventDefault(),Q0(!1),F0(0),q0(0);return}if(Y.key==="left"||Y.key==="right"||Y.key==="tab"){Y.preventDefault(),HJ();return}if(Y.ctrl||Y.meta)return;if(Y.key==="j"||Y.key==="k"||Y.key==="/")return;if(Y.key.length===1&&Y.key!==" ")Y.preventDefault(),Q0(!0),a0(Y.key)},[m,D,r,A0,a0,HJ]);return Q(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:uq,children:m==="Theme"?H(n,{children:[Q(FY,{onThemeSelect:(Y)=>{J0.current=!0,M(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),Q(U,{children:Q(V,{dimColor:!0,italic:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"select"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):m==="Model"?H(n,{children:[Q(IJ,{initial:E0,onSelect:(Y,G)=>{J0.current=!0,sJ(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},showFastModeNotice:m0()?uJ&&aZ(E0)&&MJ():!1}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="TeammateModel"?H(n,{children:[Q(IJ,{initial:K.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(Y,G)=>{if(y(null),q(!1),K.teammateDefaultModel===void 0&&Y===null)return;J0.current=!0,T((L)=>L.teammateDefaultModel===Y?L:{...L,teammateDefaultModel:Y}),F({...S(),teammateDefaultModel:Y}),M0((L)=>({...L,teammateDefaultModel:yZ(Y)})),f("tengu_teammate_default_model_changed",{model:Y})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="ExternalIncludes"?H(n,{children:[Q(RY,{onDone:()=>{y(null),q(!1)},externalIncludes:BY(aJ)}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):m==="OutputStyle"?H(n,{children:[Q(CZ,{initialStyle:B,onComplete:(Y)=>{J0.current=!0,E(Y??YJ),y(null),q(!1),x("localSettings",{outputStyle:Y}),f("tengu_output_style_changed",{style:Y??YJ,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="Language"?H(n,{children:[Q(hZ,{initialLanguage:w,onComplete:(Y)=>{J0.current=!0,d(Y),y(null),q(!1),x("userSettings",{language:Y}),f("tengu_language_changed",{language:Y??"default",source:"config_panel"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):m==="EnableAutoUpdates"?Q(S0,{title:"Enable Auto-Updates",onCancel:()=>{y(null),q(!1)},hideBorder:!0,hideInputGuide:!0,children:W0?.type!=="config"?H(n,{children:[Q(V,{children:W0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),W0?.type==="env"&&H(V,{dimColor:!0,children:["Unset ",W0.envVar," to re-enable auto-updates."]})]}):Q(T0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(Y)=>{J0.current=!0,y(null),q(!1),T((G)=>({...G,autoUpdates:!0})),F({...S(),autoUpdates:!0}),x("userSettings",{autoUpdatesChannel:Y,minimumVersion:void 0}),R((G)=>({...G,autoUpdatesChannel:Y,minimumVersion:void 0})),f("tengu_autoupdate_enabled",{channel:Y})}})}):m==="ChannelDowngrade"?Q(MZ,{currentVersion:"99.0.0",onChoice:(Y)=>{if(y(null),q(!1),Y==="cancel")return;J0.current=!0;let G={autoUpdatesChannel:"stable"};if(Y==="stay")G.minimumVersion="99.0.0";x("userSettings",G),R((L)=>({...L,...G})),f("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:Y==="stay"})}}):H(U,{flexDirection:"column",gap:1,marginY:P?void 0:1,children:[Q(LY,{query:A0,isFocused:r&&!D,isTerminalFocused:j0,cursorOffset:$q,placeholder:"Search settings…"}),Q(U,{flexDirection:"column",children:G0.length===0?H(V,{dimColor:!0,italic:!0,children:['No settings match "',A0,'"']}):H(n,{children:[i>0&&H(V,{dimColor:!0,children:[O0.arrowUp," ",i," more above"]}),G0.slice(i,i+X0).map((Y,G)=>{let I=i+G===_&&!D&&!r;return Q(v.Fragment,{children:H(U,{children:[Q(U,{width:44,children:H(V,{color:I?"suggestion":void 0,children:[I?O0.pointer:" "," ",Y.label]})}),Q(U,{children:Y.type==="boolean"?H(n,{children:[Q(V,{color:I?"suggestion":void 0,children:Y.value.toString()}),gq&&Y.id==="thinkingEnabled"&&H(V,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):Y.id==="theme"?Q(V,{color:I?"suggestion":void 0,children:fQ[Y.value.toString()]??Y.value.toString()}):Y.id==="notifChannel"?Q(V,{color:I?"suggestion":void 0,children:Q(CQ,{value:Y.value.toString()})}):Y.id==="defaultPermissionMode"?Q(V,{color:I?"suggestion":void 0,children:xZ(Y.value)}):Y.id==="autoUpdatesChannel"&&W0?H(U,{flexDirection:"column",children:[Q(V,{color:I?"suggestion":void 0,children:"disabled"}),H(V,{dimColor:!0,children:["(",iZ(W0),")"]})]}):Q(V,{color:I?"suggestion":void 0,children:Y.value.toString()})},I?"selected":"unselected")]})},Y.id)}),i+X0<G0.length&&H(V,{dimColor:!0,children:[O0.arrowDown," ",G0.length-i-X0," ","more below"]})]})}),D?Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"←/→ tab",action:"switch"}),Q(Z0,{shortcut:"↓",action:"return"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):r?Q(V,{dimColor:!0,children:H(p,{children:[Q(V,{children:"Type to filter"}),Q(Z0,{shortcut:"Enter/↓",action:"select"}),Q(Z0,{shortcut:"↑",action:"tabs"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):Q(V,{dimColor:!0,children:H(p,{children:[Q(C,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),Q(C,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),Q(C,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function yZ(Z){if(Z===void 0)return qJ(OY());if(Z===null)return"Default (leader's model)";return qJ(Z)}function CQ(Z){let J=kY.c(4),{value:q}=Z;switch(q){case"auto":return"Auto";case"iterm2":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["iTerm2 ",Q(V,{dimColor:!0,children:"(OSC 9)"})]}),J[0]=X;else X=J[0];return X}case"terminal_bell":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["Terminal Bell ",Q(V,{dimColor:!0,children:"(\\a)"})]}),J[1]=X;else X=J[1];return X}case"kitty":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["Kitty ",Q(V,{dimColor:!0,children:"(OSC 99)"})]}),J[2]=X;else X=J[2];return X}case"ghostty":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["Ghostty ",Q(V,{dimColor:!0,children:"(OSC 777)"})]}),J[3]=X;else X=J[3];return X}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return q}}var kY,v,g,fQ;var AY=c(()=>{H0();w0();DJ();nZ();OQ();lZ();nZ();GQ();WQ();PQ();QJ();XQ();kQ();MQ();qZ();AQ();eZ();UQ();BQ();AZ();FJ();PZ();SZ();bZ();SQ();zQ();f0();XJ();DY();zJ();IQ();FQ();KQ();ZZ();EZ();jZ();VQ();NQ();RQ();LQ();EQ();v0();HQ();DQ();$();kY=j(U0(),1),v=j(s(),1),g=j(s(),1);fQ={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function x0(Z){return typeof Z==="object"&&Z!==null}function Y0(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function b0(Z){return typeof Z==="number"&&Number.isFinite(Z)?Z:void 0}function EJ(Z){return typeof Z==="boolean"?Z:void 0}function fJ(Z){let J=b0(Z);if(J===void 0)return;return new Date(J*1000).toISOString()}function GJ(Z){if(!x0(Z))return;let J=b0(Z.used_percent)??b0(Z.usedPercent);if(J===void 0)return;let q=b0(Z.window_minutes)??b0(Z.windowDurationMins)??(()=>{let W=b0(Z.limit_window_seconds);return W===void 0?void 0:Math.round(W/60)})(),X=fJ(Z.resets_at)??fJ(Z.resetsAt)??fJ(Z.reset_at);return{usedPercent:J,windowMinutes:q,resetsAt:X}}function gY(Z){if(!x0(Z))return;let J=EJ(Z.has_credits)??EJ(Z.hasCredits)??!1,q=EJ(Z.unlimited)??!1,X=Y0(Z.balance);if(!J&&!q&&!X)return;return{hasCredits:J,unlimited:q,balance:X}}function p0(Z,J){if(!x0(Z))return;let q=Y0(Z.limit_name)??Y0(Z.limitName)??Y0(Z.limit_id)??Y0(Z.limitId)??J,X=GJ(Z.primary)??GJ(Z.primary_window),W=GJ(Z.secondary)??GJ(Z.secondary_window),D=gY(Z.credits);if(!X&&!W&&!D)return;return{limitName:q,primary:X,secondary:W,credits:D}}function CJ(Z,J="codex"){if(Array.isArray(Z))return Z.map((q,X)=>p0(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!x0(Z))return[];return Object.entries(Z).map(([q,X])=>p0(X,q)).filter((q)=>q!==void 0)}function hQ(Z){let J=Y0(Z.plan_type)??Y0(Z.planType),q=[],X=gY(Z.credits),W=p0(Z.rate_limit,"codex");if(W)W.credits??=X,q.push(W);else if(X)q.push({limitName:"codex",credits:X});let D=p0(Z.code_review_rate_limit,"code review");if(D)q.push(D);return q.push(...CJ(Z.additional_rate_limits??Z.additionalRateLimits,"additional")),{planType:J,snapshots:q}}function bQ(Z){if(Array.isArray(Z))return{snapshots:CJ(Z)};if(!x0(Z))return{snapshots:[]};if("rate_limit"in Z||"code_review_rate_limit"in Z||"additional_rate_limits"in Z||"credits"in Z)return hQ(Z);let J=Z.rate_limits??Z.rateLimits??Z.rate_limits_by_limit_id??Z.rateLimitsByLimitId;if(J!==void 0)return{planType:Y0(Z.plan_type)??Y0(Z.planType),snapshots:CJ(J)};let q=p0(Z,"codex");return{planType:Y0(Z.plan_type)??Y0(Z.planType),snapshots:q?[q]:[]}}function y0(Z){if(!Z)return Z;return Z[0].toUpperCase()+Z.slice(1)}function EY(Z,J){if(Z===void 0||Z<=0)return J;if(Z===10080)return"weekly";if(Z%1440===0)return`${Z/1440}d`;if(Z%60===0)return`${Z/60}h`;return`${Z}m`}function yQ(Z){let J=Z?.trim();if(!J)return;let q=Number.parseInt(J,10);if(Number.isFinite(q)&&`${q}`===J&&q>0)return`${q}`;let X=Number.parseFloat(J);if(Number.isFinite(X)&&X>0)return`${Math.round(X)}`;return}function gQ(Z){if(!Z?.hasCredits)return;if(Z.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let J=yQ(Z.balance);if(!J)return;return{kind:"text",label:"Credits",value:`${J} credits`}}function $Y(Z){let J=[];for(let q of Z){let X=q.limitName.trim()||"codex",W=gQ(q.credits);if(!(q.primary!==void 0||q.secondary!==void 0||W!==void 0))continue;let N=X.toLowerCase()!=="codex",P=Number(q.primary!==void 0)+Number(q.secondary!==void 0),M=N&&P===1;if(N&&!M)J.push({kind:"text",label:`${y0(X)} limit`,value:""});if(q.primary){let k=y0(EY(q.primary.windowMinutes,"5h"));J.push({kind:"window",label:M?`${y0(X)} ${k} limit`:`${k} limit`,usedPercent:q.primary.usedPercent,resetsAt:q.primary.resetsAt})}if(q.secondary){let k=y0(EY(q.secondary.windowMinutes,"weekly"));J.push({kind:"window",label:M?`${y0(X)} ${k} limit`:`${k} limit`,usedPercent:q.secondary.usedPercent,resetsAt:q.secondary.resetsAt})}if(W)J.push(W)}return J}function jY(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>y0(J.toLowerCase())).join(" ")}function $Q(Z=wY){return new URL("/backend-api/wham/usage",Z).toString()}async function _Y(){let Z=await TY().catch(async(W)=>{return c0(`[codex] access token refresh failed before usage fetch: ${W instanceof Error?W.message:String(W)}`,{level:"warn"}),{refreshed:!1,credentials:await SY()}}),J=bY();if(!hY(J.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let q=yY({storedCredentials:Z.credentials});if(!q.apiKey){let W=fY()?"":", choose Codex OAuth in /provider",D=q.authPath?`${W} or place a Codex auth.json at ${q.authPath}`:W;throw Error(`Codex auth is required. Set CODEX_API_KEY${D}.`)}if(!q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let X=await fetch($Q(J.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q.apiKey}`,"chatgpt-account-id":q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!X.ok){let W=await X.text().catch(()=>"unknown error");throw Error(`Codex usage error ${X.status}: ${W}`)}return bQ(await X.json())}var mY=c(()=>{TQ();CY();jZ();wQ()});function jQ({label:Z,usedPercent:J,resetsAt:q,maxWidth:X}){let W=Math.max(0,Math.min(100,J)),D=`${Math.floor(W)}% used`,N=q?`Resets ${VJ(q,!0,!0)}`:void 0;if(X>=62)return H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:Z}),H(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:W/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:D})]}),N?Q(V,{dimColor:!0,children:N}):null]});return H(U,{flexDirection:"column",children:[H(V,{children:[Q(V,{bold:!0,children:Z}),N?H(n,{children:[Q(V,{children:" "}),H(V,{dimColor:!0,children:["· ",N]})]}):null]}),Q(R0,{ratio:W/100,width:X,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:D})]})}function _Q({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return H(V,{children:[Q(V,{bold:!0,children:Z}),H(V,{dimColor:!0,children:[" · ",J]})]})}function pY(){let[Z,J]=g0.useState(null),[q,X]=g0.useState(null),[W,D]=g0.useState(!0),{columns:N}=V0(),P=N-2,M=Math.min(P,80),k=vY.useCallback(async()=>{D(!0),X(null);try{J(await _Y())}catch(z){N0(z),X(z instanceof Error?z.message:"Failed to load Codex usage")}finally{D(!1)}},[]);if(g0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!q&&!W}),q)return H(U,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:H(p,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return H(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading Codex usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=$Y(Z.snapshots),F=jY(Z.planType);return H(U,{flexDirection:"column",gap:1,width:"100%",children:[F?H(V,{dimColor:!0,children:["Plan: ",F]}):null,K.length===0?Q(V,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,K.map((z,O)=>z.kind==="window"?Q(jQ,{label:z.label,usedPercent:z.usedPercent,resetsAt:z.resetsAt,maxWidth:M},`${z.label}-${O}`):Q(_Q,{label:z.label,value:z.value},`${z.label}-${O}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var vY,g0;var cY=c(()=>{v0();H0();w0();mY();SJ();QJ();f0();XJ();TJ();$();vY=j(s(),1),g0=j(s(),1)});var u0="https://api.minimax.io/v1",d0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var wJ=()=>{};function L0(Z){return typeof Z==="object"&&Z!==null}function u(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function bJ(Z){if(typeof Z==="number"&&Number.isFinite(Z))return Z;if(typeof Z==="string"&&Z.trim()){let J=Number.parseFloat(Z);if(Number.isFinite(J))return J}return}function WJ(Z){return Math.max(0,Math.min(100,Math.round(Z)))}function mQ(Z){if(typeof Z==="string"){let X=Date.parse(Z);return Number.isNaN(X)?Z:new Date(X).toISOString()}let J=bJ(Z);if(J===void 0)return;let q=J>1000000000000?J:J*1000;return new Date(q).toISOString()}function vQ(Z,J){let q=bJ(Z);if(/remains?_time/i.test(J)&&q!==void 0){let X=q>604800?q:q*1000;return new Date(Date.now()+X).toISOString()}return mQ(Z)}function i0(Z,J){for(let q of J){let X=bJ(Z[q]);if(X!==void 0)return X}return}function pQ(Z,J){for(let q of J)if(Z[q]!==void 0)return vQ(Z[q],q);return}function r0(Z,J){return J.some((q)=>Z[q]!==void 0)}function dY(Z){return Z?Z[0].toUpperCase()+Z.slice(1):Z}function cQ(Z){if(!Z)return"MiniMax";let J=Z.trim();if(!J)return"MiniMax";if(/[A-Z]/.test(J))return J;return J.split(/[_\s-]+/).filter(Boolean).map((q)=>dY(q.toLowerCase())).join(" ")}function xQ(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>dY(J.toLowerCase())).join(" ")}function iY(Z,J){let q=i0(Z,J.percentKeys),X=i0(Z,J.remainingPercentKeys),W=i0(Z,J.totalKeys),D=i0(Z,J.remainingKeys),N=i0(Z,J.usedKeys),P=W!==void 0&&N!==void 0?W-N:D,M;if(W!==void 0&&W>0&&N!==void 0)M=WJ(N/W*100);else if(W!==void 0&&W>0&&D!==void 0)M=WJ((W-D)/W*100);else if(q!==void 0)M=WJ(q);else if(X!==void 0)M=WJ(100-X);if(M===void 0)return;return{label:J.label,usedPercent:M,remaining:P,total:W,resetsAt:pQ(Z,J.resetKeys)}}function uQ(Z){let J=u(Z.label)??u(Z.name)??u(Z.window_name)??u(Z.windowName)??"Limit";return iY(Z,{label:J,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function iQ(Z){if(r0(Z,dQ))return!0;return rY.some((J)=>r0(Z,J.totalKeys)||r0(Z,J.remainingKeys)||r0(Z,J.usedKeys)||r0(Z,J.percentKeys))}function hJ(Z,J){if(!L0(Z))return;let q=rY.map((W)=>iY(Z,W)).filter((W)=>W!==void 0);if(q.length===0){let W=uQ(Z);if(W)q.push(W)}if(q.length===0)return;return{limitName:u(Z.limit_name)??u(Z.limitName)??u(Z.model_name)??u(Z.modelName)??u(Z.name)??J,windows:q}}function xY(Z,J="MiniMax"){if(Array.isArray(Z))return Z.map((q,X)=>hJ(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!L0(Z))return[];if(iQ(Z)){let q=hJ(Z,J);return q?[q]:[]}return Object.entries(Z).map(([q,X])=>hJ(X,q)).filter((q)=>q!==void 0)}function uY(Z=d0,J){return{availability:"unknown",planType:J,snapshots:[],message:Z}}function yJ(Z){if(!L0(Z))return uY();let J=xQ(u(Z.plan_type)??u(Z.planType)??u(Z.subscription_type)??u(Z.subscriptionType)??u(Z.plan_name)??u(Z.planName)),X=[Z.data,Z.result,Z.model_remains,Z.modelRemains,Z.remains,Z.usage,Z.quotas,Z.models,L0(Z.data)?Z.data.model_remains:void 0,L0(Z.data)?Z.data.modelRemains:void 0,L0(Z.data)?Z.data.models:void 0,L0(Z.data)?Z.data.quotas:void 0,L0(Z.data)?Z.data.remains:void 0].flatMap((D)=>xY(D)).filter((D,N,P)=>{let M=`${D.limitName}:${D.windows.map((k)=>k.label).join("|")}`;return P.findIndex((k)=>`${k.limitName}:${k.windows.map((K)=>K.label).join("|")}`===M)===N});if(X.length>0)return{availability:"available",planType:J,snapshots:X};let W=xY(Z);if(W.length>0)return{availability:"available",planType:J,snapshots:W};return uY(void 0,J)}function rQ(Z){if(Z.remaining===void 0||Z.total===void 0||Z.total<=0)return;return`${Z.remaining}/${Z.total} remaining`}function gJ(Z){let J=[];for(let q of Z){let X=cQ(q.limitName),W=X.toLowerCase()!=="minimax",D=W&&q.windows.length===1;if(W&&!D)J.push({kind:"text",label:`${X} quota`,value:""});for(let N of q.windows)J.push({kind:"window",label:D?`${X} ${N.label}`:N.label,usedPercent:N.usedPercent,resetsAt:N.resetsAt,extraSubtext:rQ(N)})}return J}var rY,dQ;var $J=c(()=>{wJ();rY=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],dQ=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function lQ(Z){return Z.replace(/\/+$/,"")}function oY(Z=B0()?.baseUrl??u0){let J=Z.trim();return J?lQ(J):u0}function oQ(Z){let J=Z??B0()?.baseUrl;if(!J?.trim())return{baseUrl:u0,usedDefault:!0};return{baseUrl:oY(J),usedDefault:!1}}function nY(Z){return{availability:"unknown",snapshots:[],message:Z}}function aY(Z){let{baseUrl:J,usedDefault:q}=oQ(Z);try{let X=new URL(`${J}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}catch{if(q){let X=new URL(`${u0}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}throw Error(`MiniMax usage base URL is invalid: ${J}`)}}async function jJ(){let Z=B0()?.apiKey;if(!Z)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let J=aY(),q=[],X=null;for(let W of J){let D;try{D=await fetch(W,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Z}`,"Content-Type":"application/json","User-Agent":lY()},signal:AbortSignal.timeout(5000)})}catch(P){c0(`[minimax] usage request failed for ${W}: ${P instanceof Error?P.message:String(P)}`,{level:"warn"}),X=P instanceof Error?P:Error(String(P));continue}if(!D.ok){let P=await D.text().catch(()=>"");if([400,401,403,404].includes(D.status)){q.push({status:D.status,body:P});continue}X=Error(`MiniMax usage error ${D.status}: ${P||"unknown error"}`);continue}let N=yJ(await D.json());if(N.availability==="available")return N}if(q.length>0){let W=q[q.length-1];return c0(`[minimax] usage endpoint returned non-fatal status ${W.status}: ${W.body}`,{level:"warn"}),nY(d0)}if(X)throw X;return nY(d0)}var sY=c(()=>{lZ();CY();nQ();wJ();$J()});var tY=c(()=>{$J();sY()});function tQ(Z){let J=Math.max(1,Math.ceil(Z/60000)),q=Math.floor(J/1440),X=Math.floor(J%1440/60),W=J%60;if(q>0)return X>0?`${q}d ${X}h`:`${q}d`;if(X>0)return W>0?`${X}h ${W}m`:`${X}h`;return`${W}m`}function eQ(Z,J){if(!Z)return;let q=Date.parse(Z);if(!Number.isFinite(q))return;let X=q-J;if(X<=0)return"Resetting now";return`Resets in ${tQ(X)}`}function JX({label:Z,usedPercent:J,resetsAt:q,extraSubtext:X,maxWidth:W,nowMs:D}){let N=Math.max(0,Math.min(100,J)),P=`${Math.floor(N)}% used`,M=eQ(q,D),k=[P,X].filter((K)=>Boolean(K));return H(U,{flexDirection:"column",children:[H(V,{children:[Q(V,{bold:!0,children:Z}),M?H(V,{dimColor:!0,children:[" · ",M]}):null]}),H(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:N/100,width:Math.min(sQ,Math.max(1,W)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),k.length>0?Q(V,{dimColor:!0,children:k.join(" · ")}):null]})]})}function ZX({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return H(V,{children:[Q(V,{bold:!0,children:Z}),H(V,{dimColor:!0,children:[" · ",J]})]})}function Jq(){let[Z,J]=P0.useState(null),[q,X]=P0.useState(null),[W,D]=P0.useState(!0),[N,P]=P0.useState(()=>Date.now()),{columns:M}=V0(),k=M-2,K=Math.min(k,80),F=eY.useCallback(async()=>{D(!0),X(null);try{J(await jJ())}catch(O){N0(O),X(O instanceof Error?O.message:"Failed to load MiniMax usage")}finally{D(!1)}},[]);if(P0.useEffect(()=>{F()},[F]),P0.useEffect(()=>{let O=setInterval(()=>{P(Date.now())},aQ);return()=>clearInterval(O)},[]),l("settings:retry",()=>{F()},{context:"Settings",isActive:!!q&&!W}),q)return H(U,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:H(p,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return H(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading MiniMax usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let z=Z.availability==="available"?gJ(Z.snapshots):[];return H(U,{flexDirection:"column",gap:1,width:"100%",children:[Z.planType?H(V,{dimColor:!0,children:["Plan: ",Z.planType]}):null,Z.availability==="unknown"?Q(V,{dimColor:!0,children:Z.message}):z.length===0?Q(V,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,z.map((O,R)=>O.kind==="window"?Q(JX,{label:O.label,usedPercent:O.usedPercent,resetsAt:O.resetsAt,extraSubtext:O.extraSubtext,maxWidth:K,nowMs:N},`${O.label}-${R}`):Q(ZX,{label:O.label,value:O.value},`${O.label}-${R}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var eY,P0,aQ=30000,sQ=18;var Zq=c(()=>{v0();H0();w0();tY();QJ();f0();XJ();TJ();$();eY=j(s(),1),P0=j(s(),1)});function Yq({providerLabel:Z}){return H(U,{flexDirection:"column",gap:1,children:[H(V,{dimColor:!0,children:["Usage details are not currently available for ",Z,"."]}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var qq=c(()=>{H0();f0();$()});function Uq(Z){let J=pJ.c(34),{title:q,limit:X,maxWidth:W,showTimeInReset:D,extraSubtext:N}=Z,P=D===void 0?!0:D,{utilization:M,resets_at:k}=X;if(M===null)return null;let K=`${Math.floor(M)}% used`,F;if(k){let z;if(J[0]!==k||J[1]!==P)z=VJ(k,!0,P),J[0]=k,J[1]=P,J[2]=z;else z=J[2];F=`Resets ${z}`}if(N)if(F)F=`${N} · ${F}`;else F=N;if(W>=62){let z;if(J[3]!==q)z=Q(V,{bold:!0,children:q}),J[3]=q,J[4]=z;else z=J[4];let O=M/100,R;if(J[5]!==O)R=Q(R0,{ratio:O,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[5]=O,J[6]=R;else R=J[6];let A;if(J[7]!==K)A=Q(V,{children:K}),J[7]=K,J[8]=A;else A=J[8];let B;if(J[9]!==R||J[10]!==A)B=H(U,{flexDirection:"row",gap:1,children:[R,A]}),J[9]=R,J[10]=A,J[11]=B;else B=J[11];let E;if(J[12]!==F)E=F&&Q(V,{dimColor:!0,children:F}),J[12]=F,J[13]=E;else E=J[13];let h;if(J[14]!==z||J[15]!==B||J[16]!==E)h=H(U,{flexDirection:"column",children:[z,B,E]}),J[14]=z,J[15]=B,J[16]=E,J[17]=h;else h=J[17];return h}else{let z;if(J[18]!==q)z=Q(V,{bold:!0,children:q}),J[18]=q,J[19]=z;else z=J[19];let O;if(J[20]!==F)O=F&&H(n,{children:[Q(V,{children:" "}),H(V,{dimColor:!0,children:["· ",F]})]}),J[20]=F,J[21]=O;else O=J[21];let R;if(J[22]!==z||J[23]!==O)R=H(V,{children:[z,O]}),J[22]=z,J[23]=O,J[24]=R;else R=J[24];let A=M/100,B;if(J[25]!==W||J[26]!==A)B=Q(R0,{ratio:A,width:W,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[25]=W,J[26]=A,J[27]=B;else B=J[27];let E;if(J[28]!==K)E=Q(V,{children:K}),J[28]=K,J[29]=E;else E=J[29];let h;if(J[30]!==R||J[31]!==B||J[32]!==E)h=H(U,{flexDirection:"column",children:[R,B,E]}),J[30]=R,J[31]=B,J[32]=E,J[33]=h;else h=J[33];return h}}function KX(){let[Z,J]=z0.useState(null),[q,X]=z0.useState(null),[W,D]=z0.useState(!0),{columns:N}=V0(),P=N-2,M=Math.min(P,80),k=Aq.useCallback(async()=>{D(!0),X(null);try{let O=await Lq();J(O)}catch(O){N0(O);let R=O,A=R.response?.data,B=R.response?.status,E;if(A?.error?.type==="rate_limit_error")E=A.error.message||"Rate limited. Please try again later.";else if(A?.error?.message)E=A.error.message;else if(B)E=`HTTP ${B} — ${zq(R.response?.data??{})}`;else E=O?.message||"Failed to load usage data";X(E)}finally{D(!1)}},[]);if(z0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!q&&!W}),q)return H(U,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Could not load Anthropic rate-limit data: ",q]}),Q(V,{dimColor:!0,children:"(cost/usage totals above are unaffected)"}),Q(V,{dimColor:!0,children:H(p,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return H(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=vJ(),F=K==="max"||K==="team"||K===null,z=[{title:"Current session",limit:Z.five_hour},{title:"Current week (all models)",limit:Z.seven_day},...F?[{title:"Current week (Sonnet only)",limit:Z.seven_day_sonnet}]:[]];return H(U,{flexDirection:"column",gap:1,width:"100%",children:[z.some(({limit:O})=>O)||Q(V,{dimColor:!0,children:"/usage is only available for subscription plans."}),z.map(({title:O,limit:R})=>R&&Q(Uq,{title:O,limit:R,maxWidth:M},O)),Z.extra_usage&&Q(OX,{extraUsage:Z.extra_usage,maxWidth:M}),kq()&&Q(Mq,{maxWidth:M}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}function Qq(Z){let{title:J,totalCost:q,apiDuration:X,wallDuration:W,linesAdded:D,linesRemoved:N,modelUsage:P,unknownCost:M}=Z,k=Object.entries(P);if(q===0&&k.length===0&&D===0&&N===0)return null;let K={};for(let[z,O]of k){let R=Nq(z);if(!K[R])K[R]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let A=K[R];A.inputTokens+=O.inputTokens,A.outputTokens+=O.outputTokens,A.cacheReadInputTokens+=O.cacheReadInputTokens,A.cacheCreationInputTokens+=O.cacheCreationInputTokens,A.webSearchRequests+=O.webSearchRequests,A.costUSD+=O.costUSD}let F=Object.entries(K);return H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:J}),H(V,{children:[Q(V,{children:"Total cost: "}),Q(V,{children:n0(q)}),M&&Q(V,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),H(V,{children:["Total duration (API): ",mJ(X)]}),H(V,{children:["Total duration (wall): ",mJ(W)]}),H(V,{children:["Total code changes: ",D," ",D===1?"line":"lines"," added, ",N," ",N===1?"line":"lines"," removed"]}),F.length>0&&Q(V,{children:"Usage by model:"}),F.map(([z,O])=>{let R=`${$0(O.inputTokens)} input, ${$0(O.outputTokens)} output`;if(O.cacheReadInputTokens>0)R+=`, ${$0(O.cacheReadInputTokens)} cache read`;if(O.cacheCreationInputTokens>0)R+=`, ${$0(O.cacheCreationInputTokens)} cache write`;if(O.webSearchRequests>0)R+=`, ${$0(O.webSearchRequests)} web search`;return R+=` (${n0(O.costUSD)})`,H(V,{children:[`${z}:`.padStart(21)," ",R]},z)})]})}function Xq(Z={}){let J=Z.view??"global",[,q]=z0.useReducer((N)=>N+1,0);z0.useEffect(()=>{let N=setInterval(()=>q(),1000);return()=>clearInterval(N)},[]);let X=Hq();if(J==="session"){let N=Gq(),P=Dq(),M=Kq(),k=Oq();return Q(Qq,{title:"Current session",totalCost:N,apiDuration:Vq(),wallDuration:Wq(),linesAdded:M,linesRemoved:k,modelUsage:P,unknownCost:X})}let W=Rq();if(!(W.totalCost!==0||Object.keys(W.modelUsage).length>0||W.totalLinesAdded!==0||W.totalLinesRemoved!==0))return null;return H(U,{flexDirection:"column",gap:1,children:[Q(Qq,{title:"Project total (all sessions)",totalCost:W.totalCost,apiDuration:W.totalAPIDuration,wallDuration:W.totalDuration,linesAdded:W.totalLinesAdded,linesRemoved:W.totalLinesRemoved,modelUsage:W.modelUsage,unknownCost:X}),Q(V,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function cJ(Z={}){if((Z.view??"global")==="session")return Q(U,{flexDirection:"column",gap:1,width:"100%",children:Q(Xq,{view:"session"})});let q=Fq(),X;if(q==="codex")X=Q(pY,{});else if(q==="minimax")X=Q(Jq,{});else if(q!=="firstParty"){let W={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[q]??"this provider";X=Q(Yq,{providerLabel:W})}else X=Q(KX,{});return H(U,{flexDirection:"column",gap:1,width:"100%",children:[Q(Xq,{view:"global"}),X]})}function OX(Z){let J=pJ.c(20),{extraUsage:q,maxWidth:X}=Z,W=vJ();if(!(W==="pro"||W==="max"))return!1;if(!q.is_enabled){if(Pq.isEnabled()){let w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:_J}),Q(V,{dimColor:!0,children:"Extra usage not enabled · /extra-usage to enable"})]}),J[0]=w;else w=J[0];return w}return null}if(q.monthly_limit===null){let w;if(J[1]===Symbol.for("react.memo_cache_sentinel"))w=H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:_J}),Q(V,{dimColor:!0,children:"Unlimited"})]}),J[1]=w;else w=J[1];return w}if(typeof q.used_credits!=="number"||typeof q.utilization!=="number")return null;let N=q.used_credits/100,P;if(J[2]!==N)P=n0(N,2),J[2]=N,J[3]=P;else P=J[3];let M=P,k=q.monthly_limit/100,K;if(J[4]!==k)K=n0(k,2),J[4]=k,J[5]=K;else K=J[5];let F=K,z,O,R,A;if(J[6]!==q.utilization){let w=new Date,d=new Date(w.getFullYear(),w.getMonth()+1,1);z=Uq,A=_J,O=q.utilization,R=d.toISOString(),J[6]=q.utilization,J[7]=z,J[8]=O,J[9]=R,J[10]=A}else z=J[7],O=J[8],R=J[9],A=J[10];let B;if(J[11]!==O||J[12]!==R)B={utilization:O,resets_at:R},J[11]=O,J[12]=R,J[13]=B;else B=J[13];let E=`${M} / ${F} spent`,h;if(J[14]!==z||J[15]!==X||J[16]!==A||J[17]!==B||J[18]!==E)h=Q(z,{title:A,limit:B,showTimeInReset:!1,extraSubtext:E,maxWidth:X}),J[14]=z,J[15]=X,J[16]=A,J[17]=B,J[18]=E,J[19]=h;else h=J[19];return h}var pJ,Aq,z0,_J="Extra usage";var Bq=c(()=>{VX();XX();eZ();SJ();QX();v0();H0();w0();GX();SJ();QJ();qX();YX();f0();XJ();TJ();WX();cY();Zq();qq();$();pJ=j(U0(),1),Aq=j(s(),1),z0=j(s(),1)});function GW(Z){let J=Sq.c(25),{onClose:q,context:X,defaultTab:W}=Z,[D,N]=k0.useState(W),[P,M]=k0.useState(!1),[k,K]=k0.useState(!1),[F,z]=k0.useState(!1),O=C0(),{rows:R}=Eq(V0()),A=O?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[B]=k0.useState(zX);Iq();let E;if(J[0]!==q||J[1]!==P)E=()=>{if(P)return;q("Status dialog dismissed",{display:"system"})},J[0]=q,J[1]=P,J[2]=E;else E=J[2];let h=E,w=!P&&!(D==="Config"&&k)&&!(D==="Gates"&&F),d;if(J[3]!==w)d={context:"Settings",isActive:w},J[3]=w,J[4]=d;else d=J[4];l("confirm:no",h,d);let t;if(J[5]!==X||J[6]!==B)t=Q(l0,{title:"Status",children:Q(NZ,{context:X,diagnosticsPromise:B})},"status"),J[5]=X,J[6]=B,J[7]=t;else t=J[7];let _;if(J[8]!==A||J[9]!==X||J[10]!==q)_=Q(l0,{title:"Config",children:Q(k0.Suspense,{fallback:null,children:Q(MY,{context:X,onClose:q,setTabsHidden:M,onIsSearchModeChange:K,contentHeight:A})})},"config"),J[8]=A,J[9]=X,J[10]=q,J[11]=_;else _=J[11];let F0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))F0=[Q(l0,{title:"Usage",children:Q(cJ,{view:"global"})},"usage"),Q(l0,{title:"Session",children:Q(cJ,{view:"session"})},"session")],J[12]=F0;else F0=J[12];let i;if(J[13]!==A)i=[],J[13]=A,J[14]=i;else i=J[14];let q0;if(J[15]!==t||J[16]!==_||J[17]!==i)q0=[t,_,...F0,...i],J[15]=t,J[16]=_,J[17]=i,J[18]=q0;else q0=J[18];let r=q0,Q0=W!=="Config"&&W!=="Gates",j0=P||O?void 0:A,I0;if(J[19]!==D||J[20]!==j0||J[21]!==Q0||J[22]!==r||J[23]!==P)I0=Q(fq,{color:"permission",children:Q(Cq,{color:"permission",selectedTab:D,onTabChange:N,hidden:P,initialHeaderFocused:Q0,contentHeight:j0,children:r})}),J[19]=D,J[20]=j0,J[21]=Q0,J[22]=r,J[23]=P,J[24]=I0;else I0=J[24];return I0}function zX(){return FZ().catch(FX)}function FX(){return[]}var Sq,k0;var NX=c(()=>{w0();HX();v0();zJ();DX();DY();RZ();AY();Bq();$();Sq=j(U0(),1),k0=j(s(),1)});
3
- export{GW as og,NX as pg};
@@ -1,4 +0,0 @@
1
- import{kg as g,lg as My}from"./cli-0.6.5-xngsek99.mjs";import{tg as by,vg as GG}from"./cli-0.6.5-sph3w6xt.mjs";import{fi as Xy,hi as Zy,ii as oy}from"./cli-0.6.5-thfwpyjp.mjs";import{Ck as gy,Cn as $y,GJ as ey,Hq as Qy,JQ as jy,NJ as Oy,Pq as xy,QE as d,RE as ry,RJ as yG,Sr as v,VE as i,WE as Ly,_Q as Hy,_r as ly,kw as Wy,ln as e,nJ as j,nn as yy,nw as ay,oJ as ty,pn as Gy,sn as ky,su as U,tR as qG,tn as qy,tu as _y,un as zy,wJ as Ny,wn as Iy,wq as Jy,yk as t}from"./cli-0.6.5-5t6d3asz.mjs";import{UU as Ry,VU as cy}from"./cli-0.6.5-qhq9tmd4.mjs";import{BW as kG,vW as wy,wW as Py,xW as Uy}from"./cli-0.6.5-6x91apzw.mjs";import{HW as Ky,NW as ny}from"./cli-0.6.5-2dq7pa8p.mjs";import{AY as sy,BY as L,DY as E,gX as Yy,gZ as hy,zY as Q}from"./cli-0.6.5-f71ncwzk.mjs";import{m1 as N,n1 as u,o1 as C}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as Fy}from"./cli-0.6.5-vqb4jtcr.mjs";import{C5 as h,O3 as n,P3 as c,V5 as iy,m4 as dy}from"./cli-0.6.5-c7yx03g7.mjs";import{p6 as _,q6 as Dy}from"./cli-0.6.5-3ybp7ww7.mjs";import{G8 as a,Jaa as o,Lba as w,N8 as fy,Oaa as r,Oba as q,P8 as P,Paa as T,Q8 as Ay,Yaa as Ey,hca as M,x_ as J,z_ as uy}from"./cli-0.6.5-ef6b5qvc.mjs";import{Nea as Z,Yea as f,Zea as A}from"./cli-0.6.5-kac7d6qe.mjs";import{lga as D,oga as By}from"./cli-0.6.5-6qvtcs5y.mjs";import{oha as l,rha as py}from"./cli-0.6.5-q4gh8d4w.mjs";import{lpa as p}from"./cli-0.6.5-bm7v9qp0.mjs";hy();A();By();M();ry();My();Ly();C();var s=p(Yy(),1),F=p(Fy(),1),Sy={enable_shortcut_tip:!1,enable_startup_dialog:!1};function S(){return f("tengu_desktop_upsell",Sy)}function Ty(){return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}function bG(){if(!Ty())return!1;if(!S().enable_startup_dialog)return!1;let y=q();if(y.desktopUpsellDismissed)return!1;if((y.desktopUpsellSeenCount??0)>=3)return!1;return!0}function wG(y){let G=s.c(14),{onDone:k}=y,[z,X]=F.useState(!1),W;if(G[0]===Symbol.for("react.memo_cache_sentinel"))W=[],G[0]=W;else W=G[0];if(F.useEffect(Cy,W),z){let b;if(G[1]!==k)b=N(g,{onDone:()=>k()}),G[1]=k,G[2]=b;else b=G[2];return b}let O;if(G[3]!==k)O=function(my){switch(my){case"try":{X(!0);return}case"never":{w(vy),k();return}case"not-now":{k();return}}},G[3]=k,G[4]=O;else O=G[4];let I=O,K;if(G[5]===Symbol.for("react.memo_cache_sentinel"))K={label:"Open in Claude Code Desktop",value:"try"},G[5]=K;else K=G[5];let H;if(G[6]===Symbol.for("react.memo_cache_sentinel"))H={label:"Not now",value:"not-now"},G[6]=H;else H=G[6];let V;if(G[7]===Symbol.for("react.memo_cache_sentinel"))V=[K,H,{label:"Don't ask again",value:"never"}],G[7]=V;else V=G[7];let Vy=V,m;if(G[8]===Symbol.for("react.memo_cache_sentinel"))m=N(L,{marginBottom:1,children:N(E,{children:"Same Claude Code with visual diffs, live app preview, parallel sessions, and more."})}),G[8]=m;else m=G[8];let R;if(G[9]!==I)R=()=>I("not-now"),G[9]=I,G[10]=R;else R=G[10];let B;if(G[11]!==I||G[12]!==R)B=N(i,{title:"Try Claude Code Desktop",children:u(L,{flexDirection:"column",paddingX:2,paddingY:1,children:[m,N(d,{options:Vy,onChange:I,onCancel:R})]})}),G[11]=I,G[12]=R,G[13]=B;else B=G[13];return B}function vy(y){if(y.desktopUpsellDismissed)return y;return{...y,desktopUpsellDismissed:!0}}function Cy(){let y=(q().desktopUpsellSeenCount??0)+1;w((G)=>{if((G.desktopUpsellSeenCount??0)>=y)return G;return{...G,desktopUpsellSeenCount:y}}),D("tengu_desktop_upsell_shown",{seen_count:y})}M();function HG(y){let G=q().numStartups;w((k)=>{let z=k.tipsHistory??{};if(z[y]===G)return k;return{...k,tipsHistory:{...z,[y]:G}}})}function $(y){let G=q(),k=G.tipsHistory?.[y];if(!k)return 1/0;return G.numStartups-k}Dy();py();ly();Ey();ny();sy();GG();_y();gy();iy();cy();M();xy();uy();ay();fy();$y();dy();Ay();yG();ey();ty();qG();A();oy();kG();var Y;async function zG(){if(Y!==void 0)return Y;let y=await Ny();return Y=j in y,Y}async function x(y,G,k){if(!await zG())return!1;if(Oy(`${y}@${j}`))return!1;let{bashTools:z}=G??{};if(k.cli&&z?.size){if(k.cli.some((X)=>z.has(X)))return!0}if(k.filePath&&G?.readFileState){if(Wy(G.readFileState).some((W)=>k.filePath.test(W)))return!0}return!1}var IG=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claude to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return q().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${U("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=q();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=q(),G=T(),k=Boolean(y.lastPlanModeUse),z=Boolean(G?.permissions?.defaultMode);return k&&!z}catch(y){return l(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claude sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=q();return await a()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=q();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claude sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(jy())return!1;return await Ry()>=2}},{id:"terminal-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=q();if(J.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>J.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=q();return Boolean((J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!Ky())return!1;let y=q();return!(J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claude memory",cooldownSessions:15,async isRelevant(){return q().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&_.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>P()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>T().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claude is working.",cooldownSessions:5,async isRelevant(){return q().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claude while it works to steer Claude in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claude to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${J.terminal==="vscode"?"code":J.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!e())return!1;if(P()!=="macos")return!1;switch(J.terminal){case"vscode":return!await zy();case"cursor":return!await ky();case"windsurf":return!await qy();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claude to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(yy())return!1;if((await Gy()).length!==0)return!1;return(await Iy()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!q().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!q().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return q().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!J.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claude Code using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>P()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!v()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>v()},{id:"continue",content:async()=>"Run claude --continue or claude --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>Hy()&&q().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return q().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${U("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${U("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"desktop-app",content:async()=>"Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop",cooldownSessions:15,isRelevant:async()=>P()!=="linux"},{id:"desktop-shortcut",content:async(y)=>{return`Continue your session in Claude Code Desktop with ${Q("suggestion",y.theme)("/desktop")}`},cooldownSessions:15,isRelevant:async()=>{if(!S().enable_shortcut_tip)return!1;return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}},{id:"web-app",content:async()=>"Run tasks in the cloud while you keep coding locally · clau.de/web",cooldownSessions:15,isRelevant:async()=>!0},{id:"mobile-app",content:async()=>"/mobile to use Claude Code from the Claude app on your phone",cooldownSessions:15,isRelevant:async()=>!0},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${U("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=q(),k=n()==="opusplan",z=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return k&&z>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
- ${Q("suggestion",y.theme)(`/plugin install frontend-design@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>x("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
3
- ${Q("suggestion",y.theme)(`/plugin install vercel@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>x("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let k=Q("suggestion",y.theme)("/effort high");return Z("tengu_tide_elm","off")==="copy_b"?`Use ${k} for better one-shot answers. Claude thinks it through first.`:`Working on something tricky? ${k} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!Jy(c()))return!1;if(o("policySettings")?.effortLevel!==void 0)return!1;if(Qy()!==void 0)return!1;let y=r().effortLevel;if(y==="high"||y==="max")return!1;return Z("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return Z("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claude to ${G("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${G('"fan out subagents"')} and Claude sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;return Z("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return Z("tengu_timber_lark","off")==="copy_b"?`Use ${G("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${G("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!t())return!1;return Z("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let G=Q("claude",y.theme),k=Uy();return k?`Share Claude Code and earn ${G(Py(k))} of extra usage · ${G("/passes")}`:`You have free guest passes to share · ${G("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(q().hasVisitedPasses)return!1;let{eligible:G}=wy();return G}},{id:"overage-credit",content:async(y)=>{let G=Q("claude",y.theme),k=Xy(),z=k?Zy(k):null;if(!z)return"";return`${G(`${z} in extra usage, on us`)} · third-party apps · ${G("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>by()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return q().numStartups>5}}],JG=[];function QG(){let G=r().spinnerTipsOverride;if(!G?.tips?.length)return[];return G.tips.map((k,z)=>({id:`custom-tip-${z}`,content:async()=>k,cooldownSessions:0,isRelevant:async()=>!0}))}async function nG(y){let k=r().spinnerTipsOverride,z=QG();if(k?.excludeDefault&&z.length>0)return z;let X=[...IG,...JG],W=await Promise.all(X.map((I)=>I.isRelevant(y)));return[...X.filter((I,K)=>W[K]).filter((I)=>$(I.id)>=I.cooldownSessions),...z]}
4
- export{bG as La,wG as Ma,HG as Na,$ as Oa,nG as Pa};
@@ -1,2 +0,0 @@
1
- import{npa as j}from"./cli-0.6.5-bm7v9qp0.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.7"});
2
- export{Lt as p1};
@@ -1,2 +0,0 @@
1
- import{Me as R,Oe as d}from"./cli-0.6.5-6e6pv00e.mjs";import{$Z as j,c0 as c}from"./cli-0.6.5-n4hnag3x.mjs";import{oha as K,rha as D}from"./cli-0.6.5-q4gh8d4w.mjs";import{Iha as C,Pha as h}from"./cli-0.6.5-ce51qb6k.mjs";import{ppa as I,qpa as J}from"./cli-0.6.5-bm7v9qp0.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.6.5-cq4yrhn2.mjs"),{getOrganizationUUID:Z}=await import("./client-0.6.5-kcsx56gb.mjs"),{getOauthConfig:V}=await import("./oauth-0.6.5-d8r75abq.mjs"),{getOAuthHeaders:P}=await import("./api-0.6.5-vfnxfssn.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.6.5-ymk4cd49.mjs"),{getDefaultBranch:_}=await import("./git-0.6.5-kd4a5hgs.mjs"),{getMainLoopModel:M}=await import("./model-0.6.5-rpyjsh6m.mjs"),{default:T}=await import("./index-0.6.5-m5ejvtqa.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.6.5-ymk4cd49.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.5-cq4yrhn2.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.5-kcsx56gb.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.5-d8r75abq.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.5-vfnxfssn.mjs"),{default:G}=await import("./index-0.6.5-m5ejvtqa.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.5-cq4yrhn2.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.5-kcsx56gb.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.5-d8r75abq.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.5-vfnxfssn.mjs"),{default:G}=await import("./index-0.6.5-m5ejvtqa.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.6.5-cq4yrhn2.mjs"),{getOrganizationUUID:Y}=await import("./client-0.6.5-kcsx56gb.mjs"),{getOauthConfig:z}=await import("./oauth-0.6.5-d8r75abq.mjs"),{getOAuthHeaders:G}=await import("./api-0.6.5-vfnxfssn.mjs"),{default:L}=await import("./index-0.6.5-m5ejvtqa.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
2
- export{i as De,r as Ee,t as Fe,o as Ge,p as He};
@@ -1,2 +0,0 @@
1
- import{eO as x,hO as B}from"./cli-0.6.5-5t6d3asz.mjs";import{ppa as z}from"./cli-0.6.5-bm7v9qp0.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
2
- export{G as Wf,H as Xf,A as Yf};
@@ -1,2 +0,0 @@
1
- import{O7 as B,Q7 as p}from"./cli-0.6.5-ef6b5qvc.mjs";import{lga as C,oga as y}from"./cli-0.6.5-6qvtcs5y.mjs";import{Uga as T,Yga as x,oha as V,rha as M}from"./cli-0.6.5-q4gh8d4w.mjs";import{Iha as L,Pha as c}from"./cli-0.6.5-ce51qb6k.mjs";y();M();p();c();x();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function h(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function E(W){let Z=h(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,j=1800000,H=3,R=60000;function I({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let O=new Map,v=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=E(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=O.get(q);if(X)clearTimeout(X);let J=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),K(q,J);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,J);O.set(q,k)}function D(q,Q){let $=O.get(q);if($)clearTimeout($);let X=U(q),J=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(J)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(K,J,q,X);O.set(q,Y)}async function K(q,Q){let $;try{$=await W()}catch(J){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(J)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let J=(v.get(q)??0)+1;if(v.set(q,J),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${J}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),J<H){let Y=setTimeout(K,R,q,Q);O.set(q,Y)}return}v.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("tengu_bridge_token_refreshed",{}),Z(q,$);let X=setTimeout(K,j,q,Q);O.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=O.get(q);if(Q)clearTimeout(Q),O.delete(q);v.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of O.values())clearTimeout(q);O.clear(),v.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
- export{E as ob,I as pb};
@@ -1,2 +0,0 @@
1
- import{npa as I,ppa as YJ}from"./cli-0.6.5-bm7v9qp0.mjs";var N=I((FJ,Iq)=>{var K1=Number.MAX_SAFE_INTEGER||9007199254740991,j1=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Iq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:K1,RELEASE_TYPES:j1,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var S=I((OJ,Hq)=>{var z1=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Hq.exports=z1});var C=I((L,wq)=>{var{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:Y1,MAX_LENGTH:U1}=N(),F1=S();L=wq.exports={};var O1=L.re=[],I1=L.safeRe=[],j=L.src=[],H1=L.safeSrc=[],z=L.t={},w1=0,r="[a-zA-Z0-9-]",y1=[["\\s",1],["\\d",U1],[r,Y1]],B1=(q)=>{for(let[$,J]of y1)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=B1($),W=w1++;F1(q,W,$),z[q]=W,j[W]=$,H1[W]=Q,O1[W]=new RegExp($,J?"g":void 0),I1[W]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${r}*`);w("MAINVERSION",`(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})`);w("MAINVERSIONLOOSE",`(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASEIDENTIFIER",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIER]})`);w("PRERELEASEIDENTIFIERLOOSE",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASE",`(?:-(${j[z.PRERELEASEIDENTIFIER]}(?:\\.${j[z.PRERELEASEIDENTIFIER]})*))`);w("PRERELEASELOOSE",`(?:-?(${j[z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${j[z.PRERELEASEIDENTIFIERLOOSE]})*))`);w("BUILDIDENTIFIER",`${r}+`);w("BUILD",`(?:\\+(${j[z.BUILDIDENTIFIER]}(?:\\.${j[z.BUILDIDENTIFIER]})*))`);w("FULLPLAIN",`v?${j[z.MAINVERSION]}${j[z.PRERELEASE]}?${j[z.BUILD]}?`);w("FULL",`^${j[z.FULLPLAIN]}$`);w("LOOSEPLAIN",`[v=\\s]*${j[z.MAINVERSIONLOOSE]}${j[z.PRERELEASELOOSE]}?${j[z.BUILD]}?`);w("LOOSE",`^${j[z.LOOSEPLAIN]}$`);w("GTLT","((?:<|>)?=?)");w("XRANGEIDENTIFIERLOOSE",`${j[z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);w("XRANGEIDENTIFIER",`${j[z.NUMERICIDENTIFIER]}|x|X|\\*`);w("XRANGEPLAIN",`[v=\\s]*(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:${j[z.PRERELEASE]})?${j[z.BUILD]}?)?)?`);w("XRANGEPLAINLOOSE",`[v=\\s]*(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:${j[z.PRERELEASELOOSE]})?${j[z.BUILD]}?)?)?`);w("XRANGE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAIN]}$`);w("XRANGELOOSE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAINLOOSE]}$`);w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`);w("COERCE",`${j[z.COERCEPLAIN]}(?:$|[^\\d])`);w("COERCEFULL",j[z.COERCEPLAIN]+`(?:${j[z.PRERELEASE]})?(?:${j[z.BUILD]})?(?:$|[^\\d])`);w("COERCERTL",j[z.COERCE],!0);w("COERCERTLFULL",j[z.COERCEFULL],!0);w("LONETILDE","(?:~>?)");w("TILDETRIM",`(\\s*)${j[z.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";w("TILDE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAIN]}$`);w("TILDELOOSE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAINLOOSE]}$`);w("LONECARET","(?:\\^)");w("CARETTRIM",`(\\s*)${j[z.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";w("CARET",`^${j[z.LONECARET]}${j[z.XRANGEPLAIN]}$`);w("CARETLOOSE",`^${j[z.LONECARET]}${j[z.XRANGEPLAINLOOSE]}$`);w("COMPARATORLOOSE",`^${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]})$|^$`);w("COMPARATOR",`^${j[z.GTLT]}\\s*(${j[z.FULLPLAIN]})$|^$`);w("COMPARATORTRIM",`(\\s*)${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]}|${j[z.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";w("HYPHENRANGE",`^\\s*(${j[z.XRANGEPLAIN]})\\s+-\\s+(${j[z.XRANGEPLAIN]})\\s*$`);w("HYPHENRANGELOOSE",`^\\s*(${j[z.XRANGEPLAINLOOSE]})\\s+-\\s+(${j[z.XRANGEPLAINLOOSE]})\\s*$`);w("STAR","(<|>)?=?\\s*\\*");w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var b=I((IJ,yq)=>{var x1=Object.freeze({loose:!0}),D1=Object.freeze({}),G1=(q)=>{if(!q)return D1;if(typeof q!=="object")return x1;return q};yq.exports=G1});var o=I((HJ,Dq)=>{var Bq=/^[0-9]+$/,xq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=Bq.test(q),Q=Bq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},V1=(q,$)=>xq($,q);Dq.exports={compareIdentifiers:xq,rcompareIdentifiers:V1}});var D=I((wJ,Vq)=>{var h=S(),{MAX_LENGTH:Gq,MAX_SAFE_INTEGER:f}=N(),{safeRe:v,t:d}=C(),X1=b(),{compareIdentifiers:e}=o(),P1=(q,$)=>{let J=$.split(".");if(J.length>q.length)return!1;for(let Q=0;Q<J.length;Q++)if(e(q[Q],J[Q])!==0)return!1;return!0};class A{constructor(q,$){if($=X1($),q instanceof A)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>Gq)throw TypeError(`version is longer than ${Gq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?v[d.LOOSE]:v[d.FULL]);if(!J)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>f||this.major<0)throw TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let W=+Q;if(W>=0&&W<f)return W}return Q});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(h("SemVer.compare",this.version,this.options,q),!(q instanceof A)){if(typeof q==="string"&&q===this.version)return 0;q=new A(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof A))q=new A(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof A))q=new A(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let $=0;do{let J=this.prerelease[$],Q=q.prerelease[$];if(h("prerelease compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof A))q=new A(q,this.options);let $=0;do{let J=this.build[$],Q=q.build[$];if(h("build compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}inc(q,$,J){if(q.startsWith("pre")){if(!$&&J===!1)throw Error("invalid increment argument: identifier is empty");if($){let Q=`-${$}`.match(this.options.loose?v[d.PRERELEASELOOSE]:v[d.PRERELEASE]);if(!Q||Q[1]!==$)throw Error(`invalid identifier: ${$}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$,J),this.inc("pre",$,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",$,J);this.inc("pre",$,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let W=this.prerelease.length;while(--W>=0)if(typeof this.prerelease[W]==="number")this.prerelease[W]++,W=-2;if(W===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let W=[$,Q];if(J===!1)W=[$];if(P1(this.prerelease,$)){let Z=this.prerelease[$.split(".").length];if(isNaN(Z))this.prerelease=W}else this.prerelease=W}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Vq.exports=A});var E=I((yJ,Pq)=>{var Xq=D(),_1=(q,$,J=!1)=>{if(q instanceof Xq)return q;try{return new Xq(q,$)}catch(Q){if(!J)return null;throw Q}};Pq.exports=_1});var Aq=I((BJ,_q)=>{var A1=E(),L1=(q,$)=>{let J=A1(q,$);return J?J.version:null};_q.exports=L1});var Eq=I((xJ,Lq)=>{var E1=E(),N1=(q,$)=>{let J=E1(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Lq.exports=N1});var Sq=I((DJ,Cq)=>{var Nq=D(),C1=(q,$,J,Q,W)=>{if(typeof J==="string")W=Q,Q=J,J=void 0;try{return new Nq(q instanceof Nq?q.version:q,J).inc($,Q,W).version}catch(Z){return null}};Cq.exports=C1});var uq=I((GJ,kq)=>{var Rq=E(),S1=(q,$)=>{let J=Rq(q,null,!0),Q=Rq($,null,!0),W=J.compare(Q);if(W===0)return null;let Z=W>0,K=Z?J:Q,Y=Z?Q:J,U=!!K.prerelease.length;if(!!Y.prerelease.length&&!U){if(!Y.patch&&!Y.minor)return"major";if(Y.compareMain(K)===0){if(Y.minor&&!Y.patch)return"minor";return"patch"}}let F=U?"pre":"";if(J.major!==Q.major)return F+"major";if(J.minor!==Q.minor)return F+"minor";if(J.patch!==Q.patch)return F+"patch";return"prerelease"};kq.exports=S1});var Mq=I((VJ,Tq)=>{var R1=D(),k1=(q,$)=>new R1(q,$).major;Tq.exports=k1});var hq=I((XJ,bq)=>{var u1=D(),T1=(q,$)=>new u1(q,$).minor;bq.exports=T1});var vq=I((PJ,fq)=>{var M1=D(),b1=(q,$)=>new M1(q,$).patch;fq.exports=b1});var lq=I((_J,dq)=>{var h1=E(),f1=(q,$)=>{let J=h1(q,$);return J&&J.prerelease.length?J.prerelease:null};dq.exports=f1});var P=I((AJ,cq)=>{var gq=D(),v1=(q,$,J)=>new gq(q,J).compare(new gq($,J));cq.exports=v1});var pq=I((LJ,mq)=>{var d1=P(),l1=(q,$,J)=>d1($,q,J);mq.exports=l1});var aq=I((EJ,sq)=>{var g1=P(),c1=(q,$)=>g1(q,$,!0);sq.exports=c1});var l=I((NJ,iq)=>{var nq=D(),m1=(q,$,J)=>{let Q=new nq(q,J),W=new nq($,J);return Q.compare(W)||Q.compareBuild(W)};iq.exports=m1});var rq=I((CJ,tq)=>{var p1=l(),s1=(q,$)=>q.sort((J,Q)=>p1(J,Q,$));tq.exports=s1});var eq=I((SJ,oq)=>{var a1=l(),n1=(q,$)=>q.sort((J,Q)=>a1(Q,J,$));oq.exports=n1});var R=I((RJ,q0)=>{var i1=P(),t1=(q,$,J)=>i1(q,$,J)>0;q0.exports=t1});var g=I((kJ,$0)=>{var r1=P(),o1=(q,$,J)=>r1(q,$,J)<0;$0.exports=o1});var qq=I((uJ,J0)=>{var e1=P(),q$=(q,$,J)=>e1(q,$,J)===0;J0.exports=q$});var $q=I((TJ,Q0)=>{var $$=P(),J$=(q,$,J)=>$$(q,$,J)!==0;Q0.exports=J$});var c=I((MJ,W0)=>{var Q$=P(),W$=(q,$,J)=>Q$(q,$,J)>=0;W0.exports=W$});var m=I((bJ,Z0)=>{var Z$=P(),K$=(q,$,J)=>Z$(q,$,J)<=0;Z0.exports=K$});var Jq=I((hJ,K0)=>{var j$=qq(),z$=$q(),Y$=R(),U$=c(),F$=g(),O$=m(),I$=(q,$,J,Q)=>{switch($){case"===":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q===J;case"!==":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q!==J;case"":case"=":case"==":return j$(q,J,Q);case"!=":return z$(q,J,Q);case">":return Y$(q,J,Q);case">=":return U$(q,J,Q);case"<":return F$(q,J,Q);case"<=":return O$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};K0.exports=I$});var z0=I((fJ,j0)=>{var H$=D(),w$=E(),{safeRe:p,t:s}=C(),y$=(q,$)=>{if(q instanceof H$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?p[s.COERCEFULL]:p[s.COERCE]);else{let U=$.includePrerelease?p[s.COERCERTLFULL]:p[s.COERCERTL],H;while((H=U.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||H.index+H[0].length!==J.index+J[0].length)J=H;U.lastIndex=H.index+H[1].length+H[2].length}U.lastIndex=-1}if(J===null)return null;let Q=J[2],W=J[3]||"0",Z=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",Y=$.includePrerelease&&J[6]?`+${J[6]}`:"";return w$(`${Q}.${W}.${Z}${K}${Y}`,$)};j0.exports=y$});var U0=I((vJ,Y0)=>{var B$=E(),x$=N(),D$=D(),G$=(q,$,J)=>{if(!x$.RELEASE_TYPES.includes($))return null;let Q=V$(q,J);return Q&&X$(Q,$)},V$=(q,$)=>{let J=q instanceof D$?q.version:q;return B$(J,$)},X$=(q,$)=>{if(P$($))return q.version;switch(q.prerelease=[],$){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},P$=(q)=>{return q.startsWith("pre")};Y0.exports=G$});var I0=I((dJ,O0)=>{class F0{constructor(){this.max=1000,this.map=new Map}get(q){let $=this.map.get(q);if($===void 0)return;else return this.map.delete(q),this.map.set(q,$),$}delete(q){return this.map.delete(q)}set(q,$){if(!this.delete(q)&&$!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,$)}return this}}O0.exports=F0});var _=I((lJ,B0)=>{var _$=/\s+/g;class k{constructor(q,$){if($=L$($),q instanceof k)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else return new k(q.raw,$);if(q instanceof Qq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=q.trim().replace(_$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((Q)=>!w0(Q[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&M$(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let $=this.set[q];for(let J=0;J<$.length;J++){if(J>0)this.formatted+=" ";this.formatted+=$[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(T$,"");let J=((this.options.includePrerelease&&k$)|(this.options.loose&&u$))+":"+q,Q=H0.get(J);if(Q)return Q;let W=this.options.loose,Z=W?V[G.HYPHENRANGELOOSE]:V[G.HYPHENRANGE];q=q.replace(Z,p$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(V[G.COMPARATORTRIM],C$),B("comparator trim",q),q=q.replace(V[G.TILDETRIM],S$),B("tilde trim",q),q=q.replace(V[G.CARETTRIM],R$),B("caret trim",q);let K=q.split(" ").map((F)=>b$(F,this.options)).join(" ").split(/\s+/).map((F)=>m$(F,this.options));if(W)K=K.filter((F)=>{return B("loose invalid filter",F,this.options),!!F.match(V[G.COMPARATORLOOSE])});B("range list",K);let Y=new Map,U=K.map((F)=>new Qq(F,this.options));for(let F of U){if(w0(F))return[F];Y.set(F.value,F)}if(Y.size>1&&Y.has(""))Y.delete("");let H=[...Y.values()];return H0.set(J,H),H}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return y0(J,$)&&q.set.some((Q)=>{return y0(Q,$)&&J.every((W)=>{return Q.every((Z)=>{return W.intersects(Z,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new E$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(s$(this.set[$],q,this.options))return!0;return!1}}B0.exports=k;var A$=I0(),H0=new A$,L$=b(),Qq=u(),B=S(),E$=D(),{safeRe:V,src:N$,t:G,comparatorTrimReplace:C$,tildeTrimReplace:S$,caretTrimReplace:R$}=C(),{FLAG_INCLUDE_PRERELEASE:k$,FLAG_LOOSE:u$}=N(),T$=new RegExp(N$[G.BUILD],"g"),w0=(q)=>q.value==="<0.0.0-0",M$=(q)=>q.value==="",y0=(q,$)=>{let J=!0,Q=q.slice(),W=Q.pop();while(J&&Q.length)J=Q.every((Z)=>{return W.intersects(Z,$)}),W=Q.pop();return J},b$=(q,$)=>{return q=q.replace(V[G.BUILD],""),B("comp",q,$),q=v$(q,$),B("caret",q),q=h$(q,$),B("tildes",q),q=l$(q,$),B("xrange",q),q=c$(q,$),B("stars",q),q},X=(q)=>!q||q.toLowerCase()==="x"||q==="*",h$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>f$(J,$)).join(" ")},f$=(q,$)=>{let J=$.loose?V[G.TILDELOOSE]:V[G.TILDE];return q.replace(J,(Q,W,Z,K,Y)=>{B("tilde",q,Q,W,Z,K,Y);let U;if(X(W))U="";else if(X(Z))U=`>=${W}.0.0 <${+W+1}.0.0-0`;else if(X(K))U=`>=${W}.${Z}.0 <${W}.${+Z+1}.0-0`;else if(Y)B("replaceTilde pr",Y),U=`>=${W}.${Z}.${K}-${Y} <${W}.${+Z+1}.0-0`;else U=`>=${W}.${Z}.${K} <${W}.${+Z+1}.0-0`;return B("tilde return",U),U})},v$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>d$(J,$)).join(" ")},d$=(q,$)=>{B("caret",q,$);let J=$.loose?V[G.CARETLOOSE]:V[G.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(W,Z,K,Y,U)=>{B("caret",q,W,Z,K,Y,U);let H;if(X(Z))H="";else if(X(K))H=`>=${Z}.0.0${Q} <${+Z+1}.0.0-0`;else if(X(Y))if(Z==="0")H=`>=${Z}.${K}.0${Q} <${Z}.${+K+1}.0-0`;else H=`>=${Z}.${K}.0${Q} <${+Z+1}.0.0-0`;else if(U)if(B("replaceCaret pr",U),Z==="0")if(K==="0")H=`>=${Z}.${K}.${Y}-${U} <${Z}.${K}.${+Y+1}-0`;else H=`>=${Z}.${K}.${Y}-${U} <${Z}.${+K+1}.0-0`;else H=`>=${Z}.${K}.${Y}-${U} <${+Z+1}.0.0-0`;else if(B("no pr"),Z==="0")if(K==="0")H=`>=${Z}.${K}.${Y}${Q} <${Z}.${K}.${+Y+1}-0`;else H=`>=${Z}.${K}.${Y}${Q} <${Z}.${+K+1}.0-0`;else H=`>=${Z}.${K}.${Y} <${+Z+1}.0.0-0`;return B("caret return",H),H})},l$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>g$(J,$)).join(" ")},g$=(q,$)=>{q=q.trim();let J=$.loose?V[G.XRANGELOOSE]:V[G.XRANGE];return q.replace(J,(Q,W,Z,K,Y,U)=>{B("xRange",q,Q,W,Z,K,Y,U);let H=X(Z),F=H||X(K),y=F||X(Y),x=y;if(W==="="&&x)W="";if(U=$.includePrerelease?"-0":"",H)if(W===">"||W==="<")Q="<0.0.0-0";else Q="*";else if(W&&x){if(F)K=0;if(Y=0,W===">")if(W=">=",F)Z=+Z+1,K=0,Y=0;else K=+K+1,Y=0;else if(W==="<=")if(W="<",F)Z=+Z+1;else K=+K+1;if(W==="<")U="-0";Q=`${W+Z}.${K}.${Y}${U}`}else if(F)Q=`>=${Z}.0.0${U} <${+Z+1}.0.0-0`;else if(y)Q=`>=${Z}.${K}.0${U} <${Z}.${+K+1}.0-0`;return B("xRange return",Q),Q})},c$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(V[G.STAR],"")},m$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(V[$.includePrerelease?G.GTE0PRE:G.GTE0],"")},p$=(q)=>($,J,Q,W,Z,K,Y,U,H,F,y,x)=>{if(X(Q))J="";else if(X(W))J=`>=${Q}.0.0${q?"-0":""}`;else if(X(Z))J=`>=${Q}.${W}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(X(H))U="";else if(X(F))U=`<${+H+1}.0.0-0`;else if(X(y))U=`<${H}.${+F+1}.0-0`;else if(x)U=`<=${H}.${F}.${y}-${x}`;else if(q)U=`<${H}.${F}.${+y+1}-0`;else U=`<=${U}`;return`${J} ${U}`.trim()},s$=(q,$,J)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test($))return!1;if($.prerelease.length&&!J.includePrerelease){for(let Q=0;Q<q.length;Q++){if(B(q[Q].semver),q[Q].semver===Qq.ANY)continue;if(q[Q].semver.prerelease.length>0){let W=q[Q].semver;if(W.major===$.major&&W.minor===$.minor&&W.patch===$.patch)return!0}}return!1}return!0}});var u=I((gJ,P0)=>{var T=Symbol("SemVer ANY");class a{static get ANY(){return T}constructor(q,$){if($=x0($),q instanceof a)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Zq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Zq("comp",this)}parse(q){let $=this.options.loose?D0[G0.COMPARATORLOOSE]:D0[G0.COMPARATOR],J=q.match($);if(!J)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=T;else this.semver=new V0(J[2],this.options.loose)}toString(){return this.value}test(q){if(Zq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new V0(q,this.options)}catch($){return!1}return Wq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof a))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new X0(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new X0(this.value,$).test(q.semver)}if($=x0($),$.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!$.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Wq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Wq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}P0.exports=a;var x0=b(),{safeRe:D0,t:G0}=C(),Wq=Jq(),Zq=S(),V0=D(),X0=_()});var M=I((cJ,_0)=>{var a$=_(),n$=(q,$,J)=>{try{$=new a$($,J)}catch(Q){return!1}return $.test(q)};_0.exports=n$});var L0=I((mJ,A0)=>{var i$=_(),t$=(q,$)=>new i$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));A0.exports=t$});var N0=I((pJ,E0)=>{var r$=D(),o$=_(),e$=(q,$,J)=>{let Q=null,W=null,Z=null;try{Z=new o$($,J)}catch(K){return null}return q.forEach((K)=>{if(Z.test(K)){if(!Q||W.compare(K)===-1)Q=K,W=new r$(Q,J)}}),Q};E0.exports=e$});var S0=I((sJ,C0)=>{var q9=D(),$9=_(),J9=(q,$,J)=>{let Q=null,W=null,Z=null;try{Z=new $9($,J)}catch(K){return null}return q.forEach((K)=>{if(Z.test(K)){if(!Q||W.compare(K)===1)Q=K,W=new q9(Q,J)}}),Q};C0.exports=J9});var u0=I((aJ,k0)=>{var Kq=D(),Q9=_(),R0=R(),W9=(q,$)=>{q=new Q9(q,$);let J=new Kq("0.0.0");if(q.test(J))return J;if(J=new Kq("0.0.0-0"),q.test(J))return J;J=null;for(let Q=0;Q<q.set.length;++Q){let W=q.set[Q],Z=null;if(W.forEach((K)=>{let Y=new Kq(K.semver.version);switch(K.operator){case">":if(Y.prerelease.length===0)Y.patch++;else Y.prerelease.push(0);Y.raw=Y.format();case"":case">=":if(!Z||R0(Y,Z))Z=Y;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),Z&&(!J||R0(J,Z)))J=Z}if(J&&q.test(J))return J;return null};k0.exports=W9});var M0=I((nJ,T0)=>{var Z9=_(),K9=(q,$)=>{try{return new Z9(q,$).range||"*"}catch(J){return null}};T0.exports=K9});var n=I((iJ,v0)=>{var j9=D(),f0=u(),{ANY:z9}=f0,Y9=_(),U9=M(),b0=R(),h0=g(),F9=m(),O9=c(),I9=(q,$,J,Q)=>{q=new j9(q,Q),$=new Y9($,Q);let W,Z,K,Y,U;switch(J){case">":W=b0,Z=F9,K=h0,Y=">",U=">=";break;case"<":W=h0,Z=O9,K=b0,Y="<",U="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(U9(q,$,Q))return!1;for(let H=0;H<$.set.length;++H){let F=$.set[H],y=null,x=null;if(F.forEach((O)=>{if(O.semver===z9)O=new f0(">=0.0.0");if(y=y||O,x=x||O,W(O.semver,y.semver,Q))y=O;else if(K(O.semver,x.semver,Q))x=O}),y.operator===Y||y.operator===U)return!1;if((!x.operator||x.operator===Y)&&Z(q,x.semver))return!1;else if(x.operator===U&&K(q,x.semver))return!1}return!0};v0.exports=I9});var l0=I((tJ,d0)=>{var H9=n(),w9=(q,$,J)=>H9(q,$,">",J);d0.exports=w9});var c0=I((rJ,g0)=>{var y9=n(),B9=(q,$,J)=>y9(q,$,"<",J);g0.exports=B9});var s0=I((oJ,p0)=>{var m0=_(),x9=(q,$,J)=>{return q=new m0(q,J),$=new m0($,J),q.intersects($,J)};p0.exports=x9});var n0=I((eJ,a0)=>{var D9=M(),G9=P();a0.exports=(q,$,J)=>{let Q=[],W=null,Z=null,K=q.sort((F,y)=>G9(F,y,J));for(let F of K)if(D9(F,$,J)){if(Z=F,!W)W=F}else{if(Z)Q.push([W,Z]);Z=null,W=null}if(W)Q.push([W,null]);let Y=[];for(let[F,y]of Q)if(F===y)Y.push(F);else if(!y&&F===K[0])Y.push("*");else if(!y)Y.push(`>=${F}`);else if(F===K[0])Y.push(`<=${y}`);else Y.push(`${F} - ${y}`);let U=Y.join(" || "),H=typeof $.raw==="string"?$.raw:String($);return U.length<H.length?U:$}});var q1=I((qQ,e0)=>{var i0=_(),Yq=u(),{ANY:jq}=Yq,zq=M(),Uq=P(),V9=(q,$,J={})=>{if(q===$)return!0;q=new i0(q,J),$=new i0($,J);let Q=!1;q:for(let W of q.set){for(let Z of $.set){let K=P9(W,Z,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},X9=[new Yq(">=0.0.0-0")],t0=[new Yq(">=0.0.0")],P9=(q,$,J)=>{if(q===$)return!0;if(q.length===1&&q[0].semver===jq)if($.length===1&&$[0].semver===jq)return!0;else if(J.includePrerelease)q=X9;else q=t0;if($.length===1&&$[0].semver===jq)if(J.includePrerelease)return!0;else $=t0;let Q=new Set,W,Z;for(let O of q)if(O.operator===">"||O.operator===">=")W=r0(W,O,J);else if(O.operator==="<"||O.operator==="<=")Z=o0(Z,O,J);else Q.add(O.semver);if(Q.size>1)return null;let K;if(W&&Z){if(K=Uq(W.semver,Z.semver,J),K>0)return null;else if(K===0&&(W.operator!==">="||Z.operator!=="<="))return null}for(let O of Q){if(W&&!zq(O,String(W),J))return null;if(Z&&!zq(O,String(Z),J))return null;for(let Z1 of $)if(!zq(O,String(Z1),J))return!1;return!0}let Y,U,H,F,y=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1,x=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1;if(y&&y.prerelease.length===1&&Z.operator==="<"&&y.prerelease[0]===0)y=!1;for(let O of $){if(F=F||O.operator===">"||O.operator===">=",H=H||O.operator==="<"||O.operator==="<=",W){if(x){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===x.major&&O.semver.minor===x.minor&&O.semver.patch===x.patch)x=!1}if(O.operator===">"||O.operator===">="){if(Y=r0(W,O,J),Y===O&&Y!==W)return!1}else if(W.operator===">="&&!O.test(W.semver))return!1}if(Z){if(y){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===y.major&&O.semver.minor===y.minor&&O.semver.patch===y.patch)y=!1}if(O.operator==="<"||O.operator==="<="){if(U=o0(Z,O,J),U===O&&U!==Z)return!1}else if(Z.operator==="<="&&!O.test(Z.semver))return!1}if(!O.operator&&(Z||W)&&K!==0)return!1}if(W&&H&&!Z&&K!==0)return!1;if(Z&&F&&!W&&K!==0)return!1;if(x||y)return!1;return!0},r0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},o0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};e0.exports=V9});var W1=I(($Q,Q1)=>{var Fq=C(),$1=N(),_9=D(),J1=o(),A9=E(),L9=Aq(),E9=Eq(),N9=Sq(),C9=uq(),S9=Mq(),R9=hq(),k9=vq(),u9=lq(),T9=P(),M9=pq(),b9=aq(),h9=l(),f9=rq(),v9=eq(),d9=R(),l9=g(),g9=qq(),c9=$q(),m9=c(),p9=m(),s9=Jq(),a9=z0(),n9=U0(),i9=u(),t9=_(),r9=M(),o9=L0(),e9=N0(),qJ=S0(),$J=u0(),JJ=M0(),QJ=n(),WJ=l0(),ZJ=c0(),KJ=s0(),jJ=n0(),zJ=q1();Q1.exports={parse:A9,valid:L9,clean:E9,inc:N9,diff:C9,major:S9,minor:R9,patch:k9,prerelease:u9,compare:T9,rcompare:M9,compareLoose:b9,compareBuild:h9,sort:f9,rsort:v9,gt:d9,lt:l9,eq:g9,neq:c9,gte:m9,lte:p9,cmp:s9,coerce:a9,truncate:n9,Comparator:i9,Range:t9,satisfies:r9,toComparators:o9,maxSatisfying:e9,minSatisfying:qJ,minVersion:$J,validRange:JJ,outside:QJ,gtr:WJ,ltr:ZJ,intersects:KJ,simplifyRange:jJ,subset:zJ,SemVer:_9,re:Fq.re,src:Fq.src,tokens:Fq.t,SEMVER_SPEC_VERSION:$1.SEMVER_SPEC_VERSION,RELEASE_TYPES:$1.RELEASE_TYPES,compareIdentifiers:J1.compareIdentifiers,rcompareIdentifiers:J1.rcompareIdentifiers}});function i(){if(!Oq)Oq=W1();return Oq}function JQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===1;return i().gt(q,$,{loose:!0})}function QQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)>=0;return i().gte(q,$,{loose:!0})}function WQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===-1;return i().lt(q,$,{loose:!0})}function ZQ(q,$){if(typeof Bun<"u")return Bun.semver.satisfies(q,$);return i().satisfies(q,$,{loose:!0})}var Oq;var UJ=()=>{};
2
- export{W1 as F0,JQ as G0,QQ as H0,WQ as I0,ZQ as J0,UJ as K0};
@@ -1,15 +0,0 @@
1
- import{npa as T,ppa as J5,qpa as M}from"./cli-0.6.5-bm7v9qp0.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 ge,X5 as he};
@@ -1,2 +0,0 @@
1
- import{M1 as M,N1 as E}from"./cli-0.6.5-5rpfanmw.mjs";import{Fca as l,Ica as L,Jca as c,mca as _,qda as S,tda as p,uca as F}from"./cli-0.6.5-ef6b5qvc.mjs";import{Xha as Y,dia as m}from"./cli-0.6.5-s580r0vs.mjs";import{ppa as B}from"./cli-0.6.5-bm7v9qp0.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:g}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||T}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,y=J?.scope?.trim()||C,$=y===C?[y]:[y,C],j="Device code request failed.",z=b(R(J?.domain));for(let V of $){let W=await Z(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let w=await W.text().catch(()=>"");j=`Device code request failed: ${W.status} ${w}`;let D=/invalid_scope/i.test(w);if(V!==C&&D)continue;throw new q(j)}let X=await W.json(),N=X.device_code,K=X.user_code,x=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof x!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:x,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(j)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let y=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,j=Q?.fetchImpl??fetch,z=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await j(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(y*1000);continue}if(N==="slow_down"){y=typeof X.interval==="number"?X.interval:y+5,await P(y*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},y=Z.fetchImpl??fetch,$=h(R(Z.domain)),j=await y($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!j.ok){let K=await j.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${j.status} ${K}`)}let z=await j.json(),V=z.token,W=z.expires_at,X=z.refresh_in,N=z.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var T="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{E();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function k(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),j=$+"=".repeat((4-$.length%4)%4),z=Buffer.from(j,"base64").toString("utf8"),V=JSON.parse(z);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function yJ(){if(!k())return;if(Y())return;if(a())return}async function zJ(){if(!k())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,y=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!y&&!$)return!1;if((y?d(y):"expired")==="valid")return!1;if(!$)return!1;let z=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:z});if(!n(V.token,$,z).success)return!1;let X=_().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)F(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let y=J.trim();if(!y)return{success:!1,warning:"Token is empty."};let $=L(),j=$.read()||{},z=j[U],V=Q?.trim(),W={accessToken:y};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(z?.oauthAccessToken?.trim())W.oauthAccessToken=z.oauthAccessToken.trim();let N=Z?.trim()||z?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...j,[U]:W};return $.update(X)}function jJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
2
- export{R as d0,r as e0,o as f0,e as g0,I as h0,O as i0,U as j0,VJ as k0,a as l0,WJ as m0,yJ as n0,zJ as o0,n as p0,jJ as q0,s as r0};
@@ -1,3 +0,0 @@
1
- import{mg as d,ng as Vq}from"./cli-0.6.5-k8vb0qqx.mjs";import{NP as a,PP as yq,TQ as l,tR as Oq}from"./cli-0.6.5-5t6d3asz.mjs";import{BY as T,DY as R,XY as $,gX as Zq,gZ as Gq}from"./cli-0.6.5-f71ncwzk.mjs";import{F0 as t,H0 as v,K0 as e}from"./cli-0.6.5-wa6b2ksg.mjs";import{m1 as P,n1 as N,o1 as S}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as Yq}from"./cli-0.6.5-vqb4jtcr.mjs";import{M1 as u,N1 as Aq}from"./cli-0.6.5-5rpfanmw.mjs";import{S7 as G,T9 as s,U7 as o,x9 as j}from"./cli-0.6.5-ef6b5qvc.mjs";import{xfa as w,yfa as r}from"./cli-0.6.5-rkjw25m5.mjs";import{oha as L,rha as n}from"./cli-0.6.5-q4gh8d4w.mjs";import{Iha as c,Pha as Xq}from"./cli-0.6.5-ce51qb6k.mjs";import{Gna as i,Jja as f}from"./cli-0.6.5-ckc9hr8m.mjs";import{lpa as I,ppa as h}from"./cli-0.6.5-bm7v9qp0.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
2
- Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
3
- export{mq as kg,Bq as lg};
@@ -1,2 +0,0 @@
1
- import{Ga as S}from"./cli-0.6.5-pynms6t8.mjs";import{Ia as c}from"./cli-0.6.5-k8vgyecf.mjs";import{ld as P,pd as Vq}from"./cli-0.6.5-xxtrec34.mjs";import{td as I,ud as v,vd as $,wd as Wq}from"./cli-0.6.5-47s6s6ew.mjs";import{Ot as L,PI as E,Pt as qq,QI as Qq,Ru as A,Su as _,Tt as h,UD as M,Uu as Gq,VD as Jq,Vt as Bq,fK as f,gt as N,ht as e,iK as Tq,no as C,po as r}from"./cli-0.6.5-5t6d3asz.mjs";import{p1 as s}from"./cli-0.6.5-vqb4jtcr.mjs";import{Fda as F,Nda as a,O7 as D,Q7 as n,s9 as w,u9 as t}from"./cli-0.6.5-ef6b5qvc.mjs";import{lga as x,oga as d}from"./cli-0.6.5-6qvtcs5y.mjs";import{oha as j,rha as o}from"./cli-0.6.5-q4gh8d4w.mjs";import{Hha as y,Pha as l}from"./cli-0.6.5-ce51qb6k.mjs";import{lpa as p}from"./cli-0.6.5-bm7v9qp0.mjs";Jq();d();Bq();Gq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);qq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=_(),O=A((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await E(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await S()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await L(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);h(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
- export{Lq as Fa};