@qitqode/qitqode-android-arm64 0.1.24 → 0.1.25

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 (422) hide show
  1. package/bundle/{chunk-4kse3awh.js → chunk-0304b7xg.js} +1 -1
  2. package/bundle/{chunk-hqg5qbxk.js → chunk-08ba67f4.js} +1 -1
  3. package/bundle/chunk-0eneddjj.js +2 -0
  4. package/bundle/{chunk-6nhje520.js → chunk-0hsb4knd.js} +1 -1
  5. package/bundle/{chunk-bas6x25m.js → chunk-0jaxgrq0.js} +2 -2
  6. package/bundle/chunk-0ke6x10y.js +5 -0
  7. package/bundle/{chunk-hh4c02fh.js → chunk-0rmmg3g4.js} +1 -1
  8. package/bundle/chunk-0vqrakhw.js +3 -0
  9. package/bundle/{chunk-sgtgvzv6.js → chunk-0x7dbj5e.js} +1 -1
  10. package/bundle/{chunk-7yf15a3a.js → chunk-0xmx2zfg.js} +1 -1
  11. package/bundle/chunk-0yb4pxjv.js +2 -0
  12. package/bundle/chunk-129kq1w7.js +2 -0
  13. package/bundle/{chunk-8cr7ks31.js → chunk-14qvaxtp.js} +1 -1
  14. package/bundle/chunk-1a5hq7d5.js +2 -0
  15. package/bundle/{chunk-k16hzy2q.js → chunk-1ce5jpdc.js} +1 -1
  16. package/bundle/{chunk-xv8gnkh5.js → chunk-1e8mja6v.js} +1 -1
  17. package/bundle/{chunk-cy2586rv.js → chunk-1n1dh6zj.js} +1 -1
  18. package/bundle/{chunk-pb7rnkke.js → chunk-1txkz6dt.js} +1 -1
  19. package/bundle/chunk-1w3y1dkk.js +2 -0
  20. package/bundle/{chunk-v7r9np94.js → chunk-23f6rc7a.js} +1 -1
  21. package/bundle/chunk-26qt44f1.js +3 -0
  22. package/bundle/{chunk-6mscvf6y.js → chunk-2armxd20.js} +1 -1
  23. package/bundle/{chunk-21ejqv4v.js → chunk-2je5tp0x.js} +1 -1
  24. package/bundle/{chunk-0rtshz2r.js → chunk-2k2axg73.js} +1 -1
  25. package/bundle/chunk-2pkake0h.js +2 -0
  26. package/bundle/{chunk-7y3y3j51.js → chunk-2rxt1s22.js} +2 -2
  27. package/bundle/{chunk-te1zfpzv.js → chunk-2s28fdbp.js} +1 -1
  28. package/bundle/{chunk-8pe047p0.js → chunk-2sy1wx99.js} +1 -1
  29. package/bundle/{chunk-9easaxy7.js → chunk-2z35ewwc.js} +1 -1
  30. package/bundle/{chunk-zeh481tm.js → chunk-2zj3h3xj.js} +2 -2
  31. package/bundle/chunk-32188rww.js +2 -0
  32. package/bundle/chunk-334tc1rh.js +2 -0
  33. package/bundle/{chunk-tzc4jkzg.js → chunk-3dvyfmgc.js} +1 -1
  34. package/bundle/{chunk-q3x4x2tq.js → chunk-3e8p4a3y.js} +1 -1
  35. package/bundle/{chunk-7mhffm9f.js → chunk-3f054f69.js} +183 -183
  36. package/bundle/chunk-3ff94m8r.js +2 -0
  37. package/bundle/{chunk-7a6p7dfx.js → chunk-3fy57jcy.js} +1 -1
  38. package/bundle/{chunk-ve5gb789.js → chunk-3h08jdq8.js} +2 -2
  39. package/bundle/{chunk-w7p2x973.js → chunk-3j7skhxg.js} +2 -2
  40. package/bundle/{chunk-p4hpr8d7.js → chunk-3jhx8g5d.js} +1 -1
  41. package/bundle/{chunk-jr9xnvjq.js → chunk-3nhth7c2.js} +1 -1
  42. package/bundle/{chunk-8ace31r2.js → chunk-3tnek022.js} +1 -1
  43. package/bundle/{chunk-rvvfs9ps.js → chunk-3xna2rk5.js} +1 -1
  44. package/bundle/{chunk-k9d927xe.js → chunk-42t25nkb.js} +1 -1
  45. package/bundle/chunk-4aqd2bty.js +2 -0
  46. package/bundle/{chunk-am73j1bt.js → chunk-4kb2efq3.js} +1 -1
  47. package/bundle/{chunk-wmw2gne9.js → chunk-4pssh5d3.js} +2 -2
  48. package/bundle/{chunk-pyq01301.js → chunk-4stgw33j.js} +1 -1
  49. package/bundle/{chunk-k9g77a02.js → chunk-4w5t515p.js} +1 -1
  50. package/bundle/chunk-4wa0gf8y.js +28 -0
  51. package/bundle/{chunk-jegn6jc3.js → chunk-4wgb80jm.js} +2 -2
  52. package/bundle/{chunk-jbd9k041.js → chunk-4wyjapes.js} +2 -2
  53. package/bundle/chunk-4xg5ptk9.js +2 -0
  54. package/bundle/{chunk-23geekk5.js → chunk-54pk7nna.js} +1 -1
  55. package/bundle/chunk-58680z2j.js +3 -0
  56. package/bundle/{chunk-ygj1cy0n.js → chunk-5mdsrv0a.js} +1 -1
  57. package/bundle/{chunk-xj73j10a.js → chunk-5mp82az0.js} +1 -1
  58. package/bundle/chunk-5nm36wxa.js +2 -0
  59. package/bundle/{chunk-7tgm8wp5.js → chunk-5zw7knvd.js} +1 -1
  60. package/bundle/{chunk-yz7rqzby.js → chunk-61ks7c71.js} +3 -3
  61. package/bundle/chunk-64jet8nc.js +2 -0
  62. package/bundle/chunk-6584d9m8.js +2 -0
  63. package/bundle/chunk-66hv9bbw.js +2 -0
  64. package/bundle/{chunk-mj24ntn9.js → chunk-692vn48b.js} +1 -1
  65. package/bundle/chunk-6a1g6jzn.js +2 -0
  66. package/bundle/chunk-6be8p915.js +2 -0
  67. package/bundle/{chunk-8651hq0k.js → chunk-6ddp36ar.js} +1 -1
  68. package/bundle/chunk-6f03158n.js +2 -0
  69. package/bundle/{chunk-zavtsfxz.js → chunk-6gbaw2pk.js} +1 -1
  70. package/bundle/{chunk-5h2hcp46.js → chunk-6rrmjrm2.js} +1 -1
  71. package/bundle/{chunk-ps543k72.js → chunk-6s2f5sv4.js} +1 -1
  72. package/bundle/{chunk-9jf67xb0.js → chunk-754varfr.js} +2 -2
  73. package/bundle/{chunk-wa2ce2sg.js → chunk-78h5dd4t.js} +2 -2
  74. package/bundle/{chunk-4d1a547n.js → chunk-7d6jhzng.js} +1 -1
  75. package/bundle/{chunk-kc3hpmr2.js → chunk-7fx6x8x9.js} +2 -2
  76. package/bundle/chunk-7jnjttqx.js +2 -0
  77. package/bundle/{chunk-jz3aav8a.js → chunk-7q5srx7q.js} +2 -2
  78. package/bundle/chunk-7q8pa6s8.js +2 -0
  79. package/bundle/{chunk-vvypb02q.js → chunk-7qvkyjjg.js} +1 -1
  80. package/bundle/{chunk-8r79zf3y.js → chunk-7rjf9b8n.js} +2 -2
  81. package/bundle/{chunk-t488d66k.js → chunk-7v4fzkbb.js} +1 -1
  82. package/bundle/chunk-7w84hfxs.js +3 -0
  83. package/bundle/{chunk-8717htya.js → chunk-7ws3gdjq.js} +1 -1
  84. package/bundle/{chunk-va4davgy.js → chunk-87x607rz.js} +259 -253
  85. package/bundle/{chunk-vftqwdpg.js → chunk-8ahpk8td.js} +1 -1
  86. package/bundle/{chunk-9vcw33dv.js → chunk-8atry88r.js} +1 -1
  87. package/bundle/chunk-8casywce.js +2 -0
  88. package/bundle/{chunk-tsn1jkr7.js → chunk-8cty50g7.js} +1 -1
  89. package/bundle/{chunk-qywwj58s.js → chunk-8gy99gfb.js} +2 -2
  90. package/bundle/chunk-8hxwxt5p.js +2 -0
  91. package/bundle/{chunk-58enbars.js → chunk-8jcx4tep.js} +2 -2
  92. package/bundle/chunk-8y8140dm.js +2 -0
  93. package/bundle/{chunk-frdc3ysq.js → chunk-8za87zkr.js} +1 -1
  94. package/bundle/{chunk-2qcndbxv.js → chunk-99p5m2f1.js} +1 -1
  95. package/bundle/{chunk-y3n31nnx.js → chunk-9dpn4792.js} +2 -2
  96. package/bundle/chunk-9dqcyt6x.js +2 -0
  97. package/bundle/{chunk-7gczzccz.js → chunk-9f6pqped.js} +1 -1
  98. package/bundle/chunk-9he248a8.js +2 -0
  99. package/bundle/{chunk-8h9r6c8g.js → chunk-9jncnqbj.js} +2 -2
  100. package/bundle/{chunk-cvchztkc.js → chunk-9jvnc14g.js} +1 -1
  101. package/bundle/chunk-9qmmse2n.js +2 -0
  102. package/bundle/chunk-9r6bvkp4.js +8 -0
  103. package/bundle/{chunk-dkv2mg97.js → chunk-9va5eh9s.js} +1 -1
  104. package/bundle/{chunk-hg563h5r.js → chunk-9w5rx0fb.js} +2 -2
  105. package/bundle/{chunk-xccs5c50.js → chunk-a27yjp71.js} +1 -1
  106. package/bundle/chunk-aabrsxrq.js +2 -0
  107. package/bundle/{chunk-dkm7x8rj.js → chunk-ag9thqkv.js} +2 -2
  108. package/bundle/chunk-amx3x4kd.js +3 -0
  109. package/bundle/{chunk-ktmazmas.js → chunk-aqm597px.js} +2 -2
  110. package/bundle/chunk-atd0q4v8.js +3 -0
  111. package/bundle/{chunk-ewyk4py6.js → chunk-av290sja.js} +1 -1
  112. package/bundle/chunk-avaba4sr.js +2 -0
  113. package/bundle/{chunk-dgzyn27r.js → chunk-aw0q4y3s.js} +1 -1
  114. package/bundle/{chunk-4k149ews.js → chunk-b2xya6pq.js} +1 -1
  115. package/bundle/{chunk-3tdqsm5c.js → chunk-b50t4jc5.js} +1 -1
  116. package/bundle/chunk-bdy1etja.js +2 -0
  117. package/bundle/{chunk-6szvs3k9.js → chunk-bnc4626b.js} +1 -1
  118. package/bundle/{chunk-fm4xa6yx.js → chunk-bpnpxdyv.js} +2 -2
  119. package/bundle/chunk-bqdvqmjc.js +2 -0
  120. package/bundle/chunk-bqs6a1ts.js +14 -0
  121. package/bundle/{chunk-78bajmqm.js → chunk-bsqcfqya.js} +1 -1
  122. package/bundle/{chunk-ecwz9nhs.js → chunk-c1ypbbka.js} +2 -2
  123. package/bundle/{chunk-1jsywey3.js → chunk-c27rpvdz.js} +1 -1
  124. package/bundle/chunk-cdws8ggq.js +2 -0
  125. package/bundle/{chunk-6j0365q3.js → chunk-cjxp72dv.js} +2 -2
  126. package/bundle/chunk-cqs9a2cs.js +2 -0
  127. package/bundle/{chunk-3wzqs241.js → chunk-crap29f6.js} +1 -1
  128. package/bundle/{chunk-1jh5p5qw.js → chunk-d0m7nbbx.js} +2 -2
  129. package/bundle/chunk-d0rjst58.js +2 -0
  130. package/bundle/{chunk-2eardzxs.js → chunk-d1bsxz2t.js} +1 -1
  131. package/bundle/{chunk-b6m4yyww.js → chunk-d5b0bqbr.js} +1 -1
  132. package/bundle/chunk-d833a2fj.js +2 -0
  133. package/bundle/{chunk-tk3bve0x.js → chunk-dd11kryy.js} +2 -2
  134. package/bundle/chunk-dday4nm2.js +2 -0
  135. package/bundle/{chunk-qw2hgs5b.js → chunk-ddxjc803.js} +2 -2
  136. package/bundle/{chunk-3tkp27x7.js → chunk-dee1a3yk.js} +2 -2
  137. package/bundle/{chunk-q6fbyvpq.js → chunk-dgggvses.js} +1 -1
  138. package/bundle/{chunk-apq38bt4.js → chunk-dk3z4k46.js} +3 -3
  139. package/bundle/{chunk-wf09j72q.js → chunk-e075v4e9.js} +2 -2
  140. package/bundle/{chunk-1xyn0sp2.js → chunk-e1pwnf0b.js} +2 -2
  141. package/bundle/chunk-e2sj30hk.js +2 -0
  142. package/bundle/{chunk-dann9gfq.js → chunk-eaatrmcg.js} +1 -1
  143. package/bundle/{chunk-1y9t7nxn.js → chunk-eg7drzzt.js} +1 -1
  144. package/bundle/chunk-enc0fykg.js +2 -0
  145. package/bundle/chunk-evan93av.js +2 -0
  146. package/bundle/{chunk-9f7y0dj0.js → chunk-evmfntm3.js} +1 -1
  147. package/bundle/{chunk-2gxjjqfx.js → chunk-ey4ktbyb.js} +1 -1
  148. package/bundle/{chunk-sswbfqcq.js → chunk-f55txcsa.js} +1 -1
  149. package/bundle/chunk-f600dzsr.js +2 -0
  150. package/bundle/chunk-f6jzwydk.js +2 -0
  151. package/bundle/{chunk-s9amvacw.js → chunk-f84cd0a1.js} +2 -2
  152. package/bundle/{chunk-6sdh1q7g.js → chunk-fgw420gb.js} +1 -1
  153. package/bundle/chunk-fv67ng8z.js +2 -0
  154. package/bundle/{chunk-x6z2b63w.js → chunk-g3s2z5xa.js} +1 -1
  155. package/bundle/{chunk-9xvctnjr.js → chunk-g4qwkcdv.js} +1 -1
  156. package/bundle/{chunk-3nhqd8wg.js → chunk-g73drh98.js} +3 -3
  157. package/bundle/{chunk-0pvbk8ks.js → chunk-gaen9ya4.js} +2 -2
  158. package/bundle/{chunk-ac202abt.js → chunk-gefh32jb.js} +1 -1
  159. package/bundle/chunk-gevazsx3.js +2 -0
  160. package/bundle/{chunk-n1chdwrs.js → chunk-gfmfrkxc.js} +1 -1
  161. package/bundle/{chunk-sjrmhd3e.js → chunk-ggeena9t.js} +1 -1
  162. package/bundle/chunk-gh18pzkx.js +2 -0
  163. package/bundle/chunk-gnvvgr4y.js +2 -0
  164. package/bundle/{chunk-4q9w2yve.js → chunk-grkkzrg1.js} +2 -2
  165. package/bundle/chunk-gsbjs2ws.js +2 -0
  166. package/bundle/{chunk-gff87y4n.js → chunk-gsz1wqy6.js} +1 -1
  167. package/bundle/{chunk-vf1r5ckp.js → chunk-gvtw9c44.js} +1 -1
  168. package/bundle/chunk-gw0j8hr9.js +3 -0
  169. package/bundle/{chunk-cesrhm09.js → chunk-h19ty95q.js} +1 -1
  170. package/bundle/{chunk-9nx8hm57.js → chunk-h2fh1g8g.js} +1 -1
  171. package/bundle/{chunk-p54bzjtv.js → chunk-h56jxxvj.js} +1 -1
  172. package/bundle/{chunk-jmjg8d8a.js → chunk-hmfefq0d.js} +4 -4
  173. package/bundle/{chunk-gn7xgd4c.js → chunk-hvpe07pt.js} +1 -1
  174. package/bundle/{chunk-gvzfffr4.js → chunk-hwbxehhf.js} +1 -1
  175. package/bundle/{chunk-zp2ffbc2.js → chunk-hznsed5n.js} +2 -2
  176. package/bundle/{chunk-w1atxyz0.js → chunk-j5b5h08g.js} +1 -1
  177. package/bundle/chunk-j7pdz979.js +2 -0
  178. package/bundle/{chunk-02txthqv.js → chunk-j9s62g01.js} +2 -2
  179. package/bundle/chunk-jfe2qbv8.js +2 -0
  180. package/bundle/{chunk-wj6aq50n.js → chunk-jgs6ngte.js} +1 -1
  181. package/bundle/{chunk-ep8zn49w.js → chunk-jhq5bvhs.js} +2 -2
  182. package/bundle/{chunk-2z6fzwyc.js → chunk-jq81hb32.js} +2 -2
  183. package/bundle/{chunk-dcx8hjbs.js → chunk-jqzejny3.js} +1 -1
  184. package/bundle/{chunk-j1veq3zr.js → chunk-jtrcnpm7.js} +2 -2
  185. package/bundle/{chunk-hbnr0j7h.js → chunk-jv98gw88.js} +2 -2
  186. package/bundle/{chunk-e346x00p.js → chunk-jvaffe5d.js} +1 -1
  187. package/bundle/chunk-k6zvb8xm.js +2 -0
  188. package/bundle/{chunk-5y8efy5b.js → chunk-k8bp3jjv.js} +1 -1
  189. package/bundle/{chunk-0ae5q6ck.js → chunk-kb14wxcs.js} +2 -2
  190. package/bundle/chunk-kcht9kvx.js +2 -0
  191. package/bundle/{chunk-edvcz2gd.js → chunk-kdcspxvq.js} +1 -1
  192. package/bundle/{chunk-t6w96xq2.js → chunk-kdct3e8s.js} +1 -1
  193. package/bundle/{chunk-1fnmkm0z.js → chunk-kgsq240v.js} +2 -2
  194. package/bundle/chunk-knvsa1d4.js +2 -0
  195. package/bundle/chunk-kp6d68hd.js +2 -0
  196. package/bundle/{chunk-jpygkh1c.js → chunk-kwm87f18.js} +1 -1
  197. package/bundle/{chunk-1p34bx7c.js → chunk-kyny0t2g.js} +2 -2
  198. package/bundle/{chunk-b8ag61vj.js → chunk-m2ang7yb.js} +1 -1
  199. package/bundle/{chunk-99n6czag.js → chunk-mbh1pdv9.js} +2 -2
  200. package/bundle/{chunk-y1srca0c.js → chunk-mczw8e3s.js} +2 -2
  201. package/bundle/chunk-me78p9x4.js +2 -0
  202. package/bundle/{chunk-g7vkkmsk.js → chunk-meaybtcc.js} +3 -3
  203. package/bundle/{chunk-9rqrm9y8.js → chunk-mkdyknbz.js} +1 -1
  204. package/bundle/{chunk-bf146hz2.js → chunk-mkyrg7gt.js} +2 -2
  205. package/bundle/{chunk-0pbt75ev.js → chunk-mr7agwgn.js} +1 -1
  206. package/bundle/{chunk-0w4v0fbs.js → chunk-msm3r7ny.js} +2 -2
  207. package/bundle/chunk-mv1d7wyt.js +2 -0
  208. package/bundle/{chunk-hh3w51wp.js → chunk-mybpgrjj.js} +2 -2
  209. package/bundle/{chunk-gf4ek7rv.js → chunk-n8dcmjph.js} +1 -1
  210. package/bundle/chunk-n8xmmxh5.js +2 -0
  211. package/bundle/chunk-n90219q9.js +2 -0
  212. package/bundle/chunk-nckg3ydx.js +2 -0
  213. package/bundle/{chunk-a5zjrwqy.js → chunk-nf8gkxbk.js} +2 -2
  214. package/bundle/chunk-nhaenjw3.js +2 -0
  215. package/bundle/chunk-nhtrt5ec.js +2 -0
  216. package/bundle/{chunk-6dxaty1v.js → chunk-nhx2xp2x.js} +1 -1
  217. package/bundle/{chunk-najzfhb2.js → chunk-nmnsf3fc.js} +1 -1
  218. package/bundle/{chunk-84gnbzky.js → chunk-nqefvn28.js} +1 -1
  219. package/bundle/{chunk-v2kyarwz.js → chunk-p409grvp.js} +2 -2
  220. package/bundle/chunk-p72n0tfq.js +2 -0
  221. package/bundle/{chunk-jr8qcf99.js → chunk-p80dc6kt.js} +2 -2
  222. package/bundle/{chunk-2wp1w8cy.js → chunk-p883sz67.js} +1 -1
  223. package/bundle/{chunk-fdezde1z.js → chunk-p8enedkf.js} +1 -1
  224. package/bundle/chunk-pd33qvr0.js +2 -0
  225. package/bundle/{chunk-d56zc21w.js → chunk-pepn5jp4.js} +1 -1
  226. package/bundle/chunk-pf7cj4jd.js +3 -0
  227. package/bundle/{chunk-bd21p9zz.js → chunk-pfn1db1m.js} +2 -2
  228. package/bundle/{chunk-srf73nm4.js → chunk-pk0tytcm.js} +1 -1
  229. package/bundle/chunk-pq3622ae.js +2 -0
  230. package/bundle/{chunk-ebjhggdw.js → chunk-psveqqv2.js} +1 -1
  231. package/bundle/{chunk-wfnk2vsd.js → chunk-pvee151a.js} +1 -1
  232. package/bundle/chunk-qatj4h6b.js +2 -0
  233. package/bundle/{chunk-3vbtra1j.js → chunk-qdnxv55k.js} +1 -1
  234. package/bundle/{chunk-gen6f3dn.js → chunk-qe0sfafy.js} +2 -2
  235. package/bundle/chunk-qfz0a58d.js +2 -0
  236. package/bundle/chunk-qjwfj51e.js +2 -0
  237. package/bundle/chunk-qkg73rs9.js +2 -0
  238. package/bundle/{chunk-5kmfnkzv.js → chunk-qm9ezq93.js} +1 -1
  239. package/bundle/{chunk-5rkmhzq0.js → chunk-qnqqrvvs.js} +2 -2
  240. package/bundle/{chunk-9pe4agdz.js → chunk-qnv2v02g.js} +2 -2
  241. package/bundle/{chunk-7dckfame.js → chunk-qpm5afdz.js} +1 -1
  242. package/bundle/chunk-qvcfst7n.js +11 -0
  243. package/bundle/{chunk-r48g0kaq.js → chunk-rgecc41f.js} +2 -2
  244. package/bundle/chunk-rjcptzem.js +8 -0
  245. package/bundle/{chunk-hh9a709t.js → chunk-rjf21v5c.js} +1 -1
  246. package/bundle/chunk-rmsqb6r4.js +10 -0
  247. package/bundle/{chunk-2mmspnr3.js → chunk-rq4hqwjy.js} +1 -1
  248. package/bundle/chunk-rqrpbcm6.js +2 -0
  249. package/bundle/{chunk-ftk58wxe.js → chunk-rs1mm5ef.js} +1 -1
  250. package/bundle/{chunk-a9y27zd2.js → chunk-rze20q68.js} +1 -1
  251. package/bundle/chunk-s76hdgw6.js +2 -0
  252. package/bundle/chunk-s7vhjg9e.js +2 -0
  253. package/bundle/{chunk-fkvccmgk.js → chunk-se79ke63.js} +2 -2
  254. package/bundle/chunk-sec3a60m.js +2 -0
  255. package/bundle/chunk-sjnt5e6w.js +2 -0
  256. package/bundle/chunk-sntb757q.js +2 -0
  257. package/bundle/chunk-svscftd7.js +2 -0
  258. package/bundle/chunk-sx0cabcs.js +2 -0
  259. package/bundle/{chunk-gn9p1d50.js → chunk-sx5m81em.js} +1 -1
  260. package/bundle/chunk-syhay5ye.js +7 -0
  261. package/bundle/{chunk-9798jffg.js → chunk-t07a5431.js} +1 -1
  262. package/bundle/{chunk-c31k8yh0.js → chunk-t0amhhsk.js} +1 -1
  263. package/bundle/{chunk-pfhp78cr.js → chunk-t2tsyazc.js} +1 -1
  264. package/bundle/{chunk-spm1yy6w.js → chunk-tdmaxc6n.js} +1 -1
  265. package/bundle/{chunk-gc9q0x8z.js → chunk-tf1me2r4.js} +3 -3
  266. package/bundle/{chunk-zfnbk5gy.js → chunk-tfggzzqw.js} +1 -1
  267. package/bundle/chunk-tmdm6vm6.js +2 -0
  268. package/bundle/{chunk-9sy9ws1w.js → chunk-v4xgceeq.js} +1 -1
  269. package/bundle/chunk-v6g0ksks.js +2 -0
  270. package/bundle/chunk-v7ah9gg0.js +3 -0
  271. package/bundle/{chunk-kr0fsqas.js → chunk-vb4e7y4d.js} +1 -1
  272. package/bundle/chunk-vbf73c7z.js +2 -0
  273. package/bundle/chunk-vbf9jpas.js +2 -0
  274. package/bundle/{chunk-r3yqe7x0.js → chunk-veev25yg.js} +1 -1
  275. package/bundle/{chunk-kaeyhw2n.js → chunk-vfj5nwab.js} +2 -2
  276. package/bundle/{chunk-6g3m7yxf.js → chunk-vmgknvxs.js} +2 -2
  277. package/bundle/{chunk-2y8qz8te.js → chunk-vq6bh2z9.js} +1 -1
  278. package/bundle/{chunk-b643cra9.js → chunk-vqq5vmh1.js} +195 -195
  279. package/bundle/chunk-vrcf5q4s.js +2 -0
  280. package/bundle/chunk-vxrsp6n7.js +2 -0
  281. package/bundle/chunk-w8ax3pvh.js +2 -0
  282. package/bundle/chunk-w98r39gd.js +9 -0
  283. package/bundle/{chunk-j1a64ade.js → chunk-wb69d52j.js} +2 -2
  284. package/bundle/{chunk-hg9nk090.js → chunk-wrgg270f.js} +1 -1
  285. package/bundle/{chunk-yzdty5t9.js → chunk-ww8ear80.js} +2 -2
  286. package/bundle/{chunk-ha1w0xzh.js → chunk-x36jhtex.js} +1 -1
  287. package/bundle/{chunk-hjbks7r9.js → chunk-x6b99nt3.js} +1 -1
  288. package/bundle/{chunk-yh174jhg.js → chunk-xdde80rf.js} +2 -2
  289. package/bundle/{chunk-17ggas8k.js → chunk-xjrt0dta.js} +1 -1
  290. package/bundle/chunk-xk2cmh49.js +2 -0
  291. package/bundle/{chunk-f819a7ec.js → chunk-xqa6qkx2.js} +1 -1
  292. package/bundle/{chunk-f3kjp838.js → chunk-xw283h2r.js} +2 -2
  293. package/bundle/{chunk-82gs5cmn.js → chunk-xy4t5qf8.js} +1 -1
  294. package/bundle/{chunk-0w0jfzb4.js → chunk-xyn3xxfs.js} +1 -1
  295. package/bundle/chunk-xzhkfctf.js +2 -0
  296. package/bundle/chunk-y0xt5a6g.js +2 -0
  297. package/bundle/{chunk-hxgb0y1w.js → chunk-ybn8tb09.js} +1 -1
  298. package/bundle/chunk-ydmrvx7q.js +2 -0
  299. package/bundle/{chunk-ns0pswww.js → chunk-ydsen7w0.js} +1 -1
  300. package/bundle/{chunk-hv4nhx6q.js → chunk-yhqk8bzk.js} +2 -2
  301. package/bundle/{chunk-g0v9g37f.js → chunk-ykfq8bem.js} +1 -1
  302. package/bundle/{chunk-r7xp0xcn.js → chunk-ym4ydwrz.js} +2 -2
  303. package/bundle/{chunk-4tn69nqs.js → chunk-yzchwmb4.js} +1 -1
  304. package/bundle/{chunk-1d64dywx.js → chunk-z015twaq.js} +2 -2
  305. package/bundle/chunk-z2rtcgad.js +3 -0
  306. package/bundle/{chunk-ms1fd6h4.js → chunk-z3zx6g09.js} +1 -1
  307. package/bundle/chunk-z9b3t2jm.js +2 -0
  308. package/bundle/{chunk-agdfqncf.js → chunk-zbdbsagd.js} +2 -2
  309. package/bundle/{chunk-evqxvhdb.js → chunk-zh808d4t.js} +1 -1
  310. package/bundle/{chunk-fhng5her.js → chunk-zny2qaqa.js} +2 -2
  311. package/bundle/{chunk-y2jmtfdh.js → chunk-zsnbxsdx.js} +2 -2
  312. package/bundle/{chunk-pv8jcpnf.js → chunk-zss93r48.js} +1 -1
  313. package/bundle/chunk-zzr8smtm.js +2 -0
  314. package/bundle/index.js +16 -16
  315. package/bundle/parser.worker.js +2 -2
  316. package/bundle/worker.js +1 -1
  317. package/package.json +1 -1
  318. package/bundle/chunk-0bvde0cx.js +0 -2
  319. package/bundle/chunk-0kbxnazj.js +0 -2
  320. package/bundle/chunk-0z3z0gk1.js +0 -5
  321. package/bundle/chunk-19z5q33z.js +0 -2
  322. package/bundle/chunk-1a0wnwna.js +0 -2
  323. package/bundle/chunk-1ddm2wxv.js +0 -2
  324. package/bundle/chunk-1fk4vsmc.js +0 -2
  325. package/bundle/chunk-1j2f9nd5.js +0 -2
  326. package/bundle/chunk-27s736an.js +0 -2
  327. package/bundle/chunk-2j17xrzj.js +0 -2
  328. package/bundle/chunk-2zca3nak.js +0 -2
  329. package/bundle/chunk-2zcvcfq4.js +0 -2
  330. package/bundle/chunk-38hwkfj5.js +0 -2
  331. package/bundle/chunk-3afqxvsn.js +0 -2
  332. package/bundle/chunk-3avc1ppg.js +0 -7
  333. package/bundle/chunk-3v4vtah1.js +0 -2
  334. package/bundle/chunk-3ypk0j2f.js +0 -2
  335. package/bundle/chunk-3z1y040p.js +0 -3
  336. package/bundle/chunk-4aykrj51.js +0 -9
  337. package/bundle/chunk-4dtbmqmq.js +0 -2
  338. package/bundle/chunk-4zjb6rps.js +0 -2
  339. package/bundle/chunk-5hkcjgwh.js +0 -2
  340. package/bundle/chunk-5snrz263.js +0 -2
  341. package/bundle/chunk-653c0mxr.js +0 -11
  342. package/bundle/chunk-6av7hrrk.js +0 -7
  343. package/bundle/chunk-6bswn7w5.js +0 -2
  344. package/bundle/chunk-6epghftw.js +0 -2
  345. package/bundle/chunk-6jjhxh8p.js +0 -2
  346. package/bundle/chunk-6ws7xyc5.js +0 -2
  347. package/bundle/chunk-7g28zhar.js +0 -2
  348. package/bundle/chunk-7v02b2ms.js +0 -2
  349. package/bundle/chunk-7vmp2034.js +0 -2
  350. package/bundle/chunk-7wxrypkr.js +0 -2
  351. package/bundle/chunk-8kk9gvdy.js +0 -2
  352. package/bundle/chunk-8ygpp4y3.js +0 -2
  353. package/bundle/chunk-95q60g1p.js +0 -2
  354. package/bundle/chunk-9mjbenja.js +0 -2
  355. package/bundle/chunk-9vn1gy8h.js +0 -2
  356. package/bundle/chunk-ajp3f08k.js +0 -2
  357. package/bundle/chunk-aptkpdkc.js +0 -2
  358. package/bundle/chunk-bky5a42k.js +0 -3
  359. package/bundle/chunk-bry94ar5.js +0 -2
  360. package/bundle/chunk-btzyvqkf.js +0 -2
  361. package/bundle/chunk-c94pjdfh.js +0 -2
  362. package/bundle/chunk-cct9ds5c.js +0 -2
  363. package/bundle/chunk-czn535v0.js +0 -2
  364. package/bundle/chunk-d7wd5hz1.js +0 -2
  365. package/bundle/chunk-d86cmjrp.js +0 -2
  366. package/bundle/chunk-dnq65xvn.js +0 -2
  367. package/bundle/chunk-dpqv8rtn.js +0 -2
  368. package/bundle/chunk-e9mh7s3z.js +0 -2
  369. package/bundle/chunk-ek2y5f6g.js +0 -2
  370. package/bundle/chunk-epdsay73.js +0 -2
  371. package/bundle/chunk-f89gntcy.js +0 -3
  372. package/bundle/chunk-ffnsn7tv.js +0 -2
  373. package/bundle/chunk-fkezc7ew.js +0 -2
  374. package/bundle/chunk-fsxddgj0.js +0 -2
  375. package/bundle/chunk-gbcsfg6v.js +0 -2
  376. package/bundle/chunk-gfmz85hp.js +0 -2
  377. package/bundle/chunk-gk63k4t6.js +0 -2
  378. package/bundle/chunk-j0vf8s12.js +0 -2
  379. package/bundle/chunk-j1bxt69x.js +0 -2
  380. package/bundle/chunk-jcem8s30.js +0 -2
  381. package/bundle/chunk-jjwjb9w0.js +0 -3
  382. package/bundle/chunk-jpham2a3.js +0 -2
  383. package/bundle/chunk-jzkymnr5.js +0 -2
  384. package/bundle/chunk-k0qtwnhb.js +0 -2
  385. package/bundle/chunk-k2rsky7z.js +0 -2
  386. package/bundle/chunk-kcetcysa.js +0 -2
  387. package/bundle/chunk-kjfc5v3s.js +0 -2
  388. package/bundle/chunk-kkvb2c2z.js +0 -8
  389. package/bundle/chunk-km2ayfyf.js +0 -2
  390. package/bundle/chunk-knrh89eb.js +0 -2
  391. package/bundle/chunk-ksqfjawv.js +0 -2
  392. package/bundle/chunk-m8djypsy.js +0 -11
  393. package/bundle/chunk-mjhb1q0n.js +0 -3
  394. package/bundle/chunk-mxcger73.js +0 -2
  395. package/bundle/chunk-nazkrkeb.js +0 -2
  396. package/bundle/chunk-nk01s49e.js +0 -2
  397. package/bundle/chunk-ns8b7rx1.js +0 -2
  398. package/bundle/chunk-ny6vpkx2.js +0 -2
  399. package/bundle/chunk-q0dd3ak6.js +0 -3
  400. package/bundle/chunk-q2s057bm.js +0 -2
  401. package/bundle/chunk-q5cqg2c0.js +0 -28
  402. package/bundle/chunk-qk2wnp2x.js +0 -2
  403. package/bundle/chunk-r012q335.js +0 -3
  404. package/bundle/chunk-rbdjbgkb.js +0 -2
  405. package/bundle/chunk-rxjprhgh.js +0 -2
  406. package/bundle/chunk-s3w9bmze.js +0 -2
  407. package/bundle/chunk-s3zste1a.js +0 -2
  408. package/bundle/chunk-sbt7qmwm.js +0 -3
  409. package/bundle/chunk-sf6h44pb.js +0 -2
  410. package/bundle/chunk-sgvzxs7m.js +0 -2
  411. package/bundle/chunk-sp9bndyh.js +0 -2
  412. package/bundle/chunk-vavrczqm.js +0 -3
  413. package/bundle/chunk-vg4styg5.js +0 -2
  414. package/bundle/chunk-vh09hhcs.js +0 -2
  415. package/bundle/chunk-vhktpm0n.js +0 -2
  416. package/bundle/chunk-vzjcmwry.js +0 -14
  417. package/bundle/chunk-wtp0yvqw.js +0 -2
  418. package/bundle/chunk-xmzs7q66.js +0 -2
  419. package/bundle/chunk-xv80476w.js +0 -2
  420. package/bundle/chunk-yjvr0et1.js +0 -2
  421. package/bundle/chunk-zk8n8hnh.js +0 -3
  422. package/bundle/chunk-zx3kcfkj.js +0 -2
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Cs as n,Sr as a,cs as c,ds as d,es as e,gs as f,hs as h,is as i,js as j,ks as k,ms as l,ns as m}from"./chunk-v7ah9gg0.js";import{Ls as b,Ws as g}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"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{f as getEnvInfo,a as Wildcard,m as Token,l as Rpc,b as Process,n as Log,k as Lock,j as Locale,i as LocalContext,h as Keybind,g as Filesystem,e as EffectUtil,d as Color,c as Archive};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{re as Qb}from"./chunk-s9amvacw.js";import{ve as Xb}from"./chunk-0ae5q6ck.js";import{we as Wb}from"./chunk-1xyn0sp2.js";import{xe as Jb,ye as Kb,ze as Lb}from"./chunk-3nhqd8wg.js";import{Ae as Db}from"./chunk-fkvccmgk.js";import{sf as bb,tf as jb,uf as kb,vf as wb,wf as Bb}from"./chunk-jbd9k041.js";import"./chunk-hh4c02fh.js";var K=Lb(),V=Kb(),D=jb(),J=kb(),H=wb(),M=Db(),G=Jb(),P=bb(),E=Qb(),Z=Bb(),m=Wb(),Yb=Xb(),Zb=async(b,j,k)=>{return{operation:D.getSmithyContext(j).operation,region:await D.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Hb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:b.region},propertiesExtractor:(j,k)=>({signingProperties:{config:j,context:k}})}}function Gb(b){return{schemeId:"smithy.api#noAuth"}}var zb=(b)=>{let j=[];switch(b.operation){case"GetRoleCredentials":{j.push(Gb());break}default:j.push(Hb(b))}return j},Fb=(b)=>{let j=E.resolveAwsSdkSigV4Config(b);return Object.assign(j,{authSchemePreference:D.normalizeProvider(b.authSchemePreference??[])})},Ib=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Nb={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ub="3.997.14",Vb={version:Ub},z="ref",W=-1,N=!0,S="isSet",a="PartitionResult",U="booleanEquals",A="getAttr",h={[z]:"Endpoint"},v={[z]:a},Y={},p=[{[z]:"Region"}],u={conditions:[[S,[h]],[S,p],["aws.partition",p,a],[U,[{[z]:"UseFIPS"},N]],[U,[{[z]:"UseDualStack"},N]],[U,[{fn:A,argv:[v,"supportsDualStack"]},N]],[U,[{fn:A,argv:[v,"supportsFIPS"]},N]],["stringEquals",[{fn:A,argv:[v,"name"]},"aws-us-gov"]]],results:[[W],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[h,Y],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Y],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"Invalid Configuration: Missing Region"]]},Mb=2,B=1e8,qb=new Int32Array([-1,1,-1,0,13,3,1,4,B+12,2,5,B+12,3,8,6,4,7,B+11,5,B+9,B+10,4,11,9,6,10,B+8,7,B+6,B+7,5,12,B+5,6,B+4,B+5,3,B+1,14,4,B+2,B+3]),Tb=H.BinaryDecisionDiagram.from(qb,Mb,u.conditions,u.results),yb=new H.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ob=(b,j={})=>{return yb.get(b,()=>H.decideEndpoint(Tb,{endpointParams:b,logger:j.logger}))};H.customEndpointFunctions.aws=K.awsEndpointFunctions;class X extends D.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,X.prototype)}}class l extends X{name="InvalidRequestException";$fault="client";constructor(b){super({name:"InvalidRequestException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class x extends X{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,x.prototype)}}class C extends X{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,C.prototype)}}class $ extends X{name="UnauthorizedException";$fault="client";constructor(b){super({name:"UnauthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}var Rb="AccessTokenType",Ab="GetRoleCredentials",vb="GetRoleCredentialsRequest",Pb="GetRoleCredentialsResponse",Eb="InvalidRequestException",lb="RoleCredentials",xb="ResourceNotFoundException",Cb="SecretAccessKeyType",$b="SessionTokenType",_b="TooManyRequestsException",db="UnauthorizedException",mb="accountId",Sb="accessKeyId",hb="accessToken",pb="account_id",q="client",T="error",ub="expiration",sb="http",y="httpError",ab="httpHeader",s="httpQuery",O="message",rb="roleCredentials",gb="roleName",fb="role_name",r="smithy.ts.sdk.synthetic.com.amazonaws.sso",cb="secretAccessKey",tb="sessionToken",eb="x-amz-sso_bearer_token",L="com.amazonaws.sso",g=P.TypeRegistry.for(r),ib=[-3,r,"SSOServiceException",0,[],[]];g.registerError(ib,X);var F=P.TypeRegistry.for(L),nb=[-3,L,Eb,{[T]:q,[y]:400},[O],[0]];F.registerError(nb,l);var ob=[-3,L,xb,{[T]:q,[y]:404},[O],[0]];F.registerError(ob,x);var bj=[-3,L,_b,{[T]:q,[y]:429},[O],[0]];F.registerError(bj,C);var jj=[-3,L,db,{[T]:q,[y]:401},[O],[0]];F.registerError(jj,$);var kj=[g,F],wj=[0,L,Rb,8,0],Bj=[0,L,Cb,8,0],Dj=[0,L,$b,8,0],Jj=[3,L,vb,0,[gb,mb,hb],[[0,{[s]:fb}],[0,{[s]:pb}],[()=>wj,{[ab]:eb}]],3],Kj=[3,L,Pb,0,[rb],[[()=>Lj,0]]],Lj=[3,L,lb,0,[Sb,cb,tb,ub],[0,[()=>Bj,0],[()=>Dj,0],1]],Qj=[9,L,Ab,{[sb]:["GET","/federation/credentials",200]},()=>Jj,()=>Kj],Wj=(b)=>{return{apiVersion:"2019-06-10",base64Decoder:b?.base64Decoder??Z.fromBase64,base64Encoder:b?.base64Encoder??Z.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??Ob,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??zb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(j)=>j.getIdentityProvider("aws.auth#sigv4"),signer:new E.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(j)=>j.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:b?.logger??new D.NoOpLogger,protocol:b?.protocol??Yb.AwsRestJsonProtocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:kj,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:b?.serviceId??"SSO",urlParser:b?.urlParser??M.parseUrl,utf8Decoder:b?.utf8Decoder??Z.fromUtf8,utf8Encoder:b?.utf8Encoder??Z.toUtf8}},Xj=(b)=>{D.emitWarningIfUnsupportedVersion(process.version);let j=J.resolveDefaultsModeConfig(b),k=()=>j().then(D.loadConfigsForDefaultMode),Q=Wj(b);K.emitWarningIfUnsupportedVersion(process.version);let w={profile:b?.profile,logger:Q.logger};return{...Q,...b,runtime:"node",defaultsMode:j,authSchemePreference:b?.authSchemePreference??J.loadConfig(E.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,w),bodyLengthChecker:b?.bodyLengthChecker??Z.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??K.createDefaultUserAgentProvider({serviceId:Q.serviceId,clientVersion:Vb.version}),maxAttempts:b?.maxAttempts??J.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??J.loadConfig(J.NODE_REGION_CONFIG_OPTIONS,{...J.NODE_REGION_CONFIG_FILE_OPTIONS,...w}),requestHandler:m.NodeHttpHandler.create(b?.requestHandler??k),retryMode:b?.retryMode??J.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await k()).retryMode||G.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??Z.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??m.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??J.loadConfig(J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,w),useFipsEndpoint:b?.useFipsEndpoint??J.loadConfig(J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,w),userAgentAppId:b?.userAgentAppId??J.loadConfig(K.NODE_APP_ID_CONFIG_OPTIONS,w)}},Yj=(b)=>{let{httpAuthSchemes:j,httpAuthSchemeProvider:k,credentials:Q}=b;return{setHttpAuthScheme(w){let I=j.findIndex((R)=>R.schemeId===w.schemeId);if(I===-1)j.push(w);else j.splice(I,1,w)},httpAuthSchemes(){return j},setHttpAuthSchemeProvider(w){k=w},httpAuthSchemeProvider(){return k},setCredentials(w){Q=w},credentials(){return Q}}},Zj=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},Hj=(b,j)=>{let k=Object.assign(K.getAwsRegionExtensionConfiguration(b),D.getDefaultExtensionConfiguration(b),M.getHttpHandlerExtensionConfiguration(b),Yj(b));return j.forEach((Q)=>Q.configure(k)),Object.assign(b,K.resolveAwsRegionExtensionConfiguration(k),D.resolveDefaultRuntimeConfig(k),M.resolveHttpHandlerRuntimeConfig(k),Zj(k))};class _ extends D.Client{config;constructor(...[b]){let j=Xj(b||{});super(j);this.initConfig=j;let k=Ib(j),Q=K.resolveUserAgentConfig(k),w=G.resolveRetryConfig(Q),I=J.resolveRegionConfig(w),R=K.resolveHostHeaderConfig(I),e=H.resolveEndpointConfig(R),i=Fb(e),n=Hj(i,b?.extensions||[]);this.config=n,this.middlewareStack.use(P.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(K.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(M.getContentLengthPlugin(this.config)),this.middlewareStack.use(K.getHostHeaderPlugin(this.config)),this.middlewareStack.use(K.getLoggerPlugin(this.config)),this.middlewareStack.use(K.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(V.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Zb,identityProviderConfigProvider:async(o)=>new V.DefaultIdentityProviderConfig({"aws.auth#sigv4":o.credentials})})),this.middlewareStack.use(V.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends D.Command.classBuilder().ep(Nb).m(function(b,j,k,Q){return[H.getEndpointPlugin(k,b.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(Qj).build(){}var Gj={GetRoleCredentialsCommand:d};class f extends _{}D.createAggregatedClient(Gj,f);var{Command:zj,Client:Fj}=D;var c=d;var t=_;export{t as SSOClient,c as GetRoleCredentialsCommand};
2
+ import{se as Qb}from"./chunk-f84cd0a1.js";import{we as Xb}from"./chunk-kb14wxcs.js";import{xe as Wb}from"./chunk-e1pwnf0b.js";import{Ae as Lb,ye as Jb,ze as Kb}from"./chunk-g73drh98.js";import{Be as Db}from"./chunk-se79ke63.js";import{tf as bb,uf as jb,vf as kb,wf as wb,xf as Bb}from"./chunk-4wyjapes.js";import"./chunk-0rmmg3g4.js";var K=Lb(),V=Kb(),D=jb(),J=kb(),H=wb(),M=Db(),G=Jb(),P=bb(),E=Qb(),Z=Bb(),m=Wb(),Yb=Xb(),Zb=async(b,j,k)=>{return{operation:D.getSmithyContext(j).operation,region:await D.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Hb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:b.region},propertiesExtractor:(j,k)=>({signingProperties:{config:j,context:k}})}}function Gb(b){return{schemeId:"smithy.api#noAuth"}}var zb=(b)=>{let j=[];switch(b.operation){case"GetRoleCredentials":{j.push(Gb());break}default:j.push(Hb(b))}return j},Fb=(b)=>{let j=E.resolveAwsSdkSigV4Config(b);return Object.assign(j,{authSchemePreference:D.normalizeProvider(b.authSchemePreference??[])})},Ib=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Nb={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ub="3.997.14",Vb={version:Ub},z="ref",W=-1,N=!0,S="isSet",a="PartitionResult",U="booleanEquals",A="getAttr",h={[z]:"Endpoint"},v={[z]:a},Y={},p=[{[z]:"Region"}],u={conditions:[[S,[h]],[S,p],["aws.partition",p,a],[U,[{[z]:"UseFIPS"},N]],[U,[{[z]:"UseDualStack"},N]],[U,[{fn:A,argv:[v,"supportsDualStack"]},N]],[U,[{fn:A,argv:[v,"supportsFIPS"]},N]],["stringEquals",[{fn:A,argv:[v,"name"]},"aws-us-gov"]]],results:[[W],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[h,Y],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Y],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"Invalid Configuration: Missing Region"]]},Mb=2,B=1e8,qb=new Int32Array([-1,1,-1,0,13,3,1,4,B+12,2,5,B+12,3,8,6,4,7,B+11,5,B+9,B+10,4,11,9,6,10,B+8,7,B+6,B+7,5,12,B+5,6,B+4,B+5,3,B+1,14,4,B+2,B+3]),Tb=H.BinaryDecisionDiagram.from(qb,Mb,u.conditions,u.results),yb=new H.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ob=(b,j={})=>{return yb.get(b,()=>H.decideEndpoint(Tb,{endpointParams:b,logger:j.logger}))};H.customEndpointFunctions.aws=K.awsEndpointFunctions;class X extends D.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,X.prototype)}}class l extends X{name="InvalidRequestException";$fault="client";constructor(b){super({name:"InvalidRequestException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class x extends X{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,x.prototype)}}class C extends X{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,C.prototype)}}class $ extends X{name="UnauthorizedException";$fault="client";constructor(b){super({name:"UnauthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}var Rb="AccessTokenType",Ab="GetRoleCredentials",vb="GetRoleCredentialsRequest",Pb="GetRoleCredentialsResponse",Eb="InvalidRequestException",lb="RoleCredentials",xb="ResourceNotFoundException",Cb="SecretAccessKeyType",$b="SessionTokenType",_b="TooManyRequestsException",db="UnauthorizedException",mb="accountId",Sb="accessKeyId",hb="accessToken",pb="account_id",q="client",T="error",ub="expiration",sb="http",y="httpError",ab="httpHeader",s="httpQuery",O="message",rb="roleCredentials",gb="roleName",fb="role_name",r="smithy.ts.sdk.synthetic.com.amazonaws.sso",cb="secretAccessKey",tb="sessionToken",eb="x-amz-sso_bearer_token",L="com.amazonaws.sso",g=P.TypeRegistry.for(r),ib=[-3,r,"SSOServiceException",0,[],[]];g.registerError(ib,X);var F=P.TypeRegistry.for(L),nb=[-3,L,Eb,{[T]:q,[y]:400},[O],[0]];F.registerError(nb,l);var ob=[-3,L,xb,{[T]:q,[y]:404},[O],[0]];F.registerError(ob,x);var bj=[-3,L,_b,{[T]:q,[y]:429},[O],[0]];F.registerError(bj,C);var jj=[-3,L,db,{[T]:q,[y]:401},[O],[0]];F.registerError(jj,$);var kj=[g,F],wj=[0,L,Rb,8,0],Bj=[0,L,Cb,8,0],Dj=[0,L,$b,8,0],Jj=[3,L,vb,0,[gb,mb,hb],[[0,{[s]:fb}],[0,{[s]:pb}],[()=>wj,{[ab]:eb}]],3],Kj=[3,L,Pb,0,[rb],[[()=>Lj,0]]],Lj=[3,L,lb,0,[Sb,cb,tb,ub],[0,[()=>Bj,0],[()=>Dj,0],1]],Qj=[9,L,Ab,{[sb]:["GET","/federation/credentials",200]},()=>Jj,()=>Kj],Wj=(b)=>{return{apiVersion:"2019-06-10",base64Decoder:b?.base64Decoder??Z.fromBase64,base64Encoder:b?.base64Encoder??Z.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??Ob,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??zb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(j)=>j.getIdentityProvider("aws.auth#sigv4"),signer:new E.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(j)=>j.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:b?.logger??new D.NoOpLogger,protocol:b?.protocol??Yb.AwsRestJsonProtocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:kj,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:b?.serviceId??"SSO",urlParser:b?.urlParser??M.parseUrl,utf8Decoder:b?.utf8Decoder??Z.fromUtf8,utf8Encoder:b?.utf8Encoder??Z.toUtf8}},Xj=(b)=>{D.emitWarningIfUnsupportedVersion(process.version);let j=J.resolveDefaultsModeConfig(b),k=()=>j().then(D.loadConfigsForDefaultMode),Q=Wj(b);K.emitWarningIfUnsupportedVersion(process.version);let w={profile:b?.profile,logger:Q.logger};return{...Q,...b,runtime:"node",defaultsMode:j,authSchemePreference:b?.authSchemePreference??J.loadConfig(E.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,w),bodyLengthChecker:b?.bodyLengthChecker??Z.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??K.createDefaultUserAgentProvider({serviceId:Q.serviceId,clientVersion:Vb.version}),maxAttempts:b?.maxAttempts??J.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??J.loadConfig(J.NODE_REGION_CONFIG_OPTIONS,{...J.NODE_REGION_CONFIG_FILE_OPTIONS,...w}),requestHandler:m.NodeHttpHandler.create(b?.requestHandler??k),retryMode:b?.retryMode??J.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await k()).retryMode||G.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??Z.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??m.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??J.loadConfig(J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,w),useFipsEndpoint:b?.useFipsEndpoint??J.loadConfig(J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,w),userAgentAppId:b?.userAgentAppId??J.loadConfig(K.NODE_APP_ID_CONFIG_OPTIONS,w)}},Yj=(b)=>{let{httpAuthSchemes:j,httpAuthSchemeProvider:k,credentials:Q}=b;return{setHttpAuthScheme(w){let I=j.findIndex((R)=>R.schemeId===w.schemeId);if(I===-1)j.push(w);else j.splice(I,1,w)},httpAuthSchemes(){return j},setHttpAuthSchemeProvider(w){k=w},httpAuthSchemeProvider(){return k},setCredentials(w){Q=w},credentials(){return Q}}},Zj=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},Hj=(b,j)=>{let k=Object.assign(K.getAwsRegionExtensionConfiguration(b),D.getDefaultExtensionConfiguration(b),M.getHttpHandlerExtensionConfiguration(b),Yj(b));return j.forEach((Q)=>Q.configure(k)),Object.assign(b,K.resolveAwsRegionExtensionConfiguration(k),D.resolveDefaultRuntimeConfig(k),M.resolveHttpHandlerRuntimeConfig(k),Zj(k))};class _ extends D.Client{config;constructor(...[b]){let j=Xj(b||{});super(j);this.initConfig=j;let k=Ib(j),Q=K.resolveUserAgentConfig(k),w=G.resolveRetryConfig(Q),I=J.resolveRegionConfig(w),R=K.resolveHostHeaderConfig(I),e=H.resolveEndpointConfig(R),i=Fb(e),n=Hj(i,b?.extensions||[]);this.config=n,this.middlewareStack.use(P.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(K.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(M.getContentLengthPlugin(this.config)),this.middlewareStack.use(K.getHostHeaderPlugin(this.config)),this.middlewareStack.use(K.getLoggerPlugin(this.config)),this.middlewareStack.use(K.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(V.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Zb,identityProviderConfigProvider:async(o)=>new V.DefaultIdentityProviderConfig({"aws.auth#sigv4":o.credentials})})),this.middlewareStack.use(V.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends D.Command.classBuilder().ep(Nb).m(function(b,j,k,Q){return[H.getEndpointPlugin(k,b.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(Qj).build(){}var Gj={GetRoleCredentialsCommand:d};class f extends _{}D.createAggregatedClient(Gj,f);var{Command:zj,Client:Fj}=D;var c=d;var t=_;export{t as SSOClient,c as GetRoleCredentialsCommand};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Pd as a}from"./chunk-9xvctnjr.js";import{Qf as d}from"./chunk-02txthqv.js";import{Tf as i}from"./chunk-gen6f3dn.js";import{Bl as p,Dl as n}from"./chunk-0z3z0gk1.js";import"./chunk-g7vkkmsk.js";import{Co as f}from"./chunk-m8djypsy.js";import"./chunk-3z1y040p.js";import"./chunk-3tdqsm5c.js";import"./chunk-a5zjrwqy.js";import"./chunk-tk3bve0x.js";import"./chunk-0w4v0fbs.js";import"./chunk-wf09j72q.js";import"./chunk-ep8zn49w.js";import"./chunk-f3kjp838.js";import"./chunk-zk8n8hnh.js";import{Ct as m}from"./chunk-1jh5p5qw.js";import"./chunk-kaeyhw2n.js";import"./chunk-f89gntcy.js";import"./chunk-bky5a42k.js";import"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-v2kyarwz.js";import"./chunk-dkm7x8rj.js";import"./chunk-hh4c02fh.js";import{spawn as y}from"child_process";import{Database as g}from"bun:sqlite";import{EOL as l}from"os";var b=a({command:"$0 [query]",describe:"open an interactive sqlite3 shell or run a query",builder:(t)=>{return t.positional("query",{type:"string",describe:"SQL query to execute"}).option("format",{type:"string",choices:["json","tsv"],default:"tsv",describe:"Output format"})},handler:async(t)=>{let o=t.query;if(o){let r=new g(n.Path,{readonly:!0});try{let e=r.query(o).all();if(t.format==="json")console.log(JSON.stringify(e,null,2));else if(e.length>0){let s=Object.keys(e[0]);console.log(s.join("\t"));for(let u of e)console.log(s.map((h)=>u[h]).join("\t"))}}catch(e){i.error(m(e)),process.exit(1)}r.close();return}let c=y("sqlite3",[n.Path],{stdio:"inherit"});await new Promise((r)=>c.on("close",r))}}),w=a({command:"path",describe:"print the database path",handler:()=>{console.log(n.Path)}}),q=a({command:"migrate",describe:"migrate JSON data to SQLite (merges with existing data)",handler:async()=>{let t=new g(n.Path),o=process.stderr.isTTY,c=-1;if(o)process.stderr.write("\x1B[?25l");try{let r=await p.run(f({client:t}),{progress:(e)=>{let s=Math.floor(e.current/e.total*100);if(s===c)return;if(c=s,o)process.stderr.write(d(s,`${e.current}/${e.total}`)+" ");else process.stderr.write(`sqlite-migration:${s}${l}`)}});if(o)process.stderr.write(`
2
+ import{Qd as a}from"./chunk-g4qwkcdv.js";import{Rf as d}from"./chunk-j9s62g01.js";import{Uf as i}from"./chunk-qe0sfafy.js";import{Cl as p,El as n}from"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import{en as f}from"./chunk-rmsqb6r4.js";import"./chunk-pf7cj4jd.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-v7ah9gg0.js";import{Fs as m}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"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";import{spawn as y}from"child_process";import{Database as g}from"bun:sqlite";import{EOL as l}from"os";var b=a({command:"$0 [query]",describe:"open an interactive sqlite3 shell or run a query",builder:(t)=>{return t.positional("query",{type:"string",describe:"SQL query to execute"}).option("format",{type:"string",choices:["json","tsv"],default:"tsv",describe:"Output format"})},handler:async(t)=>{let o=t.query;if(o){let r=new g(n.Path,{readonly:!0});try{let e=r.query(o).all();if(t.format==="json")console.log(JSON.stringify(e,null,2));else if(e.length>0){let s=Object.keys(e[0]);console.log(s.join("\t"));for(let u of e)console.log(s.map((h)=>u[h]).join("\t"))}}catch(e){i.error(m(e)),process.exit(1)}r.close();return}let c=y("sqlite3",[n.Path],{stdio:"inherit"});await new Promise((r)=>c.on("close",r))}}),w=a({command:"path",describe:"print the database path",handler:()=>{console.log(n.Path)}}),q=a({command:"migrate",describe:"migrate JSON data to SQLite (merges with existing data)",handler:async()=>{let t=new g(n.Path),o=process.stderr.isTTY,c=-1;if(o)process.stderr.write("\x1B[?25l");try{let r=await p.run(f({client:t}),{progress:(e)=>{let s=Math.floor(e.current/e.total*100);if(s===c)return;if(c=s,o)process.stderr.write(d(s,`${e.current}/${e.total}`)+" ");else process.stderr.write(`sqlite-migration:${s}${l}`)}});if(o)process.stderr.write(`
3
3
  `);if(o)process.stderr.write("\x1B[?25h");else process.stderr.write(`sqlite-migration:done${l}`);if(i.println(`Migration complete: ${r.projects} projects, ${r.sessions} sessions, ${r.messages} messages`),r.errors.length>0)i.println(`${r.errors.length} errors occurred during migration`)}catch(r){if(o)process.stderr.write("\x1B[?25h");i.error(`Migration failed: ${m(r)}`),process.exit(1)}finally{t.close()}}}),v=a({command:"db",describe:"database tools",builder:(t)=>{return t.command(b).command(w).command(q).demandCommand()},handler:()=>{}});export{v as DbCommand};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$N as i,TN as a,UN as b,VN as c,WN as d,XN as e,YN as f,ZN as g,_N as h,aO as j}from"./chunk-qnv2v02g.js";import"./chunk-0rmmg3g4.js";export{c as TreeCursor,b as Tree,f as Query,j as Parser,d as Node,i as MIN_COMPATIBLE_VERSION,a as LookaheadIterator,g as Language,h as LANGUAGE_VERSION,e as CaptureQuantifier};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Mr as z,Pr as B}from"./chunk-0w4v0fbs.js";import{ft as D}from"./chunk-zk8n8hnh.js";import{Vz as r}from"./chunk-v2kyarwz.js";import{LF as R,mI as W,wD as x}from"./chunk-dkm7x8rj.js";var w=x.Reference("~qitqode/InstanceRef",{defaultValue:()=>{return}}),C=x.Reference("~qitqode/WorkspaceRef",{defaultValue:()=>{return}});var V=D.create("instance"),y={async provide(p){return V.provide({workspaceID:p.workspaceID},()=>p.fn())},restore(p,o){return V.provide({workspaceID:p},o)},get workspaceID(){try{return V.use().workspaceID}catch{return}}};var j;function U(p){j=p}function P(){if(!j)throw new D.NotFound("instance");return j()}function H(p,o){if(!o.instance&&!o.workspace)return p;if(!o.instance)return p.pipe(W.provideService(C,o.workspace));if(!o.workspace)return p.pipe(W.provideService(w,o.instance));return p.pipe(W.provideService(w,o.instance),W.provideService(C,o.workspace))}function d(p){try{return H(p,{instance:P(),workspace:y.workspaceID})}catch(o){if(!(o instanceof D.NotFound))throw o}return p}function F(p,o){let G,I=()=>G??=r.make(R.provideMerge(o,z),{memoMap:B});return{runSync:(k)=>I().runSync(d(p.use(k))),runPromiseExit:(k,q)=>I().runPromiseExit(d(p.use(k)),q),runPromise:(k,q)=>I().runPromise(d(p.use(k)),q),runFork:(k)=>I().runFork(d(p.use(k))),runCallback:(k)=>I().runCallback(d(p.use(k)))}}
3
- export{w as Dr,C as Er,y as Fr,U as Gr,H as Hr,d as Ir,F as Jr};
2
+ import{qq as z,tq as B}from"./chunk-msm3r7ny.js";import{is as D}from"./chunk-v7ah9gg0.js";import{Ay as r}from"./chunk-p409grvp.js";import{TG as W,bC as x,qE as R}from"./chunk-ag9thqkv.js";var w=x.Reference("~qitqode/InstanceRef",{defaultValue:()=>{return}}),C=x.Reference("~qitqode/WorkspaceRef",{defaultValue:()=>{return}});var V=D.create("instance"),y={async provide(p){return V.provide({workspaceID:p.workspaceID},()=>p.fn())},restore(p,o){return V.provide({workspaceID:p},o)},get workspaceID(){try{return V.use().workspaceID}catch{return}}};var j;function U(p){j=p}function P(){if(!j)throw new D.NotFound("instance");return j()}function H(p,o){if(!o.instance&&!o.workspace)return p;if(!o.instance)return p.pipe(W.provideService(C,o.workspace));if(!o.workspace)return p.pipe(W.provideService(w,o.instance));return p.pipe(W.provideService(w,o.instance),W.provideService(C,o.workspace))}function d(p){try{return H(p,{instance:P(),workspace:y.workspaceID})}catch(o){if(!(o instanceof D.NotFound))throw o}return p}function F(p,o){let G,I=()=>G??=r.make(R.provideMerge(o,z),{memoMap:B});return{runSync:(k)=>I().runSync(d(p.use(k))),runPromiseExit:(k,q)=>I().runPromiseExit(d(p.use(k)),q),runPromise:(k,q)=>I().runPromise(d(p.use(k)),q),runFork:(k)=>I().runFork(d(p.use(k))),runCallback:(k)=>I().runCallback(d(p.use(k)))}}
3
+ export{w as hq,C as iq,y as jq,U as kq,H as lq,d as mq,F as nq};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{if as a,jf as b,kf as c,lf as d,mf as e,nf as f}from"./chunk-zsnbxsdx.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-0rmmg3g4.js";export{f as createOpenAICompatible,e as VERSION,d as OpenAICompatibleImageModel,c as OpenAICompatibleEmbeddingModel,b as OpenAICompatibleCompletionLanguageModel,a as OpenAICompatibleChatLanguageModel};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ee as T,Ge as VG,Ie as c,Me as h,Xe as l,Ye as R,Ze as b,bf as f,cf as i,df as v}from"./chunk-1fnmkm0z.js";import{$q as BG,Vq as KG,Wq as s,br as S}from"./chunk-t488d66k.js";import{Pu as G}from"./chunk-r7xp0xcn.js";var EG=G.object({error:G.object({message:G.string(),type:G.string().nullish(),param:G.any().nullish(),code:G.union([G.string(),G.number()]).nullish()})}),n={errorSchema:EG,errorToMessage:(Q)=>Q.error.message};function $G(Q){var Y,Z,$,U,z,j;if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let K=(Y=Q.prompt_tokens)!=null?Y:0,W=(Z=Q.completion_tokens)!=null?Z:0,X=(U=($=Q.prompt_tokens_details)==null?void 0:$.cached_tokens)!=null?U:0,J=(j=(z=Q.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?j:0;return{inputTokens:{total:K,noCache:K-X,cacheRead:X,cacheWrite:void 0},outputTokens:{total:W,text:W-J,reasoning:J},raw:Q}}function C(Q){var Y,Z;return(Z=(Y=Q==null?void 0:Q.providerOptions)==null?void 0:Y.openaiCompatible)!=null?Z:{}}function HG(Q){switch(Q){case"audio/wav":return"wav";case"audio/mp3":case"audio/mpeg":return"mp3";default:return null}}function AG(Q){var Y,Z,$;let U=[];for(let{role:z,content:j,...K}of Q){let W=C({...K});switch(z){case"system":{U.push({role:"system",content:j,...W});break}case"user":{if(j.length===1&&j[0].type==="text"){U.push({role:"user",content:j[0].text,...C(j[0])});break}U.push({role:"user",content:j.map((X)=>{var J;let B=C(X);switch(X.type){case"text":return{type:"text",text:X.text,...B};case"file":{if(X.mediaType.startsWith("image/")){let L=X.mediaType==="image/*"?"image/jpeg":X.mediaType;return{type:"image_url",image_url:{url:X.data instanceof URL?X.data.toString():`data:${L};base64,${c(X.data)}`},...B}}if(X.mediaType.startsWith("audio/")){if(X.data instanceof URL)throw new S({functionality:"audio file parts with URLs"});let L=HG(X.mediaType);if(L===null)throw new S({functionality:`audio media type ${X.mediaType}`});return{type:"input_audio",input_audio:{data:c(X.data),format:L},...B}}if(X.mediaType==="application/pdf"){if(X.data instanceof URL)throw new S({functionality:"PDF file parts with URLs"});return{type:"file",file:{filename:(J=X.filename)!=null?J:"document.pdf",file_data:`data:application/pdf;base64,${c(X.data)}`},...B}}if(X.mediaType.startsWith("text/"))return{type:"text",text:X.data instanceof URL?X.data.toString():typeof X.data==="string"?new TextDecoder().decode(VG(X.data)):new TextDecoder().decode(X.data),...B};throw new S({functionality:`file part media type ${X.mediaType}`})}}}),...W});break}case"assistant":{let X="",J="",B=[];for(let L of j){let N=C(L);switch(L.type){case"text":{X+=L.text;break}case"reasoning":{J+=L.text;break}case"tool-call":{let H=(Z=(Y=L.providerOptions)==null?void 0:Y.google)==null?void 0:Z.thoughtSignature;B.push({id:L.toolCallId,type:"function",function:{name:L.toolName,arguments:JSON.stringify(L.input)},...N,...H?{extra_content:{google:{thought_signature:String(H)}}}:{}});break}}}U.push({role:"assistant",content:X,...J.length>0?{reasoning_content:J}:{},tool_calls:B.length>0?B:void 0,...W});break}case"tool":{for(let X of j){if(X.type==="tool-approval-response")continue;let J=X.output,B;switch(J.type){case"text":case"error-text":B=J.value;break;case"execution-denied":B=($=J.reason)!=null?$:"Tool execution denied.";break;case"content":case"json":case"error-json":B=JSON.stringify(J.value);break}let L=C(X);U.push({role:"tool",tool_call_id:X.toolCallId,content:B,...L})}break}default:throw Error(`Unsupported role: ${z}`)}}return U}function JG({id:Q,model:Y,created:Z}){return{id:Q!=null?Q:void 0,modelId:Y!=null?Y:void 0,timestamp:Z!=null?new Date(Z*1000):void 0}}function UG(Q){switch(Q){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var d=G.object({user:G.string().optional(),reasoningEffort:G.string().optional(),textVerbosity:G.string().optional(),strictJsonSchema:G.boolean().optional()});function PG({tools:Q,toolChoice:Y}){Q=(Q==null?void 0:Q.length)?Q:void 0;let Z=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Z};let $=[];for(let z of Q)if(z.type==="provider")Z.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else $.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Y==null)return{tools:$,toolChoice:void 0,toolWarnings:Z};let U=Y.type;switch(U){case"auto":case"none":case"required":return{tools:$,toolChoice:U,toolWarnings:Z};case"tool":return{tools:$,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:Z};default:throw new S({functionality:`tool choice type: ${U}`})}}var CG=class{constructor(Q,Y){this.specificationVersion="v3";var Z,$;this.modelId=Q,this.config=Y;let U=(Z=Y.errorStructure)!=null?Z:n;this.chunkSchema=DG(U.errorSchema),this.failedResponseHandler=f(U),this.supportsStructuredOutputs=($=Y.supportsStructuredOutputs)!=null?$:!1}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get supportedUrls(){var Q,Y,Z;return(Z=(Y=(Q=this.config).supportedUrls)==null?void 0:Y.call(Q))!=null?Z:{}}transformRequestBody(Q){var Y,Z,$;return($=(Z=(Y=this.config).transformRequestBody)==null?void 0:Z.call(Y,Q))!=null?$:Q}async getArgs({prompt:Q,maxOutputTokens:Y,temperature:Z,topP:$,topK:U,frequencyPenalty:z,presencePenalty:j,providerOptions:K,stopSequences:W,responseFormat:X,seed:J,toolChoice:B,tools:L}){var N,H,E,V,q;let A=[],I=await R({provider:"openai-compatible",providerOptions:K,schema:d});if(I!=null)A.push({type:"other",message:"The 'openai-compatible' key in providerOptions is deprecated. Use 'openaiCompatible' instead."});let D=Object.assign(I!=null?I:{},(N=await R({provider:"openaiCompatible",providerOptions:K,schema:d}))!=null?N:{},(H=await R({provider:this.providerOptionsName,providerOptions:K,schema:d}))!=null?H:{}),P=(E=D==null?void 0:D.strictJsonSchema)!=null?E:!0;if(U!=null)A.push({type:"unsupported",feature:"topK"});if((X==null?void 0:X.type)==="json"&&X.schema!=null&&!this.supportsStructuredOutputs)A.push({type:"unsupported",feature:"responseFormat",details:"JSON response format schema is only supported with structuredOutputs"});let{tools:w,toolChoice:y,toolWarnings:u}=PG({tools:L,toolChoice:B});return{args:{model:this.modelId,user:D.user,max_tokens:Y,temperature:Z,top_p:$,frequency_penalty:z,presence_penalty:j,response_format:(X==null?void 0:X.type)==="json"?this.supportsStructuredOutputs===!0&&X.schema!=null?{type:"json_schema",json_schema:{schema:X.schema,strict:P,name:(V=X.name)!=null?V:"response",description:X.description}}:{type:"json_object"}:void 0,stop:W,seed:J,...Object.fromEntries(Object.entries((q=K==null?void 0:K[this.providerOptionsName])!=null?q:{}).filter(([g])=>!Object.keys(d.shape).includes(g))),reasoning_effort:D.reasoningEffort,verbosity:D.textVerbosity,messages:AG(Q),tools:w,tool_choice:y},warnings:[...A,...u]}}async doGenerate(Q){var Y,Z,$,U,z,j,K,W;let{args:X,warnings:J}=await this.getArgs({...Q}),B=this.transformRequestBody(X),L=JSON.stringify(B),{responseHeaders:N,value:H,rawValue:E}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:B,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:v(qG),abortSignal:Q.abortSignal,fetch:this.config.fetch}),V=H.choices[0],q=[],A=V.message.content;if(A!=null&&A.length>0)q.push({type:"text",text:A});let I=(Y=V.message.reasoning_content)!=null?Y:V.message.reasoning;if(I!=null&&I.length>0)q.push({type:"reasoning",text:I});if(V.message.tool_calls!=null)for(let w of V.message.tool_calls){let y=($=(Z=w.extra_content)==null?void 0:Z.google)==null?void 0:$.thought_signature;q.push({type:"tool-call",toolCallId:(U=w.id)!=null?U:h(),toolName:w.function.name,input:w.function.arguments,...y?{providerMetadata:{[this.providerOptionsName]:{thoughtSignature:y}}}:{}})}let D={[this.providerOptionsName]:{},...await((j=(z=this.config.metadataExtractor)==null?void 0:z.extractMetadata)==null?void 0:j.call(z,{parsedBody:E}))},P=(K=H.usage)==null?void 0:K.completion_tokens_details;if((P==null?void 0:P.accepted_prediction_tokens)!=null)D[this.providerOptionsName].acceptedPredictionTokens=P==null?void 0:P.accepted_prediction_tokens;if((P==null?void 0:P.rejected_prediction_tokens)!=null)D[this.providerOptionsName].rejectedPredictionTokens=P==null?void 0:P.rejected_prediction_tokens;return{content:q,finishReason:{unified:UG(V.finish_reason),raw:(W=V.finish_reason)!=null?W:void 0},usage:$G(H.usage),providerMetadata:D,request:{body:L},response:{...JG(H),headers:N,body:E},warnings:J}}async doStream(Q){var Y;let{args:Z,warnings:$}=await this.getArgs({...Q}),U=this.transformRequestBody({...Z,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0}),z=(Y=this.config.metadataExtractor)==null?void 0:Y.createStreamExtractor(),{responseHeaders:j,value:K}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:U,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:i(this.chunkSchema),abortSignal:Q.abortSignal,fetch:this.config.fetch}),W=[],X={unified:"other",raw:void 0},J=void 0,B=!0,L=this.providerOptionsName,N=!1,H=!1;return{stream:K.pipeThrough(new TransformStream({start(E){E.enqueue({type:"stream-start",warnings:$})},transform(E,V){var q,A,I,D,P,w,y,u,g,a,r,t,e,o,GG,QG,XG,YG;if(Q.includeRawChunks)V.enqueue({type:"raw",rawValue:E.rawValue});if(!E.success){X={unified:"error",raw:void 0},V.enqueue({type:"error",error:E.error});return}if(z==null||z.processChunk(E.rawValue),"error"in E.value){X={unified:"error",raw:void 0},V.enqueue({type:"error",error:E.value.error.message});return}let _=E.value;if(B)B=!1,V.enqueue({type:"response-metadata",...JG(_)});if(_.usage!=null)J=_.usage;let O=_.choices[0];if((O==null?void 0:O.finish_reason)!=null)X={unified:UG(O.finish_reason),raw:(q=O.finish_reason)!=null?q:void 0};if((O==null?void 0:O.delta)==null)return;let k=O.delta,ZG=(A=k.reasoning_content)!=null?A:k.reasoning;if(ZG){if(!N)V.enqueue({type:"reasoning-start",id:"reasoning-0"}),N=!0;V.enqueue({type:"reasoning-delta",id:"reasoning-0",delta:ZG})}if(k.content){if(N)V.enqueue({type:"reasoning-end",id:"reasoning-0"}),N=!1;if(!H)V.enqueue({type:"text-start",id:"txt-0"}),H=!0;V.enqueue({type:"text-delta",id:"txt-0",delta:k.content})}if(k.tool_calls!=null){if(N)V.enqueue({type:"reasoning-end",id:"reasoning-0"}),N=!1;for(let x of k.tool_calls){let m=(I=x.index)!=null?I:W.length;if(W[m]==null){if(x.id==null)throw new s({data:x,message:"Expected 'id' to be a string."});if(((D=x.function)==null?void 0:D.name)==null)throw new s({data:x,message:"Expected 'function.name' to be a string."});V.enqueue({type:"tool-input-start",id:x.id,toolName:x.function.name}),W[m]={id:x.id,type:"function",function:{name:x.function.name,arguments:(P=x.function.arguments)!=null?P:""},hasFinished:!1,thoughtSignature:(u=(y=(w=x.extra_content)==null?void 0:w.google)==null?void 0:y.thought_signature)!=null?u:void 0};let M=W[m];if(((g=M.function)==null?void 0:g.name)!=null&&((a=M.function)==null?void 0:a.arguments)!=null){if(M.function.arguments.length>0)V.enqueue({type:"tool-input-delta",id:M.id,delta:M.function.arguments});if(l(M.function.arguments))V.enqueue({type:"tool-input-end",id:M.id}),V.enqueue({type:"tool-call",toolCallId:(r=M.id)!=null?r:h(),toolName:M.function.name,input:M.function.arguments,...M.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:M.thoughtSignature}}}:{}}),M.hasFinished=!0}continue}let F=W[m];if(F.hasFinished)continue;if(((t=x.function)==null?void 0:t.arguments)!=null)F.function.arguments+=(o=(e=x.function)==null?void 0:e.arguments)!=null?o:"";if(V.enqueue({type:"tool-input-delta",id:F.id,delta:(GG=x.function.arguments)!=null?GG:""}),((QG=F.function)==null?void 0:QG.name)!=null&&((XG=F.function)==null?void 0:XG.arguments)!=null&&l(F.function.arguments))V.enqueue({type:"tool-input-end",id:F.id}),V.enqueue({type:"tool-call",toolCallId:(YG=F.id)!=null?YG:h(),toolName:F.function.name,input:F.function.arguments,...F.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:F.thoughtSignature}}}:{}}),F.hasFinished=!0}}},flush(E){var V,q,A,I,D;if(N)E.enqueue({type:"reasoning-end",id:"reasoning-0"});if(H)E.enqueue({type:"text-end",id:"txt-0"});for(let w of W.filter((y)=>!y.hasFinished))E.enqueue({type:"tool-input-end",id:w.id}),E.enqueue({type:"tool-call",toolCallId:(V=w.id)!=null?V:h(),toolName:w.function.name,input:w.function.arguments,...w.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:w.thoughtSignature}}}:{}});let P={[L]:{},...z==null?void 0:z.buildMetadata()};if(((q=J==null?void 0:J.completion_tokens_details)==null?void 0:q.accepted_prediction_tokens)!=null)P[L].acceptedPredictionTokens=(A=J==null?void 0:J.completion_tokens_details)==null?void 0:A.accepted_prediction_tokens;if(((I=J==null?void 0:J.completion_tokens_details)==null?void 0:I.rejected_prediction_tokens)!=null)P[L].rejectedPredictionTokens=(D=J==null?void 0:J.completion_tokens_details)==null?void 0:D.rejected_prediction_tokens;E.enqueue({type:"finish",finishReason:X,usage:$G(J),providerMetadata:P})}})),request:{body:U},response:{headers:j}}}},WG=G.looseObject({prompt_tokens:G.number().nullish(),completion_tokens:G.number().nullish(),total_tokens:G.number().nullish(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish(),accepted_prediction_tokens:G.number().nullish(),rejected_prediction_tokens:G.number().nullish()}).nullish()}).nullish(),qG=G.looseObject({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),reasoning:G.string().nullish(),tool_calls:G.array(G.object({id:G.string().nullish(),function:G.object({name:G.string(),arguments:G.string()}),extra_content:G.object({google:G.object({thought_signature:G.string().nullish()}).nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish()})),usage:WG}),wG=G.looseObject({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),reasoning:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}),extra_content:G.object({google:G.object({thought_signature:G.string().nullish()}).nullish()}).nullish()})).nullish()}).nullish(),finish_reason:G.string().nullish()})),usage:WG}),DG=(Q)=>G.union([wG,Q]);function jG(Q){var Y,Z;if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let $=(Y=Q.prompt_tokens)!=null?Y:0,U=(Z=Q.completion_tokens)!=null?Z:0;return{inputTokens:{total:$,noCache:$,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:U,text:U,reasoning:void 0},raw:Q}}function xG({prompt:Q,user:Y="user",assistant:Z="assistant"}){let $="";if(Q[0].role==="system")$+=`${Q[0].content}
2
+ import{Fe as T,He as VG,Je as c,Ne as h,Ye as l,Ze as R,_e as b,cf as f,df as i,ef as v}from"./chunk-kgsq240v.js";import{Ap as s,Fp as BG,Hp as S,zp as KG}from"./chunk-7v4fzkbb.js";import{ut as G}from"./chunk-ym4ydwrz.js";var EG=G.object({error:G.object({message:G.string(),type:G.string().nullish(),param:G.any().nullish(),code:G.union([G.string(),G.number()]).nullish()})}),n={errorSchema:EG,errorToMessage:(Q)=>Q.error.message};function $G(Q){var Y,Z,$,U,z,j;if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let K=(Y=Q.prompt_tokens)!=null?Y:0,W=(Z=Q.completion_tokens)!=null?Z:0,X=(U=($=Q.prompt_tokens_details)==null?void 0:$.cached_tokens)!=null?U:0,J=(j=(z=Q.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?j:0;return{inputTokens:{total:K,noCache:K-X,cacheRead:X,cacheWrite:void 0},outputTokens:{total:W,text:W-J,reasoning:J},raw:Q}}function C(Q){var Y,Z;return(Z=(Y=Q==null?void 0:Q.providerOptions)==null?void 0:Y.openaiCompatible)!=null?Z:{}}function HG(Q){switch(Q){case"audio/wav":return"wav";case"audio/mp3":case"audio/mpeg":return"mp3";default:return null}}function AG(Q){var Y,Z,$;let U=[];for(let{role:z,content:j,...K}of Q){let W=C({...K});switch(z){case"system":{U.push({role:"system",content:j,...W});break}case"user":{if(j.length===1&&j[0].type==="text"){U.push({role:"user",content:j[0].text,...C(j[0])});break}U.push({role:"user",content:j.map((X)=>{var J;let B=C(X);switch(X.type){case"text":return{type:"text",text:X.text,...B};case"file":{if(X.mediaType.startsWith("image/")){let L=X.mediaType==="image/*"?"image/jpeg":X.mediaType;return{type:"image_url",image_url:{url:X.data instanceof URL?X.data.toString():`data:${L};base64,${c(X.data)}`},...B}}if(X.mediaType.startsWith("audio/")){if(X.data instanceof URL)throw new S({functionality:"audio file parts with URLs"});let L=HG(X.mediaType);if(L===null)throw new S({functionality:`audio media type ${X.mediaType}`});return{type:"input_audio",input_audio:{data:c(X.data),format:L},...B}}if(X.mediaType==="application/pdf"){if(X.data instanceof URL)throw new S({functionality:"PDF file parts with URLs"});return{type:"file",file:{filename:(J=X.filename)!=null?J:"document.pdf",file_data:`data:application/pdf;base64,${c(X.data)}`},...B}}if(X.mediaType.startsWith("text/"))return{type:"text",text:X.data instanceof URL?X.data.toString():typeof X.data==="string"?new TextDecoder().decode(VG(X.data)):new TextDecoder().decode(X.data),...B};throw new S({functionality:`file part media type ${X.mediaType}`})}}}),...W});break}case"assistant":{let X="",J="",B=[];for(let L of j){let N=C(L);switch(L.type){case"text":{X+=L.text;break}case"reasoning":{J+=L.text;break}case"tool-call":{let H=(Z=(Y=L.providerOptions)==null?void 0:Y.google)==null?void 0:Z.thoughtSignature;B.push({id:L.toolCallId,type:"function",function:{name:L.toolName,arguments:JSON.stringify(L.input)},...N,...H?{extra_content:{google:{thought_signature:String(H)}}}:{}});break}}}U.push({role:"assistant",content:X,...J.length>0?{reasoning_content:J}:{},tool_calls:B.length>0?B:void 0,...W});break}case"tool":{for(let X of j){if(X.type==="tool-approval-response")continue;let J=X.output,B;switch(J.type){case"text":case"error-text":B=J.value;break;case"execution-denied":B=($=J.reason)!=null?$:"Tool execution denied.";break;case"content":case"json":case"error-json":B=JSON.stringify(J.value);break}let L=C(X);U.push({role:"tool",tool_call_id:X.toolCallId,content:B,...L})}break}default:throw Error(`Unsupported role: ${z}`)}}return U}function JG({id:Q,model:Y,created:Z}){return{id:Q!=null?Q:void 0,modelId:Y!=null?Y:void 0,timestamp:Z!=null?new Date(Z*1000):void 0}}function UG(Q){switch(Q){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var d=G.object({user:G.string().optional(),reasoningEffort:G.string().optional(),textVerbosity:G.string().optional(),strictJsonSchema:G.boolean().optional()});function PG({tools:Q,toolChoice:Y}){Q=(Q==null?void 0:Q.length)?Q:void 0;let Z=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Z};let $=[];for(let z of Q)if(z.type==="provider")Z.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else $.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Y==null)return{tools:$,toolChoice:void 0,toolWarnings:Z};let U=Y.type;switch(U){case"auto":case"none":case"required":return{tools:$,toolChoice:U,toolWarnings:Z};case"tool":return{tools:$,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:Z};default:throw new S({functionality:`tool choice type: ${U}`})}}var CG=class{constructor(Q,Y){this.specificationVersion="v3";var Z,$;this.modelId=Q,this.config=Y;let U=(Z=Y.errorStructure)!=null?Z:n;this.chunkSchema=DG(U.errorSchema),this.failedResponseHandler=f(U),this.supportsStructuredOutputs=($=Y.supportsStructuredOutputs)!=null?$:!1}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get supportedUrls(){var Q,Y,Z;return(Z=(Y=(Q=this.config).supportedUrls)==null?void 0:Y.call(Q))!=null?Z:{}}transformRequestBody(Q){var Y,Z,$;return($=(Z=(Y=this.config).transformRequestBody)==null?void 0:Z.call(Y,Q))!=null?$:Q}async getArgs({prompt:Q,maxOutputTokens:Y,temperature:Z,topP:$,topK:U,frequencyPenalty:z,presencePenalty:j,providerOptions:K,stopSequences:W,responseFormat:X,seed:J,toolChoice:B,tools:L}){var N,H,E,V,q;let A=[],I=await R({provider:"openai-compatible",providerOptions:K,schema:d});if(I!=null)A.push({type:"other",message:"The 'openai-compatible' key in providerOptions is deprecated. Use 'openaiCompatible' instead."});let D=Object.assign(I!=null?I:{},(N=await R({provider:"openaiCompatible",providerOptions:K,schema:d}))!=null?N:{},(H=await R({provider:this.providerOptionsName,providerOptions:K,schema:d}))!=null?H:{}),P=(E=D==null?void 0:D.strictJsonSchema)!=null?E:!0;if(U!=null)A.push({type:"unsupported",feature:"topK"});if((X==null?void 0:X.type)==="json"&&X.schema!=null&&!this.supportsStructuredOutputs)A.push({type:"unsupported",feature:"responseFormat",details:"JSON response format schema is only supported with structuredOutputs"});let{tools:w,toolChoice:y,toolWarnings:u}=PG({tools:L,toolChoice:B});return{args:{model:this.modelId,user:D.user,max_tokens:Y,temperature:Z,top_p:$,frequency_penalty:z,presence_penalty:j,response_format:(X==null?void 0:X.type)==="json"?this.supportsStructuredOutputs===!0&&X.schema!=null?{type:"json_schema",json_schema:{schema:X.schema,strict:P,name:(V=X.name)!=null?V:"response",description:X.description}}:{type:"json_object"}:void 0,stop:W,seed:J,...Object.fromEntries(Object.entries((q=K==null?void 0:K[this.providerOptionsName])!=null?q:{}).filter(([g])=>!Object.keys(d.shape).includes(g))),reasoning_effort:D.reasoningEffort,verbosity:D.textVerbosity,messages:AG(Q),tools:w,tool_choice:y},warnings:[...A,...u]}}async doGenerate(Q){var Y,Z,$,U,z,j,K,W;let{args:X,warnings:J}=await this.getArgs({...Q}),B=this.transformRequestBody(X),L=JSON.stringify(B),{responseHeaders:N,value:H,rawValue:E}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:B,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:v(qG),abortSignal:Q.abortSignal,fetch:this.config.fetch}),V=H.choices[0],q=[],A=V.message.content;if(A!=null&&A.length>0)q.push({type:"text",text:A});let I=(Y=V.message.reasoning_content)!=null?Y:V.message.reasoning;if(I!=null&&I.length>0)q.push({type:"reasoning",text:I});if(V.message.tool_calls!=null)for(let w of V.message.tool_calls){let y=($=(Z=w.extra_content)==null?void 0:Z.google)==null?void 0:$.thought_signature;q.push({type:"tool-call",toolCallId:(U=w.id)!=null?U:h(),toolName:w.function.name,input:w.function.arguments,...y?{providerMetadata:{[this.providerOptionsName]:{thoughtSignature:y}}}:{}})}let D={[this.providerOptionsName]:{},...await((j=(z=this.config.metadataExtractor)==null?void 0:z.extractMetadata)==null?void 0:j.call(z,{parsedBody:E}))},P=(K=H.usage)==null?void 0:K.completion_tokens_details;if((P==null?void 0:P.accepted_prediction_tokens)!=null)D[this.providerOptionsName].acceptedPredictionTokens=P==null?void 0:P.accepted_prediction_tokens;if((P==null?void 0:P.rejected_prediction_tokens)!=null)D[this.providerOptionsName].rejectedPredictionTokens=P==null?void 0:P.rejected_prediction_tokens;return{content:q,finishReason:{unified:UG(V.finish_reason),raw:(W=V.finish_reason)!=null?W:void 0},usage:$G(H.usage),providerMetadata:D,request:{body:L},response:{...JG(H),headers:N,body:E},warnings:J}}async doStream(Q){var Y;let{args:Z,warnings:$}=await this.getArgs({...Q}),U=this.transformRequestBody({...Z,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0}),z=(Y=this.config.metadataExtractor)==null?void 0:Y.createStreamExtractor(),{responseHeaders:j,value:K}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:U,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:i(this.chunkSchema),abortSignal:Q.abortSignal,fetch:this.config.fetch}),W=[],X={unified:"other",raw:void 0},J=void 0,B=!0,L=this.providerOptionsName,N=!1,H=!1;return{stream:K.pipeThrough(new TransformStream({start(E){E.enqueue({type:"stream-start",warnings:$})},transform(E,V){var q,A,I,D,P,w,y,u,g,a,r,t,e,o,GG,QG,XG,YG;if(Q.includeRawChunks)V.enqueue({type:"raw",rawValue:E.rawValue});if(!E.success){X={unified:"error",raw:void 0},V.enqueue({type:"error",error:E.error});return}if(z==null||z.processChunk(E.rawValue),"error"in E.value){X={unified:"error",raw:void 0},V.enqueue({type:"error",error:E.value.error.message});return}let _=E.value;if(B)B=!1,V.enqueue({type:"response-metadata",...JG(_)});if(_.usage!=null)J=_.usage;let O=_.choices[0];if((O==null?void 0:O.finish_reason)!=null)X={unified:UG(O.finish_reason),raw:(q=O.finish_reason)!=null?q:void 0};if((O==null?void 0:O.delta)==null)return;let k=O.delta,ZG=(A=k.reasoning_content)!=null?A:k.reasoning;if(ZG){if(!N)V.enqueue({type:"reasoning-start",id:"reasoning-0"}),N=!0;V.enqueue({type:"reasoning-delta",id:"reasoning-0",delta:ZG})}if(k.content){if(N)V.enqueue({type:"reasoning-end",id:"reasoning-0"}),N=!1;if(!H)V.enqueue({type:"text-start",id:"txt-0"}),H=!0;V.enqueue({type:"text-delta",id:"txt-0",delta:k.content})}if(k.tool_calls!=null){if(N)V.enqueue({type:"reasoning-end",id:"reasoning-0"}),N=!1;for(let x of k.tool_calls){let m=(I=x.index)!=null?I:W.length;if(W[m]==null){if(x.id==null)throw new s({data:x,message:"Expected 'id' to be a string."});if(((D=x.function)==null?void 0:D.name)==null)throw new s({data:x,message:"Expected 'function.name' to be a string."});V.enqueue({type:"tool-input-start",id:x.id,toolName:x.function.name}),W[m]={id:x.id,type:"function",function:{name:x.function.name,arguments:(P=x.function.arguments)!=null?P:""},hasFinished:!1,thoughtSignature:(u=(y=(w=x.extra_content)==null?void 0:w.google)==null?void 0:y.thought_signature)!=null?u:void 0};let M=W[m];if(((g=M.function)==null?void 0:g.name)!=null&&((a=M.function)==null?void 0:a.arguments)!=null){if(M.function.arguments.length>0)V.enqueue({type:"tool-input-delta",id:M.id,delta:M.function.arguments});if(l(M.function.arguments))V.enqueue({type:"tool-input-end",id:M.id}),V.enqueue({type:"tool-call",toolCallId:(r=M.id)!=null?r:h(),toolName:M.function.name,input:M.function.arguments,...M.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:M.thoughtSignature}}}:{}}),M.hasFinished=!0}continue}let F=W[m];if(F.hasFinished)continue;if(((t=x.function)==null?void 0:t.arguments)!=null)F.function.arguments+=(o=(e=x.function)==null?void 0:e.arguments)!=null?o:"";if(V.enqueue({type:"tool-input-delta",id:F.id,delta:(GG=x.function.arguments)!=null?GG:""}),((QG=F.function)==null?void 0:QG.name)!=null&&((XG=F.function)==null?void 0:XG.arguments)!=null&&l(F.function.arguments))V.enqueue({type:"tool-input-end",id:F.id}),V.enqueue({type:"tool-call",toolCallId:(YG=F.id)!=null?YG:h(),toolName:F.function.name,input:F.function.arguments,...F.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:F.thoughtSignature}}}:{}}),F.hasFinished=!0}}},flush(E){var V,q,A,I,D;if(N)E.enqueue({type:"reasoning-end",id:"reasoning-0"});if(H)E.enqueue({type:"text-end",id:"txt-0"});for(let w of W.filter((y)=>!y.hasFinished))E.enqueue({type:"tool-input-end",id:w.id}),E.enqueue({type:"tool-call",toolCallId:(V=w.id)!=null?V:h(),toolName:w.function.name,input:w.function.arguments,...w.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:w.thoughtSignature}}}:{}});let P={[L]:{},...z==null?void 0:z.buildMetadata()};if(((q=J==null?void 0:J.completion_tokens_details)==null?void 0:q.accepted_prediction_tokens)!=null)P[L].acceptedPredictionTokens=(A=J==null?void 0:J.completion_tokens_details)==null?void 0:A.accepted_prediction_tokens;if(((I=J==null?void 0:J.completion_tokens_details)==null?void 0:I.rejected_prediction_tokens)!=null)P[L].rejectedPredictionTokens=(D=J==null?void 0:J.completion_tokens_details)==null?void 0:D.rejected_prediction_tokens;E.enqueue({type:"finish",finishReason:X,usage:$G(J),providerMetadata:P})}})),request:{body:U},response:{headers:j}}}},WG=G.looseObject({prompt_tokens:G.number().nullish(),completion_tokens:G.number().nullish(),total_tokens:G.number().nullish(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish(),accepted_prediction_tokens:G.number().nullish(),rejected_prediction_tokens:G.number().nullish()}).nullish()}).nullish(),qG=G.looseObject({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),reasoning:G.string().nullish(),tool_calls:G.array(G.object({id:G.string().nullish(),function:G.object({name:G.string(),arguments:G.string()}),extra_content:G.object({google:G.object({thought_signature:G.string().nullish()}).nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish()})),usage:WG}),wG=G.looseObject({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),reasoning:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}),extra_content:G.object({google:G.object({thought_signature:G.string().nullish()}).nullish()}).nullish()})).nullish()}).nullish(),finish_reason:G.string().nullish()})),usage:WG}),DG=(Q)=>G.union([wG,Q]);function jG(Q){var Y,Z;if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let $=(Y=Q.prompt_tokens)!=null?Y:0,U=(Z=Q.completion_tokens)!=null?Z:0;return{inputTokens:{total:$,noCache:$,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:U,text:U,reasoning:void 0},raw:Q}}function xG({prompt:Q,user:Y="user",assistant:Z="assistant"}){let $="";if(Q[0].role==="system")$+=`${Q[0].content}
3
3
 
4
4
  `,Q=Q.slice(1);for(let{role:U,content:z}of Q)switch(U){case"system":throw new KG({message:"Unexpected system message in prompt: ${content}",prompt:Q});case"user":{let j=z.map((K)=>{switch(K.type){case"text":return K.text}}).filter(Boolean).join("");$+=`${Y}:
5
5
  ${j}
@@ -10,4 +10,4 @@ ${j}
10
10
  `;break}case"tool":throw new S({functionality:"tool messages"});default:throw Error(`Unsupported role: ${U}`)}return $+=`${Z}:
11
11
  `,{prompt:$,stopSequences:[`
12
12
  ${Y}:`]}}function LG({id:Q,model:Y,created:Z}){return{id:Q!=null?Q:void 0,modelId:Y!=null?Y:void 0,timestamp:Z!=null?new Date(Z*1000):void 0}}function zG(Q){switch(Q){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var IG=G.object({echo:G.boolean().optional(),logitBias:G.record(G.string(),G.number()).optional(),suffix:G.string().optional(),user:G.string().optional()}),mG=class{constructor(Q,Y){this.specificationVersion="v3";var Z;this.modelId=Q,this.config=Y;let $=(Z=Y.errorStructure)!=null?Z:n;this.chunkSchema=MG($.errorSchema),this.failedResponseHandler=f($)}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get supportedUrls(){var Q,Y,Z;return(Z=(Y=(Q=this.config).supportedUrls)==null?void 0:Y.call(Q))!=null?Z:{}}async getArgs({prompt:Q,maxOutputTokens:Y,temperature:Z,topP:$,topK:U,frequencyPenalty:z,presencePenalty:j,stopSequences:K,responseFormat:W,seed:X,providerOptions:J,tools:B,toolChoice:L}){var N;let H=[],E=(N=await R({provider:this.providerOptionsName,providerOptions:J,schema:IG}))!=null?N:{};if(U!=null)H.push({type:"unsupported",feature:"topK"});if(B==null?void 0:B.length)H.push({type:"unsupported",feature:"tools"});if(L!=null)H.push({type:"unsupported",feature:"toolChoice"});if(W!=null&&W.type!=="text")H.push({type:"unsupported",feature:"responseFormat",details:"JSON response format is not supported."});let{prompt:V,stopSequences:q}=xG({prompt:Q}),A=[...q!=null?q:[],...K!=null?K:[]];return{args:{model:this.modelId,echo:E.echo,logit_bias:E.logitBias,suffix:E.suffix,user:E.user,max_tokens:Y,temperature:Z,top_p:$,frequency_penalty:z,presence_penalty:j,seed:X,...J==null?void 0:J[this.providerOptionsName],prompt:V,stop:A.length>0?A:void 0},warnings:H}}async doGenerate(Q){let{args:Y,warnings:Z}=await this.getArgs(Q),{responseHeaders:$,value:U,rawValue:z}=await b({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:Y,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:v(FG),abortSignal:Q.abortSignal,fetch:this.config.fetch}),j=U.choices[0],K=[];if(j.text!=null&&j.text.length>0)K.push({type:"text",text:j.text});return{content:K,usage:jG(U.usage),finishReason:{unified:zG(j.finish_reason),raw:j.finish_reason},request:{body:Y},response:{...LG(U),headers:$,body:z},warnings:Z}}async doStream(Q){let{args:Y,warnings:Z}=await this.getArgs(Q),$={...Y,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0},{responseHeaders:U,value:z}=await b({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:$,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:i(this.chunkSchema),abortSignal:Q.abortSignal,fetch:this.config.fetch}),j={unified:"other",raw:void 0},K=void 0,W=!0;return{stream:z.pipeThrough(new TransformStream({start(X){X.enqueue({type:"stream-start",warnings:Z})},transform(X,J){var B;if(Q.includeRawChunks)J.enqueue({type:"raw",rawValue:X.rawValue});if(!X.success){j={unified:"error",raw:void 0},J.enqueue({type:"error",error:X.error});return}let L=X.value;if("error"in L){j={unified:"error",raw:void 0},J.enqueue({type:"error",error:L.error});return}if(W)W=!1,J.enqueue({type:"response-metadata",...LG(L)}),J.enqueue({type:"text-start",id:"0"});if(L.usage!=null)K=L.usage;let N=L.choices[0];if((N==null?void 0:N.finish_reason)!=null)j={unified:zG(N.finish_reason),raw:(B=N.finish_reason)!=null?B:void 0};if((N==null?void 0:N.text)!=null)J.enqueue({type:"text-delta",id:"0",delta:N.text})},flush(X){if(!W)X.enqueue({type:"text-end",id:"0"});X.enqueue({type:"finish",finishReason:j,usage:jG(K)})}})),request:{body:$},response:{headers:U}}}},NG=G.object({prompt_tokens:G.number(),completion_tokens:G.number(),total_tokens:G.number()}),FG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({text:G.string(),finish_reason:G.string()})),usage:NG.nullish()}),MG=(Q)=>G.union([G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({text:G.string(),finish_reason:G.string().nullish(),index:G.number()})),usage:NG.nullish()}),Q]),p=G.object({dimensions:G.number().optional(),user:G.string().optional()}),sG=class{constructor(Q,Y){this.specificationVersion="v3",this.modelId=Q,this.config=Y}get provider(){return this.config.provider}get maxEmbeddingsPerCall(){var Q;return(Q=this.config.maxEmbeddingsPerCall)!=null?Q:2048}get supportsParallelCalls(){var Q;return(Q=this.config.supportsParallelCalls)!=null?Q:!0}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}async doEmbed({values:Q,headers:Y,abortSignal:Z,providerOptions:$}){var U,z,j;let K=[],W=await R({provider:"openai-compatible",providerOptions:$,schema:p});if(W!=null)K.push({type:"other",message:"The 'openai-compatible' key in providerOptions is deprecated. Use 'openaiCompatible' instead."});let X=Object.assign(W!=null?W:{},(U=await R({provider:"openaiCompatible",providerOptions:$,schema:p}))!=null?U:{},(z=await R({provider:this.providerOptionsName,providerOptions:$,schema:p}))!=null?z:{});if(Q.length>this.maxEmbeddingsPerCall)throw new BG({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:Q});let{responseHeaders:J,value:B,rawValue:L}=await b({url:this.config.url({path:"/embeddings",modelId:this.modelId}),headers:T(this.config.headers(),Y),body:{model:this.modelId,input:Q,encoding_format:"float",dimensions:X.dimensions,user:X.user},failedResponseHandler:f((j=this.config.errorStructure)!=null?j:n),successfulResponseHandler:v(SG),abortSignal:Z,fetch:this.config.fetch});return{warnings:K,embeddings:B.data.map((N)=>N.embedding),usage:B.usage?{tokens:B.usage.prompt_tokens}:void 0,providerMetadata:B.providerMetadata,response:{headers:J,body:L}}}},SG=G.object({data:G.array(G.object({embedding:G.array(G.number())})),usage:G.object({prompt_tokens:G.number()}).nullish(),providerMetadata:G.record(G.string(),G.record(G.string(),G.any())).optional()});var nG=G.object({data:G.array(G.object({b64_json:G.string()}))});
13
- export{CG as Be,mG as Ce,sG as De};
13
+ export{CG as Ce,mG as De,sG as Ee};