@costrict/csc 4.0.4 → 4.0.5-2

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 (425) hide show
  1. package/README.md +398 -398
  2. package/dist/{chunk-kpdp2gz2.js → chunk-017h2t5s.js} +13 -13
  3. package/dist/{chunk-tg41r14s.js → chunk-01s11pzc.js} +5 -5
  4. package/dist/{chunk-yhjccrrs.js → chunk-03fgtmxr.js} +97 -97
  5. package/dist/{chunk-pn0k5wak.js → chunk-03qpgz7e.js} +749 -23
  6. package/dist/{chunk-zwna33ms.js → chunk-04gervaa.js} +36 -36
  7. package/dist/{chunk-xq3k2392.js → chunk-06vftkzj.js} +57 -57
  8. package/dist/{chunk-b4ftppkp.js → chunk-07qe00pw.js} +22 -22
  9. package/dist/{chunk-zwv3h48p.js → chunk-0bnr3avz.js} +3 -3
  10. package/dist/{chunk-gaz7te9m.js → chunk-0f0x7wey.js} +6 -6
  11. package/dist/{chunk-tw4tjc73.js → chunk-0jd3p53p.js} +1 -1
  12. package/dist/{chunk-waar1mpa.js → chunk-0mf8c3kx.js} +2 -3
  13. package/dist/{chunk-31959kp1.js → chunk-0t96xx6m.js} +5 -5
  14. package/dist/chunk-0vrstrej.js +40 -0
  15. package/dist/{chunk-epat31ss.js → chunk-0vwyh27q.js} +1 -1
  16. package/dist/{chunk-v4zejp1f.js → chunk-0wcjaby5.js} +57 -57
  17. package/dist/{chunk-bg86k3wz.js → chunk-0x2d0pvq.js} +83 -339
  18. package/dist/{chunk-smzahkka.js → chunk-0xfdnpd3.js} +4 -4
  19. package/dist/{chunk-bgptt4dd.js → chunk-0xkrxtvs.js} +56 -56
  20. package/dist/{chunk-w8ttjf01.js → chunk-0yncnctp.js} +183 -179
  21. package/dist/{chunk-m0yqzzgm.js → chunk-11hsxgtv.js} +2 -2
  22. package/dist/{chunk-6rrp0t66.js → chunk-1gj2ern2.js} +530 -1321
  23. package/dist/{chunk-zatd0y92.js → chunk-1nmcmem8.js} +5 -5
  24. package/dist/{chunk-3q10e1r5.js → chunk-22rbrd4c.js} +64 -64
  25. package/dist/{chunk-ds6b4567.js → chunk-25d4tsxt.js} +67 -67
  26. package/dist/{chunk-p6359g16.js → chunk-2625r3vm.js} +26 -26
  27. package/dist/{chunk-sqb7kkqx.js → chunk-262zh26y.js} +6 -6
  28. package/dist/{chunk-m5chmh67.js → chunk-2c0sn45e.js} +2 -2
  29. package/dist/{chunk-cb0cjgk3.js → chunk-2d3mes58.js} +56 -56
  30. package/dist/{chunk-4qcmn89e.js → chunk-2dhbfegz.js} +14 -17
  31. package/dist/{chunk-whs655k7.js → chunk-2dwsdnd5.js} +57 -57
  32. package/dist/{chunk-j1psatq5.js → chunk-2j59ksap.js} +3 -3
  33. package/dist/{chunk-pv6amr31.js → chunk-2kmmz00g.js} +1 -1
  34. package/dist/{chunk-nt36mbmr.js → chunk-2mtjmgq4.js} +14 -14
  35. package/dist/{chunk-j2ba3wye.js → chunk-2ne8qzyp.js} +22 -22
  36. package/dist/chunk-2xpkjfdd.js +94 -0
  37. package/dist/{chunk-eenv3551.js → chunk-30934n2w.js} +56 -56
  38. package/dist/{chunk-125xg82c.js → chunk-3a8yw7zy.js} +22 -22
  39. package/dist/{chunk-hhc28ga0.js → chunk-3aj8x8wh.js} +26 -26
  40. package/dist/{chunk-j5bved6z.js → chunk-3hk1e3s8.js} +61 -61
  41. package/dist/{chunk-b43rsa2d.js → chunk-3nys7146.js} +2 -2
  42. package/dist/{chunk-pbn6n0kg.js → chunk-3px6h32z.js} +56 -56
  43. package/dist/{chunk-bnznxckg.js → chunk-3rrf7vb7.js} +56 -56
  44. package/dist/{chunk-j2bv645h.js → chunk-3s96vaet.js} +9 -11
  45. package/dist/{chunk-8ew7s39b.js → chunk-3wdbgpa5.js} +1 -1
  46. package/dist/{chunk-a7bs51hq.js → chunk-423tyk90.js} +28 -28
  47. package/dist/{chunk-6zf34pgy.js → chunk-47sy4t29.js} +1 -1
  48. package/dist/{chunk-p2xfr5am.js → chunk-48qkvr25.js} +57 -57
  49. package/dist/{chunk-q4tkspkp.js → chunk-4bfe005x.js} +4 -4
  50. package/dist/{chunk-qdfzdcz3.js → chunk-4dn253dg.js} +60 -60
  51. package/dist/{chunk-r089a4na.js → chunk-4gv5n07n.js} +22 -22
  52. package/dist/{chunk-npvte75f.js → chunk-4jy4qv07.js} +5 -5
  53. package/dist/{chunk-n00sjrne.js → chunk-4m7gyesz.js} +6 -6
  54. package/dist/{chunk-90tgpdv5.js → chunk-4q954a7f.js} +3 -3
  55. package/dist/{chunk-7sgatxct.js → chunk-4qqswajh.js} +5 -5
  56. package/dist/{chunk-zwwgfs0j.js → chunk-4rwe8abn.js} +3 -3
  57. package/dist/{chunk-122wp3n9.js → chunk-4sfd9m3h.js} +2 -2
  58. package/dist/{chunk-q72weaf5.js → chunk-4tn9qqws.js} +829 -2177
  59. package/dist/{chunk-3d953efq.js → chunk-4wr994cr.js} +5 -5
  60. package/dist/{chunk-kaqp12mx.js → chunk-4xptxbxj.js} +56 -56
  61. package/dist/{chunk-9pp9xrw2.js → chunk-50fv6d8k.js} +14 -17
  62. package/dist/{chunk-fmq83t7h.js → chunk-50x6aec4.js} +3 -3
  63. package/dist/{chunk-9k7n4z3r.js → chunk-54nmt278.js} +5 -5
  64. package/dist/{chunk-kn9hzg11.js → chunk-5798ckxm.js} +3 -3
  65. package/dist/{chunk-m3szhhvz.js → chunk-5bb2bqwr.js} +58 -58
  66. package/dist/{chunk-63v197w4.js → chunk-5c6821w5.js} +56 -56
  67. package/dist/{chunk-vh70jg33.js → chunk-5kzpey2d.js} +4 -4
  68. package/dist/{chunk-4w4wdgeb.js → chunk-5nbjxyeb.js} +23 -23
  69. package/dist/{chunk-1sg2k4mx.js → chunk-5vdpbk46.js} +515 -515
  70. package/dist/{chunk-yhc1fee8.js → chunk-5vt3zdmw.js} +23 -23
  71. package/dist/{chunk-0gqymhpf.js → chunk-61ts87kf.js} +4 -4
  72. package/dist/{chunk-tjaexdr7.js → chunk-63cw4ef2.js} +56 -56
  73. package/dist/{chunk-9rtywfhp.js → chunk-64nsm3qd.js} +2 -2
  74. package/dist/{chunk-7mpdfrdm.js → chunk-656z4m7c.js} +5 -5
  75. package/dist/{chunk-h9ef6kkf.js → chunk-67xwtjkv.js} +5 -5
  76. package/dist/{chunk-8jpxzesa.js → chunk-67zpbdn4.js} +1 -1
  77. package/dist/{chunk-8vawdfrp.js → chunk-6c5zyga7.js} +3 -5
  78. package/dist/{chunk-mz0qfs55.js → chunk-6dj7qxgs.js} +63 -63
  79. package/dist/{chunk-jxyh3xyq.js → chunk-6e7m4qwa.js} +23 -23
  80. package/dist/{chunk-f6qh3vrn.js → chunk-6kw1svfr.js} +4 -4
  81. package/dist/{chunk-t1mtqz1e.js → chunk-6r247w4d.js} +1 -1
  82. package/dist/{chunk-4mygvv18.js → chunk-6rjtp4nk.js} +57 -57
  83. package/dist/{chunk-dct4myst.js → chunk-6yax8ef2.js} +57 -57
  84. package/dist/{chunk-ntwe4mq2.js → chunk-6zfse75g.js} +11 -11
  85. package/dist/{chunk-tz2rkx2s.js → chunk-71xc05s3.js} +3 -3
  86. package/dist/{chunk-2mmx9qqz.js → chunk-769r5are.js} +27 -27
  87. package/dist/{chunk-zf5wkcyy.js → chunk-7bme7hfa.js} +127 -1099
  88. package/dist/{chunk-ppa284pd.js → chunk-7h8yq9tw.js} +56 -56
  89. package/dist/{chunk-sx291v4f.js → chunk-7mkddxxm.js} +63 -63
  90. package/dist/{chunk-9m27g5s1.js → chunk-7njxy9q8.js} +18 -3
  91. package/dist/{chunk-vdh36rw7.js → chunk-7pdhxye3.js} +3 -3
  92. package/dist/{chunk-zpm1rpmw.js → chunk-7q2pgeny.js} +16 -16
  93. package/dist/{chunk-f16qs2ag.js → chunk-7r37a4t0.js} +56 -56
  94. package/dist/{chunk-skxa5fes.js → chunk-7sk1sscc.js} +14 -16
  95. package/dist/{chunk-b3behs0y.js → chunk-7wqgtnxf.js} +3 -3
  96. package/dist/{chunk-3gaxrmqq.js → chunk-7xsa2mcd.js} +15 -15
  97. package/dist/{chunk-t1whcbtd.js → chunk-7zzbce1y.js} +73 -73
  98. package/dist/{chunk-371mcwkv.js → chunk-861s8jy8.js} +7 -7
  99. package/dist/{chunk-kh9fj2xh.js → chunk-86415apq.js} +60 -60
  100. package/dist/{chunk-7vzj8rfd.js → chunk-86b8rhe0.js} +4 -4
  101. package/dist/{chunk-tp3mqwh3.js → chunk-87gjcnga.js} +7 -7
  102. package/dist/{chunk-vxnvzfnv.js → chunk-8avfrdpz.js} +2 -3
  103. package/dist/{chunk-6dhen79h.js → chunk-8b3p55rz.js} +8 -8
  104. package/dist/{chunk-h13g15kb.js → chunk-8bcxzxe5.js} +1 -1
  105. package/dist/{chunk-pb2x8g1w.js → chunk-8g14cs7t.js} +67 -67
  106. package/dist/{chunk-s6a338bt.js → chunk-8g3sbhtv.js} +3 -3
  107. package/dist/{chunk-2f3vsxna.js → chunk-8hmfghmy.js} +5 -5
  108. package/dist/{chunk-j64ga6ta.js → chunk-8jyp5q4y.js} +304 -272
  109. package/dist/{chunk-zwkqabbj.js → chunk-8wxvkw8d.js} +11 -11
  110. package/dist/{chunk-3b5a4wa6.js → chunk-8zfg78yq.js} +22 -22
  111. package/dist/{chunk-02n5zpyc.js → chunk-95gj5fgc.js} +4 -4
  112. package/dist/{chunk-rzj6hzme.js → chunk-965vae8e.js} +8 -8
  113. package/dist/{chunk-rar7nmve.js → chunk-9b7s3jwq.js} +57 -57
  114. package/dist/{chunk-ga3m4ews.js → chunk-9bt80zz1.js} +56 -56
  115. package/dist/{chunk-ng8q29em.js → chunk-9f1128wv.js} +2 -2
  116. package/dist/chunk-9fnz1421.js +180 -0
  117. package/dist/{chunk-kh9hfyzf.js → chunk-9qjtmqvh.js} +56 -56
  118. package/dist/{chunk-eserktyd.js → chunk-9szwp11z.js} +4 -4
  119. package/dist/{chunk-vmfckw4g.js → chunk-9v2wtvk2.js} +56 -56
  120. package/dist/{chunk-ftwqpbvy.js → chunk-9xz0knh8.js} +56 -56
  121. package/dist/{chunk-b82adekm.js → chunk-absyky51.js} +57 -57
  122. package/dist/{chunk-bneqxcmf.js → chunk-acv242nr.js} +1 -1
  123. package/dist/{chunk-4h43b7ww.js → chunk-ak67x6gk.js} +69 -69
  124. package/dist/{chunk-w12f58yz.js → chunk-amp2gnxw.js} +14 -17
  125. package/dist/{chunk-mnrswcqf.js → chunk-anm6tjv1.js} +56 -56
  126. package/dist/{chunk-b909mp8w.js → chunk-aqf46h5w.js} +1 -1
  127. package/dist/{chunk-td6j7fcr.js → chunk-avc2286c.js} +56 -56
  128. package/dist/{chunk-y64tceyw.js → chunk-b08zpkbe.js} +3 -3
  129. package/dist/{chunk-rn68wk3p.js → chunk-b91fnap2.js} +22 -22
  130. package/dist/{chunk-2ab59kwj.js → chunk-bdr1btg9.js} +3 -3
  131. package/dist/{chunk-03mgn26m.js → chunk-bqhegf30.js} +65 -65
  132. package/dist/{chunk-j04z48rw.js → chunk-bt64sq5y.js} +3 -3
  133. package/dist/{chunk-5qxgyby3.js → chunk-btma241g.js} +612 -2
  134. package/dist/{chunk-yztxtgd8.js → chunk-bvrsyxek.js} +66 -66
  135. package/dist/{chunk-xs12ggs7.js → chunk-c22zscvr.js} +60 -60
  136. package/dist/{chunk-ex2q76wx.js → chunk-c5yryhhe.js} +1 -1
  137. package/dist/{chunk-2kxk7ftp.js → chunk-ccecm4xc.js} +59 -59
  138. package/dist/{chunk-b2pxvgwp.js → chunk-ccpczrgp.js} +10 -10
  139. package/dist/{chunk-swq8qack.js → chunk-chm6hn2w.js} +24 -24
  140. package/dist/{chunk-6ge6zddg.js → chunk-chv0ybb2.js} +3 -3
  141. package/dist/{chunk-bbxfenf0.js → chunk-ckhc04my.js} +57 -57
  142. package/dist/{chunk-2dtmmwxh.js → chunk-cqvjzkby.js} +4 -4
  143. package/dist/{chunk-9b2ts7my.js → chunk-d1gqavnx.js} +1 -1
  144. package/dist/{chunk-5zpstd3m.js → chunk-dd2axg8f.js} +7 -7
  145. package/dist/{chunk-9b48fxkx.js → chunk-dde29xbq.js} +56 -56
  146. package/dist/{chunk-0wp0zaz8.js → chunk-ddqc9xg3.js} +57 -57
  147. package/dist/{chunk-ngrj6x74.js → chunk-df52t7ys.js} +168 -161
  148. package/dist/{chunk-sw51thrz.js → chunk-dmmgx418.js} +59 -59
  149. package/dist/{chunk-pp347e16.js → chunk-dt9jxccj.js} +56 -56
  150. package/dist/{chunk-tq82bwaf.js → chunk-dvd65zc6.js} +2 -2
  151. package/dist/{chunk-cx8c18e3.js → chunk-dxrv7e4f.js} +62 -62
  152. package/dist/{chunk-rgm0v4he.js → chunk-e321pz6p.js} +24 -24
  153. package/dist/{chunk-vmf74a91.js → chunk-e4r3ytgn.js} +57 -57
  154. package/dist/{chunk-sjmx1scx.js → chunk-e6y51dry.js} +23 -23
  155. package/dist/{chunk-sd3jwppm.js → chunk-ebbxn1k1.js} +8 -8
  156. package/dist/{chunk-m1qqm2nc.js → chunk-ec8te99g.js} +3 -3
  157. package/dist/{chunk-wkh76b1p.js → chunk-enxnnzk5.js} +7 -7
  158. package/dist/{chunk-zwa133ny.js → chunk-es1hw74y.js} +2 -2
  159. package/dist/{chunk-ezwhbfk8.js → chunk-evddwqmn.js} +5 -5
  160. package/dist/{chunk-1j8anrn2.js → chunk-ezn0kc6e.js} +56 -56
  161. package/dist/{chunk-dc83q1dm.js → chunk-f4kbe948.js} +2 -2
  162. package/dist/{chunk-w2x18mrn.js → chunk-f5tw1fzg.js} +23 -23
  163. package/dist/{chunk-5a6vqs49.js → chunk-f7d1nm78.js} +67 -67
  164. package/dist/{chunk-p6ejgd85.js → chunk-f9r0qhn5.js} +60 -60
  165. package/dist/{chunk-7rk9ppx4.js → chunk-fbz7854m.js} +1 -1
  166. package/dist/{chunk-w8krbzb0.js → chunk-fc1dg6fw.js} +4 -4
  167. package/dist/chunk-ff3ahqvh.js +85 -0
  168. package/dist/{chunk-yb6x70md.js → chunk-fg5ke2mj.js} +1786 -141
  169. package/dist/{chunk-dge3af7q.js → chunk-fgccqgaa.js} +8 -8
  170. package/dist/{chunk-rwzb4fmk.js → chunk-fh13xqb9.js} +59 -59
  171. package/dist/{chunk-neh0bkkf.js → chunk-fh1s6406.js} +56 -56
  172. package/dist/{chunk-nzqmmqwj.js → chunk-fh4n4a9x.js} +23 -23
  173. package/dist/{chunk-kxptk43f.js → chunk-fjawf9k6.js} +57 -57
  174. package/dist/{chunk-m7r4wqc3.js → chunk-fp4n49gs.js} +1 -1
  175. package/dist/{chunk-jvgc4q2b.js → chunk-fqrvsdfn.js} +59 -59
  176. package/dist/{chunk-svw35ajj.js → chunk-fshcxsrd.js} +57 -57
  177. package/dist/{chunk-h5qx4apy.js → chunk-fswvn2rk.js} +1 -1
  178. package/dist/{chunk-bwqvhzrw.js → chunk-fthbxpt7.js} +76 -69
  179. package/dist/{chunk-send164b.js → chunk-ftm33kfs.js} +23 -23
  180. package/dist/{chunk-1nz1mgm6.js → chunk-fw8e2t6e.js} +39 -268
  181. package/dist/{chunk-fw64v27c.js → chunk-fz0ch109.js} +3 -3
  182. package/dist/{chunk-vxs1rvy8.js → chunk-g27zzhxy.js} +6 -6
  183. package/dist/{chunk-z8zf2bjp.js → chunk-g4qkf769.js} +4 -4
  184. package/dist/{chunk-j2cbcyf7.js → chunk-g649rtg8.js} +4 -6
  185. package/dist/{chunk-5p8k3wyp.js → chunk-g80p271x.js} +59 -59
  186. package/dist/{chunk-ekkewv4y.js → chunk-g8bjvhzs.js} +1 -1
  187. package/dist/{chunk-js21kfpq.js → chunk-garqv1np.js} +1 -1
  188. package/dist/{chunk-2c8aqb33.js → chunk-gemm3j13.js} +56 -56
  189. package/dist/{chunk-t4z17xt4.js → chunk-geytfqmn.js} +10 -10
  190. package/dist/{chunk-tsdqd747.js → chunk-gfex5hb6.js} +10 -4
  191. package/dist/{chunk-kk42fg5v.js → chunk-gffypgc8.js} +23 -23
  192. package/dist/{chunk-4nvhfqsy.js → chunk-gh5t5hks.js} +58 -58
  193. package/dist/{chunk-h0n9zhgw.js → chunk-gjsh5d1m.js} +56 -56
  194. package/dist/{chunk-xeehxb1q.js → chunk-gntxvc8d.js} +3 -3
  195. package/dist/{chunk-yw0st51b.js → chunk-gp0e8n1j.js} +57 -57
  196. package/dist/{chunk-7t38tp7c.js → chunk-gvw8sq1x.js} +24 -24
  197. package/dist/{chunk-5dn1m1r7.js → chunk-gwyn2qmg.js} +2 -2
  198. package/dist/{chunk-h28xqfk8.js → chunk-gybg10fj.js} +62 -62
  199. package/dist/{chunk-7srwepm7.js → chunk-h0634caf.js} +1 -1
  200. package/dist/{chunk-zw543g0m.js → chunk-h50avem9.js} +57 -57
  201. package/dist/{chunk-34vn56ag.js → chunk-h7c9t4eg.js} +8 -8
  202. package/dist/{chunk-zbrk28bp.js → chunk-h9vwd6jb.js} +56 -56
  203. package/dist/{chunk-nn8nkawn.js → chunk-hece55mn.js} +7 -7
  204. package/dist/{chunk-skrja2sz.js → chunk-hj1zymy7.js} +2 -2
  205. package/dist/{chunk-7sgn6fv0.js → chunk-hnydgd6d.js} +6 -6
  206. package/dist/{chunk-9azyfe65.js → chunk-hrj5pszj.js} +61 -61
  207. package/dist/{chunk-vhjhyt2r.js → chunk-j2dwrqy6.js} +26 -26
  208. package/dist/{chunk-ebx4j5r5.js → chunk-j6k3zjb5.js} +5 -7
  209. package/dist/{chunk-3nmhzccb.js → chunk-j6v1eh21.js} +2 -2
  210. package/dist/{chunk-2xezy8pc.js → chunk-jfr51c5y.js} +7 -7
  211. package/dist/{chunk-khdftpea.js → chunk-jgxk5p8d.js} +9 -9
  212. package/dist/{chunk-cs9xxrmx.js → chunk-jh5g3xkz.js} +56 -56
  213. package/dist/{chunk-zvxjnak3.js → chunk-jpawr85p.js} +56 -56
  214. package/dist/{chunk-rvp6qq44.js → chunk-jqv2patg.js} +5 -5
  215. package/dist/{chunk-9kqtdah4.js → chunk-jr21cjeg.js} +1 -1
  216. package/dist/{chunk-znehavdm.js → chunk-jvnb1zrw.js} +1 -1
  217. package/dist/{chunk-34b0y9w3.js → chunk-k4xqffsa.js} +57 -57
  218. package/dist/{chunk-92skmpg9.js → chunk-k53j516k.js} +56 -56
  219. package/dist/{chunk-jd2ams26.js → chunk-k6h9p8gg.js} +6 -6
  220. package/dist/{chunk-3c1ddhnk.js → chunk-kgbtjbmd.js} +19 -207
  221. package/dist/{chunk-ztqfa7pd.js → chunk-khz74t05.js} +56 -56
  222. package/dist/{chunk-xt4v95je.js → chunk-kjkb2g5m.js} +3 -3
  223. package/dist/{chunk-tyxhcbsd.js → chunk-kpmqm0t6.js} +1 -1
  224. package/dist/{chunk-d09j71dr.js → chunk-kqdp5wzc.js} +6 -6
  225. package/dist/{chunk-8y3eszv7.js → chunk-krbnqs28.js} +2 -2
  226. package/dist/{chunk-wj8gbr2g.js → chunk-kt3be60k.js} +58 -58
  227. package/dist/{chunk-vgdtw10n.js → chunk-ktzxeprc.js} +2 -2
  228. package/dist/{chunk-65gzht6d.js → chunk-m38tg84x.js} +56 -56
  229. package/dist/{chunk-b3t64cwd.js → chunk-m3x5s3db.js} +59 -59
  230. package/dist/{chunk-z5w7a1cv.js → chunk-m7p0qsyd.js} +26 -26
  231. package/dist/{chunk-njdz3yry.js → chunk-mb56b98v.js} +4 -4
  232. package/dist/{chunk-jp8tnjzr.js → chunk-mc0ehz52.js} +59 -59
  233. package/dist/{chunk-vf3etxnx.js → chunk-mcs219z2.js} +1 -1
  234. package/dist/{chunk-ffy37ks3.js → chunk-mdcz65hq.js} +23 -23
  235. package/dist/{chunk-61edjmf6.js → chunk-mg1w5bk3.js} +2 -2
  236. package/dist/{chunk-metmg93w.js → chunk-mgjpqqqv.js} +2 -2
  237. package/dist/{chunk-1k0wbt0f.js → chunk-mn4ve34r.js} +87 -87
  238. package/dist/{chunk-4vqz7w3v.js → chunk-mratscx5.js} +4 -4
  239. package/dist/{chunk-n5pe3jtt.js → chunk-n1bh6pgv.js} +2 -2
  240. package/dist/{chunk-t0twk3e5.js → chunk-n217n8sr.js} +1 -1
  241. package/dist/chunk-n35vwqby.js +777 -0
  242. package/dist/{chunk-4tre5ddg.js → chunk-neak2qc4.js} +1 -1
  243. package/dist/{chunk-w8yhf638.js → chunk-nfnvct96.js} +1 -1
  244. package/dist/{chunk-e5ewhhx6.js → chunk-nm4p4t82.js} +56 -56
  245. package/dist/{chunk-9pkh2w7v.js → chunk-nm5gk39k.js} +8 -8
  246. package/dist/{chunk-wyz7j9j0.js → chunk-nr4y1jqa.js} +23 -23
  247. package/dist/{chunk-1d0d18qj.js → chunk-nsnkzerj.js} +22 -22
  248. package/dist/{chunk-j5keq4ye.js → chunk-nt65jyx9.js} +60 -60
  249. package/dist/{chunk-0pkrwxrg.js → chunk-nz4mxnb9.js} +3 -3
  250. package/dist/{chunk-74v2mh4t.js → chunk-p1adg740.js} +1 -1
  251. package/dist/{chunk-d8ztpy7x.js → chunk-p45yh5qt.js} +7 -7
  252. package/dist/{chunk-jvf4wvhn.js → chunk-p4nbt9zw.js} +57 -57
  253. package/dist/{chunk-0xfz1hj1.js → chunk-pbrwgq4d.js} +6 -6
  254. package/dist/{chunk-6hk5a6ky.js → chunk-pc5qdkr6.js} +56 -56
  255. package/dist/{chunk-67jg7cfy.js → chunk-phce1mav.js} +2 -2
  256. package/dist/{chunk-vjv7wvnc.js → chunk-phqrbrn0.js} +4 -4
  257. package/dist/{chunk-3xhmzvxm.js → chunk-pjkaqt23.js} +5 -5
  258. package/dist/{chunk-jq9vjfbd.js → chunk-pjqxn9ac.js} +57 -57
  259. package/dist/{chunk-npywdb7q.js → chunk-pn1wg9d1.js} +3 -3
  260. package/dist/{chunk-f62xm8dh.js → chunk-pn8s6m5g.js} +3 -3
  261. package/dist/{chunk-9snpw77c.js → chunk-pnarhx6j.js} +67 -67
  262. package/dist/{chunk-6eq35v86.js → chunk-pnv69npn.js} +1 -1
  263. package/dist/{chunk-1395xfcq.js → chunk-pyzhdqts.js} +58 -58
  264. package/dist/{chunk-j95j6wz8.js → chunk-q27bsq0y.js} +1 -1
  265. package/dist/chunk-q697t7v5.js +500 -0
  266. package/dist/{chunk-wdwa58v1.js → chunk-qc0qywhh.js} +59 -59
  267. package/dist/{chunk-3jjc204v.js → chunk-qcgd8bgd.js} +18 -18
  268. package/dist/{chunk-d9bvzfkg.js → chunk-qd5ch7gy.js} +62 -62
  269. package/dist/{chunk-vj8q7shk.js → chunk-qe7arwgg.js} +2 -2
  270. package/dist/{chunk-r41sjxcn.js → chunk-qegzj6nm.js} +1 -1
  271. package/dist/{chunk-9jt1c7t9.js → chunk-qenkaqer.js} +58 -58
  272. package/dist/{chunk-hyc3kbfq.js → chunk-qevpw4g9.js} +4 -4
  273. package/dist/{chunk-kerkk89t.js → chunk-qfdzqed0.js} +4 -4
  274. package/dist/{chunk-99p0sa4h.js → chunk-qhw6wg0y.js} +2 -2
  275. package/dist/{chunk-6jdrt36m.js → chunk-qk4akts4.js} +2 -2
  276. package/dist/{chunk-knc5za98.js → chunk-qkjkr973.js} +57 -57
  277. package/dist/{chunk-5ycqyqbj.js → chunk-qnbe7d8a.js} +1 -1
  278. package/dist/{chunk-e4jqbn4d.js → chunk-qqfbkaad.js} +3 -4
  279. package/dist/{chunk-zqhxr0h7.js → chunk-qs2xnhte.js} +5 -7
  280. package/dist/{chunk-hfy21maq.js → chunk-qszxzska.js} +6 -6
  281. package/dist/{chunk-nbvc8bh6.js → chunk-qvf5w48h.js} +24 -24
  282. package/dist/{chunk-tbce47cr.js → chunk-qxsrtfzn.js} +4 -4
  283. package/dist/{chunk-2cpxc5we.js → chunk-r1931n7y.js} +56 -56
  284. package/dist/{chunk-13g6d7wt.js → chunk-r3rck4qa.js} +10 -10
  285. package/dist/{chunk-pb2nc7r0.js → chunk-r5c38r2r.js} +149 -61
  286. package/dist/{chunk-k6tzzr9c.js → chunk-r65v6fg2.js} +7 -7
  287. package/dist/{chunk-me2986xy.js → chunk-r6v7yh3c.js} +57 -57
  288. package/dist/{chunk-ns3babbs.js → chunk-r7mjzgyn.js} +2 -4
  289. package/dist/{chunk-jxe1a8kz.js → chunk-rbkzzw66.js} +6 -6
  290. package/dist/chunk-red9b98p.js +378 -0
  291. package/dist/{chunk-drnxbc1w.js → chunk-rfp8ja4z.js} +2 -2
  292. package/dist/{chunk-g8w2205d.js → chunk-rhcejk4j.js} +6 -6
  293. package/dist/{chunk-r6ewgv12.js → chunk-rjpkjatc.js} +1 -1
  294. package/dist/{chunk-rw44vqpq.js → chunk-rqzrj3gm.js} +56 -56
  295. package/dist/{chunk-g0jmqbp4.js → chunk-rr9tqgxc.js} +6 -6
  296. package/dist/{chunk-s38qgqfs.js → chunk-rrtkz2js.js} +4 -4
  297. package/dist/{chunk-k95meznc.js → chunk-rsf6y5zm.js} +7 -7
  298. package/dist/{chunk-7jm7pa1e.js → chunk-ryd3pd8a.js} +14 -17
  299. package/dist/{chunk-wn8nakrh.js → chunk-s748h9my.js} +56 -56
  300. package/dist/{chunk-32fv3vze.js → chunk-s8a5ta09.js} +25 -25
  301. package/dist/{chunk-5wxavbb8.js → chunk-sa4athwh.js} +23 -23
  302. package/dist/{chunk-ew68a4sy.js → chunk-sec4gngn.js} +57 -57
  303. package/dist/{chunk-wxe04dx4.js → chunk-sf8fnzc3.js} +3 -3
  304. package/dist/{chunk-k591s450.js → chunk-sfh6dmxz.js} +56 -56
  305. package/dist/chunk-shj5md9j.js +1486 -0
  306. package/dist/{chunk-n0pkzaaw.js → chunk-smcj5g84.js} +6 -6
  307. package/dist/{chunk-0ejzh5by.js → chunk-spw5dfzh.js} +58 -58
  308. package/dist/{chunk-1ymedh1v.js → chunk-stwnpgkm.js} +23 -23
  309. package/dist/{chunk-0kh2f6kh.js → chunk-sz53f4b4.js} +3 -3
  310. package/dist/{chunk-ndcrbqq2.js → chunk-t24yf1vt.js} +57 -57
  311. package/dist/{chunk-z93cpz34.js → chunk-t7b3r8v9.js} +3 -3
  312. package/dist/{chunk-00m08jnq.js → chunk-ta5dpd9k.js} +56 -56
  313. package/dist/{chunk-mj9rbmy1.js → chunk-tdcaa5xt.js} +5 -5
  314. package/dist/{chunk-zr78q4qg.js → chunk-tephtjvc.js} +56 -56
  315. package/dist/{chunk-7f0atzzf.js → chunk-tgwvgrb8.js} +57 -57
  316. package/dist/{chunk-95dy6w67.js → chunk-tq7vtsx4.js} +2 -2
  317. package/dist/{chunk-vhk0hgnv.js → chunk-tvw4vmrq.js} +56 -56
  318. package/dist/{chunk-7vzwyazf.js → chunk-v1rvqs6p.js} +4 -4
  319. package/dist/{chunk-tzpxsjm3.js → chunk-v3rtftz9.js} +29 -29
  320. package/dist/{chunk-sm24ay0y.js → chunk-v3yayvzt.js} +117 -117
  321. package/dist/{chunk-z6wpnk5y.js → chunk-vn9vww4b.js} +1 -1
  322. package/dist/{chunk-84cjtasj.js → chunk-vnc0m7be.js} +58 -58
  323. package/dist/{chunk-0wrzeej6.js → chunk-vqnb1we6.js} +1 -1
  324. package/dist/{chunk-fq1j9zm0.js → chunk-vsa6z84y.js} +3 -3
  325. package/dist/{chunk-atpyr1kg.js → chunk-vvf0dstd.js} +57 -57
  326. package/dist/{chunk-6v1p41rg.js → chunk-vy5q8hrp.js} +7 -7
  327. package/dist/{chunk-mbv3f2vm.js → chunk-vywhk0sd.js} +4 -4
  328. package/dist/{chunk-t2ex5gsn.js → chunk-w02wh43r.js} +3 -3
  329. package/dist/{chunk-e08marnp.js → chunk-w058sn3x.js} +4 -4
  330. package/dist/{chunk-mq7m54qk.js → chunk-w5nbvkxb.js} +69 -69
  331. package/dist/{chunk-8ympg941.js → chunk-w6eqjaa7.js} +1 -1
  332. package/dist/{chunk-rexrttsb.js → chunk-wcz7qa33.js} +33 -33
  333. package/dist/{chunk-jh0d0pbd.js → chunk-wg0d4shw.js} +4 -4
  334. package/dist/{chunk-7kbezevv.js → chunk-wk9wdgv6.js} +5 -5
  335. package/dist/{chunk-edt6c4pc.js → chunk-wkjptwgy.js} +73 -73
  336. package/dist/{chunk-ekqvx6ek.js → chunk-wn36chwc.js} +56 -56
  337. package/dist/{chunk-sdzpdzj3.js → chunk-wnncbex7.js} +58 -58
  338. package/dist/{chunk-s8zha7q1.js → chunk-ws1046mv.js} +9 -11
  339. package/dist/{chunk-bhwnjx3e.js → chunk-wtymvrh9.js} +8 -8
  340. package/dist/{chunk-drnr3z7x.js → chunk-wz2qyvhx.js} +144 -144
  341. package/dist/{chunk-sf4rsw52.js → chunk-x463hr55.js} +8 -8
  342. package/dist/{chunk-xafy9ccy.js → chunk-x6gjy97a.js} +57 -57
  343. package/dist/{chunk-1zrpqh8h.js → chunk-x7aa6ah7.js} +1 -1
  344. package/dist/{chunk-79ztw13h.js → chunk-x89jeqbz.js} +2 -2
  345. package/dist/{chunk-2katyzq9.js → chunk-x8zp00qp.js} +3 -3
  346. package/dist/{chunk-g24e2jr3.js → chunk-xgxyhgy9.js} +56 -56
  347. package/dist/{chunk-8w2a9md8.js → chunk-xmmg3e9j.js} +3 -3
  348. package/dist/{chunk-7e78w86v.js → chunk-xn1wfxt2.js} +3 -3
  349. package/dist/{chunk-sjraxh5y.js → chunk-xr186qye.js} +57 -57
  350. package/dist/{chunk-fp2z22f1.js → chunk-xrrbcvj4.js} +59 -59
  351. package/dist/{chunk-g1jfytsa.js → chunk-xt17cf7n.js} +5 -5
  352. package/dist/{chunk-tzaj5mwz.js → chunk-xt71y0fa.js} +31 -31
  353. package/dist/{chunk-rvn77re6.js → chunk-xws9mdet.js} +23 -23
  354. package/dist/{chunk-vny8tpke.js → chunk-xza7dswj.js} +24 -24
  355. package/dist/{chunk-d6713rzt.js → chunk-y2zdt5wf.js} +30 -10
  356. package/dist/{chunk-z5tmqz5e.js → chunk-y4kd1f5p.js} +56 -56
  357. package/dist/{chunk-t31xvfy2.js → chunk-y5rq3t59.js} +60 -60
  358. package/dist/{chunk-avtcf910.js → chunk-y5x8wqe5.js} +1 -1
  359. package/dist/{chunk-wsm0s0c3.js → chunk-yd1xffwg.js} +3 -3
  360. package/dist/{chunk-vntvaf0c.js → chunk-ydepjfqs.js} +63 -63
  361. package/dist/{chunk-x6ceqp7t.js → chunk-ydwdbxgd.js} +23 -23
  362. package/dist/{chunk-hk24qq7n.js → chunk-yh27vvgm.js} +9 -9
  363. package/dist/{chunk-y8ab9dyv.js → chunk-yn6phqhx.js} +1 -1
  364. package/dist/{chunk-dc4krjj4.js → chunk-yr4qqfcj.js} +22 -22
  365. package/dist/{chunk-z43cvm9f.js → chunk-yrzxjvas.js} +75 -75
  366. package/dist/{chunk-7d3ba1n4.js → chunk-yvzh49tc.js} +1 -1
  367. package/dist/chunk-z51d7scc.js +244 -0
  368. package/dist/chunk-zdf30s24.js +334 -0
  369. package/dist/{chunk-dxcr07z5.js → chunk-ze6zvkg6.js} +4 -4
  370. package/dist/{chunk-nbath9yz.js → chunk-zhd2dv7y.js} +7 -7
  371. package/dist/{chunk-nvrje5t4.js → chunk-zm18kc5q.js} +70 -70
  372. package/dist/{chunk-3px6f9s5.js → chunk-zshqb2h1.js} +2 -2
  373. package/dist/{chunk-d6vexw90.js → chunk-zyy7th0a.js} +1 -1
  374. package/dist/cli-bun.js +0 -0
  375. package/dist/cli-node.js +418 -10
  376. package/dist/cli.js +11 -11
  377. package/dist/download-ripgrep.js +1 -1
  378. package/package.json +200 -195
  379. package/scripts/postinstall.cjs +339 -339
  380. package/scripts/setup-chrome-mcp.mjs +39 -39
  381. package/dist/chunk-05rcynmf.js +0 -81
  382. package/dist/chunk-27xc1csx.js +0 -104
  383. package/dist/chunk-30rst83v.js +0 -168
  384. package/dist/chunk-33tdaxv0.js +0 -16
  385. package/dist/chunk-3enkzjbw.js +0 -3966
  386. package/dist/chunk-3h8a89gy.js +0 -46
  387. package/dist/chunk-3qm927vk.js +0 -542
  388. package/dist/chunk-3z7wsvpa.js +0 -24
  389. package/dist/chunk-44ct1wzm.js +0 -17
  390. package/dist/chunk-4s0bw3mn.js +0 -208
  391. package/dist/chunk-7m3ja921.js +0 -27
  392. package/dist/chunk-7vs34s16.js +0 -173
  393. package/dist/chunk-80h2am3g.js +0 -5241
  394. package/dist/chunk-8f6raa6q.js +0 -615
  395. package/dist/chunk-a9vdeb6y.js +0 -258
  396. package/dist/chunk-ahc4y7pa.js +0 -782
  397. package/dist/chunk-b0bk6bxs.js +0 -742
  398. package/dist/chunk-b4wg70y1.js +0 -54
  399. package/dist/chunk-btnvjcc5.js +0 -15
  400. package/dist/chunk-cs6c9gbk.js +0 -1172
  401. package/dist/chunk-enhtm7h3.js +0 -1731
  402. package/dist/chunk-fckn68n0.js +0 -180
  403. package/dist/chunk-h0qngp9w.js +0 -157
  404. package/dist/chunk-hasadm64.js +0 -412
  405. package/dist/chunk-hk9xz7gk.js +0 -118
  406. package/dist/chunk-j2k4p94p.js +0 -55
  407. package/dist/chunk-jgcsawpq.js +0 -659
  408. package/dist/chunk-jzmz18nn.js +0 -65
  409. package/dist/chunk-kg4qmgbk.js +0 -1095
  410. package/dist/chunk-n0qaeaa5.js +0 -256
  411. package/dist/chunk-nbxr4cfd.js +0 -880
  412. package/dist/chunk-q25bjaev.js +0 -15
  413. package/dist/chunk-qpydzzk0.js +0 -182
  414. package/dist/chunk-qqy9drhh.js +0 -864
  415. package/dist/chunk-qtddenhw.js +0 -607
  416. package/dist/chunk-r6h4zwjj.js +0 -36
  417. package/dist/chunk-th1cykx3.js +0 -494
  418. package/dist/chunk-ttk5dzz8.js +0 -25
  419. package/dist/chunk-v9yc4wjc.js +0 -220
  420. package/dist/chunk-vsemkegd.js +0 -718
  421. package/dist/chunk-wadkbt36.js +0 -40
  422. package/dist/chunk-xsq9ae7x.js +0 -90
  423. package/dist/chunk-ze6h1ch1.js +0 -21
  424. package/dist/chunk-ztpbxsq6.js +0 -910
  425. package/dist/{chunk-2j1t3hcw.js → chunk-a07s68gh.js} +3 -3
@@ -0,0 +1,1486 @@
1
+ // @bun
2
+ import {
3
+ require_dist_cjs4 as require_dist_cjs2,
4
+ require_tslib
5
+ } from "./chunk-03qpgz7e.js";
6
+ import {
7
+ require_dist_cjs
8
+ } from "./chunk-jcfk76z5.js";
9
+ import {
10
+ __esm,
11
+ __toESM
12
+ } from "./chunk-qp2qdcda.js";
13
+
14
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamConfiguration.js
15
+ function resolveEventStreamConfig(input) {
16
+ const eventSigner = input.signer;
17
+ const messageSigner = input.signer;
18
+ const newInput = Object.assign(input, {
19
+ eventSigner,
20
+ messageSigner
21
+ });
22
+ const eventStreamPayloadHandler = newInput.eventStreamPayloadHandlerProvider(newInput);
23
+ return Object.assign(newInput, {
24
+ eventStreamPayloadHandler
25
+ });
26
+ }
27
+ var init_eventStreamConfiguration = () => {};
28
+
29
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js
30
+ var import_protocol_http, eventStreamHandlingMiddleware = (options) => (next, context) => async (args) => {
31
+ const { request } = args;
32
+ if (!import_protocol_http.HttpRequest.isInstance(request))
33
+ return next(args);
34
+ return options.eventStreamPayloadHandler.handle(next, args, context);
35
+ }, eventStreamHandlingMiddlewareOptions;
36
+ var init_eventStreamHandlingMiddleware = __esm(() => {
37
+ import_protocol_http = __toESM(require_dist_cjs(), 1);
38
+ eventStreamHandlingMiddlewareOptions = {
39
+ tags: ["EVENT_STREAM", "SIGNATURE", "HANDLE"],
40
+ name: "eventStreamHandlingMiddleware",
41
+ relation: "after",
42
+ toMiddleware: "awsAuthMiddleware",
43
+ override: true
44
+ };
45
+ });
46
+
47
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js
48
+ var import_protocol_http2, eventStreamHeaderMiddleware = (next) => async (args) => {
49
+ const { request } = args;
50
+ if (!import_protocol_http2.HttpRequest.isInstance(request))
51
+ return next(args);
52
+ request.headers = {
53
+ ...request.headers,
54
+ "content-type": "application/vnd.amazon.eventstream",
55
+ "x-amz-content-sha256": "STREAMING-AWS4-HMAC-SHA256-EVENTS"
56
+ };
57
+ return next({
58
+ ...args,
59
+ request
60
+ });
61
+ }, eventStreamHeaderMiddlewareOptions;
62
+ var init_eventStreamHeaderMiddleware = __esm(() => {
63
+ import_protocol_http2 = __toESM(require_dist_cjs(), 1);
64
+ eventStreamHeaderMiddlewareOptions = {
65
+ step: "build",
66
+ tags: ["EVENT_STREAM", "HEADER", "CONTENT_TYPE", "CONTENT_SHA256"],
67
+ name: "eventStreamHeaderMiddleware",
68
+ override: true
69
+ };
70
+ });
71
+
72
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/getEventStreamPlugin.js
73
+ var getEventStreamPlugin = (options) => ({
74
+ applyToStack: (clientStack) => {
75
+ clientStack.addRelativeTo(eventStreamHandlingMiddleware(options), eventStreamHandlingMiddlewareOptions);
76
+ clientStack.add(eventStreamHeaderMiddleware, eventStreamHeaderMiddlewareOptions);
77
+ }
78
+ });
79
+ var init_getEventStreamPlugin = __esm(() => {
80
+ init_eventStreamHandlingMiddleware();
81
+ init_eventStreamHeaderMiddleware();
82
+ });
83
+
84
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/index.js
85
+ var init_dist_es = __esm(() => {
86
+ init_eventStreamConfiguration();
87
+ init_eventStreamHandlingMiddleware();
88
+ init_eventStreamHeaderMiddleware();
89
+ init_getEventStreamPlugin();
90
+ });
91
+
92
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/middlewares/websocketEndpointMiddleware.js
93
+ var import_protocol_http3, websocketEndpointMiddleware = (config, options) => (next) => (args) => {
94
+ const { request } = args;
95
+ if (import_protocol_http3.HttpRequest.isInstance(request) && config.requestHandler.metadata?.handlerProtocol?.toLowerCase().includes("websocket")) {
96
+ request.protocol = "wss:";
97
+ request.method = "GET";
98
+ request.path = `${request.path}-websocket`;
99
+ const { headers } = request;
100
+ delete headers["content-type"];
101
+ delete headers["x-amz-content-sha256"];
102
+ for (const name of Object.keys(headers)) {
103
+ if (name.indexOf(options.headerPrefix) === 0) {
104
+ const chunkedName = name.replace(options.headerPrefix, "");
105
+ request.query[chunkedName] = headers[name];
106
+ }
107
+ }
108
+ if (headers["x-amz-user-agent"]) {
109
+ request.query["user-agent"] = headers["x-amz-user-agent"];
110
+ }
111
+ request.headers = { host: headers.host ?? request.hostname };
112
+ }
113
+ return next(args);
114
+ }, websocketEndpointMiddlewareOptions;
115
+ var init_websocketEndpointMiddleware = __esm(() => {
116
+ import_protocol_http3 = __toESM(require_dist_cjs(), 1);
117
+ websocketEndpointMiddlewareOptions = {
118
+ name: "websocketEndpointMiddleware",
119
+ tags: ["WEBSOCKET", "EVENT_STREAM"],
120
+ relation: "after",
121
+ toMiddleware: "eventStreamHeaderMiddleware",
122
+ override: true
123
+ };
124
+ });
125
+
126
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/middlewares/websocketInjectSessionIdMiddleware.js
127
+ var injectSessionIdMiddleware = () => (next) => async (args) => {
128
+ const requestParams = {
129
+ ...args.input
130
+ };
131
+ const response = await next(args);
132
+ const output = response.output;
133
+ if (requestParams.SessionId && output.SessionId == null) {
134
+ output.SessionId = requestParams.SessionId;
135
+ }
136
+ return response;
137
+ }, injectSessionIdMiddlewareOptions;
138
+ var init_websocketInjectSessionIdMiddleware = __esm(() => {
139
+ injectSessionIdMiddlewareOptions = {
140
+ step: "initialize",
141
+ name: "injectSessionIdMiddleware",
142
+ tags: ["WEBSOCKET", "EVENT_STREAM"],
143
+ override: true
144
+ };
145
+ });
146
+
147
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/getWebSocketPlugin.js
148
+ var getWebSocketPlugin = (config, options) => ({
149
+ applyToStack: (clientStack) => {
150
+ clientStack.addRelativeTo(websocketEndpointMiddleware(config, options), websocketEndpointMiddlewareOptions);
151
+ clientStack.add(injectSessionIdMiddleware(), injectSessionIdMiddlewareOptions);
152
+ }
153
+ });
154
+ var init_getWebSocketPlugin = __esm(() => {
155
+ init_websocketEndpointMiddleware();
156
+ init_websocketInjectSessionIdMiddleware();
157
+ });
158
+
159
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/utils.js
160
+ var isWebSocketRequest = (request) => request.protocol === "ws:" || request.protocol === "wss:";
161
+ var init_utils = () => {};
162
+
163
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/WebsocketSignatureV4.js
164
+ class WebsocketSignatureV4 {
165
+ signer;
166
+ constructor(options) {
167
+ this.signer = options.signer;
168
+ }
169
+ presign(originalRequest, options = {}) {
170
+ return this.signer.presign(originalRequest, options);
171
+ }
172
+ async sign(toSign, options) {
173
+ if (import_protocol_http4.HttpRequest.isInstance(toSign) && isWebSocketRequest(toSign)) {
174
+ const signedRequest = await this.signer.presign({ ...toSign, body: "" }, {
175
+ ...options,
176
+ expiresIn: 60,
177
+ unsignableHeaders: new Set(Object.keys(toSign.headers).filter((header) => header !== "host"))
178
+ });
179
+ return {
180
+ ...signedRequest,
181
+ body: toSign.body
182
+ };
183
+ } else {
184
+ return this.signer.sign(toSign, options);
185
+ }
186
+ }
187
+ signMessage(message, args) {
188
+ return this.signer.signMessage(message, args);
189
+ }
190
+ }
191
+ var import_protocol_http4;
192
+ var init_WebsocketSignatureV4 = __esm(() => {
193
+ init_utils();
194
+ import_protocol_http4 = __toESM(require_dist_cjs(), 1);
195
+ });
196
+
197
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/resolveWebSocketConfig.js
198
+ var resolveWebSocketConfig = (input) => {
199
+ const { signer } = input;
200
+ return Object.assign(input, {
201
+ signer: async (authScheme) => {
202
+ const signerObj = await signer(authScheme);
203
+ if (validateSigner(signerObj)) {
204
+ return new WebsocketSignatureV4({ signer: signerObj });
205
+ }
206
+ throw new Error("Expected WebsocketSignatureV4 signer, please check the client constructor.");
207
+ }
208
+ });
209
+ }, validateSigner = (signer) => !!signer;
210
+ var init_resolveWebSocketConfig = __esm(() => {
211
+ init_WebsocketSignatureV4();
212
+ });
213
+
214
+ // node_modules/.bun/tslib@2.8.1/node_modules/tslib/modules/index.js
215
+ var import_tslib, __extends, __assign, __rest, __decorate, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __exportStar, __createBinding, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources, __rewriteRelativeImportExtension;
216
+ var init_modules = __esm(() => {
217
+ import_tslib = __toESM(require_tslib(), 1);
218
+ ({
219
+ __extends,
220
+ __assign,
221
+ __rest,
222
+ __decorate,
223
+ __param,
224
+ __esDecorate,
225
+ __runInitializers,
226
+ __propKey,
227
+ __setFunctionName,
228
+ __metadata,
229
+ __awaiter,
230
+ __generator,
231
+ __exportStar,
232
+ __createBinding,
233
+ __values,
234
+ __read,
235
+ __spread,
236
+ __spreadArrays,
237
+ __spreadArray,
238
+ __await,
239
+ __asyncGenerator,
240
+ __asyncDelegator,
241
+ __asyncValues,
242
+ __makeTemplateObject,
243
+ __importStar,
244
+ __importDefault,
245
+ __classPrivateFieldGet,
246
+ __classPrivateFieldSet,
247
+ __classPrivateFieldIn,
248
+ __addDisposableResource,
249
+ __disposeResources,
250
+ __rewriteRelativeImportExtension
251
+ } = import_tslib.default);
252
+ });
253
+
254
+ // node_modules/.bun/@smithy+is-array-buffer@2.2.0/node_modules/@smithy/is-array-buffer/dist-es/index.js
255
+ var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
256
+ var init_dist_es2 = () => {};
257
+
258
+ // node_modules/.bun/@smithy+util-buffer-from@2.2.0/node_modules/@smithy/util-buffer-from/dist-es/index.js
259
+ import { Buffer as Buffer2 } from "buffer";
260
+ var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
261
+ if (!isArrayBuffer(input)) {
262
+ throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
263
+ }
264
+ return Buffer2.from(input, offset, length);
265
+ }, fromString = (input, encoding) => {
266
+ if (typeof input !== "string") {
267
+ throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
268
+ }
269
+ return encoding ? Buffer2.from(input, encoding) : Buffer2.from(input);
270
+ };
271
+ var init_dist_es3 = __esm(() => {
272
+ init_dist_es2();
273
+ });
274
+
275
+ // node_modules/.bun/@smithy+util-utf8@2.3.0/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js
276
+ var fromUtf8 = (input) => {
277
+ const buf = fromString(input, "utf8");
278
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
279
+ };
280
+ var init_fromUtf8 = __esm(() => {
281
+ init_dist_es3();
282
+ });
283
+
284
+ // node_modules/.bun/@smithy+util-utf8@2.3.0/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
285
+ var init_toUint8Array = __esm(() => {
286
+ init_fromUtf8();
287
+ });
288
+
289
+ // node_modules/.bun/@smithy+util-utf8@2.3.0/node_modules/@smithy/util-utf8/dist-es/toUtf8.js
290
+ var toUtf8 = (input) => {
291
+ if (typeof input === "string") {
292
+ return input;
293
+ }
294
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
295
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
296
+ }
297
+ return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
298
+ };
299
+ var init_toUtf8 = __esm(() => {
300
+ init_dist_es3();
301
+ });
302
+
303
+ // node_modules/.bun/@smithy+util-utf8@2.3.0/node_modules/@smithy/util-utf8/dist-es/index.js
304
+ var init_dist_es4 = __esm(() => {
305
+ init_fromUtf8();
306
+ init_toUint8Array();
307
+ init_toUtf8();
308
+ });
309
+
310
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/convertToBuffer.js
311
+ function convertToBuffer(data) {
312
+ if (data instanceof Uint8Array)
313
+ return data;
314
+ if (typeof data === "string") {
315
+ return fromUtf83(data);
316
+ }
317
+ if (ArrayBuffer.isView(data)) {
318
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
319
+ }
320
+ return new Uint8Array(data);
321
+ }
322
+ var fromUtf83;
323
+ var init_convertToBuffer = __esm(() => {
324
+ init_dist_es4();
325
+ fromUtf83 = typeof Buffer !== "undefined" && Buffer.from ? function(input) {
326
+ return Buffer.from(input, "utf8");
327
+ } : fromUtf8;
328
+ });
329
+
330
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/isEmptyData.js
331
+ function isEmptyData(data) {
332
+ if (typeof data === "string") {
333
+ return data.length === 0;
334
+ }
335
+ return data.byteLength === 0;
336
+ }
337
+ var init_isEmptyData = () => {};
338
+
339
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/numToUint8.js
340
+ function numToUint8(num) {
341
+ return new Uint8Array([
342
+ (num & 4278190080) >> 24,
343
+ (num & 16711680) >> 16,
344
+ (num & 65280) >> 8,
345
+ num & 255
346
+ ]);
347
+ }
348
+ var init_numToUint8 = () => {};
349
+
350
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js
351
+ function uint32ArrayFrom(a_lookUpTable) {
352
+ if (!Uint32Array.from) {
353
+ var return_array = new Uint32Array(a_lookUpTable.length);
354
+ var a_index = 0;
355
+ while (a_index < a_lookUpTable.length) {
356
+ return_array[a_index] = a_lookUpTable[a_index];
357
+ a_index += 1;
358
+ }
359
+ return return_array;
360
+ }
361
+ return Uint32Array.from(a_lookUpTable);
362
+ }
363
+ var init_uint32ArrayFrom = () => {};
364
+
365
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/index.js
366
+ var init_module = __esm(() => {
367
+ init_convertToBuffer();
368
+ init_isEmptyData();
369
+ init_numToUint8();
370
+ init_uint32ArrayFrom();
371
+ });
372
+
373
+ // node_modules/.bun/@aws-crypto+crc32@5.2.0/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js
374
+ var AwsCrc32;
375
+ var init_aws_crc32 = __esm(() => {
376
+ init_modules();
377
+ init_module();
378
+ init_module2();
379
+ AwsCrc32 = function() {
380
+ function AwsCrc322() {
381
+ this.crc32 = new Crc32;
382
+ }
383
+ AwsCrc322.prototype.update = function(toHash) {
384
+ if (isEmptyData(toHash))
385
+ return;
386
+ this.crc32.update(convertToBuffer(toHash));
387
+ };
388
+ AwsCrc322.prototype.digest = function() {
389
+ return __awaiter(this, undefined, undefined, function() {
390
+ return __generator(this, function(_a) {
391
+ return [2, numToUint8(this.crc32.digest())];
392
+ });
393
+ });
394
+ };
395
+ AwsCrc322.prototype.reset = function() {
396
+ this.crc32 = new Crc32;
397
+ };
398
+ return AwsCrc322;
399
+ }();
400
+ });
401
+
402
+ // node_modules/.bun/@aws-crypto+crc32@5.2.0/node_modules/@aws-crypto/crc32/build/module/index.js
403
+ var Crc32, a_lookUpTable, lookupTable;
404
+ var init_module2 = __esm(() => {
405
+ init_modules();
406
+ init_module();
407
+ init_aws_crc32();
408
+ Crc32 = function() {
409
+ function Crc322() {
410
+ this.checksum = 4294967295;
411
+ }
412
+ Crc322.prototype.update = function(data) {
413
+ var e_1, _a;
414
+ try {
415
+ for (var data_1 = __values(data), data_1_1 = data_1.next();!data_1_1.done; data_1_1 = data_1.next()) {
416
+ var byte = data_1_1.value;
417
+ this.checksum = this.checksum >>> 8 ^ lookupTable[(this.checksum ^ byte) & 255];
418
+ }
419
+ } catch (e_1_1) {
420
+ e_1 = { error: e_1_1 };
421
+ } finally {
422
+ try {
423
+ if (data_1_1 && !data_1_1.done && (_a = data_1.return))
424
+ _a.call(data_1);
425
+ } finally {
426
+ if (e_1)
427
+ throw e_1.error;
428
+ }
429
+ }
430
+ return this;
431
+ };
432
+ Crc322.prototype.digest = function() {
433
+ return (this.checksum ^ 4294967295) >>> 0;
434
+ };
435
+ return Crc322;
436
+ }();
437
+ a_lookUpTable = [
438
+ 0,
439
+ 1996959894,
440
+ 3993919788,
441
+ 2567524794,
442
+ 124634137,
443
+ 1886057615,
444
+ 3915621685,
445
+ 2657392035,
446
+ 249268274,
447
+ 2044508324,
448
+ 3772115230,
449
+ 2547177864,
450
+ 162941995,
451
+ 2125561021,
452
+ 3887607047,
453
+ 2428444049,
454
+ 498536548,
455
+ 1789927666,
456
+ 4089016648,
457
+ 2227061214,
458
+ 450548861,
459
+ 1843258603,
460
+ 4107580753,
461
+ 2211677639,
462
+ 325883990,
463
+ 1684777152,
464
+ 4251122042,
465
+ 2321926636,
466
+ 335633487,
467
+ 1661365465,
468
+ 4195302755,
469
+ 2366115317,
470
+ 997073096,
471
+ 1281953886,
472
+ 3579855332,
473
+ 2724688242,
474
+ 1006888145,
475
+ 1258607687,
476
+ 3524101629,
477
+ 2768942443,
478
+ 901097722,
479
+ 1119000684,
480
+ 3686517206,
481
+ 2898065728,
482
+ 853044451,
483
+ 1172266101,
484
+ 3705015759,
485
+ 2882616665,
486
+ 651767980,
487
+ 1373503546,
488
+ 3369554304,
489
+ 3218104598,
490
+ 565507253,
491
+ 1454621731,
492
+ 3485111705,
493
+ 3099436303,
494
+ 671266974,
495
+ 1594198024,
496
+ 3322730930,
497
+ 2970347812,
498
+ 795835527,
499
+ 1483230225,
500
+ 3244367275,
501
+ 3060149565,
502
+ 1994146192,
503
+ 31158534,
504
+ 2563907772,
505
+ 4023717930,
506
+ 1907459465,
507
+ 112637215,
508
+ 2680153253,
509
+ 3904427059,
510
+ 2013776290,
511
+ 251722036,
512
+ 2517215374,
513
+ 3775830040,
514
+ 2137656763,
515
+ 141376813,
516
+ 2439277719,
517
+ 3865271297,
518
+ 1802195444,
519
+ 476864866,
520
+ 2238001368,
521
+ 4066508878,
522
+ 1812370925,
523
+ 453092731,
524
+ 2181625025,
525
+ 4111451223,
526
+ 1706088902,
527
+ 314042704,
528
+ 2344532202,
529
+ 4240017532,
530
+ 1658658271,
531
+ 366619977,
532
+ 2362670323,
533
+ 4224994405,
534
+ 1303535960,
535
+ 984961486,
536
+ 2747007092,
537
+ 3569037538,
538
+ 1256170817,
539
+ 1037604311,
540
+ 2765210733,
541
+ 3554079995,
542
+ 1131014506,
543
+ 879679996,
544
+ 2909243462,
545
+ 3663771856,
546
+ 1141124467,
547
+ 855842277,
548
+ 2852801631,
549
+ 3708648649,
550
+ 1342533948,
551
+ 654459306,
552
+ 3188396048,
553
+ 3373015174,
554
+ 1466479909,
555
+ 544179635,
556
+ 3110523913,
557
+ 3462522015,
558
+ 1591671054,
559
+ 702138776,
560
+ 2966460450,
561
+ 3352799412,
562
+ 1504918807,
563
+ 783551873,
564
+ 3082640443,
565
+ 3233442989,
566
+ 3988292384,
567
+ 2596254646,
568
+ 62317068,
569
+ 1957810842,
570
+ 3939845945,
571
+ 2647816111,
572
+ 81470997,
573
+ 1943803523,
574
+ 3814918930,
575
+ 2489596804,
576
+ 225274430,
577
+ 2053790376,
578
+ 3826175755,
579
+ 2466906013,
580
+ 167816743,
581
+ 2097651377,
582
+ 4027552580,
583
+ 2265490386,
584
+ 503444072,
585
+ 1762050814,
586
+ 4150417245,
587
+ 2154129355,
588
+ 426522225,
589
+ 1852507879,
590
+ 4275313526,
591
+ 2312317920,
592
+ 282753626,
593
+ 1742555852,
594
+ 4189708143,
595
+ 2394877945,
596
+ 397917763,
597
+ 1622183637,
598
+ 3604390888,
599
+ 2714866558,
600
+ 953729732,
601
+ 1340076626,
602
+ 3518719985,
603
+ 2797360999,
604
+ 1068828381,
605
+ 1219638859,
606
+ 3624741850,
607
+ 2936675148,
608
+ 906185462,
609
+ 1090812512,
610
+ 3747672003,
611
+ 2825379669,
612
+ 829329135,
613
+ 1181335161,
614
+ 3412177804,
615
+ 3160834842,
616
+ 628085408,
617
+ 1382605366,
618
+ 3423369109,
619
+ 3138078467,
620
+ 570562233,
621
+ 1426400815,
622
+ 3317316542,
623
+ 2998733608,
624
+ 733239954,
625
+ 1555261956,
626
+ 3268935591,
627
+ 3050360625,
628
+ 752459403,
629
+ 1541320221,
630
+ 2607071920,
631
+ 3965973030,
632
+ 1969922972,
633
+ 40735498,
634
+ 2617837225,
635
+ 3943577151,
636
+ 1913087877,
637
+ 83908371,
638
+ 2512341634,
639
+ 3803740692,
640
+ 2075208622,
641
+ 213261112,
642
+ 2463272603,
643
+ 3855990285,
644
+ 2094854071,
645
+ 198958881,
646
+ 2262029012,
647
+ 4057260610,
648
+ 1759359992,
649
+ 534414190,
650
+ 2176718541,
651
+ 4139329115,
652
+ 1873836001,
653
+ 414664567,
654
+ 2282248934,
655
+ 4279200368,
656
+ 1711684554,
657
+ 285281116,
658
+ 2405801727,
659
+ 4167216745,
660
+ 1634467795,
661
+ 376229701,
662
+ 2685067896,
663
+ 3608007406,
664
+ 1308918612,
665
+ 956543938,
666
+ 2808555105,
667
+ 3495958263,
668
+ 1231636301,
669
+ 1047427035,
670
+ 2932959818,
671
+ 3654703836,
672
+ 1088359270,
673
+ 936918000,
674
+ 2847714899,
675
+ 3736837829,
676
+ 1202900863,
677
+ 817233897,
678
+ 3183342108,
679
+ 3401237130,
680
+ 1404277552,
681
+ 615818150,
682
+ 3134207493,
683
+ 3453421203,
684
+ 1423857449,
685
+ 601450431,
686
+ 3009837614,
687
+ 3294710456,
688
+ 1567103746,
689
+ 711928724,
690
+ 3020668471,
691
+ 3272380065,
692
+ 1510334235,
693
+ 755167117
694
+ ];
695
+ lookupTable = uint32ArrayFrom(a_lookUpTable);
696
+ });
697
+
698
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/Int64.js
699
+ class Int64 {
700
+ bytes;
701
+ constructor(bytes) {
702
+ this.bytes = bytes;
703
+ if (bytes.byteLength !== 8) {
704
+ throw new Error("Int64 buffers must be exactly 8 bytes");
705
+ }
706
+ }
707
+ static fromNumber(number) {
708
+ if (number > 9223372036854776000 || number < -9223372036854776000) {
709
+ throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
710
+ }
711
+ const bytes = new Uint8Array(8);
712
+ for (let i = 7, remaining = Math.abs(Math.round(number));i > -1 && remaining > 0; i--, remaining /= 256) {
713
+ bytes[i] = remaining;
714
+ }
715
+ if (number < 0) {
716
+ negate(bytes);
717
+ }
718
+ return new Int64(bytes);
719
+ }
720
+ valueOf() {
721
+ const bytes = this.bytes.slice(0);
722
+ const negative = bytes[0] & 128;
723
+ if (negative) {
724
+ negate(bytes);
725
+ }
726
+ return parseInt(import_util_hex_encoding.toHex(bytes), 16) * (negative ? -1 : 1);
727
+ }
728
+ toString() {
729
+ return String(this.valueOf());
730
+ }
731
+ }
732
+ function negate(bytes) {
733
+ for (let i = 0;i < 8; i++) {
734
+ bytes[i] ^= 255;
735
+ }
736
+ for (let i = 7;i > -1; i--) {
737
+ bytes[i]++;
738
+ if (bytes[i] !== 0)
739
+ break;
740
+ }
741
+ }
742
+ var import_util_hex_encoding;
743
+ var init_Int64 = __esm(() => {
744
+ import_util_hex_encoding = __toESM(require_dist_cjs2(), 1);
745
+ });
746
+
747
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js
748
+ class HeaderMarshaller {
749
+ toUtf8;
750
+ fromUtf8;
751
+ constructor(toUtf83, fromUtf84) {
752
+ this.toUtf8 = toUtf83;
753
+ this.fromUtf8 = fromUtf84;
754
+ }
755
+ format(headers) {
756
+ const chunks = [];
757
+ for (const headerName of Object.keys(headers)) {
758
+ const bytes = this.fromUtf8(headerName);
759
+ chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
760
+ }
761
+ const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
762
+ let position = 0;
763
+ for (const chunk of chunks) {
764
+ out.set(chunk, position);
765
+ position += chunk.byteLength;
766
+ }
767
+ return out;
768
+ }
769
+ formatHeaderValue(header) {
770
+ switch (header.type) {
771
+ case "boolean":
772
+ return Uint8Array.from([header.value ? 0 : 1]);
773
+ case "byte":
774
+ return Uint8Array.from([2, header.value]);
775
+ case "short":
776
+ const shortView = new DataView(new ArrayBuffer(3));
777
+ shortView.setUint8(0, 3);
778
+ shortView.setInt16(1, header.value, false);
779
+ return new Uint8Array(shortView.buffer);
780
+ case "integer":
781
+ const intView = new DataView(new ArrayBuffer(5));
782
+ intView.setUint8(0, 4);
783
+ intView.setInt32(1, header.value, false);
784
+ return new Uint8Array(intView.buffer);
785
+ case "long":
786
+ const longBytes = new Uint8Array(9);
787
+ longBytes[0] = 5;
788
+ longBytes.set(header.value.bytes, 1);
789
+ return longBytes;
790
+ case "binary":
791
+ const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
792
+ binView.setUint8(0, 6);
793
+ binView.setUint16(1, header.value.byteLength, false);
794
+ const binBytes = new Uint8Array(binView.buffer);
795
+ binBytes.set(header.value, 3);
796
+ return binBytes;
797
+ case "string":
798
+ const utf8Bytes = this.fromUtf8(header.value);
799
+ const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
800
+ strView.setUint8(0, 7);
801
+ strView.setUint16(1, utf8Bytes.byteLength, false);
802
+ const strBytes = new Uint8Array(strView.buffer);
803
+ strBytes.set(utf8Bytes, 3);
804
+ return strBytes;
805
+ case "timestamp":
806
+ const tsBytes = new Uint8Array(9);
807
+ tsBytes[0] = 8;
808
+ tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
809
+ return tsBytes;
810
+ case "uuid":
811
+ if (!UUID_PATTERN.test(header.value)) {
812
+ throw new Error(`Invalid UUID received: ${header.value}`);
813
+ }
814
+ const uuidBytes = new Uint8Array(17);
815
+ uuidBytes[0] = 9;
816
+ uuidBytes.set(import_util_hex_encoding2.fromHex(header.value.replace(/\-/g, "")), 1);
817
+ return uuidBytes;
818
+ }
819
+ }
820
+ parse(headers) {
821
+ const out = {};
822
+ let position = 0;
823
+ while (position < headers.byteLength) {
824
+ const nameLength = headers.getUint8(position++);
825
+ const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
826
+ position += nameLength;
827
+ switch (headers.getUint8(position++)) {
828
+ case 0:
829
+ out[name] = {
830
+ type: BOOLEAN_TAG,
831
+ value: true
832
+ };
833
+ break;
834
+ case 1:
835
+ out[name] = {
836
+ type: BOOLEAN_TAG,
837
+ value: false
838
+ };
839
+ break;
840
+ case 2:
841
+ out[name] = {
842
+ type: BYTE_TAG,
843
+ value: headers.getInt8(position++)
844
+ };
845
+ break;
846
+ case 3:
847
+ out[name] = {
848
+ type: SHORT_TAG,
849
+ value: headers.getInt16(position, false)
850
+ };
851
+ position += 2;
852
+ break;
853
+ case 4:
854
+ out[name] = {
855
+ type: INT_TAG,
856
+ value: headers.getInt32(position, false)
857
+ };
858
+ position += 4;
859
+ break;
860
+ case 5:
861
+ out[name] = {
862
+ type: LONG_TAG,
863
+ value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8))
864
+ };
865
+ position += 8;
866
+ break;
867
+ case 6:
868
+ const binaryLength = headers.getUint16(position, false);
869
+ position += 2;
870
+ out[name] = {
871
+ type: BINARY_TAG,
872
+ value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength)
873
+ };
874
+ position += binaryLength;
875
+ break;
876
+ case 7:
877
+ const stringLength = headers.getUint16(position, false);
878
+ position += 2;
879
+ out[name] = {
880
+ type: STRING_TAG,
881
+ value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength))
882
+ };
883
+ position += stringLength;
884
+ break;
885
+ case 8:
886
+ out[name] = {
887
+ type: TIMESTAMP_TAG,
888
+ value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf())
889
+ };
890
+ position += 8;
891
+ break;
892
+ case 9:
893
+ const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
894
+ position += 16;
895
+ out[name] = {
896
+ type: UUID_TAG,
897
+ value: `${import_util_hex_encoding2.toHex(uuidBytes.subarray(0, 4))}-${import_util_hex_encoding2.toHex(uuidBytes.subarray(4, 6))}-${import_util_hex_encoding2.toHex(uuidBytes.subarray(6, 8))}-${import_util_hex_encoding2.toHex(uuidBytes.subarray(8, 10))}-${import_util_hex_encoding2.toHex(uuidBytes.subarray(10))}`
898
+ };
899
+ break;
900
+ default:
901
+ throw new Error(`Unrecognized header type tag`);
902
+ }
903
+ }
904
+ return out;
905
+ }
906
+ }
907
+ var import_util_hex_encoding2, HEADER_VALUE_TYPE, BOOLEAN_TAG = "boolean", BYTE_TAG = "byte", SHORT_TAG = "short", INT_TAG = "integer", LONG_TAG = "long", BINARY_TAG = "binary", STRING_TAG = "string", TIMESTAMP_TAG = "timestamp", UUID_TAG = "uuid", UUID_PATTERN;
908
+ var init_HeaderMarshaller = __esm(() => {
909
+ init_Int64();
910
+ import_util_hex_encoding2 = __toESM(require_dist_cjs2(), 1);
911
+ (function(HEADER_VALUE_TYPE2) {
912
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolTrue"] = 0] = "boolTrue";
913
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolFalse"] = 1] = "boolFalse";
914
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byte"] = 2] = "byte";
915
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["short"] = 3] = "short";
916
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["integer"] = 4] = "integer";
917
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["long"] = 5] = "long";
918
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byteArray"] = 6] = "byteArray";
919
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["string"] = 7] = "string";
920
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["timestamp"] = 8] = "timestamp";
921
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["uuid"] = 9] = "uuid";
922
+ })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {}));
923
+ UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
924
+ });
925
+
926
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js
927
+ function splitMessage({ byteLength, byteOffset, buffer }) {
928
+ if (byteLength < MINIMUM_MESSAGE_LENGTH) {
929
+ throw new Error("Provided message too short to accommodate event stream message overhead");
930
+ }
931
+ const view = new DataView(buffer, byteOffset, byteLength);
932
+ const messageLength = view.getUint32(0, false);
933
+ if (byteLength !== messageLength) {
934
+ throw new Error("Reported message length does not match received message length");
935
+ }
936
+ const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
937
+ const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
938
+ const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
939
+ const checksummer = new Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
940
+ if (expectedPreludeChecksum !== checksummer.digest()) {
941
+ throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`);
942
+ }
943
+ checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
944
+ if (expectedMessageChecksum !== checksummer.digest()) {
945
+ throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`);
946
+ }
947
+ return {
948
+ headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
949
+ body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH))
950
+ };
951
+ }
952
+ var PRELUDE_MEMBER_LENGTH = 4, PRELUDE_LENGTH, CHECKSUM_LENGTH = 4, MINIMUM_MESSAGE_LENGTH;
953
+ var init_splitMessage = __esm(() => {
954
+ init_module2();
955
+ PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
956
+ MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;
957
+ });
958
+
959
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js
960
+ class EventStreamCodec {
961
+ headerMarshaller;
962
+ messageBuffer;
963
+ isEndOfStream;
964
+ constructor(toUtf83, fromUtf84) {
965
+ this.headerMarshaller = new HeaderMarshaller(toUtf83, fromUtf84);
966
+ this.messageBuffer = [];
967
+ this.isEndOfStream = false;
968
+ }
969
+ feed(message) {
970
+ this.messageBuffer.push(this.decode(message));
971
+ }
972
+ endOfStream() {
973
+ this.isEndOfStream = true;
974
+ }
975
+ getMessage() {
976
+ const message = this.messageBuffer.pop();
977
+ const isEndOfStream = this.isEndOfStream;
978
+ return {
979
+ getMessage() {
980
+ return message;
981
+ },
982
+ isEndOfStream() {
983
+ return isEndOfStream;
984
+ }
985
+ };
986
+ }
987
+ getAvailableMessages() {
988
+ const messages = this.messageBuffer;
989
+ this.messageBuffer = [];
990
+ const isEndOfStream = this.isEndOfStream;
991
+ return {
992
+ getMessages() {
993
+ return messages;
994
+ },
995
+ isEndOfStream() {
996
+ return isEndOfStream;
997
+ }
998
+ };
999
+ }
1000
+ encode({ headers: rawHeaders, body }) {
1001
+ const headers = this.headerMarshaller.format(rawHeaders);
1002
+ const length = headers.byteLength + body.byteLength + 16;
1003
+ const out = new Uint8Array(length);
1004
+ const view = new DataView(out.buffer, out.byteOffset, out.byteLength);
1005
+ const checksum = new Crc32;
1006
+ view.setUint32(0, length, false);
1007
+ view.setUint32(4, headers.byteLength, false);
1008
+ view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
1009
+ out.set(headers, 12);
1010
+ out.set(body, headers.byteLength + 12);
1011
+ view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
1012
+ return out;
1013
+ }
1014
+ decode(message) {
1015
+ const { headers, body } = splitMessage(message);
1016
+ return { headers: this.headerMarshaller.parse(headers), body };
1017
+ }
1018
+ formatHeaders(rawHeaders) {
1019
+ return this.headerMarshaller.format(rawHeaders);
1020
+ }
1021
+ }
1022
+ var init_EventStreamCodec = __esm(() => {
1023
+ init_module2();
1024
+ init_HeaderMarshaller();
1025
+ init_splitMessage();
1026
+ });
1027
+
1028
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/Message.js
1029
+ var init_Message = () => {};
1030
+
1031
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js
1032
+ var MessageDecoderStream;
1033
+ var init_MessageDecoderStream = __esm(() => {
1034
+ MessageDecoderStream = class MessageDecoderStream {
1035
+ options;
1036
+ constructor(options) {
1037
+ this.options = options;
1038
+ }
1039
+ [Symbol.asyncIterator]() {
1040
+ return this.asyncIterator();
1041
+ }
1042
+ async* asyncIterator() {
1043
+ for await (const bytes of this.options.inputStream) {
1044
+ const decoded = this.options.decoder.decode(bytes);
1045
+ yield decoded;
1046
+ }
1047
+ }
1048
+ };
1049
+ });
1050
+
1051
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js
1052
+ var MessageEncoderStream;
1053
+ var init_MessageEncoderStream = __esm(() => {
1054
+ MessageEncoderStream = class MessageEncoderStream {
1055
+ options;
1056
+ constructor(options) {
1057
+ this.options = options;
1058
+ }
1059
+ [Symbol.asyncIterator]() {
1060
+ return this.asyncIterator();
1061
+ }
1062
+ async* asyncIterator() {
1063
+ for await (const msg of this.options.messageStream) {
1064
+ const encoded = this.options.encoder.encode(msg);
1065
+ yield encoded;
1066
+ }
1067
+ if (this.options.includeEndFrame) {
1068
+ yield new Uint8Array(0);
1069
+ }
1070
+ }
1071
+ };
1072
+ });
1073
+
1074
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js
1075
+ var SmithyMessageDecoderStream;
1076
+ var init_SmithyMessageDecoderStream = __esm(() => {
1077
+ SmithyMessageDecoderStream = class SmithyMessageDecoderStream {
1078
+ options;
1079
+ constructor(options) {
1080
+ this.options = options;
1081
+ }
1082
+ [Symbol.asyncIterator]() {
1083
+ return this.asyncIterator();
1084
+ }
1085
+ async* asyncIterator() {
1086
+ for await (const message of this.options.messageStream) {
1087
+ const deserialized = await this.options.deserializer(message);
1088
+ if (deserialized === undefined)
1089
+ continue;
1090
+ yield deserialized;
1091
+ }
1092
+ }
1093
+ };
1094
+ });
1095
+
1096
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js
1097
+ var SmithyMessageEncoderStream;
1098
+ var init_SmithyMessageEncoderStream = __esm(() => {
1099
+ SmithyMessageEncoderStream = class SmithyMessageEncoderStream {
1100
+ options;
1101
+ constructor(options) {
1102
+ this.options = options;
1103
+ }
1104
+ [Symbol.asyncIterator]() {
1105
+ return this.asyncIterator();
1106
+ }
1107
+ async* asyncIterator() {
1108
+ for await (const chunk of this.options.inputStream) {
1109
+ const payloadBuf = this.options.serializer(chunk);
1110
+ yield payloadBuf;
1111
+ }
1112
+ }
1113
+ };
1114
+ });
1115
+
1116
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/index.js
1117
+ var init_dist_es5 = __esm(() => {
1118
+ init_EventStreamCodec();
1119
+ init_HeaderMarshaller();
1120
+ init_Int64();
1121
+ init_Message();
1122
+ init_MessageDecoderStream();
1123
+ init_MessageEncoderStream();
1124
+ init_SmithyMessageDecoderStream();
1125
+ init_SmithyMessageEncoderStream();
1126
+ });
1127
+
1128
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/getChunkedStream.js
1129
+ function getChunkedStream(source) {
1130
+ let currentMessageTotalLength = 0;
1131
+ let currentMessagePendingLength = 0;
1132
+ let currentMessage = null;
1133
+ let messageLengthBuffer = null;
1134
+ const allocateMessage = (size) => {
1135
+ if (typeof size !== "number") {
1136
+ throw new Error("Attempted to allocate an event message where size was not a number: " + size);
1137
+ }
1138
+ currentMessageTotalLength = size;
1139
+ currentMessagePendingLength = 4;
1140
+ currentMessage = new Uint8Array(size);
1141
+ const currentMessageView = new DataView(currentMessage.buffer);
1142
+ currentMessageView.setUint32(0, size, false);
1143
+ };
1144
+ const iterator = async function* () {
1145
+ const sourceIterator = source[Symbol.asyncIterator]();
1146
+ while (true) {
1147
+ const { value, done } = await sourceIterator.next();
1148
+ if (done) {
1149
+ if (!currentMessageTotalLength) {
1150
+ return;
1151
+ } else if (currentMessageTotalLength === currentMessagePendingLength) {
1152
+ yield currentMessage;
1153
+ } else {
1154
+ throw new Error("Truncated event message received.");
1155
+ }
1156
+ return;
1157
+ }
1158
+ const chunkLength = value.length;
1159
+ let currentOffset = 0;
1160
+ while (currentOffset < chunkLength) {
1161
+ if (!currentMessage) {
1162
+ const bytesRemaining = chunkLength - currentOffset;
1163
+ if (!messageLengthBuffer) {
1164
+ messageLengthBuffer = new Uint8Array(4);
1165
+ }
1166
+ const numBytesForTotal = Math.min(4 - currentMessagePendingLength, bytesRemaining);
1167
+ messageLengthBuffer.set(value.slice(currentOffset, currentOffset + numBytesForTotal), currentMessagePendingLength);
1168
+ currentMessagePendingLength += numBytesForTotal;
1169
+ currentOffset += numBytesForTotal;
1170
+ if (currentMessagePendingLength < 4) {
1171
+ break;
1172
+ }
1173
+ allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false));
1174
+ messageLengthBuffer = null;
1175
+ }
1176
+ const numBytesToWrite = Math.min(currentMessageTotalLength - currentMessagePendingLength, chunkLength - currentOffset);
1177
+ currentMessage.set(value.slice(currentOffset, currentOffset + numBytesToWrite), currentMessagePendingLength);
1178
+ currentMessagePendingLength += numBytesToWrite;
1179
+ currentOffset += numBytesToWrite;
1180
+ if (currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength) {
1181
+ yield currentMessage;
1182
+ currentMessage = null;
1183
+ currentMessageTotalLength = 0;
1184
+ currentMessagePendingLength = 0;
1185
+ }
1186
+ }
1187
+ }
1188
+ };
1189
+ return {
1190
+ [Symbol.asyncIterator]: iterator
1191
+ };
1192
+ }
1193
+ var init_getChunkedStream = () => {};
1194
+
1195
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/getUnmarshalledStream.js
1196
+ function getMessageUnmarshaller(deserializer, toUtf83) {
1197
+ return async function(message) {
1198
+ const { value: messageType } = message.headers[":message-type"];
1199
+ if (messageType === "error") {
1200
+ const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError");
1201
+ unmodeledError.name = message.headers[":error-code"].value;
1202
+ throw unmodeledError;
1203
+ } else if (messageType === "exception") {
1204
+ const code = message.headers[":exception-type"].value;
1205
+ const exception = { [code]: message };
1206
+ const deserializedException = await deserializer(exception);
1207
+ if (deserializedException.$unknown) {
1208
+ const error = new Error(toUtf83(message.body));
1209
+ error.name = code;
1210
+ throw error;
1211
+ }
1212
+ throw deserializedException[code];
1213
+ } else if (messageType === "event") {
1214
+ const event = {
1215
+ [message.headers[":event-type"].value]: message
1216
+ };
1217
+ const deserialized = await deserializer(event);
1218
+ if (deserialized.$unknown)
1219
+ return;
1220
+ return deserialized;
1221
+ } else {
1222
+ throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`);
1223
+ }
1224
+ };
1225
+ }
1226
+ var init_getUnmarshalledStream = () => {};
1227
+
1228
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/EventStreamMarshaller.js
1229
+ class EventStreamMarshaller {
1230
+ eventStreamCodec;
1231
+ utfEncoder;
1232
+ constructor({ utf8Encoder, utf8Decoder }) {
1233
+ this.eventStreamCodec = new EventStreamCodec(utf8Encoder, utf8Decoder);
1234
+ this.utfEncoder = utf8Encoder;
1235
+ }
1236
+ deserialize(body, deserializer) {
1237
+ const inputStream = getChunkedStream(body);
1238
+ return new SmithyMessageDecoderStream({
1239
+ messageStream: new MessageDecoderStream({ inputStream, decoder: this.eventStreamCodec }),
1240
+ deserializer: getMessageUnmarshaller(deserializer, this.utfEncoder)
1241
+ });
1242
+ }
1243
+ serialize(inputStream, serializer) {
1244
+ return new MessageEncoderStream({
1245
+ messageStream: new SmithyMessageEncoderStream({ inputStream, serializer }),
1246
+ encoder: this.eventStreamCodec,
1247
+ includeEndFrame: true
1248
+ });
1249
+ }
1250
+ }
1251
+ var init_EventStreamMarshaller = __esm(() => {
1252
+ init_dist_es5();
1253
+ init_getChunkedStream();
1254
+ init_getUnmarshalledStream();
1255
+ });
1256
+
1257
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/provider.js
1258
+ var init_provider = () => {};
1259
+
1260
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/index.js
1261
+ var init_dist_es6 = __esm(() => {
1262
+ init_EventStreamMarshaller();
1263
+ init_provider();
1264
+ });
1265
+
1266
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/WebSocketFetchHandler.js
1267
+ var init_WebSocketFetchHandler = () => {};
1268
+
1269
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/ws-eventstream/eventStreamPayloadHandlerProvider.js
1270
+ var init_eventStreamPayloadHandlerProvider = () => {};
1271
+
1272
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/index.js
1273
+ var init_dist_es7 = __esm(() => {
1274
+ init_WebSocketFetchHandler();
1275
+ init_getWebSocketPlugin();
1276
+ init_resolveWebSocketConfig();
1277
+ init_eventStreamPayloadHandlerProvider();
1278
+ });
1279
+
1280
+ // node_modules/.bun/@smithy+eventstream-serde-config-resolver@4.3.13/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/EventStreamSerdeConfig.js
1281
+ var resolveEventStreamSerdeConfig = (input) => Object.assign(input, {
1282
+ eventStreamMarshaller: input.eventStreamSerdeProvider(input)
1283
+ });
1284
+ var init_EventStreamSerdeConfig = () => {};
1285
+
1286
+ // node_modules/.bun/@smithy+eventstream-serde-config-resolver@4.3.13/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js
1287
+ var init_dist_es8 = __esm(() => {
1288
+ init_EventStreamSerdeConfig();
1289
+ });
1290
+
1291
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.13/node_modules/@aws-sdk/eventstream-handler-node/dist-es/EventSigningTransformStream.js
1292
+ import { Transform } from "stream";
1293
+ function getSignatureBinary(signature) {
1294
+ const buf = Buffer.from(signature, "hex");
1295
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1296
+ }
1297
+ var EventSigningTransformStream;
1298
+ var init_EventSigningTransformStream = __esm(() => {
1299
+ EventSigningTransformStream = class EventSigningTransformStream extends Transform {
1300
+ priorSignature;
1301
+ messageSigner;
1302
+ eventStreamCodec;
1303
+ systemClockOffsetProvider;
1304
+ constructor(options) {
1305
+ super({
1306
+ autoDestroy: true,
1307
+ readableObjectMode: true,
1308
+ writableObjectMode: true,
1309
+ ...options
1310
+ });
1311
+ this.priorSignature = options.priorSignature;
1312
+ this.eventStreamCodec = options.eventStreamCodec;
1313
+ this.messageSigner = options.messageSigner;
1314
+ this.systemClockOffsetProvider = options.systemClockOffsetProvider;
1315
+ }
1316
+ async _transform(chunk, encoding, callback) {
1317
+ try {
1318
+ const now = new Date(Date.now() + await this.systemClockOffsetProvider());
1319
+ const dateHeader = {
1320
+ ":date": { type: "timestamp", value: now }
1321
+ };
1322
+ const signedMessage = await this.messageSigner.sign({
1323
+ message: {
1324
+ body: chunk,
1325
+ headers: dateHeader
1326
+ },
1327
+ priorSignature: this.priorSignature
1328
+ }, {
1329
+ signingDate: now
1330
+ });
1331
+ this.priorSignature = signedMessage.signature;
1332
+ const serializedSigned = this.eventStreamCodec.encode({
1333
+ headers: {
1334
+ ...dateHeader,
1335
+ ":chunk-signature": {
1336
+ type: "binary",
1337
+ value: getSignatureBinary(signedMessage.signature)
1338
+ }
1339
+ },
1340
+ body: chunk
1341
+ });
1342
+ this.push(serializedSigned);
1343
+ return callback();
1344
+ } catch (err) {
1345
+ callback(err);
1346
+ }
1347
+ }
1348
+ };
1349
+ });
1350
+
1351
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.13/node_modules/@aws-sdk/eventstream-handler-node/dist-es/EventStreamPayloadHandler.js
1352
+ import { PassThrough, pipeline, Readable } from "stream";
1353
+
1354
+ class EventStreamPayloadHandler {
1355
+ messageSigner;
1356
+ eventStreamCodec;
1357
+ systemClockOffsetProvider;
1358
+ constructor(options) {
1359
+ this.messageSigner = options.messageSigner;
1360
+ this.eventStreamCodec = new EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
1361
+ this.systemClockOffsetProvider = async () => options.systemClockOffset ?? 0;
1362
+ }
1363
+ async handle(next, args, context = {}) {
1364
+ const request = args.request;
1365
+ const { body: payload, query } = request;
1366
+ if (!(payload instanceof Readable)) {
1367
+ throw new Error("Eventstream payload must be a Readable stream.");
1368
+ }
1369
+ const payloadStream = payload;
1370
+ request.body = new PassThrough({
1371
+ objectMode: true
1372
+ });
1373
+ const match = request.headers?.authorization?.match(/Signature=([\w]+)$/);
1374
+ let priorSignature = match?.[1] ?? query?.["X-Amz-Signature"] ?? "";
1375
+ if (context.__staticSignature) {
1376
+ priorSignature = "";
1377
+ }
1378
+ const signingStream = new EventSigningTransformStream({
1379
+ priorSignature,
1380
+ eventStreamCodec: this.eventStreamCodec,
1381
+ messageSigner: await this.messageSigner(),
1382
+ systemClockOffsetProvider: this.systemClockOffsetProvider
1383
+ });
1384
+ let resolvePipeline;
1385
+ const pipelineError = new Promise((resolve, reject) => {
1386
+ resolvePipeline = () => resolve(undefined);
1387
+ pipeline(payloadStream, signingStream, request.body, (err) => {
1388
+ if (err) {
1389
+ reject(new Error(`Pipeline error in @aws-sdk/eventstream-handler-node: ${err.message}`, { cause: err }));
1390
+ }
1391
+ });
1392
+ });
1393
+ let result;
1394
+ try {
1395
+ result = await Promise.race([next(args), pipelineError]);
1396
+ } catch (e) {
1397
+ request.body.end();
1398
+ throw e;
1399
+ } finally {
1400
+ resolvePipeline();
1401
+ }
1402
+ return result;
1403
+ }
1404
+ }
1405
+ var init_EventStreamPayloadHandler = __esm(() => {
1406
+ init_dist_es5();
1407
+ init_EventSigningTransformStream();
1408
+ });
1409
+
1410
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.13/node_modules/@aws-sdk/eventstream-handler-node/dist-es/eventStreamPayloadHandlerProvider.js
1411
+ var eventStreamPayloadHandlerProvider2 = (options) => new EventStreamPayloadHandler(options);
1412
+ var init_eventStreamPayloadHandlerProvider2 = __esm(() => {
1413
+ init_EventStreamPayloadHandler();
1414
+ });
1415
+
1416
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.13/node_modules/@aws-sdk/eventstream-handler-node/dist-es/index.js
1417
+ var init_dist_es9 = __esm(() => {
1418
+ init_eventStreamPayloadHandlerProvider2();
1419
+ });
1420
+
1421
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.13/node_modules/@smithy/eventstream-serde-node/dist-es/utils.js
1422
+ async function* readabletoIterable(readStream) {
1423
+ let streamEnded = false;
1424
+ let generationEnded = false;
1425
+ const records = new Array;
1426
+ readStream.on("error", (err) => {
1427
+ if (!streamEnded) {
1428
+ streamEnded = true;
1429
+ }
1430
+ if (err) {
1431
+ throw err;
1432
+ }
1433
+ });
1434
+ readStream.on("data", (data) => {
1435
+ records.push(data);
1436
+ });
1437
+ readStream.on("end", () => {
1438
+ streamEnded = true;
1439
+ });
1440
+ while (!generationEnded) {
1441
+ const value = await new Promise((resolve) => setTimeout(() => resolve(records.shift()), 0));
1442
+ if (value) {
1443
+ yield value;
1444
+ }
1445
+ generationEnded = streamEnded && records.length === 0;
1446
+ }
1447
+ }
1448
+ var init_utils2 = () => {};
1449
+
1450
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.13/node_modules/@smithy/eventstream-serde-node/dist-es/EventStreamMarshaller.js
1451
+ import { Readable as Readable2 } from "stream";
1452
+
1453
+ class EventStreamMarshaller3 {
1454
+ universalMarshaller;
1455
+ constructor({ utf8Encoder, utf8Decoder }) {
1456
+ this.universalMarshaller = new EventStreamMarshaller({
1457
+ utf8Decoder,
1458
+ utf8Encoder
1459
+ });
1460
+ }
1461
+ deserialize(body, deserializer) {
1462
+ const bodyIterable = typeof body[Symbol.asyncIterator] === "function" ? body : readabletoIterable(body);
1463
+ return this.universalMarshaller.deserialize(bodyIterable, deserializer);
1464
+ }
1465
+ serialize(input, serializer) {
1466
+ return Readable2.from(this.universalMarshaller.serialize(input, serializer));
1467
+ }
1468
+ }
1469
+ var init_EventStreamMarshaller2 = __esm(() => {
1470
+ init_dist_es6();
1471
+ init_utils2();
1472
+ });
1473
+
1474
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.13/node_modules/@smithy/eventstream-serde-node/dist-es/provider.js
1475
+ var eventStreamSerdeProvider = (options) => new EventStreamMarshaller3(options);
1476
+ var init_provider2 = __esm(() => {
1477
+ init_EventStreamMarshaller2();
1478
+ });
1479
+
1480
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.13/node_modules/@smithy/eventstream-serde-node/dist-es/index.js
1481
+ var init_dist_es10 = __esm(() => {
1482
+ init_EventStreamMarshaller2();
1483
+ init_provider2();
1484
+ });
1485
+
1486
+ export { resolveEventStreamConfig, getEventStreamPlugin, init_dist_es, fromArrayBuffer, fromString, init_dist_es3 as init_dist_es1, fromUtf8, toUtf8, init_dist_es4 as init_dist_es2, getWebSocketPlugin, resolveWebSocketConfig, init_dist_es7 as init_dist_es3, resolveEventStreamSerdeConfig, init_dist_es8 as init_dist_es4, eventStreamPayloadHandlerProvider2 as eventStreamPayloadHandlerProvider, init_dist_es9 as init_dist_es5, eventStreamSerdeProvider, init_dist_es10 as init_dist_es6 };