@caspian2026/agent-sdk 0.0.20 → 0.0.21

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 (427) hide show
  1. package/dist/{chunk-q8t0ym9s.js → chunk-06xmvpv7.js} +83 -83
  2. package/dist/{chunk-5gr6ekgm.js → chunk-07069jq1.js} +4 -4
  3. package/dist/{chunk-ckrs789w.js → chunk-0731m51q.js} +1 -1
  4. package/dist/chunk-079tw1d6.js +155 -0
  5. package/dist/{chunk-w2bff8pq.js → chunk-08prz7zp.js} +12 -12
  6. package/dist/chunk-0hqv6vq3.js +127 -0
  7. package/dist/{chunk-qqc3b97c.js → chunk-0paqc2yw.js} +1 -1
  8. package/dist/{chunk-t83amzhd.js → chunk-0r5bb9j4.js} +12 -12
  9. package/dist/chunk-0rbxzwnb.js +146 -0
  10. package/dist/chunk-0t81d427.js +41 -0
  11. package/dist/{chunk-2mfzqkzn.js → chunk-0vkfrmqm.js} +29 -69
  12. package/dist/{chunk-bs9rn85s.js → chunk-0vp3wfab.js} +1 -1
  13. package/dist/{chunk-6rcf54zd.js → chunk-0xjaqda8.js} +27 -48
  14. package/dist/chunk-102ee39t.js +97 -0
  15. package/dist/chunk-1058brys.js +54 -0
  16. package/dist/{chunk-ekewg3tj.js → chunk-14qkwgmf.js} +4 -4
  17. package/dist/{chunk-2b00k9ep.js → chunk-1871fy77.js} +78 -78
  18. package/dist/{chunk-y83gxqvc.js → chunk-1ae3nt9j.js} +3 -3
  19. package/dist/{chunk-t3yc7m07.js → chunk-1gx78081.js} +1 -1
  20. package/dist/{chunk-d99k9r9g.js → chunk-1h2famwb.js} +1 -1
  21. package/dist/{chunk-vv84k232.js → chunk-1ksywqf6.js} +5 -5
  22. package/dist/{chunk-6hs3wed5.js → chunk-1q2taz28.js} +7 -7
  23. package/dist/{chunk-cgzq4zww.js → chunk-21jaw3mt.js} +4 -4
  24. package/dist/{chunk-ra9hbfyz.js → chunk-24q2kxjm.js} +3 -3
  25. package/dist/{chunk-ja23mty8.js → chunk-25s7wwvz.js} +83 -83
  26. package/dist/{chunk-xm9zf0tv.js → chunk-26b7qsct.js} +78 -78
  27. package/dist/{chunk-e7j6g62d.js → chunk-26sypsqa.js} +10 -11
  28. package/dist/{chunk-xkra2684.js → chunk-26vzce3s.js} +86 -85
  29. package/dist/{chunk-ynx3fetd.js → chunk-26wtxbdc.js} +463 -1222
  30. package/dist/chunk-27dhfb9v.js +77 -0
  31. package/dist/{chunk-k6cq3j7z.js → chunk-2fwze72g.js} +1 -1
  32. package/dist/{chunk-rrtpbztr.js → chunk-2gzv8nrw.js} +3 -4
  33. package/dist/chunk-2mdzhnxj.js +88 -0
  34. package/dist/{chunk-9b71sn2g.js → chunk-2qghgd3d.js} +41 -41
  35. package/dist/{chunk-k8by1vfd.js → chunk-2qkcx6gx.js} +19 -19
  36. package/dist/chunk-2xes6j9k.js +121 -0
  37. package/dist/{chunk-zp5nvg44.js → chunk-33e7y2ye.js} +2 -2
  38. package/dist/{chunk-1t3cyn1k.js → chunk-3c25bcsw.js} +1 -1
  39. package/dist/{chunk-nwdpjkrw.js → chunk-3csagva2.js} +78 -78
  40. package/dist/{chunk-60a647ty.js → chunk-3jwpbxxx.js} +81 -81
  41. package/dist/chunk-3mgywd32.js +8 -0
  42. package/dist/{chunk-52pp0dbk.js → chunk-3mqgy4d8.js} +4 -4
  43. package/dist/{chunk-568q88qz.js → chunk-3nk79af8.js} +1 -1
  44. package/dist/chunk-3pm48qgm.js +97 -0
  45. package/dist/{chunk-rzk001ay.js → chunk-3tx97a7z.js} +85 -85
  46. package/dist/{chunk-8ady2sm4.js → chunk-3vy1jt9p.js} +8 -8
  47. package/dist/{chunk-sthmb4xf.js → chunk-3w6dvw7z.js} +78 -78
  48. package/dist/{chunk-s201s689.js → chunk-40p1xyv4.js} +18 -18
  49. package/dist/{chunk-j77g2v22.js → chunk-4621eys4.js} +5 -5
  50. package/dist/{chunk-7deqmrby.js → chunk-46y1vrxs.js} +6 -6
  51. package/dist/{chunk-khwhppzs.js → chunk-49ce42vr.js} +2 -2
  52. package/dist/{chunk-6qb753r5.js → chunk-4bjfp2cp.js} +79 -79
  53. package/dist/{chunk-m6vs965c.js → chunk-4jm600zv.js} +1 -1
  54. package/dist/{chunk-v2szqm5g.js → chunk-4k9d7gxv.js} +5 -5
  55. package/dist/{chunk-pqf2bjy1.js → chunk-4nyewkpd.js} +4 -4
  56. package/dist/{chunk-f79jyxwd.js → chunk-4pbx3g7s.js} +4 -4
  57. package/dist/{chunk-qrgxbrs9.js → chunk-4sk0ekmh.js} +9810 -2820
  58. package/dist/{chunk-n3vmrzcy.js → chunk-4th9sgzv.js} +5 -5
  59. package/dist/{chunk-9drwsb3g.js → chunk-50cqjkgy.js} +80 -80
  60. package/dist/{chunk-xyzbgjpv.js → chunk-530bp1wc.js} +2 -2
  61. package/dist/{chunk-tnpk0ne1.js → chunk-55raexh7.js} +935 -2391
  62. package/dist/{chunk-bbhg7m1a.js → chunk-59564wn5.js} +79 -79
  63. package/dist/{chunk-z9v4bxrj.js → chunk-5ccdsxgy.js} +3 -3
  64. package/dist/{chunk-3k8ecscj.js → chunk-5e4jj4hd.js} +78 -78
  65. package/dist/{chunk-zqajmq38.js → chunk-5ekyhb1w.js} +6 -6
  66. package/dist/chunk-5h4berfm.js +30 -0
  67. package/dist/{chunk-t8chhacb.js → chunk-5h5kx2jd.js} +2 -2
  68. package/dist/chunk-5jkawn33.js +71 -0
  69. package/dist/{chunk-5v6wr1z4.js → chunk-5n1jc02d.js} +2 -2
  70. package/dist/{chunk-x09aacvx.js → chunk-5wnkq46y.js} +5 -5
  71. package/dist/{chunk-r585pc0g.js → chunk-5z28bqne.js} +3 -4
  72. package/dist/{chunk-gbvmks09.js → chunk-64c1avct.js} +1 -1
  73. package/dist/{chunk-y8b45mt2.js → chunk-64r16v22.js} +4 -4
  74. package/dist/{chunk-ej882sb5.js → chunk-65w2019d.js} +26 -26
  75. package/dist/{chunk-m82ketm1.js → chunk-66wbs5de.js} +78 -78
  76. package/dist/{chunk-f517h74h.js → chunk-66zry909.js} +1 -1
  77. package/dist/{chunk-kjx9a9p4.js → chunk-68ffk5qa.js} +2 -2
  78. package/dist/{chunk-bstyysxw.js → chunk-68ypktng.js} +3 -3
  79. package/dist/{chunk-xygy5v97.js → chunk-69bms9eh.js} +30 -30
  80. package/dist/{chunk-5vavvf6y.js → chunk-69n11zng.js} +5 -5
  81. package/dist/{chunk-7wegz81g.js → chunk-6dj5t602.js} +1 -1
  82. package/dist/{chunk-vnrevqdf.js → chunk-6dngjwkh.js} +4 -4
  83. package/dist/{chunk-7kp42hzq.js → chunk-6nsd9606.js} +2 -2
  84. package/dist/chunk-7641fj0b.js +107 -0
  85. package/dist/{chunk-fdwtd6s9.js → chunk-7aw745vx.js} +3 -3
  86. package/dist/{chunk-dv38yqdn.js → chunk-7gy9xrjc.js} +3 -3
  87. package/dist/{chunk-93hxjnkb.js → chunk-7k74bhsg.js} +78 -78
  88. package/dist/{chunk-1s9jxpjm.js → chunk-7pz9rdg8.js} +7 -7
  89. package/dist/{chunk-vd5dh925.js → chunk-7ry9qp54.js} +78 -78
  90. package/dist/{chunk-8q5fzyem.js → chunk-7sgtxrsc.js} +8 -10
  91. package/dist/{chunk-vx28ztc7.js → chunk-7v902gw4.js} +20 -20
  92. package/dist/chunk-7vhfhyq0.js +123 -0
  93. package/dist/{chunk-dmp3nd67.js → chunk-7w4n7zr8.js} +90 -90
  94. package/dist/{chunk-7yexhdjs.js → chunk-7wm5s02e.js} +1 -1
  95. package/dist/{chunk-wfh12nzh.js → chunk-7xyswgjh.js} +1 -1
  96. package/dist/{chunk-bdhdmkya.js → chunk-83hfzbx3.js} +1 -1
  97. package/dist/chunk-86fwp0mg.js +148 -0
  98. package/dist/{chunk-tevzn1xp.js → chunk-8g5pe1gr.js} +1 -1
  99. package/dist/{chunk-6twsw69m.js → chunk-8knpmkt5.js} +7 -7
  100. package/dist/chunk-8mpv3j7b.js +105 -0
  101. package/dist/chunk-8scyf6tf.js +90 -0
  102. package/dist/{chunk-xj8tk3d7.js → chunk-8yhf030a.js} +3 -3
  103. package/dist/chunk-92cczfwx.js +903 -0
  104. package/dist/{chunk-mbfzfg56.js → chunk-9r16nw6z.js} +85 -85
  105. package/dist/{chunk-s7tq4e5g.js → chunk-9rm2hczd.js} +78 -78
  106. package/dist/{chunk-s13y3w7e.js → chunk-9shyda79.js} +37 -37
  107. package/dist/{chunk-c6gpdd2c.js → chunk-9t8650e0.js} +78 -78
  108. package/dist/{chunk-7e9xcw77.js → chunk-9x5zgy22.js} +1 -1
  109. package/dist/{chunk-1ytng03p.js → chunk-9znd08ha.js} +12 -12
  110. package/dist/{chunk-r27tskss.js → chunk-a0qftggg.js} +9 -11
  111. package/dist/{chunk-0w2ntzwz.js → chunk-ab78zrxc.js} +92 -92
  112. package/dist/{chunk-638qz5y7.js → chunk-acj1j3dw.js} +5 -5
  113. package/dist/{chunk-z8n8cjhz.js → chunk-aj7nt1ae.js} +2 -2
  114. package/dist/{chunk-jwqveqpr.js → chunk-akd5hjav.js} +9 -9
  115. package/dist/{chunk-et3jfht8.js → chunk-ang6j1ma.js} +16 -16
  116. package/dist/{chunk-s9jxtj04.js → chunk-arrvgw6z.js} +95 -94
  117. package/dist/{chunk-cajjdb7j.js → chunk-as3pvrmw.js} +8 -8
  118. package/dist/{chunk-5f57qtf9.js → chunk-ase86y73.js} +1 -1
  119. package/dist/{chunk-m12e2wq3.js → chunk-b08zb0sw.js} +80 -80
  120. package/dist/{chunk-6d05fvxz.js → chunk-b0kf00ff.js} +2 -2
  121. package/dist/{chunk-r055z03k.js → chunk-b1kcd3ss.js} +1 -1
  122. package/dist/{chunk-k0dprbnn.js → chunk-ba473zak.js} +78 -78
  123. package/dist/{chunk-0tja7d1y.js → chunk-bg4x9ex0.js} +6 -6
  124. package/dist/{chunk-eb4t4ehh.js → chunk-bgzwt111.js} +6 -6
  125. package/dist/chunk-bh5zqvyc.js +36 -0
  126. package/dist/{chunk-eynfddhq.js → chunk-bpes1x7d.js} +144 -143
  127. package/dist/chunk-brbrrj03.js +114 -0
  128. package/dist/{chunk-zhnnzkzm.js → chunk-brjd9zmk.js} +14 -14
  129. package/dist/chunk-bs975312.js +133 -0
  130. package/dist/chunk-bww6hm2e.js +58 -0
  131. package/dist/{chunk-p0n9ew4x.js → chunk-byfawrfx.js} +4 -4
  132. package/dist/chunk-c67ypsa8.js +20 -0
  133. package/dist/chunk-c6sjhj89.js +1284 -0
  134. package/dist/{chunk-pyn4ry36.js → chunk-c7jwbe76.js} +57 -103
  135. package/dist/chunk-cdef9v7b.js +27 -0
  136. package/dist/{chunk-9029sbq1.js → chunk-cdz5yb0r.js} +1 -1
  137. package/dist/{chunk-4bcx2a3p.js → chunk-cgfdkzhb.js} +1 -1
  138. package/dist/chunk-cgy9g4wp.js +100 -0
  139. package/dist/{chunk-fefs2xby.js → chunk-cmtvwbwf.js} +25 -25
  140. package/dist/{chunk-p8hn07q2.js → chunk-cnsj3vq2.js} +1 -1
  141. package/dist/{chunk-ngde5k9k.js → chunk-cpywwph7.js} +79 -79
  142. package/dist/chunk-crcrnd8y.js +55 -0
  143. package/dist/{chunk-j15xyew5.js → chunk-crfk7ed8.js} +4 -4
  144. package/dist/{chunk-0a8jb5c8.js → chunk-crvwmrey.js} +9 -9
  145. package/dist/{chunk-44bqv91d.js → chunk-cxrktb5g.js} +3 -3
  146. package/dist/{chunk-apjnwens.js → chunk-d4mdda98.js} +8 -8
  147. package/dist/{chunk-d2cypdsx.js → chunk-d6kvya9n.js} +23 -23
  148. package/dist/chunk-daqd8kee.js +122 -0
  149. package/dist/{chunk-cx21etb2.js → chunk-db2awvr6.js} +2 -2
  150. package/dist/{chunk-b1hygym1.js → chunk-ddsjkqs4.js} +8 -8
  151. package/dist/{chunk-rx9ypbjy.js → chunk-dfzkwynj.js} +8 -8
  152. package/dist/{chunk-yteprw63.js → chunk-dhk2dt7n.js} +29 -29
  153. package/dist/{chunk-rzn9w8p2.js → chunk-dq94esjd.js} +3 -3
  154. package/dist/{chunk-z8b8f2n3.js → chunk-dw1x0kzg.js} +79 -79
  155. package/dist/{chunk-k3gvjjm9.js → chunk-e0abab5b.js} +5 -5
  156. package/dist/{chunk-wyyd1qfn.js → chunk-e28pnfmr.js} +81 -81
  157. package/dist/{chunk-pg8asjpk.js → chunk-e9w9zc0g.js} +20 -20
  158. package/dist/chunk-effhh1pw.js +81 -0
  159. package/dist/{chunk-rfj6gjwh.js → chunk-efrjt26j.js} +14 -14
  160. package/dist/{chunk-p4e5ymdw.js → chunk-ehtwnxpg.js} +1 -1
  161. package/dist/chunk-em7h8kqy.js +89 -0
  162. package/dist/{chunk-yh46f77t.js → chunk-enkgx9p5.js} +78 -78
  163. package/dist/{chunk-ysfam81t.js → chunk-eqp1rfft.js} +2 -2
  164. package/dist/{chunk-r4pq77kb.js → chunk-etdt1xz3.js} +3 -3
  165. package/dist/{chunk-dh01e4bp.js → chunk-ewadzrm8.js} +2 -2
  166. package/dist/{chunk-7dc9d8fy.js → chunk-f98yad99.js} +7 -7
  167. package/dist/{chunk-4v1mr2x2.js → chunk-f99jr604.js} +41 -41
  168. package/dist/{chunk-37j24srh.js → chunk-f9mnmjf4.js} +6 -6
  169. package/dist/{chunk-qbbf7rr5.js → chunk-fajg8x36.js} +727 -1818
  170. package/dist/{chunk-snd4pbkp.js → chunk-fbv4apne.js} +1 -1
  171. package/dist/{chunk-8m1gfrme.js → chunk-fc8mescd.js} +26 -15
  172. package/dist/{chunk-8a1jee0e.js → chunk-fcynwjpm.js} +2 -2
  173. package/dist/{chunk-gt43z5zd.js → chunk-fddfa07d.js} +81 -81
  174. package/dist/{chunk-bq0wp28e.js → chunk-feyzykye.js} +1 -1
  175. package/dist/chunk-ffcwak1t.js +91 -0
  176. package/dist/{chunk-25jhz0br.js → chunk-fgmmtj9k.js} +16 -16
  177. package/dist/{chunk-4kfhh3aw.js → chunk-fj3a38w3.js} +4 -4
  178. package/dist/chunk-fk60d1qf.js +87 -0
  179. package/dist/chunk-fnxysrtm.js +52 -0
  180. package/dist/chunk-fq24vgdm.js +113 -0
  181. package/dist/{chunk-dy8278wt.js → chunk-fqak69ft.js} +7 -7
  182. package/dist/{chunk-657k4mef.js → chunk-fs7jna05.js} +79 -79
  183. package/dist/{chunk-0zscb6c7.js → chunk-fyc5fepv.js} +1 -1
  184. package/dist/{chunk-vwt2fv6j.js → chunk-g0wv2y40.js} +3 -3
  185. package/dist/chunk-g3gr434c.js +101 -0
  186. package/dist/{chunk-v9sy0cj3.js → chunk-g3zgsm5x.js} +10 -10
  187. package/dist/{chunk-vxsad4bw.js → chunk-g9f19ttm.js} +2 -2
  188. package/dist/{chunk-bw8y1msy.js → chunk-g9q2patf.js} +5 -5
  189. package/dist/chunk-gdwdqewd.js +19 -0
  190. package/dist/{chunk-h8n0a991.js → chunk-ge8zt73c.js} +79 -79
  191. package/dist/{chunk-3w4xq6cv.js → chunk-gg55fns0.js} +92 -92
  192. package/dist/chunk-gk8dvdsw.js +140 -0
  193. package/dist/{chunk-9p62r6he.js → chunk-gw6kn54v.js} +6 -6
  194. package/dist/chunk-gz1e8y1w.js +33 -0
  195. package/dist/{chunk-ycpdfeya.js → chunk-gzt1cd1y.js} +79 -79
  196. package/dist/{chunk-m13ptmf2.js → chunk-h9n54swm.js} +2 -2
  197. package/dist/{chunk-7njkaxjp.js → chunk-hakdhagh.js} +120 -39
  198. package/dist/{chunk-dzcb2ekz.js → chunk-hcwcwa84.js} +4 -4
  199. package/dist/{chunk-1ehn6qdp.js → chunk-hf96emr1.js} +13 -13
  200. package/dist/{chunk-vq4k182g.js → chunk-hgteysah.js} +5 -5
  201. package/dist/{chunk-6fx36a3s.js → chunk-hszppxh0.js} +5 -5
  202. package/dist/chunk-hvbnh0ht.js +131 -0
  203. package/dist/{chunk-f9ybfyyp.js → chunk-hwfknpxv.js} +2 -2
  204. package/dist/{chunk-gm8ht8g9.js → chunk-hwyp85fa.js} +6 -6
  205. package/dist/{chunk-kt25n52f.js → chunk-j5bth84e.js} +4 -4
  206. package/dist/{chunk-tkbwrjte.js → chunk-j64ga6ta.js} +284 -325
  207. package/dist/{chunk-1ycd7t0f.js → chunk-jagq2tcw.js} +88 -88
  208. package/dist/{chunk-trm02xde.js → chunk-jd32zbps.js} +2 -2
  209. package/dist/{chunk-0f84wjjc.js → chunk-jgwfkvdk.js} +79 -79
  210. package/dist/{chunk-6fe0an4e.js → chunk-jhrshs1y.js} +79 -79
  211. package/dist/{chunk-3xamk0n1.js → chunk-jjnmcaeb.js} +25 -25
  212. package/dist/{chunk-x4x3691j.js → chunk-jtjqrrtq.js} +12 -12
  213. package/dist/{chunk-pp5zbnpr.js → chunk-jtx7ka0g.js} +80 -80
  214. package/dist/chunk-jvdhwjth.js +107 -0
  215. package/dist/{chunk-fpq87r80.js → chunk-jzthz1bx.js} +1 -1
  216. package/dist/{chunk-taqr0qw1.js → chunk-k0p9w03v.js} +3 -3
  217. package/dist/{chunk-9re786wa.js → chunk-k4xyha98.js} +40 -40
  218. package/dist/{chunk-pqxyft7d.js → chunk-k6tvcn37.js} +8 -8
  219. package/dist/{chunk-a3qtafgw.js → chunk-k8vp0atq.js} +79 -79
  220. package/dist/chunk-kbqx20y8.js +89 -0
  221. package/dist/{chunk-h4tnp6dw.js → chunk-khnqc2x8.js} +7 -7
  222. package/dist/{chunk-s9906sac.js → chunk-kqc0x8w6.js} +83 -83
  223. package/dist/{chunk-nsxw4b3j.js → chunk-ksq6zjys.js} +8 -8
  224. package/dist/{chunk-0pbwcm8b.js → chunk-kwekc97v.js} +1 -1
  225. package/dist/{chunk-qs4stpt5.js → chunk-ky1z78ve.js} +14 -14
  226. package/dist/{chunk-e22at2jn.js → chunk-m1ergjg5.js} +4 -4
  227. package/dist/chunk-m4k4mve9.js +130 -0
  228. package/dist/{chunk-q9y73cmh.js → chunk-mcws22k3.js} +1 -1
  229. package/dist/chunk-mfdqvcr5.js +50 -0
  230. package/dist/{chunk-88k0rgdp.js → chunk-mgv4r1af.js} +12 -12
  231. package/dist/{chunk-62jrhytw.js → chunk-mh52m71p.js} +10 -10
  232. package/dist/{chunk-pt6vj628.js → chunk-mjcxt56a.js} +9 -9
  233. package/dist/chunk-mpc6f96q.js +111 -0
  234. package/dist/{chunk-s5arr49c.js → chunk-mra3tr23.js} +200 -11
  235. package/dist/{chunk-4e1j46k0.js → chunk-mswx2nma.js} +3 -3
  236. package/dist/{chunk-zat7q2e0.js → chunk-mxt0a1ab.js} +79 -79
  237. package/dist/chunk-mympkkbw.js +103 -0
  238. package/dist/chunk-mzrxzmpm.js +121 -0
  239. package/dist/{chunk-0b85d7q0.js → chunk-n0zd06za.js} +7 -7
  240. package/dist/{chunk-jrqjxhxj.js → chunk-n22k5xdw.js} +2 -2
  241. package/dist/{chunk-7gbe6ftc.js → chunk-n9ftnh2y.js} +10 -10
  242. package/dist/{chunk-ykvf93ft.js → chunk-nd39ny9k.js} +79 -79
  243. package/dist/{chunk-mtstpt1e.js → chunk-nd7zx01p.js} +43 -43
  244. package/dist/{chunk-pnc7q9rt.js → chunk-netzwgv1.js} +1 -1
  245. package/dist/chunk-nmgj86tt.js +24 -0
  246. package/dist/{chunk-r1q9s5hs.js → chunk-ns7x6xam.js} +10 -13
  247. package/dist/{chunk-vbe1ersf.js → chunk-p7vkh4wx.js} +1 -1
  248. package/dist/{chunk-q74fcthe.js → chunk-p8na2wwp.js} +2 -2
  249. package/dist/{chunk-tmye4d2k.js → chunk-pajqjgkr.js} +15 -15
  250. package/dist/{chunk-pg4fbhbm.js → chunk-pe3rkfp2.js} +11 -11
  251. package/dist/chunk-pe824pp5.js +71 -0
  252. package/dist/{chunk-sbe9zd56.js → chunk-pgtnj1mt.js} +6 -6
  253. package/dist/{chunk-41wn5eqw.js → chunk-phr23vzw.js} +10 -10
  254. package/dist/{chunk-5nqrdqz5.js → chunk-ppwjyveh.js} +1 -1
  255. package/dist/chunk-pqe0s3es.js +85 -0
  256. package/dist/{chunk-ja1nqz5q.js → chunk-ps49ymvj.js} +2 -2
  257. package/dist/{chunk-2vc3fyp9.js → chunk-pwwa7s62.js} +2 -2
  258. package/dist/chunk-px0z9762.js +91 -0
  259. package/dist/{chunk-v8k67zfz.js → chunk-q4wj3v8n.js} +392 -1127
  260. package/dist/{chunk-wwrswxg1.js → chunk-qajrkk97.js} +1 -1
  261. package/dist/{chunk-b610qrvk.js → chunk-qatfdxvd.js} +3 -3
  262. package/dist/{chunk-qka6pqrq.js → chunk-qb6k2afy.js} +11 -11
  263. package/dist/{chunk-rgaedd84.js → chunk-qkczt8cr.js} +5 -5
  264. package/dist/chunk-qnfx3qtx.js +617 -0
  265. package/dist/{chunk-eta5aekm.js → chunk-qp2qdcda.js} +30 -9
  266. package/dist/{chunk-cfpnb7x4.js → chunk-qr516hqj.js} +78 -78
  267. package/dist/{chunk-a1mewckj.js → chunk-qswz887n.js} +78 -78
  268. package/dist/{chunk-tnv92c5m.js → chunk-r1w3jrs8.js} +81 -81
  269. package/dist/chunk-r5q49139.js +93 -0
  270. package/dist/{chunk-a00gfn8e.js → chunk-rmbbmd3s.js} +2 -2
  271. package/dist/{chunk-xdxdztxa.js → chunk-rn0v1hk8.js} +1 -1
  272. package/dist/{chunk-cqb31tfg.js → chunk-rnxctq9p.js} +6 -6
  273. package/dist/{chunk-z7yj7dfh.js → chunk-rs4yvre8.js} +10 -10
  274. package/dist/chunk-s07p92v4.js +107 -0
  275. package/dist/{chunk-fqr6n9z6.js → chunk-s8gy4ky9.js} +3 -3
  276. package/dist/chunk-s8hykxf5.js +145 -0
  277. package/dist/{chunk-fr5s5ceq.js → chunk-s8kj6ajy.js} +2 -2
  278. package/dist/{chunk-39r7sh1h.js → chunk-scz7dzwq.js} +90 -90
  279. package/dist/{chunk-nztayqyx.js → chunk-sd36yzx8.js} +1 -1
  280. package/dist/chunk-sgpmpn90.js +35 -0
  281. package/dist/chunk-sh02d2qn.js +38 -0
  282. package/dist/{chunk-6c22q39e.js → chunk-sncz1ag3.js} +78 -78
  283. package/dist/{chunk-0dwdg9bz.js → chunk-ssec5007.js} +9 -9
  284. package/dist/{chunk-2qpy8kne.js → chunk-szj5wvdy.js} +1 -1
  285. package/dist/{chunk-4nqm22j3.js → chunk-t29a6zb5.js} +4 -6
  286. package/dist/{chunk-w60c0dkw.js → chunk-t32ddjb3.js} +5 -5
  287. package/dist/{chunk-3hcfwedh.js → chunk-t4khqff1.js} +5 -5
  288. package/dist/{chunk-q53kkzhr.js → chunk-t7j96x8z.js} +80 -80
  289. package/dist/{chunk-qrdbqeve.js → chunk-t9p85zff.js} +2 -2
  290. package/dist/{chunk-ma6x4ws8.js → chunk-tgafrp5a.js} +46 -46
  291. package/dist/{chunk-ewsvbzhz.js → chunk-tgnbeeyx.js} +3 -3
  292. package/dist/{chunk-yp64t9je.js → chunk-tndhag9g.js} +8 -8
  293. package/dist/chunk-tr9zera9.js +55 -0
  294. package/dist/{chunk-5sd5fz78.js → chunk-tz3td6hy.js} +78 -78
  295. package/dist/{chunk-6vp8zen2.js → chunk-v17y7qay.js} +79 -79
  296. package/dist/{chunk-zx9r7a23.js → chunk-v1kzp02e.js} +1 -1
  297. package/dist/{chunk-15f7ee0j.js → chunk-v4t6dyyh.js} +158 -245
  298. package/dist/{chunk-93kvs6fh.js → chunk-v5brqghz.js} +6 -6
  299. package/dist/{chunk-he9zw1gh.js → chunk-v78fj8by.js} +2 -2
  300. package/dist/{chunk-pt1jzmkv.js → chunk-v8kjswxt.js} +2 -2
  301. package/dist/{chunk-n9ne98cj.js → chunk-v9smspw2.js} +4 -5
  302. package/dist/{chunk-2bh7f2wa.js → chunk-vbmdqx87.js} +13 -13
  303. package/dist/{chunk-4yq5zz3m.js → chunk-vcwzs8xk.js} +9 -9
  304. package/dist/{chunk-wt799fvk.js → chunk-vf612n57.js} +34 -34
  305. package/dist/chunk-vf9320w1.js +105 -0
  306. package/dist/{chunk-myac8yfs.js → chunk-vkhrrvfq.js} +5 -5
  307. package/dist/{chunk-hbz8xggv.js → chunk-vneepj82.js} +11 -11
  308. package/dist/{chunk-ytt8da3v.js → chunk-vr96pznr.js} +81 -81
  309. package/dist/chunk-vszex7fm.js +90 -0
  310. package/dist/{chunk-jw9zwgea.js → chunk-vv7kzavx.js} +4 -4
  311. package/dist/chunk-vwxpwg2r.js +121 -0
  312. package/dist/{chunk-bktmgb4n.js → chunk-vyjeh50y.js} +39 -68
  313. package/dist/{chunk-9rhy5vt7.js → chunk-vzzsjg7m.js} +9 -9
  314. package/dist/{chunk-yvm9t98e.js → chunk-w0dz2sa5.js} +18 -7
  315. package/dist/{chunk-xggbj4j9.js → chunk-w1fb9aqj.js} +3 -3
  316. package/dist/{chunk-hgb8024k.js → chunk-w43b6749.js} +10 -10
  317. package/dist/{chunk-3hxr3x9d.js → chunk-w6m6trzq.js} +2 -2
  318. package/dist/chunk-w9a226y4.js +105 -0
  319. package/dist/{chunk-kcp41jcn.js → chunk-wa8yn2p0.js} +2 -2
  320. package/dist/{chunk-4fwzreqj.js → chunk-wf16jx1f.js} +6 -6
  321. package/dist/{chunk-7tdk9ypw.js → chunk-wgk9sxk7.js} +10 -10
  322. package/dist/{chunk-2bk4jvse.js → chunk-wkny3k77.js} +7 -7
  323. package/dist/chunk-wsfq03qa.js +101 -0
  324. package/dist/{chunk-e01rphq3.js → chunk-x12h3n65.js} +727 -128
  325. package/dist/{chunk-26kp0k1t.js → chunk-x1dw8vry.js} +80 -80
  326. package/dist/{chunk-jsvsnqkn.js → chunk-x47h283a.js} +2 -2
  327. package/dist/{chunk-ccdh8eh2.js → chunk-x5wgbcme.js} +38 -38
  328. package/dist/{chunk-rpta0rqz.js → chunk-x6r4v44b.js} +1 -1
  329. package/dist/{chunk-tyc5c0q4.js → chunk-x70f036b.js} +8 -8
  330. package/dist/{chunk-k6wmp81y.js → chunk-x7fdwq3d.js} +1 -1
  331. package/dist/{chunk-13pmg16e.js → chunk-x8d2ehd7.js} +1 -1
  332. package/dist/{chunk-dg2k597k.js → chunk-xca0q5ap.js} +9 -9
  333. package/dist/{chunk-pnrdvxhy.js → chunk-xeb6075z.js} +2 -2
  334. package/dist/{chunk-n9xhrzxs.js → chunk-xg08qv1e.js} +78 -78
  335. package/dist/{chunk-7gte8zc4.js → chunk-xhfmdq1y.js} +1 -1
  336. package/dist/{chunk-gxsrvxjn.js → chunk-xv3era3s.js} +1 -1
  337. package/dist/chunk-xv78ch6z.js +92 -0
  338. package/dist/chunk-xy94q6qg.js +114 -0
  339. package/dist/{chunk-92wwx9vf.js → chunk-y1784krc.js} +2 -2
  340. package/dist/{chunk-ggk84sc5.js → chunk-y4ca9kqz.js} +4 -4
  341. package/dist/{chunk-h1tv19q0.js → chunk-y4d1sgf4.js} +80 -80
  342. package/dist/{chunk-m8qvkabg.js → chunk-y9bhjjdz.js} +4 -4
  343. package/dist/{chunk-vwkb146r.js → chunk-y9ffgh1g.js} +90 -90
  344. package/dist/chunk-ycs5r2ef.js +60 -0
  345. package/dist/{chunk-c2k1n6yb.js → chunk-yde1e32y.js} +16 -16
  346. package/dist/chunk-yfztvfhh.js +94 -0
  347. package/dist/{chunk-hhvf84fa.js → chunk-yjk0f08a.js} +188 -186
  348. package/dist/{chunk-bta8w8ge.js → chunk-yyex5gsf.js} +10 -10
  349. package/dist/chunk-zcq3r82m.js +93 -0
  350. package/dist/{chunk-3jbxhytz.js → chunk-zecx4x3b.js} +8 -8
  351. package/dist/{chunk-7ba45tqg.js → chunk-zpdzhck8.js} +5 -5
  352. package/dist/{chunk-j0bfbce5.js → chunk-zpw4ny96.js} +36 -36
  353. package/dist/{chunk-tdf3ha9b.js → chunk-zv1frw5e.js} +79 -79
  354. package/dist/{chunk-61x3akfa.js → chunk-zxh62ved.js} +2 -2
  355. package/dist/{chunk-8r1napm7.js → chunk-zzm33q8x.js} +1 -1
  356. package/dist/cli.js +12 -12
  357. package/dist/gateway/worker.js +170082 -171912
  358. package/dist/sdk/query.cjs +18 -8
  359. package/dist/sdk/query.js +1 -1
  360. package/package.json +128 -128
  361. package/dist/chunk-09nzqj0f.js +0 -9605
  362. package/dist/chunk-0fw1mz8s.js +0 -27
  363. package/dist/chunk-0pqv68xt.js +0 -133
  364. package/dist/chunk-0pv13fxq.js +0 -1684
  365. package/dist/chunk-0tgn1431.js +0 -38
  366. package/dist/chunk-0yshjsxt.js +0 -122
  367. package/dist/chunk-0z9s957c.js +0 -94
  368. package/dist/chunk-1gt45dyg.js +0 -101
  369. package/dist/chunk-3kx7brrn.js +0 -55
  370. package/dist/chunk-4kfs8ymb.js +0 -92
  371. package/dist/chunk-5rhmrt2j.js +0 -121
  372. package/dist/chunk-626watky.js +0 -50
  373. package/dist/chunk-6aqa0ec5.js +0 -145
  374. package/dist/chunk-6zfb4n08.js +0 -91
  375. package/dist/chunk-73bgy356.js +0 -90
  376. package/dist/chunk-7nphjzve.js +0 -105
  377. package/dist/chunk-7sp9dk6d.js +0 -20
  378. package/dist/chunk-8jmkpx1h.js +0 -123
  379. package/dist/chunk-9xq7ef8y.js +0 -100
  380. package/dist/chunk-9ydxqdhe.js +0 -121
  381. package/dist/chunk-ab6apbd2.js +0 -140
  382. package/dist/chunk-bdrsheny.js +0 -35
  383. package/dist/chunk-bvfqg3cg.js +0 -131
  384. package/dist/chunk-cj0j4n23.js +0 -71
  385. package/dist/chunk-cynnhyy3.js +0 -103
  386. package/dist/chunk-d0zx5hba.js +0 -85
  387. package/dist/chunk-e6s584g7.js +0 -77
  388. package/dist/chunk-e90dyenj.js +0 -127
  389. package/dist/chunk-em5s71j6.js +0 -89
  390. package/dist/chunk-eqcgr89w.js +0 -646
  391. package/dist/chunk-f9zvs66e.js +0 -105
  392. package/dist/chunk-gaf31961.js +0 -81
  393. package/dist/chunk-gkz2djp0.js +0 -121
  394. package/dist/chunk-gwktnbeg.js +0 -90
  395. package/dist/chunk-h0bgwz9v.js +0 -55
  396. package/dist/chunk-h3v46eky.js +0 -105
  397. package/dist/chunk-hycm92ss.js +0 -52
  398. package/dist/chunk-j3c5r08n.js +0 -87
  399. package/dist/chunk-j3q2sbhc.js +0 -107
  400. package/dist/chunk-k9h7kjf6.js +0 -8
  401. package/dist/chunk-karea2z2.js +0 -89
  402. package/dist/chunk-kra9y8qb.js +0 -97
  403. package/dist/chunk-mwzwm2z2.js +0 -60
  404. package/dist/chunk-n535j168.js +0 -131
  405. package/dist/chunk-p9nkqgej.js +0 -19
  406. package/dist/chunk-pgptefy1.js +0 -114
  407. package/dist/chunk-pjn0s3j1.js +0 -111
  408. package/dist/chunk-pkwv0q5q.js +0 -91
  409. package/dist/chunk-q6m9qgaa.js +0 -88
  410. package/dist/chunk-r82c7gfc.js +0 -58
  411. package/dist/chunk-rgshryeb.js +0 -93
  412. package/dist/chunk-rk2kb2ec.js +0 -101
  413. package/dist/chunk-s0p653k2.js +0 -93
  414. package/dist/chunk-skypjdyc.js +0 -147
  415. package/dist/chunk-tgayhxvz.js +0 -41
  416. package/dist/chunk-vr5vyt2h.js +0 -107
  417. package/dist/chunk-vvjhax8n.js +0 -114
  418. package/dist/chunk-vvsts2t9.js +0 -30
  419. package/dist/chunk-w287mz4p.js +0 -146
  420. package/dist/chunk-wa852b5b.js +0 -113
  421. package/dist/chunk-xbpt4dv8.js +0 -155
  422. package/dist/chunk-xj72jfpd.js +0 -33
  423. package/dist/chunk-xwbh3j1x.js +0 -107
  424. package/dist/chunk-xwrar1c5.js +0 -97
  425. package/dist/chunk-yt9mady7.js +0 -36
  426. package/dist/chunk-zfxp82tk.js +0 -24
  427. package/dist/chunk-zgkngrp4.js +0 -54
@@ -1,646 +0,0 @@
1
- // @bun
2
- import {
3
- __esm
4
- } from "./chunk-eta5aekm.js";
5
-
6
- // node_modules/.bun/lru-cache@11.5.2/node_modules/lru-cache/dist/esm/node/index.min.js
7
- import { tracingChannel as G, channel as P } from "diagnostics_channel";
8
- var S, W, L, R = () => S.hasSubscribers || W.hasSubscribers, U, M, k = (d, e, t, i) => {
9
- typeof M.emitWarning == "function" ? M.emitWarning(d, e, t, i) : console.error(`[${t}] ${e}: ${d}`);
10
- }, H = (d) => !U.has(d), T = (d) => !!d && d === Math.floor(d) && d > 0 && isFinite(d), j = (d) => T(d) ? d <= Math.pow(2, 8) ? Uint8Array : d <= Math.pow(2, 16) ? Uint16Array : d <= Math.pow(2, 32) ? Uint32Array : d <= Number.MAX_SAFE_INTEGER ? O : null : null, O, x = class d {
11
- heap;
12
- length;
13
- static #o = false;
14
- static create(e) {
15
- let t = j(e);
16
- if (!t)
17
- return [];
18
- d.#o = true;
19
- let i = new d(e, t);
20
- return d.#o = false, i;
21
- }
22
- constructor(e, t) {
23
- if (!d.#o)
24
- throw new TypeError("instantiate Stack using Stack.create(n)");
25
- this.heap = new t(e), this.length = 0;
26
- }
27
- push(e) {
28
- this.heap[this.length++] = e;
29
- }
30
- pop() {
31
- return this.heap[--this.length];
32
- }
33
- }, I;
34
- var init_index_min = __esm(() => {
35
- S = P("lru-cache:metrics");
36
- W = G("lru-cache");
37
- L = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
38
- U = new Set;
39
- M = typeof process == "object" && process ? process : {};
40
- O = class extends Array {
41
- constructor(e) {
42
- super(e), this.fill(0);
43
- }
44
- };
45
- I = class d2 {
46
- #o;
47
- #c;
48
- #S;
49
- #O;
50
- #w;
51
- #M;
52
- #I;
53
- #m;
54
- get perf() {
55
- return this.#m;
56
- }
57
- ttl;
58
- ttlResolution;
59
- ttlAutopurge;
60
- updateAgeOnGet;
61
- updateAgeOnHas;
62
- allowStale;
63
- noDisposeOnSet;
64
- noUpdateTTL;
65
- maxEntrySize;
66
- sizeCalculation;
67
- noDeleteOnFetchRejection;
68
- noDeleteOnStaleGet;
69
- allowStaleOnFetchAbort;
70
- allowStaleOnFetchRejection;
71
- ignoreFetchAbort;
72
- backgroundFetchSize;
73
- #n;
74
- #b;
75
- #s;
76
- #i;
77
- #t;
78
- #l;
79
- #u;
80
- #a;
81
- #h;
82
- #y;
83
- #r;
84
- #_;
85
- #F;
86
- #d;
87
- #g;
88
- #T;
89
- #U;
90
- #f;
91
- #D;
92
- static unsafeExposeInternals(e) {
93
- return { starts: e.#F, ttls: e.#d, autopurgeTimers: e.#g, sizes: e.#_, keyMap: e.#s, keyList: e.#i, valList: e.#t, next: e.#l, prev: e.#u, get head() {
94
- return e.#a;
95
- }, get tail() {
96
- return e.#h;
97
- }, free: e.#y, isBackgroundFetch: (t) => e.#e(t), backgroundFetch: (t, i, s, n) => e.#P(t, i, s, n), moveToTail: (t) => e.#L(t), indexes: (t) => e.#A(t), rindexes: (t) => e.#z(t), isStale: (t) => e.#p(t) };
98
- }
99
- get max() {
100
- return this.#o;
101
- }
102
- get maxSize() {
103
- return this.#c;
104
- }
105
- get calculatedSize() {
106
- return this.#b;
107
- }
108
- get size() {
109
- return this.#n;
110
- }
111
- get fetchMethod() {
112
- return this.#M;
113
- }
114
- get memoMethod() {
115
- return this.#I;
116
- }
117
- get dispose() {
118
- return this.#S;
119
- }
120
- get onInsert() {
121
- return this.#O;
122
- }
123
- get disposeAfter() {
124
- return this.#w;
125
- }
126
- constructor(e) {
127
- let { max: t = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: l, allowStale: h, dispose: r, onInsert: c, disposeAfter: m, noDisposeOnSet: _, noUpdateTTL: u, maxSize: g = 0, maxEntrySize: f = 0, sizeCalculation: y, fetchMethod: a, memoMethod: w, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: A, ignoreFetchAbort: z, backgroundFetchSize: C = 1, perf: E } = e;
128
- if (this.backgroundFetchSize = C, E !== undefined && typeof E?.now != "function")
129
- throw new TypeError("perf option must have a now() method if specified");
130
- if (this.#m = E ?? L, t !== 0 && !T(t))
131
- throw new TypeError("max option must be a nonnegative integer");
132
- let v = t ? j(t) : Array;
133
- if (!v)
134
- throw new Error("invalid max value: " + t);
135
- if (this.#o = t, this.#c = g, this.maxEntrySize = f || this.#c, this.sizeCalculation = y, this.sizeCalculation) {
136
- if (!this.#c && !this.maxEntrySize)
137
- throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
138
- if (typeof this.sizeCalculation != "function")
139
- throw new TypeError("sizeCalculation set to non-function");
140
- }
141
- if (w !== undefined && typeof w != "function")
142
- throw new TypeError("memoMethod must be a function if defined");
143
- if (this.#I = w, a !== undefined && typeof a != "function")
144
- throw new TypeError("fetchMethod must be a function if specified");
145
- if (this.#M = a, this.#U = !!a, this.#s = new Map, this.#i = Array.from({ length: t }).fill(undefined), this.#t = Array.from({ length: t }).fill(undefined), this.#l = new v(t), this.#u = new v(t), this.#a = 0, this.#h = 0, this.#y = x.create(t), this.#n = 0, this.#b = 0, typeof r == "function" && (this.#S = r), typeof c == "function" && (this.#O = c), typeof m == "function" ? (this.#w = m, this.#r = []) : (this.#w = undefined, this.#r = undefined), this.#T = !!this.#S, this.#D = !!this.#O, this.#f = !!this.#w, this.noDisposeOnSet = !!_, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!p, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z, this.maxEntrySize !== 0) {
146
- if (this.#c !== 0 && !T(this.#c))
147
- throw new TypeError("maxSize must be a positive integer if specified");
148
- if (!T(this.maxEntrySize))
149
- throw new TypeError("maxEntrySize must be a positive integer if specified");
150
- this.#X();
151
- }
152
- if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!l, this.ttlResolution = T(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
153
- if (!T(this.ttl))
154
- throw new TypeError("ttl must be a positive integer if specified");
155
- this.#k();
156
- }
157
- if (this.#o === 0 && this.ttl === 0 && this.#c === 0)
158
- throw new TypeError("At least one of max, maxSize, or ttl is required");
159
- if (!this.ttlAutopurge && !this.#o && !this.#c) {
160
- let D = "LRU_CACHE_UNBOUNDED";
161
- H(D) && (U.add(D), k("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", D, d2));
162
- }
163
- }
164
- getRemainingTTL(e) {
165
- return this.#s.has(e) ? 1 / 0 : 0;
166
- }
167
- #k() {
168
- let e = new O(this.#o), t = new O(this.#o);
169
- this.#d = e, this.#F = t;
170
- let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : undefined;
171
- this.#g = i, this.#H = (h, r, c = this.#m.now()) => {
172
- t[h] = r !== 0 ? c : 0, e[h] = r, s(h, r);
173
- }, this.#R = (h) => {
174
- t[h] = e[h] !== 0 ? this.#m.now() : 0, s(h, e[h]);
175
- };
176
- let s = this.ttlAutopurge ? (h, r) => {
177
- if (i?.[h] && (clearTimeout(i[h]), i[h] = undefined), r && r !== 0 && i) {
178
- let c = setTimeout(() => {
179
- this.#p(h) ? (this.#E(this.#i[h], "expire"), i[h] = undefined) : s(h, l(h));
180
- }, r + 1);
181
- c.unref && c.unref(), i[h] = c;
182
- }
183
- } : () => {};
184
- this.#v = (h, r) => {
185
- if (e[r]) {
186
- let c = e[r], m = t[r];
187
- if (!c || !m)
188
- return;
189
- h.ttl = c, h.start = m, h.now = n || o();
190
- let _ = h.now - m;
191
- h.remainingTTL = c - _;
192
- }
193
- };
194
- let n = 0, o = () => {
195
- let h = this.#m.now();
196
- if (this.ttlResolution > 0) {
197
- n = h;
198
- let r = setTimeout(() => n = 0, this.ttlResolution);
199
- r.unref && r.unref();
200
- }
201
- return h;
202
- };
203
- this.getRemainingTTL = (h) => {
204
- let r = this.#s.get(h);
205
- return r === undefined ? 0 : l(r);
206
- };
207
- let l = (h) => {
208
- let r = e[h], c = t[h];
209
- if (!r || !c)
210
- return 1 / 0;
211
- let m = (n || o()) - c;
212
- return r - m;
213
- };
214
- this.#p = (h) => {
215
- let r = t[h], c = e[h];
216
- return !!c && !!r && (n || o()) - r > c;
217
- };
218
- }
219
- #R = () => {};
220
- #v = () => {};
221
- #H = () => {};
222
- #p = () => false;
223
- #X() {
224
- let e = new O(this.#o);
225
- this.#b = 0, this.#_ = e, this.#x = (t) => {
226
- this.#b -= e[t], e[t] = 0;
227
- }, this.#N = (t, i, s, n) => {
228
- if (!T(s)) {
229
- if (this.#e(i))
230
- return this.backgroundFetchSize;
231
- if (n) {
232
- if (typeof n != "function")
233
- throw new TypeError("sizeCalculation must be a function");
234
- if (s = n(i, t), !T(s))
235
- throw new TypeError("sizeCalculation return invalid (expect positive integer)");
236
- } else
237
- throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
238
- }
239
- return s;
240
- }, this.#j = (t, i, s) => {
241
- if (e[t] = i, this.#c) {
242
- let n = this.#c - e[t];
243
- for (;this.#b > n; )
244
- this.#G(true);
245
- }
246
- this.#b += e[t], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
247
- };
248
- }
249
- #x = (e) => {};
250
- #j = (e, t, i) => {};
251
- #N = (e, t, i, s) => {
252
- if (i || s)
253
- throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
254
- return 0;
255
- };
256
- *#A({ allowStale: e = this.allowStale } = {}) {
257
- if (this.#n)
258
- for (let t = this.#h;this.#V(t) && ((e || !this.#p(t)) && (yield t), t !== this.#a); )
259
- t = this.#u[t];
260
- }
261
- *#z({ allowStale: e = this.allowStale } = {}) {
262
- if (this.#n)
263
- for (let t = this.#a;this.#V(t) && ((e || !this.#p(t)) && (yield t), t !== this.#h); )
264
- t = this.#l[t];
265
- }
266
- #V(e) {
267
- return e !== undefined && this.#s.get(this.#i[e]) === e;
268
- }
269
- *entries() {
270
- for (let e of this.#A())
271
- this.#t[e] !== undefined && this.#i[e] !== undefined && !this.#e(this.#t[e]) && (yield [this.#i[e], this.#t[e]]);
272
- }
273
- *rentries() {
274
- for (let e of this.#z())
275
- this.#t[e] !== undefined && this.#i[e] !== undefined && !this.#e(this.#t[e]) && (yield [this.#i[e], this.#t[e]]);
276
- }
277
- *keys() {
278
- for (let e of this.#A()) {
279
- let t = this.#i[e];
280
- t !== undefined && !this.#e(this.#t[e]) && (yield t);
281
- }
282
- }
283
- *rkeys() {
284
- for (let e of this.#z()) {
285
- let t = this.#i[e];
286
- t !== undefined && !this.#e(this.#t[e]) && (yield t);
287
- }
288
- }
289
- *values() {
290
- for (let e of this.#A())
291
- this.#t[e] !== undefined && !this.#e(this.#t[e]) && (yield this.#t[e]);
292
- }
293
- *rvalues() {
294
- for (let e of this.#z())
295
- this.#t[e] !== undefined && !this.#e(this.#t[e]) && (yield this.#t[e]);
296
- }
297
- [Symbol.iterator]() {
298
- return this.entries();
299
- }
300
- [Symbol.toStringTag] = "LRUCache";
301
- find(e, t = {}) {
302
- for (let i of this.#A()) {
303
- let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
304
- if (n !== undefined && e(n, this.#i[i], this))
305
- return this.#C(this.#i[i], t);
306
- }
307
- }
308
- forEach(e, t = this) {
309
- for (let i of this.#A()) {
310
- let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
311
- n !== undefined && e.call(t, n, this.#i[i], this);
312
- }
313
- }
314
- rforEach(e, t = this) {
315
- for (let i of this.#z()) {
316
- let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
317
- n !== undefined && e.call(t, n, this.#i[i], this);
318
- }
319
- }
320
- purgeStale() {
321
- let e = false;
322
- for (let t of this.#z({ allowStale: true }))
323
- this.#p(t) && (this.#E(this.#i[t], "expire"), e = true);
324
- return e;
325
- }
326
- info(e) {
327
- let t = this.#s.get(e);
328
- if (t === undefined)
329
- return;
330
- let i = this.#t[t], s = this.#e(i) ? i.__staleWhileFetching : i;
331
- if (s === undefined)
332
- return;
333
- let n = { value: s };
334
- if (this.#d && this.#F) {
335
- let o = this.#d[t], l = this.#F[t];
336
- if (o && l) {
337
- let h = o - (this.#m.now() - l);
338
- n.ttl = h, n.start = Date.now();
339
- }
340
- }
341
- return this.#_ && (n.size = this.#_[t]), n;
342
- }
343
- dump() {
344
- let e = [];
345
- for (let t of this.#A({ allowStale: true })) {
346
- let i = this.#i[t], s = this.#t[t], n = this.#e(s) ? s.__staleWhileFetching : s;
347
- if (n === undefined || i === undefined)
348
- continue;
349
- let o = { value: n };
350
- if (this.#d && this.#F) {
351
- o.ttl = this.#d[t];
352
- let l = this.#m.now() - this.#F[t];
353
- o.start = Math.floor(Date.now() - l);
354
- }
355
- this.#_ && (o.size = this.#_[t]), e.unshift([i, o]);
356
- }
357
- return e;
358
- }
359
- load(e) {
360
- this.clear();
361
- for (let [t, i] of e) {
362
- if (i.start) {
363
- let s = Date.now() - i.start;
364
- i.start = this.#m.now() - s;
365
- }
366
- this.#W(t, i.value, i);
367
- }
368
- }
369
- set(e, t, i = {}) {
370
- let { status: s = S.hasSubscribers ? {} : undefined } = i;
371
- i.status = s, s && (s.op = "set", s.key = e, t !== undefined && (s.value = t), s.cache = this);
372
- let n = this.#W(e, t, i);
373
- return s && S.hasSubscribers && S.publish(s), n;
374
- }
375
- #W(e, t, i, s) {
376
- let { ttl: n = this.ttl, start: o, noDisposeOnSet: l = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: r } = i, c = this.#e(t);
377
- if (t === undefined)
378
- return r && (r.set = "deleted"), this.delete(e), this;
379
- let { noUpdateTTL: m = this.noUpdateTTL } = i;
380
- r && !c && (r.value = t);
381
- let _ = this.#N(e, t, i.size || 0, h, r);
382
- if (this.maxEntrySize && _ > this.maxEntrySize)
383
- return this.#E(e, "set"), r && (r.set = "miss", r.maxEntrySizeExceeded = true), this;
384
- let u = this.#n === 0 ? undefined : this.#s.get(e);
385
- if (u === undefined)
386
- u = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[u] = e, this.#t[u] = t, this.#s.set(e, u), this.#l[this.#h] = u, this.#u[u] = this.#h, this.#h = u, this.#n++, this.#j(u, _, r), r && (r.set = "add"), m = false, this.#D && !c && this.#O?.(t, e, "add");
387
- else {
388
- this.#L(u);
389
- let g = this.#t[u];
390
- if (t !== g) {
391
- if (!l)
392
- if (this.#e(g)) {
393
- g !== s && g.__abortController.abort(new Error("replaced"));
394
- let { __staleWhileFetching: f } = g;
395
- f !== undefined && f !== t && (this.#T && this.#S?.(f, e, "set"), this.#f && this.#r?.push([f, e, "set"]));
396
- } else
397
- this.#T && this.#S?.(g, e, "set"), this.#f && this.#r?.push([g, e, "set"]);
398
- if (this.#x(u), this.#j(u, _, r), this.#t[u] = t, !c) {
399
- let f = g && this.#e(g) ? g.__staleWhileFetching : g, y = f === undefined ? "add" : t !== f ? "replace" : "update";
400
- r && (r.set = y, f !== undefined && (r.oldValue = f)), this.#D && this.onInsert?.(t, e, y);
401
- }
402
- } else
403
- c || (r && (r.set = "update"), this.#D && this.onInsert?.(t, e, "update"));
404
- }
405
- if (n !== 0 && !this.#d && this.#k(), this.#d && (m || this.#H(u, n, o), r && this.#v(r, u)), !l && this.#f && this.#r) {
406
- let g = this.#r, f;
407
- for (;f = g?.shift(); )
408
- this.#w?.(...f);
409
- }
410
- return this;
411
- }
412
- pop() {
413
- try {
414
- for (;this.#n; ) {
415
- let e = this.#t[this.#a];
416
- if (this.#G(true), this.#e(e)) {
417
- if (e.__staleWhileFetching)
418
- return e.__staleWhileFetching;
419
- } else if (e !== undefined)
420
- return e;
421
- }
422
- } finally {
423
- if (this.#f && this.#r) {
424
- let e = this.#r, t;
425
- for (;t = e?.shift(); )
426
- this.#w?.(...t);
427
- }
428
- }
429
- }
430
- #G(e) {
431
- let t = this.#a, i = this.#i[t], s = this.#t[t], n = this.#e(s);
432
- n && s.__abortController.abort(new Error("evicted"));
433
- let o = n ? s.__staleWhileFetching : s;
434
- return (this.#T || this.#f) && o !== undefined && (this.#T && this.#S?.(o, i, "evict"), this.#f && this.#r?.push([o, i, "evict"])), this.#x(t), this.#g?.[t] && (clearTimeout(this.#g[t]), this.#g[t] = undefined), e && (this.#i[t] = undefined, this.#t[t] = undefined, this.#y.push(t)), this.#n === 1 ? (this.#a = this.#h = 0, this.#y.length = 0) : this.#a = this.#l[t], this.#s.delete(i), this.#n--, t;
435
- }
436
- has(e, t = {}) {
437
- let { status: i = S.hasSubscribers ? {} : undefined } = t;
438
- t.status = i, i && (i.op = "has", i.key = e, i.cache = this);
439
- let s = this.#Y(e, t);
440
- return S.hasSubscribers && S.publish(i), s;
441
- }
442
- #Y(e, t = {}) {
443
- let { updateAgeOnHas: i = this.updateAgeOnHas, status: s } = t, n = this.#s.get(e);
444
- if (n !== undefined) {
445
- let o = this.#t[n];
446
- if (this.#e(o) && o.__staleWhileFetching === undefined)
447
- return false;
448
- if (this.#p(n))
449
- s && (s.has = "stale", this.#v(s, n));
450
- else
451
- return i && this.#R(n), s && (s.has = "hit", this.#v(s, n)), true;
452
- } else
453
- s && (s.has = "miss");
454
- return false;
455
- }
456
- peek(e, t = {}) {
457
- let { status: i = R() ? {} : undefined } = t;
458
- i && (i.op = "peek", i.key = e, i.cache = this), t.status = i;
459
- let s = this.#J(e, t);
460
- return S.hasSubscribers && S.publish(i), s;
461
- }
462
- #J(e, t) {
463
- let { status: i, allowStale: s = this.allowStale } = t, n = this.#s.get(e);
464
- if (n === undefined || !s && this.#p(n)) {
465
- i && (i.peek = n === undefined ? "miss" : "stale");
466
- return;
467
- }
468
- let o = this.#t[n], l = this.#e(o) ? o.__staleWhileFetching : o;
469
- return i && (l !== undefined ? (i.peek = "hit", i.value = l) : i.peek = "miss"), l;
470
- }
471
- #P(e, t, i, s) {
472
- let n = t === undefined ? undefined : this.#t[t];
473
- if (this.#e(n))
474
- return n;
475
- let o = new AbortController, { signal: l } = i;
476
- l?.addEventListener("abort", () => o.abort(l.reason), { signal: o.signal });
477
- let h = { signal: o.signal, options: i, context: s }, r = (f, y = false) => {
478
- let { aborted: a } = o.signal, w = i.ignoreFetchAbort && f !== undefined, F = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && f !== undefined);
479
- if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, w && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), a && !w && !y)
480
- return m(o.signal.reason, F);
481
- let b = u, p = this.#t[t];
482
- return (p === u || p === undefined && w && y) && (f === undefined ? b.__staleWhileFetching !== undefined ? this.#t[t] = b.__staleWhileFetching : this.#E(e, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#W(e, f, h.options, b))), f;
483
- }, c = (f) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = f), m(f, false)), m = (f, y) => {
484
- let { aborted: a } = o.signal, w = a && i.allowStaleOnFetchAbort, F = w || i.allowStaleOnFetchRejection, b = F || i.noDeleteOnFetchRejection, p = u;
485
- if (this.#t[t] === u && (!b || !y && p.__staleWhileFetching === undefined ? this.#E(e, "fetch") : w || (this.#t[t] = p.__staleWhileFetching)), F)
486
- return i.status && p.__staleWhileFetching !== undefined && (i.status.returnedStale = true), p.__staleWhileFetching;
487
- if (p.__returned === p)
488
- throw f;
489
- }, _ = (f, y) => {
490
- let a = this.#M?.(e, n, h);
491
- o.signal.addEventListener("abort", () => {
492
- (!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (f(undefined), i.allowStaleOnFetchAbort && (f = (w) => r(w, true)));
493
- }), a && a instanceof Promise ? a.then((w) => f(w === undefined ? undefined : w), y) : a !== undefined && f(a);
494
- };
495
- i.status && (i.status.fetchDispatched = true);
496
- let u = new Promise(_).then(r, c), g = Object.assign(u, { __abortController: o, __staleWhileFetching: n, __returned: undefined });
497
- return t === undefined ? (this.#W(e, g, { ...h.options, status: undefined }), t = this.#s.get(e)) : this.#t[t] = g, g;
498
- }
499
- #e(e) {
500
- if (!this.#U)
501
- return false;
502
- let t = e;
503
- return !!t && t instanceof Promise && t.hasOwnProperty("__staleWhileFetching") && t.__abortController instanceof AbortController;
504
- }
505
- fetch(e, t = {}) {
506
- let i = W.hasSubscribers, { status: s = R() ? {} : undefined } = t;
507
- t.status = s, s && t.context && (s.context = t.context);
508
- let n = this.#B(e, t);
509
- return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {})), n;
510
- }
511
- async#B(e, t = {}) {
512
- let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: l = this.noDisposeOnSet, size: h = 0, sizeCalculation: r = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: m = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: _ = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: g = this.allowStaleOnFetchAbort, context: f, forceRefresh: y = false, status: a, signal: w } = t;
513
- if (a && (a.op = "fetch", a.key = e, y && (a.forceRefresh = true), a.cache = this), !this.#U)
514
- return a && (a.fetch = "get"), this.#C(e, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: a });
515
- let F = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: l, size: h, sizeCalculation: r, noUpdateTTL: c, noDeleteOnFetchRejection: m, allowStaleOnFetchRejection: _, allowStaleOnFetchAbort: g, ignoreFetchAbort: u, status: a, signal: w }, b = this.#s.get(e);
516
- if (b === undefined) {
517
- a && (a.fetch = "miss");
518
- let p = this.#P(e, b, F, f);
519
- return p.__returned = p;
520
- } else {
521
- let p = this.#t[b];
522
- if (this.#e(p)) {
523
- let v = i && p.__staleWhileFetching !== undefined;
524
- return a && (a.fetch = "inflight", v && (a.returnedStale = true)), v ? p.__staleWhileFetching : p.__returned = p;
525
- }
526
- let A = this.#p(b);
527
- if (!y && !A)
528
- return a && (a.fetch = "hit"), this.#L(b), s && this.#R(b), a && this.#v(a, b), p;
529
- let z = this.#P(e, b, F, f), E = z.__staleWhileFetching !== undefined && i;
530
- return a && (a.fetch = A ? "stale" : "refresh", E && A && (a.returnedStale = true)), E ? z.__staleWhileFetching : z.__returned = z;
531
- }
532
- }
533
- forceFetch(e, t = {}) {
534
- let i = W.hasSubscribers, { status: s = R() ? {} : undefined } = t;
535
- t.status = s, s && t.context && (s.context = t.context);
536
- let n = this.#K(e, t);
537
- return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {})), n;
538
- }
539
- async#K(e, t = {}) {
540
- let i = await this.#B(e, t);
541
- if (i === undefined)
542
- throw new Error("fetch() returned undefined");
543
- return i;
544
- }
545
- memo(e, t = {}) {
546
- let { status: i = S.hasSubscribers ? {} : undefined } = t;
547
- t.status = i, i && (i.op = "memo", i.key = e, t.context && (i.context = t.context), i.cache = this);
548
- let s = this.#Q(e, t);
549
- return i && (i.value = s), S.hasSubscribers && S.publish(i), s;
550
- }
551
- #Q(e, t = {}) {
552
- let i = this.#I;
553
- if (!i)
554
- throw new Error("no memoMethod provided to constructor");
555
- let { context: s, status: n, forceRefresh: o, ...l } = t;
556
- n && o && (n.forceRefresh = true);
557
- let h = this.#C(e, l), r = o || h === undefined;
558
- if (n && (n.memo = r ? "miss" : "hit", r || (n.value = h)), !r)
559
- return h;
560
- let c = i(e, h, { options: l, context: s });
561
- return n && (n.value = c), this.#W(e, c, l), c;
562
- }
563
- get(e, t = {}) {
564
- let { status: i = S.hasSubscribers ? {} : undefined } = t;
565
- t.status = i, i && (i.op = "get", i.key = e, i.cache = this);
566
- let s = this.#C(e, t);
567
- return i && (s !== undefined && (i.value = s), S.hasSubscribers && S.publish(i)), s;
568
- }
569
- #C(e, t = {}) {
570
- let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t, l = this.#s.get(e);
571
- if (l === undefined) {
572
- o && (o.get = "miss");
573
- return;
574
- }
575
- let h = this.#t[l], r = this.#e(h);
576
- return o && this.#v(o, l), this.#p(l) ? r ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== undefined ? (o && (o.returnedStale = true), h.__staleWhileFetching) : undefined) : (n || this.#E(e, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : undefined) : (o && (o.get = r ? "fetching" : "hit"), this.#L(l), s && this.#R(l), r ? h.__staleWhileFetching : h);
577
- }
578
- #$(e, t) {
579
- this.#u[t] = e, this.#l[e] = t;
580
- }
581
- #L(e) {
582
- e !== this.#h && (e === this.#a ? this.#a = this.#l[e] : this.#$(this.#u[e], this.#l[e]), this.#$(this.#h, e), this.#h = e);
583
- }
584
- delete(e) {
585
- return this.#E(e, "delete");
586
- }
587
- #E(e, t) {
588
- S.hasSubscribers && S.publish({ op: "delete", delete: t, key: e, cache: this });
589
- let i = false;
590
- if (this.#n !== 0) {
591
- let s = this.#s.get(e);
592
- if (s !== undefined)
593
- if (this.#g?.[s] && (clearTimeout(this.#g[s]), this.#g[s] = undefined), i = true, this.#n === 1)
594
- this.#q(t);
595
- else {
596
- this.#x(s);
597
- let n = this.#t[s];
598
- if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#S?.(n, e, t), this.#f && this.#r?.push([n, e, t])), this.#s.delete(e), this.#i[s] = undefined, this.#t[s] = undefined, s === this.#h)
599
- this.#h = this.#u[s];
600
- else if (s === this.#a)
601
- this.#a = this.#l[s];
602
- else {
603
- let o = this.#u[s];
604
- this.#l[o] = this.#l[s];
605
- let l = this.#l[s];
606
- this.#u[l] = this.#u[s];
607
- }
608
- this.#n--, this.#y.push(s);
609
- }
610
- }
611
- if (this.#f && this.#r?.length) {
612
- let s = this.#r, n;
613
- for (;n = s?.shift(); )
614
- this.#w?.(...n);
615
- }
616
- return i;
617
- }
618
- clear() {
619
- return this.#q("delete");
620
- }
621
- #q(e) {
622
- for (let t of this.#z({ allowStale: true })) {
623
- let i = this.#t[t];
624
- if (this.#e(i))
625
- i.__abortController.abort(new Error("deleted"));
626
- else {
627
- let s = this.#i[t];
628
- this.#T && this.#S?.(i, s, e), this.#f && this.#r?.push([i, s, e]);
629
- }
630
- }
631
- if (this.#s.clear(), this.#t.fill(undefined), this.#i.fill(undefined), this.#d && this.#F) {
632
- this.#d.fill(0), this.#F.fill(0);
633
- for (let t of this.#g ?? [])
634
- t !== undefined && clearTimeout(t);
635
- this.#g?.fill(undefined);
636
- }
637
- if (this.#_ && this.#_.fill(0), this.#a = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
638
- let t = this.#r, i;
639
- for (;i = t?.shift(); )
640
- this.#w?.(...i);
641
- }
642
- }
643
- };
644
- });
645
-
646
- export { I, init_index_min };