@qitqode/qitqode-android-arm64 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/bundle/{chunk-ztyy3ga3.js → chunk-01e3v1xz.js} +2 -2
  2. package/bundle/{chunk-p54bzjtv.js → chunk-060wbpz4.js} +1 -1
  3. package/bundle/{chunk-ypdt9mmr.js → chunk-0am156m5.js} +2 -2
  4. package/bundle/{chunk-xhtcegk0.js → chunk-0bgssfvq.js} +1 -1
  5. package/bundle/{chunk-dnnkq5y4.js → chunk-0crgymtr.js} +2 -2
  6. package/bundle/chunk-0dzpjk7x.js +2 -0
  7. package/bundle/{chunk-bwbqkfv0.js → chunk-0ffmwhw7.js} +1 -1
  8. package/bundle/{chunk-h62chdmw.js → chunk-0g0jpw0z.js} +1 -1
  9. package/bundle/{chunk-mn9end71.js → chunk-0ggvqmnm.js} +1 -1
  10. package/bundle/{chunk-y7hgevfv.js → chunk-0gsw04hw.js} +2 -2
  11. package/bundle/{chunk-tkrwcjkr.js → chunk-0qpqd7nz.js} +2 -2
  12. package/bundle/{chunk-nty5z2cj.js → chunk-0tqmm8b8.js} +1 -1
  13. package/bundle/chunk-12fwmmcp.js +2 -0
  14. package/bundle/{chunk-bch1rj72.js → chunk-14d301ze.js} +1 -1
  15. package/bundle/{chunk-3cqrz7g1.js → chunk-16srrzjr.js} +1 -1
  16. package/bundle/{chunk-45a4n21f.js → chunk-19pspc1p.js} +1 -1
  17. package/bundle/chunk-1a95ysv3.js +2 -0
  18. package/bundle/chunk-1akh8pk2.js +2 -0
  19. package/bundle/{chunk-5tky3csh.js → chunk-1ay97v74.js} +1 -1
  20. package/bundle/{chunk-6ar91jvd.js → chunk-1c0yp2gv.js} +1 -1
  21. package/bundle/{chunk-2md6sx8d.js → chunk-1rgt2vmt.js} +1 -1
  22. package/bundle/{chunk-3kpse7zy.js → chunk-1vpx7szf.js} +1 -1
  23. package/bundle/chunk-22qetqnp.js +2 -0
  24. package/bundle/{chunk-tm34qp8j.js → chunk-2bjfz4fb.js} +1 -1
  25. package/bundle/{chunk-jxwey5py.js → chunk-2c26kxp4.js} +5 -5
  26. package/bundle/{chunk-xe69cnsk.js → chunk-2c41dncf.js} +1 -1
  27. package/bundle/{chunk-m7v4ky0y.js → chunk-2cjfezfr.js} +1 -1
  28. package/bundle/chunk-2d2a92kj.js +2 -0
  29. package/bundle/{chunk-m5dm7a1t.js → chunk-2pex3ak9.js} +1 -1
  30. package/bundle/chunk-2qrvkef8.js +2 -0
  31. package/bundle/chunk-2tppw8j9.js +2 -0
  32. package/bundle/chunk-2y87m7pe.js +2 -0
  33. package/bundle/{chunk-sfw5qddj.js → chunk-33jcxsbe.js} +1 -1
  34. package/bundle/{chunk-d0x5pbkm.js → chunk-3623jvcm.js} +1 -1
  35. package/bundle/{chunk-953pqp3w.js → chunk-368jx5dp.js} +1 -1
  36. package/bundle/chunk-3ft1dn9j.js +2 -0
  37. package/bundle/{chunk-rn83r0js.js → chunk-3k7016c2.js} +1 -1
  38. package/bundle/chunk-3rgct4bd.js +11 -0
  39. package/bundle/{chunk-68v3b6ns.js → chunk-3xdmxm5t.js} +2 -2
  40. package/bundle/{chunk-dt5aae7t.js → chunk-42q8vj0w.js} +1 -1
  41. package/bundle/{chunk-yhj01dz9.js → chunk-438faz6b.js} +2 -2
  42. package/bundle/chunk-4656qm05.js +2 -0
  43. package/bundle/chunk-46knch5z.js +2 -0
  44. package/bundle/{chunk-n23d0q00.js → chunk-4bewbvvr.js} +1 -1
  45. package/bundle/{chunk-pmg53fdd.js → chunk-4byvnx78.js} +1 -1
  46. package/bundle/chunk-4ftjx7ss.js +2 -0
  47. package/bundle/{chunk-jqk3v8d6.js → chunk-4fvbexr8.js} +1 -1
  48. package/bundle/{chunk-k1nh5sd2.js → chunk-4fy08jcj.js} +1 -1
  49. package/bundle/{chunk-0smnwqk6.js → chunk-4j76bf4j.js} +2 -2
  50. package/bundle/{chunk-5nrc5rhh.js → chunk-4jpab7ag.js} +1 -1
  51. package/bundle/{chunk-0j5rzaxx.js → chunk-4ngmjk8j.js} +2 -2
  52. package/bundle/{chunk-vnrjk2be.js → chunk-4rpgwgx9.js} +1 -1
  53. package/bundle/chunk-4sgy87h5.js +2 -0
  54. package/bundle/{chunk-65bmsp2t.js → chunk-4vzjdmts.js} +1 -1
  55. package/bundle/{chunk-zc0cdvcv.js → chunk-4zhrg3rv.js} +2 -2
  56. package/bundle/{chunk-5pzs51sp.js → chunk-52rdms56.js} +1 -1
  57. package/bundle/chunk-54hktc8h.js +2 -0
  58. package/bundle/{chunk-smznrv7k.js → chunk-55way0em.js} +1 -1
  59. package/bundle/{chunk-k4gsktts.js → chunk-59kk0mce.js} +1 -1
  60. package/bundle/chunk-59m55866.js +2 -0
  61. package/bundle/{chunk-a9a0cwmf.js → chunk-5b3v1x2c.js} +2 -2
  62. package/bundle/chunk-5js5nw7r.js +2 -0
  63. package/bundle/{chunk-5gsdnejs.js → chunk-5nhwqg7c.js} +1 -1
  64. package/bundle/{chunk-13rsd5vv.js → chunk-5r05d901.js} +3 -3
  65. package/bundle/{chunk-avefgbjg.js → chunk-5zh91zk2.js} +2 -2
  66. package/bundle/chunk-61jn7908.js +2 -0
  67. package/bundle/chunk-61txdqz1.js +2 -0
  68. package/bundle/chunk-668g9wkg.js +2 -0
  69. package/bundle/chunk-6frhjpmt.js +2 -0
  70. package/bundle/{chunk-920z7g7j.js → chunk-6gqs1k7m.js} +1 -1
  71. package/bundle/chunk-6k14c8x1.js +5 -0
  72. package/bundle/{chunk-g42krp0z.js → chunk-6nxebcf8.js} +1 -1
  73. package/bundle/chunk-6r1jpj0h.js +2 -0
  74. package/bundle/{chunk-7bcm7gg1.js → chunk-6r48fje7.js} +1 -1
  75. package/bundle/{chunk-bqn6bqws.js → chunk-6ychs4wx.js} +1 -1
  76. package/bundle/{chunk-21rq4592.js → chunk-705xnxbc.js} +2 -2
  77. package/bundle/chunk-73fn4dqd.js +2 -0
  78. package/bundle/{chunk-2b3fn9xv.js → chunk-73xryfgn.js} +2 -2
  79. package/bundle/{chunk-ct693qsd.js → chunk-76h0f86f.js} +1 -1
  80. package/bundle/{chunk-cq9sd32h.js → chunk-77h8tytk.js} +1 -1
  81. package/bundle/chunk-78j2c2je.js +2 -0
  82. package/bundle/chunk-78jt24ht.js +2 -0
  83. package/bundle/chunk-7j2vpavd.js +2 -0
  84. package/bundle/chunk-7nkxgm72.js +2 -0
  85. package/bundle/{chunk-f31yvp20.js → chunk-7p6mxch0.js} +1 -1
  86. package/bundle/{chunk-mhhtf0v3.js → chunk-7sq5dyv1.js} +1 -1
  87. package/bundle/{chunk-804vmbcd.js → chunk-7x2q1w0f.js} +1 -1
  88. package/bundle/{chunk-ac7482n2.js → chunk-7z96r2px.js} +2 -2
  89. package/bundle/chunk-84pjdenq.js +2 -0
  90. package/bundle/chunk-859pkecc.js +2 -0
  91. package/bundle/{chunk-y0527cg0.js → chunk-8hmt3avx.js} +1 -1
  92. package/bundle/{chunk-7ayb3k5p.js → chunk-8jvfqh3b.js} +1 -1
  93. package/bundle/{chunk-8wwdrwf2.js → chunk-8p0t8qah.js} +1 -1
  94. package/bundle/chunk-8p249svd.js +2 -0
  95. package/bundle/{chunk-z1932c3f.js → chunk-8rfqv5he.js} +1 -1
  96. package/bundle/chunk-8rqbx4jw.js +2 -0
  97. package/bundle/chunk-8s3krfsm.js +2 -0
  98. package/bundle/{chunk-pb30kkbs.js → chunk-93pmbdz7.js} +6 -6
  99. package/bundle/{chunk-vcygx6hs.js → chunk-95am490c.js} +2 -2
  100. package/bundle/{chunk-52frd9p0.js → chunk-9a6p1gdn.js} +8 -8
  101. package/bundle/chunk-9aafddkw.js +3 -0
  102. package/bundle/{chunk-0xrb12s8.js → chunk-9g9katgy.js} +2 -2
  103. package/bundle/{chunk-24rkf2gk.js → chunk-9qzwmt76.js} +1 -1
  104. package/bundle/chunk-9sv53kb4.js +2 -0
  105. package/bundle/chunk-9wbe0dkx.js +2 -0
  106. package/bundle/{chunk-bne5w117.js → chunk-9xxnwb33.js} +4 -4
  107. package/bundle/{chunk-fjbv3jht.js → chunk-a610qd3x.js} +1 -1
  108. package/bundle/{chunk-5c2438af.js → chunk-a76w2jwm.js} +1 -1
  109. package/bundle/{chunk-at22twxx.js → chunk-aa2n02qk.js} +2 -2
  110. package/bundle/{chunk-3akv2xqh.js → chunk-abv0fskc.js} +1 -1
  111. package/bundle/{chunk-7g66qc1v.js → chunk-acd72413.js} +2 -2
  112. package/bundle/{chunk-wkg3c643.js → chunk-ae7b11np.js} +2 -2
  113. package/bundle/{chunk-gy21fw82.js → chunk-agqss9ga.js} +2 -2
  114. package/bundle/chunk-aj5z8qd5.js +2 -0
  115. package/bundle/{chunk-fxx0z4yb.js → chunk-ajp53ksp.js} +1 -1
  116. package/bundle/{chunk-j164q40b.js → chunk-amp6mvbp.js} +2 -2
  117. package/bundle/{chunk-44723rmb.js → chunk-aqcpk2vg.js} +1 -1
  118. package/bundle/chunk-b0c2mvc0.js +2 -0
  119. package/bundle/{chunk-pxv12ctq.js → chunk-b6eypnbj.js} +1 -1
  120. package/bundle/chunk-b79z8f94.js +2 -0
  121. package/bundle/chunk-bbwcsdy9.js +2 -0
  122. package/bundle/chunk-bbzjdbb9.js +2 -0
  123. package/bundle/{chunk-6evh2ke8.js → chunk-bd505nsd.js} +1 -1
  124. package/bundle/{chunk-p4027t94.js → chunk-bd84t3fb.js} +1 -1
  125. package/bundle/chunk-bh4s1yct.js +2 -0
  126. package/bundle/{chunk-rrv0n73b.js → chunk-bk7f59fn.js} +1 -1
  127. package/bundle/{chunk-venprxdp.js → chunk-bn71wqqf.js} +1 -1
  128. package/bundle/{chunk-j9h1sp4g.js → chunk-c3szabpf.js} +2 -2
  129. package/bundle/{chunk-z6sbjvtv.js → chunk-c6cajbyj.js} +1 -1
  130. package/bundle/{chunk-p6crzjtf.js → chunk-c8prg3jx.js} +2 -2
  131. package/bundle/chunk-crqcppwq.js +2 -0
  132. package/bundle/{chunk-t239rvej.js → chunk-cth373se.js} +2 -2
  133. package/bundle/chunk-d09zpgj1.js +2 -0
  134. package/bundle/{chunk-np12r26m.js → chunk-d1tb1jd0.js} +1 -1
  135. package/bundle/{chunk-mmjgf680.js → chunk-dbpkq7ba.js} +2 -2
  136. package/bundle/{chunk-36xm6mgm.js → chunk-dd4qnh8s.js} +2 -2
  137. package/bundle/{chunk-p169ee92.js → chunk-defj5zs6.js} +1 -1
  138. package/bundle/chunk-dexcptaz.js +3 -0
  139. package/bundle/chunk-dgqkak21.js +2 -0
  140. package/bundle/{chunk-jww55nk9.js → chunk-dgva3y5v.js} +1 -1
  141. package/bundle/chunk-dhgvh7c3.js +2 -0
  142. package/bundle/{chunk-c55f729m.js → chunk-djqxbnwc.js} +2 -2
  143. package/bundle/chunk-dmd101ja.js +2 -0
  144. package/bundle/{chunk-vygkwwjd.js → chunk-drnj1a14.js} +2 -2
  145. package/bundle/{chunk-g3wvtyw3.js → chunk-dt1wwt7m.js} +1 -1
  146. package/bundle/{chunk-cz5vta94.js → chunk-dw70wds9.js} +1 -1
  147. package/bundle/{chunk-xdd3553a.js → chunk-dw7yrk1g.js} +1 -1
  148. package/bundle/chunk-dwb39jdf.js +2 -0
  149. package/bundle/chunk-dx4zxex7.js +2 -0
  150. package/bundle/{chunk-ph8hn1wt.js → chunk-dy2k5rdx.js} +2 -2
  151. package/bundle/{chunk-wwdpw27v.js → chunk-dz3bec8g.js} +1 -1
  152. package/bundle/{chunk-t0761rhq.js → chunk-e0zb6sw6.js} +2 -2
  153. package/bundle/chunk-e2pqvscp.js +2 -0
  154. package/bundle/{chunk-vsz4s6zt.js → chunk-e4g4mvak.js} +1 -1
  155. package/bundle/{chunk-fhqfqd5v.js → chunk-eeq0krp7.js} +2 -2
  156. package/bundle/chunk-efe6kj3d.js +2 -0
  157. package/bundle/{chunk-qp1n7kwe.js → chunk-egkhynj5.js} +1 -1
  158. package/bundle/chunk-emac0dss.js +2 -0
  159. package/bundle/chunk-encfnt6w.js +2 -0
  160. package/bundle/{chunk-y29ejqg2.js → chunk-etv6c77a.js} +1 -1
  161. package/bundle/{chunk-32j0q58h.js → chunk-eyr5ymt8.js} +1 -1
  162. package/bundle/{chunk-r9w0thdk.js → chunk-f2pv705d.js} +1 -1
  163. package/bundle/{chunk-5w76kdjr.js → chunk-f4mnp6xd.js} +1 -1
  164. package/bundle/{chunk-xdteq9bd.js → chunk-f84hw65n.js} +1 -1
  165. package/bundle/chunk-fg2nyz2x.js +2 -0
  166. package/bundle/chunk-ga6wc979.js +2 -0
  167. package/bundle/{chunk-nw3e93y8.js → chunk-gbxf6e5d.js} +3 -3
  168. package/bundle/chunk-gdew7bwm.js +2 -0
  169. package/bundle/{chunk-w9gzfsy7.js → chunk-gdj7mqrd.js} +2 -2
  170. package/bundle/chunk-ge19ff9d.js +2 -0
  171. package/bundle/{chunk-wmezdcdh.js → chunk-ghap1n1m.js} +4 -4
  172. package/bundle/chunk-gt0q07xq.js +2 -0
  173. package/bundle/{chunk-7mppvhv9.js → chunk-gwrnxcdn.js} +2 -2
  174. package/bundle/{chunk-e8p92vz4.js → chunk-gww0skmn.js} +2 -2
  175. package/bundle/chunk-h4dnjfr2.js +2 -0
  176. package/bundle/{chunk-has2rz35.js → chunk-h7658zxy.js} +1 -1
  177. package/bundle/chunk-h8fx619t.js +2 -0
  178. package/bundle/{chunk-313zqzc1.js → chunk-hfefq104.js} +1 -1
  179. package/bundle/{chunk-ff548b0j.js → chunk-hhk2sp5n.js} +2 -2
  180. package/bundle/{chunk-47k5jy1p.js → chunk-hqjc4wgg.js} +2 -2
  181. package/bundle/{chunk-48r70n4s.js → chunk-hrtze4c5.js} +1 -1
  182. package/bundle/{chunk-r5zy4za0.js → chunk-hwsqqkrv.js} +2 -2
  183. package/bundle/{chunk-ehb4hd9c.js → chunk-j6xmgn63.js} +1 -1
  184. package/bundle/chunk-jnvb3s7f.js +2 -0
  185. package/bundle/chunk-jrq2xw6e.js +2 -0
  186. package/bundle/chunk-jwckmhjm.js +2 -0
  187. package/bundle/{chunk-xqnzmr7a.js → chunk-jxkrhrp0.js} +2 -2
  188. package/bundle/chunk-jz27ypm5.js +2 -0
  189. package/bundle/chunk-jzrs878d.js +2 -0
  190. package/bundle/chunk-jzx700tb.js +2 -0
  191. package/bundle/chunk-k1x8469r.js +3 -0
  192. package/bundle/{chunk-0g7acwt1.js → chunk-k3g28tbw.js} +1 -1
  193. package/bundle/{chunk-wy3a4cab.js → chunk-k6zwfstj.js} +1 -1
  194. package/bundle/{chunk-0qd3567w.js → chunk-kfj37631.js} +1 -1
  195. package/bundle/{chunk-khzzmyk2.js → chunk-kmzpeq8k.js} +1 -1
  196. package/bundle/{chunk-bd21p9zz.js → chunk-kre93a89.js} +2 -2
  197. package/bundle/{chunk-j8fcfhr2.js → chunk-kry4vcrf.js} +2 -2
  198. package/bundle/chunk-ktp2b4t4.js +2 -0
  199. package/bundle/chunk-m483jvn8.js +2 -0
  200. package/bundle/chunk-makecdh6.js +8 -0
  201. package/bundle/{chunk-tr6rdr6h.js → chunk-mbbxedsq.js} +2 -2
  202. package/bundle/chunk-menbcmkq.js +2 -0
  203. package/bundle/{chunk-hwrrrbqd.js → chunk-mghnkwp8.js} +1 -1
  204. package/bundle/{chunk-pr7z5dj8.js → chunk-mhxyv9c8.js} +1 -1
  205. package/bundle/{chunk-k5q9px67.js → chunk-mjrqhbp2.js} +1 -1
  206. package/bundle/{chunk-9zm6r55d.js → chunk-msh249db.js} +2 -2
  207. package/bundle/{chunk-bbdp6dj4.js → chunk-n0g4983e.js} +1 -1
  208. package/bundle/{chunk-dnsh1v42.js → chunk-n4qxj391.js} +2 -2
  209. package/bundle/{chunk-ptqk1j2r.js → chunk-n5p7cn4w.js} +1 -1
  210. package/bundle/{chunk-5zkj5xv9.js → chunk-n9twhc5d.js} +2 -2
  211. package/bundle/{chunk-p5be5ddp.js → chunk-na1wr2qf.js} +1 -1
  212. package/bundle/{chunk-4agaj51z.js → chunk-nbckdba0.js} +1 -1
  213. package/bundle/{chunk-ezrqhqkp.js → chunk-nftbj8g9.js} +1 -1
  214. package/bundle/{chunk-93gdcrbc.js → chunk-nfzpegqx.js} +1 -1
  215. package/bundle/chunk-np8h66t0.js +2 -0
  216. package/bundle/{chunk-af81r4v7.js → chunk-npzx3yd5.js} +1 -1
  217. package/bundle/chunk-nr2j8ytn.js +3 -0
  218. package/bundle/{chunk-w46g7kdq.js → chunk-nrk29616.js} +2 -2
  219. package/bundle/{chunk-826r9svy.js → chunk-ns8xnkjb.js} +2 -2
  220. package/bundle/{chunk-7vmx8bg9.js → chunk-ntpn0w9m.js} +2 -2
  221. package/bundle/chunk-nwwmns3w.js +2 -0
  222. package/bundle/{chunk-ksme3gj1.js → chunk-p40z6510.js} +1 -1
  223. package/bundle/{chunk-xmb8jy13.js → chunk-p847g35y.js} +1 -1
  224. package/bundle/{chunk-vf492zs6.js → chunk-p8ak162p.js} +1 -1
  225. package/bundle/chunk-pe5dpzec.js +2 -0
  226. package/bundle/{chunk-bbng1cea.js → chunk-pf3nqf00.js} +1 -1
  227. package/bundle/{chunk-9hz56z6a.js → chunk-ppy0jy6j.js} +1 -1
  228. package/bundle/{chunk-et3804wr.js → chunk-prbxhnza.js} +1 -1
  229. package/bundle/{chunk-nrat6ncm.js → chunk-ptwex14s.js} +1 -1
  230. package/bundle/{chunk-qey1efpx.js → chunk-q3pt4p9f.js} +1 -1
  231. package/bundle/{chunk-eb4y8bjv.js → chunk-q6mcnq9p.js} +1 -1
  232. package/bundle/{chunk-vp9scf28.js → chunk-q6p92zyn.js} +2 -2
  233. package/bundle/{chunk-yfzyzsr4.js → chunk-q87fw8dk.js} +2 -2
  234. package/bundle/chunk-q8f6a074.js +2 -0
  235. package/bundle/{chunk-5qsr1q4t.js → chunk-qbrj9wzd.js} +1 -1
  236. package/bundle/{chunk-j0bwa5dk.js → chunk-qdvnscxm.js} +2 -2
  237. package/bundle/{chunk-d6jhs818.js → chunk-qp3hxqg5.js} +2 -2
  238. package/bundle/{chunk-jg1ccs3j.js → chunk-qph2c2v7.js} +1 -1
  239. package/bundle/{chunk-3vvd7j14.js → chunk-qprbef09.js} +1 -1
  240. package/bundle/chunk-qqaevt32.js +2 -0
  241. package/bundle/chunk-qzpvz708.js +2 -0
  242. package/bundle/{chunk-41cq88js.js → chunk-r4kg0z96.js} +2 -2
  243. package/bundle/{chunk-faee8zgc.js → chunk-r73e8gsp.js} +1 -1
  244. package/bundle/chunk-reyjr2e0.js +2 -0
  245. package/bundle/{chunk-dxdggn90.js → chunk-rfzra502.js} +1 -1
  246. package/bundle/{chunk-tg226j37.js → chunk-rhrcgvb8.js} +1 -1
  247. package/bundle/{chunk-wyj8cpx5.js → chunk-rk0fnvp5.js} +1 -1
  248. package/bundle/{chunk-t8c4cs6z.js → chunk-rqedtjz9.js} +1 -1
  249. package/bundle/{chunk-eg3syjtv.js → chunk-s06t769q.js} +2 -2
  250. package/bundle/{chunk-cfjjx3sh.js → chunk-skxg3s8z.js} +1 -1
  251. package/bundle/{chunk-7x6yrtzn.js → chunk-spzd8rev.js} +1 -1
  252. package/bundle/chunk-t178njgb.js +2 -0
  253. package/bundle/{chunk-3jf3jhrs.js → chunk-t4b2fm7z.js} +1 -1
  254. package/bundle/{chunk-55fcmswd.js → chunk-t8sy5sgx.js} +2 -2
  255. package/bundle/{chunk-s4vx9x1v.js → chunk-t9qyzzsz.js} +1 -1
  256. package/bundle/{chunk-6scf311w.js → chunk-tc9xbn1t.js} +1 -1
  257. package/bundle/{chunk-qnvsqnz5.js → chunk-tezrgfc6.js} +2 -2
  258. package/bundle/chunk-tjpev5t6.js +2 -0
  259. package/bundle/{chunk-nymf08b4.js → chunk-tkzctbxq.js} +2 -2
  260. package/bundle/{chunk-t5xxs5kp.js → chunk-ts2k13g0.js} +1 -1
  261. package/bundle/{chunk-gszvgz76.js → chunk-twd6r7nf.js} +2 -2
  262. package/bundle/{chunk-qxcyz5hc.js → chunk-twfvrafb.js} +2 -2
  263. package/bundle/{chunk-70q8qcb2.js → chunk-twvmjsxf.js} +1 -1
  264. package/bundle/{chunk-ggxzf22k.js → chunk-tz3s8dvy.js} +1 -1
  265. package/bundle/chunk-tzq7wjgv.js +3 -0
  266. package/bundle/{chunk-n78f8hfk.js → chunk-v0c3k797.js} +1 -1
  267. package/bundle/chunk-v1s16wwd.js +2 -0
  268. package/bundle/{chunk-kj8cmn7z.js → chunk-v3nmnm57.js} +2 -2
  269. package/bundle/chunk-v6b29nx4.js +2 -0
  270. package/bundle/chunk-v6rgd1j5.js +2 -0
  271. package/bundle/chunk-v9dnetq8.js +2 -0
  272. package/bundle/{chunk-450fef7h.js → chunk-v9w88wpy.js} +2 -2
  273. package/bundle/{chunk-7hvf9dgx.js → chunk-va2qfh0x.js} +1 -1
  274. package/bundle/chunk-vd5mpvcc.js +2 -0
  275. package/bundle/{chunk-w4synhfg.js → chunk-vfb72vdy.js} +1 -1
  276. package/bundle/{chunk-45k7qm85.js → chunk-vhzx5bxd.js} +1 -1
  277. package/bundle/{chunk-cmb62jkt.js → chunk-vjn54xj5.js} +2 -2
  278. package/bundle/{chunk-ybane1en.js → chunk-vp3yf46q.js} +1 -1
  279. package/bundle/{chunk-jyt2xvha.js → chunk-vzrc2fmt.js} +1 -1
  280. package/bundle/{chunk-ejqzcdcx.js → chunk-w3zhy5vq.js} +1 -1
  281. package/bundle/{chunk-v3nqkqhz.js → chunk-w43kmnm9.js} +641 -635
  282. package/bundle/{chunk-w4brava0.js → chunk-wb1d3mqw.js} +1 -1
  283. package/bundle/{chunk-6m9jb0s9.js → chunk-wd8hbven.js} +2 -2
  284. package/bundle/{chunk-vshycswk.js → chunk-wgt1tqw9.js} +1 -1
  285. package/bundle/{chunk-0428v6mw.js → chunk-whw18cn9.js} +1 -1
  286. package/bundle/{chunk-pxm4qvqk.js → chunk-wjz42325.js} +2 -2
  287. package/bundle/{chunk-y67kaj0b.js → chunk-wvb17w0z.js} +1 -1
  288. package/bundle/chunk-wwct4z7j.js +2 -0
  289. package/bundle/{chunk-55ykn8nz.js → chunk-x55h5qdc.js} +4 -4
  290. package/bundle/{chunk-05ck7acg.js → chunk-x80d0zh7.js} +1 -1
  291. package/bundle/{chunk-mjjaezwq.js → chunk-x9fyt3vx.js} +2 -2
  292. package/bundle/{chunk-g22e4gw7.js → chunk-xb3sxa6f.js} +1 -1
  293. package/bundle/{chunk-yz25607t.js → chunk-xcxqt8ag.js} +1 -1
  294. package/bundle/{chunk-c36p881g.js → chunk-xhh70g8j.js} +3 -3
  295. package/bundle/chunk-xr9wz961.js +2 -0
  296. package/bundle/{chunk-0cnwsf8p.js → chunk-y0h3jfkj.js} +1 -1
  297. package/bundle/{chunk-m7ganre7.js → chunk-y2t5pmqw.js} +1 -1
  298. package/bundle/{chunk-g3y5xemb.js → chunk-y5q9v80n.js} +1 -1
  299. package/bundle/{chunk-kdj7xvz7.js → chunk-yd94wz5v.js} +2 -2
  300. package/bundle/{chunk-rn043d0r.js → chunk-yjqww6ag.js} +2 -2
  301. package/bundle/{chunk-2drzgtv3.js → chunk-yxttz5z5.js} +2 -2
  302. package/bundle/{chunk-2nv1scj9.js → chunk-yy7r3t3w.js} +2 -2
  303. package/bundle/{chunk-5pwv2p3s.js → chunk-yzpc5kj2.js} +1 -1
  304. package/bundle/{chunk-73r8bjjz.js → chunk-z6kcnpsj.js} +2 -2
  305. package/bundle/{chunk-nj1ntakd.js → chunk-z744mz4w.js} +2 -2
  306. package/bundle/{chunk-39z96pc6.js → chunk-z7kswv9r.js} +3 -3
  307. package/bundle/chunk-zfegnt1e.js +2 -0
  308. package/bundle/chunk-zg7kesbp.js +2 -0
  309. package/bundle/{chunk-t9pwz4ws.js → chunk-znmbfx70.js} +1 -1
  310. package/bundle/{chunk-24ygjbpf.js → chunk-zp5sr5nx.js} +2 -2
  311. package/bundle/{chunk-ha1w0xzh.js → chunk-zrhw1szj.js} +1 -1
  312. package/bundle/chunk-zy06fe4r.js +2 -0
  313. package/bundle/index.js +3 -3
  314. package/bundle/parser.worker.js +2 -2
  315. package/bundle/worker.js +1 -1
  316. package/package.json +1 -1
  317. package/bundle/chunk-03bp59wq.js +0 -2
  318. package/bundle/chunk-0ppnq3a4.js +0 -2
  319. package/bundle/chunk-0te0vcdn.js +0 -2
  320. package/bundle/chunk-11h06z17.js +0 -2
  321. package/bundle/chunk-28yv4fqe.js +0 -2
  322. package/bundle/chunk-34a52hyr.js +0 -2
  323. package/bundle/chunk-3n3gb3vd.js +0 -2
  324. package/bundle/chunk-3sq60y9f.js +0 -2
  325. package/bundle/chunk-49mbnqvc.js +0 -2
  326. package/bundle/chunk-4fr6kae9.js +0 -2
  327. package/bundle/chunk-516w1nc4.js +0 -2
  328. package/bundle/chunk-535nm66j.js +0 -2
  329. package/bundle/chunk-5kpxpm8e.js +0 -2
  330. package/bundle/chunk-5nm5s0h2.js +0 -2
  331. package/bundle/chunk-5ysbwr4x.js +0 -3
  332. package/bundle/chunk-6gpf2bjs.js +0 -2
  333. package/bundle/chunk-6sxx56b2.js +0 -2
  334. package/bundle/chunk-6t48g4x5.js +0 -2
  335. package/bundle/chunk-7bgzcpdw.js +0 -2
  336. package/bundle/chunk-7kjvcbwa.js +0 -2
  337. package/bundle/chunk-89b4k585.js +0 -2
  338. package/bundle/chunk-8jma2btf.js +0 -2
  339. package/bundle/chunk-93e0w75z.js +0 -2
  340. package/bundle/chunk-97gp818s.js +0 -2
  341. package/bundle/chunk-98b7ecrk.js +0 -2
  342. package/bundle/chunk-9epf2zbh.js +0 -2
  343. package/bundle/chunk-acpjrs02.js +0 -2
  344. package/bundle/chunk-agv04nt7.js +0 -2
  345. package/bundle/chunk-be7smmar.js +0 -2
  346. package/bundle/chunk-bryx5cx9.js +0 -2
  347. package/bundle/chunk-c13rrw41.js +0 -2
  348. package/bundle/chunk-c2kkv619.js +0 -2
  349. package/bundle/chunk-c5xj1y5v.js +0 -2
  350. package/bundle/chunk-ckpm4dvv.js +0 -2
  351. package/bundle/chunk-ct8twng1.js +0 -2
  352. package/bundle/chunk-d38y7bvh.js +0 -2
  353. package/bundle/chunk-d6hxsfm6.js +0 -2
  354. package/bundle/chunk-descb9jz.js +0 -2
  355. package/bundle/chunk-dvr2b9r1.js +0 -2
  356. package/bundle/chunk-ea5fktnn.js +0 -2
  357. package/bundle/chunk-f0t7rryn.js +0 -3
  358. package/bundle/chunk-f4mf6tpp.js +0 -2
  359. package/bundle/chunk-f97k17t8.js +0 -2
  360. package/bundle/chunk-g4ehhdzp.js +0 -2
  361. package/bundle/chunk-gd6qpdjw.js +0 -2
  362. package/bundle/chunk-gehn9fd9.js +0 -2
  363. package/bundle/chunk-h5pnng66.js +0 -2
  364. package/bundle/chunk-hgmqz75r.js +0 -2
  365. package/bundle/chunk-hhax4mxw.js +0 -2
  366. package/bundle/chunk-jvkzdap1.js +0 -2
  367. package/bundle/chunk-kf2f3mza.js +0 -2
  368. package/bundle/chunk-kg8fcv91.js +0 -2
  369. package/bundle/chunk-kgptyf7n.js +0 -3
  370. package/bundle/chunk-kjjjrjnb.js +0 -2
  371. package/bundle/chunk-kn8w69g9.js +0 -8
  372. package/bundle/chunk-kxwkab31.js +0 -2
  373. package/bundle/chunk-m5cfmhwh.js +0 -2
  374. package/bundle/chunk-m7qxxbns.js +0 -2
  375. package/bundle/chunk-mh19kwzw.js +0 -10
  376. package/bundle/chunk-mtpzcc14.js +0 -2
  377. package/bundle/chunk-n8wg5h5p.js +0 -2
  378. package/bundle/chunk-p6hcj3kv.js +0 -2
  379. package/bundle/chunk-pexmns0j.js +0 -2
  380. package/bundle/chunk-pt603np4.js +0 -2
  381. package/bundle/chunk-qk5bfcv8.js +0 -2
  382. package/bundle/chunk-qr06byhp.js +0 -2
  383. package/bundle/chunk-r1xh50b2.js +0 -5
  384. package/bundle/chunk-r7sq3maz.js +0 -2
  385. package/bundle/chunk-rmgs9nmj.js +0 -2
  386. package/bundle/chunk-rrd0fdra.js +0 -2
  387. package/bundle/chunk-rytavefg.js +0 -2
  388. package/bundle/chunk-sf5zc4kc.js +0 -2
  389. package/bundle/chunk-sh9vjnsh.js +0 -2
  390. package/bundle/chunk-st0c5wwc.js +0 -2
  391. package/bundle/chunk-teb3k2sf.js +0 -2
  392. package/bundle/chunk-ts798jvf.js +0 -2
  393. package/bundle/chunk-tx5aj02v.js +0 -2
  394. package/bundle/chunk-ty2vg1a5.js +0 -2
  395. package/bundle/chunk-v1t51rrq.js +0 -2
  396. package/bundle/chunk-vh9ptqn0.js +0 -2
  397. package/bundle/chunk-vwh6mv37.js +0 -2
  398. package/bundle/chunk-w2cb8cry.js +0 -2
  399. package/bundle/chunk-w72rctxz.js +0 -2
  400. package/bundle/chunk-wbw9zv3h.js +0 -2
  401. package/bundle/chunk-x6mw98c2.js +0 -2
  402. package/bundle/chunk-xy3c8f1h.js +0 -3
  403. package/bundle/chunk-xynwfaf1.js +0 -3
  404. package/bundle/chunk-y6p57wgh.js +0 -2
  405. package/bundle/chunk-y6xs8v17.js +0 -2
  406. package/bundle/chunk-yv5aehqq.js +0 -2
  407. package/bundle/chunk-z3xsfpc6.js +0 -2
  408. package/bundle/chunk-zgcabs1k.js +0 -2
  409. package/bundle/chunk-zn5pw733.js +0 -2
  410. package/bundle/chunk-zxwvnmea.js +0 -2
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Bf as P}from"./chunk-0smnwqk6.js";import"./chunk-ac7482n2.js";import{Jf as Q}from"./chunk-2drzgtv3.js";import{vO as W,wO as J}from"./chunk-r9w0thdk.js";class M{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)A(t);return new M(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)A(e);return parseInt(b.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function A(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}class I{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let s of Object.keys(e)){let a=this.fromUtf8(s);t.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,a)=>s+a.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(e.value,3),a;case"string":let l=this.fromUtf8(e.value),i=new DataView(new ArrayBuffer(3+l.byteLength));i.setUint8(0,7),i.setUint16(1,l.byteLength,!1);let f=new Uint8Array(i.buffer);return f.set(l,3),f;case"timestamp":let h=new Uint8Array(9);return h[0]=8,h.set(M.fromNumber(e.value.valueOf()).bytes,1),h;case"uuid":if(!te.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(b.fromHex(e.value.replace(/\-/g,"")),1),u}}parse(e){let t={},r=0;while(r<e.byteLength){let n=e.getUint8(r++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[s]={type:F,value:!0};break;case 1:t[s]={type:F,value:!1};break;case 2:t[s]={type:X,value:e.getInt8(r++)};break;case 3:t[s]={type:Z,value:e.getInt16(r,!1)},r+=2;break;case 4:t[s]={type:V,value:e.getInt32(r,!1)},r+=4;break;case 5:t[s]={type:D,value:new M(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:let a=e.getUint16(r,!1);r+=2,t[s]={type:E,value:new Uint8Array(e.buffer,e.byteOffset+r,a)},r+=a;break;case 7:let l=e.getUint16(r,!1);r+=2,t[s]={type:_,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,l))},r+=l;break;case 8:t[s]={type:Y,value:new Date(new M(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:let i=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[s]={type:ee,value:`${b.toHex(i.subarray(0,4))}-${b.toHex(i.subarray(4,6))}-${b.toHex(i.subarray(6,8))}-${b.toHex(i.subarray(8,10))}-${b.toHex(i.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return t}}function se({byteLength:e,byteOffset:t,buffer:r}){if(e<re)throw Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,t,e),s=n.getUint32(0,!1);if(e!==s)throw Error("Reported message length does not match received message length");let a=n.getUint32(q,!1),l=n.getUint32(p,!1),i=n.getUint32(e-S,!1),f=new j.Crc32().update(new Uint8Array(r,t,p));if(l!==f.digest())throw Error(`The prelude checksum specified in the message (${l}) does not match the calculated CRC32 checksum (${f.digest()})`);if(f.update(new Uint8Array(r,t+p,e-(p+S))),i!==f.digest())throw Error(`The message checksum (${f.digest()}) did not match the expected value of ${i}`);return{headers:new DataView(r,t+p+S,a),body:new Uint8Array(r,t+p+S+a,s-a-(p+S+S))}}class x{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new I(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){let r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,s=new Uint8Array(n),a=new DataView(s.buffer,s.byteOffset,s.byteLength),l=new j.Crc32;return a.setUint32(0,n,!1),a.setUint32(4,r.byteLength,!1),a.setUint32(8,l.update(s.subarray(0,8)).digest(),!1),s.set(r,12),s.set(t,r.byteLength+12),a.setUint32(n-4,l.update(s.subarray(8,n-4)).digest(),!1),s}decode(e){let{headers:t,body:r}=se(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}function H(e){let t=0,r=0,n=null,s=null,a=(i)=>{if(typeof i!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+i);t=i,r=4,n=new Uint8Array(i),new DataView(n.buffer).setUint32(0,i,!1)},l=async function*(){let i=e[Symbol.asyncIterator]();while(!0){let{value:f,done:h}=await i.next();if(h){if(!t)return;else if(t===r)yield n;else throw Error("Truncated event message received.");return}let u=f.length,o=0;while(o<u){if(!n){let m=u-o;if(!s)s=new Uint8Array(4);let y=Math.min(4-r,m);if(s.set(f.slice(o,o+y),r),r+=y,o+=y,r<4)break;a(new DataView(s.buffer).getUint32(0,!1)),s=null}let c=Math.min(t-r,u-o);if(n.set(f.slice(o,o+c),r),r+=c,o+=c,t&&t===r)yield n,n=null,t=0,r=0}}};return{[Symbol.asyncIterator]:l}}function ne(e,t){let r=C(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of e){let s=t.eventStreamCodec.decode(n),a=await r(s);if(a===void 0)continue;yield a}}}}function C(e,t){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,a={[s]:r},l=await e(a);if(l.$unknown){let i=Error(t(r.body));throw i.name=s,i}throw l[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},a=await e(s);if(a.$unknown)return;return a}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class N{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new O({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let r=typeof e[Symbol.asyncIterator]==="function"?e:ie(e);return this.universalMarshaller.deserialize(r,t)}serialize(e,t){return R.Readable.from(this.universalMarshaller.serialize(e,t))}}async function*ie(e){let t=!1,r=!1,n=[];e.on("error",(s)=>{if(!t)t=!0;if(s)throw s}),e.on("data",(s)=>{n.push(s)}),e.on("end",()=>{t=!0});while(!r){let s=await new Promise((a)=>setTimeout(()=>a(n.shift()),0));if(s)yield s;r=t&&n.length===0}}class K{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:r,serdeContext:n,defaultContentType:s}){this.marshaller=e,this.serializer=t,this.deserializer=r,this.serdeContext=n,this.defaultContentType=s}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){let n=this.marshaller,s=t.getEventStreamMember(),a=t.getMemberSchema(s),l=this.serializer,i=this.defaultContentType,f=Symbol("initialRequestMarker"),h={async*[Symbol.asyncIterator](){if(r){let u={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:i}};l.write(t,r);let o=l.flush();yield{[f]:!0,headers:u,body:o}}for await(let u of e)yield u}};return n.serialize(h,(u)=>{if(u[f])return{headers:u.headers,body:u.body};let o="";for(let d in u)if(d!=="__type"){o=d;break}let{additionalHeaders:c,body:m,eventType:y,explicitPayloadContentType:g}=this.writeEventBody(o,a,u);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:g??i},...c},body:m}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){let n=this.marshaller,s=t.getEventStreamMember(),l=t.getMemberSchema(s).getMemberSchemas(),i=Symbol("initialResponseMarker"),f=n.deserialize(e.body,async(o)=>{let c="";for(let y in o)if(y!=="__type"){c=y;break}let m=o[c].body;if(c==="initial-response"){let y=await this.deserializer.read(t,m);return delete y[s],{[i]:!0,...y}}else if(c in l){let y=l[c];if(y.isStructSchema()){let g={},w=!1;for(let[d,U]of y.structIterator()){let{eventHeader:$,eventPayload:G}=U.getMergedTraits();if(w=w||Boolean($||G),G){if(U.isBlobSchema())g[d]=m;else if(U.isStringSchema())g[d]=(this.serdeContext?.utf8Encoder??b.toUtf8)(m);else if(U.isStructSchema())g[d]=await this.deserializer.read(U,m)}else if($){let v=o[c].headers[d]?.value;if(v!=null)if(U.isNumericSchema())if(v&&typeof v==="object"&&"bytes"in v)g[d]=BigInt(v.toString());else g[d]=Number(v);else g[d]=v}}if(w)return{[c]:g};if(m.byteLength===0)return{[c]:{}}}return{[c]:await this.deserializer.read(y,m)}}else return{$unknown:o}}),h=f[Symbol.asyncIterator](),u=await h.next();if(u.done)return f;if(u.value?.[i]){if(!t)throw Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let o in u.value)r[o]=u.value[o]}return{async*[Symbol.asyncIterator](){if(!u?.value?.[i])yield u.value;while(!0){let{done:o,value:c}=await h.next();if(o)break;yield c}}}}writeEventBody(e,t,r){let n=this.serializer,s=e,a=null,l,i=(()=>{return t.getSchema()[4].includes(e)})(),f={};if(!i){let[o,c]=r[e];s=o,n.write(15,c)}else{let o=t.getMemberSchema(e);if(o.isStructSchema()){for(let[c,m]of o.structIterator()){let{eventHeader:y,eventPayload:g}=m.getMergedTraits();if(g)a=c;else if(y){let w=r[e][c],d="binary";if(m.isNumericSchema())if(-2147483648<=w&&w<=2147483647)d="integer";else d="long";else if(m.isTimestampSchema())d="timestamp";else if(m.isStringSchema())d="string";else if(m.isBooleanSchema())d="boolean";if(w!=null)f[c]={type:d,value:w},delete r[e][c]}}if(a!==null){let c=o.getMemberSchema(a);if(c.isBlobSchema())l="application/octet-stream";else if(c.isStringSchema())l="text/plain";n.write(c,r[e][a])}else n.write(o,r[e])}else if(o.isUnitSchema())n.write(o,{});else throw Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}let h=n.flush()??new Uint8Array;return{body:typeof h==="string"?(this.serdeContext?.utf8Decoder??b.fromUtf8)(h):h,eventType:s,explicitPayloadContentType:l,additionalHeaders:f}}}var j,b,R,L,F="boolean",X="byte",Z="short",V="integer",D="long",E="binary",_="string",Y="timestamp",ee="uuid",te,q=4,p,S=4,re,k,B,T,z,O=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:r}){this.eventStreamCodec=new x(t,r),this.utfEncoder=t}deserialize(t,r){let n=H(t);return new T({messageStream:new k({inputStream:n,decoder:this.eventStreamCodec}),deserializer:C(r,this.utfEncoder)})}serialize(t,r){return new B({messageStream:new z({inputStream:t,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},ae=(e)=>new O(e),oe=(e)=>new N(e),ce=(e)=>({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{while(!0){let{done:r,value:n}=await t.read();if(r)return;yield n}}finally{t.releaseLock()}}}),le=(e)=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await t.next();if(n)return r.close();r.enqueue(s)}})},ue=(e)=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),fe,ye,de,me,he,ge,we,be,pe,ve,Se,Ue,Me,Ie,xe,ke,Be,Te;var ze=W(()=>{j=P(),b=Q(),R=J("stream");(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(L||(L={}));te=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,p=q*2,re=p+S*2;k=class k{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}};B=class B{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);if(this.options.includeEndFrame)yield new Uint8Array(0)}};T=class T{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let t=await this.options.deserializer(e);if(t===void 0)continue;yield t}}};z=class z{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}};fe=x,ye=N,de=K,me=I,he=M,ge=k,we=B,be=T,pe=z,ve=O,Se=oe,Ue=H,Me=C,Ie=ne,xe=le,ke=ce,Be=ue,Te=ae});ze();export{Te as universalEventStreamSerdeProvider,Be as resolveEventStreamSerdeConfig,ke as readableStreamToIterable,xe as iterableToReadableStream,Ie as getUnmarshalledStream,Me as getMessageUnmarshaller,Ue as getChunkedStream,Se as eventStreamSerdeProvider,ve as UniversalEventStreamMarshaller,pe as SmithyMessageEncoderStream,be as SmithyMessageDecoderStream,we as MessageEncoderStream,ge as MessageDecoderStream,he as Int64,me as HeaderMarshaller,de as EventStreamSerde,ye as EventStreamMarshaller,fe as EventStreamCodec};export default {get universalEventStreamSerdeProvider(){return Te},get resolveEventStreamSerdeConfig(){return Be},get readableStreamToIterable(){return ke},get iterableToReadableStream(){return xe},get getUnmarshalledStream(){return Ie},get getMessageUnmarshaller(){return Me},get getChunkedStream(){return Ue},get eventStreamSerdeProvider(){return Se},get UniversalEventStreamMarshaller(){return ve},get SmithyMessageEncoderStream(){return pe},get SmithyMessageDecoderStream(){return be},get MessageEncoderStream(){return we},get MessageDecoderStream(){return ge},get Int64(){return he},get HeaderMarshaller(){return me},get EventStreamSerde(){return de},get EventStreamMarshaller(){return ye},get EventStreamCodec(){return fe}};
2
+ import{Cf as P}from"./chunk-4j76bf4j.js";import"./chunk-7z96r2px.js";import{Kf as Q}from"./chunk-yxttz5z5.js";import{VP as W,WP as J}from"./chunk-f2pv705d.js";class M{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)A(t);return new M(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)A(e);return parseInt(b.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function A(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}class I{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let s of Object.keys(e)){let a=this.fromUtf8(s);t.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,a)=>s+a.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(e.value,3),a;case"string":let l=this.fromUtf8(e.value),i=new DataView(new ArrayBuffer(3+l.byteLength));i.setUint8(0,7),i.setUint16(1,l.byteLength,!1);let f=new Uint8Array(i.buffer);return f.set(l,3),f;case"timestamp":let h=new Uint8Array(9);return h[0]=8,h.set(M.fromNumber(e.value.valueOf()).bytes,1),h;case"uuid":if(!te.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(b.fromHex(e.value.replace(/\-/g,"")),1),u}}parse(e){let t={},r=0;while(r<e.byteLength){let n=e.getUint8(r++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[s]={type:F,value:!0};break;case 1:t[s]={type:F,value:!1};break;case 2:t[s]={type:X,value:e.getInt8(r++)};break;case 3:t[s]={type:Z,value:e.getInt16(r,!1)},r+=2;break;case 4:t[s]={type:V,value:e.getInt32(r,!1)},r+=4;break;case 5:t[s]={type:D,value:new M(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:let a=e.getUint16(r,!1);r+=2,t[s]={type:E,value:new Uint8Array(e.buffer,e.byteOffset+r,a)},r+=a;break;case 7:let l=e.getUint16(r,!1);r+=2,t[s]={type:_,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,l))},r+=l;break;case 8:t[s]={type:Y,value:new Date(new M(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:let i=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[s]={type:ee,value:`${b.toHex(i.subarray(0,4))}-${b.toHex(i.subarray(4,6))}-${b.toHex(i.subarray(6,8))}-${b.toHex(i.subarray(8,10))}-${b.toHex(i.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return t}}function se({byteLength:e,byteOffset:t,buffer:r}){if(e<re)throw Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,t,e),s=n.getUint32(0,!1);if(e!==s)throw Error("Reported message length does not match received message length");let a=n.getUint32(q,!1),l=n.getUint32(p,!1),i=n.getUint32(e-S,!1),f=new j.Crc32().update(new Uint8Array(r,t,p));if(l!==f.digest())throw Error(`The prelude checksum specified in the message (${l}) does not match the calculated CRC32 checksum (${f.digest()})`);if(f.update(new Uint8Array(r,t+p,e-(p+S))),i!==f.digest())throw Error(`The message checksum (${f.digest()}) did not match the expected value of ${i}`);return{headers:new DataView(r,t+p+S,a),body:new Uint8Array(r,t+p+S+a,s-a-(p+S+S))}}class x{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new I(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){let r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,s=new Uint8Array(n),a=new DataView(s.buffer,s.byteOffset,s.byteLength),l=new j.Crc32;return a.setUint32(0,n,!1),a.setUint32(4,r.byteLength,!1),a.setUint32(8,l.update(s.subarray(0,8)).digest(),!1),s.set(r,12),s.set(t,r.byteLength+12),a.setUint32(n-4,l.update(s.subarray(8,n-4)).digest(),!1),s}decode(e){let{headers:t,body:r}=se(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}function H(e){let t=0,r=0,n=null,s=null,a=(i)=>{if(typeof i!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+i);t=i,r=4,n=new Uint8Array(i),new DataView(n.buffer).setUint32(0,i,!1)},l=async function*(){let i=e[Symbol.asyncIterator]();while(!0){let{value:f,done:h}=await i.next();if(h){if(!t)return;else if(t===r)yield n;else throw Error("Truncated event message received.");return}let u=f.length,o=0;while(o<u){if(!n){let m=u-o;if(!s)s=new Uint8Array(4);let y=Math.min(4-r,m);if(s.set(f.slice(o,o+y),r),r+=y,o+=y,r<4)break;a(new DataView(s.buffer).getUint32(0,!1)),s=null}let c=Math.min(t-r,u-o);if(n.set(f.slice(o,o+c),r),r+=c,o+=c,t&&t===r)yield n,n=null,t=0,r=0}}};return{[Symbol.asyncIterator]:l}}function ne(e,t){let r=C(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of e){let s=t.eventStreamCodec.decode(n),a=await r(s);if(a===void 0)continue;yield a}}}}function C(e,t){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,a={[s]:r},l=await e(a);if(l.$unknown){let i=Error(t(r.body));throw i.name=s,i}throw l[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},a=await e(s);if(a.$unknown)return;return a}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class N{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new O({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let r=typeof e[Symbol.asyncIterator]==="function"?e:ie(e);return this.universalMarshaller.deserialize(r,t)}serialize(e,t){return R.Readable.from(this.universalMarshaller.serialize(e,t))}}async function*ie(e){let t=!1,r=!1,n=[];e.on("error",(s)=>{if(!t)t=!0;if(s)throw s}),e.on("data",(s)=>{n.push(s)}),e.on("end",()=>{t=!0});while(!r){let s=await new Promise((a)=>setTimeout(()=>a(n.shift()),0));if(s)yield s;r=t&&n.length===0}}class K{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:r,serdeContext:n,defaultContentType:s}){this.marshaller=e,this.serializer=t,this.deserializer=r,this.serdeContext=n,this.defaultContentType=s}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){let n=this.marshaller,s=t.getEventStreamMember(),a=t.getMemberSchema(s),l=this.serializer,i=this.defaultContentType,f=Symbol("initialRequestMarker"),h={async*[Symbol.asyncIterator](){if(r){let u={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:i}};l.write(t,r);let o=l.flush();yield{[f]:!0,headers:u,body:o}}for await(let u of e)yield u}};return n.serialize(h,(u)=>{if(u[f])return{headers:u.headers,body:u.body};let o="";for(let d in u)if(d!=="__type"){o=d;break}let{additionalHeaders:c,body:m,eventType:y,explicitPayloadContentType:g}=this.writeEventBody(o,a,u);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:g??i},...c},body:m}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){let n=this.marshaller,s=t.getEventStreamMember(),l=t.getMemberSchema(s).getMemberSchemas(),i=Symbol("initialResponseMarker"),f=n.deserialize(e.body,async(o)=>{let c="";for(let y in o)if(y!=="__type"){c=y;break}let m=o[c].body;if(c==="initial-response"){let y=await this.deserializer.read(t,m);return delete y[s],{[i]:!0,...y}}else if(c in l){let y=l[c];if(y.isStructSchema()){let g={},w=!1;for(let[d,U]of y.structIterator()){let{eventHeader:$,eventPayload:G}=U.getMergedTraits();if(w=w||Boolean($||G),G){if(U.isBlobSchema())g[d]=m;else if(U.isStringSchema())g[d]=(this.serdeContext?.utf8Encoder??b.toUtf8)(m);else if(U.isStructSchema())g[d]=await this.deserializer.read(U,m)}else if($){let v=o[c].headers[d]?.value;if(v!=null)if(U.isNumericSchema())if(v&&typeof v==="object"&&"bytes"in v)g[d]=BigInt(v.toString());else g[d]=Number(v);else g[d]=v}}if(w)return{[c]:g};if(m.byteLength===0)return{[c]:{}}}return{[c]:await this.deserializer.read(y,m)}}else return{$unknown:o}}),h=f[Symbol.asyncIterator](),u=await h.next();if(u.done)return f;if(u.value?.[i]){if(!t)throw Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let o in u.value)r[o]=u.value[o]}return{async*[Symbol.asyncIterator](){if(!u?.value?.[i])yield u.value;while(!0){let{done:o,value:c}=await h.next();if(o)break;yield c}}}}writeEventBody(e,t,r){let n=this.serializer,s=e,a=null,l,i=(()=>{return t.getSchema()[4].includes(e)})(),f={};if(!i){let[o,c]=r[e];s=o,n.write(15,c)}else{let o=t.getMemberSchema(e);if(o.isStructSchema()){for(let[c,m]of o.structIterator()){let{eventHeader:y,eventPayload:g}=m.getMergedTraits();if(g)a=c;else if(y){let w=r[e][c],d="binary";if(m.isNumericSchema())if(-2147483648<=w&&w<=2147483647)d="integer";else d="long";else if(m.isTimestampSchema())d="timestamp";else if(m.isStringSchema())d="string";else if(m.isBooleanSchema())d="boolean";if(w!=null)f[c]={type:d,value:w},delete r[e][c]}}if(a!==null){let c=o.getMemberSchema(a);if(c.isBlobSchema())l="application/octet-stream";else if(c.isStringSchema())l="text/plain";n.write(c,r[e][a])}else n.write(o,r[e])}else if(o.isUnitSchema())n.write(o,{});else throw Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}let h=n.flush()??new Uint8Array;return{body:typeof h==="string"?(this.serdeContext?.utf8Decoder??b.fromUtf8)(h):h,eventType:s,explicitPayloadContentType:l,additionalHeaders:f}}}var j,b,R,L,F="boolean",X="byte",Z="short",V="integer",D="long",E="binary",_="string",Y="timestamp",ee="uuid",te,q=4,p,S=4,re,k,B,T,z,O=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:r}){this.eventStreamCodec=new x(t,r),this.utfEncoder=t}deserialize(t,r){let n=H(t);return new T({messageStream:new k({inputStream:n,decoder:this.eventStreamCodec}),deserializer:C(r,this.utfEncoder)})}serialize(t,r){return new B({messageStream:new z({inputStream:t,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},ae=(e)=>new O(e),oe=(e)=>new N(e),ce=(e)=>({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{while(!0){let{done:r,value:n}=await t.read();if(r)return;yield n}}finally{t.releaseLock()}}}),le=(e)=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await t.next();if(n)return r.close();r.enqueue(s)}})},ue=(e)=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),fe,ye,de,me,he,ge,we,be,pe,ve,Se,Ue,Me,Ie,xe,ke,Be,Te;var ze=W(()=>{j=P(),b=Q(),R=J("stream");(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(L||(L={}));te=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,p=q*2,re=p+S*2;k=class k{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}};B=class B{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);if(this.options.includeEndFrame)yield new Uint8Array(0)}};T=class T{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let t=await this.options.deserializer(e);if(t===void 0)continue;yield t}}};z=class z{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}};fe=x,ye=N,de=K,me=I,he=M,ge=k,we=B,be=T,pe=z,ve=O,Se=oe,Ue=H,Me=C,Ie=ne,xe=le,ke=ce,Be=ue,Te=ae});ze();export{Te as universalEventStreamSerdeProvider,Be as resolveEventStreamSerdeConfig,ke as readableStreamToIterable,xe as iterableToReadableStream,Ie as getUnmarshalledStream,Me as getMessageUnmarshaller,Ue as getChunkedStream,Se as eventStreamSerdeProvider,ve as UniversalEventStreamMarshaller,pe as SmithyMessageEncoderStream,be as SmithyMessageDecoderStream,we as MessageEncoderStream,ge as MessageDecoderStream,he as Int64,me as HeaderMarshaller,de as EventStreamSerde,ye as EventStreamMarshaller,fe as EventStreamCodec};export default {get universalEventStreamSerdeProvider(){return Te},get resolveEventStreamSerdeConfig(){return Be},get readableStreamToIterable(){return ke},get iterableToReadableStream(){return xe},get getUnmarshalledStream(){return Ie},get getMessageUnmarshaller(){return Me},get getChunkedStream(){return Ue},get eventStreamSerdeProvider(){return Se},get UniversalEventStreamMarshaller(){return ve},get SmithyMessageEncoderStream(){return pe},get SmithyMessageDecoderStream(){return be},get MessageEncoderStream(){return we},get MessageDecoderStream(){return ge},get Int64(){return he},get HeaderMarshaller(){return me},get EventStreamSerde(){return de},get EventStreamMarshaller(){return ye},get EventStreamCodec(){return fe}};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Rs as E}from"./chunk-tr6rdr6h.js";function q(w){return!!w&&typeof w==="object"&&!Array.isArray(w)}function C(w){if(!q(w))return;let A=w.diagnostic,j=q(w.data)?w.data.diagnostic:void 0,p=q(A)?A:q(j)?j:void 0;if(!p){let h=w.cause;return h!==w?C(h):void 0}if(typeof p.errorID!=="string"||typeof p.errorName!=="string"||typeof p.logFile!=="string")return;return{errorID:p.errorID,errorName:p.errorName,logFile:p.logFile}}function J(w){return C(w)}function K(w,A){let j=C(w);if(j)return j;let p=A??(q(w)&&typeof w.name==="string"?w.name:w instanceof Error?w.name:"UnknownError"),h={errorID:crypto.randomUUID(),errorName:p,logFile:E()};if(q(w))try{Object.defineProperty(w,"diagnostic",{value:h,enumerable:!0,configurable:!0})}catch{}return h}function D(w){if(w instanceof Error)return w.stack??`${w.name}: ${w.message}`;if(typeof w==="object"&&w!==null){let A=z(w);if(A!=="unknown error")return A;try{return JSON.stringify(w,null,2)}catch{return"Unexpected error (unserializable)"}}return String(w)}function z(w){if(w instanceof Error){if(w.message)return w.message;if(w.name)return w.name}if(q(w)&&typeof w.message==="string"&&w.message)return w.message;if(q(w)&&q(w.data)&&typeof w.data.message==="string"&&w.data.message)return w.data.message;let A=String(w);if(A&&A!=="[object Object]")return A;let j=D(w);if(j&&j!=="{}")return j;return"unknown error"}function L(w){if(w instanceof Error)return{type:w.name,message:z(w),stack:w.stack,cause:w.cause===void 0?void 0:D(w.cause),formatted:B(w)};if(!q(w))return{type:typeof w,message:z(w),formatted:B(w)};let A=Object.getOwnPropertyNames(w).reduce((j,p)=>{let h=w[p];if(h===void 0)return j;if(typeof h==="string"||typeof h==="number"||typeof h==="boolean")return j[p]=h,j;return j[p]=h instanceof Error?h.message:String(h),j},{});if(typeof A.message!=="string")A.message=z(w);if(typeof A.type!=="string")A.type=w.constructor?.name;return A.formatted=B(w),A}function B(w){let A=D(w);if(A!=="{}")return A;return String(w)}
3
- export{q as Es,J as Fs,K as Gs,z as Hs,L as Is};
2
+ import{pu as E}from"./chunk-mbbxedsq.js";function q(w){return!!w&&typeof w==="object"&&!Array.isArray(w)}function C(w){if(!q(w))return;let A=w.diagnostic,j=q(w.data)?w.data.diagnostic:void 0,p=q(A)?A:q(j)?j:void 0;if(!p){let h=w.cause;return h!==w?C(h):void 0}if(typeof p.errorID!=="string"||typeof p.errorName!=="string"||typeof p.logFile!=="string")return;return{errorID:p.errorID,errorName:p.errorName,logFile:p.logFile}}function J(w){return C(w)}function K(w,A){let j=C(w);if(j)return j;let p=A??(q(w)&&typeof w.name==="string"?w.name:w instanceof Error?w.name:"UnknownError"),h={errorID:crypto.randomUUID(),errorName:p,logFile:E()};if(q(w))try{Object.defineProperty(w,"diagnostic",{value:h,enumerable:!0,configurable:!0})}catch{}return h}function D(w){if(w instanceof Error)return w.stack??`${w.name}: ${w.message}`;if(typeof w==="object"&&w!==null){let A=z(w);if(A!=="unknown error")return A;try{return JSON.stringify(w,null,2)}catch{return"Unexpected error (unserializable)"}}return String(w)}function z(w){if(w instanceof Error){if(w.message)return w.message;if(w.name)return w.name}if(q(w)&&typeof w.message==="string"&&w.message)return w.message;if(q(w)&&q(w.data)&&typeof w.data.message==="string"&&w.data.message)return w.data.message;let A=String(w);if(A&&A!=="[object Object]")return A;let j=D(w);if(j&&j!=="{}")return j;return"unknown error"}function L(w){if(w instanceof Error)return{type:w.name,message:z(w),stack:w.stack,cause:w.cause===void 0?void 0:D(w.cause),formatted:B(w)};if(!q(w))return{type:typeof w,message:z(w),formatted:B(w)};let A=Object.getOwnPropertyNames(w).reduce((j,p)=>{let h=w[p];if(h===void 0)return j;if(typeof h==="string"||typeof h==="number"||typeof h==="boolean")return j[p]=h,j;return j[p]=h instanceof Error?h.message:String(h),j},{});if(typeof A.message!=="string")A.message=z(w);if(typeof A.type!=="string")A.type=w.constructor?.name;return A.formatted=B(w),A}function B(w){let A=D(w);if(A!=="{}")return A;return String(w)}
3
+ export{q as cu,J as du,K as eu,z as fu,L as gu};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Qd as n,Td as p,Ud as e,Vd as i,Yd as m,Zd as c}from"./chunk-ff548b0j.js";import{eH as o,lB as s}from"./chunk-qnvsqnz5.js";var u=(t)=>o.sync(()=>e(t)),g=(t)=>o.sync(()=>i(t)),y={info:(t)=>o.sync(()=>p.info(t))},x=(t)=>o.tryPromise(()=>c(t)).pipe(o.map((r)=>{if(n(r))return s.none();return s.some(r)})),V=()=>{let t=m();return{start:(r)=>o.sync(()=>t.start(r)),stop:(r,a)=>o.sync(()=>t.stop(r,a))}};
2
+ import{Rd as n,Ud as p,Vd as e,Wd as i,Zd as m,_d as c}from"./chunk-hhk2sp5n.js";import{EI as o,LC as s}from"./chunk-tezrgfc6.js";var u=(t)=>o.sync(()=>e(t)),g=(t)=>o.sync(()=>i(t)),y={info:(t)=>o.sync(()=>p.info(t))},x=(t)=>o.tryPromise(()=>c(t)).pipe(o.map((r)=>{if(n(r))return s.none();return s.some(r)})),V=()=>{let t=m();return{start:(r)=>o.sync(()=>t.start(r)),stop:(r,a)=>o.sync(()=>t.stop(r,a))}};
3
3
  export{u as i,g as j,y as k,x as l,V as m};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-f2pv705d.js";var L="./libopentui-430t0qv0.dylib";export{L as default};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-f2pv705d.js";var h="./tree-sitter-typescript-zxjzwt75.wasm";export{h as default};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Dg as i,Eg as j,Fg as k,Gg as l,Hg as m,Ig as n}from"./chunk-dd4qnh8s.js";import"./chunk-nrk29616.js";import{Ip as a,Jp as b,Kp as c,Lp as d,Mp as e,Np as f,Rp as g,Sp as h}from"./chunk-makecdh6.js";import"./chunk-cth373se.js";import"./chunk-xcxqt8ag.js";import"./chunk-ts2k13g0.js";import"./chunk-01e3v1xz.js";import"./chunk-dbpkq7ba.js";import"./chunk-gdew7bwm.js";import"./chunk-v3nmnm57.js";import"./chunk-hwsqqkrv.js";import"./chunk-mbbxedsq.js";import"./chunk-aa2n02qk.js";import"./chunk-k1x8469r.js";import"./chunk-c3szabpf.js";import"./chunk-c8prg3jx.js";import"./chunk-t8sy5sgx.js";import"./chunk-tezrgfc6.js";import"./chunk-f2pv705d.js";export{f as resolveDevicePoll,h as refreshAccessToken,g as probeToken,l as loginDevice,n as loginBrowser,m as login,b as isReplitEnv,j as isNearExpiry,c as getConfig,i as getCallbackUri,k as fetchQreditsBalance,a as checkoutApiKey,d as ForgewiseError,e as DeviceFlowUnsupportedError};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Tl as f,Ul as Gj,Vl as Rj,Wl as Hj,Zl as s}from"./chunk-13rsd5vv.js";import{Jn as xj}from"./chunk-9zm6r55d.js";import{Pn as vj}from"./chunk-khzzmyk2.js";import{$q as Kj,Tq as P,Uq as wj,_q as k}from"./chunk-73r8bjjz.js";import{ds as a,es as y}from"./chunk-kj8cmn7z.js";import{Ns as I,Ws as h}from"./chunk-tr6rdr6h.js";import{ft as i,gt as Ij,ht as Jj,kt as Nj}from"./chunk-at22twxx.js";import{lt as j}from"./chunk-kgptyf7n.js";import{DE as o,TN as C,XJ as l,YE as d,eH as Q,zB as Wj}from"./chunk-qnvsqnz5.js";import{sO as Mj,uO as Oj,wO as Ej}from"./chunk-r9w0thdk.js";var tj={};Oj(tj,{stopRefresh:()=>aj,startRefresh:()=>sj,refresh:()=>jj,readModelCatalogResponse:()=>Pj,get:()=>fj,Provider:()=>cj,Model:()=>pj,MODEL_CATALOG_MAX_BYTES:()=>Aj,Data:()=>S});import hj from"path";var U={};Oj(U,{layer:()=>Bj,isPreview:()=>ij,isNewerVersion:()=>qj,isLocal:()=>mj,getReleaseType:()=>yj,defaultLayer:()=>uj,UpgradeFailedError:()=>x,USER_AGENT:()=>Sj,Service:()=>E,Installation:()=>U,Info:()=>Uj,Event:()=>Cj});var _j=(J)=>J.pipe(k.retryTransient({retryOn:"errors-and-responses",times:2,schedule:d.exponential(200).pipe(d.jittered)}));import Yj from"path";var z=Mj(xj(),1);import n from"crypto";import v from"fs";import Zj from"path";class H extends Error{constructor(J){super(J);this.name="SelfUpdateError"}}function $j(J){let V=J?.platform??process.platform,_=J?.arch??process.arch,$=J?.libc??"bionic",W=["qitqode",V==="win32"?"windows":V,_];if(_==="x64")W.push("baseline");if(V==="linux"&&$==="musl")W.push("musl");return`@qitqode/${W.join("-")}`}function kj(J,V){if(V.integrity){let _=V.integrity.match(/^(sha512|sha384|sha256)-([A-Za-z0-9+/=]+)$/);if(!_)throw new H(`registry returned an unrecognized integrity string: ${V.integrity}`);if(n.createHash(_[1]).update(J).digest("base64")!==_[2])throw new H(`checksum mismatch: downloaded tarball does not match the registry ${_[1]} integrity value; refusing to install`);return}if(V.shasum){if(n.createHash("sha1").update(J).digest("hex")!==V.shasum.toLowerCase())throw new H("checksum mismatch: downloaded tarball does not match the registry shasum; refusing to install");return}throw new H("registry provided no integrity metadata for the tarball; refusing to install")}function Qj(J,V){let _=(w,R)=>{let G=w,q=w+R;while(G<q&&J[G]!==0)G++;return new TextDecoder().decode(J.subarray(w,G))},$=0,W;while($+512<=J.length){if(J.subarray($,$+512).every((Z)=>Z===0))break;let R=_($+124,12).trim(),G=R?parseInt(R,8):0;if(!Number.isFinite(G)||G<0)throw new H("downloaded tarball is corrupt (bad tar header)");let q=String.fromCharCode(J[$+156]),B=_($,100),N=_($+345,155);if(N)B=`${N}/${B}`;if(W)B=W,W=void 0;let b=$+512,X=b+G;if(q==="L")W=new TextDecoder().decode(J.subarray(b,X)).replace(/\0+$/,"");else if((q==="0"||q==="\x00"||q==="")&&B===V)return J.slice(b,X);$=b+Math.ceil(G/512)*512}return}var A=(J)=>String(J instanceof Error?J.message:J),u=(J)=>Q.fail(new H(J)),p=(J,V)=>Q.try({try:J,catch:(_)=>new H(V(_))}),Xj=Q.fnUntraced(function*(J){let{target:V,execPath:_,packageName:$,registry:W}=J,w=J.gunzip??((K)=>Bun.gunzipSync(K)),R=Zj.dirname(_);yield*p(()=>v.accessSync(R,v.constants.W_OK),()=>`no write permission for ${R}; cannot replace ${_}. Fix the directory permissions or re-run with sufficient privileges.`);let G=`${W}/${$}/${encodeURIComponent(V)}`,B=(yield*J.fetchJson(G).pipe(Q.mapError((K)=>new H(`download failed: could not fetch ${$}@${V} from ${W} (${A(K)}). Check your network connection and that version ${V} exists.`))))?.dist;if(!B?.tarball)return yield*u(`registry response for ${$}@${V} has no tarball URL; cannot self-update`);let N=B.tarball,b=yield*J.fetchBytes(N).pipe(Q.mapError((K)=>new H(`download failed: could not download ${N} (${A(K)}). Check your network connection and try again.`)));yield*Q.try({try:()=>kj(b,B),catch:(K)=>K instanceof H?K:new H(A(K))});let X=yield*Q.try({try:()=>w(b),catch:()=>new H("downloaded tarball is corrupt (gunzip failed); try again")}),Z=Qj(X,"package/bin/qitqode")??Qj(X,"package/bin/qitqode.exe");if(!Z||Z.length===0)return yield*u(`tarball for ${$}@${V} does not contain the expected binary at bin/qitqode`);let O=Zj.join(R,`.qitqode-upgrade-${process.pid}`),Y=`${_}.backup-${process.pid}`,D=(K)=>{try{v.rmSync(K,{force:!0})}catch{}};yield*p(()=>v.writeFileSync(O,Z,{mode:493}),(K)=>{return D(O),`no write permission: could not write ${O} (${A(K)})`});let L=yield*J.runVersion(O).pipe(Q.mapError((K)=>{return D(O),new H(`downloaded binary failed its --version check (${A(K)}); keeping the current installation`)}));if(L.code!==0)return D(O),yield*u(`downloaded binary failed its --version check (exit ${L.code}); keeping the current installation`);let m=L.stdout.trim();if(m&&!m.includes(V))return D(O),yield*u(`downloaded binary reports version "${m}" instead of ${V}; keeping the current installation`);yield*p(()=>v.renameSync(_,Y),(K)=>{return D(O),`could not move the current binary aside (${A(K)}); check permissions on ${_}`}),yield*Q.try({try:()=>v.renameSync(O,_),catch:(K)=>{try{v.renameSync(Y,_)}catch{return new H(`failed to install the new binary AND failed to restore the old one; your previous binary is preserved at ${Y} \u2014 move it back to ${_} manually`)}return D(O),new H(`could not install the new binary (${A(K)}); the previous version was restored`)}}),D(Y)});var c=h.create({service:"installation"}),M="@qitqode/cli";function qj(J,V){if(!z.default.valid(J)||!z.default.valid(V))return!1;return z.default.gt(V,J)}var Cj={Updated:s.define("installation.updated",j.object({version:j.string()})),UpdateAvailable:s.define("installation.update-available",j.object({version:j.string()}))};function yj(J,V){if(!qj(J,V))throw Error(`Version ${V} is not newer than ${J}`);let _=z.default.major(J),$=z.default.minor(J),W=z.default.major(V),w=z.default.minor(V);if(W>_)return"major";if(w>$)return"minor";return"patch"}var Uj=j.object({version:j.string(),latest:j.string()}).meta({ref:"InstallationInfo"}),Sj=`qitqode/${y}/${a}/${I.QITQODE_CLIENT}`;function ij(){return y!=="latest"}function mj(){return y==="local"}class x extends C.TaggedErrorClass()("UpgradeFailedError",{stderr:C.String}){}var nj=C.Struct({version:C.String});class E extends Wj.Service()("@qitqode/Installation"){}var Bj=o.effect(E,Q.gen(function*(){let J=yield*k.HttpClient,V=k.filterStatusOk(_j(J)),_=yield*f.ChildProcessSpawner,$=(X,Z)=>Gj.make(X[0],X.slice(1),{cwd:Z?.cwd,env:Z?.env,extendEnv:!0}),W=Q.fnUntraced(function*(X){let Z=yield*Hj(_,X);return{code:Z.code,stdout:Z.text,stderr:Z.stderr}},Q.scoped),w=Q.fnUntraced(function*(X,Z){let O=yield*_.spawn($(X,Z)),Y=yield*l.mkString(l.decodeText(O.stdout));return yield*O.exitCode,Y},Q.scoped,Q.catch(()=>Q.succeed(""))),R=Q.fnUntraced(function*(X,Z){return yield*W($(X,Z))},Q.catch(()=>Q.succeed({code:f.ExitCode(1),stdout:"",stderr:""}))),G=Q.fn("Installation.method")(function*(){if(process.execPath.includes(Yj.join(".qitqode","bin")))return"curl";if(process.execPath.includes(Yj.join(".local","bin")))return"curl";let X=process.execPath.toLowerCase(),Z=[{name:"npm",command:()=>w(["npm","list","-g","--depth=0"])},{name:"pnpm",command:()=>w(["pnpm","list","-g","--depth=0"])},{name:"bun",command:()=>w(["bun","pm","ls","-g"])}];Z.sort((O,Y)=>{let D=X.includes(O.name),L=X.includes(Y.name);if(D&&!L)return-1;if(!D&&L)return 1;return 0});for(let O of Z)if((yield*O.command()).includes(M))return O.name;return"unknown"}),q=Q.fn("Installation.latest")(function*(X){let Z=X||(yield*G());if(Z==="curl"){let Y=(yield*w(["curl","-sI","https://github.com/qitqode/qitqode/releases/latest"])).match(/^location:.*\/tag\/v([0-9][^\s/]*)/im);if(Y)return Y[1];return yield*Q.die(Error("failed to resolve latest version from GitHub releases redirect"))}if(Z==="npm"||Z==="bun"||Z==="pnpm"){let Y=(yield*w(["npm","config","get","registry"])).trim()||"https://registry.npmjs.org",D=Y.endsWith("/")?Y.slice(0,-1):Y,L=yield*V.execute(P.get(`${D}/${encodeURIComponent(M)}/${y}`).pipe(P.acceptJson));return(yield*wj.schemaBodyJson(nj)(L)).version}return c.warn("unsupported update channel, skipping",{method:Z}),yield*Q.die(Error(`unsupported update channel: ${Z}`))},Q.orDie),B=Q.fnUntraced(function*(){let Z=(yield*w(["npm","config","get","registry"])).trim()||"https://registry.npmjs.org";return Z.endsWith("/")?Z.slice(0,-1):Z}),N=Q.fnUntraced(function*(X){let Z=yield*B();yield*Xj({target:X,execPath:process.env.QITQODE_SELF_UPDATE_TARGET_BINARY||process.execPath,packageName:$j(),registry:Z,fetchJson:(O)=>V.execute(P.get(O).pipe(P.acceptJson)).pipe(Q.flatMap((Y)=>Y.json)),fetchBytes:(O)=>V.execute(P.get(O)).pipe(Q.flatMap((Y)=>Y.arrayBuffer),Q.map((Y)=>new Uint8Array(Y))),runVersion:(O)=>R([O,"--version"]).pipe(Q.map((Y)=>({code:Y.code,stdout:Y.stdout})))}).pipe(Q.mapError((O)=>new x({stderr:O.message})))}),b=Q.fn("Installation.upgrade")(function*(X,Z){if(X==="curl"){yield*N(Z),c.info("upgraded",{method:X,target:Z});return}let Y=yield*(()=>{if(X==="npm")return R(["npm","install","-g",`${M}@${Z}`]);if(X==="pnpm")return R(["pnpm","install","-g",`${M}@${Z}`]);if(X==="bun")return R(["bun","install","-g",`${M}@${Z}`]);return new x({stderr:`Unknown method: ${X}`})})();if(Y.code!==0){let D=Y.stderr||"";return yield*new x({stderr:D})}c.info("upgraded",{method:X,target:Z,stdout:Y.stdout,stderr:Y.stderr}),yield*w([process.execPath,"--version"])});return E.of({info:Q.fn("Installation.info")(function*(){return{version:a,latest:yield*q()}}),method:G,latest:q,upgrade:b})})),uj=Bj.pipe(o.provide(Kj.layer),o.provide(Rj));var t=j.lazy(()=>j.union([j.string(),j.number(),j.boolean(),j.null(),j.array(t),j.record(j.string(),t)])),Dj=j.object({input:j.number(),output:j.number(),cache_read:j.number().optional(),cache_write:j.number().optional(),context_over_200k:j.object({input:j.number(),output:j.number(),cache_read:j.number().optional(),cache_write:j.number().optional()}).optional()}),r=j.object({id:j.string(),name:j.string(),family:j.string().optional(),release_date:j.string(),attachment:j.boolean(),reasoning:j.boolean(),temperature:j.boolean().optional(),tool_call:j.boolean(),interleaved:j.union([j.literal(!0),j.object({field:j.enum(["reasoning_content","reasoning_details"])}).strict()]).optional(),cost:Dj.optional(),limit:j.object({context:j.number(),input:j.number().optional(),output:j.number()}),modalities:j.object({input:j.array(j.enum(["text","audio","image","video","pdf"])),output:j.array(j.enum(["text","audio","image","video","pdf"]))}).optional(),experimental:j.object({modes:j.record(j.string(),j.object({cost:Dj.optional(),provider:j.object({body:j.record(j.string(),t).optional(),headers:j.record(j.string(),j.string()).optional()}).optional()})).optional()}).optional(),status:j.enum(["alpha","beta","deprecated"]).optional(),provider:j.object({npm:j.string().optional(),api:j.string().optional()}).optional()}),e=j.object({api:j.string().optional(),name:j.string(),env:j.array(j.string()),id:j.string(),npm:j.string().optional(),models:j.record(j.string(),r)});var Vj=h.create({service:"models.dev"}),bj=Fj(),F=hj.join(Nj.Path.cache,bj==="https://models.dev"?"models.json":`models-${Ij.fast(bj)}.json`),gj=300000,Aj=8388608,T,dj=j.record(j.string(),e),pj=r,cj=e;function Fj(){return I.QITQODE_MODELS_URL||"https://models.dev"}function lj(){return Date.now()-Number(i.stat(F)?.mtimeMs??0)<gj}function Lj(J){return!J&&lj()}function g(J){let V=dj.parse(typeof J==="string"?JSON.parse(J):J);for(let[_,$]of Object.entries(V))if($.id!==_)throw Error(`Invalid model provider: ${_}`);return V}async function zj(J){let V=await i.readJson(J).catch(()=>{return});if(!V)return;try{return g(V)}catch(_){Vj.warn("Ignoring invalid model catalog cache",{file:J,error:_});return}}async function Pj(J,V,_=Aj){let $=J.headers.get("content-type")?.split(";")[0]?.trim().toLowerCase();if($!=="application/json"&&!$?.endsWith("+json"))throw Error(`Invalid model catalog content type: ${$||"missing"}`);let W=Number(J.headers.get("content-length"));if(Number.isFinite(W)&&W>_)throw Error("Model catalog response is too large");if(!J.body)return"";let w=J.body.getReader(),R=()=>void w.cancel(V.reason);V.addEventListener("abort",R,{once:!0});let G=new Uint8Array(_),q=0;try{for(;;){let B=await w.read();if(B.done)break;if(q+=B.value.byteLength,q>_)throw await w.cancel(),Error("Model catalog response is too large");G.set(B.value,q-B.value.byteLength)}}finally{V.removeEventListener("abort",R)}return new TextDecoder().decode(G.subarray(0,q))}var Tj=async()=>{let J=AbortSignal.timeout(1e4),V=await fetch(`${Fj()}/api.json`,{headers:{"User-Agent":U.USER_AGENT},signal:J});if(!V.ok)return;let _=g(await Pj(V,J));return JSON.stringify(_)},S=vj(async()=>{let J=await zj(I.QITQODE_MODELS_PATH??F);if(J)return J;let V=await import("./chunk-hwrrrbqd.js").then((_)=>g(_.snapshot)).catch(()=>{return});if(V)return V;if(I.QITQODE_DISABLE_MODELS_FETCH)return{};return Jj.withLock(`models-dev:${F}`,async()=>{let _=await zj(I.QITQODE_MODELS_PATH??F);if(_)return _;let $=await Tj();if($)return await i.write(F,$).catch((W)=>{Vj.error("Failed to write models cache",{error:W})}),g($);return{}})});async function fj(){return S()}async function jj(J=!1){if(Lj(J))return S.reset();await Jj.withLock(`models-dev:${F}`,async()=>{if(Lj(J))return S.reset();let V=await Tj();if(!V)return;await i.write(F,V),S.reset()}).catch((V)=>{Vj.error("Failed to fetch models.dev",{error:V})})}function sj(){if(T||I.QITQODE_DISABLE_MODELS_FETCH||process.argv.includes("--get-yargs-completions"))return;jj(),T=setInterval(async()=>{await jj()},3600000),T.unref()}function aj(){if(!T)return;clearInterval(T),T=void 0}
3
- export{_j as el,U as fl,Aj as gl,pj as hl,cj as il,Pj as jl,S as kl,fj as ll,jj as ml,sj as nl,aj as ol,tj as pl};
2
+ import{Ul as f,Vl as Gj,Wl as Rj,Xl as Hj,_l as s}from"./chunk-5r05d901.js";import{hp as xj}from"./chunk-msh249db.js";import{np as vj}from"./chunk-kmzpeq8k.js";import{rs as P,ss as wj,ys as k,zs as Kj}from"./chunk-z6kcnpsj.js";import{Dt as a,Et as y}from"./chunk-v3nmnm57.js";import{lu as I,uu as h}from"./chunk-mbbxedsq.js";import{Fu as i,Gu as Ij,Hu as Jj,Ku as Nj}from"./chunk-aa2n02qk.js";import{Lu as j}from"./chunk-k1x8469r.js";import{EI as Q,ZC as Wj,bG as o,rP as C,vL as l,wG as d}from"./chunk-tezrgfc6.js";import{SP as Mj,UP as Oj,WP as Ej}from"./chunk-f2pv705d.js";var tj={};Oj(tj,{stopRefresh:()=>aj,startRefresh:()=>sj,refresh:()=>jj,readModelCatalogResponse:()=>Pj,get:()=>fj,Provider:()=>cj,Model:()=>pj,MODEL_CATALOG_MAX_BYTES:()=>Aj,Data:()=>S});import hj from"path";var U={};Oj(U,{layer:()=>Bj,isPreview:()=>ij,isNewerVersion:()=>qj,isLocal:()=>mj,getReleaseType:()=>yj,defaultLayer:()=>uj,UpgradeFailedError:()=>x,USER_AGENT:()=>Sj,Service:()=>E,Installation:()=>U,Info:()=>Uj,Event:()=>Cj});var _j=(J)=>J.pipe(k.retryTransient({retryOn:"errors-and-responses",times:2,schedule:d.exponential(200).pipe(d.jittered)}));import Yj from"path";var z=Mj(xj(),1);import n from"crypto";import v from"fs";import Zj from"path";class H extends Error{constructor(J){super(J);this.name="SelfUpdateError"}}function $j(J){let V=J?.platform??process.platform,_=J?.arch??process.arch,$=J?.libc??"bionic",W=["qitqode",V==="win32"?"windows":V,_];if(_==="x64")W.push("baseline");if(V==="linux"&&$==="musl")W.push("musl");return`@qitqode/${W.join("-")}`}function kj(J,V){if(V.integrity){let _=V.integrity.match(/^(sha512|sha384|sha256)-([A-Za-z0-9+/=]+)$/);if(!_)throw new H(`registry returned an unrecognized integrity string: ${V.integrity}`);if(n.createHash(_[1]).update(J).digest("base64")!==_[2])throw new H(`checksum mismatch: downloaded tarball does not match the registry ${_[1]} integrity value; refusing to install`);return}if(V.shasum){if(n.createHash("sha1").update(J).digest("hex")!==V.shasum.toLowerCase())throw new H("checksum mismatch: downloaded tarball does not match the registry shasum; refusing to install");return}throw new H("registry provided no integrity metadata for the tarball; refusing to install")}function Qj(J,V){let _=(w,R)=>{let G=w,q=w+R;while(G<q&&J[G]!==0)G++;return new TextDecoder().decode(J.subarray(w,G))},$=0,W;while($+512<=J.length){if(J.subarray($,$+512).every((Z)=>Z===0))break;let R=_($+124,12).trim(),G=R?parseInt(R,8):0;if(!Number.isFinite(G)||G<0)throw new H("downloaded tarball is corrupt (bad tar header)");let q=String.fromCharCode(J[$+156]),B=_($,100),N=_($+345,155);if(N)B=`${N}/${B}`;if(W)B=W,W=void 0;let b=$+512,X=b+G;if(q==="L")W=new TextDecoder().decode(J.subarray(b,X)).replace(/\0+$/,"");else if((q==="0"||q==="\x00"||q==="")&&B===V)return J.slice(b,X);$=b+Math.ceil(G/512)*512}return}var A=(J)=>String(J instanceof Error?J.message:J),u=(J)=>Q.fail(new H(J)),p=(J,V)=>Q.try({try:J,catch:(_)=>new H(V(_))}),Xj=Q.fnUntraced(function*(J){let{target:V,execPath:_,packageName:$,registry:W}=J,w=J.gunzip??((K)=>Bun.gunzipSync(K)),R=Zj.dirname(_);yield*p(()=>v.accessSync(R,v.constants.W_OK),()=>`no write permission for ${R}; cannot replace ${_}. Fix the directory permissions or re-run with sufficient privileges.`);let G=`${W}/${$}/${encodeURIComponent(V)}`,B=(yield*J.fetchJson(G).pipe(Q.mapError((K)=>new H(`download failed: could not fetch ${$}@${V} from ${W} (${A(K)}). Check your network connection and that version ${V} exists.`))))?.dist;if(!B?.tarball)return yield*u(`registry response for ${$}@${V} has no tarball URL; cannot self-update`);let N=B.tarball,b=yield*J.fetchBytes(N).pipe(Q.mapError((K)=>new H(`download failed: could not download ${N} (${A(K)}). Check your network connection and try again.`)));yield*Q.try({try:()=>kj(b,B),catch:(K)=>K instanceof H?K:new H(A(K))});let X=yield*Q.try({try:()=>w(b),catch:()=>new H("downloaded tarball is corrupt (gunzip failed); try again")}),Z=Qj(X,"package/bin/qitqode")??Qj(X,"package/bin/qitqode.exe");if(!Z||Z.length===0)return yield*u(`tarball for ${$}@${V} does not contain the expected binary at bin/qitqode`);let O=Zj.join(R,`.qitqode-upgrade-${process.pid}`),Y=`${_}.backup-${process.pid}`,D=(K)=>{try{v.rmSync(K,{force:!0})}catch{}};yield*p(()=>v.writeFileSync(O,Z,{mode:493}),(K)=>{return D(O),`no write permission: could not write ${O} (${A(K)})`});let L=yield*J.runVersion(O).pipe(Q.mapError((K)=>{return D(O),new H(`downloaded binary failed its --version check (${A(K)}); keeping the current installation`)}));if(L.code!==0)return D(O),yield*u(`downloaded binary failed its --version check (exit ${L.code}); keeping the current installation`);let m=L.stdout.trim();if(m&&!m.includes(V))return D(O),yield*u(`downloaded binary reports version "${m}" instead of ${V}; keeping the current installation`);yield*p(()=>v.renameSync(_,Y),(K)=>{return D(O),`could not move the current binary aside (${A(K)}); check permissions on ${_}`}),yield*Q.try({try:()=>v.renameSync(O,_),catch:(K)=>{try{v.renameSync(Y,_)}catch{return new H(`failed to install the new binary AND failed to restore the old one; your previous binary is preserved at ${Y} \u2014 move it back to ${_} manually`)}return D(O),new H(`could not install the new binary (${A(K)}); the previous version was restored`)}}),D(Y)});var c=h.create({service:"installation"}),M="@qitqode/cli";function qj(J,V){if(!z.default.valid(J)||!z.default.valid(V))return!1;return z.default.gt(V,J)}var Cj={Updated:s.define("installation.updated",j.object({version:j.string()})),UpdateAvailable:s.define("installation.update-available",j.object({version:j.string()}))};function yj(J,V){if(!qj(J,V))throw Error(`Version ${V} is not newer than ${J}`);let _=z.default.major(J),$=z.default.minor(J),W=z.default.major(V),w=z.default.minor(V);if(W>_)return"major";if(w>$)return"minor";return"patch"}var Uj=j.object({version:j.string(),latest:j.string()}).meta({ref:"InstallationInfo"}),Sj=`qitqode/${y}/${a}/${I.QITQODE_CLIENT}`;function ij(){return y!=="latest"}function mj(){return y==="local"}class x extends C.TaggedErrorClass()("UpgradeFailedError",{stderr:C.String}){}var nj=C.Struct({version:C.String});class E extends Wj.Service()("@qitqode/Installation"){}var Bj=o.effect(E,Q.gen(function*(){let J=yield*k.HttpClient,V=k.filterStatusOk(_j(J)),_=yield*f.ChildProcessSpawner,$=(X,Z)=>Gj.make(X[0],X.slice(1),{cwd:Z?.cwd,env:Z?.env,extendEnv:!0}),W=Q.fnUntraced(function*(X){let Z=yield*Hj(_,X);return{code:Z.code,stdout:Z.text,stderr:Z.stderr}},Q.scoped),w=Q.fnUntraced(function*(X,Z){let O=yield*_.spawn($(X,Z)),Y=yield*l.mkString(l.decodeText(O.stdout));return yield*O.exitCode,Y},Q.scoped,Q.catch(()=>Q.succeed(""))),R=Q.fnUntraced(function*(X,Z){return yield*W($(X,Z))},Q.catch(()=>Q.succeed({code:f.ExitCode(1),stdout:"",stderr:""}))),G=Q.fn("Installation.method")(function*(){if(process.execPath.includes(Yj.join(".qitqode","bin")))return"curl";if(process.execPath.includes(Yj.join(".local","bin")))return"curl";let X=process.execPath.toLowerCase(),Z=[{name:"npm",command:()=>w(["npm","list","-g","--depth=0"])},{name:"pnpm",command:()=>w(["pnpm","list","-g","--depth=0"])},{name:"bun",command:()=>w(["bun","pm","ls","-g"])}];Z.sort((O,Y)=>{let D=X.includes(O.name),L=X.includes(Y.name);if(D&&!L)return-1;if(!D&&L)return 1;return 0});for(let O of Z)if((yield*O.command()).includes(M))return O.name;return"unknown"}),q=Q.fn("Installation.latest")(function*(X){let Z=X||(yield*G());if(Z==="curl"){let Y=(yield*w(["curl","-sI","https://github.com/qitqode/qitqode/releases/latest"])).match(/^location:.*\/tag\/v([0-9][^\s/]*)/im);if(Y)return Y[1];return yield*Q.die(Error("failed to resolve latest version from GitHub releases redirect"))}if(Z==="npm"||Z==="bun"||Z==="pnpm"){let Y=(yield*w(["npm","config","get","registry"])).trim()||"https://registry.npmjs.org",D=Y.endsWith("/")?Y.slice(0,-1):Y,L=yield*V.execute(P.get(`${D}/${encodeURIComponent(M)}/${y}`).pipe(P.acceptJson));return(yield*wj.schemaBodyJson(nj)(L)).version}return c.warn("unsupported update channel, skipping",{method:Z}),yield*Q.die(Error(`unsupported update channel: ${Z}`))},Q.orDie),B=Q.fnUntraced(function*(){let Z=(yield*w(["npm","config","get","registry"])).trim()||"https://registry.npmjs.org";return Z.endsWith("/")?Z.slice(0,-1):Z}),N=Q.fnUntraced(function*(X){let Z=yield*B();yield*Xj({target:X,execPath:process.env.QITQODE_SELF_UPDATE_TARGET_BINARY||process.execPath,packageName:$j(),registry:Z,fetchJson:(O)=>V.execute(P.get(O).pipe(P.acceptJson)).pipe(Q.flatMap((Y)=>Y.json)),fetchBytes:(O)=>V.execute(P.get(O)).pipe(Q.flatMap((Y)=>Y.arrayBuffer),Q.map((Y)=>new Uint8Array(Y))),runVersion:(O)=>R([O,"--version"]).pipe(Q.map((Y)=>({code:Y.code,stdout:Y.stdout})))}).pipe(Q.mapError((O)=>new x({stderr:O.message})))}),b=Q.fn("Installation.upgrade")(function*(X,Z){if(X==="curl"){yield*N(Z),c.info("upgraded",{method:X,target:Z});return}let Y=yield*(()=>{if(X==="npm")return R(["npm","install","-g",`${M}@${Z}`]);if(X==="pnpm")return R(["pnpm","install","-g",`${M}@${Z}`]);if(X==="bun")return R(["bun","install","-g",`${M}@${Z}`]);return new x({stderr:`Unknown method: ${X}`})})();if(Y.code!==0){let D=Y.stderr||"";return yield*new x({stderr:D})}c.info("upgraded",{method:X,target:Z,stdout:Y.stdout,stderr:Y.stderr}),yield*w([process.execPath,"--version"])});return E.of({info:Q.fn("Installation.info")(function*(){return{version:a,latest:yield*q()}}),method:G,latest:q,upgrade:b})})),uj=Bj.pipe(o.provide(Kj.layer),o.provide(Rj));var t=j.lazy(()=>j.union([j.string(),j.number(),j.boolean(),j.null(),j.array(t),j.record(j.string(),t)])),Dj=j.object({input:j.number(),output:j.number(),cache_read:j.number().optional(),cache_write:j.number().optional(),context_over_200k:j.object({input:j.number(),output:j.number(),cache_read:j.number().optional(),cache_write:j.number().optional()}).optional()}),r=j.object({id:j.string(),name:j.string(),family:j.string().optional(),release_date:j.string(),attachment:j.boolean(),reasoning:j.boolean(),temperature:j.boolean().optional(),tool_call:j.boolean(),interleaved:j.union([j.literal(!0),j.object({field:j.enum(["reasoning_content","reasoning_details"])}).strict()]).optional(),cost:Dj.optional(),limit:j.object({context:j.number(),input:j.number().optional(),output:j.number()}),modalities:j.object({input:j.array(j.enum(["text","audio","image","video","pdf"])),output:j.array(j.enum(["text","audio","image","video","pdf"]))}).optional(),experimental:j.object({modes:j.record(j.string(),j.object({cost:Dj.optional(),provider:j.object({body:j.record(j.string(),t).optional(),headers:j.record(j.string(),j.string()).optional()}).optional()})).optional()}).optional(),status:j.enum(["alpha","beta","deprecated"]).optional(),provider:j.object({npm:j.string().optional(),api:j.string().optional()}).optional()}),e=j.object({api:j.string().optional(),name:j.string(),env:j.array(j.string()),id:j.string(),npm:j.string().optional(),models:j.record(j.string(),r)});var Vj=h.create({service:"models.dev"}),bj=Fj(),F=hj.join(Nj.Path.cache,bj==="https://models.dev"?"models.json":`models-${Ij.fast(bj)}.json`),gj=300000,Aj=8388608,T,dj=j.record(j.string(),e),pj=r,cj=e;function Fj(){return I.QITQODE_MODELS_URL||"https://models.dev"}function lj(){return Date.now()-Number(i.stat(F)?.mtimeMs??0)<gj}function Lj(J){return!J&&lj()}function g(J){let V=dj.parse(typeof J==="string"?JSON.parse(J):J);for(let[_,$]of Object.entries(V))if($.id!==_)throw Error(`Invalid model provider: ${_}`);return V}async function zj(J){let V=await i.readJson(J).catch(()=>{return});if(!V)return;try{return g(V)}catch(_){Vj.warn("Ignoring invalid model catalog cache",{file:J,error:_});return}}async function Pj(J,V,_=Aj){let $=J.headers.get("content-type")?.split(";")[0]?.trim().toLowerCase();if($!=="application/json"&&!$?.endsWith("+json"))throw Error(`Invalid model catalog content type: ${$||"missing"}`);let W=Number(J.headers.get("content-length"));if(Number.isFinite(W)&&W>_)throw Error("Model catalog response is too large");if(!J.body)return"";let w=J.body.getReader(),R=()=>void w.cancel(V.reason);V.addEventListener("abort",R,{once:!0});let G=new Uint8Array(_),q=0;try{for(;;){let B=await w.read();if(B.done)break;if(q+=B.value.byteLength,q>_)throw await w.cancel(),Error("Model catalog response is too large");G.set(B.value,q-B.value.byteLength)}}finally{V.removeEventListener("abort",R)}return new TextDecoder().decode(G.subarray(0,q))}var Tj=async()=>{let J=AbortSignal.timeout(1e4),V=await fetch(`${Fj()}/api.json`,{headers:{"User-Agent":U.USER_AGENT},signal:J});if(!V.ok)return;let _=g(await Pj(V,J));return JSON.stringify(_)},S=vj(async()=>{let J=await zj(I.QITQODE_MODELS_PATH??F);if(J)return J;let V=await import("./chunk-mghnkwp8.js").then((_)=>g(_.snapshot)).catch(()=>{return});if(V)return V;if(I.QITQODE_DISABLE_MODELS_FETCH)return{};return Jj.withLock(`models-dev:${F}`,async()=>{let _=await zj(I.QITQODE_MODELS_PATH??F);if(_)return _;let $=await Tj();if($)return await i.write(F,$).catch((W)=>{Vj.error("Failed to write models cache",{error:W})}),g($);return{}})});async function fj(){return S()}async function jj(J=!1){if(Lj(J))return S.reset();await Jj.withLock(`models-dev:${F}`,async()=>{if(Lj(J))return S.reset();let V=await Tj();if(!V)return;await i.write(F,V),S.reset()}).catch((V)=>{Vj.error("Failed to fetch models.dev",{error:V})})}function sj(){if(T||I.QITQODE_DISABLE_MODELS_FETCH||process.argv.includes("--get-yargs-completions"))return;jj(),T=setInterval(async()=>{await jj()},3600000),T.unref()}function aj(){if(!T)return;clearInterval(T),T=void 0}
3
+ export{_j as fl,U as gl,Aj as hl,pj as il,cj as jl,Pj as kl,S as ll,fj as ml,jj as nl,sj as ol,aj as pl,tj as ql};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Cr as a,Dr as b,Er as c}from"./chunk-cth373se.js";import"./chunk-xcxqt8ag.js";import"./chunk-f2pv705d.js";export{a as openApp,c as default,b as apps};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-f2pv705d.js";var _="./libopentui-0r5w9btr.so";export{_ as default};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-f2pv705d.js";var e="./libopentui-xtk56e94.so";export{e as default};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{hv as o}from"./chunk-c3szabpf.js";var e=o;
3
+ export{e as Lu};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Qd as y,Sd as T,Td as t,Ud as O,Vd as l,Xd as v,Yd as Q,Zd as X,_d as J}from"./chunk-ff548b0j.js";import"./chunk-zc0cdvcv.js";import{ae as w}from"./chunk-5w76kdjr.js";import{dg as f}from"./chunk-eg3syjtv.js";import{Bh as q,Rg as Y,Sg as mt,Tg as pt,Ug as st,Vg as et,Wg as ft,Xg as E,jh as Mt}from"./chunk-v3nqkqhz.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import{Dj as L,dl as F,wj as nt}from"./chunk-52frd9p0.js";import"./chunk-xqnzmr7a.js";import{Nl as $}from"./chunk-r1xh50b2.js";import"./chunk-13rsd5vv.js";import"./chunk-mh19kwzw.js";import"./chunk-a9a0cwmf.js";import{ln as P,mn as h}from"./chunk-nw3e93y8.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-kn8w69g9.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-2b3fn9xv.js";import"./chunk-rn043d0r.js";import"./chunk-73r8bjjz.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-w2cb8cry.js";import{ds as g}from"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import{ft as D,kt as A}from"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import{eH as a}from"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import{sO as ut}from"./chunk-r9w0thdk.js";import W from"path";function G(o){switch(o){case"authenticated":return"\u2713";case"expired":return"\u26A0";case"not_authenticated":return"\u2717"}}function H(o){switch(o){case"authenticated":return"authenticated";case"expired":return"expired";case"not_authenticated":return"not authenticated"}}function N(o){return typeof o==="object"&&o!==null&&"type"in o}function k(o){return N(o)&&o.type==="remote"}function B(o){return Object.entries(o.mcp??{}).filter((e)=>N(e[1]))}function U(o,e){let r=o.mcp_origins?.[e];if(!r)return"qitqode";let i=A.Path.home,m=r.source===i?"~":r.source.startsWith(i+W.sep)?"~"+r.source.slice(i.length):r.source;return`${r.type}:${m}`}function C(o){return B(o).filter((e)=>k(e[1])&&e[1].oauth!==!1)}async function I(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*e.status(),m=yield*a.all(Object.fromEntries(B(r).map(([p])=>[p,e.hasStoredTokens(p)])),{concurrency:"unbounded"});return{config:r,statuses:i,stored:m}}))}async function S(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*a.all(Object.fromEntries(C(r).map(([m])=>[m,e.getAuthStatus(m)])),{concurrency:"unbounded"});return{config:r,auth:i}}))}async function V(o,e=!1){let r=[W.join(o,"qitqode.json"),W.join(o,"qitqode.jsonc")];if(!e)r.push(W.join(o,".qitqode","qitqode.json"),W.join(o,".qitqode","qitqode.jsonc"));for(let i of r)if(await D.exists(i))return i;return r[0]}async function R(o,e,r){let i="{}";if(await D.exists(r))i=await D.readText(r);let m=P(i,["mcp",o],e,{formattingOptions:{tabSize:2,insertSpaces:!0}});return await D.write(r,h(i,m)),r}var tt=ut(Mt(),1);function yt(o){let e=tt.parse(o);if(!e.every((r)=>typeof r==="string"))throw Error("Shell operators are not supported; enter only the command and its arguments");if(e.length===0)throw Error("Command is required");return e}var ot=w({command:"add",describe:"add an MCP server",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("Add MCP server");let o=$.project,[e,r]=await Promise.all([V($.worktree),V(A.Path.config,!0)]),i=r;if(o.vcs==="git"){let c=await X({message:"Location",options:[{label:"Current project",value:e,hint:e},{label:"Global",value:r,hint:r}]});if(y(c))throw new f.CancelledError;i=c}let m=await J({message:"Enter MCP server name",validate:(c)=>c&&c.length>0?void 0:"Required"});if(y(m))throw new f.CancelledError;let p=await X({message:"Select MCP server type",options:[{label:"Local",value:"local",hint:"Run a local command"},{label:"Remote",value:"remote",hint:"Connect to a remote URL"}]});if(y(p))throw new f.CancelledError;if(p==="local"){let c=await J({message:"Enter command to run",placeholder:"e.g., qitqode x @modelcontextprotocol/server-filesystem",validate:(s)=>s&&s.length>0?void 0:"Required"});if(y(c))throw new f.CancelledError;let u;try{u=yt(c)}catch(s){t.error(s instanceof Error?s.message:"Invalid command"),l("MCP server was not added");return}await R(m,{type:"local",command:u},i),t.success(`MCP server "${m}" added to ${i}`),l("MCP server added successfully");return}if(p==="remote"){let c=await J({message:"Enter MCP server URL",placeholder:"e.g., https://example.com/mcp",validate:(s)=>{if(!s)return"Required";if(s.length===0)return"Required";return URL.canParse(s)?void 0:"Invalid URL"}});if(y(c))throw new f.CancelledError;let u=await T({message:"Does this server require OAuth authentication?",initialValue:!1});if(y(u))throw new f.CancelledError;let n;if(u){let s=await T({message:"Do you have a pre-registered client ID?",initialValue:!1});if(y(s))throw new f.CancelledError;if(s){let d=await J({message:"Enter client ID",validate:(j)=>j&&j.length>0?void 0:"Required"});if(y(d))throw new f.CancelledError;let M=await T({message:"Do you have a client secret?",initialValue:!1});if(y(M))throw new f.CancelledError;let _;if(M){let j=await v({message:"Enter client secret"});if(y(j))throw new f.CancelledError;_=j}n={type:"remote",url:c,oauth:{clientId:d,..._&&{clientSecret:_}}}}else n={type:"remote",url:c,oauth:{}}}else n={type:"remote",url:c,oauth:!1};await R(m,n,i),t.success(`MCP server "${m}" added to ${i}`)}l("MCP server added successfully")}})}});var it=w({command:"list",aliases:["ls"],describe:"list MCP servers and their status",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP Servers");let{config:o,statuses:e,stored:r}=await I(),i=B(o);if(i.length===0){t.warn("No MCP servers configured"),l("Add servers with: qitqode mcp add");return}for(let[m,p]of i){let c=e[m],u=k(p)&&p.oauth!==!1,n=r[m],s,d,M="";if(!c)s="\u25CB",d="not initialized";else if(c.status==="connected"){if(s="\u2713",d="connected",u&&n)M=" (OAuth)"}else if(c.status==="disabled")s="\u25CB",d="disabled";else if(c.status==="pending")s="\u25CB",d="pending approval";else if(c.status==="needs_auth")s="\u26A0",d="needs authentication";else if(c.status==="needs_client_registration")s="\u2717",d="needs client registration",M=`
2
+ import{$d as J,Rd as y,Td as T,Ud as t,Vd as O,Wd as l,Yd as v,Zd as Q,_d as X}from"./chunk-hhk2sp5n.js";import"./chunk-4zhrg3rv.js";import{be as w}from"./chunk-f4mnp6xd.js";import{eg as f}from"./chunk-s06t769q.js";import{Ch as q,Sg as Y,Tg as mt,Ug as pt,Vg as st,Wg as et,Xg as ft,Yg as E,kh as Mt}from"./chunk-w43kmnm9.js";import"./chunk-nrk29616.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-wd8hbven.js";import"./chunk-drnj1a14.js";import{Ej as L,el as F,xj as nt}from"./chunk-9a6p1gdn.js";import"./chunk-jxkrhrp0.js";import{Ol as $}from"./chunk-6k14c8x1.js";import"./chunk-5r05d901.js";import"./chunk-3rgct4bd.js";import"./chunk-5b3v1x2c.js";import{Lo as P,Mo as h}from"./chunk-gbxf6e5d.js";import"./chunk-msh249db.js";import"./chunk-95am490c.js";import"./chunk-kmzpeq8k.js";import"./chunk-0gsw04hw.js";import"./chunk-hqjc4wgg.js";import"./chunk-makecdh6.js";import"./chunk-dy2k5rdx.js";import"./chunk-n5p7cn4w.js";import"./chunk-cqtkxwd8.js";import"./chunk-mhxyv9c8.js";import"./chunk-0crgymtr.js";import"./chunk-cth373se.js";import"./chunk-xcxqt8ag.js";import"./chunk-va2qfh0x.js";import"./chunk-ae7b11np.js";import"./chunk-eeq0krp7.js";import"./chunk-73xryfgn.js";import"./chunk-yjqww6ag.js";import"./chunk-z6kcnpsj.js";import"./chunk-ts2k13g0.js";import"./chunk-01e3v1xz.js";import"./chunk-dbpkq7ba.js";import"./chunk-z744mz4w.js";import"./chunk-vjn54xj5.js";import"./chunk-0qpqd7nz.js";import"./chunk-gdew7bwm.js";import{Dt as g}from"./chunk-v3nmnm57.js";import"./chunk-hwsqqkrv.js";import"./chunk-mbbxedsq.js";import{Fu as D,Ku as A}from"./chunk-aa2n02qk.js";import"./chunk-k1x8469r.js";import"./chunk-c3szabpf.js";import"./chunk-c8prg3jx.js";import"./chunk-t8sy5sgx.js";import{EI as a}from"./chunk-tezrgfc6.js";import"./chunk-wjz42325.js";import"./chunk-kry4vcrf.js";import{SP as ut}from"./chunk-f2pv705d.js";import W from"path";function G(o){switch(o){case"authenticated":return"\u2713";case"expired":return"\u26A0";case"not_authenticated":return"\u2717"}}function H(o){switch(o){case"authenticated":return"authenticated";case"expired":return"expired";case"not_authenticated":return"not authenticated"}}function N(o){return typeof o==="object"&&o!==null&&"type"in o}function k(o){return N(o)&&o.type==="remote"}function B(o){return Object.entries(o.mcp??{}).filter((e)=>N(e[1]))}function U(o,e){let r=o.mcp_origins?.[e];if(!r)return"qitqode";let i=A.Path.home,m=r.source===i?"~":r.source.startsWith(i+W.sep)?"~"+r.source.slice(i.length):r.source;return`${r.type}:${m}`}function C(o){return B(o).filter((e)=>k(e[1])&&e[1].oauth!==!1)}async function I(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*e.status(),m=yield*a.all(Object.fromEntries(B(r).map(([p])=>[p,e.hasStoredTokens(p)])),{concurrency:"unbounded"});return{config:r,statuses:i,stored:m}}))}async function S(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*a.all(Object.fromEntries(C(r).map(([m])=>[m,e.getAuthStatus(m)])),{concurrency:"unbounded"});return{config:r,auth:i}}))}async function V(o,e=!1){let r=[W.join(o,"qitqode.json"),W.join(o,"qitqode.jsonc")];if(!e)r.push(W.join(o,".qitqode","qitqode.json"),W.join(o,".qitqode","qitqode.jsonc"));for(let i of r)if(await D.exists(i))return i;return r[0]}async function R(o,e,r){let i="{}";if(await D.exists(r))i=await D.readText(r);let m=P(i,["mcp",o],e,{formattingOptions:{tabSize:2,insertSpaces:!0}});return await D.write(r,h(i,m)),r}var tt=ut(Mt(),1);function yt(o){let e=tt.parse(o);if(!e.every((r)=>typeof r==="string"))throw Error("Shell operators are not supported; enter only the command and its arguments");if(e.length===0)throw Error("Command is required");return e}var ot=w({command:"add",describe:"add an MCP server",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("Add MCP server");let o=$.project,[e,r]=await Promise.all([V($.worktree),V(A.Path.config,!0)]),i=r;if(o.vcs==="git"){let c=await X({message:"Location",options:[{label:"Current project",value:e,hint:e},{label:"Global",value:r,hint:r}]});if(y(c))throw new f.CancelledError;i=c}let m=await J({message:"Enter MCP server name",validate:(c)=>c&&c.length>0?void 0:"Required"});if(y(m))throw new f.CancelledError;let p=await X({message:"Select MCP server type",options:[{label:"Local",value:"local",hint:"Run a local command"},{label:"Remote",value:"remote",hint:"Connect to a remote URL"}]});if(y(p))throw new f.CancelledError;if(p==="local"){let c=await J({message:"Enter command to run",placeholder:"e.g., qitqode x @modelcontextprotocol/server-filesystem",validate:(s)=>s&&s.length>0?void 0:"Required"});if(y(c))throw new f.CancelledError;let u;try{u=yt(c)}catch(s){t.error(s instanceof Error?s.message:"Invalid command"),l("MCP server was not added");return}await R(m,{type:"local",command:u},i),t.success(`MCP server "${m}" added to ${i}`),l("MCP server added successfully");return}if(p==="remote"){let c=await J({message:"Enter MCP server URL",placeholder:"e.g., https://example.com/mcp",validate:(s)=>{if(!s)return"Required";if(s.length===0)return"Required";return URL.canParse(s)?void 0:"Invalid URL"}});if(y(c))throw new f.CancelledError;let u=await T({message:"Does this server require OAuth authentication?",initialValue:!1});if(y(u))throw new f.CancelledError;let n;if(u){let s=await T({message:"Do you have a pre-registered client ID?",initialValue:!1});if(y(s))throw new f.CancelledError;if(s){let d=await J({message:"Enter client ID",validate:(j)=>j&&j.length>0?void 0:"Required"});if(y(d))throw new f.CancelledError;let M=await T({message:"Do you have a client secret?",initialValue:!1});if(y(M))throw new f.CancelledError;let _;if(M){let j=await v({message:"Enter client secret"});if(y(j))throw new f.CancelledError;_=j}n={type:"remote",url:c,oauth:{clientId:d,..._&&{clientSecret:_}}}}else n={type:"remote",url:c,oauth:{}}}else n={type:"remote",url:c,oauth:!1};await R(m,n,i),t.success(`MCP server "${m}" added to ${i}`)}l("MCP server added successfully")}})}});var it=w({command:"list",aliases:["ls"],describe:"list MCP servers and their status",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP Servers");let{config:o,statuses:e,stored:r}=await I(),i=B(o);if(i.length===0){t.warn("No MCP servers configured"),l("Add servers with: qitqode mcp add");return}for(let[m,p]of i){let c=e[m],u=k(p)&&p.oauth!==!1,n=r[m],s,d,M="";if(!c)s="\u25CB",d="not initialized";else if(c.status==="connected"){if(s="\u2713",d="connected",u&&n)M=" (OAuth)"}else if(c.status==="disabled")s="\u25CB",d="disabled";else if(c.status==="pending")s="\u25CB",d="pending approval";else if(c.status==="needs_auth")s="\u26A0",d="needs authentication";else if(c.status==="needs_client_registration")s="\u2717",d="needs client registration",M=`
3
3
  `+c.error;else s="\u2717",d="failed",M=`
4
4
  `+c.error;let _=p.type==="remote"?L.redactString(p.url):L.redactCommand(p.command).join(" ");t.info(`${s} ${m} ${f.Style.TEXT_DIM}${d} ${U(o,m)}${M}
5
5
  ${f.Style.TEXT_DIM}${_}`)}l(`${i.length} server(s)`)}})}});var dt=w({command:"auth [name]",describe:"authenticate with an OAuth-enabled MCP server",builder:(o)=>o.positional("name",{describe:"name of the MCP server",type:"string"}).command(ct),async handler(o){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP OAuth Authentication");let{config:e,auth:r}=await S(),i=e.mcp??{},m=C(e);if(m.length===0){t.warn("No OAuth-capable MCP servers configured"),t.info("Remote MCP servers support OAuth by default. Add a remote server in qitqode.json:"),t.info(`
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-r9w0thdk.js";var e={"ui.sessionReview.title":"Sessions\xE6ndringer","ui.sessionReview.title.lastTurn":"\xC6ndringer fra sidste tur","ui.sessionReview.diffStyle.unified":"Samlet","ui.sessionReview.diffStyle.split":"Opdelt","ui.sessionReview.openFile":"\xC5bn fil","ui.sessionReview.selection.line":"linje {{line}}","ui.sessionReview.selection.lines":"linjer {{start}}-{{end}}","ui.sessionReview.expandAll":"Udvid alle","ui.sessionReview.collapseAll":"Skjul alle","ui.sessionReview.change.added":"Tilf\xF8jet","ui.sessionReview.change.removed":"Fjernet","ui.sessionReview.change.modified":"\xC6ndret","ui.sessionReview.image.loading":"Indl\xE6ser...","ui.sessionReview.image.placeholder":"Billede","ui.sessionReview.largeDiff.title":"Diff er for stor til at blive vist","ui.sessionReview.largeDiff.meta":"Gr\xE6nse: {{limit}} \xE6ndrede linjer. Nuv\xE6rende: {{current}} \xE6ndrede linjer.","ui.sessionReview.largeDiff.renderAnyway":"Vis alligevel","ui.fileMedia.kind.image":"billede","ui.fileMedia.kind.audio":"lyd","ui.fileMedia.state.removed":"Fjernet: {{kind}}","ui.fileMedia.state.loading":"Indl\xE6ser {{kind}}...","ui.fileMedia.state.error":"Fejl ved indl\xE6sning: {{kind}}","ui.fileMedia.state.unavailable":"Utilg\xE6ngelig: {{kind}}","ui.fileMedia.binary.title":"Bin\xE6r fil","ui.fileMedia.binary.description.path":"{{path}} kan ikke vises, fordi det er en bin\xE6r fil.","ui.fileMedia.binary.description.default":"Denne fil kan ikke vises, fordi det er en bin\xE6r fil.","ui.lineComment.label.prefix":"Kommenter p\xE5 ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Kommenterer p\xE5 ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Tilf\xF8j kommentar","ui.lineComment.submit":"Kommenter","ui.sessionTurn.steps.show":"Vis trin","ui.sessionTurn.steps.hide":"Skjul trin","ui.sessionTurn.summary.response":"Svar","ui.sessionTurn.diff.showMore":"Vis flere \xE6ndringer ({{count}})","ui.sessionTurn.retry.retrying":"pr\xF8ver igen","ui.sessionTurn.retry.inSeconds":"om {{seconds}}s","ui.sessionTurn.retry.attempt":"fors\xF8g #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - fors\xF8g #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini er meget overbelastet lige nu","ui.sessionTurn.error.freeUsageExceeded":"Gratis forbrug overskredet","ui.sessionTurn.error.addQredits":"Tilf\xF8j kreditter","ui.sessionTurn.status.delegating":"Delegerer arbejde","ui.sessionTurn.status.planning":"Planl\xE6gger n\xE6ste trin","ui.sessionTurn.status.gatheringContext":"Udforsker","ui.sessionTurn.status.gatheredContext":"Udforsket","ui.sessionTurn.status.searchingCodebase":"S\xF8ger i koden","ui.sessionTurn.status.searchingWeb":"S\xF8ger p\xE5 nettet","ui.sessionTurn.status.makingEdits":"Laver \xE6ndringer","ui.sessionTurn.status.runningCommands":"K\xF8rer kommandoer","ui.sessionTurn.status.thinking":"T\xE6nker","ui.sessionTurn.status.thinkingWithTopic":"T\xE6nker - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Samler tanker","ui.sessionTurn.status.consideringNextSteps":"Overvejer n\xE6ste skridt","ui.messagePart.questions.dismissed":"Sp\xF8rgsm\xE5l afvist","ui.messagePart.compaction":"Session komprimeret","ui.messagePart.context.read.one":"{{count}} l\xE6sning","ui.messagePart.context.read.other":"{{count}} l\xE6sninger","ui.messagePart.context.search.one":"{{count}} s\xF8gning","ui.messagePart.context.search.other":"{{count}} s\xF8gninger","ui.messagePart.context.list.one":"{{count}} liste","ui.messagePart.context.list.other":"{{count}} lister","ui.messagePart.diagnostic.error":"Fejl","ui.messagePart.title.edit":"Rediger","ui.messagePart.title.write":"Skriv","ui.messagePart.option.typeOwnAnswer":"Skriv dit eget svar","ui.messagePart.review.title":"Gennemg\xE5 dine svar","ui.list.loading":"Indl\xE6ser","ui.list.empty":"Ingen resultater","ui.list.clearFilter":"Ryd filter","ui.list.emptyWithFilter.prefix":"Ingen resultater for","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Ny besked","ui.textField.copyToClipboard":"Kopier til udklipsholder","ui.textField.copyLink":"Kopier link","ui.textField.copied":"Kopieret","ui.imagePreview.alt":"Billedforh\xE5ndsvisning","ui.scrollView.ariaLabel":"rulbart indhold","ui.tool.read":"L\xE6s","ui.tool.loaded":"Indl\xE6st","ui.tool.list":"Liste","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webhentning","ui.tool.websearch":"Webs\xF8gning","ui.tool.codesearch":"Kodes\xF8gning","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Opgaver","ui.tool.todos.read":"L\xE6s opgaver","ui.tool.questions":"Sp\xF8rgsm\xE5l","ui.tool.agent":"{{type}} Agent","ui.tool.agent.default":"Agent","ui.common.file.one":"fil","ui.common.file.other":"filer","ui.common.question.one":"sp\xF8rgsm\xE5l","ui.common.question.other":"sp\xF8rgsm\xE5l","ui.common.add":"Tilf\xF8j","ui.common.back":"Tilbage","ui.common.cancel":"Annuller","ui.common.confirm":"Bekr\xE6ft","ui.common.dismiss":"Afvis","ui.common.close":"Luk","ui.common.next":"N\xE6ste","ui.common.submit":"Indsend","ui.permission.deny":"Afvis","ui.permission.allowAlways":"Tillad altid","ui.permission.allowOnce":"Tillad \xE9n gang","ui.message.expand":"Udvid besked","ui.message.collapse":"Skjul besked","ui.message.copy":"Kopier","ui.message.copyMessage":"Kopier besked","ui.message.forkMessage":"Forgren til ny session","ui.message.revertMessage":"Nulstil til dette punkt","ui.message.copyResponse":"Kopier svar","ui.message.copied":"Kopieret!","ui.message.interrupted":"Afbrudt","ui.message.queued":"I k\xF8","ui.message.attachment.alt":"vedh\xE6ftning","ui.patch.action.deleted":"Slettet","ui.patch.action.created":"Oprettet","ui.patch.action.moved":"Flyttet","ui.patch.action.patched":"Patchet","ui.question.subtitle.answered":"{{count}} besvaret","ui.question.answer.none":"(intet svar)","ui.question.review.notAnswered":"(ikke besvaret)","ui.question.multiHint":"V\xE6lg alle der g\xE6lder","ui.question.singleHint":"V\xE6lg \xE9t svar","ui.question.custom.placeholder":"Skriv dit svar...","ui.fileSearch.placeholder":"Find","ui.fileSearch.previousMatch":"Forrige match","ui.fileSearch.nextMatch":"N\xE6ste match","ui.fileSearch.close":"Luk s\xF8gning","ui.tool.task":"Opgave","ui.tool.skill":"F\xE6rdighed","ui.basicTool.called":"Kaldte `{{tool}}`","ui.toolErrorCard.failed":"Fejlede","ui.toolErrorCard.copyError":"Kopier fejl","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
2
+ import"./chunk-f2pv705d.js";var e={"ui.sessionReview.title":"Sessions\xE6ndringer","ui.sessionReview.title.lastTurn":"\xC6ndringer fra sidste tur","ui.sessionReview.diffStyle.unified":"Samlet","ui.sessionReview.diffStyle.split":"Opdelt","ui.sessionReview.openFile":"\xC5bn fil","ui.sessionReview.selection.line":"linje {{line}}","ui.sessionReview.selection.lines":"linjer {{start}}-{{end}}","ui.sessionReview.expandAll":"Udvid alle","ui.sessionReview.collapseAll":"Skjul alle","ui.sessionReview.change.added":"Tilf\xF8jet","ui.sessionReview.change.removed":"Fjernet","ui.sessionReview.change.modified":"\xC6ndret","ui.sessionReview.image.loading":"Indl\xE6ser...","ui.sessionReview.image.placeholder":"Billede","ui.sessionReview.largeDiff.title":"Diff er for stor til at blive vist","ui.sessionReview.largeDiff.meta":"Gr\xE6nse: {{limit}} \xE6ndrede linjer. Nuv\xE6rende: {{current}} \xE6ndrede linjer.","ui.sessionReview.largeDiff.renderAnyway":"Vis alligevel","ui.fileMedia.kind.image":"billede","ui.fileMedia.kind.audio":"lyd","ui.fileMedia.state.removed":"Fjernet: {{kind}}","ui.fileMedia.state.loading":"Indl\xE6ser {{kind}}...","ui.fileMedia.state.error":"Fejl ved indl\xE6sning: {{kind}}","ui.fileMedia.state.unavailable":"Utilg\xE6ngelig: {{kind}}","ui.fileMedia.binary.title":"Bin\xE6r fil","ui.fileMedia.binary.description.path":"{{path}} kan ikke vises, fordi det er en bin\xE6r fil.","ui.fileMedia.binary.description.default":"Denne fil kan ikke vises, fordi det er en bin\xE6r fil.","ui.lineComment.label.prefix":"Kommenter p\xE5 ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Kommenterer p\xE5 ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Tilf\xF8j kommentar","ui.lineComment.submit":"Kommenter","ui.sessionTurn.steps.show":"Vis trin","ui.sessionTurn.steps.hide":"Skjul trin","ui.sessionTurn.summary.response":"Svar","ui.sessionTurn.diff.showMore":"Vis flere \xE6ndringer ({{count}})","ui.sessionTurn.retry.retrying":"pr\xF8ver igen","ui.sessionTurn.retry.inSeconds":"om {{seconds}}s","ui.sessionTurn.retry.attempt":"fors\xF8g #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - fors\xF8g #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini er meget overbelastet lige nu","ui.sessionTurn.error.freeUsageExceeded":"Gratis forbrug overskredet","ui.sessionTurn.error.addQredits":"Tilf\xF8j kreditter","ui.sessionTurn.status.delegating":"Delegerer arbejde","ui.sessionTurn.status.planning":"Planl\xE6gger n\xE6ste trin","ui.sessionTurn.status.gatheringContext":"Udforsker","ui.sessionTurn.status.gatheredContext":"Udforsket","ui.sessionTurn.status.searchingCodebase":"S\xF8ger i koden","ui.sessionTurn.status.searchingWeb":"S\xF8ger p\xE5 nettet","ui.sessionTurn.status.makingEdits":"Laver \xE6ndringer","ui.sessionTurn.status.runningCommands":"K\xF8rer kommandoer","ui.sessionTurn.status.thinking":"T\xE6nker","ui.sessionTurn.status.thinkingWithTopic":"T\xE6nker - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Samler tanker","ui.sessionTurn.status.consideringNextSteps":"Overvejer n\xE6ste skridt","ui.messagePart.questions.dismissed":"Sp\xF8rgsm\xE5l afvist","ui.messagePart.compaction":"Session komprimeret","ui.messagePart.context.read.one":"{{count}} l\xE6sning","ui.messagePart.context.read.other":"{{count}} l\xE6sninger","ui.messagePart.context.search.one":"{{count}} s\xF8gning","ui.messagePart.context.search.other":"{{count}} s\xF8gninger","ui.messagePart.context.list.one":"{{count}} liste","ui.messagePart.context.list.other":"{{count}} lister","ui.messagePart.diagnostic.error":"Fejl","ui.messagePart.title.edit":"Rediger","ui.messagePart.title.write":"Skriv","ui.messagePart.option.typeOwnAnswer":"Skriv dit eget svar","ui.messagePart.review.title":"Gennemg\xE5 dine svar","ui.list.loading":"Indl\xE6ser","ui.list.empty":"Ingen resultater","ui.list.clearFilter":"Ryd filter","ui.list.emptyWithFilter.prefix":"Ingen resultater for","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Ny besked","ui.textField.copyToClipboard":"Kopier til udklipsholder","ui.textField.copyLink":"Kopier link","ui.textField.copied":"Kopieret","ui.imagePreview.alt":"Billedforh\xE5ndsvisning","ui.scrollView.ariaLabel":"rulbart indhold","ui.tool.read":"L\xE6s","ui.tool.loaded":"Indl\xE6st","ui.tool.list":"Liste","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webhentning","ui.tool.websearch":"Webs\xF8gning","ui.tool.codesearch":"Kodes\xF8gning","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Opgaver","ui.tool.todos.read":"L\xE6s opgaver","ui.tool.questions":"Sp\xF8rgsm\xE5l","ui.tool.agent":"{{type}} Agent","ui.tool.agent.default":"Agent","ui.common.file.one":"fil","ui.common.file.other":"filer","ui.common.question.one":"sp\xF8rgsm\xE5l","ui.common.question.other":"sp\xF8rgsm\xE5l","ui.common.add":"Tilf\xF8j","ui.common.back":"Tilbage","ui.common.cancel":"Annuller","ui.common.confirm":"Bekr\xE6ft","ui.common.dismiss":"Afvis","ui.common.close":"Luk","ui.common.next":"N\xE6ste","ui.common.submit":"Indsend","ui.permission.deny":"Afvis","ui.permission.allowAlways":"Tillad altid","ui.permission.allowOnce":"Tillad \xE9n gang","ui.message.expand":"Udvid besked","ui.message.collapse":"Skjul besked","ui.message.copy":"Kopier","ui.message.copyMessage":"Kopier besked","ui.message.forkMessage":"Forgren til ny session","ui.message.revertMessage":"Nulstil til dette punkt","ui.message.copyResponse":"Kopier svar","ui.message.copied":"Kopieret!","ui.message.interrupted":"Afbrudt","ui.message.queued":"I k\xF8","ui.message.attachment.alt":"vedh\xE6ftning","ui.patch.action.deleted":"Slettet","ui.patch.action.created":"Oprettet","ui.patch.action.moved":"Flyttet","ui.patch.action.patched":"Patchet","ui.question.subtitle.answered":"{{count}} besvaret","ui.question.answer.none":"(intet svar)","ui.question.review.notAnswered":"(ikke besvaret)","ui.question.multiHint":"V\xE6lg alle der g\xE6lder","ui.question.singleHint":"V\xE6lg \xE9t svar","ui.question.custom.placeholder":"Skriv dit svar...","ui.fileSearch.placeholder":"Find","ui.fileSearch.previousMatch":"Forrige match","ui.fileSearch.nextMatch":"N\xE6ste match","ui.fileSearch.close":"Luk s\xF8gning","ui.tool.task":"Opgave","ui.tool.skill":"F\xE6rdighed","ui.basicTool.called":"Kaldte `{{tool}}`","ui.toolErrorCard.failed":"Fejlede","ui.toolErrorCard.copyError":"Kopier fejl","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-8wwdrwf2.js";import"./chunk-r9w0thdk.js";var e={"ui.sessionReview.title":"Sesjonsendringer","ui.sessionReview.title.lastTurn":"Endringer i siste tur","ui.sessionReview.diffStyle.unified":"Samlet","ui.sessionReview.diffStyle.split":"Delt","ui.sessionReview.openFile":"\xC5pne fil","ui.sessionReview.selection.line":"linje {{line}}","ui.sessionReview.selection.lines":"linjer {{start}}-{{end}}","ui.sessionReview.expandAll":"Utvid alle","ui.sessionReview.collapseAll":"Fold sammen alle","ui.sessionReview.change.added":"Lagt til","ui.sessionReview.change.removed":"Fjernet","ui.sessionReview.change.modified":"Endret","ui.sessionReview.image.loading":"Laster...","ui.sessionReview.image.placeholder":"Bilde","ui.sessionReview.largeDiff.title":"Diff er for stor til \xE5 gjengi","ui.sessionReview.largeDiff.meta":"Grense: {{limit}} endrede linjer. N\xE5v\xE6rende: {{current}} endrede linjer.","ui.sessionReview.largeDiff.renderAnyway":"Gjengi likevel","ui.fileMedia.kind.image":"bilde","ui.fileMedia.kind.audio":"lyd","ui.fileMedia.state.removed":"Fjernet: {{kind}}","ui.fileMedia.state.loading":"Laster inn {{kind}}...","ui.fileMedia.state.error":"Feil ved innlasting: {{kind}}","ui.fileMedia.state.unavailable":"Ikke tilgjengelig: {{kind}}","ui.fileMedia.binary.title":"Bin\xE6rfil","ui.fileMedia.binary.description.path":"{{path}} kan ikke vises fordi det er en bin\xE6rfil.","ui.fileMedia.binary.description.default":"Denne filen kan ikke vises fordi det er en bin\xE6rfil.","ui.lineComment.label.prefix":"Kommenter p\xE5 ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Kommenterer p\xE5 ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Legg til kommentar","ui.lineComment.submit":"Kommenter","ui.sessionTurn.steps.show":"Vis trinn","ui.sessionTurn.steps.hide":"Skjul trinn","ui.sessionTurn.summary.response":"Svar","ui.sessionTurn.diff.showMore":"Vis flere endringer ({{count}})","ui.sessionTurn.retry.retrying":"Pr\xF8ver igjen","ui.sessionTurn.retry.inSeconds":"om {{seconds}}s","ui.sessionTurn.retry.attempt":"fors\xF8k #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - fors\xF8k #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini er veldig overbelastet n\xE5","ui.sessionTurn.error.freeUsageExceeded":"Gratis bruk overskredet","ui.sessionTurn.error.addQredits":"Legg til kreditt","ui.sessionTurn.status.delegating":"Delegerer arbeid","ui.sessionTurn.status.planning":"Planlegger neste trinn","ui.sessionTurn.status.gatheringContext":"Utforsker","ui.sessionTurn.status.gatheredContext":"Utforsket","ui.sessionTurn.status.searchingCodebase":"S\xF8ker i kodebasen","ui.sessionTurn.status.searchingWeb":"S\xF8ker p\xE5 nettet","ui.sessionTurn.status.makingEdits":"Gj\xF8r endringer","ui.sessionTurn.status.runningCommands":"Kj\xF8rer kommandoer","ui.sessionTurn.status.thinking":"Tenker","ui.sessionTurn.status.thinkingWithTopic":"Tenker - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Samler tanker","ui.sessionTurn.status.consideringNextSteps":"Vurderer neste trinn","ui.messagePart.questions.dismissed":"Sp\xF8rsm\xE5l avvist","ui.messagePart.compaction":"\xD8kt komprimert","ui.messagePart.context.read.one":"{{count}} lest","ui.messagePart.context.read.other":"{{count}} lest","ui.messagePart.context.search.one":"{{count}} s\xF8k","ui.messagePart.context.search.other":"{{count}} s\xF8k","ui.messagePart.context.list.one":"{{count}} liste","ui.messagePart.context.list.other":"{{count}} lister","ui.messagePart.diagnostic.error":"Feil","ui.messagePart.title.edit":"Rediger","ui.messagePart.title.write":"Skriv","ui.messagePart.option.typeOwnAnswer":"Skriv ditt eget svar","ui.messagePart.review.title":"Gjennomg\xE5 svarene dine","ui.list.loading":"Laster","ui.list.empty":"Ingen resultater","ui.list.clearFilter":"T\xF8m filter","ui.list.emptyWithFilter.prefix":"Ingen resultater for","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Ny melding","ui.textField.copyToClipboard":"Kopier til utklippstavlen","ui.textField.copyLink":"Kopier lenke","ui.textField.copied":"Kopiert","ui.imagePreview.alt":"Bildeforh\xE5ndsvisning","ui.scrollView.ariaLabel":"rullbart innhold","ui.tool.read":"Les","ui.tool.loaded":"Lastet","ui.tool.list":"Liste","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webhenting","ui.tool.websearch":"Netts\xF8k","ui.tool.codesearch":"Kodes\xF8k","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Gj\xF8rem\xE5l","ui.tool.todos.read":"Les gj\xF8rem\xE5l","ui.tool.questions":"Sp\xF8rsm\xE5l","ui.tool.agent":"{{type}}-agent","ui.tool.agent.default":"Agent","ui.common.file.one":"fil","ui.common.file.other":"filer","ui.common.question.one":"sp\xF8rsm\xE5l","ui.common.question.other":"sp\xF8rsm\xE5l","ui.common.add":"Legg til","ui.common.back":"Tilbake","ui.common.cancel":"Avbryt","ui.common.confirm":"Bekreft","ui.common.dismiss":"Avvis","ui.common.close":"Lukk","ui.common.next":"Neste","ui.common.submit":"Send inn","ui.permission.deny":"Avsl\xE5","ui.permission.allowAlways":"Tillat alltid","ui.permission.allowOnce":"Tillat \xE9n gang","ui.message.expand":"Utvid melding","ui.message.collapse":"Skjul melding","ui.message.copy":"Kopier","ui.message.copyMessage":"Kopier melding","ui.message.forkMessage":"Forgren til ny sesjon","ui.message.revertMessage":"Tilbakestill til dette punktet","ui.message.copyResponse":"Kopier svar","ui.message.copied":"Kopiert!","ui.message.interrupted":"Avbrutt","ui.message.queued":"I k\xF8","ui.message.attachment.alt":"vedlegg","ui.patch.action.deleted":"Slettet","ui.patch.action.created":"Opprettet","ui.patch.action.moved":"Flyttet","ui.patch.action.patched":"Oppdatert","ui.question.subtitle.answered":"{{count}} besvart","ui.question.answer.none":"(ingen svar)","ui.question.review.notAnswered":"(ikke besvart)","ui.question.multiHint":"Velg alle som gjelder","ui.question.singleHint":"Velg ett svar","ui.question.custom.placeholder":"Skriv svaret ditt...","ui.fileSearch.placeholder":"Finn","ui.fileSearch.previousMatch":"Forrige treff","ui.fileSearch.nextMatch":"Neste treff","ui.fileSearch.close":"Lukk s\xF8k","ui.tool.task":"Oppgave","ui.tool.skill":"Ferdighet","ui.basicTool.called":"Kalte `{{tool}}`","ui.toolErrorCard.failed":"Mislyktes","ui.toolErrorCard.copyError":"Kopier feil","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
2
+ import"./chunk-8p0t8qah.js";import"./chunk-f2pv705d.js";var e={"ui.sessionReview.title":"Sesjonsendringer","ui.sessionReview.title.lastTurn":"Endringer i siste tur","ui.sessionReview.diffStyle.unified":"Samlet","ui.sessionReview.diffStyle.split":"Delt","ui.sessionReview.openFile":"\xC5pne fil","ui.sessionReview.selection.line":"linje {{line}}","ui.sessionReview.selection.lines":"linjer {{start}}-{{end}}","ui.sessionReview.expandAll":"Utvid alle","ui.sessionReview.collapseAll":"Fold sammen alle","ui.sessionReview.change.added":"Lagt til","ui.sessionReview.change.removed":"Fjernet","ui.sessionReview.change.modified":"Endret","ui.sessionReview.image.loading":"Laster...","ui.sessionReview.image.placeholder":"Bilde","ui.sessionReview.largeDiff.title":"Diff er for stor til \xE5 gjengi","ui.sessionReview.largeDiff.meta":"Grense: {{limit}} endrede linjer. N\xE5v\xE6rende: {{current}} endrede linjer.","ui.sessionReview.largeDiff.renderAnyway":"Gjengi likevel","ui.fileMedia.kind.image":"bilde","ui.fileMedia.kind.audio":"lyd","ui.fileMedia.state.removed":"Fjernet: {{kind}}","ui.fileMedia.state.loading":"Laster inn {{kind}}...","ui.fileMedia.state.error":"Feil ved innlasting: {{kind}}","ui.fileMedia.state.unavailable":"Ikke tilgjengelig: {{kind}}","ui.fileMedia.binary.title":"Bin\xE6rfil","ui.fileMedia.binary.description.path":"{{path}} kan ikke vises fordi det er en bin\xE6rfil.","ui.fileMedia.binary.description.default":"Denne filen kan ikke vises fordi det er en bin\xE6rfil.","ui.lineComment.label.prefix":"Kommenter p\xE5 ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Kommenterer p\xE5 ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Legg til kommentar","ui.lineComment.submit":"Kommenter","ui.sessionTurn.steps.show":"Vis trinn","ui.sessionTurn.steps.hide":"Skjul trinn","ui.sessionTurn.summary.response":"Svar","ui.sessionTurn.diff.showMore":"Vis flere endringer ({{count}})","ui.sessionTurn.retry.retrying":"Pr\xF8ver igjen","ui.sessionTurn.retry.inSeconds":"om {{seconds}}s","ui.sessionTurn.retry.attempt":"fors\xF8k #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - fors\xF8k #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini er veldig overbelastet n\xE5","ui.sessionTurn.error.freeUsageExceeded":"Gratis bruk overskredet","ui.sessionTurn.error.addQredits":"Legg til kreditt","ui.sessionTurn.status.delegating":"Delegerer arbeid","ui.sessionTurn.status.planning":"Planlegger neste trinn","ui.sessionTurn.status.gatheringContext":"Utforsker","ui.sessionTurn.status.gatheredContext":"Utforsket","ui.sessionTurn.status.searchingCodebase":"S\xF8ker i kodebasen","ui.sessionTurn.status.searchingWeb":"S\xF8ker p\xE5 nettet","ui.sessionTurn.status.makingEdits":"Gj\xF8r endringer","ui.sessionTurn.status.runningCommands":"Kj\xF8rer kommandoer","ui.sessionTurn.status.thinking":"Tenker","ui.sessionTurn.status.thinkingWithTopic":"Tenker - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Samler tanker","ui.sessionTurn.status.consideringNextSteps":"Vurderer neste trinn","ui.messagePart.questions.dismissed":"Sp\xF8rsm\xE5l avvist","ui.messagePart.compaction":"\xD8kt komprimert","ui.messagePart.context.read.one":"{{count}} lest","ui.messagePart.context.read.other":"{{count}} lest","ui.messagePart.context.search.one":"{{count}} s\xF8k","ui.messagePart.context.search.other":"{{count}} s\xF8k","ui.messagePart.context.list.one":"{{count}} liste","ui.messagePart.context.list.other":"{{count}} lister","ui.messagePart.diagnostic.error":"Feil","ui.messagePart.title.edit":"Rediger","ui.messagePart.title.write":"Skriv","ui.messagePart.option.typeOwnAnswer":"Skriv ditt eget svar","ui.messagePart.review.title":"Gjennomg\xE5 svarene dine","ui.list.loading":"Laster","ui.list.empty":"Ingen resultater","ui.list.clearFilter":"T\xF8m filter","ui.list.emptyWithFilter.prefix":"Ingen resultater for","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Ny melding","ui.textField.copyToClipboard":"Kopier til utklippstavlen","ui.textField.copyLink":"Kopier lenke","ui.textField.copied":"Kopiert","ui.imagePreview.alt":"Bildeforh\xE5ndsvisning","ui.scrollView.ariaLabel":"rullbart innhold","ui.tool.read":"Les","ui.tool.loaded":"Lastet","ui.tool.list":"Liste","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webhenting","ui.tool.websearch":"Netts\xF8k","ui.tool.codesearch":"Kodes\xF8k","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Gj\xF8rem\xE5l","ui.tool.todos.read":"Les gj\xF8rem\xE5l","ui.tool.questions":"Sp\xF8rsm\xE5l","ui.tool.agent":"{{type}}-agent","ui.tool.agent.default":"Agent","ui.common.file.one":"fil","ui.common.file.other":"filer","ui.common.question.one":"sp\xF8rsm\xE5l","ui.common.question.other":"sp\xF8rsm\xE5l","ui.common.add":"Legg til","ui.common.back":"Tilbake","ui.common.cancel":"Avbryt","ui.common.confirm":"Bekreft","ui.common.dismiss":"Avvis","ui.common.close":"Lukk","ui.common.next":"Neste","ui.common.submit":"Send inn","ui.permission.deny":"Avsl\xE5","ui.permission.allowAlways":"Tillat alltid","ui.permission.allowOnce":"Tillat \xE9n gang","ui.message.expand":"Utvid melding","ui.message.collapse":"Skjul melding","ui.message.copy":"Kopier","ui.message.copyMessage":"Kopier melding","ui.message.forkMessage":"Forgren til ny sesjon","ui.message.revertMessage":"Tilbakestill til dette punktet","ui.message.copyResponse":"Kopier svar","ui.message.copied":"Kopiert!","ui.message.interrupted":"Avbrutt","ui.message.queued":"I k\xF8","ui.message.attachment.alt":"vedlegg","ui.patch.action.deleted":"Slettet","ui.patch.action.created":"Opprettet","ui.patch.action.moved":"Flyttet","ui.patch.action.patched":"Oppdatert","ui.question.subtitle.answered":"{{count}} besvart","ui.question.answer.none":"(ingen svar)","ui.question.review.notAnswered":"(ikke besvart)","ui.question.multiHint":"Velg alle som gjelder","ui.question.singleHint":"Velg ett svar","ui.question.custom.placeholder":"Skriv svaret ditt...","ui.fileSearch.placeholder":"Finn","ui.fileSearch.previousMatch":"Forrige treff","ui.fileSearch.nextMatch":"Neste treff","ui.fileSearch.close":"Lukk s\xF8k","ui.tool.task":"Oppgave","ui.tool.skill":"Ferdighet","ui.basicTool.called":"Kalte `{{tool}}`","ui.toolErrorCard.failed":"Mislyktes","ui.toolErrorCard.copyError":"Kopier feil","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  function u(r){let e,t=!1,n=()=>{if(t)return e;return e=r(),t=!0,e};return n.reset=()=>{t=!1,e=void 0},n}
3
- export{u as Pn};
3
+ export{u as np};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Eh as I,Fh as B,Gh as Y,Hh as Z,Ih as j,Jh as F,Kh as K,Mh as U,Nh as V,Oh as W}from"./chunk-p54bzjtv.js";var N=class extends F{async evalCodeAsync(b,q="eval.js",D){let w=D===void 0?1:0,G=j(D),$=0;try{$=await this.memory.newHeapCharPointer(b).consume((X)=>this.ffi.QTS_Eval_MaybeAsync(this.ctx.value,X.value.ptr,X.value.strlen,q,w,G))}catch(X){throw this.runtime.debugLog("QTS_Eval_MaybeAsync threw",X),X}let E=this.ffi.QTS_ResolveException(this.ctx.value,$);return E?(this.ffi.QTS_FreeValuePointer(this.ctx.value,$),this.fail(this.memory.heapValueHandle(E))):this.success(this.memory.heapValueHandle($))}newAsyncifiedFunction(b,q){return this.newFunction(b,q)}},O=class extends K{constructor(b){super(b)}newContext(b={}){let q=Z(b.intrinsics),D=new B(this.ffi.QTS_NewContext(this.rt.value,q),void 0,(G)=>{this.contextMap.delete(G),this.callbacks.deleteContext(G),this.ffi.QTS_FreeContext(G)}),w=new N({module:this.module,ctx:D,ffi:this.ffi,rt:this.rt,ownedLifetimes:[],runtime:this,callbacks:this.callbacks});return this.contextMap.set(D.value,w),w}setModuleLoader(b,q){super.setModuleLoader(b,q)}setMaxStackSize(b){return super.setMaxStackSize(b)}},z=class extends W{constructor(b,q){super(b,q);this.ffi=q,this.module=b}newRuntime(b={}){let q=new B(this.ffi.QTS_NewRuntime(),void 0,(w)=>{this.callbacks.deleteRuntime(w),this.ffi.QTS_FreeRuntime(w)}),D=new O({module:this.module,ffi:this.ffi,rt:q,callbacks:this.callbacks});return U(D,b),b.moduleLoader&&D.setModuleLoader(b.moduleLoader),D}newContext(b={}){let q=this.newRuntime(),D=b.ownedLifetimes?b.ownedLifetimes.concat([q]):[q],w=q.newContext({...b,ownedLifetimes:D});return q.context=w,w}evalCode(){throw new I("QuickJSWASMModuleAsyncify.evalCode: use evalCodeAsync instead")}evalCodeAsync(b,q){return Y.withScopeAsync(async(D)=>{let w=D.manage(this.newContext());V(w.runtime,q);let G=await w.evalCodeAsync(b,"eval.js");if(q.memoryLimitBytes!==void 0&&w.runtime.setMemoryLimit(-1),G.error)throw w.dump(D.manage(G.error));return w.dump(D.manage(G.value))})}};
3
- export{z as Dh};
2
+ import{Fh as I,Gh as B,Hh as Y,Ih as Z,Jh as j,Kh as F,Lh as K,Nh as U,Oh as V,Ph as W}from"./chunk-060wbpz4.js";var N=class extends F{async evalCodeAsync(b,q="eval.js",D){let w=D===void 0?1:0,G=j(D),$=0;try{$=await this.memory.newHeapCharPointer(b).consume((X)=>this.ffi.QTS_Eval_MaybeAsync(this.ctx.value,X.value.ptr,X.value.strlen,q,w,G))}catch(X){throw this.runtime.debugLog("QTS_Eval_MaybeAsync threw",X),X}let E=this.ffi.QTS_ResolveException(this.ctx.value,$);return E?(this.ffi.QTS_FreeValuePointer(this.ctx.value,$),this.fail(this.memory.heapValueHandle(E))):this.success(this.memory.heapValueHandle($))}newAsyncifiedFunction(b,q){return this.newFunction(b,q)}},O=class extends K{constructor(b){super(b)}newContext(b={}){let q=Z(b.intrinsics),D=new B(this.ffi.QTS_NewContext(this.rt.value,q),void 0,(G)=>{this.contextMap.delete(G),this.callbacks.deleteContext(G),this.ffi.QTS_FreeContext(G)}),w=new N({module:this.module,ctx:D,ffi:this.ffi,rt:this.rt,ownedLifetimes:[],runtime:this,callbacks:this.callbacks});return this.contextMap.set(D.value,w),w}setModuleLoader(b,q){super.setModuleLoader(b,q)}setMaxStackSize(b){return super.setMaxStackSize(b)}},z=class extends W{constructor(b,q){super(b,q);this.ffi=q,this.module=b}newRuntime(b={}){let q=new B(this.ffi.QTS_NewRuntime(),void 0,(w)=>{this.callbacks.deleteRuntime(w),this.ffi.QTS_FreeRuntime(w)}),D=new O({module:this.module,ffi:this.ffi,rt:q,callbacks:this.callbacks});return U(D,b),b.moduleLoader&&D.setModuleLoader(b.moduleLoader),D}newContext(b={}){let q=this.newRuntime(),D=b.ownedLifetimes?b.ownedLifetimes.concat([q]):[q],w=q.newContext({...b,ownedLifetimes:D});return q.context=w,w}evalCode(){throw new I("QuickJSWASMModuleAsyncify.evalCode: use evalCodeAsync instead")}evalCodeAsync(b,q){return Y.withScopeAsync(async(D)=>{let w=D.manage(this.newContext());V(w.runtime,q);let G=await w.evalCodeAsync(b,"eval.js");if(q.memoryLimitBytes!==void 0&&w.runtime.setMemoryLimit(-1),G.error)throw w.dump(D.manage(G.error));return w.dump(D.manage(G.value))})}};
3
+ export{z as Eh};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{tO as $}from"./chunk-r9w0thdk.js";var Aq=$((Eq)=>{Object.defineProperty(Eq,"__esModule",{value:!0});Eq._globalThis=void 0;Eq._globalThis=typeof globalThis==="object"?globalThis:global});var yq=$((O)=>{var VZ=O&&O.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),NZ=O&&O.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))VZ(z,q,J)};Object.defineProperty(O,"__esModule",{value:!0});NZ(Aq(),O)});var Pq=$((K)=>{var kZ=K&&K.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),bZ=K&&K.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))kZ(z,q,J)};Object.defineProperty(K,"__esModule",{value:!0});bZ(yq(),K)});var v=$((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.VERSION=void 0;Mq.VERSION="1.9.0"});var Lq=$((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.isCompatible=mq._makeCompatibilityCheck=void 0;var RZ=v(),vq=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function uq(q){let z=new Set([q]),J=new Set,Z=q.match(vq);if(!Z)return()=>!1;let Q={major:+Z[1],minor:+Z[2],patch:+Z[3],prerelease:Z[4]};if(Q.prerelease!=null)return function(Y){return Y===q};function H(F){return J.add(F),!1}function X(F){return z.add(F),!0}return function(Y){if(z.has(Y))return!0;if(J.has(Y))return!1;let h=Y.match(vq);if(!h)return H(Y);let G={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};if(G.prerelease!=null)return H(Y);if(Q.major!==G.major)return H(Y);if(Q.major===0){if(Q.minor===G.minor&&Q.patch<=G.patch)return X(Y);return H(Y)}if(Q.minor<=G.minor)return X(Y);return H(Y)}}mq._makeCompatibilityCheck=uq;mq.isCompatible=uq(RZ.VERSION)});var B=$((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.unregisterGlobal=xq.getGlobal=xq.registerGlobal=void 0;var TZ=Pq(),U=v(),AZ=Lq(),yZ=U.VERSION.split(".")[0],I=Symbol.for(`opentelemetry.js.api.${yZ}`),V=TZ._globalThis;function PZ(q,z,J,Z=!1){var Q;let H=V[I]=(Q=V[I])!==null&&Q!==void 0?Q:{version:U.VERSION};if(!Z&&H[q]){let X=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${q}`);return J.error(X.stack||X.message),!1}if(H.version!==U.VERSION){let X=Error(`@opentelemetry/api: Registration of version v${H.version} for ${q} does not match previously registered API v${U.VERSION}`);return J.error(X.stack||X.message),!1}return H[q]=z,J.debug(`@opentelemetry/api: Registered a global for ${q} v${U.VERSION}.`),!0}xq.registerGlobal=PZ;function MZ(q){var z,J;let Z=(z=V[I])===null||z===void 0?void 0:z.version;if(!Z||!(0,AZ.isCompatible)(Z))return;return(J=V[I])===null||J===void 0?void 0:J[q]}xq.getGlobal=MZ;function SZ(q,z){z.debug(`@opentelemetry/api: Unregistering a global for ${q} v${U.VERSION}.`);let J=V[I];if(J)delete J[q]}xq.unregisterGlobal=SZ});var iq=$((lq)=>{Object.defineProperty(lq,"__esModule",{value:!0});lq.DiagComponentLogger=void 0;var mZ=B();class cq{constructor(q){this._namespace=q.namespace||"DiagComponentLogger"}debug(...q){return N("debug",this._namespace,q)}error(...q){return N("error",this._namespace,q)}info(...q){return N("info",this._namespace,q)}warn(...q){return N("warn",this._namespace,q)}verbose(...q){return N("verbose",this._namespace,q)}}lq.DiagComponentLogger=cq;function N(q,z,J){let Z=(0,mZ.getGlobal)("diag");if(!Z)return;return J.unshift(z),Z[q](...J)}});var E=$((nq)=>{Object.defineProperty(nq,"__esModule",{value:!0});nq.DiagLogLevel=void 0;var dZ;(function(q){q[q.NONE=0]="NONE",q[q.ERROR=30]="ERROR",q[q.WARN=50]="WARN",q[q.INFO=60]="INFO",q[q.DEBUG=70]="DEBUG",q[q.VERBOSE=80]="VERBOSE",q[q.ALL=9999]="ALL"})(dZ=nq.DiagLogLevel||(nq.DiagLogLevel={}))});var rq=$((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.createLogLevelDiagLogger=void 0;var w=E();function LZ(q,z){if(q<w.DiagLogLevel.NONE)q=w.DiagLogLevel.NONE;else if(q>w.DiagLogLevel.ALL)q=w.DiagLogLevel.ALL;z=z||{};function J(Z,Q){let H=z[Z];if(typeof H==="function"&&q>=Q)return H.bind(z);return function(){}}return{error:J("error",w.DiagLogLevel.ERROR),warn:J("warn",w.DiagLogLevel.WARN),info:J("info",w.DiagLogLevel.INFO),debug:J("debug",w.DiagLogLevel.DEBUG),verbose:J("verbose",w.DiagLogLevel.VERBOSE)}}pq.createLogLevelDiagLogger=LZ});var f=$((tq)=>{Object.defineProperty(tq,"__esModule",{value:!0});tq.DiagAPI=void 0;var xZ=iq(),_Z=rq(),oq=E(),T=B(),cZ="diag";class m{constructor(){function q(Z){return function(...Q){let H=(0,T.getGlobal)("diag");if(!H)return;return H[Z](...Q)}}let z=this,J=(Z,Q={logLevel:oq.DiagLogLevel.INFO})=>{var H,X,F;if(Z===z){let G=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return z.error((H=G.stack)!==null&&H!==void 0?H:G.message),!1}if(typeof Q==="number")Q={logLevel:Q};let Y=(0,T.getGlobal)("diag"),h=(0,_Z.createLogLevelDiagLogger)((X=Q.logLevel)!==null&&X!==void 0?X:oq.DiagLogLevel.INFO,Z);if(Y&&!Q.suppressOverrideMessage){let G=(F=Error().stack)!==null&&F!==void 0?F:"<failed to generate stacktrace>";Y.warn(`Current logger will be overwritten from ${G}`),h.warn(`Current logger will overwrite one already registered from ${G}`)}return(0,T.registerGlobal)("diag",h,z,!0)};z.setLogger=J,z.disable=()=>{(0,T.unregisterGlobal)(cZ,z)},z.createComponentLogger=(Z)=>{return new xZ.DiagComponentLogger(Z)},z.verbose=q("verbose"),z.debug=q("debug"),z.info=q("info"),z.warn=q("warn"),z.error=q("error")}static instance(){if(!this._instance)this._instance=new m;return this._instance}}tq.DiagAPI=m});var zz=$((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.BaggageImpl=void 0;class j{constructor(q){this._entries=q?new Map(q):new Map}getEntry(q){let z=this._entries.get(q);if(!z)return;return Object.assign({},z)}getAllEntries(){return Array.from(this._entries.entries()).map(([q,z])=>[q,z])}setEntry(q,z){let J=new j(this._entries);return J._entries.set(q,z),J}removeEntry(q){let z=new j(this._entries);return z._entries.delete(q),z}removeEntries(...q){let z=new j(this._entries);for(let J of q)z._entries.delete(J);return z}clear(){return new j}}eq.BaggageImpl=j});var $z=$((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.baggageEntryMetadataSymbol=void 0;Jz.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var d=$((Qz)=>{Object.defineProperty(Qz,"__esModule",{value:!0});Qz.baggageEntryMetadataFromString=Qz.createBaggage=void 0;var lZ=f(),gZ=zz(),iZ=$z(),nZ=lZ.DiagAPI.instance();function pZ(q={}){return new gZ.BaggageImpl(new Map(Object.entries(q)))}Qz.createBaggage=pZ;function sZ(q){if(typeof q!=="string")nZ.error(`Cannot create baggage metadata from unknown type: ${typeof q}`),q="";return{__TYPE__:iZ.baggageEntryMetadataSymbol,toString(){return q}}}Qz.baggageEntryMetadataFromString=sZ});var k=$((Hz)=>{Object.defineProperty(Hz,"__esModule",{value:!0});Hz.ROOT_CONTEXT=Hz.createContextKey=void 0;function oZ(q){return Symbol.for(q)}Hz.createContextKey=oZ;class A{constructor(q){let z=this;z._currentContext=q?new Map(q):new Map,z.getValue=(J)=>z._currentContext.get(J),z.setValue=(J,Z)=>{let Q=new A(z._currentContext);return Q._currentContext.set(J,Z),Q},z.deleteValue=(J)=>{let Z=new A(z._currentContext);return Z._currentContext.delete(J),Z}}}Hz.ROOT_CONTEXT=new A});var hz=$((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.DiagConsoleLogger=void 0;var L=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class Yz{constructor(){function q(z){return function(...J){if(console){let Z=console[z];if(typeof Z!=="function")Z=console.log;if(typeof Z==="function")return Z.apply(console,J)}}}for(let z=0;z<L.length;z++)this[L[z].n]=q(L[z].c)}}Fz.DiagConsoleLogger=Yz});var s=$((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});wz.createNoopMeter=wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=wz.NOOP_OBSERVABLE_GAUGE_METRIC=wz.NOOP_OBSERVABLE_COUNTER_METRIC=wz.NOOP_UP_DOWN_COUNTER_METRIC=wz.NOOP_HISTOGRAM_METRIC=wz.NOOP_GAUGE_METRIC=wz.NOOP_COUNTER_METRIC=wz.NOOP_METER=wz.NoopObservableUpDownCounterMetric=wz.NoopObservableGaugeMetric=wz.NoopObservableCounterMetric=wz.NoopObservableMetric=wz.NoopHistogramMetric=wz.NoopGaugeMetric=wz.NoopUpDownCounterMetric=wz.NoopCounterMetric=wz.NoopMetric=wz.NoopMeter=void 0;class x{constructor(){}createGauge(q,z){return wz.NOOP_GAUGE_METRIC}createHistogram(q,z){return wz.NOOP_HISTOGRAM_METRIC}createCounter(q,z){return wz.NOOP_COUNTER_METRIC}createUpDownCounter(q,z){return wz.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(q,z){return wz.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(q,z){return wz.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(q,z){return wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(q,z){}removeBatchObservableCallback(q){}}wz.NoopMeter=x;class D{}wz.NoopMetric=D;class _ extends D{add(q,z){}}wz.NoopCounterMetric=_;class c extends D{add(q,z){}}wz.NoopUpDownCounterMetric=c;class l extends D{record(q,z){}}wz.NoopGaugeMetric=l;class g extends D{record(q,z){}}wz.NoopHistogramMetric=g;class b{addCallback(q){}removeCallback(q){}}wz.NoopObservableMetric=b;class i extends b{}wz.NoopObservableCounterMetric=i;class n extends b{}wz.NoopObservableGaugeMetric=n;class p extends b{}wz.NoopObservableUpDownCounterMetric=p;wz.NOOP_METER=new x;wz.NOOP_COUNTER_METRIC=new _;wz.NOOP_GAUGE_METRIC=new l;wz.NOOP_HISTOGRAM_METRIC=new g;wz.NOOP_UP_DOWN_COUNTER_METRIC=new c;wz.NOOP_OBSERVABLE_COUNTER_METRIC=new i;wz.NOOP_OBSERVABLE_GAUGE_METRIC=new n;wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new p;function aZ(){return wz.NOOP_METER}wz.createNoopMeter=aZ});var Nz=$((Vz)=>{Object.defineProperty(Vz,"__esModule",{value:!0});Vz.ValueType=void 0;var Y0;(function(q){q[q.INT=0]="INT",q[q.DOUBLE=1]="DOUBLE"})(Y0=Vz.ValueType||(Vz.ValueType={}))});var o=$((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});kz.defaultTextMapSetter=kz.defaultTextMapGetter=void 0;kz.defaultTextMapGetter={get(q,z){if(q==null)return;return q[z]},keys(q){if(q==null)return[];return Object.keys(q)}};kz.defaultTextMapSetter={set(q,z,J){if(q==null)return;q[z]=J}}});var Az=$((Ez)=>{Object.defineProperty(Ez,"__esModule",{value:!0});Ez.NoopContextManager=void 0;var G0=k();class Rz{active(){return G0.ROOT_CONTEXT}with(q,z,J,...Z){return z.call(J,...Z)}bind(q,z){return z}enable(){return this}disable(){return this}}Ez.NoopContextManager=Rz});var R=$((Pz)=>{Object.defineProperty(Pz,"__esModule",{value:!0});Pz.ContextAPI=void 0;var h0=Az(),t=B(),yz=f(),a="context",w0=new h0.NoopContextManager;class e{constructor(){}static getInstance(){if(!this._instance)this._instance=new e;return this._instance}setGlobalContextManager(q){return(0,t.registerGlobal)(a,q,yz.DiagAPI.instance())}active(){return this._getContextManager().active()}with(q,z,J,...Z){return this._getContextManager().with(q,z,J,...Z)}bind(q,z){return this._getContextManager().bind(q,z)}_getContextManager(){return(0,t.getGlobal)(a)||w0}disable(){this._getContextManager().disable(),(0,t.unregisterGlobal)(a,yz.DiagAPI.instance())}}Pz.ContextAPI=e});var zq=$((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.TraceFlags=void 0;var O0;(function(q){q[q.NONE=0]="NONE",q[q.SAMPLED=1]="SAMPLED"})(O0=Sz.TraceFlags||(Sz.TraceFlags={}))});var y=$((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.INVALID_SPAN_CONTEXT=vz.INVALID_TRACEID=vz.INVALID_SPANID=void 0;var K0=zq();vz.INVALID_SPANID="0000000000000000";vz.INVALID_TRACEID="00000000000000000000000000000000";vz.INVALID_SPAN_CONTEXT={traceId:vz.INVALID_TRACEID,spanId:vz.INVALID_SPANID,traceFlags:K0.TraceFlags.NONE}});var P=$((xz)=>{Object.defineProperty(xz,"__esModule",{value:!0});xz.NonRecordingSpan=void 0;var B0=y();class Lz{constructor(q=B0.INVALID_SPAN_CONTEXT){this._spanContext=q}spanContext(){return this._spanContext}setAttribute(q,z){return this}setAttributes(q){return this}addEvent(q,z){return this}addLink(q){return this}addLinks(q){return this}setStatus(q){return this}updateName(q){return this}end(q){}isRecording(){return!1}recordException(q,z){}}xz.NonRecordingSpan=Lz});var $q=$((lz)=>{Object.defineProperty(lz,"__esModule",{value:!0});lz.getSpanContext=lz.setSpanContext=lz.deleteSpan=lz.setSpan=lz.getActiveSpan=lz.getSpan=void 0;var f0=k(),U0=P(),j0=R(),Jq=(0,f0.createContextKey)("OpenTelemetry Context Key SPAN");function Zq(q){return q.getValue(Jq)||void 0}lz.getSpan=Zq;function D0(){return Zq(j0.ContextAPI.getInstance().active())}lz.getActiveSpan=D0;function cz(q,z){return q.setValue(Jq,z)}lz.setSpan=cz;function C0(q){return q.deleteValue(Jq)}lz.deleteSpan=C0;function I0(q,z){return cz(q,new U0.NonRecordingSpan(z))}lz.setSpanContext=I0;function V0(q){var z;return(z=Zq(q))===null||z===void 0?void 0:z.spanContext()}lz.getSpanContext=V0});var M=$((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.wrapSpanContext=sz.isSpanContextValid=sz.isValidSpanId=sz.isValidTraceId=void 0;var iz=y(),T0=P(),A0=/^([0-9a-f]{32})$/i,y0=/^[0-9a-f]{16}$/i;function nz(q){return A0.test(q)&&q!==iz.INVALID_TRACEID}sz.isValidTraceId=nz;function pz(q){return y0.test(q)&&q!==iz.INVALID_SPANID}sz.isValidSpanId=pz;function P0(q){return nz(q.traceId)&&pz(q.spanId)}sz.isSpanContextValid=P0;function M0(q){return new T0.NonRecordingSpan(q)}sz.wrapSpanContext=M0});var Hq=$((az)=>{Object.defineProperty(az,"__esModule",{value:!0});az.NoopTracer=void 0;var m0=R(),oz=$q(),Qq=P(),d0=M(),Wq=m0.ContextAPI.getInstance();class tz{startSpan(q,z,J=Wq.active()){if(Boolean(z===null||z===void 0?void 0:z.root))return new Qq.NonRecordingSpan;let Q=J&&(0,oz.getSpanContext)(J);if(L0(Q)&&(0,d0.isSpanContextValid)(Q))return new Qq.NonRecordingSpan(Q);else return new Qq.NonRecordingSpan}startActiveSpan(q,z,J,Z){let Q,H,X;if(arguments.length<2)return;else if(arguments.length===2)X=z;else if(arguments.length===3)Q=z,X=J;else Q=z,H=J,X=Z;let F=H!==null&&H!==void 0?H:Wq.active(),Y=this.startSpan(q,Q,F),h=(0,oz.setSpan)(F,Y);return Wq.with(h,X,void 0,Y)}}az.NoopTracer=tz;function L0(q){return typeof q==="object"&&typeof q.spanId==="string"&&typeof q.traceId==="string"&&typeof q.traceFlags==="number"}});var Xq=$((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.ProxyTracer=void 0;var x0=Hq(),_0=new x0.NoopTracer;class qJ{constructor(q,z,J,Z){this._provider=q,this.name=z,this.version=J,this.options=Z}startSpan(q,z,J){return this._getTracer().startSpan(q,z,J)}startActiveSpan(q,z,J,Z){let Q=this._getTracer();return Reflect.apply(Q.startActiveSpan,Q,arguments)}_getTracer(){if(this._delegate)return this._delegate;let q=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!q)return _0;return this._delegate=q,this._delegate}}zJ.ProxyTracer=qJ});var WJ=$(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.NoopTracerProvider=void 0;var c0=Hq();class ZJ{getTracer(q,z,J){return new c0.NoopTracer}}$J.NoopTracerProvider=ZJ});var Yq=$((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.ProxyTracerProvider=void 0;var l0=Xq(),g0=WJ(),i0=new g0.NoopTracerProvider;class HJ{getTracer(q,z,J){var Z;return(Z=this.getDelegateTracer(q,z,J))!==null&&Z!==void 0?Z:new l0.ProxyTracer(this,q,z,J)}getDelegate(){var q;return(q=this._delegate)!==null&&q!==void 0?q:i0}setDelegate(q){this._delegate=q}getDelegateTracer(q,z,J){var Z;return(Z=this._delegate)===null||Z===void 0?void 0:Z.getTracer(q,z,J)}}XJ.ProxyTracerProvider=HJ});var GJ=$((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.SamplingDecision=void 0;var n0;(function(q){q[q.NOT_RECORD=0]="NOT_RECORD",q[q.RECORD=1]="RECORD",q[q.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(n0=FJ.SamplingDecision||(FJ.SamplingDecision={}))});var wJ=$((hJ)=>{Object.defineProperty(hJ,"__esModule",{value:!0});hJ.SpanKind=void 0;var p0;(function(q){q[q.INTERNAL=0]="INTERNAL",q[q.SERVER=1]="SERVER",q[q.CLIENT=2]="CLIENT",q[q.PRODUCER=3]="PRODUCER",q[q.CONSUMER=4]="CONSUMER"})(p0=hJ.SpanKind||(hJ.SpanKind={}))});var KJ=$((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.SpanStatusCode=void 0;var s0;(function(q){q[q.UNSET=0]="UNSET",q[q.OK=1]="OK",q[q.ERROR=2]="ERROR"})(s0=OJ.SpanStatusCode||(OJ.SpanStatusCode={}))});var UJ=$((BJ)=>{Object.defineProperty(BJ,"__esModule",{value:!0});BJ.validateValue=BJ.validateKey=void 0;var wq="[_0-9a-z-*/]",r0=`[a-z]${wq}{0,255}`,o0=`[a-z0-9]${wq}{0,240}@[a-z]${wq}{0,13}`,t0=new RegExp(`^(?:${r0}|${o0})$`),a0=/^[ -~]{0,255}[!-~]$/,e0=/,|=/;function q1(q){return t0.test(q)}BJ.validateKey=q1;function z1(q){return a0.test(q)&&!e0.test(q)}BJ.validateValue=z1});var kJ=$((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.TraceStateImpl=void 0;var jJ=UJ(),DJ=32,Z1=512,CJ=",",IJ="=";class Oq{constructor(q){if(this._internalState=new Map,q)this._parse(q)}set(q,z){let J=this._clone();if(J._internalState.has(q))J._internalState.delete(q);return J._internalState.set(q,z),J}unset(q){let z=this._clone();return z._internalState.delete(q),z}get(q){return this._internalState.get(q)}serialize(){return this._keys().reduce((q,z)=>{return q.push(z+IJ+this.get(z)),q},[]).join(CJ)}_parse(q){if(q.length>Z1)return;if(this._internalState=q.split(CJ).reverse().reduce((z,J)=>{let Z=J.trim(),Q=Z.indexOf(IJ);if(Q!==-1){let H=Z.slice(0,Q),X=Z.slice(Q+1,J.length);if((0,jJ.validateKey)(H)&&(0,jJ.validateValue)(X))z.set(H,X)}return z},new Map),this._internalState.size>DJ)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,DJ))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let q=new Oq;return q._internalState=new Map(this._internalState),q}}VJ.TraceStateImpl=Oq});var EJ=$((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ.createTraceState=void 0;var $1=kJ();function Q1(q){return new $1.TraceStateImpl(q)}bJ.createTraceState=Q1});var yJ=$((TJ)=>{Object.defineProperty(TJ,"__esModule",{value:!0});TJ.context=void 0;var W1=R();TJ.context=W1.ContextAPI.getInstance()});var SJ=$((PJ)=>{Object.defineProperty(PJ,"__esModule",{value:!0});PJ.diag=void 0;var H1=f();PJ.diag=H1.DiagAPI.instance()});var mJ=$((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.NOOP_METER_PROVIDER=vJ.NoopMeterProvider=void 0;var X1=s();class Kq{getMeter(q,z,J){return X1.NOOP_METER}}vJ.NoopMeterProvider=Kq;vJ.NOOP_METER_PROVIDER=new Kq});var _J=$((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.MetricsAPI=void 0;var F1=mJ(),Bq=B(),dJ=f(),fq="metrics";class Uq{constructor(){}static getInstance(){if(!this._instance)this._instance=new Uq;return this._instance}setGlobalMeterProvider(q){return(0,Bq.registerGlobal)(fq,q,dJ.DiagAPI.instance())}getMeterProvider(){return(0,Bq.getGlobal)(fq)||F1.NOOP_METER_PROVIDER}getMeter(q,z,J){return this.getMeterProvider().getMeter(q,z,J)}disable(){(0,Bq.unregisterGlobal)(fq,dJ.DiagAPI.instance())}}LJ.MetricsAPI=Uq});var gJ=$((cJ)=>{Object.defineProperty(cJ,"__esModule",{value:!0});cJ.metrics=void 0;var G1=_J();cJ.metrics=G1.MetricsAPI.getInstance()});var sJ=$((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.NoopTextMapPropagator=void 0;class iJ{inject(q,z){}extract(q,z){return q}fields(){return[]}}nJ.NoopTextMapPropagator=iJ});var aJ=$((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.deleteBaggage=oJ.setBaggage=oJ.getActiveBaggage=oJ.getBaggage=void 0;var h1=R(),w1=k(),jq=(0,w1.createContextKey)("OpenTelemetry Baggage Key");function rJ(q){return q.getValue(jq)||void 0}oJ.getBaggage=rJ;function O1(){return rJ(h1.ContextAPI.getInstance().active())}oJ.getActiveBaggage=O1;function K1(q,z){return q.setValue(jq,z)}oJ.setBaggage=K1;function B1(q){return q.deleteValue(jq)}oJ.deleteBaggage=B1});var ZZ=$((zZ)=>{Object.defineProperty(zZ,"__esModule",{value:!0});zZ.PropagationAPI=void 0;var Dq=B(),D1=sJ(),eJ=o(),S=aJ(),C1=d(),qZ=f(),Cq="propagation",I1=new D1.NoopTextMapPropagator;class Iq{constructor(){this.createBaggage=C1.createBaggage,this.getBaggage=S.getBaggage,this.getActiveBaggage=S.getActiveBaggage,this.setBaggage=S.setBaggage,this.deleteBaggage=S.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new Iq;return this._instance}setGlobalPropagator(q){return(0,Dq.registerGlobal)(Cq,q,qZ.DiagAPI.instance())}inject(q,z,J=eJ.defaultTextMapSetter){return this._getGlobalPropagator().inject(q,z,J)}extract(q,z,J=eJ.defaultTextMapGetter){return this._getGlobalPropagator().extract(q,z,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,Dq.unregisterGlobal)(Cq,qZ.DiagAPI.instance())}_getGlobalPropagator(){return(0,Dq.getGlobal)(Cq)||I1}}zZ.PropagationAPI=Iq});var WZ=$(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.propagation=void 0;var V1=ZZ();$Z.propagation=V1.PropagationAPI.getInstance()});var hZ=$((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.TraceAPI=void 0;var Vq=B(),HZ=Yq(),XZ=M(),C=$q(),YZ=f(),Nq="trace";class kq{constructor(){this._proxyTracerProvider=new HZ.ProxyTracerProvider,this.wrapSpanContext=XZ.wrapSpanContext,this.isSpanContextValid=XZ.isSpanContextValid,this.deleteSpan=C.deleteSpan,this.getSpan=C.getSpan,this.getActiveSpan=C.getActiveSpan,this.getSpanContext=C.getSpanContext,this.setSpan=C.setSpan,this.setSpanContext=C.setSpanContext}static getInstance(){if(!this._instance)this._instance=new kq;return this._instance}setGlobalTracerProvider(q){let z=(0,Vq.registerGlobal)(Nq,this._proxyTracerProvider,YZ.DiagAPI.instance());if(z)this._proxyTracerProvider.setDelegate(q);return z}getTracerProvider(){return(0,Vq.getGlobal)(Nq)||this._proxyTracerProvider}getTracer(q,z){return this.getTracerProvider().getTracer(q,z)}disable(){(0,Vq.unregisterGlobal)(Nq,YZ.DiagAPI.instance()),this._proxyTracerProvider=new HZ.ProxyTracerProvider}}FZ.TraceAPI=kq});var KZ=$((wZ)=>{Object.defineProperty(wZ,"__esModule",{value:!0});wZ.trace=void 0;var N1=hZ();wZ.trace=N1.TraceAPI.getInstance()});var L1=$((W)=>{Object.defineProperty(W,"__esModule",{value:!0});W.trace=W.propagation=W.metrics=W.diag=W.context=W.INVALID_SPAN_CONTEXT=W.INVALID_TRACEID=W.INVALID_SPANID=W.isValidSpanId=W.isValidTraceId=W.isSpanContextValid=W.createTraceState=W.TraceFlags=W.SpanStatusCode=W.SpanKind=W.SamplingDecision=W.ProxyTracerProvider=W.ProxyTracer=W.defaultTextMapSetter=W.defaultTextMapGetter=W.ValueType=W.createNoopMeter=W.DiagLogLevel=W.DiagConsoleLogger=W.ROOT_CONTEXT=W.createContextKey=W.baggageEntryMetadataFromString=void 0;var k1=d();Object.defineProperty(W,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return k1.baggageEntryMetadataFromString}});var BZ=k();Object.defineProperty(W,"createContextKey",{enumerable:!0,get:function(){return BZ.createContextKey}});Object.defineProperty(W,"ROOT_CONTEXT",{enumerable:!0,get:function(){return BZ.ROOT_CONTEXT}});var b1=hz();Object.defineProperty(W,"DiagConsoleLogger",{enumerable:!0,get:function(){return b1.DiagConsoleLogger}});var R1=E();Object.defineProperty(W,"DiagLogLevel",{enumerable:!0,get:function(){return R1.DiagLogLevel}});var E1=s();Object.defineProperty(W,"createNoopMeter",{enumerable:!0,get:function(){return E1.createNoopMeter}});var T1=Nz();Object.defineProperty(W,"ValueType",{enumerable:!0,get:function(){return T1.ValueType}});var fZ=o();Object.defineProperty(W,"defaultTextMapGetter",{enumerable:!0,get:function(){return fZ.defaultTextMapGetter}});Object.defineProperty(W,"defaultTextMapSetter",{enumerable:!0,get:function(){return fZ.defaultTextMapSetter}});var A1=Xq();Object.defineProperty(W,"ProxyTracer",{enumerable:!0,get:function(){return A1.ProxyTracer}});var y1=Yq();Object.defineProperty(W,"ProxyTracerProvider",{enumerable:!0,get:function(){return y1.ProxyTracerProvider}});var P1=GJ();Object.defineProperty(W,"SamplingDecision",{enumerable:!0,get:function(){return P1.SamplingDecision}});var M1=wJ();Object.defineProperty(W,"SpanKind",{enumerable:!0,get:function(){return M1.SpanKind}});var S1=KJ();Object.defineProperty(W,"SpanStatusCode",{enumerable:!0,get:function(){return S1.SpanStatusCode}});var v1=zq();Object.defineProperty(W,"TraceFlags",{enumerable:!0,get:function(){return v1.TraceFlags}});var u1=EJ();Object.defineProperty(W,"createTraceState",{enumerable:!0,get:function(){return u1.createTraceState}});var bq=M();Object.defineProperty(W,"isSpanContextValid",{enumerable:!0,get:function(){return bq.isSpanContextValid}});Object.defineProperty(W,"isValidTraceId",{enumerable:!0,get:function(){return bq.isValidTraceId}});Object.defineProperty(W,"isValidSpanId",{enumerable:!0,get:function(){return bq.isValidSpanId}});var Rq=y();Object.defineProperty(W,"INVALID_SPANID",{enumerable:!0,get:function(){return Rq.INVALID_SPANID}});Object.defineProperty(W,"INVALID_TRACEID",{enumerable:!0,get:function(){return Rq.INVALID_TRACEID}});Object.defineProperty(W,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return Rq.INVALID_SPAN_CONTEXT}});var UZ=yJ();Object.defineProperty(W,"context",{enumerable:!0,get:function(){return UZ.context}});var jZ=SJ();Object.defineProperty(W,"diag",{enumerable:!0,get:function(){return jZ.diag}});var DZ=gJ();Object.defineProperty(W,"metrics",{enumerable:!0,get:function(){return DZ.metrics}});var CZ=WZ();Object.defineProperty(W,"propagation",{enumerable:!0,get:function(){return CZ.propagation}});var IZ=KZ();Object.defineProperty(W,"trace",{enumerable:!0,get:function(){return IZ.trace}});W.default={context:UZ.context,diag:jZ.diag,metrics:DZ.metrics,propagation:CZ.propagation,trace:IZ.trace}});
3
- export{L1 as rO};
2
+ import{TP as $}from"./chunk-f2pv705d.js";var Aq=$((Eq)=>{Object.defineProperty(Eq,"__esModule",{value:!0});Eq._globalThis=void 0;Eq._globalThis=typeof globalThis==="object"?globalThis:global});var yq=$((O)=>{var VZ=O&&O.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),NZ=O&&O.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))VZ(z,q,J)};Object.defineProperty(O,"__esModule",{value:!0});NZ(Aq(),O)});var Pq=$((K)=>{var kZ=K&&K.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),bZ=K&&K.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))kZ(z,q,J)};Object.defineProperty(K,"__esModule",{value:!0});bZ(yq(),K)});var v=$((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.VERSION=void 0;Mq.VERSION="1.9.0"});var Lq=$((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.isCompatible=mq._makeCompatibilityCheck=void 0;var RZ=v(),vq=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function uq(q){let z=new Set([q]),J=new Set,Z=q.match(vq);if(!Z)return()=>!1;let Q={major:+Z[1],minor:+Z[2],patch:+Z[3],prerelease:Z[4]};if(Q.prerelease!=null)return function(Y){return Y===q};function H(F){return J.add(F),!1}function X(F){return z.add(F),!0}return function(Y){if(z.has(Y))return!0;if(J.has(Y))return!1;let h=Y.match(vq);if(!h)return H(Y);let G={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};if(G.prerelease!=null)return H(Y);if(Q.major!==G.major)return H(Y);if(Q.major===0){if(Q.minor===G.minor&&Q.patch<=G.patch)return X(Y);return H(Y)}if(Q.minor<=G.minor)return X(Y);return H(Y)}}mq._makeCompatibilityCheck=uq;mq.isCompatible=uq(RZ.VERSION)});var B=$((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.unregisterGlobal=xq.getGlobal=xq.registerGlobal=void 0;var TZ=Pq(),U=v(),AZ=Lq(),yZ=U.VERSION.split(".")[0],I=Symbol.for(`opentelemetry.js.api.${yZ}`),V=TZ._globalThis;function PZ(q,z,J,Z=!1){var Q;let H=V[I]=(Q=V[I])!==null&&Q!==void 0?Q:{version:U.VERSION};if(!Z&&H[q]){let X=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${q}`);return J.error(X.stack||X.message),!1}if(H.version!==U.VERSION){let X=Error(`@opentelemetry/api: Registration of version v${H.version} for ${q} does not match previously registered API v${U.VERSION}`);return J.error(X.stack||X.message),!1}return H[q]=z,J.debug(`@opentelemetry/api: Registered a global for ${q} v${U.VERSION}.`),!0}xq.registerGlobal=PZ;function MZ(q){var z,J;let Z=(z=V[I])===null||z===void 0?void 0:z.version;if(!Z||!(0,AZ.isCompatible)(Z))return;return(J=V[I])===null||J===void 0?void 0:J[q]}xq.getGlobal=MZ;function SZ(q,z){z.debug(`@opentelemetry/api: Unregistering a global for ${q} v${U.VERSION}.`);let J=V[I];if(J)delete J[q]}xq.unregisterGlobal=SZ});var iq=$((lq)=>{Object.defineProperty(lq,"__esModule",{value:!0});lq.DiagComponentLogger=void 0;var mZ=B();class cq{constructor(q){this._namespace=q.namespace||"DiagComponentLogger"}debug(...q){return N("debug",this._namespace,q)}error(...q){return N("error",this._namespace,q)}info(...q){return N("info",this._namespace,q)}warn(...q){return N("warn",this._namespace,q)}verbose(...q){return N("verbose",this._namespace,q)}}lq.DiagComponentLogger=cq;function N(q,z,J){let Z=(0,mZ.getGlobal)("diag");if(!Z)return;return J.unshift(z),Z[q](...J)}});var E=$((nq)=>{Object.defineProperty(nq,"__esModule",{value:!0});nq.DiagLogLevel=void 0;var dZ;(function(q){q[q.NONE=0]="NONE",q[q.ERROR=30]="ERROR",q[q.WARN=50]="WARN",q[q.INFO=60]="INFO",q[q.DEBUG=70]="DEBUG",q[q.VERBOSE=80]="VERBOSE",q[q.ALL=9999]="ALL"})(dZ=nq.DiagLogLevel||(nq.DiagLogLevel={}))});var rq=$((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.createLogLevelDiagLogger=void 0;var w=E();function LZ(q,z){if(q<w.DiagLogLevel.NONE)q=w.DiagLogLevel.NONE;else if(q>w.DiagLogLevel.ALL)q=w.DiagLogLevel.ALL;z=z||{};function J(Z,Q){let H=z[Z];if(typeof H==="function"&&q>=Q)return H.bind(z);return function(){}}return{error:J("error",w.DiagLogLevel.ERROR),warn:J("warn",w.DiagLogLevel.WARN),info:J("info",w.DiagLogLevel.INFO),debug:J("debug",w.DiagLogLevel.DEBUG),verbose:J("verbose",w.DiagLogLevel.VERBOSE)}}pq.createLogLevelDiagLogger=LZ});var f=$((tq)=>{Object.defineProperty(tq,"__esModule",{value:!0});tq.DiagAPI=void 0;var xZ=iq(),_Z=rq(),oq=E(),T=B(),cZ="diag";class m{constructor(){function q(Z){return function(...Q){let H=(0,T.getGlobal)("diag");if(!H)return;return H[Z](...Q)}}let z=this,J=(Z,Q={logLevel:oq.DiagLogLevel.INFO})=>{var H,X,F;if(Z===z){let G=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return z.error((H=G.stack)!==null&&H!==void 0?H:G.message),!1}if(typeof Q==="number")Q={logLevel:Q};let Y=(0,T.getGlobal)("diag"),h=(0,_Z.createLogLevelDiagLogger)((X=Q.logLevel)!==null&&X!==void 0?X:oq.DiagLogLevel.INFO,Z);if(Y&&!Q.suppressOverrideMessage){let G=(F=Error().stack)!==null&&F!==void 0?F:"<failed to generate stacktrace>";Y.warn(`Current logger will be overwritten from ${G}`),h.warn(`Current logger will overwrite one already registered from ${G}`)}return(0,T.registerGlobal)("diag",h,z,!0)};z.setLogger=J,z.disable=()=>{(0,T.unregisterGlobal)(cZ,z)},z.createComponentLogger=(Z)=>{return new xZ.DiagComponentLogger(Z)},z.verbose=q("verbose"),z.debug=q("debug"),z.info=q("info"),z.warn=q("warn"),z.error=q("error")}static instance(){if(!this._instance)this._instance=new m;return this._instance}}tq.DiagAPI=m});var zz=$((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.BaggageImpl=void 0;class j{constructor(q){this._entries=q?new Map(q):new Map}getEntry(q){let z=this._entries.get(q);if(!z)return;return Object.assign({},z)}getAllEntries(){return Array.from(this._entries.entries()).map(([q,z])=>[q,z])}setEntry(q,z){let J=new j(this._entries);return J._entries.set(q,z),J}removeEntry(q){let z=new j(this._entries);return z._entries.delete(q),z}removeEntries(...q){let z=new j(this._entries);for(let J of q)z._entries.delete(J);return z}clear(){return new j}}eq.BaggageImpl=j});var $z=$((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.baggageEntryMetadataSymbol=void 0;Jz.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var d=$((Qz)=>{Object.defineProperty(Qz,"__esModule",{value:!0});Qz.baggageEntryMetadataFromString=Qz.createBaggage=void 0;var lZ=f(),gZ=zz(),iZ=$z(),nZ=lZ.DiagAPI.instance();function pZ(q={}){return new gZ.BaggageImpl(new Map(Object.entries(q)))}Qz.createBaggage=pZ;function sZ(q){if(typeof q!=="string")nZ.error(`Cannot create baggage metadata from unknown type: ${typeof q}`),q="";return{__TYPE__:iZ.baggageEntryMetadataSymbol,toString(){return q}}}Qz.baggageEntryMetadataFromString=sZ});var k=$((Hz)=>{Object.defineProperty(Hz,"__esModule",{value:!0});Hz.ROOT_CONTEXT=Hz.createContextKey=void 0;function oZ(q){return Symbol.for(q)}Hz.createContextKey=oZ;class A{constructor(q){let z=this;z._currentContext=q?new Map(q):new Map,z.getValue=(J)=>z._currentContext.get(J),z.setValue=(J,Z)=>{let Q=new A(z._currentContext);return Q._currentContext.set(J,Z),Q},z.deleteValue=(J)=>{let Z=new A(z._currentContext);return Z._currentContext.delete(J),Z}}}Hz.ROOT_CONTEXT=new A});var hz=$((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.DiagConsoleLogger=void 0;var L=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class Yz{constructor(){function q(z){return function(...J){if(console){let Z=console[z];if(typeof Z!=="function")Z=console.log;if(typeof Z==="function")return Z.apply(console,J)}}}for(let z=0;z<L.length;z++)this[L[z].n]=q(L[z].c)}}Fz.DiagConsoleLogger=Yz});var s=$((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});wz.createNoopMeter=wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=wz.NOOP_OBSERVABLE_GAUGE_METRIC=wz.NOOP_OBSERVABLE_COUNTER_METRIC=wz.NOOP_UP_DOWN_COUNTER_METRIC=wz.NOOP_HISTOGRAM_METRIC=wz.NOOP_GAUGE_METRIC=wz.NOOP_COUNTER_METRIC=wz.NOOP_METER=wz.NoopObservableUpDownCounterMetric=wz.NoopObservableGaugeMetric=wz.NoopObservableCounterMetric=wz.NoopObservableMetric=wz.NoopHistogramMetric=wz.NoopGaugeMetric=wz.NoopUpDownCounterMetric=wz.NoopCounterMetric=wz.NoopMetric=wz.NoopMeter=void 0;class x{constructor(){}createGauge(q,z){return wz.NOOP_GAUGE_METRIC}createHistogram(q,z){return wz.NOOP_HISTOGRAM_METRIC}createCounter(q,z){return wz.NOOP_COUNTER_METRIC}createUpDownCounter(q,z){return wz.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(q,z){return wz.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(q,z){return wz.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(q,z){return wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(q,z){}removeBatchObservableCallback(q){}}wz.NoopMeter=x;class D{}wz.NoopMetric=D;class _ extends D{add(q,z){}}wz.NoopCounterMetric=_;class c extends D{add(q,z){}}wz.NoopUpDownCounterMetric=c;class l extends D{record(q,z){}}wz.NoopGaugeMetric=l;class g extends D{record(q,z){}}wz.NoopHistogramMetric=g;class b{addCallback(q){}removeCallback(q){}}wz.NoopObservableMetric=b;class i extends b{}wz.NoopObservableCounterMetric=i;class n extends b{}wz.NoopObservableGaugeMetric=n;class p extends b{}wz.NoopObservableUpDownCounterMetric=p;wz.NOOP_METER=new x;wz.NOOP_COUNTER_METRIC=new _;wz.NOOP_GAUGE_METRIC=new l;wz.NOOP_HISTOGRAM_METRIC=new g;wz.NOOP_UP_DOWN_COUNTER_METRIC=new c;wz.NOOP_OBSERVABLE_COUNTER_METRIC=new i;wz.NOOP_OBSERVABLE_GAUGE_METRIC=new n;wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new p;function aZ(){return wz.NOOP_METER}wz.createNoopMeter=aZ});var Nz=$((Vz)=>{Object.defineProperty(Vz,"__esModule",{value:!0});Vz.ValueType=void 0;var Y0;(function(q){q[q.INT=0]="INT",q[q.DOUBLE=1]="DOUBLE"})(Y0=Vz.ValueType||(Vz.ValueType={}))});var o=$((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});kz.defaultTextMapSetter=kz.defaultTextMapGetter=void 0;kz.defaultTextMapGetter={get(q,z){if(q==null)return;return q[z]},keys(q){if(q==null)return[];return Object.keys(q)}};kz.defaultTextMapSetter={set(q,z,J){if(q==null)return;q[z]=J}}});var Az=$((Ez)=>{Object.defineProperty(Ez,"__esModule",{value:!0});Ez.NoopContextManager=void 0;var G0=k();class Rz{active(){return G0.ROOT_CONTEXT}with(q,z,J,...Z){return z.call(J,...Z)}bind(q,z){return z}enable(){return this}disable(){return this}}Ez.NoopContextManager=Rz});var R=$((Pz)=>{Object.defineProperty(Pz,"__esModule",{value:!0});Pz.ContextAPI=void 0;var h0=Az(),t=B(),yz=f(),a="context",w0=new h0.NoopContextManager;class e{constructor(){}static getInstance(){if(!this._instance)this._instance=new e;return this._instance}setGlobalContextManager(q){return(0,t.registerGlobal)(a,q,yz.DiagAPI.instance())}active(){return this._getContextManager().active()}with(q,z,J,...Z){return this._getContextManager().with(q,z,J,...Z)}bind(q,z){return this._getContextManager().bind(q,z)}_getContextManager(){return(0,t.getGlobal)(a)||w0}disable(){this._getContextManager().disable(),(0,t.unregisterGlobal)(a,yz.DiagAPI.instance())}}Pz.ContextAPI=e});var zq=$((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.TraceFlags=void 0;var O0;(function(q){q[q.NONE=0]="NONE",q[q.SAMPLED=1]="SAMPLED"})(O0=Sz.TraceFlags||(Sz.TraceFlags={}))});var y=$((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.INVALID_SPAN_CONTEXT=vz.INVALID_TRACEID=vz.INVALID_SPANID=void 0;var K0=zq();vz.INVALID_SPANID="0000000000000000";vz.INVALID_TRACEID="00000000000000000000000000000000";vz.INVALID_SPAN_CONTEXT={traceId:vz.INVALID_TRACEID,spanId:vz.INVALID_SPANID,traceFlags:K0.TraceFlags.NONE}});var P=$((xz)=>{Object.defineProperty(xz,"__esModule",{value:!0});xz.NonRecordingSpan=void 0;var B0=y();class Lz{constructor(q=B0.INVALID_SPAN_CONTEXT){this._spanContext=q}spanContext(){return this._spanContext}setAttribute(q,z){return this}setAttributes(q){return this}addEvent(q,z){return this}addLink(q){return this}addLinks(q){return this}setStatus(q){return this}updateName(q){return this}end(q){}isRecording(){return!1}recordException(q,z){}}xz.NonRecordingSpan=Lz});var $q=$((lz)=>{Object.defineProperty(lz,"__esModule",{value:!0});lz.getSpanContext=lz.setSpanContext=lz.deleteSpan=lz.setSpan=lz.getActiveSpan=lz.getSpan=void 0;var f0=k(),U0=P(),j0=R(),Jq=(0,f0.createContextKey)("OpenTelemetry Context Key SPAN");function Zq(q){return q.getValue(Jq)||void 0}lz.getSpan=Zq;function D0(){return Zq(j0.ContextAPI.getInstance().active())}lz.getActiveSpan=D0;function cz(q,z){return q.setValue(Jq,z)}lz.setSpan=cz;function C0(q){return q.deleteValue(Jq)}lz.deleteSpan=C0;function I0(q,z){return cz(q,new U0.NonRecordingSpan(z))}lz.setSpanContext=I0;function V0(q){var z;return(z=Zq(q))===null||z===void 0?void 0:z.spanContext()}lz.getSpanContext=V0});var M=$((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.wrapSpanContext=sz.isSpanContextValid=sz.isValidSpanId=sz.isValidTraceId=void 0;var iz=y(),T0=P(),A0=/^([0-9a-f]{32})$/i,y0=/^[0-9a-f]{16}$/i;function nz(q){return A0.test(q)&&q!==iz.INVALID_TRACEID}sz.isValidTraceId=nz;function pz(q){return y0.test(q)&&q!==iz.INVALID_SPANID}sz.isValidSpanId=pz;function P0(q){return nz(q.traceId)&&pz(q.spanId)}sz.isSpanContextValid=P0;function M0(q){return new T0.NonRecordingSpan(q)}sz.wrapSpanContext=M0});var Hq=$((az)=>{Object.defineProperty(az,"__esModule",{value:!0});az.NoopTracer=void 0;var m0=R(),oz=$q(),Qq=P(),d0=M(),Wq=m0.ContextAPI.getInstance();class tz{startSpan(q,z,J=Wq.active()){if(Boolean(z===null||z===void 0?void 0:z.root))return new Qq.NonRecordingSpan;let Q=J&&(0,oz.getSpanContext)(J);if(L0(Q)&&(0,d0.isSpanContextValid)(Q))return new Qq.NonRecordingSpan(Q);else return new Qq.NonRecordingSpan}startActiveSpan(q,z,J,Z){let Q,H,X;if(arguments.length<2)return;else if(arguments.length===2)X=z;else if(arguments.length===3)Q=z,X=J;else Q=z,H=J,X=Z;let F=H!==null&&H!==void 0?H:Wq.active(),Y=this.startSpan(q,Q,F),h=(0,oz.setSpan)(F,Y);return Wq.with(h,X,void 0,Y)}}az.NoopTracer=tz;function L0(q){return typeof q==="object"&&typeof q.spanId==="string"&&typeof q.traceId==="string"&&typeof q.traceFlags==="number"}});var Xq=$((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.ProxyTracer=void 0;var x0=Hq(),_0=new x0.NoopTracer;class qJ{constructor(q,z,J,Z){this._provider=q,this.name=z,this.version=J,this.options=Z}startSpan(q,z,J){return this._getTracer().startSpan(q,z,J)}startActiveSpan(q,z,J,Z){let Q=this._getTracer();return Reflect.apply(Q.startActiveSpan,Q,arguments)}_getTracer(){if(this._delegate)return this._delegate;let q=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!q)return _0;return this._delegate=q,this._delegate}}zJ.ProxyTracer=qJ});var WJ=$(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.NoopTracerProvider=void 0;var c0=Hq();class ZJ{getTracer(q,z,J){return new c0.NoopTracer}}$J.NoopTracerProvider=ZJ});var Yq=$((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.ProxyTracerProvider=void 0;var l0=Xq(),g0=WJ(),i0=new g0.NoopTracerProvider;class HJ{getTracer(q,z,J){var Z;return(Z=this.getDelegateTracer(q,z,J))!==null&&Z!==void 0?Z:new l0.ProxyTracer(this,q,z,J)}getDelegate(){var q;return(q=this._delegate)!==null&&q!==void 0?q:i0}setDelegate(q){this._delegate=q}getDelegateTracer(q,z,J){var Z;return(Z=this._delegate)===null||Z===void 0?void 0:Z.getTracer(q,z,J)}}XJ.ProxyTracerProvider=HJ});var GJ=$((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.SamplingDecision=void 0;var n0;(function(q){q[q.NOT_RECORD=0]="NOT_RECORD",q[q.RECORD=1]="RECORD",q[q.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(n0=FJ.SamplingDecision||(FJ.SamplingDecision={}))});var wJ=$((hJ)=>{Object.defineProperty(hJ,"__esModule",{value:!0});hJ.SpanKind=void 0;var p0;(function(q){q[q.INTERNAL=0]="INTERNAL",q[q.SERVER=1]="SERVER",q[q.CLIENT=2]="CLIENT",q[q.PRODUCER=3]="PRODUCER",q[q.CONSUMER=4]="CONSUMER"})(p0=hJ.SpanKind||(hJ.SpanKind={}))});var KJ=$((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.SpanStatusCode=void 0;var s0;(function(q){q[q.UNSET=0]="UNSET",q[q.OK=1]="OK",q[q.ERROR=2]="ERROR"})(s0=OJ.SpanStatusCode||(OJ.SpanStatusCode={}))});var UJ=$((BJ)=>{Object.defineProperty(BJ,"__esModule",{value:!0});BJ.validateValue=BJ.validateKey=void 0;var wq="[_0-9a-z-*/]",r0=`[a-z]${wq}{0,255}`,o0=`[a-z0-9]${wq}{0,240}@[a-z]${wq}{0,13}`,t0=new RegExp(`^(?:${r0}|${o0})$`),a0=/^[ -~]{0,255}[!-~]$/,e0=/,|=/;function q1(q){return t0.test(q)}BJ.validateKey=q1;function z1(q){return a0.test(q)&&!e0.test(q)}BJ.validateValue=z1});var kJ=$((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.TraceStateImpl=void 0;var jJ=UJ(),DJ=32,Z1=512,CJ=",",IJ="=";class Oq{constructor(q){if(this._internalState=new Map,q)this._parse(q)}set(q,z){let J=this._clone();if(J._internalState.has(q))J._internalState.delete(q);return J._internalState.set(q,z),J}unset(q){let z=this._clone();return z._internalState.delete(q),z}get(q){return this._internalState.get(q)}serialize(){return this._keys().reduce((q,z)=>{return q.push(z+IJ+this.get(z)),q},[]).join(CJ)}_parse(q){if(q.length>Z1)return;if(this._internalState=q.split(CJ).reverse().reduce((z,J)=>{let Z=J.trim(),Q=Z.indexOf(IJ);if(Q!==-1){let H=Z.slice(0,Q),X=Z.slice(Q+1,J.length);if((0,jJ.validateKey)(H)&&(0,jJ.validateValue)(X))z.set(H,X)}return z},new Map),this._internalState.size>DJ)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,DJ))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let q=new Oq;return q._internalState=new Map(this._internalState),q}}VJ.TraceStateImpl=Oq});var EJ=$((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ.createTraceState=void 0;var $1=kJ();function Q1(q){return new $1.TraceStateImpl(q)}bJ.createTraceState=Q1});var yJ=$((TJ)=>{Object.defineProperty(TJ,"__esModule",{value:!0});TJ.context=void 0;var W1=R();TJ.context=W1.ContextAPI.getInstance()});var SJ=$((PJ)=>{Object.defineProperty(PJ,"__esModule",{value:!0});PJ.diag=void 0;var H1=f();PJ.diag=H1.DiagAPI.instance()});var mJ=$((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.NOOP_METER_PROVIDER=vJ.NoopMeterProvider=void 0;var X1=s();class Kq{getMeter(q,z,J){return X1.NOOP_METER}}vJ.NoopMeterProvider=Kq;vJ.NOOP_METER_PROVIDER=new Kq});var _J=$((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.MetricsAPI=void 0;var F1=mJ(),Bq=B(),dJ=f(),fq="metrics";class Uq{constructor(){}static getInstance(){if(!this._instance)this._instance=new Uq;return this._instance}setGlobalMeterProvider(q){return(0,Bq.registerGlobal)(fq,q,dJ.DiagAPI.instance())}getMeterProvider(){return(0,Bq.getGlobal)(fq)||F1.NOOP_METER_PROVIDER}getMeter(q,z,J){return this.getMeterProvider().getMeter(q,z,J)}disable(){(0,Bq.unregisterGlobal)(fq,dJ.DiagAPI.instance())}}LJ.MetricsAPI=Uq});var gJ=$((cJ)=>{Object.defineProperty(cJ,"__esModule",{value:!0});cJ.metrics=void 0;var G1=_J();cJ.metrics=G1.MetricsAPI.getInstance()});var sJ=$((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.NoopTextMapPropagator=void 0;class iJ{inject(q,z){}extract(q,z){return q}fields(){return[]}}nJ.NoopTextMapPropagator=iJ});var aJ=$((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.deleteBaggage=oJ.setBaggage=oJ.getActiveBaggage=oJ.getBaggage=void 0;var h1=R(),w1=k(),jq=(0,w1.createContextKey)("OpenTelemetry Baggage Key");function rJ(q){return q.getValue(jq)||void 0}oJ.getBaggage=rJ;function O1(){return rJ(h1.ContextAPI.getInstance().active())}oJ.getActiveBaggage=O1;function K1(q,z){return q.setValue(jq,z)}oJ.setBaggage=K1;function B1(q){return q.deleteValue(jq)}oJ.deleteBaggage=B1});var ZZ=$((zZ)=>{Object.defineProperty(zZ,"__esModule",{value:!0});zZ.PropagationAPI=void 0;var Dq=B(),D1=sJ(),eJ=o(),S=aJ(),C1=d(),qZ=f(),Cq="propagation",I1=new D1.NoopTextMapPropagator;class Iq{constructor(){this.createBaggage=C1.createBaggage,this.getBaggage=S.getBaggage,this.getActiveBaggage=S.getActiveBaggage,this.setBaggage=S.setBaggage,this.deleteBaggage=S.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new Iq;return this._instance}setGlobalPropagator(q){return(0,Dq.registerGlobal)(Cq,q,qZ.DiagAPI.instance())}inject(q,z,J=eJ.defaultTextMapSetter){return this._getGlobalPropagator().inject(q,z,J)}extract(q,z,J=eJ.defaultTextMapGetter){return this._getGlobalPropagator().extract(q,z,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,Dq.unregisterGlobal)(Cq,qZ.DiagAPI.instance())}_getGlobalPropagator(){return(0,Dq.getGlobal)(Cq)||I1}}zZ.PropagationAPI=Iq});var WZ=$(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.propagation=void 0;var V1=ZZ();$Z.propagation=V1.PropagationAPI.getInstance()});var hZ=$((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.TraceAPI=void 0;var Vq=B(),HZ=Yq(),XZ=M(),C=$q(),YZ=f(),Nq="trace";class kq{constructor(){this._proxyTracerProvider=new HZ.ProxyTracerProvider,this.wrapSpanContext=XZ.wrapSpanContext,this.isSpanContextValid=XZ.isSpanContextValid,this.deleteSpan=C.deleteSpan,this.getSpan=C.getSpan,this.getActiveSpan=C.getActiveSpan,this.getSpanContext=C.getSpanContext,this.setSpan=C.setSpan,this.setSpanContext=C.setSpanContext}static getInstance(){if(!this._instance)this._instance=new kq;return this._instance}setGlobalTracerProvider(q){let z=(0,Vq.registerGlobal)(Nq,this._proxyTracerProvider,YZ.DiagAPI.instance());if(z)this._proxyTracerProvider.setDelegate(q);return z}getTracerProvider(){return(0,Vq.getGlobal)(Nq)||this._proxyTracerProvider}getTracer(q,z){return this.getTracerProvider().getTracer(q,z)}disable(){(0,Vq.unregisterGlobal)(Nq,YZ.DiagAPI.instance()),this._proxyTracerProvider=new HZ.ProxyTracerProvider}}FZ.TraceAPI=kq});var KZ=$((wZ)=>{Object.defineProperty(wZ,"__esModule",{value:!0});wZ.trace=void 0;var N1=hZ();wZ.trace=N1.TraceAPI.getInstance()});var L1=$((W)=>{Object.defineProperty(W,"__esModule",{value:!0});W.trace=W.propagation=W.metrics=W.diag=W.context=W.INVALID_SPAN_CONTEXT=W.INVALID_TRACEID=W.INVALID_SPANID=W.isValidSpanId=W.isValidTraceId=W.isSpanContextValid=W.createTraceState=W.TraceFlags=W.SpanStatusCode=W.SpanKind=W.SamplingDecision=W.ProxyTracerProvider=W.ProxyTracer=W.defaultTextMapSetter=W.defaultTextMapGetter=W.ValueType=W.createNoopMeter=W.DiagLogLevel=W.DiagConsoleLogger=W.ROOT_CONTEXT=W.createContextKey=W.baggageEntryMetadataFromString=void 0;var k1=d();Object.defineProperty(W,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return k1.baggageEntryMetadataFromString}});var BZ=k();Object.defineProperty(W,"createContextKey",{enumerable:!0,get:function(){return BZ.createContextKey}});Object.defineProperty(W,"ROOT_CONTEXT",{enumerable:!0,get:function(){return BZ.ROOT_CONTEXT}});var b1=hz();Object.defineProperty(W,"DiagConsoleLogger",{enumerable:!0,get:function(){return b1.DiagConsoleLogger}});var R1=E();Object.defineProperty(W,"DiagLogLevel",{enumerable:!0,get:function(){return R1.DiagLogLevel}});var E1=s();Object.defineProperty(W,"createNoopMeter",{enumerable:!0,get:function(){return E1.createNoopMeter}});var T1=Nz();Object.defineProperty(W,"ValueType",{enumerable:!0,get:function(){return T1.ValueType}});var fZ=o();Object.defineProperty(W,"defaultTextMapGetter",{enumerable:!0,get:function(){return fZ.defaultTextMapGetter}});Object.defineProperty(W,"defaultTextMapSetter",{enumerable:!0,get:function(){return fZ.defaultTextMapSetter}});var A1=Xq();Object.defineProperty(W,"ProxyTracer",{enumerable:!0,get:function(){return A1.ProxyTracer}});var y1=Yq();Object.defineProperty(W,"ProxyTracerProvider",{enumerable:!0,get:function(){return y1.ProxyTracerProvider}});var P1=GJ();Object.defineProperty(W,"SamplingDecision",{enumerable:!0,get:function(){return P1.SamplingDecision}});var M1=wJ();Object.defineProperty(W,"SpanKind",{enumerable:!0,get:function(){return M1.SpanKind}});var S1=KJ();Object.defineProperty(W,"SpanStatusCode",{enumerable:!0,get:function(){return S1.SpanStatusCode}});var v1=zq();Object.defineProperty(W,"TraceFlags",{enumerable:!0,get:function(){return v1.TraceFlags}});var u1=EJ();Object.defineProperty(W,"createTraceState",{enumerable:!0,get:function(){return u1.createTraceState}});var bq=M();Object.defineProperty(W,"isSpanContextValid",{enumerable:!0,get:function(){return bq.isSpanContextValid}});Object.defineProperty(W,"isValidTraceId",{enumerable:!0,get:function(){return bq.isValidTraceId}});Object.defineProperty(W,"isValidSpanId",{enumerable:!0,get:function(){return bq.isValidSpanId}});var Rq=y();Object.defineProperty(W,"INVALID_SPANID",{enumerable:!0,get:function(){return Rq.INVALID_SPANID}});Object.defineProperty(W,"INVALID_TRACEID",{enumerable:!0,get:function(){return Rq.INVALID_TRACEID}});Object.defineProperty(W,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return Rq.INVALID_SPAN_CONTEXT}});var UZ=yJ();Object.defineProperty(W,"context",{enumerable:!0,get:function(){return UZ.context}});var jZ=SJ();Object.defineProperty(W,"diag",{enumerable:!0,get:function(){return jZ.diag}});var DZ=gJ();Object.defineProperty(W,"metrics",{enumerable:!0,get:function(){return DZ.metrics}});var CZ=WZ();Object.defineProperty(W,"propagation",{enumerable:!0,get:function(){return CZ.propagation}});var IZ=KZ();Object.defineProperty(W,"trace",{enumerable:!0,get:function(){return IZ.trace}});W.default={context:UZ.context,diag:jZ.diag,metrics:DZ.metrics,propagation:CZ.propagation,trace:IZ.trace}});
3
+ export{L1 as RP};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ld as a}from"./chunk-1rgt2vmt.js";import"./chunk-rk0fnvp5.js";import"./chunk-f2pv705d.js";export{a as dict};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ce as a,de as b,ee as c}from"./chunk-twfvrafb.js";import"./chunk-9xxnwb33.js";import"./chunk-qdvnscxm.js";import"./chunk-yxttz5z5.js";import"./chunk-f2pv705d.js";export{b as validateSsoProfile,a as isSsoProfile,c as fromSSO};