@qitqode/qitqode-android-arm64 0.1.25 → 0.1.27

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 (420) hide show
  1. package/bundle/chunk-02y04bsz.js +2 -0
  2. package/bundle/{chunk-23f6rc7a.js → chunk-04tw0r4s.js} +1 -1
  3. package/bundle/chunk-07ws99b1.js +2 -0
  4. package/bundle/chunk-09c4ngag.js +2 -0
  5. package/bundle/{chunk-ym4ydwrz.js → chunk-09kba1hg.js} +2 -2
  6. package/bundle/{chunk-pfn1db1m.js → chunk-0a0vat1h.js} +2 -2
  7. package/bundle/{chunk-pepn5jp4.js → chunk-0eqwm9a8.js} +2 -2
  8. package/bundle/chunk-0jgst767.js +2 -0
  9. package/bundle/chunk-0psrr9vp.js +2 -0
  10. package/bundle/chunk-0srrmwqs.js +2 -0
  11. package/bundle/{chunk-3xna2rk5.js → chunk-0x3sbyny.js} +2 -2
  12. package/bundle/chunk-0zkejr6k.js +2 -0
  13. package/bundle/{chunk-xw283h2r.js → chunk-12bssxd4.js} +2 -2
  14. package/bundle/chunk-14n6rvh2.js +2 -0
  15. package/bundle/{chunk-meaybtcc.js → chunk-17psxhve.js} +3 -3
  16. package/bundle/{chunk-jgs6ngte.js → chunk-1bhvt33f.js} +1 -1
  17. package/bundle/{chunk-78h5dd4t.js → chunk-1dwcga8g.js} +2 -2
  18. package/bundle/{chunk-5mdsrv0a.js → chunk-1fbeendk.js} +1 -1
  19. package/bundle/chunk-1fja3j80.js +2 -0
  20. package/bundle/chunk-1j73cnvz.js +2 -0
  21. package/bundle/{chunk-fgw420gb.js → chunk-1qshjfzm.js} +1 -1
  22. package/bundle/{chunk-bpnpxdyv.js → chunk-1rp1cvmc.js} +2 -2
  23. package/bundle/{chunk-b50t4jc5.js → chunk-1sgby720.js} +1 -1
  24. package/bundle/{chunk-3tnek022.js → chunk-1t9jne14.js} +1 -1
  25. package/bundle/chunk-1yddn03z.js +2 -0
  26. package/bundle/{chunk-3fy57jcy.js → chunk-26nfphsg.js} +1 -1
  27. package/bundle/{chunk-754varfr.js → chunk-27yxgy03.js} +2 -2
  28. package/bundle/{chunk-ydsen7w0.js → chunk-2ahqhh4z.js} +1 -1
  29. package/bundle/{chunk-ey4ktbyb.js → chunk-2bn4b42t.js} +1 -1
  30. package/bundle/{chunk-0hsb4knd.js → chunk-2dzk5txw.js} +1 -1
  31. package/bundle/{chunk-vq6bh2z9.js → chunk-2jmxt3fb.js} +1 -1
  32. package/bundle/{chunk-xjrt0dta.js → chunk-2km50rd3.js} +1 -1
  33. package/bundle/{chunk-1e8mja6v.js → chunk-2q96x1t5.js} +1 -1
  34. package/bundle/{chunk-7rjf9b8n.js → chunk-2rs39vj2.js} +2 -2
  35. package/bundle/{chunk-5zw7knvd.js → chunk-2tnarng3.js} +1 -1
  36. package/bundle/{chunk-4wgb80jm.js → chunk-2vepzgek.js} +2 -2
  37. package/bundle/{chunk-4pssh5d3.js → chunk-2wcv3sq5.js} +2 -2
  38. package/bundle/{chunk-6rrmjrm2.js → chunk-371r2111.js} +1 -1
  39. package/bundle/{chunk-kb14wxcs.js → chunk-37n34pzd.js} +2 -2
  40. package/bundle/chunk-38g8yzw0.js +2 -0
  41. package/bundle/chunk-3bkd0ar3.js +2 -0
  42. package/bundle/{chunk-c27rpvdz.js → chunk-3bmzjznz.js} +1 -1
  43. package/bundle/chunk-3c7d3dqt.js +3 -0
  44. package/bundle/{chunk-xy4t5qf8.js → chunk-3nwve06r.js} +1 -1
  45. package/bundle/{chunk-veev25yg.js → chunk-3nyqh1d6.js} +1 -1
  46. package/bundle/{chunk-grkkzrg1.js → chunk-463f9wre.js} +2 -2
  47. package/bundle/{chunk-vqq5vmh1.js → chunk-47b084yv.js} +204 -202
  48. package/bundle/{chunk-6s2f5sv4.js → chunk-48fvrggx.js} +1 -1
  49. package/bundle/chunk-4amgp4yd.js +3 -0
  50. package/bundle/chunk-4k7kbhps.js +2 -0
  51. package/bundle/{chunk-e075v4e9.js → chunk-4qqkqrn9.js} +2 -2
  52. package/bundle/chunk-4sz3jbc5.js +2 -0
  53. package/bundle/{chunk-zny2qaqa.js → chunk-4tbwha3m.js} +2 -2
  54. package/bundle/{chunk-dgggvses.js → chunk-4ypcf4tg.js} +1 -1
  55. package/bundle/chunk-4z4p492c.js +3 -0
  56. package/bundle/chunk-55b9699f.js +2 -0
  57. package/bundle/{chunk-1ce5jpdc.js → chunk-5a5t01ka.js} +1 -1
  58. package/bundle/{chunk-1n1dh6zj.js → chunk-5fgx6fa4.js} +1 -1
  59. package/bundle/{chunk-2k2axg73.js → chunk-5fz8tph5.js} +1 -1
  60. package/bundle/{chunk-99p5m2f1.js → chunk-5qam3c8r.js} +1 -1
  61. package/bundle/{chunk-0jaxgrq0.js → chunk-61c62e5s.js} +2 -2
  62. package/bundle/chunk-6d9wsjxm.js +2 -0
  63. package/bundle/{chunk-mybpgrjj.js → chunk-6fp8a9ek.js} +2 -2
  64. package/bundle/chunk-6gz9cthq.js +2 -0
  65. package/bundle/{chunk-692vn48b.js → chunk-6hv59ere.js} +1 -1
  66. package/bundle/{chunk-av290sja.js → chunk-6nbzdb0r.js} +1 -1
  67. package/bundle/{chunk-8ahpk8td.js → chunk-6p7yg5sr.js} +1 -1
  68. package/bundle/chunk-6q87abbr.js +2 -0
  69. package/bundle/{chunk-3nhth7c2.js → chunk-6qy1ghrx.js} +1 -1
  70. package/bundle/chunk-730a2d1k.js +2 -0
  71. package/bundle/chunk-7bd0x9vf.js +2 -0
  72. package/bundle/chunk-7czkntef.js +2 -0
  73. package/bundle/chunk-7ex57nyh.js +2 -0
  74. package/bundle/chunk-7gpczxbh.js +2 -0
  75. package/bundle/chunk-7j0bgeh2.js +2 -0
  76. package/bundle/{chunk-hvpe07pt.js → chunk-7jbz3dgt.js} +1 -1
  77. package/bundle/{chunk-qe0sfafy.js → chunk-7ppd2phw.js} +2 -2
  78. package/bundle/chunk-7py443fe.js +2 -0
  79. package/bundle/{chunk-8jcx4tep.js → chunk-7yrhe3xq.js} +2 -2
  80. package/bundle/{chunk-8za87zkr.js → chunk-89q1y7tc.js} +1 -1
  81. package/bundle/{chunk-vfj5nwab.js → chunk-89v6dgpp.js} +2 -2
  82. package/bundle/chunk-8cdm8gh2.js +2 -0
  83. package/bundle/chunk-90q5sae0.js +2 -0
  84. package/bundle/chunk-90zd5rss.js +5 -0
  85. package/bundle/chunk-9grvepmd.js +2 -0
  86. package/bundle/chunk-9hrh15p2.js +2 -0
  87. package/bundle/{chunk-xqa6qkx2.js → chunk-9j1qqdr2.js} +1 -1
  88. package/bundle/{chunk-p80dc6kt.js → chunk-9t84mh6t.js} +2 -2
  89. package/bundle/{chunk-9dpn4792.js → chunk-a1p2f16h.js} +2 -2
  90. package/bundle/{chunk-c1ypbbka.js → chunk-a1pw9r6f.js} +2 -2
  91. package/bundle/chunk-a2qz9m10.js +2 -0
  92. package/bundle/{chunk-gvtw9c44.js → chunk-ab6cabxh.js} +1 -1
  93. package/bundle/{chunk-rjcptzem.js → chunk-ad46r434.js} +2 -2
  94. package/bundle/{chunk-9r6bvkp4.js → chunk-ak5ngp50.js} +2 -2
  95. package/bundle/{chunk-xyn3xxfs.js → chunk-apbgb4h0.js} +1 -1
  96. package/bundle/chunk-av6ezvxm.js +2 -0
  97. package/bundle/{chunk-0rmmg3g4.js → chunk-aztre27e.js} +1 -1
  98. package/bundle/{chunk-ddxjc803.js → chunk-b0syck9r.js} +2 -2
  99. package/bundle/{chunk-8gy99gfb.js → chunk-b2z0kjss.js} +2 -2
  100. package/bundle/{chunk-wrgg270f.js → chunk-b3dqcbsc.js} +1 -1
  101. package/bundle/{chunk-aw0q4y3s.js → chunk-b75gpv0q.js} +1 -1
  102. package/bundle/chunk-b7mg883n.js +3 -0
  103. package/bundle/{chunk-zh808d4t.js → chunk-b8tw709r.js} +1 -1
  104. package/bundle/{chunk-pvee151a.js → chunk-b9za12y1.js} +1 -1
  105. package/bundle/{chunk-cjxp72dv.js → chunk-baet4zev.js} +2 -2
  106. package/bundle/{chunk-jhq5bvhs.js → chunk-be216spx.js} +2 -2
  107. package/bundle/chunk-beksar7w.js +2 -0
  108. package/bundle/chunk-bg66rqrx.js +2 -0
  109. package/bundle/{chunk-h19ty95q.js → chunk-brpx707p.js} +1 -1
  110. package/bundle/{chunk-ykfq8bem.js → chunk-bss414qz.js} +1 -1
  111. package/bundle/{chunk-3dvyfmgc.js → chunk-btneef3z.js} +1 -1
  112. package/bundle/{chunk-7v4fzkbb.js → chunk-btz9jvec.js} +1 -1
  113. package/bundle/{chunk-bsqcfqya.js → chunk-bvkq0a5q.js} +1 -1
  114. package/bundle/{chunk-mkdyknbz.js → chunk-c01z3cvg.js} +2 -2
  115. package/bundle/{chunk-dd11kryy.js → chunk-c0796v8j.js} +2 -2
  116. package/bundle/{chunk-qpm5afdz.js → chunk-c5e6sk9c.js} +1 -1
  117. package/bundle/chunk-c7yy1km8.js +2 -0
  118. package/bundle/{chunk-453wpzg6.js → chunk-c8k32724.js} +1 -1
  119. package/bundle/{chunk-mbh1pdv9.js → chunk-cafzcmrg.js} +2 -2
  120. package/bundle/{chunk-d1bsxz2t.js → chunk-cdhmc0t0.js} +1 -1
  121. package/bundle/{chunk-t0amhhsk.js → chunk-chmrvbbj.js} +1 -1
  122. package/bundle/{chunk-jqzejny3.js → chunk-cpmmvwgw.js} +1 -1
  123. package/bundle/{chunk-zbdbsagd.js → chunk-crx18k6g.js} +2 -2
  124. package/bundle/{chunk-ybn8tb09.js → chunk-ct48575c.js} +1 -1
  125. package/bundle/chunk-ct6dv8st.js +2 -0
  126. package/bundle/{chunk-4wyjapes.js → chunk-cvdxgsq1.js} +2 -2
  127. package/bundle/{chunk-qdnxv55k.js → chunk-cvwa142e.js} +1 -1
  128. package/bundle/chunk-cy9s1ma5.js +2 -0
  129. package/bundle/{chunk-qnqqrvvs.js → chunk-d5bxan80.js} +2 -2
  130. package/bundle/{chunk-hmfefq0d.js → chunk-d6r4xwtg.js} +4 -4
  131. package/bundle/{chunk-g3s2z5xa.js → chunk-deae0y1j.js} +1 -1
  132. package/bundle/{chunk-a27yjp71.js → chunk-dfnv7vkn.js} +1 -1
  133. package/bundle/{chunk-4kb2efq3.js → chunk-dhjp0zx2.js} +1 -1
  134. package/bundle/{chunk-se79ke63.js → chunk-dq9kpj4a.js} +2 -2
  135. package/bundle/{chunk-zss93r48.js → chunk-dqed63ek.js} +1 -1
  136. package/bundle/{chunk-nqefvn28.js → chunk-drs1gv2b.js} +1 -1
  137. package/bundle/{chunk-t2tsyazc.js → chunk-ds69qc8b.js} +1 -1
  138. package/bundle/chunk-dtv1vp0d.js +2 -0
  139. package/bundle/chunk-dvk2wwjj.js +2 -0
  140. package/bundle/{chunk-d5b0bqbr.js → chunk-dzxzcb2e.js} +1 -1
  141. package/bundle/chunk-e0jy9qxd.js +2 -0
  142. package/bundle/{chunk-nhx2xp2x.js → chunk-eb9mytjq.js} +1 -1
  143. package/bundle/{chunk-gsz1wqy6.js → chunk-ecn8gbtz.js} +1 -1
  144. package/bundle/chunk-erg0ske8.js +2 -0
  145. package/bundle/chunk-ew51rwdp.js +9 -0
  146. package/bundle/{chunk-2rxt1s22.js → chunk-exh6cg1r.js} +2 -2
  147. package/bundle/{chunk-tdmaxc6n.js → chunk-f45tp3e3.js} +1 -1
  148. package/bundle/chunk-f72pppr7.js +2 -0
  149. package/bundle/{chunk-k8bp3jjv.js → chunk-fddsgvjy.js} +1 -1
  150. package/bundle/{chunk-4w5t515p.js → chunk-fff3151r.js} +1 -1
  151. package/bundle/{chunk-pk0tytcm.js → chunk-fkgv2hqd.js} +1 -1
  152. package/bundle/{chunk-f84cd0a1.js → chunk-fnbpap62.js} +2 -2
  153. package/bundle/{chunk-hwbxehhf.js → chunk-g1dwbvkg.js} +1 -1
  154. package/bundle/{chunk-dk3z4k46.js → chunk-g3dhsmbt.js} +3 -3
  155. package/bundle/{chunk-n8dcmjph.js → chunk-g7rjtehn.js} +1 -1
  156. package/bundle/chunk-gbyy8sh5.js +2 -0
  157. package/bundle/{chunk-z015twaq.js → chunk-gf0pdgjs.js} +2 -2
  158. package/bundle/{chunk-9f6pqped.js → chunk-ggqst87g.js} +1 -1
  159. package/bundle/chunk-gk34kh8p.js +2 -0
  160. package/bundle/{chunk-j5b5h08g.js → chunk-gm85xefs.js} +1 -1
  161. package/bundle/chunk-gn50xqbd.js +2 -0
  162. package/bundle/{chunk-wmrq9qqf.js → chunk-gsez13bg.js} +1 -1
  163. package/bundle/{chunk-3f054f69.js → chunk-gsvdt4kq.js} +7 -7
  164. package/bundle/{chunk-3jhx8g5d.js → chunk-h0rpmne5.js} +1 -1
  165. package/bundle/chunk-h7s2w1e2.js +2 -0
  166. package/bundle/chunk-h7yya9pv.js +7610 -0
  167. package/bundle/{chunk-5mp82az0.js → chunk-h9pvnp5c.js} +1 -1
  168. package/bundle/chunk-hgxdg1y5.js +2 -0
  169. package/bundle/{chunk-t07a5431.js → chunk-hj5y7fvk.js} +1 -1
  170. package/bundle/chunk-hmv2cdnz.js +2 -0
  171. package/bundle/chunk-ht81ensf.js +2 -0
  172. package/bundle/chunk-j59ktwny.js +2 -0
  173. package/bundle/{chunk-08ba67f4.js → chunk-j5kb0y1m.js} +1 -1
  174. package/bundle/{chunk-rgecc41f.js → chunk-j5y10dn6.js} +2 -2
  175. package/bundle/{chunk-jv98gw88.js → chunk-j6emx6jn.js} +2 -2
  176. package/bundle/{chunk-x36jhtex.js → chunk-j8efst22.js} +1 -1
  177. package/bundle/{chunk-mczw8e3s.js → chunk-j94bdaav.js} +2 -2
  178. package/bundle/{chunk-g73drh98.js → chunk-j9pcnkkq.js} +3 -3
  179. package/bundle/{chunk-nf8gkxbk.js → chunk-jg7s9rqz.js} +2 -2
  180. package/bundle/chunk-jh3nw7fd.js +2 -0
  181. package/bundle/chunk-jh6yvzee.js +2 -0
  182. package/bundle/{chunk-9jncnqbj.js → chunk-jje0srjq.js} +2 -2
  183. package/bundle/{chunk-3e8p4a3y.js → chunk-jm1ptn8n.js} +1 -1
  184. package/bundle/chunk-jmz2mq3t.js +2 -0
  185. package/bundle/{chunk-6ddp36ar.js → chunk-jnabd9gn.js} +1 -1
  186. package/bundle/chunk-k309zez0.js +3 -0
  187. package/bundle/chunk-k3fn3yed.js +2 -0
  188. package/bundle/{chunk-0x7dbj5e.js → chunk-k7gq9bra.js} +1 -1
  189. package/bundle/{chunk-8cty50g7.js → chunk-k9b1jcqw.js} +1 -1
  190. package/bundle/{chunk-2s28fdbp.js → chunk-kavhpdvb.js} +1 -1
  191. package/bundle/{chunk-qm9ezq93.js → chunk-kdcnder5.js} +1 -1
  192. package/bundle/{chunk-b2xya6pq.js → chunk-kfsb2stm.js} +1 -1
  193. package/bundle/{chunk-z3zx6g09.js → chunk-knpt9n8f.js} +1 -1
  194. package/bundle/chunk-kpw6nghv.js +2 -0
  195. package/bundle/{chunk-4stgw33j.js → chunk-kqn9h2gk.js} +1 -1
  196. package/bundle/{chunk-gw0j8hr9.js → chunk-ksyh6h3a.js} +2 -2
  197. package/bundle/{chunk-jtrcnpm7.js → chunk-m02zt1a3.js} +2 -2
  198. package/bundle/{chunk-p883sz67.js → chunk-m1h5a4vg.js} +1 -1
  199. package/bundle/{chunk-m2ang7yb.js → chunk-m2ekhbdp.js} +1 -1
  200. package/bundle/{chunk-3j7skhxg.js → chunk-m2x9xhha.js} +2 -2
  201. package/bundle/chunk-m5ghbt5y.js +2 -0
  202. package/bundle/{chunk-9va5eh9s.js → chunk-m612agnk.js} +1 -1
  203. package/bundle/{chunk-42t25nkb.js → chunk-m67tcnk4.js} +1 -1
  204. package/bundle/{chunk-2sy1wx99.js → chunk-m8yv4sd2.js} +1 -1
  205. package/bundle/{chunk-x6b99nt3.js → chunk-mdck9s88.js} +1 -1
  206. package/bundle/{chunk-psveqqv2.js → chunk-mgk9sh16.js} +1 -1
  207. package/bundle/{chunk-7d6jhzng.js → chunk-mk6cddvd.js} +1 -1
  208. package/bundle/chunk-mn41f9qv.js +2 -0
  209. package/bundle/chunk-mqjf9sbm.js +2 -0
  210. package/bundle/{chunk-7ws3gdjq.js → chunk-msegx0t7.js} +1 -1
  211. package/bundle/{chunk-evmfntm3.js → chunk-mskwkcgj.js} +1 -1
  212. package/bundle/chunk-n5gwrrbb.js +2 -0
  213. package/bundle/{chunk-dee1a3yk.js → chunk-n8h6x2en.js} +2 -2
  214. package/bundle/chunk-nfjhem1c.js +2 -0
  215. package/bundle/{chunk-hznsed5n.js → chunk-ngchsw2g.js} +2 -2
  216. package/bundle/chunk-nj4d554m.js +11 -0
  217. package/bundle/{chunk-msm3r7ny.js → chunk-njnwdgvd.js} +2 -2
  218. package/bundle/{chunk-pf7cj4jd.js → chunk-nt4e3em9.js} +1 -1
  219. package/bundle/chunk-nx90tvwg.js +2 -0
  220. package/bundle/{chunk-bqs6a1ts.js → chunk-nxbkh4k9.js} +2 -2
  221. package/bundle/chunk-nxyyn2ra.js +2 -0
  222. package/bundle/{chunk-vb4e7y4d.js → chunk-nzehfpxp.js} +1 -1
  223. package/bundle/chunk-p5tceb4k.js +2 -0
  224. package/bundle/{chunk-wb69d52j.js → chunk-p68rwmhc.js} +2 -2
  225. package/bundle/{chunk-nmnsf3fc.js → chunk-pekm54ce.js} +1 -1
  226. package/bundle/{chunk-syhay5ye.js → chunk-pget15wc.js} +1 -1
  227. package/bundle/{chunk-p409grvp.js → chunk-phxrg7aw.js} +2 -2
  228. package/bundle/{chunk-14qvaxtp.js → chunk-ppfjf7qx.js} +1 -1
  229. package/bundle/{chunk-mr7agwgn.js → chunk-q1v2pytx.js} +1 -1
  230. package/bundle/{chunk-kyny0t2g.js → chunk-q6ztpfcs.js} +2 -2
  231. package/bundle/{chunk-xdde80rf.js → chunk-qhc90p4a.js} +2 -2
  232. package/bundle/chunk-qjgm3e2p.js +2 -0
  233. package/bundle/{chunk-7fx6x8x9.js → chunk-qjjch1zt.js} +2 -2
  234. package/bundle/{chunk-h2fh1g8g.js → chunk-qjn86fc0.js} +1 -1
  235. package/bundle/{chunk-yhqk8bzk.js → chunk-qrey2gwb.js} +2 -2
  236. package/bundle/chunk-qt1wffbh.js +3 -0
  237. package/bundle/{chunk-jvaffe5d.js → chunk-qt2c4bty.js} +1 -1
  238. package/bundle/{chunk-kgsq240v.js → chunk-qv2s39dv.js} +2 -2
  239. package/bundle/chunk-r08957sm.js +11 -0
  240. package/bundle/chunk-r1616dce.js +2 -0
  241. package/bundle/chunk-s07j8hfy.js +2 -0
  242. package/bundle/{chunk-sx5m81em.js → chunk-s3yna2wm.js} +1 -1
  243. package/bundle/{chunk-0vqrakhw.js → chunk-s6bar2f9.js} +1 -1
  244. package/bundle/chunk-sbyey0qb.js +2 -0
  245. package/bundle/{chunk-aqm597px.js → chunk-scnz207s.js} +2 -2
  246. package/bundle/{chunk-rjf21v5c.js → chunk-sermjas1.js} +1 -1
  247. package/bundle/chunk-sj5v361q.js +2 -0
  248. package/bundle/chunk-smtvgr3w.js +2 -0
  249. package/bundle/{chunk-ag9thqkv.js → chunk-snm5q21k.js} +2 -2
  250. package/bundle/{chunk-bnc4626b.js → chunk-srh4xvsj.js} +1 -1
  251. package/bundle/{chunk-y0xt5a6g.js → chunk-stezw26z.js} +1 -1
  252. package/bundle/{chunk-rq4hqwjy.js → chunk-szr0f7k2.js} +1 -1
  253. package/bundle/{chunk-vmgknvxs.js → chunk-t12xrrfr.js} +2 -2
  254. package/bundle/{chunk-6gbaw2pk.js → chunk-tj78jsp9.js} +1 -1
  255. package/bundle/chunk-tpndnprb.js +2 -0
  256. package/bundle/{chunk-yzchwmb4.js → chunk-tr8sf0dk.js} +1 -1
  257. package/bundle/{chunk-e1pwnf0b.js → chunk-v2zp22r3.js} +2 -2
  258. package/bundle/{chunk-2armxd20.js → chunk-v4xcysh0.js} +1 -1
  259. package/bundle/{chunk-amx3x4kd.js → chunk-v965rsr8.js} +2 -2
  260. package/bundle/{chunk-0304b7xg.js → chunk-va316nee.js} +1 -1
  261. package/bundle/chunk-vfdhqf4h.js +28 -0
  262. package/bundle/{chunk-gaen9ya4.js → chunk-vg2fmyje.js} +2 -2
  263. package/bundle/{chunk-kdcspxvq.js → chunk-vj62pc0h.js} +1 -1
  264. package/bundle/{chunk-3h08jdq8.js → chunk-vkskqhag.js} +2 -2
  265. package/bundle/{chunk-zsnbxsdx.js → chunk-vn7nkrqb.js} +2 -2
  266. package/bundle/{chunk-58680z2j.js → chunk-vsjyr170.js} +2 -2
  267. package/bundle/chunk-vwxfgea7.js +2 -0
  268. package/bundle/chunk-w0kgcz1t.js +2 -0
  269. package/bundle/{chunk-1txkz6dt.js → chunk-w87a3mzm.js} +1 -1
  270. package/bundle/chunk-wajmd3r7.js +2 -0
  271. package/bundle/{chunk-d0m7nbbx.js → chunk-whxjkz9a.js} +2 -2
  272. package/bundle/chunk-wksczmes.js +2 -0
  273. package/bundle/{chunk-0xmx2zfg.js → chunk-wnqwb6fd.js} +1 -1
  274. package/bundle/chunk-wrw22v0a.js +616 -0
  275. package/bundle/chunk-wsxta33r.js +2 -0
  276. package/bundle/{chunk-8atry88r.js → chunk-wsy0m70r.js} +1 -1
  277. package/bundle/{chunk-kdct3e8s.js → chunk-wy46mbwt.js} +1 -1
  278. package/bundle/{chunk-tf1me2r4.js → chunk-wz0zcddf.js} +3 -3
  279. package/bundle/{chunk-ggeena9t.js → chunk-x067eetw.js} +1 -1
  280. package/bundle/{chunk-eg7drzzt.js → chunk-xc5044tm.js} +1 -1
  281. package/bundle/chunk-xck0sq3k.js +2 -0
  282. package/bundle/chunk-xjyhtm8r.js +2 -0
  283. package/bundle/{chunk-j9s62g01.js → chunk-xn2ds2s4.js} +2 -2
  284. package/bundle/{chunk-qnv2v02g.js → chunk-xpc2zgj7.js} +2 -2
  285. package/bundle/{chunk-54pk7nna.js → chunk-xrxyrr00.js} +1 -1
  286. package/bundle/{chunk-f55txcsa.js → chunk-xs3xtz6x.js} +1 -1
  287. package/bundle/{chunk-crap29f6.js → chunk-xxbqhg9n.js} +1 -1
  288. package/bundle/{chunk-2je5tp0x.js → chunk-y062spw2.js} +1 -1
  289. package/bundle/{chunk-v4xgceeq.js → chunk-y2v09y71.js} +1 -1
  290. package/bundle/chunk-y9p87bfd.js +2 -0
  291. package/bundle/{chunk-g4qwkcdv.js → chunk-yajd975f.js} +1 -1
  292. package/bundle/{chunk-2z35ewwc.js → chunk-ydp0q1hk.js} +1 -1
  293. package/bundle/{chunk-gfmfrkxc.js → chunk-yfkvjphe.js} +1 -1
  294. package/bundle/chunk-ygc5qegv.js +2 -0
  295. package/bundle/{chunk-eaatrmcg.js → chunk-yhk7d1j0.js} +1 -1
  296. package/bundle/chunk-yhwx62yf.js +2 -0
  297. package/bundle/chunk-yjqmzm51.js +2 -0
  298. package/bundle/{chunk-9jvnc14g.js → chunk-yjtdgcq5.js} +1 -1
  299. package/bundle/{chunk-61ks7c71.js → chunk-yp0a8q29.js} +3 -3
  300. package/bundle/{chunk-mkyrg7gt.js → chunk-yq3m8190.js} +2 -2
  301. package/bundle/{chunk-rze20q68.js → chunk-yt3f3j35.js} +1 -1
  302. package/bundle/{chunk-tfggzzqw.js → chunk-ywkvq7zb.js} +1 -1
  303. package/bundle/chunk-z4z8hk7e.js +2 -0
  304. package/bundle/chunk-z7y9pdj7.js +2 -0
  305. package/bundle/chunk-z8g819cz.js +2 -0
  306. package/bundle/{chunk-h56jxxvj.js → chunk-z8v2tsz2.js} +1 -1
  307. package/bundle/{chunk-rs1mm5ef.js → chunk-zb0me4kk.js} +1 -1
  308. package/bundle/{chunk-gefh32jb.js → chunk-zcm2jdr5.js} +1 -1
  309. package/bundle/chunk-zqv7fx25.js +2 -0
  310. package/bundle/{chunk-jq81hb32.js → chunk-zrc54vc4.js} +2 -2
  311. package/bundle/chunk-zs2a1f20.js +2 -0
  312. package/bundle/chunk-zt1nbwmm.js +2 -0
  313. package/bundle/{chunk-2zj3h3xj.js → chunk-ztc3gm8y.js} +2 -2
  314. package/bundle/{chunk-v7ah9gg0.js → chunk-zxaaxb99.js} +2 -2
  315. package/bundle/{chunk-ww8ear80.js → chunk-zyhdxggp.js} +2 -2
  316. package/bundle/index.js +3 -3
  317. package/bundle/parser.worker.js +2 -2
  318. package/bundle/qffi.node +0 -0
  319. package/bundle/worker.js +1 -1
  320. package/package.json +1 -1
  321. package/bundle/chunk-0eneddjj.js +0 -2
  322. package/bundle/chunk-0ke6x10y.js +0 -5
  323. package/bundle/chunk-0yb4pxjv.js +0 -2
  324. package/bundle/chunk-129kq1w7.js +0 -2
  325. package/bundle/chunk-1a5hq7d5.js +0 -2
  326. package/bundle/chunk-1w3y1dkk.js +0 -2
  327. package/bundle/chunk-26qt44f1.js +0 -3
  328. package/bundle/chunk-2pkake0h.js +0 -2
  329. package/bundle/chunk-32188rww.js +0 -2
  330. package/bundle/chunk-334tc1rh.js +0 -2
  331. package/bundle/chunk-3ff94m8r.js +0 -2
  332. package/bundle/chunk-4aqd2bty.js +0 -2
  333. package/bundle/chunk-4wa0gf8y.js +0 -28
  334. package/bundle/chunk-4xg5ptk9.js +0 -2
  335. package/bundle/chunk-5nm36wxa.js +0 -2
  336. package/bundle/chunk-64jet8nc.js +0 -2
  337. package/bundle/chunk-6584d9m8.js +0 -2
  338. package/bundle/chunk-66hv9bbw.js +0 -2
  339. package/bundle/chunk-6a1g6jzn.js +0 -2
  340. package/bundle/chunk-6be8p915.js +0 -2
  341. package/bundle/chunk-6f03158n.js +0 -2
  342. package/bundle/chunk-7jnjttqx.js +0 -2
  343. package/bundle/chunk-7q5srx7q.js +0 -3
  344. package/bundle/chunk-7q8pa6s8.js +0 -2
  345. package/bundle/chunk-7qvkyjjg.js +0 -2
  346. package/bundle/chunk-7w84hfxs.js +0 -3
  347. package/bundle/chunk-87x607rz.js +0 -8223
  348. package/bundle/chunk-8casywce.js +0 -2
  349. package/bundle/chunk-8hxwxt5p.js +0 -2
  350. package/bundle/chunk-8y8140dm.js +0 -2
  351. package/bundle/chunk-9dqcyt6x.js +0 -2
  352. package/bundle/chunk-9he248a8.js +0 -2
  353. package/bundle/chunk-9qmmse2n.js +0 -2
  354. package/bundle/chunk-9w5rx0fb.js +0 -3
  355. package/bundle/chunk-aabrsxrq.js +0 -2
  356. package/bundle/chunk-atd0q4v8.js +0 -3
  357. package/bundle/chunk-avaba4sr.js +0 -2
  358. package/bundle/chunk-bdy1etja.js +0 -2
  359. package/bundle/chunk-bqdvqmjc.js +0 -2
  360. package/bundle/chunk-cdws8ggq.js +0 -2
  361. package/bundle/chunk-cqs9a2cs.js +0 -2
  362. package/bundle/chunk-d0rjst58.js +0 -2
  363. package/bundle/chunk-d833a2fj.js +0 -2
  364. package/bundle/chunk-dday4nm2.js +0 -2
  365. package/bundle/chunk-e2sj30hk.js +0 -2
  366. package/bundle/chunk-enc0fykg.js +0 -2
  367. package/bundle/chunk-evan93av.js +0 -2
  368. package/bundle/chunk-f600dzsr.js +0 -2
  369. package/bundle/chunk-f6jzwydk.js +0 -2
  370. package/bundle/chunk-fv67ng8z.js +0 -2
  371. package/bundle/chunk-gevazsx3.js +0 -2
  372. package/bundle/chunk-gh18pzkx.js +0 -2
  373. package/bundle/chunk-gnvvgr4y.js +0 -2
  374. package/bundle/chunk-gsbjs2ws.js +0 -2
  375. package/bundle/chunk-j7pdz979.js +0 -2
  376. package/bundle/chunk-jfe2qbv8.js +0 -2
  377. package/bundle/chunk-k6zvb8xm.js +0 -2
  378. package/bundle/chunk-kcht9kvx.js +0 -2
  379. package/bundle/chunk-knvsa1d4.js +0 -2
  380. package/bundle/chunk-kp6d68hd.js +0 -2
  381. package/bundle/chunk-kwm87f18.js +0 -2
  382. package/bundle/chunk-me78p9x4.js +0 -2
  383. package/bundle/chunk-mv1d7wyt.js +0 -2
  384. package/bundle/chunk-n8xmmxh5.js +0 -2
  385. package/bundle/chunk-n90219q9.js +0 -2
  386. package/bundle/chunk-nckg3ydx.js +0 -2
  387. package/bundle/chunk-nhaenjw3.js +0 -2
  388. package/bundle/chunk-nhtrt5ec.js +0 -2
  389. package/bundle/chunk-p72n0tfq.js +0 -2
  390. package/bundle/chunk-p8enedkf.js +0 -3
  391. package/bundle/chunk-pd33qvr0.js +0 -2
  392. package/bundle/chunk-pq3622ae.js +0 -2
  393. package/bundle/chunk-qatj4h6b.js +0 -2
  394. package/bundle/chunk-qfz0a58d.js +0 -2
  395. package/bundle/chunk-qjwfj51e.js +0 -2
  396. package/bundle/chunk-qkg73rs9.js +0 -2
  397. package/bundle/chunk-qvcfst7n.js +0 -11
  398. package/bundle/chunk-rmsqb6r4.js +0 -10
  399. package/bundle/chunk-rqrpbcm6.js +0 -2
  400. package/bundle/chunk-s76hdgw6.js +0 -2
  401. package/bundle/chunk-s7vhjg9e.js +0 -2
  402. package/bundle/chunk-sec3a60m.js +0 -2
  403. package/bundle/chunk-sjnt5e6w.js +0 -2
  404. package/bundle/chunk-sntb757q.js +0 -2
  405. package/bundle/chunk-svscftd7.js +0 -2
  406. package/bundle/chunk-sx0cabcs.js +0 -2
  407. package/bundle/chunk-tmdm6vm6.js +0 -2
  408. package/bundle/chunk-v6g0ksks.js +0 -2
  409. package/bundle/chunk-vbf73c7z.js +0 -2
  410. package/bundle/chunk-vbf9jpas.js +0 -2
  411. package/bundle/chunk-vrcf5q4s.js +0 -2
  412. package/bundle/chunk-vxrsp6n7.js +0 -2
  413. package/bundle/chunk-w8ax3pvh.js +0 -2
  414. package/bundle/chunk-w98r39gd.js +0 -9
  415. package/bundle/chunk-xk2cmh49.js +0 -2
  416. package/bundle/chunk-xzhkfctf.js +0 -2
  417. package/bundle/chunk-ydmrvx7q.js +0 -2
  418. package/bundle/chunk-z2rtcgad.js +0 -3
  419. package/bundle/chunk-z9b3t2jm.js +0 -2
  420. package/bundle/chunk-zzr8smtm.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{eO as O}from"./chunk-0rmmg3g4.js";var S=O((n9,Fq)=>{var $0=Number.MAX_SAFE_INTEGER||9007199254740991,J0=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Fq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:$0,RELEASE_TYPES:J0,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var C=O((i9,Iq)=>{var Q0=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Iq.exports=Q0});var E=O((L,Oq)=>{var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:Z0,MAX_LENGTH:W0}=S(),K0=C();L=Oq.exports={};var j0=L.re=[],z0=L.safeRe=[],j=L.src=[],U0=L.safeSrc=[],z=L.t={},Y0=0,t="[a-zA-Z0-9-]",F0=[["\\s",1],["\\d",W0],[t,Z0]],I0=(q)=>{for(let[$,J]of F0)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=I0($),Z=Y0++;K0(q,Z,$),z[q]=Z,j[Z]=$,U0[Z]=Q,j0[Z]=new RegExp($,J?"g":void 0),z0[Z]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${t}*`);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",`${t}+`);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,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`);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 f=O((r9,Hq)=>{var O0=Object.freeze({loose:!0}),H0=Object.freeze({}),w0=(q)=>{if(!q)return H0;if(typeof q!=="object")return O0;return q};Hq.exports=w0});var e=O((t9,Bq)=>{var wq=/^[0-9]+$/,yq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=wq.test(q),Q=wq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},y0=(q,$)=>yq($,q);Bq.exports={compareIdentifiers:yq,rcompareIdentifiers:y0}});var D=O((e9,Dq)=>{var h=C(),{MAX_LENGTH:xq,MAX_SAFE_INTEGER:v}=S(),{safeRe:d,t:l}=E(),B0=f(),{compareIdentifiers:o}=e();class N{constructor(q,$){if($=B0($),q instanceof N)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>xq)throw TypeError(`version is longer than ${xq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?d[l.LOOSE]:d[l.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>v||this.major<0)throw TypeError("Invalid major version");if(this.minor>v||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>v||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 Z=+Q;if(Z>=0&&Z<v)return Z}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 N)){if(typeof q==="string"&&q===this.version)return 0;q=new N(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof N))q=new N(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 N))q=new N(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 o(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof N))q=new N(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 o(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?d[l.PRERELEASELOOSE]:d[l.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 Z=this.prerelease.length;while(--Z>=0)if(typeof this.prerelease[Z]==="number")this.prerelease[Z]++,Z=-2;if(Z===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let Z=[$,Q];if(J===!1)Z=[$];if(o(this.prerelease[0],$)===0){if(isNaN(this.prerelease[1]))this.prerelease=Z}else this.prerelease=Z}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Dq.exports=N});var A=O((o9,Vq)=>{var Gq=D(),x0=(q,$,J=!1)=>{if(q instanceof Gq)return q;try{return new Gq(q,$)}catch(Q){if(!J)return null;throw Q}};Vq.exports=x0});var _q=O((qJ,Xq)=>{var D0=A(),G0=(q,$)=>{let J=D0(q,$);return J?J.version:null};Xq.exports=G0});var Nq=O(($J,Pq)=>{var V0=A(),X0=(q,$)=>{let J=V0(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Pq.exports=X0});var Eq=O((JJ,Aq)=>{var Lq=D(),_0=(q,$,J,Q,Z)=>{if(typeof J==="string")Z=Q,Q=J,J=void 0;try{return new Lq(q instanceof Lq?q.version:q,J).inc($,Q,Z).version}catch(W){return null}};Aq.exports=_0});var Rq=O((QJ,Cq)=>{var Sq=A(),P0=(q,$)=>{let J=Sq(q,null,!0),Q=Sq($,null,!0),Z=J.compare(Q);if(Z===0)return null;let W=Z>0,K=W?J:Q,U=W?Q:J,Y=!!K.prerelease.length;if(!!U.prerelease.length&&!Y){if(!U.patch&&!U.minor)return"major";if(U.compareMain(K)===0){if(U.minor&&!U.patch)return"minor";return"patch"}}let F=Y?"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"};Cq.exports=P0});var uq=O((ZJ,kq)=>{var N0=D(),L0=(q,$)=>new N0(q,$).major;kq.exports=L0});var bq=O((WJ,Tq)=>{var A0=D(),E0=(q,$)=>new A0(q,$).minor;Tq.exports=E0});var fq=O((KJ,Mq)=>{var S0=D(),C0=(q,$)=>new S0(q,$).patch;Mq.exports=C0});var vq=O((jJ,hq)=>{var R0=A(),k0=(q,$)=>{let J=R0(q,$);return J&&J.prerelease.length?J.prerelease:null};hq.exports=k0});var _=O((zJ,lq)=>{var dq=D(),u0=(q,$,J)=>new dq(q,J).compare(new dq($,J));lq.exports=u0});var cq=O((UJ,gq)=>{var T0=_(),b0=(q,$,J)=>T0($,q,J);gq.exports=b0});var pq=O((YJ,mq)=>{var M0=_(),f0=(q,$)=>M0(q,$,!0);mq.exports=f0});var g=O((FJ,sq)=>{var aq=D(),h0=(q,$,J)=>{let Q=new aq(q,J),Z=new aq($,J);return Q.compare(Z)||Q.compareBuild(Z)};sq.exports=h0});var iq=O((IJ,nq)=>{var v0=g(),d0=(q,$)=>q.sort((J,Q)=>v0(J,Q,$));nq.exports=d0});var tq=O((OJ,rq)=>{var l0=g(),g0=(q,$)=>q.sort((J,Q)=>l0(Q,J,$));rq.exports=g0});var R=O((HJ,eq)=>{var c0=_(),m0=(q,$,J)=>c0(q,$,J)>0;eq.exports=m0});var c=O((wJ,oq)=>{var p0=_(),a0=(q,$,J)=>p0(q,$,J)<0;oq.exports=a0});var qq=O((yJ,q1)=>{var s0=_(),n0=(q,$,J)=>s0(q,$,J)===0;q1.exports=n0});var $q=O((BJ,$1)=>{var i0=_(),r0=(q,$,J)=>i0(q,$,J)!==0;$1.exports=r0});var m=O((xJ,J1)=>{var t0=_(),e0=(q,$,J)=>t0(q,$,J)>=0;J1.exports=e0});var p=O((DJ,Q1)=>{var o0=_(),q$=(q,$,J)=>o0(q,$,J)<=0;Q1.exports=q$});var Jq=O((GJ,Z1)=>{var $$=qq(),J$=$q(),Q$=R(),Z$=m(),W$=c(),K$=p(),j$=(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 $$(q,J,Q);case"!=":return J$(q,J,Q);case">":return Q$(q,J,Q);case">=":return Z$(q,J,Q);case"<":return W$(q,J,Q);case"<=":return K$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};Z1.exports=j$});var K1=O((VJ,W1)=>{var z$=D(),U$=A(),{safeRe:a,t:s}=E(),Y$=(q,$)=>{if(q instanceof z$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?a[s.COERCEFULL]:a[s.COERCE]);else{let Y=$.includePrerelease?a[s.COERCERTLFULL]:a[s.COERCERTL],H;while((H=Y.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||H.index+H[0].length!==J.index+J[0].length)J=H;Y.lastIndex=H.index+H[1].length+H[2].length}Y.lastIndex=-1}if(J===null)return null;let Q=J[2],Z=J[3]||"0",W=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",U=$.includePrerelease&&J[6]?`+${J[6]}`:"";return U$(`${Q}.${Z}.${W}${K}${U}`,$)};W1.exports=Y$});var U1=O((XJ,z1)=>{class j1{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}}z1.exports=j1});var P=O((_J,O1)=>{var F$=/\s+/g;class k{constructor(q,$){if($=O$($),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(F$," "),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)=>!F1(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&&G$(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){let J=((this.options.includePrerelease&&x$)|(this.options.loose&&D$))+":"+q,Q=Y1.get(J);if(Q)return Q;let Z=this.options.loose,W=Z?V[G.HYPHENRANGELOOSE]:V[G.HYPHENRANGE];q=q.replace(W,C$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(V[G.COMPARATORTRIM],w$),B("comparator trim",q),q=q.replace(V[G.TILDETRIM],y$),B("tilde trim",q),q=q.replace(V[G.CARETTRIM],B$),B("caret trim",q);let K=q.split(" ").map((F)=>V$(F,this.options)).join(" ").split(/\s+/).map((F)=>S$(F,this.options));if(Z)K=K.filter((F)=>{return B("loose invalid filter",F,this.options),!!F.match(V[G.COMPARATORLOOSE])});B("range list",K);let U=new Map,Y=K.map((F)=>new Qq(F,this.options));for(let F of Y){if(F1(F))return[F];U.set(F.value,F)}if(U.size>1&&U.has(""))U.delete("");let H=[...U.values()];return Y1.set(J,H),H}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return I1(J,$)&&q.set.some((Q)=>{return I1(Q,$)&&J.every((Z)=>{return Q.every((W)=>{return Z.intersects(W,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new H$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(R$(this.set[$],q,this.options))return!0;return!1}}O1.exports=k;var I$=U1(),Y1=new I$,O$=f(),Qq=u(),B=C(),H$=D(),{safeRe:V,t:G,comparatorTrimReplace:w$,tildeTrimReplace:y$,caretTrimReplace:B$}=E(),{FLAG_INCLUDE_PRERELEASE:x$,FLAG_LOOSE:D$}=S(),F1=(q)=>q.value==="<0.0.0-0",G$=(q)=>q.value==="",I1=(q,$)=>{let J=!0,Q=q.slice(),Z=Q.pop();while(J&&Q.length)J=Q.every((W)=>{return Z.intersects(W,$)}),Z=Q.pop();return J},V$=(q,$)=>{return q=q.replace(V[G.BUILD],""),B("comp",q,$),q=P$(q,$),B("caret",q),q=X$(q,$),B("tildes",q),q=L$(q,$),B("xrange",q),q=E$(q,$),B("stars",q),q},X=(q)=>!q||q.toLowerCase()==="x"||q==="*",X$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>_$(J,$)).join(" ")},_$=(q,$)=>{let J=$.loose?V[G.TILDELOOSE]:V[G.TILDE];return q.replace(J,(Q,Z,W,K,U)=>{B("tilde",q,Q,Z,W,K,U);let Y;if(X(Z))Y="";else if(X(W))Y=`>=${Z}.0.0 <${+Z+1}.0.0-0`;else if(X(K))Y=`>=${Z}.${W}.0 <${Z}.${+W+1}.0-0`;else if(U)B("replaceTilde pr",U),Y=`>=${Z}.${W}.${K}-${U} <${Z}.${+W+1}.0-0`;else Y=`>=${Z}.${W}.${K} <${Z}.${+W+1}.0-0`;return B("tilde return",Y),Y})},P$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>N$(J,$)).join(" ")},N$=(q,$)=>{B("caret",q,$);let J=$.loose?V[G.CARETLOOSE]:V[G.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,U,Y)=>{B("caret",q,Z,W,K,U,Y);let H;if(X(W))H="";else if(X(K))H=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(X(U))if(W==="0")H=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else H=`>=${W}.${K}.0${Q} <${+W+1}.0.0-0`;else if(Y)if(B("replaceCaret pr",Y),W==="0")if(K==="0")H=`>=${W}.${K}.${U}-${Y} <${W}.${K}.${+U+1}-0`;else H=`>=${W}.${K}.${U}-${Y} <${W}.${+K+1}.0-0`;else H=`>=${W}.${K}.${U}-${Y} <${+W+1}.0.0-0`;else if(B("no pr"),W==="0")if(K==="0")H=`>=${W}.${K}.${U}${Q} <${W}.${K}.${+U+1}-0`;else H=`>=${W}.${K}.${U}${Q} <${W}.${+K+1}.0-0`;else H=`>=${W}.${K}.${U} <${+W+1}.0.0-0`;return B("caret return",H),H})},L$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>A$(J,$)).join(" ")},A$=(q,$)=>{q=q.trim();let J=$.loose?V[G.XRANGELOOSE]:V[G.XRANGE];return q.replace(J,(Q,Z,W,K,U,Y)=>{B("xRange",q,Q,Z,W,K,U,Y);let H=X(W),F=H||X(K),y=F||X(U),x=y;if(Z==="="&&x)Z="";if(Y=$.includePrerelease?"-0":"",H)if(Z===">"||Z==="<")Q="<0.0.0-0";else Q="*";else if(Z&&x){if(F)K=0;if(U=0,Z===">")if(Z=">=",F)W=+W+1,K=0,U=0;else K=+K+1,U=0;else if(Z==="<=")if(Z="<",F)W=+W+1;else K=+K+1;if(Z==="<")Y="-0";Q=`${Z+W}.${K}.${U}${Y}`}else if(F)Q=`>=${W}.0.0${Y} <${+W+1}.0.0-0`;else if(y)Q=`>=${W}.${K}.0${Y} <${W}.${+K+1}.0-0`;return B("xRange return",Q),Q})},E$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(V[G.STAR],"")},S$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(V[$.includePrerelease?G.GTE0PRE:G.GTE0],"")},C$=(q)=>($,J,Q,Z,W,K,U,Y,H,F,y,x)=>{if(X(Q))J="";else if(X(Z))J=`>=${Q}.0.0${q?"-0":""}`;else if(X(W))J=`>=${Q}.${Z}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(X(H))Y="";else if(X(F))Y=`<${+H+1}.0.0-0`;else if(X(y))Y=`<${H}.${+F+1}.0-0`;else if(x)Y=`<=${H}.${F}.${y}-${x}`;else if(q)Y=`<${H}.${F}.${+y+1}-0`;else Y=`<=${Y}`;return`${J} ${Y}`.trim()},R$=(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 Z=q[Q].semver;if(Z.major===$.major&&Z.minor===$.minor&&Z.patch===$.patch)return!0}}return!1}return!0}});var u=O((PJ,D1)=>{var T=Symbol("SemVer ANY");class n{static get ANY(){return T}constructor(q,$){if($=H1($),q instanceof n)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Wq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Wq("comp",this)}parse(q){let $=this.options.loose?w1[y1.COMPARATORLOOSE]:w1[y1.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 B1(J[2],this.options.loose)}toString(){return this.value}test(q){if(Wq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new B1(q,this.options)}catch($){return!1}return Zq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof n))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new x1(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new x1(this.value,$).test(q.semver)}if($=H1($),$.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(Zq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Zq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}D1.exports=n;var H1=f(),{safeRe:w1,t:y1}=E(),Zq=Jq(),Wq=C(),B1=D(),x1=P()});var b=O((NJ,G1)=>{var k$=P(),u$=(q,$,J)=>{try{$=new k$($,J)}catch(Q){return!1}return $.test(q)};G1.exports=u$});var X1=O((LJ,V1)=>{var T$=P(),b$=(q,$)=>new T$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));V1.exports=b$});var P1=O((AJ,_1)=>{var M$=D(),f$=P(),h$=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new f$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===-1)Q=K,Z=new M$(Q,J)}}),Q};_1.exports=h$});var L1=O((EJ,N1)=>{var v$=D(),d$=P(),l$=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new d$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===1)Q=K,Z=new v$(Q,J)}}),Q};N1.exports=l$});var S1=O((SJ,E1)=>{var Kq=D(),g$=P(),A1=R(),c$=(q,$)=>{q=new g$(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 Z=q.set[Q],W=null;if(Z.forEach((K)=>{let U=new Kq(K.semver.version);switch(K.operator){case">":if(U.prerelease.length===0)U.patch++;else U.prerelease.push(0);U.raw=U.format();case"":case">=":if(!W||A1(U,W))W=U;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),W&&(!J||A1(J,W)))J=W}if(J&&q.test(J))return J;return null};E1.exports=c$});var R1=O((CJ,C1)=>{var m$=P(),p$=(q,$)=>{try{return new m$(q,$).range||"*"}catch(J){return null}};C1.exports=p$});var i=O((RJ,b1)=>{var a$=D(),T1=u(),{ANY:s$}=T1,n$=P(),i$=b(),k1=R(),u1=c(),r$=p(),t$=m(),e$=(q,$,J,Q)=>{q=new a$(q,Q),$=new n$($,Q);let Z,W,K,U,Y;switch(J){case">":Z=k1,W=r$,K=u1,U=">",Y=">=";break;case"<":Z=u1,W=t$,K=k1,U="<",Y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(i$(q,$,Q))return!1;for(let H=0;H<$.set.length;++H){let F=$.set[H],y=null,x=null;if(F.forEach((I)=>{if(I.semver===s$)I=new T1(">=0.0.0");if(y=y||I,x=x||I,Z(I.semver,y.semver,Q))y=I;else if(K(I.semver,x.semver,Q))x=I}),y.operator===U||y.operator===Y)return!1;if((!x.operator||x.operator===U)&&W(q,x.semver))return!1;else if(x.operator===Y&&K(q,x.semver))return!1}return!0};b1.exports=e$});var f1=O((kJ,M1)=>{var o$=i(),q9=(q,$,J)=>o$(q,$,">",J);M1.exports=q9});var v1=O((uJ,h1)=>{var $9=i(),J9=(q,$,J)=>$9(q,$,"<",J);h1.exports=J9});var g1=O((TJ,l1)=>{var d1=P(),Q9=(q,$,J)=>{return q=new d1(q,J),$=new d1($,J),q.intersects($,J)};l1.exports=Q9});var m1=O((bJ,c1)=>{var Z9=b(),W9=_();c1.exports=(q,$,J)=>{let Q=[],Z=null,W=null,K=q.sort((F,y)=>W9(F,y,J));for(let F of K)if(Z9(F,$,J)){if(W=F,!Z)Z=F}else{if(W)Q.push([Z,W]);W=null,Z=null}if(Z)Q.push([Z,null]);let U=[];for(let[F,y]of Q)if(F===y)U.push(F);else if(!y&&F===K[0])U.push("*");else if(!y)U.push(`>=${F}`);else if(F===K[0])U.push(`<=${y}`);else U.push(`${F} - ${y}`);let Y=U.join(" || "),H=typeof $.raw==="string"?$.raw:String($);return Y.length<H.length?Y:$}});var r1=O((MJ,i1)=>{var p1=P(),zq=u(),{ANY:jq}=zq,M=b(),Uq=_(),K9=(q,$,J={})=>{if(q===$)return!0;q=new p1(q,J),$=new p1($,J);let Q=!1;q:for(let Z of q.set){for(let W of $.set){let K=z9(Z,W,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},j9=[new zq(">=0.0.0-0")],a1=[new zq(">=0.0.0")],z9=(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=j9;else q=a1;if($.length===1&&$[0].semver===jq)if(J.includePrerelease)return!0;else $=a1;let Q=new Set,Z,W;for(let I of q)if(I.operator===">"||I.operator===">=")Z=s1(Z,I,J);else if(I.operator==="<"||I.operator==="<=")W=n1(W,I,J);else Q.add(I.semver);if(Q.size>1)return null;let K;if(Z&&W){if(K=Uq(Z.semver,W.semver,J),K>0)return null;else if(K===0&&(Z.operator!==">="||W.operator!=="<="))return null}for(let I of Q){if(Z&&!M(I,String(Z),J))return null;if(W&&!M(I,String(W),J))return null;for(let q0 of $)if(!M(I,String(q0),J))return!1;return!0}let U,Y,H,F,y=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1,x=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1;if(y&&y.prerelease.length===1&&W.operator==="<"&&y.prerelease[0]===0)y=!1;for(let I of $){if(F=F||I.operator===">"||I.operator===">=",H=H||I.operator==="<"||I.operator==="<=",Z){if(x){if(I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===x.major&&I.semver.minor===x.minor&&I.semver.patch===x.patch)x=!1}if(I.operator===">"||I.operator===">="){if(U=s1(Z,I,J),U===I&&U!==Z)return!1}else if(Z.operator===">="&&!M(Z.semver,String(I),J))return!1}if(W){if(y){if(I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===y.major&&I.semver.minor===y.minor&&I.semver.patch===y.patch)y=!1}if(I.operator==="<"||I.operator==="<="){if(Y=n1(W,I,J),Y===I&&Y!==W)return!1}else if(W.operator==="<="&&!M(W.semver,String(I),J))return!1}if(!I.operator&&(W||Z)&&K!==0)return!1}if(Z&&H&&!W&&K!==0)return!1;if(W&&F&&!Z&&K!==0)return!1;if(x||y)return!1;return!0},s1=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},n1=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};i1.exports=K9});var s9=O((fJ,o1)=>{var Yq=E(),t1=S(),U9=D(),e1=e(),Y9=A(),F9=_q(),I9=Nq(),O9=Eq(),H9=Rq(),w9=uq(),y9=bq(),B9=fq(),x9=vq(),D9=_(),G9=cq(),V9=pq(),X9=g(),_9=iq(),P9=tq(),N9=R(),L9=c(),A9=qq(),E9=$q(),S9=m(),C9=p(),R9=Jq(),k9=K1(),u9=u(),T9=P(),b9=b(),M9=X1(),f9=P1(),h9=L1(),v9=S1(),d9=R1(),l9=i(),g9=f1(),c9=v1(),m9=g1(),p9=m1(),a9=r1();o1.exports={parse:Y9,valid:F9,clean:I9,inc:O9,diff:H9,major:w9,minor:y9,patch:B9,prerelease:x9,compare:D9,rcompare:G9,compareLoose:V9,compareBuild:X9,sort:_9,rsort:P9,gt:N9,lt:L9,eq:A9,neq:E9,gte:S9,lte:C9,cmp:R9,coerce:k9,Comparator:u9,Range:T9,satisfies:b9,toComparators:M9,maxSatisfying:f9,minSatisfying:h9,minVersion:v9,validRange:d9,outside:l9,gtr:g9,ltr:c9,intersects:m9,simplifyRange:p9,subset:a9,SemVer:U9,re:Yq.re,src:Yq.src,tokens:Yq.t,SEMVER_SPEC_VERSION:t1.SEMVER_SPEC_VERSION,RELEASE_TYPES:t1.RELEASE_TYPES,compareIdentifiers:e1.compareIdentifiers,rcompareIdentifiers:e1.rcompareIdentifiers}});
3
- export{s9 as Jn};
2
+ import{aQ as O}from"./chunk-aztre27e.js";var S=O((n9,Fq)=>{var $0=Number.MAX_SAFE_INTEGER||9007199254740991,J0=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Fq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:$0,RELEASE_TYPES:J0,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var C=O((i9,Iq)=>{var Q0=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Iq.exports=Q0});var E=O((L,Oq)=>{var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:Z0,MAX_LENGTH:W0}=S(),K0=C();L=Oq.exports={};var j0=L.re=[],z0=L.safeRe=[],j=L.src=[],U0=L.safeSrc=[],z=L.t={},Y0=0,t="[a-zA-Z0-9-]",F0=[["\\s",1],["\\d",W0],[t,Z0]],I0=(q)=>{for(let[$,J]of F0)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=I0($),Z=Y0++;K0(q,Z,$),z[q]=Z,j[Z]=$,U0[Z]=Q,j0[Z]=new RegExp($,J?"g":void 0),z0[Z]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${t}*`);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",`${t}+`);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,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`);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 f=O((r9,Hq)=>{var O0=Object.freeze({loose:!0}),H0=Object.freeze({}),w0=(q)=>{if(!q)return H0;if(typeof q!=="object")return O0;return q};Hq.exports=w0});var e=O((t9,Bq)=>{var wq=/^[0-9]+$/,yq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=wq.test(q),Q=wq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},y0=(q,$)=>yq($,q);Bq.exports={compareIdentifiers:yq,rcompareIdentifiers:y0}});var D=O((e9,Dq)=>{var h=C(),{MAX_LENGTH:xq,MAX_SAFE_INTEGER:v}=S(),{safeRe:d,t:l}=E(),B0=f(),{compareIdentifiers:o}=e();class N{constructor(q,$){if($=B0($),q instanceof N)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>xq)throw TypeError(`version is longer than ${xq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?d[l.LOOSE]:d[l.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>v||this.major<0)throw TypeError("Invalid major version");if(this.minor>v||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>v||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 Z=+Q;if(Z>=0&&Z<v)return Z}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 N)){if(typeof q==="string"&&q===this.version)return 0;q=new N(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof N))q=new N(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 N))q=new N(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 o(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof N))q=new N(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 o(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?d[l.PRERELEASELOOSE]:d[l.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 Z=this.prerelease.length;while(--Z>=0)if(typeof this.prerelease[Z]==="number")this.prerelease[Z]++,Z=-2;if(Z===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let Z=[$,Q];if(J===!1)Z=[$];if(o(this.prerelease[0],$)===0){if(isNaN(this.prerelease[1]))this.prerelease=Z}else this.prerelease=Z}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Dq.exports=N});var A=O((o9,Vq)=>{var Gq=D(),x0=(q,$,J=!1)=>{if(q instanceof Gq)return q;try{return new Gq(q,$)}catch(Q){if(!J)return null;throw Q}};Vq.exports=x0});var _q=O((qJ,Xq)=>{var D0=A(),G0=(q,$)=>{let J=D0(q,$);return J?J.version:null};Xq.exports=G0});var Nq=O(($J,Pq)=>{var V0=A(),X0=(q,$)=>{let J=V0(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Pq.exports=X0});var Eq=O((JJ,Aq)=>{var Lq=D(),_0=(q,$,J,Q,Z)=>{if(typeof J==="string")Z=Q,Q=J,J=void 0;try{return new Lq(q instanceof Lq?q.version:q,J).inc($,Q,Z).version}catch(W){return null}};Aq.exports=_0});var Rq=O((QJ,Cq)=>{var Sq=A(),P0=(q,$)=>{let J=Sq(q,null,!0),Q=Sq($,null,!0),Z=J.compare(Q);if(Z===0)return null;let W=Z>0,K=W?J:Q,U=W?Q:J,Y=!!K.prerelease.length;if(!!U.prerelease.length&&!Y){if(!U.patch&&!U.minor)return"major";if(U.compareMain(K)===0){if(U.minor&&!U.patch)return"minor";return"patch"}}let F=Y?"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"};Cq.exports=P0});var uq=O((ZJ,kq)=>{var N0=D(),L0=(q,$)=>new N0(q,$).major;kq.exports=L0});var bq=O((WJ,Tq)=>{var A0=D(),E0=(q,$)=>new A0(q,$).minor;Tq.exports=E0});var fq=O((KJ,Mq)=>{var S0=D(),C0=(q,$)=>new S0(q,$).patch;Mq.exports=C0});var vq=O((jJ,hq)=>{var R0=A(),k0=(q,$)=>{let J=R0(q,$);return J&&J.prerelease.length?J.prerelease:null};hq.exports=k0});var _=O((zJ,lq)=>{var dq=D(),u0=(q,$,J)=>new dq(q,J).compare(new dq($,J));lq.exports=u0});var cq=O((UJ,gq)=>{var T0=_(),b0=(q,$,J)=>T0($,q,J);gq.exports=b0});var pq=O((YJ,mq)=>{var M0=_(),f0=(q,$)=>M0(q,$,!0);mq.exports=f0});var g=O((FJ,sq)=>{var aq=D(),h0=(q,$,J)=>{let Q=new aq(q,J),Z=new aq($,J);return Q.compare(Z)||Q.compareBuild(Z)};sq.exports=h0});var iq=O((IJ,nq)=>{var v0=g(),d0=(q,$)=>q.sort((J,Q)=>v0(J,Q,$));nq.exports=d0});var tq=O((OJ,rq)=>{var l0=g(),g0=(q,$)=>q.sort((J,Q)=>l0(Q,J,$));rq.exports=g0});var R=O((HJ,eq)=>{var c0=_(),m0=(q,$,J)=>c0(q,$,J)>0;eq.exports=m0});var c=O((wJ,oq)=>{var p0=_(),a0=(q,$,J)=>p0(q,$,J)<0;oq.exports=a0});var qq=O((yJ,q1)=>{var s0=_(),n0=(q,$,J)=>s0(q,$,J)===0;q1.exports=n0});var $q=O((BJ,$1)=>{var i0=_(),r0=(q,$,J)=>i0(q,$,J)!==0;$1.exports=r0});var m=O((xJ,J1)=>{var t0=_(),e0=(q,$,J)=>t0(q,$,J)>=0;J1.exports=e0});var p=O((DJ,Q1)=>{var o0=_(),q$=(q,$,J)=>o0(q,$,J)<=0;Q1.exports=q$});var Jq=O((GJ,Z1)=>{var $$=qq(),J$=$q(),Q$=R(),Z$=m(),W$=c(),K$=p(),j$=(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 $$(q,J,Q);case"!=":return J$(q,J,Q);case">":return Q$(q,J,Q);case">=":return Z$(q,J,Q);case"<":return W$(q,J,Q);case"<=":return K$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};Z1.exports=j$});var K1=O((VJ,W1)=>{var z$=D(),U$=A(),{safeRe:a,t:s}=E(),Y$=(q,$)=>{if(q instanceof z$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?a[s.COERCEFULL]:a[s.COERCE]);else{let Y=$.includePrerelease?a[s.COERCERTLFULL]:a[s.COERCERTL],H;while((H=Y.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||H.index+H[0].length!==J.index+J[0].length)J=H;Y.lastIndex=H.index+H[1].length+H[2].length}Y.lastIndex=-1}if(J===null)return null;let Q=J[2],Z=J[3]||"0",W=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",U=$.includePrerelease&&J[6]?`+${J[6]}`:"";return U$(`${Q}.${Z}.${W}${K}${U}`,$)};W1.exports=Y$});var U1=O((XJ,z1)=>{class j1{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}}z1.exports=j1});var P=O((_J,O1)=>{var F$=/\s+/g;class k{constructor(q,$){if($=O$($),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(F$," "),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)=>!F1(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&&G$(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){let J=((this.options.includePrerelease&&x$)|(this.options.loose&&D$))+":"+q,Q=Y1.get(J);if(Q)return Q;let Z=this.options.loose,W=Z?V[G.HYPHENRANGELOOSE]:V[G.HYPHENRANGE];q=q.replace(W,C$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(V[G.COMPARATORTRIM],w$),B("comparator trim",q),q=q.replace(V[G.TILDETRIM],y$),B("tilde trim",q),q=q.replace(V[G.CARETTRIM],B$),B("caret trim",q);let K=q.split(" ").map((F)=>V$(F,this.options)).join(" ").split(/\s+/).map((F)=>S$(F,this.options));if(Z)K=K.filter((F)=>{return B("loose invalid filter",F,this.options),!!F.match(V[G.COMPARATORLOOSE])});B("range list",K);let U=new Map,Y=K.map((F)=>new Qq(F,this.options));for(let F of Y){if(F1(F))return[F];U.set(F.value,F)}if(U.size>1&&U.has(""))U.delete("");let H=[...U.values()];return Y1.set(J,H),H}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return I1(J,$)&&q.set.some((Q)=>{return I1(Q,$)&&J.every((Z)=>{return Q.every((W)=>{return Z.intersects(W,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new H$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(R$(this.set[$],q,this.options))return!0;return!1}}O1.exports=k;var I$=U1(),Y1=new I$,O$=f(),Qq=u(),B=C(),H$=D(),{safeRe:V,t:G,comparatorTrimReplace:w$,tildeTrimReplace:y$,caretTrimReplace:B$}=E(),{FLAG_INCLUDE_PRERELEASE:x$,FLAG_LOOSE:D$}=S(),F1=(q)=>q.value==="<0.0.0-0",G$=(q)=>q.value==="",I1=(q,$)=>{let J=!0,Q=q.slice(),Z=Q.pop();while(J&&Q.length)J=Q.every((W)=>{return Z.intersects(W,$)}),Z=Q.pop();return J},V$=(q,$)=>{return q=q.replace(V[G.BUILD],""),B("comp",q,$),q=P$(q,$),B("caret",q),q=X$(q,$),B("tildes",q),q=L$(q,$),B("xrange",q),q=E$(q,$),B("stars",q),q},X=(q)=>!q||q.toLowerCase()==="x"||q==="*",X$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>_$(J,$)).join(" ")},_$=(q,$)=>{let J=$.loose?V[G.TILDELOOSE]:V[G.TILDE];return q.replace(J,(Q,Z,W,K,U)=>{B("tilde",q,Q,Z,W,K,U);let Y;if(X(Z))Y="";else if(X(W))Y=`>=${Z}.0.0 <${+Z+1}.0.0-0`;else if(X(K))Y=`>=${Z}.${W}.0 <${Z}.${+W+1}.0-0`;else if(U)B("replaceTilde pr",U),Y=`>=${Z}.${W}.${K}-${U} <${Z}.${+W+1}.0-0`;else Y=`>=${Z}.${W}.${K} <${Z}.${+W+1}.0-0`;return B("tilde return",Y),Y})},P$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>N$(J,$)).join(" ")},N$=(q,$)=>{B("caret",q,$);let J=$.loose?V[G.CARETLOOSE]:V[G.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,U,Y)=>{B("caret",q,Z,W,K,U,Y);let H;if(X(W))H="";else if(X(K))H=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(X(U))if(W==="0")H=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else H=`>=${W}.${K}.0${Q} <${+W+1}.0.0-0`;else if(Y)if(B("replaceCaret pr",Y),W==="0")if(K==="0")H=`>=${W}.${K}.${U}-${Y} <${W}.${K}.${+U+1}-0`;else H=`>=${W}.${K}.${U}-${Y} <${W}.${+K+1}.0-0`;else H=`>=${W}.${K}.${U}-${Y} <${+W+1}.0.0-0`;else if(B("no pr"),W==="0")if(K==="0")H=`>=${W}.${K}.${U}${Q} <${W}.${K}.${+U+1}-0`;else H=`>=${W}.${K}.${U}${Q} <${W}.${+K+1}.0-0`;else H=`>=${W}.${K}.${U} <${+W+1}.0.0-0`;return B("caret return",H),H})},L$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>A$(J,$)).join(" ")},A$=(q,$)=>{q=q.trim();let J=$.loose?V[G.XRANGELOOSE]:V[G.XRANGE];return q.replace(J,(Q,Z,W,K,U,Y)=>{B("xRange",q,Q,Z,W,K,U,Y);let H=X(W),F=H||X(K),y=F||X(U),x=y;if(Z==="="&&x)Z="";if(Y=$.includePrerelease?"-0":"",H)if(Z===">"||Z==="<")Q="<0.0.0-0";else Q="*";else if(Z&&x){if(F)K=0;if(U=0,Z===">")if(Z=">=",F)W=+W+1,K=0,U=0;else K=+K+1,U=0;else if(Z==="<=")if(Z="<",F)W=+W+1;else K=+K+1;if(Z==="<")Y="-0";Q=`${Z+W}.${K}.${U}${Y}`}else if(F)Q=`>=${W}.0.0${Y} <${+W+1}.0.0-0`;else if(y)Q=`>=${W}.${K}.0${Y} <${W}.${+K+1}.0-0`;return B("xRange return",Q),Q})},E$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(V[G.STAR],"")},S$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(V[$.includePrerelease?G.GTE0PRE:G.GTE0],"")},C$=(q)=>($,J,Q,Z,W,K,U,Y,H,F,y,x)=>{if(X(Q))J="";else if(X(Z))J=`>=${Q}.0.0${q?"-0":""}`;else if(X(W))J=`>=${Q}.${Z}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(X(H))Y="";else if(X(F))Y=`<${+H+1}.0.0-0`;else if(X(y))Y=`<${H}.${+F+1}.0-0`;else if(x)Y=`<=${H}.${F}.${y}-${x}`;else if(q)Y=`<${H}.${F}.${+y+1}-0`;else Y=`<=${Y}`;return`${J} ${Y}`.trim()},R$=(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 Z=q[Q].semver;if(Z.major===$.major&&Z.minor===$.minor&&Z.patch===$.patch)return!0}}return!1}return!0}});var u=O((PJ,D1)=>{var T=Symbol("SemVer ANY");class n{static get ANY(){return T}constructor(q,$){if($=H1($),q instanceof n)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Wq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Wq("comp",this)}parse(q){let $=this.options.loose?w1[y1.COMPARATORLOOSE]:w1[y1.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 B1(J[2],this.options.loose)}toString(){return this.value}test(q){if(Wq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new B1(q,this.options)}catch($){return!1}return Zq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof n))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new x1(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new x1(this.value,$).test(q.semver)}if($=H1($),$.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(Zq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Zq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}D1.exports=n;var H1=f(),{safeRe:w1,t:y1}=E(),Zq=Jq(),Wq=C(),B1=D(),x1=P()});var b=O((NJ,G1)=>{var k$=P(),u$=(q,$,J)=>{try{$=new k$($,J)}catch(Q){return!1}return $.test(q)};G1.exports=u$});var X1=O((LJ,V1)=>{var T$=P(),b$=(q,$)=>new T$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));V1.exports=b$});var P1=O((AJ,_1)=>{var M$=D(),f$=P(),h$=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new f$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===-1)Q=K,Z=new M$(Q,J)}}),Q};_1.exports=h$});var L1=O((EJ,N1)=>{var v$=D(),d$=P(),l$=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new d$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===1)Q=K,Z=new v$(Q,J)}}),Q};N1.exports=l$});var S1=O((SJ,E1)=>{var Kq=D(),g$=P(),A1=R(),c$=(q,$)=>{q=new g$(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 Z=q.set[Q],W=null;if(Z.forEach((K)=>{let U=new Kq(K.semver.version);switch(K.operator){case">":if(U.prerelease.length===0)U.patch++;else U.prerelease.push(0);U.raw=U.format();case"":case">=":if(!W||A1(U,W))W=U;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),W&&(!J||A1(J,W)))J=W}if(J&&q.test(J))return J;return null};E1.exports=c$});var R1=O((CJ,C1)=>{var m$=P(),p$=(q,$)=>{try{return new m$(q,$).range||"*"}catch(J){return null}};C1.exports=p$});var i=O((RJ,b1)=>{var a$=D(),T1=u(),{ANY:s$}=T1,n$=P(),i$=b(),k1=R(),u1=c(),r$=p(),t$=m(),e$=(q,$,J,Q)=>{q=new a$(q,Q),$=new n$($,Q);let Z,W,K,U,Y;switch(J){case">":Z=k1,W=r$,K=u1,U=">",Y=">=";break;case"<":Z=u1,W=t$,K=k1,U="<",Y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(i$(q,$,Q))return!1;for(let H=0;H<$.set.length;++H){let F=$.set[H],y=null,x=null;if(F.forEach((I)=>{if(I.semver===s$)I=new T1(">=0.0.0");if(y=y||I,x=x||I,Z(I.semver,y.semver,Q))y=I;else if(K(I.semver,x.semver,Q))x=I}),y.operator===U||y.operator===Y)return!1;if((!x.operator||x.operator===U)&&W(q,x.semver))return!1;else if(x.operator===Y&&K(q,x.semver))return!1}return!0};b1.exports=e$});var f1=O((kJ,M1)=>{var o$=i(),q9=(q,$,J)=>o$(q,$,">",J);M1.exports=q9});var v1=O((uJ,h1)=>{var $9=i(),J9=(q,$,J)=>$9(q,$,"<",J);h1.exports=J9});var g1=O((TJ,l1)=>{var d1=P(),Q9=(q,$,J)=>{return q=new d1(q,J),$=new d1($,J),q.intersects($,J)};l1.exports=Q9});var m1=O((bJ,c1)=>{var Z9=b(),W9=_();c1.exports=(q,$,J)=>{let Q=[],Z=null,W=null,K=q.sort((F,y)=>W9(F,y,J));for(let F of K)if(Z9(F,$,J)){if(W=F,!Z)Z=F}else{if(W)Q.push([Z,W]);W=null,Z=null}if(Z)Q.push([Z,null]);let U=[];for(let[F,y]of Q)if(F===y)U.push(F);else if(!y&&F===K[0])U.push("*");else if(!y)U.push(`>=${F}`);else if(F===K[0])U.push(`<=${y}`);else U.push(`${F} - ${y}`);let Y=U.join(" || "),H=typeof $.raw==="string"?$.raw:String($);return Y.length<H.length?Y:$}});var r1=O((MJ,i1)=>{var p1=P(),zq=u(),{ANY:jq}=zq,M=b(),Uq=_(),K9=(q,$,J={})=>{if(q===$)return!0;q=new p1(q,J),$=new p1($,J);let Q=!1;q:for(let Z of q.set){for(let W of $.set){let K=z9(Z,W,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},j9=[new zq(">=0.0.0-0")],a1=[new zq(">=0.0.0")],z9=(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=j9;else q=a1;if($.length===1&&$[0].semver===jq)if(J.includePrerelease)return!0;else $=a1;let Q=new Set,Z,W;for(let I of q)if(I.operator===">"||I.operator===">=")Z=s1(Z,I,J);else if(I.operator==="<"||I.operator==="<=")W=n1(W,I,J);else Q.add(I.semver);if(Q.size>1)return null;let K;if(Z&&W){if(K=Uq(Z.semver,W.semver,J),K>0)return null;else if(K===0&&(Z.operator!==">="||W.operator!=="<="))return null}for(let I of Q){if(Z&&!M(I,String(Z),J))return null;if(W&&!M(I,String(W),J))return null;for(let q0 of $)if(!M(I,String(q0),J))return!1;return!0}let U,Y,H,F,y=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1,x=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1;if(y&&y.prerelease.length===1&&W.operator==="<"&&y.prerelease[0]===0)y=!1;for(let I of $){if(F=F||I.operator===">"||I.operator===">=",H=H||I.operator==="<"||I.operator==="<=",Z){if(x){if(I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===x.major&&I.semver.minor===x.minor&&I.semver.patch===x.patch)x=!1}if(I.operator===">"||I.operator===">="){if(U=s1(Z,I,J),U===I&&U!==Z)return!1}else if(Z.operator===">="&&!M(Z.semver,String(I),J))return!1}if(W){if(y){if(I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===y.major&&I.semver.minor===y.minor&&I.semver.patch===y.patch)y=!1}if(I.operator==="<"||I.operator==="<="){if(Y=n1(W,I,J),Y===I&&Y!==W)return!1}else if(W.operator==="<="&&!M(W.semver,String(I),J))return!1}if(!I.operator&&(W||Z)&&K!==0)return!1}if(Z&&H&&!W&&K!==0)return!1;if(W&&F&&!Z&&K!==0)return!1;if(x||y)return!1;return!0},s1=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},n1=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};i1.exports=K9});var s9=O((fJ,o1)=>{var Yq=E(),t1=S(),U9=D(),e1=e(),Y9=A(),F9=_q(),I9=Nq(),O9=Eq(),H9=Rq(),w9=uq(),y9=bq(),B9=fq(),x9=vq(),D9=_(),G9=cq(),V9=pq(),X9=g(),_9=iq(),P9=tq(),N9=R(),L9=c(),A9=qq(),E9=$q(),S9=m(),C9=p(),R9=Jq(),k9=K1(),u9=u(),T9=P(),b9=b(),M9=X1(),f9=P1(),h9=L1(),v9=S1(),d9=R1(),l9=i(),g9=f1(),c9=v1(),m9=g1(),p9=m1(),a9=r1();o1.exports={parse:Y9,valid:F9,clean:I9,inc:O9,diff:H9,major:w9,minor:y9,patch:B9,prerelease:x9,compare:D9,rcompare:G9,compareLoose:V9,compareBuild:X9,sort:_9,rsort:P9,gt:N9,lt:L9,eq:A9,neq:E9,gte:S9,lte:C9,cmp:R9,coerce:k9,Comparator:u9,Range:T9,satisfies:b9,toComparators:M9,maxSatisfying:f9,minSatisfying:h9,minVersion:v9,validRange:d9,outside:l9,gtr:g9,ltr:c9,intersects:m9,simplifyRange:p9,subset:a9,SemVer:U9,re:Yq.re,src:Yq.src,tokens:Yq.t,SEMVER_SPEC_VERSION:t1.SEMVER_SPEC_VERSION,RELEASE_TYPES:t1.RELEASE_TYPES,compareIdentifiers:e1.compareIdentifiers,rcompareIdentifiers:e1.rcompareIdentifiers}});
3
+ export{s9 as Fp};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{fO as d3,hO as P5}from"./chunk-0rmmg3g4.js";function R($,X,Y,J,Q){if(J==="m")throw TypeError("Private method is not writable");if(J==="a"&&!Q)throw TypeError("Private accessor was defined without a setter");if(typeof X==="function"?$!==X||!Q:!X.has($))throw TypeError("Cannot write private member to an object whose class did not declare it");return J==="a"?Q.call($,Y):Q?Q.value=Y:X.set($,Y),Y}function M($,X,Y,J){if(Y==="a"&&!J)throw TypeError("Private accessor was defined without a getter");if(typeof X==="function"?$!==X||!J:!X.has($))throw TypeError("Cannot read private member from an object whose class did not declare it");return Y==="m"?J:Y==="a"?J.call($):J?J.value:X.get($)}var t4=function(){let{crypto:$}=globalThis;if($?.randomUUID)return t4=$.randomUUID.bind($),$.randomUUID();let X=new Uint8Array(1),Y=$?()=>$.getRandomValues(X)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(J)=>(+J^Y()&15>>+J/4).toString(16))};function e$($){return typeof $==="object"&&$!==null&&(("name"in $)&&$.name==="AbortError"||("message"in $)&&String($.message).includes("FetchRequestCanceledException"))}var M8=($)=>{if($ instanceof Error)return $;if(typeof $==="object"&&$!==null){try{if(Object.prototype.toString.call($)==="[object Error]"){let X=Error($.message,$.cause?{cause:$.cause}:{});if($.stack)X.stack=$.stack;if($.cause&&!X.cause)X.cause=$.cause;if($.name)X.name=$.name;return X}}catch{}try{return Error(JSON.stringify($))}catch{}}return Error($)};class f extends Error{}class X$ extends f{constructor($,X,Y,J){super(`${X$.makeMessage($,X,Y)}`);this.status=$,this.headers=J,this.requestID=J?.get("request-id"),this.error=X}static makeMessage($,X,Y){let J=X?.message?typeof X.message==="string"?X.message:JSON.stringify(X.message):X?JSON.stringify(X):Y;if($&&J)return`${$} ${J}`;if($)return`${$} status code (no body)`;if(J)return J;return"(no status code or body)"}static generate($,X,Y,J){if(!$||!J)return new f0({message:Y,cause:M8(X)});let Q=X;if($===400)return new E8($,Q,Y,J);if($===401)return new L8($,Q,Y,J);if($===403)return new Z8($,Q,Y,J);if($===404)return new S8($,Q,Y,J);if($===409)return new A8($,Q,Y,J);if($===422)return new C8($,Q,Y,J);if($===429)return new D8($,Q,Y,J);if($>=500)return new R8($,Q,Y,J);return new X$($,Q,Y,J)}}class q$ extends X${constructor({message:$}={}){super(void 0,void 0,$||"Request was aborted.",void 0)}}class f0 extends X${constructor({message:$,cause:X}){super(void 0,void 0,$||"Connection error.",void 0);if(X)this.cause=X}}class O8 extends f0{constructor({message:$}={}){super({message:$??"Request timed out."})}}class E8 extends X${}class L8 extends X${}class Z8 extends X${}class S8 extends X${}class A8 extends X${}class C8 extends X${}class D8 extends X${}class R8 extends X${}var o5=/^[a-z][a-z0-9+.-]*:/i,E7=($)=>{return o5.test($)},o4=($)=>(o4=Array.isArray,o4($)),e4=o4;function c6($){if(typeof $!=="object")return{};return $??{}}function L7($){if(!$)return!0;for(let X in $)return!1;return!0}function Z7($,X){return Object.prototype.hasOwnProperty.call($,X)}var S7=($,X)=>{if(typeof X!=="number"||!Number.isInteger(X))throw new f(`${$} must be an integer`);if(X<0)throw new f(`${$} must be a positive integer`);return X};var l6=($)=>{try{return JSON.parse($)}catch(X){return}};var A7=($)=>new Promise((X)=>setTimeout(X,$));var w0="0.71.2";var T7=()=>{return typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u"};function e5(){if(typeof Deno<"u"&&Deno.build!=null)return"deno";if(typeof EdgeRuntime<"u")return"edge";if(Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]")return"node";return"unknown"}var $Y=()=>{let $=e5();if($==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":D7(Deno.build.os),"X-Stainless-Arch":C7(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version==="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if($==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":D7(globalThis.process.platform??"unknown"),"X-Stainless-Arch":C7(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let X=XY();if(X)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${X.browser}`,"X-Stainless-Runtime-Version":X.version};return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function XY(){if(typeof navigator>"u"||!navigator)return null;let $=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(let{key:X,pattern:Y}of $){let J=Y.exec(navigator.userAgent);if(J){let Q=J[1]||0,W=J[2]||0,z=J[3]||0;return{browser:X,version:`${Q}.${W}.${z}`}}}return null}var C7=($)=>{if($==="x32")return"x32";if($==="x86_64"||$==="x64")return"x64";if($==="arm")return"arm";if($==="aarch64"||$==="arm64")return"arm64";if($)return`other:${$}`;return"unknown"},D7=($)=>{if($=$.toLowerCase(),$.includes("ios"))return"iOS";if($==="android")return"Android";if($==="darwin")return"MacOS";if($==="win32")return"Windows";if($==="freebsd")return"FreeBSD";if($==="openbsd")return"OpenBSD";if($==="linux")return"Linux";if($)return`Other:${$}`;return"Unknown"},R7,_7=()=>{return R7??(R7=$Y())};function P7(){if(typeof fetch<"u")return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function $X(...$){let X=globalThis.ReadableStream;if(typeof X>"u")throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new X(...$)}function p6($){let X=Symbol.asyncIterator in $?$[Symbol.asyncIterator]():$[Symbol.iterator]();return $X({start(){},async pull(Y){let{done:J,value:Q}=await X.next();if(J)Y.close();else Y.enqueue(Q)},async cancel(){await X.return?.()}})}function T8($){if($[Symbol.asyncIterator])return $;let X=$.getReader();return{async next(){try{let Y=await X.read();if(Y?.done)X.releaseLock();return Y}catch(Y){throw X.releaseLock(),Y}},async return(){let Y=X.cancel();return X.releaseLock(),await Y,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function j7($){if($===null||typeof $!=="object")return;if($[Symbol.asyncIterator]){await $[Symbol.asyncIterator]().return?.();return}let X=$.getReader(),Y=X.cancel();X.releaseLock(),await Y}var k7=({headers:$,body:X})=>{return{bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(X)}};function b7($){let X=0;for(let Q of $)X+=Q.length;let Y=new Uint8Array(X),J=0;for(let Q of $)Y.set(Q,J),J+=Q.length;return Y}var x7;function _8($){let X;return(x7??(X=new globalThis.TextEncoder,x7=X.encode.bind(X)))($)}var f7;function XX($){let X;return(f7??(X=new globalThis.TextDecoder,f7=X.decode.bind(X)))($)}var Z$,S$;class N0{constructor(){Z$.set(this,void 0),S$.set(this,void 0),R(this,Z$,new Uint8Array,"f"),R(this,S$,null,"f")}decode($){if($==null)return[];let X=$ instanceof ArrayBuffer?new Uint8Array($):typeof $==="string"?_8($):$;R(this,Z$,b7([M(this,Z$,"f"),X]),"f");let Y=[],J;while((J=QY(M(this,Z$,"f"),M(this,S$,"f")))!=null){if(J.carriage&&M(this,S$,"f")==null){R(this,S$,J.index,"f");continue}if(M(this,S$,"f")!=null&&(J.index!==M(this,S$,"f")+1||J.carriage)){Y.push(XX(M(this,Z$,"f").subarray(0,M(this,S$,"f")-1))),R(this,Z$,M(this,Z$,"f").subarray(M(this,S$,"f")),"f"),R(this,S$,null,"f");continue}let Q=M(this,S$,"f")!==null?J.preceding-1:J.preceding,W=XX(M(this,Z$,"f").subarray(0,Q));Y.push(W),R(this,Z$,M(this,Z$,"f").subarray(J.index),"f"),R(this,S$,null,"f")}return Y}flush(){if(!M(this,Z$,"f").length)return[];return this.decode(`
2
+ import{bQ as d3,dQ as P5}from"./chunk-aztre27e.js";function R($,X,Y,J,Q){if(J==="m")throw TypeError("Private method is not writable");if(J==="a"&&!Q)throw TypeError("Private accessor was defined without a setter");if(typeof X==="function"?$!==X||!Q:!X.has($))throw TypeError("Cannot write private member to an object whose class did not declare it");return J==="a"?Q.call($,Y):Q?Q.value=Y:X.set($,Y),Y}function M($,X,Y,J){if(Y==="a"&&!J)throw TypeError("Private accessor was defined without a getter");if(typeof X==="function"?$!==X||!J:!X.has($))throw TypeError("Cannot read private member from an object whose class did not declare it");return Y==="m"?J:Y==="a"?J.call($):J?J.value:X.get($)}var t4=function(){let{crypto:$}=globalThis;if($?.randomUUID)return t4=$.randomUUID.bind($),$.randomUUID();let X=new Uint8Array(1),Y=$?()=>$.getRandomValues(X)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(J)=>(+J^Y()&15>>+J/4).toString(16))};function e$($){return typeof $==="object"&&$!==null&&(("name"in $)&&$.name==="AbortError"||("message"in $)&&String($.message).includes("FetchRequestCanceledException"))}var M8=($)=>{if($ instanceof Error)return $;if(typeof $==="object"&&$!==null){try{if(Object.prototype.toString.call($)==="[object Error]"){let X=Error($.message,$.cause?{cause:$.cause}:{});if($.stack)X.stack=$.stack;if($.cause&&!X.cause)X.cause=$.cause;if($.name)X.name=$.name;return X}}catch{}try{return Error(JSON.stringify($))}catch{}}return Error($)};class f extends Error{}class X$ extends f{constructor($,X,Y,J){super(`${X$.makeMessage($,X,Y)}`);this.status=$,this.headers=J,this.requestID=J?.get("request-id"),this.error=X}static makeMessage($,X,Y){let J=X?.message?typeof X.message==="string"?X.message:JSON.stringify(X.message):X?JSON.stringify(X):Y;if($&&J)return`${$} ${J}`;if($)return`${$} status code (no body)`;if(J)return J;return"(no status code or body)"}static generate($,X,Y,J){if(!$||!J)return new f0({message:Y,cause:M8(X)});let Q=X;if($===400)return new E8($,Q,Y,J);if($===401)return new L8($,Q,Y,J);if($===403)return new Z8($,Q,Y,J);if($===404)return new S8($,Q,Y,J);if($===409)return new A8($,Q,Y,J);if($===422)return new C8($,Q,Y,J);if($===429)return new D8($,Q,Y,J);if($>=500)return new R8($,Q,Y,J);return new X$($,Q,Y,J)}}class q$ extends X${constructor({message:$}={}){super(void 0,void 0,$||"Request was aborted.",void 0)}}class f0 extends X${constructor({message:$,cause:X}){super(void 0,void 0,$||"Connection error.",void 0);if(X)this.cause=X}}class O8 extends f0{constructor({message:$}={}){super({message:$??"Request timed out."})}}class E8 extends X${}class L8 extends X${}class Z8 extends X${}class S8 extends X${}class A8 extends X${}class C8 extends X${}class D8 extends X${}class R8 extends X${}var o5=/^[a-z][a-z0-9+.-]*:/i,E7=($)=>{return o5.test($)},o4=($)=>(o4=Array.isArray,o4($)),e4=o4;function c6($){if(typeof $!=="object")return{};return $??{}}function L7($){if(!$)return!0;for(let X in $)return!1;return!0}function Z7($,X){return Object.prototype.hasOwnProperty.call($,X)}var S7=($,X)=>{if(typeof X!=="number"||!Number.isInteger(X))throw new f(`${$} must be an integer`);if(X<0)throw new f(`${$} must be a positive integer`);return X};var l6=($)=>{try{return JSON.parse($)}catch(X){return}};var A7=($)=>new Promise((X)=>setTimeout(X,$));var w0="0.71.2";var T7=()=>{return typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u"};function e5(){if(typeof Deno<"u"&&Deno.build!=null)return"deno";if(typeof EdgeRuntime<"u")return"edge";if(Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]")return"node";return"unknown"}var $Y=()=>{let $=e5();if($==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":D7(Deno.build.os),"X-Stainless-Arch":C7(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version==="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if($==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":D7(globalThis.process.platform??"unknown"),"X-Stainless-Arch":C7(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let X=XY();if(X)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${X.browser}`,"X-Stainless-Runtime-Version":X.version};return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":w0,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function XY(){if(typeof navigator>"u"||!navigator)return null;let $=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(let{key:X,pattern:Y}of $){let J=Y.exec(navigator.userAgent);if(J){let Q=J[1]||0,W=J[2]||0,z=J[3]||0;return{browser:X,version:`${Q}.${W}.${z}`}}}return null}var C7=($)=>{if($==="x32")return"x32";if($==="x86_64"||$==="x64")return"x64";if($==="arm")return"arm";if($==="aarch64"||$==="arm64")return"arm64";if($)return`other:${$}`;return"unknown"},D7=($)=>{if($=$.toLowerCase(),$.includes("ios"))return"iOS";if($==="android")return"Android";if($==="darwin")return"MacOS";if($==="win32")return"Windows";if($==="freebsd")return"FreeBSD";if($==="openbsd")return"OpenBSD";if($==="linux")return"Linux";if($)return`Other:${$}`;return"Unknown"},R7,_7=()=>{return R7??(R7=$Y())};function P7(){if(typeof fetch<"u")return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function $X(...$){let X=globalThis.ReadableStream;if(typeof X>"u")throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new X(...$)}function p6($){let X=Symbol.asyncIterator in $?$[Symbol.asyncIterator]():$[Symbol.iterator]();return $X({start(){},async pull(Y){let{done:J,value:Q}=await X.next();if(J)Y.close();else Y.enqueue(Q)},async cancel(){await X.return?.()}})}function T8($){if($[Symbol.asyncIterator])return $;let X=$.getReader();return{async next(){try{let Y=await X.read();if(Y?.done)X.releaseLock();return Y}catch(Y){throw X.releaseLock(),Y}},async return(){let Y=X.cancel();return X.releaseLock(),await Y,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function j7($){if($===null||typeof $!=="object")return;if($[Symbol.asyncIterator]){await $[Symbol.asyncIterator]().return?.();return}let X=$.getReader(),Y=X.cancel();X.releaseLock(),await Y}var k7=({headers:$,body:X})=>{return{bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(X)}};function b7($){let X=0;for(let Q of $)X+=Q.length;let Y=new Uint8Array(X),J=0;for(let Q of $)Y.set(Q,J),J+=Q.length;return Y}var x7;function _8($){let X;return(x7??(X=new globalThis.TextEncoder,x7=X.encode.bind(X)))($)}var f7;function XX($){let X;return(f7??(X=new globalThis.TextDecoder,f7=X.decode.bind(X)))($)}var Z$,S$;class N0{constructor(){Z$.set(this,void 0),S$.set(this,void 0),R(this,Z$,new Uint8Array,"f"),R(this,S$,null,"f")}decode($){if($==null)return[];let X=$ instanceof ArrayBuffer?new Uint8Array($):typeof $==="string"?_8($):$;R(this,Z$,b7([M(this,Z$,"f"),X]),"f");let Y=[],J;while((J=QY(M(this,Z$,"f"),M(this,S$,"f")))!=null){if(J.carriage&&M(this,S$,"f")==null){R(this,S$,J.index,"f");continue}if(M(this,S$,"f")!=null&&(J.index!==M(this,S$,"f")+1||J.carriage)){Y.push(XX(M(this,Z$,"f").subarray(0,M(this,S$,"f")-1))),R(this,Z$,M(this,Z$,"f").subarray(M(this,S$,"f")),"f"),R(this,S$,null,"f");continue}let Q=M(this,S$,"f")!==null?J.preceding-1:J.preceding,W=XX(M(this,Z$,"f").subarray(0,Q));Y.push(W),R(this,Z$,M(this,Z$,"f").subarray(J.index),"f"),R(this,S$,null,"f")}return Y}flush(){if(!M(this,Z$,"f").length)return[];return this.decode(`
3
3
  `)}}Z$=new WeakMap,S$=new WeakMap;N0.NEWLINE_CHARS=new Set([`
4
4
  `,"\r"]);N0.NEWLINE_REGEXP=/\r\n|[\n\r]/g;function QY($,X){for(let Q=X??0;Q<$.length;Q++){if($[Q]===10)return{preceding:Q,index:Q+1,carriage:!1};if($[Q]===13)return{preceding:Q,index:Q+1,carriage:!0}}return null}function I7($){for(let J=0;J<$.length-1;J++){if($[J]===10&&$[J+1]===10)return J+2;if($[J]===13&&$[J+1]===13)return J+2;if($[J]===13&&$[J+1]===10&&J+3<$.length&&$[J+2]===13&&$[J+3]===10)return J+4}return-1}var n6={off:0,error:200,warn:300,info:400,debug:500},YX=($,X,Y)=>{if(!$)return;if(Z7(n6,$))return $;G$(Y).warn(`${X} was set to ${JSON.stringify($)}, expected one of ${JSON.stringify(Object.keys(n6))}`);return};function P8(){}function i6($,X,Y){if(!X||n6[$]>n6[Y])return P8;else return X[$].bind(X)}var WY={error:P8,warn:P8,info:P8,debug:P8},v7=new WeakMap;function G$($){let X=$.logger,Y=$.logLevel??"off";if(!X)return WY;let J=v7.get(X);if(J&&J[0]===Y)return J[1];let Q={error:i6("error",X,Y),warn:i6("warn",X,Y),info:i6("info",X,Y),debug:i6("debug",X,Y)};return v7.set(X,[Y,Q]),Q}var $0=($)=>{if($.options)$.options={...$.options},delete $.options.headers;if($.headers)$.headers=Object.fromEntries(($.headers instanceof Headers?[...$.headers]:Object.entries($.headers)).map(([X,Y])=>[X,X.toLowerCase()==="x-api-key"||X.toLowerCase()==="authorization"||X.toLowerCase()==="cookie"||X.toLowerCase()==="set-cookie"?"***":Y]));if("retryOfRequestLogID"in $){if($.retryOfRequestLogID)$.retryOf=$.retryOfRequestLogID;delete $.retryOfRequestLogID}return $};var j8;class A${constructor($,X,Y){this.iterator=$,j8.set(this,void 0),this.controller=X,R(this,j8,Y,"f")}static fromSSEResponse($,X,Y){let J=!1,Q=Y?G$(Y):console;async function*W(){if(J)throw new f("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");J=!0;let z=!1;try{for await(let G of zY($,X)){if(G.event==="completion")try{yield JSON.parse(G.data)}catch(V){throw Q.error("Could not parse message into JSON:",G.data),Q.error("From chunk:",G.raw),V}if(G.event==="message_start"||G.event==="message_delta"||G.event==="message_stop"||G.event==="content_block_start"||G.event==="content_block_delta"||G.event==="content_block_stop")try{yield JSON.parse(G.data)}catch(V){throw Q.error("Could not parse message into JSON:",G.data),Q.error("From chunk:",G.raw),V}if(G.event==="ping")continue;if(G.event==="error")throw new X$(void 0,l6(G.data)??G.data,void 0,$.headers)}z=!0}catch(G){if(e$(G))return;throw G}finally{if(!z)X.abort()}}return new A$(W,X,Y)}static fromReadableStream($,X,Y){let J=!1;async function*Q(){let z=new N0,G=T8($);for await(let V of G)for(let H of z.decode(V))yield H;for(let V of z.flush())yield V}async function*W(){if(J)throw new f("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");J=!0;let z=!1;try{for await(let G of Q()){if(z)continue;if(G)yield JSON.parse(G)}z=!0}catch(G){if(e$(G))return;throw G}finally{if(!z)X.abort()}}return new A$(W,X,Y)}[(j8=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let $=[],X=[],Y=this.iterator(),J=(Q)=>{return{next:()=>{if(Q.length===0){let W=Y.next();$.push(W),X.push(W)}return Q.shift()}}};return[new A$(()=>J($),this.controller,M(this,j8,"f")),new A$(()=>J(X),this.controller,M(this,j8,"f"))]}toReadableStream(){let $=this,X;return $X({async start(){X=$[Symbol.asyncIterator]()},async pull(Y){try{let{value:J,done:Q}=await X.next();if(Q)return Y.close();let W=_8(JSON.stringify(J)+`
5
5
  `);Y.enqueue(W)}catch(J){Y.error(J)}},async cancel(){await X.return?.()}})}}async function*zY($,X){if(!$.body){if(X.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new f("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new f("Attempted to iterate over a response with no body")}let Y=new y7,J=new N0,Q=T8($.body);for await(let W of GY(Q))for(let z of J.decode(W)){let G=Y.decode(z);if(G)yield G}for(let W of J.flush()){let z=Y.decode(W);if(z)yield z}}async function*GY($){let X=new Uint8Array;for await(let Y of $){if(Y==null)continue;let J=Y instanceof ArrayBuffer?new Uint8Array(Y):typeof Y==="string"?_8(Y):Y,Q=new Uint8Array(X.length+J.length);Q.set(X),Q.set(J,X.length),X=Q;let W;while((W=I7(X))!==-1)yield X.slice(0,W),X=X.slice(W)}if(X.length>0)yield X}class y7{constructor(){this.event=null,this.data=[],this.chunks=[]}decode($){if($.endsWith("\r"))$=$.substring(0,$.length-1);if(!$){if(!this.event&&!this.data.length)return null;let Q={event:this.event,data:this.data.join(`
@@ -99,4 +99,4 @@ ${Q.content}`:Q.content;continue}if(Q.role==="user"){let W=[];for(let z of Q.con
99
99
  `,wW=600000,d5=class{config;fetchFn;cache=new Map;constructor($){this.config=$,this.fetchFn=$.fetch??fetch}async discover($){let X=this.cache.get($);if(X&&X.expiresAt>Date.now())return X.data;let Y=`${this.config.instanceUrl}/api/graphql`;try{let J=await this.fetchFn(Y,{method:"POST",headers:{...this.config.getHeaders(),"Content-Type":"application/json"},body:JSON.stringify({query:qW,variables:{rootNamespaceId:$}})});if(!J.ok){let H=await J.text();throw new x({message:`Model discovery GraphQL request failed: ${J.status} ${J.statusText} - ${H}`,statusCode:J.status,responseBody:H})}let Q=await J.json();if(Q.errors&&Q.errors.length>0)throw new x({message:`Model discovery GraphQL errors: ${Q.errors.map((H)=>H.message).join(", ")}`});let W=Q.data?.aiChatAvailableModels,z=Q.data?.metadata,G=z?.featureFlags?.find((H)=>H.name==="ai_user_model_switching")?.enabled??!1,V={defaultModel:W?.defaultModel??null,selectableModels:W?.selectableModels??[],pinnedModel:W?.pinnedModel??null,modelSwitchingEnabled:G,instanceVersion:z?.version??null};return this.cache.set($,{data:V,expiresAt:Date.now()+wW}),V}catch(J){if(J instanceof x)throw J;throw new x({message:`Model discovery failed: ${J}`,cause:J})}}async getEffectiveModelRef($,X){let Y=await this.discover($);if(Y.pinnedModel)return Y.pinnedModel.ref;if(X&&Y.modelSwitchingEnabled){if(Y.selectableModels.some((Q)=>Q.ref===X))return X}return Y.defaultModel?.ref??null}invalidateCache(){this.cache.clear()}},NW=600000;function UW(){let $=process.env.XDG_CACHE_HOME||h6.join(c5.homedir(),".cache");return h6.join($,"opencode","gitlab-workflow-model-cache.json")}function FW($,X){let Y=(X||"https://gitlab.com").replace(/\/$/,"");return l5.createHash("sha256").update(`${$}\x00${Y}`).digest("hex").slice(0,12)}var p5=class{filePath;key;constructor($,X){this.filePath=UW(),this.key=FW($,X)}readAll(){try{if(!u$.existsSync(this.filePath))return{};let $=u$.readFileSync(this.filePath,"utf-8");return JSON.parse($)}catch{return{}}}writeAll($){try{let X=h6.dirname(this.filePath);u$.mkdirSync(X,{recursive:!0,mode:448}),u$.writeFileSync(this.filePath,JSON.stringify($,null,2),{mode:384})}catch{}}load(){return this.readAll()[this.key]??null}save($){let X=this.readAll();X[this.key]=$,this.writeAll(X)}isDiscoveryExpired(){let $=this.load();if(!$?.discovery||!$.updatedAt)return!0;return Date.now()-new Date($.updatedAt).getTime()>NW}saveDiscovery($,X){let Y=this.load();this.save({discovery:$,project:X!==void 0?X:Y?.project??null,selectedModelRef:Y?.selectedModelRef??null,selectedModelName:Y?.selectedModelName??null,updatedAt:new Date().toISOString()})}saveSelection($,X){let Y=this.load(),J=X;if(!J&&$&&Y?.discovery){let Q=Y.discovery;J=(Q.pinnedModel?.ref===$?Q.pinnedModel:Q.selectableModels.find((z)=>z.ref===$)??(Q.defaultModel?.ref===$?Q.defaultModel:null))?.name??null}this.save({discovery:Y?.discovery??null,project:Y?.project??null,selectedModelRef:$,selectedModelName:J,updatedAt:new Date().toISOString()})}clear(){let $=this.readAll();if(delete $[this.key],Object.keys($).length===0)try{if(u$.existsSync(this.filePath))u$.unlinkSync(this.filePath)}catch{}else this.writeAll($)}getSelectedModelRef(){return this.load()?.selectedModelRef??null}getSelectedModelName(){return this.load()?.selectedModelName??null}getDiscovery(){return this.load()?.discovery??null}};function B7($){if(!$||typeof $!=="object")return $;let X={};for(let[Y,J]of Object.entries($)){if(Y==="description"||Y==="examples"||Y==="default")continue;if(Y==="properties"&&typeof J==="object"&&J!==null){let Q={};for(let[W,z]of Object.entries(J))if(typeof z==="object"&&z!==null)Q[W]=B7(z);else Q[W]=z;X[Y]=Q}else if(Y==="items"&&typeof J==="object"&&J!==null)X[Y]=B7(J);else X[Y]=J}return X}function MW($){try{return JSON.stringify(B7(JSON.parse($)))}catch{return $}}function OW($){if(!$||typeof $!=="object")return $;let X={type:$.type||"object"};if($.required)X.required=$.required;if($.properties&&typeof $.properties==="object"){let Y={};for(let[J,Q]of Object.entries($.properties))if(typeof Q==="object"&&Q!==null){let W=Q;Y[J]={type:W.type||"string"}}else Y[J]={type:"string"};X.properties=Y}return X}function EW($){try{return JSON.stringify(OW(JSON.parse($)))}catch{return $}}var LW=class ${specificationVersion="v3";modelId;supportedUrls={};config;workflowOptions;tokenClient;projectDetector;modelDiscovery;modelCache;detectedProjectPath=null;sessionWorkflows=new Map;currentWorkflowId=null;currentWorkflowDefinition=null;persistedAgentEmitted=new Map;activeClients=new Set;_selectedModelRef;_selectedModelName;_rootNamespaceId;_discoveryPromise;get selectedModelRef(){return this._selectedModelRef??null}set selectedModelRef(X){this._selectedModelRef=X??void 0,this._selectedModelName=void 0,this.modelCache.saveSelection(X,null)}get selectedModelName(){return this._selectedModelName??null}set selectedModelName(X){this._selectedModelName=X??void 0,this.modelCache.saveSelection(this._selectedModelRef??null,X)}_toolExecutor=null;onUsageUpdate=null;sessionPreapprovedTools=[];sessionID="";set approvalHandler(X){this.workflowOptions.approvalHandler=X??void 0}get approvalHandler(){return this.workflowOptions.approvalHandler??null}onSelectModel=null;set systemPrompt(X){this.workflowOptions.systemPrompt=X??void 0}get systemPrompt(){return this.workflowOptions.systemPrompt??null}get toolExecutor(){return this._toolExecutor}set toolExecutor(X){if(X)try{let{AsyncResource:Y}=N7("async_hooks");this._toolExecutor=Y.bind(X)}catch{this._toolExecutor=X}else this._toolExecutor=null}constructor(X,Y,J={}){this.modelId=X,this.config=Y,this.workflowOptions=J;let Q=J.workingDirectory??process.cwd();this.modelCache=new p5(Q,Y.instanceUrl);let W=this.modelCache.load();if(W?.selectedModelRef)this._selectedModelRef=W.selectedModelRef;if(W?.selectedModelName)this._selectedModelName=W.selectedModelName;this.tokenClient=new HW({instanceUrl:Y.instanceUrl,getHeaders:Y.getHeaders,refreshApiKey:Y.refreshApiKey,fetch:Y.fetch,featureFlags:Y.featureFlags}),this.projectDetector=new u5({instanceUrl:Y.instanceUrl,getHeaders:Y.getHeaders,fetch:Y.fetch}),this.modelDiscovery=new d5({instanceUrl:Y.instanceUrl,getHeaders:Y.getHeaders,fetch:Y.fetch})}get provider(){return this.config.provider}async resolveProjectId(){if(this.workflowOptions.projectId)return this.workflowOptions.projectId;if(this.detectedProjectPath)return this.detectedProjectPath;let X=this.workflowOptions.workingDirectory??process.cwd(),Y=await this.projectDetector.detectProject(X);if(Y)return this.detectedProjectPath=Y.pathWithNamespace,Y.pathWithNamespace;return}async resolveRootNamespaceId(){if(this.workflowOptions.rootNamespaceId)return this.workflowOptions.rootNamespaceId;if(this._rootNamespaceId!==void 0)return this._rootNamespaceId;let X=this.workflowOptions.workingDirectory??process.cwd(),Y=await this.projectDetector.detectProject(X);if(Y?.namespaceId){let J=`gid://gitlab/Group/${Y.namespaceId}`;return this._rootNamespaceId=J,J}return this._rootNamespaceId=null,null}async resolveModelRef(){let X=sQ(this.modelId);if(this.modelId!=="duo-workflow")return X??"default";if(this._selectedModelRef)return this._selectedModelRef;if(!this._discoveryPromise)this._discoveryPromise=this.doResolveModelRef(),this._discoveryPromise.finally(()=>{this._discoveryPromise=void 0});return this._discoveryPromise}async doResolveModelRef(){let X=await this.resolveRootNamespaceId();if(!X)return this._selectedModelRef="default","default";try{let Y=await this.modelDiscovery.discover(X);if(this.modelCache.saveDiscovery(Y),Y.pinnedModel)return this._selectedModelRef=Y.pinnedModel.ref,this._selectedModelName=Y.pinnedModel.name,this.modelCache.saveSelection(Y.pinnedModel.ref,Y.pinnedModel.name),Y.pinnedModel.ref;let J=this.onSelectModel??this.workflowOptions.onSelectModel;if(Y.selectableModels.length>0&&J){let Q=await J(Y.selectableModels);if(Q){let W=Y.selectableModels.find((z)=>z.ref===Q);if(W)return this._selectedModelRef=W.ref,this._selectedModelName=W.name,this.modelCache.saveSelection(W.ref,W.name),W.ref}}if(Y.defaultModel)return this._selectedModelRef=Y.defaultModel.ref,this._selectedModelName=Y.defaultModel.name,this.modelCache.saveSelection(Y.defaultModel.ref,Y.defaultModel.name),Y.defaultModel.ref}catch{let Y=this.modelCache.load();if(Y?.selectedModelRef)return this._selectedModelRef=Y.selectedModelRef,this._selectedModelName=Y.selectedModelName??void 0,Y.selectedModelRef}return this._selectedModelRef="default","default"}async discoverModels(X){let Y=await this.modelDiscovery.discover(X);return this.modelCache.saveDiscovery(Y),Y}getModelCache(){return this.modelCache}stopWorkflow(){for(let X of this.activeClients)if(X.isConnected)X.stop()}resetWorkflow(X){if(X)this.sessionWorkflows.delete(X);else this.sessionWorkflows.clear(),this.currentWorkflowId=null,this.persistedAgentEmitted.clear()}get workflowId(){return this.currentWorkflowId}createUsage(X){return{inputTokens:{total:X?.inputTotal,noCache:X?.inputTotal,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:X?.outputTotal,text:X?.outputTotal,reasoning:void 0}}}createFinishReason(X,Y){return{unified:X,raw:Y}}async doGenerate(X){let{stream:Y}=await this.doStream(X),J=Y.getReader(),Q=[],W=[],z={unified:"other",raw:void 0},G=this.createUsage();try{while(!0){let{done:q,value:w}=await J.read();if(q)break;switch(w.type){case"text-delta":Q.push(w.delta);break;case"tool-call":W.push({type:"tool-call",toolCallId:w.toolCallId,toolName:w.toolName,input:w.input});break;case"finish":if(z=w.finishReason,w.usage)G=w.usage;break;case"error":throw w.error}}}finally{J.releaseLock()}let V=[],H=Q.join("");if(H)V.push({type:"text",text:H});return V.push(...W),{content:V,finishReason:z,usage:G,warnings:[]}}async doStream(X){let Y=this.extractGoalFromPrompt(X.prompt),J=await this.resolveModelRef(),Q=this.extractMcpTools(X),W=[...this.workflowOptions.preapprovedTools??Q.map((a)=>a.name),...this.sessionPreapprovedTools],z=this.buildAdditionalContext(X.prompt),G=this.toolExecutor??null,V=new Set(X.tools?.map((a)=>a.name)??[]),H=X.providerOptions?.gitlab,q=H?.workflowDefinition??this.workflowOptions.workflowDefinition,w=H?.flowConfig??void 0,B=H?.flowConfigSchemaVersion??void 0,U=H?.aiCatalogItemVersionId??void 0;await this.tokenClient.getToken(q??y6,this.workflowOptions.rootNamespaceId);let O=await this.resolveProjectId(),P=w??q??y6,j=this.sessionID,L=this.sessionWorkflows.get(j);if(L&&L.workflowDefinition!==P)this.sessionWorkflows.delete(j),L=void 0;let A=j==="";if(A&&this.currentWorkflowId&&this.currentWorkflowDefinition!==P)this.currentWorkflowId=null,this.currentWorkflowDefinition=null;let E;if(L)E=L.workflowId;else if(A&&this.currentWorkflowId)E=this.currentWorkflowId;else if(E=await this.tokenClient.createWorkflow(Y,{projectId:O,namespaceId:this.workflowOptions.namespaceId,workflowDefinition:q,agentPrivileges:this.workflowOptions.agentPrivileges,aiCatalogItemVersionId:U}),A)this.currentWorkflowId=E,this.currentWorkflowDefinition=P;else this.sessionWorkflows.set(j,{workflowId:E,workflowDefinition:P,agentEmitted:new Map,toolEntries:new Set}),L=this.sessionWorkflows.get(j);let _=new x5;this.activeClients.add(_);let c=0,n={streamClosed:!1,streamedInputChars:0,streamedOutputChars:0,pendingToolCount:0,approvalPending:!1,deferredClose:null,activeTextBlockId:null,agentMessageEmitted:new Map(L?.agentEmitted??this.persistedAgentEmitted),currentAgentMessageId:"",activeClient:_,processedRequestIDs:new Set,emittedToolEntries:new Set(L?.toolEntries),emittedToolKeys:new Set,sessionKey:j};for(let a of X.prompt)if(a.role==="system")n.streamedInputChars+=a.content.length;else if(a.role==="user"){for(let u of a.content)if(u.type==="text")n.streamedInputChars+=u.text.length}let p;return{stream:new ReadableStream({start:async(a)=>{try{await _.connect({instanceUrl:this.config.instanceUrl,modelRef:J,headers:this.config.getHeaders(),projectId:this.workflowOptions.projectId,namespaceId:this.workflowOptions.namespaceId,rootNamespaceId:this.workflowOptions.rootNamespaceId,aiCatalogItemVersionId:U,workflowDefinition:q??this.workflowOptions.workflowDefinition},(s4)=>{this.handleWorkflowEvent(n,s4,a,_,G,()=>`text-${c++}`,V,p,{aiCatalogItemVersionId:U,workflowDefinition:q??this.workflowOptions.workflowDefinition})});let u=q??y6,x$=this.workflowOptions.clientCapabilities??$W,u6=await this.buildWorkflowMetadata(),w2=JSON.stringify(u6),d6=JSON.stringify({workflowID:E,clientVersion:K7,workflowDefinition:u,goal:Y,workflowMetadata:w2,clientCapabilities:x$,preapproved_tools:W}).length+100,r4=this.trimPayload(Q,z,d6),r5=W.filter((s4)=>r4.mcpTools.some((s5)=>s5.name===s4));p={workflowID:E,clientVersion:K7,workflowDefinition:u,goal:Y,workflowMetadata:w2,additional_context:r4.additionalContext,clientCapabilities:x$,mcpTools:r4.mcpTools,preapproved_tools:r5};let M7=w??this.workflowOptions.flowConfig,O7=B??this.workflowOptions.flowConfigSchemaVersion;if(M7)p.flowConfig=M7;if(O7)p.flowConfigSchemaVersion=O7;else if(p.flowConfig)p.flowConfigSchemaVersion="v1";_.sendStartRequest(p),a.enqueue({type:"stream-start",warnings:[]}),a.enqueue({type:"response-metadata",id:E,modelId:J})}catch(u){if(!n.streamClosed)a.enqueue({type:"error",error:u instanceof x?u:new x({message:`Workflow connection failed: ${u}`,cause:u})}),n.streamClosed=!0,a.close()}},cancel:(a)=>{if(_.stop(),_.close(),this.activeClients.delete(_),n.activeClient=null,!n.streamClosed)if(n.sessionKey)this.sessionWorkflows.delete(n.sessionKey);else this.currentWorkflowId=null}}),request:{body:{workflowId:E,modelRef:J,goal:Y}}}}handleWorkflowEvent(X,Y,J,Q,W,z,G,V,H){if(X.streamClosed)return;switch(Y.type){case"checkpoint":{this.processCheckpoint(X,Y.data,J,z);break}case"tool-request":{let{requestID:q,data:w}=Y;if(X.processedRequestIDs.has(q))break;X.processedRequestIDs.add(q),X.emittedToolKeys.add(w.name);let B;try{JSON.parse(w.args),B=w.args}catch{B=w.args||"{}"}if(X.activeTextBlockId)J.enqueue({type:"text-end",id:X.activeTextBlockId}),X.activeTextBlockId=null;J.enqueue({type:"tool-input-start",id:q,toolName:w.name,providerExecuted:!0}),J.enqueue({type:"tool-input-delta",id:q,delta:B}),J.enqueue({type:"tool-input-end",id:q}),J.enqueue({type:"tool-call",toolCallId:q,toolName:w.name,input:B,providerExecuted:!0}),this.executeToolAndRespond(X,Q,J,q,w.name,B,W).catch(()=>{});break}case"builtin-tool-request":{if(X.processedRequestIDs.has(Y.requestID))break;X.processedRequestIDs.add(Y.requestID);let q=WW(Y.toolName,Y.data,G);X.emittedToolKeys.add(q.toolName);let w=JSON.stringify(q.args);if(X.activeTextBlockId)J.enqueue({type:"text-end",id:X.activeTextBlockId}),X.activeTextBlockId=null;J.enqueue({type:"tool-input-start",id:Y.requestID,toolName:q.toolName,providerExecuted:!0}),J.enqueue({type:"tool-input-delta",id:Y.requestID,delta:w}),J.enqueue({type:"tool-input-end",id:Y.requestID}),J.enqueue({type:"tool-call",toolCallId:Y.requestID,toolName:q.toolName,input:w,providerExecuted:!0}),this.executeToolAndRespond(X,Q,J,Y.requestID,q.toolName,w,W).catch(()=>{});break}case"approval-required":{X.approvalPending=!0,this.approveAndResume(X,Y.tools,V,J,W,z,G,H).catch((q)=>{if(X.approvalPending=!1,X.deferredClose){let w=X.deferredClose;X.deferredClose=null,w()}});break}case"completed":{if(X.activeTextBlockId)J.enqueue({type:"text-end",id:X.activeTextBlockId}),X.activeTextBlockId=null;let q=()=>{if(X.streamClosed)return;let w=Math.ceil(X.streamedInputChars/4),B=Math.ceil(X.streamedOutputChars/4);J.enqueue({type:"finish",finishReason:this.createFinishReason("stop","completed"),usage:this.createUsage({inputTotal:w,outputTotal:B})}),X.streamClosed=!0,J.close(),this.cleanupClient(X,!1)};if(X.pendingToolCount>0||X.approvalPending)X.deferredClose=q;else X.deferredClose=null,q();break}case"failed":{if(X.activeTextBlockId)J.enqueue({type:"text-end",id:X.activeTextBlockId}),X.activeTextBlockId=null;J.enqueue({type:"error",error:new x({message:`Workflow failed: ${g6(Y.error.message)}`,cause:Y.error})}),X.streamClosed=!0,J.close(),this.cleanupClient(X,!0);break}case"closed":{if(X.streamClosed)break;if(X.activeTextBlockId)J.enqueue({type:"text-end",id:X.activeTextBlockId}),X.activeTextBlockId=null;let q=()=>{if(X.streamClosed)return;if(Y.code!==1000)J.enqueue({type:"error",error:new x({message:`WebSocket closed unexpectedly: code=${Y.code} reason=${g6(Y.reason)}`,statusCode:Y.code})}),X.streamClosed=!0,J.close(),this.cleanupClient(X,!0);else{let w=Math.ceil(X.streamedInputChars/4),B=Math.ceil(X.streamedOutputChars/4);J.enqueue({type:"finish",finishReason:this.createFinishReason("stop","closed"),usage:this.createUsage({inputTotal:w,outputTotal:B})}),X.streamClosed=!0,J.close(),this.cleanupClient(X,!1)}};if(X.pendingToolCount>0||X.approvalPending)X.deferredClose=q;else X.deferredClose=null,q();break}}}processCheckpoint(X,Y,J,Q){if(!Y.checkpoint){if(Y.content){if(!X.activeTextBlockId)X.activeTextBlockId=Q(),J.enqueue({type:"text-start",id:X.activeTextBlockId});J.enqueue({type:"text-delta",id:X.activeTextBlockId,delta:Y.content}),X.streamedOutputChars+=Y.content.length}return}let W;try{W=JSON.parse(Y.checkpoint)}catch(G){return}let z=W.channel_values?.ui_chat_log;if(!z||!Array.isArray(z)||z.length===0)return;if(Y.status!=="RUNNING"&&Y.status!=="INPUT_REQUIRED"&&Y.status!=="FINISHED"&&Y.status!=="COMPLETED"&&Y.status!=="TOOL_CALL_APPROVAL_REQUIRED")return;for(let G=0;G<z.length;G++){let V=z[G];if(V.message_type==="tool"&&V.tool_info){let P=V.message_id||V.correlation_id||`tool-${G}`;if(X.emittedToolEntries.has(P))continue;let j=V.tool_info.name,L=JSON.stringify(V.tool_info.args??{});if(X.emittedToolKeys.has(j)){X.emittedToolEntries.add(P);let c=this.sessionWorkflows.get(X.sessionKey);if(c)c.toolEntries.add(P);continue}if(X.activeTextBlockId)J.enqueue({type:"text-end",id:X.activeTextBlockId}),X.activeTextBlockId=null;J.enqueue({type:"tool-input-start",id:P,toolName:j,providerExecuted:!0}),J.enqueue({type:"tool-input-delta",id:P,delta:L}),J.enqueue({type:"tool-input-end",id:P}),J.enqueue({type:"tool-call",toolCallId:P,toolName:j,input:L,providerExecuted:!0,dynamic:!0});let A=V.tool_info.tool_response,E=typeof A==="string"?A:A?A.content:V.content||"";J.enqueue({type:"tool-result",toolCallId:P,toolName:j,result:{output:E,title:j,metadata:{}},isError:!1}),X.emittedToolEntries.add(P);let _=this.sessionWorkflows.get(X.sessionKey);if(_)_.toolEntries.add(P);continue}if(V.message_type!=="agent")continue;let H=V.content||"",q=V.message_id||`idx-${G}`,w=X.agentMessageEmitted.get(q)??0;if(H.length<=w)continue;let B=H.slice(w);if(q!==X.currentAgentMessageId&&X.activeTextBlockId)J.enqueue({type:"text-end",id:X.activeTextBlockId}),X.activeTextBlockId=null;if(!X.activeTextBlockId)X.activeTextBlockId=Q(),J.enqueue({type:"text-start",id:X.activeTextBlockId});J.enqueue({type:"text-delta",id:X.activeTextBlockId,delta:B}),X.streamedOutputChars+=B.length,X.agentMessageEmitted.set(q,H.length),(this.sessionWorkflows.get(X.sessionKey)?.agentEmitted??this.persistedAgentEmitted).set(q,H.length),X.currentAgentMessageId=q}}async executeToolAndRespond(X,Y,J,Q,W,z,G){X.pendingToolCount++;let V=(H)=>{if(X.streamClosed)return;try{J.enqueue(H)}catch{}};try{if(G){let H=await G(W,z,Q);if(H.error&&/^Unknown tool:/.test(H.error)){let U=zW(W,z);if(U)H=U}Y.sendActionResponse(Q,H.result,H.error),X.streamedInputChars+=z.length,X.streamedOutputChars+=H.result.length;let q=H.result,w=H.title??`${W} result`,B=H.metadata??{output:H.result};if(H.error){let U;if(typeof H.error==="string")U=H.error;else if(H.error&&typeof H.error==="object")U=JSON.stringify(H.error);else U=String(H.error);V({type:"tool-result",toolCallId:Q,toolName:W,result:U,isError:!0})}else V({type:"tool-result",toolCallId:Q,toolName:W,result:{output:q,title:w,metadata:B},isError:!1})}else{let H=`Tool executor not configured for tool: ${W}`;Y.sendActionResponse(Q,"",H),V({type:"tool-result",toolCallId:Q,toolName:W,result:H,isError:!0})}}catch(H){let q=H instanceof Error?H.message:String(H),w=g6(q);Y.sendActionResponse(Q,"",w),V({type:"tool-result",toolCallId:Q,toolName:W,result:w,isError:!0})}finally{if(X.pendingToolCount--,this.onUsageUpdate)try{this.onUsageUpdate({inputTokens:Math.ceil(X.streamedInputChars/4),outputTokens:Math.ceil(X.streamedOutputChars/4)})}catch{}if(X.pendingToolCount<=0&&X.deferredClose){let H=X.deferredClose;X.deferredClose=null,H()}}}cleanupClient(X,Y=!1){if(X.activeClient)X.activeClient.close(),this.activeClients.delete(X.activeClient),X.activeClient=null;if(Y)if(X.sessionKey)this.sessionWorkflows.delete(X.sessionKey);else this.currentWorkflowId=null,this.persistedAgentEmitted.clear()}async approveAndResume(X,Y,J,Q,W,z,G,V){let H=this.workflowOptions.approvalHandler;if(!H||!J){if(X.approvalPending=!1,X.deferredClose){let P=X.deferredClose;X.deferredClose=null,P()}return}let q;try{q=await H(Y)}catch(P){if(X.approvalPending=!1,!X.streamClosed)Q.error(P);return}X.approvalPending=!1,X.deferredClose=null,this.cleanupClient(X,!1);let w=q.approved?{approval:{tool_name:Y[0]?.name,tool_args_json:Y[0]?.args}}:{rejection:{message:q.message??"User rejected"}},B={...J,approval:w,preapproved_tools:q.approved?[...J.preapproved_tools??[],...Y.map((P)=>P.name)]:J.preapproved_tools??[]},U=new x5;this.activeClients.add(U),X.activeClient=U;let O=await this.resolveModelRef();try{await U.connect({instanceUrl:this.config.instanceUrl,modelRef:O,headers:this.config.getHeaders(),projectId:this.workflowOptions.projectId,namespaceId:this.workflowOptions.namespaceId,rootNamespaceId:this.workflowOptions.rootNamespaceId,aiCatalogItemVersionId:V?.aiCatalogItemVersionId,workflowDefinition:V?.workflowDefinition},(P)=>this.handleWorkflowEvent(X,P,Q,U,W,z,G,B,V)),U.sendStartRequest(B)}catch(P){if(this.cleanupClient(X,!0),!X.streamClosed)Q.error(P)}}async buildWorkflowMetadata(){let X={extended_logging:!1,tool_approval_for_session_enabled:!0};try{let Y=this.workflowOptions.workingDirectory??process.cwd(),J=await this.getGitInfo(Y);if(J.url)X.git_url=J.url;if(J.sha)X.git_sha=J.sha;if(J.branch)X.git_branch=J.branch}catch{}return X}async getGitInfo(X){let{execFile:Y}=await import("child_process"),{promisify:J}=await import("util"),Q=J(Y),W={cwd:X,timeout:3000},z=async(q,w)=>{try{let{stdout:B}=await Q(q,w,W);return B.trim()||void 0}catch{return}},[G,V,H]=await Promise.all([z("git",["remote","get-url","origin"]),z("git",["rev-parse","HEAD"]),z("git",["rev-parse","--abbrev-ref","HEAD"])]);return{url:G,sha:V,branch:H}}static SYSTEM_REMINDER_RE=/<system-reminder>([\s\S]*?)<\/system-reminder>/g;extractGoalFromPrompt(X){for(let Y=X.length-1;Y>=0;Y--){let J=X[Y];if(J.role==="user"){let Q=J.content.filter((W)=>W.type==="text").map((W)=>W.text);if(Q.length>0){let W=Q.join(`
100
100
  `);return W.replace($.SYSTEM_REMINDER_RE,"").trim()||W}}}return""}extractMcpTools(X){if(this.workflowOptions.mcpTools&&this.workflowOptions.mcpTools.length>0)return this.workflowOptions.mcpTools;if(!X.tools||X.tools.length===0)return[];return X.tools.filter((Y)=>Y.type==="function").map((Y)=>({name:Y.name,description:Y.description||"",inputSchema:JSON.stringify(Y.inputSchema||{type:"object",properties:{}})}))}static MAX_START_REQUEST_BYTES=4194304;trimPayload(X,Y,J){let Q=$.MAX_START_REQUEST_BYTES-J,W=JSON.stringify(Y);if(JSON.stringify(X).length+W.length<=Q)return{mcpTools:X,additionalContext:Y};let V=X.map((U)=>({name:U.name,description:U.description,inputSchema:MW(U.inputSchema)}));if(JSON.stringify(V).length+W.length<=Q)return{mcpTools:V,additionalContext:Y};let q=V.map((U)=>({name:U.name,description:U.description,inputSchema:EW(U.inputSchema)}));if(JSON.stringify(q).length+W.length<=Q)return{mcpTools:q,additionalContext:Y};let B=[...q];while(B.length>0){if(JSON.stringify(B).length+W.length<=Q)break;B.pop()}return{mcpTools:B,additionalContext:Y}}buildAdditionalContext(X){let Y=[];if(this.workflowOptions.additionalContext)Y.push(...this.workflowOptions.additionalContext);for(let J of X)if(J.role==="system")Y.push({category:"system_prompt",content:J.content,metadata:JSON.stringify({role:"system"})});else if(J.role==="assistant"){let Q=J.content.filter((W)=>W.type==="text").map((W)=>W.text).join(`
101
101
  `);if(Q)Y.push({category:"conversation",content:Q,metadata:JSON.stringify({role:"assistant"})})}else if(J.role==="user"){for(let Q of J.content)if(Q.type==="text"){let z=Q.text.matchAll($.SYSTEM_REMINDER_RE);for(let G of z){let V=G[1].trim();if(V)Y.push({category:"agent_context",content:V,metadata:JSON.stringify({source:"system-reminder"})})}}}return Y}},ZW="1d89f9fdb23ee96d4e603201f6861dab6e143c5c3c00469a018a2d94bdc03d4e",vE="36f2a70cddeb5a0889d4fd8295c241b7e9848e89cf9e599d0eed2d8e5350fbf5",SW="https://gitlab.com",AW=300000,yE=["api"],CW=class{fetch;constructor($=fetch){this.fetch=$}isTokenExpired($){return Date.now()>=$}needsRefresh($){return Date.now()>=$-AW}async refreshIfNeeded($,X){if(!this.needsRefresh($.expiresAt))return $;if(this.isTokenExpired($.expiresAt))throw new x({message:"OAuth token has expired and cannot be used"});return this.exchangeRefreshToken({instanceUrl:$.instanceUrl,refreshToken:$.refreshToken,clientId:X})}async exchangeAuthorizationCode($){let{instanceUrl:X,code:Y,codeVerifier:J,clientId:Q,redirectUri:W}=$,z=await this.exchangeToken({instanceUrl:X,grantType:"authorization_code",code:Y,codeVerifier:J,clientId:Q||this.getClientId(X),redirectUri:W});return this.createTokensFromResponse(z,X)}async exchangeRefreshToken($){let{instanceUrl:X,refreshToken:Y,clientId:J}=$,Q=await this.exchangeToken({instanceUrl:X,grantType:"refresh_token",refreshToken:Y,clientId:J||this.getClientId(X)});return this.createTokensFromResponse(Q,X)}getClientId($){let X=process.env.GITLAB_OAUTH_CLIENT_ID;if(X)return X;if($===SW)return ZW;throw new x({message:`No OAuth client ID configured for instance ${$}. Please provide a clientId parameter or set GITLAB_OAUTH_CLIENT_ID environment variable.`})}async exchangeToken($){let{instanceUrl:X,grantType:Y,code:J,codeVerifier:Q,refreshToken:W,clientId:z,redirectUri:G}=$,V={client_id:z,grant_type:Y};if(Y==="authorization_code"){if(!J||!Q||!G)throw new x({message:"Authorization code, code verifier, and redirect URI are required for authorization_code grant"});V.code=J,V.code_verifier=Q,V.redirect_uri=G}else if(Y==="refresh_token"){if(!W)throw new x({message:"Refresh token is required for refresh_token grant"});V.refresh_token=W}let H=`${X}/oauth/token`;try{let q=await this.fetch(H,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(V).toString()});if(!q.ok){let B=await q.text();throw new x({message:`OAuth token exchange failed: ${q.status} ${q.statusText}`,cause:Error(B)})}return await q.json()}catch(q){if(q instanceof x)throw q;throw new x({message:`Failed to exchange OAuth token: ${q instanceof Error?q.message:String(q)}`,cause:q instanceof Error?q:void 0})}}createTokensFromResponse($,X){let Y=this.createExpiresTimestamp($);return{accessToken:$.access_token,refreshToken:$.refresh_token||"",expiresAt:Y,instanceUrl:X}}createExpiresTimestamp($){let X=$.created_at*1000,Y=$.expires_in*1000;return X+Y}};function n5(){let $=i5.homedir(),X=process.env.XDG_DATA_HOME;if(X)return a4.join(X,"opencode","auth.json");if(process.platform!=="win32")return a4.join($,".local","share","opencode","auth.json");return a4.join($,".opencode","auth.json")}async function DW($){try{let X=n5();if(!q2.existsSync(X))return;let Y=JSON.parse(q2.readFileSync(X,"utf-8"));if(Y.gitlab?.type==="oauth"){let W=Y.gitlab;if(W.enterpriseUrl===$||W.enterpriseUrl===$.replace(/\/$/,""))return W}let J=$.replace(/\/$/,"");return Y[J]||Y[`${J}/`]}catch(X){throw Error(`Failed to load auth.json: ${X instanceof Error?X.message:X}`)}}async function v5($,X,Y){if($.apiKey)return $.apiKey;let J=await DW(X);if(J?.type==="oauth"){let W=new CW;if(W.needsRefresh(J.expires))try{let z=await W.exchangeRefreshToken({instanceUrl:X,refreshToken:J.refresh,clientId:Y}),G=n5(),V=JSON.parse(q2.readFileSync(G,"utf-8"));return V.gitlab={type:"oauth",refresh:z.refreshToken,access:z.accessToken,expires:z.expiresAt,enterpriseUrl:X},q2.writeFileSync(G,JSON.stringify(V,null,2),{mode:384}),z.accessToken}catch(z){let G=z instanceof Error?z.message:String(z),V=process.env[$.environmentVariableName];if(V)return V;throw new x({message:`OAuth token refresh failed and no fallback ${$.environmentVariableName} environment variable is set. Refresh error: ${G}. Re-authenticate with 'opencode auth login gitlab' or set ${$.environmentVariableName}.`})}else return J.access}let Q=process.env[$.environmentVariableName];if(!Q)throw new x({message:`${$.description} API key is missing. Pass it as the 'apiKey' parameter, set the ${$.environmentVariableName} environment variable, or authenticate with 'opencode auth login gitlab'.`});return Q}function RW($,X){let Y=$["User-Agent"];return{...$,"User-Agent":Y?`${Y} ${X}`:X}}function TW($={}){let X=$.instanceUrl??process.env.GITLAB_INSTANCE_URL??"https://gitlab.com",Y=$.name??"gitlab",J,Q,W=async()=>{if(J)return J;if(Q)return Q;return Q=v5({apiKey:$.apiKey,environmentVariableName:"GITLAB_TOKEN",description:"GitLab"},X,$.clientId),J=await Q,Q=void 0,J},z=async()=>{J=void 0,Q=void 0,J=await v5({apiKey:void 0,environmentVariableName:"GITLAB_TOKEN",description:"GitLab"},X,$.clientId)},G=()=>{let B=J||$.apiKey||process.env.GITLAB_TOKEN||"";if(!B)throw new x({message:"GitLab API key is missing. Pass it as the 'apiKey' parameter, set the GITLAB_TOKEN environment variable, or authenticate with 'opencode auth login gitlab'."});return RW({Authorization:`Bearer ${B}`,"Content-Type":"application/json",...$.headers},`ai-sdk-gitlab/${H7}`)};W().catch(()=>{});let V=(B,U)=>{let O=j5(B);if(!O)throw new x({message:`Unknown model ID: ${B}. Model must be registered in MODEL_MAPPINGS.`});if(U?.providerModel){let E=iQ(O.provider);if(!E.includes(U.providerModel))throw new x({message:`Invalid providerModel '${U.providerModel}' for provider '${O.provider}'. Valid models: ${E.join(", ")}`})}let P={DuoAgentPlatformNext:!0,...$.featureFlags,...U?.featureFlags},L={...{"User-Agent":`gitlab-ai-provider/${H7}`},...$.aiGatewayHeaders,...U?.aiGatewayHeaders},A={provider:`${Y}.agentic`,instanceUrl:X,getHeaders:G,refreshApiKey:z,fetch:$.fetch,maxTokens:U?.maxTokens,featureFlags:P,aiGatewayUrl:$.aiGatewayUrl,aiGatewayHeaders:L};if(O.provider==="openai")return new tQ(B,{...A,openaiModel:U?.providerModel??O.model});return new pQ(B,{...A,anthropicModel:U?.providerModel??O.model})},H=(B,U)=>{let O=j5(B);if(!O||O.provider!=="workflow")throw new x({message:`Unknown workflow model ID: ${B}. Use 'duo-workflow' or a 'duo-workflow-*' model ID.`});return new LW(B,{provider:`${Y}.workflow`,instanceUrl:X,getHeaders:G,refreshApiKey:z,fetch:$.fetch,featureFlags:{...$.featureFlags,...U?.featureFlags},aiGatewayUrl:$.aiGatewayUrl},U)},q=(B)=>{if(rQ(B))return H(B);return V(B)},w=Object.assign((B)=>q(B),{specificationVersion:"v3",languageModel:q,chat:q,agenticChat:V,workflowChat:H});return w.embeddingModel=(B)=>{throw new x({message:`GitLab provider does not support text embedding models. Model ID: ${B}`})},w.imageModel=(B)=>{throw new x({message:`GitLab provider does not support image models. Model ID: ${B}`})},w}var gE=TW(),_W="https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/raw/main/ai_gateway/model_selection/models.yml",PW=86400000,q7=200000,w7=64000;function U7(){let $=process.env.XDG_CACHE_HOME||m6.join(a5.homedir(),".cache");return m6.join($,"opencode","gitlab-model-configs.json")}function jW(){try{let $=U7();if(!d$.existsSync($))return null;let X=d$.readFileSync($,"utf-8");return JSON.parse(X)}catch{return null}}function kW($){try{let X=U7(),Y=m6.dirname(X);d$.mkdirSync(Y,{recursive:!0,mode:448});let J={configs:Object.fromEntries($),updatedAt:new Date().toISOString()};d$.writeFileSync(X,JSON.stringify(J,null,2),{mode:384})}catch{}}function y5($){let X=jW();if(!X)return null;let Y=new Date(X.updatedAt).getTime();if(Date.now()-Y>$)return null;return{configs:new Map(Object.entries(X.configs)),writtenAt:Y}}var xW=class{url;ttlMs;fetchFn;memCache=null;memExpiresAt=0;pending=null;constructor($){this.url=$?.url??_W,this.ttlMs=$?.ttlMs??PW,this.fetchFn=$?.fetch??fetch}async getConfigs(){if(this.memCache&&Date.now()<this.memExpiresAt)return this.memCache;let $=y5(this.ttlMs);if($)return this.memCache=$.configs,this.memExpiresAt=$.writtenAt+this.ttlMs,$.configs;if(this.pending)return this.pending;this.pending=this.fetchConfigs();try{return await this.pending}finally{this.pending=null}}async getConfig($){return(await this.getConfigs()).get($)??{context:q7,output:w7}}invalidateCache(){this.memCache=null,this.memExpiresAt=0;try{let $=U7();if(d$.existsSync($))d$.unlinkSync($)}catch{}}async fetchConfigs(){try{let $=await this.fetchFn(this.url);if(!$.ok)throw Error(`HTTP ${$.status}`);let X=await $.text(),Y=fW(X);return this.memCache=Y,this.memExpiresAt=Date.now()+this.ttlMs,kW(Y),Y}catch{return this.memCache??y5(1/0)?.configs??new Map}}};function fW($){let X=new Map,Y=null,J=0,Q=0,W=!1,z=-1;for(let G of $.split(`
102
- `)){let V=G.match(/^\s*gitlab_identifier:\s*"?([^"#\s]+)"?/);if(V){if(Y)X.set(Y,{context:J||q7,output:Q||w7});Y=V[1],J=0,Q=0,W=!1,z=-1}let H=G.match(/^\s*max_context_tokens:\s*([0-9_]+)/);if(H&&Y)J=parseInt(H[1].replace(/_/g,""),10);if(/^\s*params:\s*$/.test(G))W=!0,z=G.match(/^(\s*)/)?.[1].length??0;else if(W&&/^\s*\S+:/.test(G)){if((G.match(/^(\s*)/)?.[1].length??0)<=z)W=!1,z=-1}if(W){let q=G.match(/^\s*max_tokens:\s*([0-9_]+)/);if(q&&Y)Q=parseInt(q[1].replace(/_/g,""),10)}}if(Y)X.set(Y,{context:J||q7,output:Q||w7});return X}var bW=new xW;async function g5($,X){let Y=await bW.getConfigs(),J=new Map;for(let[G,V]of Object.entries(o$))if(V.provider==="workflow"&&G!=="duo-workflow"&&G!=="duo-workflow-default")J.set(V.model,G);let Q=$.pinnedModel?[$.pinnedModel]:[...$.selectableModels??[],...$.defaultModel?[$.defaultModel]:[]],W=new Set,z=[];for(let G of Q){if(!G.ref||W.has(G.ref))continue;W.add(G.ref);let V=J.get(G.ref)??`duo-workflow-${G.ref.replace(/[/_]/g,"-")}`,H=Y.get(G.ref);z.push({id:V,ref:G.ref,name:G.name,context:H?.context??200000,output:H?.output??64000,pinned:!!$.pinnedModel&&$.pinnedModel.ref===G.ref})}return{models:z,project:X}}async function hE($,X){let Y=new p5(X.workingDirectory,$.instanceUrl);if(!Y.isDiscoveryExpired()){let V=Y.load();return g5(V.discovery,V.project)}let J=new u5({instanceUrl:$.instanceUrl,getHeaders:$.getHeaders,fetch:$.fetch}),Q=null;try{Q=await J.detectProject(X.workingDirectory)}catch{return{models:[],project:null}}let W=Q?.namespaceId;if(!W)return{models:[],project:Q};let G=await new d5({instanceUrl:$.instanceUrl,getHeaders:$.getHeaders,fetch:$.fetch}).discover(`gid://gitlab/Group/${W}`);if(Y.saveDiscovery(G,Q),!Y.getSelectedModelRef()){let V=G.pinnedModel??G.defaultModel;if(V)Y.saveSelection(V.ref,V.name)}return g5(G,Q)}export{x as Sh,lQ as Th,h5 as Uh,pQ as Vh,o$ as Wh,j5 as Xh,jE as Yh,iQ as Zh,kE as _h,xE as $h,nQ as ai,aQ as bi,rQ as ci,sQ as di,fE as ei,tQ as fi,H7 as gi,oQ as hi,eQ as ii,k5 as ji,y6 as ki,$W as li,K7 as mi,U8 as ni,YW as oi,JW as pi,x5 as qi,HW as ri,BW as si,u5 as ti,d5 as ui,p5 as vi,LW as wi,ZW as xi,vE as yi,SW as zi,AW as Ai,yE as Bi,CW as Ci,TW as Di,gE as Ei,xW as Fi,fW as Gi,hE as Hi};
102
+ `)){let V=G.match(/^\s*gitlab_identifier:\s*"?([^"#\s]+)"?/);if(V){if(Y)X.set(Y,{context:J||q7,output:Q||w7});Y=V[1],J=0,Q=0,W=!1,z=-1}let H=G.match(/^\s*max_context_tokens:\s*([0-9_]+)/);if(H&&Y)J=parseInt(H[1].replace(/_/g,""),10);if(/^\s*params:\s*$/.test(G))W=!0,z=G.match(/^(\s*)/)?.[1].length??0;else if(W&&/^\s*\S+:/.test(G)){if((G.match(/^(\s*)/)?.[1].length??0)<=z)W=!1,z=-1}if(W){let q=G.match(/^\s*max_tokens:\s*([0-9_]+)/);if(q&&Y)Q=parseInt(q[1].replace(/_/g,""),10)}}if(Y)X.set(Y,{context:J||q7,output:Q||w7});return X}var bW=new xW;async function g5($,X){let Y=await bW.getConfigs(),J=new Map;for(let[G,V]of Object.entries(o$))if(V.provider==="workflow"&&G!=="duo-workflow"&&G!=="duo-workflow-default")J.set(V.model,G);let Q=$.pinnedModel?[$.pinnedModel]:[...$.selectableModels??[],...$.defaultModel?[$.defaultModel]:[]],W=new Set,z=[];for(let G of Q){if(!G.ref||W.has(G.ref))continue;W.add(G.ref);let V=J.get(G.ref)??`duo-workflow-${G.ref.replace(/[/_]/g,"-")}`,H=Y.get(G.ref);z.push({id:V,ref:G.ref,name:G.name,context:H?.context??200000,output:H?.output??64000,pinned:!!$.pinnedModel&&$.pinnedModel.ref===G.ref})}return{models:z,project:X}}async function hE($,X){let Y=new p5(X.workingDirectory,$.instanceUrl);if(!Y.isDiscoveryExpired()){let V=Y.load();return g5(V.discovery,V.project)}let J=new u5({instanceUrl:$.instanceUrl,getHeaders:$.getHeaders,fetch:$.fetch}),Q=null;try{Q=await J.detectProject(X.workingDirectory)}catch{return{models:[],project:null}}let W=Q?.namespaceId;if(!W)return{models:[],project:Q};let G=await new d5({instanceUrl:$.instanceUrl,getHeaders:$.getHeaders,fetch:$.fetch}).discover(`gid://gitlab/Group/${W}`);if(Y.saveDiscovery(G,Q),!Y.getSelectedModelRef()){let V=G.pinnedModel??G.defaultModel;if(V)Y.saveSelection(V.ref,V.name)}return g5(G,Q)}export{x as pi,lQ as qi,h5 as ri,pQ as si,o$ as ti,j5 as ui,jE as vi,iQ as wi,kE as xi,xE as yi,nQ as zi,aQ as Ai,rQ as Bi,sQ as Ci,fE as Di,tQ as Ei,H7 as Fi,oQ as Gi,eQ as Hi,k5 as Ii,y6 as Ji,$W as Ki,K7 as Li,U8 as Mi,YW as Ni,JW as Oi,x5 as Pi,HW as Qi,BW as Ri,u5 as Si,d5 as Ti,p5 as Ui,LW as Vi,ZW as Wi,vE as Xi,SW as Yi,AW as Zi,yE as _i,CW as $i,TW as aj,gE as bj,xW as cj,fW as dj,hE as ej};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Df as k}from"./chunk-ywkvq7zb.js";import{Kg as f}from"./chunk-scnz207s.js";function z(){return async(l,b)=>k(await f(l,b.options),b)}export{z as Cf};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ae as C}from"./chunk-g73drh98.js";import{vf as A}from"./chunk-4wyjapes.js";import{dO as _}from"./chunk-0rmmg3g4.js";var S=_(C(),1),p=_(A(),1),N="AWS_ACCESS_KEY_ID",a="AWS_SECRET_ACCESS_KEY",i="AWS_SESSION_TOKEN",I="AWS_CREDENTIAL_EXPIRATION",d="AWS_CREDENTIAL_SCOPE",v="AWS_ACCOUNT_ID",T=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[N],r=process.env[a],n=process.env[i],s=process.env[I],t=process.env[d],E=process.env[v];if(o&&r){let c={accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...E&&{accountId:E}};return S.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new p.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{N as ke,a as le,i as me,I as ne,d as oe,v as pe,T as qe};
2
+ import{Be as C}from"./chunk-j9pcnkkq.js";import{wf as A}from"./chunk-cvdxgsq1.js";import{$P as _}from"./chunk-aztre27e.js";var S=_(C(),1),p=_(A(),1),N="AWS_ACCESS_KEY_ID",a="AWS_SECRET_ACCESS_KEY",i="AWS_SESSION_TOKEN",I="AWS_CREDENTIAL_EXPIRATION",d="AWS_CREDENTIAL_SCOPE",v="AWS_ACCOUNT_ID",T=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[N],r=process.env[a],n=process.env[i],s=process.env[I],t=process.env[d],E=process.env[v];if(o&&r){let c={accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...E&&{accountId:E}};return S.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new p.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{N as le,a as me,i as ne,I as oe,d as pe,v as qe,T as re};
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- import{a as XB,b as YB}from"./chunk-qvcfst7n.js";import"./chunk-58680z2j.js";import"./chunk-mkdyknbz.js";import{A as JB}from"./chunk-wmrq9qqf.js";import{B as r,D as e}from"./chunk-453wpzg6.js";import"./chunk-pepn5jp4.js";import{H as BB}from"./chunk-0vqrakhw.js";import{N as VB}from"./chunk-8ahpk8td.js";import"./chunk-9jncnqbj.js";import"./chunk-754varfr.js";import{Qd as t}from"./chunk-g4qwkcdv.js";import{Nf as p,Of as T,Pf as R,Qf as g}from"./chunk-j9s62g01.js";import{Uf as H}from"./chunk-qe0sfafy.js";import{Cg as a}from"./chunk-w98r39gd.js";import{uh as y}from"./chunk-87x607rz.js";import"./chunk-9w5rx0fb.js";import"./chunk-wb69d52j.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-c1ypbbka.js";import"./chunk-qnqqrvvs.js";import{Rj as n,Uk as s}from"./chunk-3f054f69.js";import"./chunk-26qt44f1.js";import{Nl as h}from"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import{Nn as L,Pn as i,Sn as o}from"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-jtrcnpm7.js";import"./chunk-gaen9ya4.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import{vr as I}from"./chunk-8cty50g7.js";import{$r as f,Zr as v,_r as d,bs as c,ls as l,ws as F}from"./chunk-v7ah9gg0.js";import{Fs as D,Ts as u,Vs as N}from"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import{TG as C}from"./chunk-ag9thqkv.js";import"./chunk-qnv2v02g.js";import"./chunk-7fx6x8x9.js";import{hO as E}from"./chunk-0rmmg3g4.js";import O from"path";import{fileURLToPath as zB}from"url";import{writeHeapSnapshot as WB}from"v8";import HB,{EOL as K}from"os";var ZB={free:"free",default:"default",fast:"fast",economy:"economical",power:"power",orchestrated:"orchestrated"};function GB(B){for(let[V,X]of Object.entries(ZB))if(B[V]){let Z=I[X];if(Z)return`${Z.providerID}/${Z.modelID}`}return}function KB(B){return async(X,Z)=>{let Y=new Request(X,Z),W=Y.body?await Y.text():void 0,$=await B.call("fetch",{url:Y.url,method:Y.method,headers:Object.fromEntries(Y.headers.entries()),body:W});return new Response($.body,{status:$.status,headers:$.headers})}}function MB(B){return{subscribe:async(V)=>{return B.on("global.event",(X)=>{V(X)})}}}async function jB(){if(typeof globalThis.QITQODE_WORKER_PATH<"u")return globalThis.QITQODE_WORKER_PATH;let B=new URL("./cli/cmd/tui/worker.js",import.meta.url);if(await u(zB(B)))return B;return new URL("./worker.ts",import.meta.url)}async function QB(B){let V=process.stdin.isTTY?void 0:await Bun.stdin.text();if(!B)return V;if(!V)return B;return V+`
3
- `+B}async function k(B){let V=i({baseUrl:B.url,fetch:B.fetch,directory:B.directory}),X=[{permission:"question",action:"deny",pattern:"*"},{permission:"plan_enter",action:"deny",pattern:"*"},{permission:"plan_exit",action:"deny",pattern:"*"}],Y=(await V.session.create({permission:X})).data?.id;if(!Y){H.error("headless: failed to create session");return}let W=await V.event.subscribe(),$=VB({sessionID:Y,query:async()=>{return(await V.session.status()).data?.[Y]}}),U=W.stream[Symbol.asyncIterator](),b=$.completion.then(()=>"DONE");(async()=>{try{while(!0){let z=await Promise.race([U.next(),b]);if(z==="DONE")break;let q=z;if(q.done)break;let M=q.value;$.onEvent(M);let G=M.properties;if(M.type==="message.part.updated"){let J=G?.part;if(!J||J.sessionID!==Y)continue;if(J.type==="text"&&J.time?.end){let P=String(J.text??"").trim();if(P)process.stdout.write(P+K)}}if(M.type==="permission.asked"){if(!G||G.sessionID!==Y)continue;await V.permission.reply({requestID:String(G.id),reply:"once"})}if(M.type==="session.error"){if(!G||G.sessionID!==Y||!G.error)continue;let J=G.error,P=J?.data!==null&&typeof J?.data==="object"&&"message"in J.data?String(J.data.message):String(J?.name??J);H.error(P)}}}finally{$.stop(),await U.return?.(void 0).catch(()=>{})}})().catch((z)=>{console.error(z),process.exit(1)});let S=B.model?s.parseModel(B.model):void 0;await V.session.prompt({sessionID:Y,agent:B.agent,model:S,parts:[{type:"text",text:B.prompt}]}),$.markStarted(),await $.completion}var pB=t({command:"$0 [project]",describe:"start qitqode tui",builder:(B)=>p(B).positional("project",{type:"string",describe:"path to start qitqode in"}).options(g).option("never-ask",{type:"boolean",describe:"start in never-ask mode \u2014 auto-decide without asking (permissions excluded), toggle at runtime with /never-ask",default:!1}).check((V)=>{if(V.dark&&V.light)throw Error("--dark and --light are mutually exclusive");if(V.sso&&!V.headless)throw Error("--sso requires --headless");if(V.sso&&V["api-key"]!==void 0)throw Error("--sso and --api-key are mutually exclusive");let X=Object.keys(ZB).filter((Z)=>V[Z]);if(X.length>1)throw Error(`${X.map((Z)=>`--${Z}`).join(" and ")} are mutually exclusive \u2014 choose one tier flag`);if(X.length===1&&V.model)throw Error(`--${X[0]} and --model are mutually exclusive \u2014 use one or the other`);return!0}),handler:async(B)=>{if(B.monochrome)process.env.QITQODE_TUI_ACCESSIBLE="1",process.env.NO_COLOR="1";let V=e();try{r();let X=JB(B);if(X){H.error(X),process.exitCode=1;return}let Z=GB(B)??B.model,Y=N(process.env.PWD??process.cwd()),W=B.project?N(O.isAbsolute(B.project)?B.project:O.join(Y,B.project)):N(process.cwd()),$=h(W);if($){if(B.project){H.error("Cannot start in "+W+": "+$),process.exitCode=1;return}let J=N(HB.homedir());if(h(J)){H.error("Cannot start in "+W+": "+$),process.exitCode=1;return}F.warn("unsafe start directory, falling back to home",{requested:W,home:J}),W=J}let U=await jB();try{process.chdir(W)}catch{H.error("Failed to change directory to "+W);return}let b=N(process.cwd()),w=c({[d]:"worker",[v]:f()}),S=new Worker(U,{env:w});S.onerror=(J)=>{F.error("thread error",{message:J.message,filename:J.filename,lineno:J.lineno,colno:J.colno,error:J.error})};let z=l(S),q=()=>{z.call("reload",void 0).catch((J)=>{F.warn("worker reload failed",{error:D(J)})})};process.on("SIGUSR2",q);let M=!1,G=async()=>{if(M)return;M=!0,process.off("SIGUSR2",q),await n(z.call("shutdown",void 0),5000).catch((J)=>{F.warn("worker shutdown failed",{error:D(J)})}),S.terminate()};try{let J=import("./chunk-s7vhjg9e.js"),P=import("./chunk-n8xmmxh5.js").then(({TuiConfig:A})=>A.get()),x=await QB(B.prompt),$B=await P;if(B.headless&&T(R(B))){H.error("--headless cannot be combined with network-listener flags (--port, --hostname, --mdns)"),process.exitCode=1;return}let m=R(B),_=T(m)?{url:(await z.call("server",m)).url,fetch:void 0,events:void 0}:{url:"http://qitqode.internal",fetch:KB(z),events:MB(z)};if(setTimeout(()=>{z.call("checkUpgrade",{directory:b}).catch(()=>{})},1000).unref?.(),B.headless){if(!x){H.error("--headless requires a prompt: pass --prompt or pipe input via stdin"),process.exitCode=1;return}if(B.sso){try{let j=await a({tryOpen:!1,onCode:(Q)=>{if(process.stdout.write(K),process.stdout.write(" To sign in, open: "+Q.verificationUri+K),process.stdout.write(" and enter code: "+Q.userCode+K),Q.verificationUriComplete)process.stdout.write(K+" Or open this link directly:"+K+" "+Q.verificationUriComplete+K);process.stdout.write(K+" Waiting for approval... (ctrl+c to cancel)"+K)}});await y.runPromise(C.gen(function*(){yield*(yield*L.Service).set("forgewise",BB(j,{rotateRefreshToken:!0}))})),process.stdout.write(" Signed in as "+(j.name||j.email)+K)}catch(j){H.error("SSO sign-in failed: "+D(j)),process.exitCode=1;return}await k({url:_.url,fetch:_.fetch,prompt:x,model:Z,agent:B.agent??"build",directory:b});return}let A=XB(typeof B["api-key"]==="string"?String(B["api-key"]):"");if(A)await y.runPromise(YB(A));else if(!await y.runPromise(C.gen(function*(){if(yield*C.promise(()=>o()))return!0;return!!(yield*(yield*L.Service).get("forgewise"))}))){H.error(`Not signed in. Use one of:
2
+ import{a as XB,b as YB}from"./chunk-r08957sm.js";import"./chunk-vsjyr170.js";import"./chunk-c01z3cvg.js";import{B as JB}from"./chunk-gsez13bg.js";import{C as r,E as e}from"./chunk-c8k32724.js";import"./chunk-0eqwm9a8.js";import{I as BB}from"./chunk-s6bar2f9.js";import{O as VB}from"./chunk-6p7yg5sr.js";import"./chunk-jje0srjq.js";import"./chunk-27yxgy03.js";import{Rd as t}from"./chunk-yajd975f.js";import{Of as p,Pf as T,Qf as R,Rf as g}from"./chunk-xn2ds2s4.js";import{Vf as H}from"./chunk-7ppd2phw.js";import{Dg as a}from"./chunk-ew51rwdp.js";import{hh as y}from"./chunk-wrw22v0a.js";import"./chunk-h7yya9pv.js";import"./chunk-p68rwmhc.js";import"./chunk-0a0vat1h.js";import"./chunk-z8v2tsz2.js";import"./chunk-j8efst22.js";import"./chunk-a1pw9r6f.js";import"./chunk-d5bxan80.js";import{ok as n,rl as s}from"./chunk-gsvdt4kq.js";import"./chunk-b7mg883n.js";import{km as h}from"./chunk-90zd5rss.js";import"./chunk-17psxhve.js";import"./chunk-nj4d554m.js";import"./chunk-m2x9xhha.js";import"./chunk-2wcv3sq5.js";import"./chunk-a1p2f16h.js";import"./chunk-nt4e3em9.js";import{Jp as L,Lp as i,Op as o}from"./chunk-ak5ngp50.js";import"./chunk-v965rsr8.js";import"./chunk-1sgby720.js";import"./chunk-jg7s9rqz.js";import"./chunk-4tbwha3m.js";import"./chunk-m612agnk.js";import"./chunk-yq3m8190.js";import"./chunk-btz9jvec.js";import"./chunk-cqtkxwd8.js";import"./chunk-fkgv2hqd.js";import"./chunk-zyhdxggp.js";import"./chunk-q6ztpfcs.js";import"./chunk-jm1ptn8n.js";import"./chunk-c5e6sk9c.js";import"./chunk-m02zt1a3.js";import"./chunk-vg2fmyje.js";import"./chunk-c0796v8j.js";import"./chunk-njnwdgvd.js";import"./chunk-4qqkqrn9.js";import"./chunk-j6emx6jn.js";import"./chunk-be216spx.js";import"./chunk-12bssxd4.js";import{rt as I}from"./chunk-k9b1jcqw.js";import{Vt as v,Wt as d,Xt as f,Zt as c,hu as l,su as F}from"./chunk-zxaaxb99.js";import{Bu as D,Pu as u,Ru as N}from"./chunk-whxjkz9a.js";import"./chunk-89v6dgpp.js";import"./chunk-k309zez0.js";import"./chunk-09kba1hg.js";import"./chunk-t12xrrfr.js";import"./chunk-phxrg7aw.js";import{PI as C}from"./chunk-snm5q21k.js";import"./chunk-xpc2zgj7.js";import"./chunk-qjjch1zt.js";import{dQ as E}from"./chunk-aztre27e.js";import O from"path";import{fileURLToPath as zB}from"url";import{writeHeapSnapshot as WB}from"v8";import HB,{EOL as K}from"os";var ZB={free:"free",default:"default",fast:"fast",economy:"economical",power:"power",orchestrated:"orchestrated"};function GB(B){for(let[V,X]of Object.entries(ZB))if(B[V]){let Z=I[X];if(Z)return`${Z.providerID}/${Z.modelID}`}return}function KB(B){return async(X,Z)=>{let Y=new Request(X,Z),W=Y.body?await Y.text():void 0,$=await B.call("fetch",{url:Y.url,method:Y.method,headers:Object.fromEntries(Y.headers.entries()),body:W});return new Response($.body,{status:$.status,headers:$.headers})}}function MB(B){return{subscribe:async(V)=>{return B.on("global.event",(X)=>{V(X)})}}}async function jB(){if(typeof globalThis.QITQODE_WORKER_PATH<"u")return globalThis.QITQODE_WORKER_PATH;let B=new URL("./cli/cmd/tui/worker.js",import.meta.url);if(await u(zB(B)))return B;return new URL("./worker.ts",import.meta.url)}async function QB(B){let V=process.stdin.isTTY?void 0:await Bun.stdin.text();if(!B)return V;if(!V)return B;return V+`
3
+ `+B}async function k(B){let V=i({baseUrl:B.url,fetch:B.fetch,directory:B.directory}),X=[{permission:"question",action:"deny",pattern:"*"},{permission:"plan_enter",action:"deny",pattern:"*"},{permission:"plan_exit",action:"deny",pattern:"*"}],Y=(await V.session.create({permission:X})).data?.id;if(!Y){H.error("headless: failed to create session");return}let W=await V.event.subscribe(),$=VB({sessionID:Y,query:async()=>{return(await V.session.status()).data?.[Y]}}),U=W.stream[Symbol.asyncIterator](),b=$.completion.then(()=>"DONE");(async()=>{try{while(!0){let z=await Promise.race([U.next(),b]);if(z==="DONE")break;let q=z;if(q.done)break;let M=q.value;$.onEvent(M);let G=M.properties;if(M.type==="message.part.updated"){let J=G?.part;if(!J||J.sessionID!==Y)continue;if(J.type==="text"&&J.time?.end){let P=String(J.text??"").trim();if(P)process.stdout.write(P+K)}}if(M.type==="permission.asked"){if(!G||G.sessionID!==Y)continue;await V.permission.reply({requestID:String(G.id),reply:"once"})}if(M.type==="session.error"){if(!G||G.sessionID!==Y||!G.error)continue;let J=G.error,P=J?.data!==null&&typeof J?.data==="object"&&"message"in J.data?String(J.data.message):String(J?.name??J);H.error(P)}}}finally{$.stop(),await U.return?.(void 0).catch(()=>{})}})().catch((z)=>{console.error(z),process.exit(1)});let S=B.model?s.parseModel(B.model):void 0;await V.session.prompt({sessionID:Y,agent:B.agent,model:S,parts:[{type:"text",text:B.prompt}]}),$.markStarted(),await $.completion}var pB=t({command:"$0 [project]",describe:"start qitqode tui",builder:(B)=>p(B).positional("project",{type:"string",describe:"path to start qitqode in"}).options(g).option("never-ask",{type:"boolean",describe:"start in never-ask mode \u2014 auto-decide without asking (permissions excluded), toggle at runtime with /never-ask",default:!1}).check((V)=>{if(V.dark&&V.light)throw Error("--dark and --light are mutually exclusive");if(V.sso&&!V.headless)throw Error("--sso requires --headless");if(V.sso&&V["api-key"]!==void 0)throw Error("--sso and --api-key are mutually exclusive");let X=Object.keys(ZB).filter((Z)=>V[Z]);if(X.length>1)throw Error(`${X.map((Z)=>`--${Z}`).join(" and ")} are mutually exclusive \u2014 choose one tier flag`);if(X.length===1&&V.model)throw Error(`--${X[0]} and --model are mutually exclusive \u2014 use one or the other`);return!0}),handler:async(B)=>{if(B.monochrome)process.env.QITQODE_TUI_ACCESSIBLE="1",process.env.NO_COLOR="1";let V=e();try{r();let X=JB(B);if(X){H.error(X),process.exitCode=1;return}let Z=GB(B)??B.model,Y=N(process.env.PWD??process.cwd()),W=B.project?N(O.isAbsolute(B.project)?B.project:O.join(Y,B.project)):N(process.cwd()),$=h(W);if($){if(B.project){H.error("Cannot start in "+W+": "+$),process.exitCode=1;return}let J=N(HB.homedir());if(h(J)){H.error("Cannot start in "+W+": "+$),process.exitCode=1;return}F.warn("unsafe start directory, falling back to home",{requested:W,home:J}),W=J}let U=await jB();try{process.chdir(W)}catch{H.error("Failed to change directory to "+W);return}let b=N(process.cwd()),w=c({[d]:"worker",[v]:f()}),S=new Worker(U,{env:w});S.onerror=(J)=>{F.error("thread error",{message:J.message,filename:J.filename,lineno:J.lineno,colno:J.colno,error:J.error})};let z=l(S),q=()=>{z.call("reload",void 0).catch((J)=>{F.warn("worker reload failed",{error:D(J)})})};process.on("SIGUSR2",q);let M=!1,G=async()=>{if(M)return;M=!0,process.off("SIGUSR2",q),await n(z.call("shutdown",void 0),5000).catch((J)=>{F.warn("worker shutdown failed",{error:D(J)})}),S.terminate()};try{let J=import("./chunk-yhwx62yf.js"),P=import("./chunk-dtv1vp0d.js").then(({TuiConfig:A})=>A.get()),x=await QB(B.prompt),$B=await P;if(B.headless&&T(R(B))){H.error("--headless cannot be combined with network-listener flags (--port, --hostname, --mdns)"),process.exitCode=1;return}let m=R(B),_=T(m)?{url:(await z.call("server",m)).url,fetch:void 0,events:void 0}:{url:"http://qitqode.internal",fetch:KB(z),events:MB(z)};if(setTimeout(()=>{z.call("checkUpgrade",{directory:b}).catch(()=>{})},1000).unref?.(),B.headless){if(!x){H.error("--headless requires a prompt: pass --prompt or pipe input via stdin"),process.exitCode=1;return}if(B.sso){try{let j=await a({tryOpen:!1,onCode:(Q)=>{if(process.stdout.write(K),process.stdout.write(" To sign in, open: "+Q.verificationUri+K),process.stdout.write(" and enter code: "+Q.userCode+K),Q.verificationUriComplete)process.stdout.write(K+" Or open this link directly:"+K+" "+Q.verificationUriComplete+K);process.stdout.write(K+" Waiting for approval... (ctrl+c to cancel)"+K)}});await y.runPromise(C.gen(function*(){yield*(yield*L.Service).set("forgewise",BB(j,{rotateRefreshToken:!0}))})),process.stdout.write(" Signed in as "+(j.name||j.email)+K)}catch(j){H.error("SSO sign-in failed: "+D(j)),process.exitCode=1;return}await k({url:_.url,fetch:_.fetch,prompt:x,model:Z,agent:B.agent??"build",directory:b});return}let A=XB(typeof B["api-key"]==="string"?String(B["api-key"]):"");if(A)await y.runPromise(YB(A));else if(!await y.runPromise(C.gen(function*(){if(yield*C.promise(()=>o()))return!0;return!!(yield*(yield*L.Service).get("forgewise"))}))){H.error(`Not signed in. Use one of:
4
4
  qode auth login (browser / device-code flow)
5
5
  qode auth login --api-key (paste a Qortex API key)
6
6
  --api-key <key> (inline for this run)