@bkm016/basalt 0.1.25 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (994) hide show
  1. package/chunk-00jhevnt.js +3 -0
  2. package/chunk-04tx0etc.js +2 -0
  3. package/chunk-0r86p29p.js +7 -0
  4. package/chunk-10x1zefx.js +25 -0
  5. package/chunk-1amcz1cz.js +10 -0
  6. package/chunk-1pfdps04.js +2 -0
  7. package/chunk-206g40v9.js +59 -0
  8. package/chunk-2364s958.js +7 -0
  9. package/chunk-3fv2qcpg.js +12 -0
  10. package/chunk-3zz4a5tn.js +31 -0
  11. package/chunk-45wfmdts.js +44 -0
  12. package/chunk-4hkwjw05.js +2 -0
  13. package/chunk-4pq7ycp2.js +5 -0
  14. package/chunk-51f8zbj5.js +3 -0
  15. package/chunk-5e0qfdgx.js +5 -0
  16. package/chunk-7hpf9qq2.js +3 -0
  17. package/chunk-82dkdvs9.js +2 -0
  18. package/chunk-8913dkey.js +3 -0
  19. package/chunk-8g1sbmwf.js +3 -0
  20. package/chunk-8hfch7d0.js +2 -0
  21. package/chunk-90arpvgz.js +2 -0
  22. package/chunk-912knnfg.js +11 -0
  23. package/chunk-97bazdk3.js +20 -0
  24. package/chunk-9akexjfn.js +2 -0
  25. package/chunk-9dgmbwcc.js +2 -0
  26. package/chunk-acd2cwza.js +3 -0
  27. package/chunk-ach16jbw.js +2 -0
  28. package/chunk-ax823t5v.js +3 -0
  29. package/chunk-b03hg30w.js +2 -0
  30. package/chunk-bh29df86.js +5 -0
  31. package/chunk-bhpg72c4.js +2 -0
  32. package/chunk-bwww6j2q.js +2 -0
  33. package/chunk-c126k8wc.js +2 -0
  34. package/chunk-cb3jgak9.js +3 -0
  35. package/chunk-cjeyy6da.js +3 -0
  36. package/chunk-cs4gb2hb.js +2 -0
  37. package/chunk-en5t6hwd.js +3 -0
  38. package/chunk-f4n1csz0.js +3 -0
  39. package/chunk-fqfjjhkj.js +3 -0
  40. package/chunk-h4bvkm6p.js +3 -0
  41. package/chunk-j01t6mnq.js +3 -0
  42. package/chunk-j16smb6d.js +2 -0
  43. package/chunk-j7eqp97m.js +2 -0
  44. package/chunk-jdrqn8m1.js +2 -0
  45. package/chunk-jp1gqkbp.js +4 -0
  46. package/chunk-jrcvxscb.js +9 -0
  47. package/chunk-jxcghx26.js +50 -0
  48. package/chunk-k8zq95wr.js +2 -0
  49. package/chunk-ken7ras9.js +8 -0
  50. package/chunk-kqgpjmcf.js +2 -0
  51. package/chunk-krbdx24j.js +3 -0
  52. package/chunk-ky2ym708.js +8 -0
  53. package/chunk-kzfy666j.js +16 -0
  54. package/chunk-n0stnnxv.js +2 -0
  55. package/chunk-n9m2pagh.js +2 -0
  56. package/chunk-nedvy6yk.js +10 -0
  57. package/chunk-ng5g0fy3.js +3 -0
  58. package/chunk-nqeqasyt.js +7 -0
  59. package/chunk-nt30x5a7.js +3 -0
  60. package/chunk-pa7yh2q3.js +3 -0
  61. package/chunk-q1s5r204.js +3 -0
  62. package/chunk-qj0vfk01.js +2 -0
  63. package/chunk-qqfdg01g.js +3 -0
  64. package/chunk-rj6qknjx.js +12 -0
  65. package/chunk-rvrj0nrs.js +3 -0
  66. package/chunk-sbhj5h2q.js +2 -0
  67. package/chunk-t71zzafh.js +3 -0
  68. package/chunk-t7fwvzmh.js +3 -0
  69. package/chunk-tpv5hz99.js +5 -0
  70. package/chunk-tx2rrrtq.js +2 -0
  71. package/chunk-tyzzbhr5.js +3 -0
  72. package/chunk-tzbefwf0.js +286 -0
  73. package/chunk-v4p8807b.js +18 -0
  74. package/chunk-vnxjcym9.js +17 -0
  75. package/chunk-w35r8v6x.js +39 -0
  76. package/chunk-wbygknv2.js +3 -0
  77. package/chunk-wk63htqy.js +2 -0
  78. package/chunk-wwazj6mz.js +3 -0
  79. package/chunk-x3g1bzq6.js +51 -0
  80. package/chunk-xpc75mkw.js +25 -0
  81. package/chunk-ydhdewcv.js +4014 -0
  82. package/chunk-ypxn8bec.js +3 -0
  83. package/chunk-yztc2q9q.js +490 -0
  84. package/compiled.js +11 -11
  85. package/package.json +1 -1
  86. package/ui-test-worker.js +53 -53
  87. package/web/chunk-00a6amwf.js +1 -0
  88. package/web/chunk-00a6amwf.js.br +0 -0
  89. package/web/chunk-00a6amwf.js.gz +0 -0
  90. package/web/chunk-023b3kdx.js +214 -0
  91. package/web/chunk-023b3kdx.js.br +0 -0
  92. package/web/chunk-023b3kdx.js.gz +0 -0
  93. package/web/chunk-1bzdt1n8.js +1 -0
  94. package/web/chunk-1bzdt1n8.js.br +2 -0
  95. package/web/chunk-1bzdt1n8.js.gz +0 -0
  96. package/web/chunk-1fnxbfkf.js +139 -0
  97. package/web/chunk-1fnxbfkf.js.br +0 -0
  98. package/web/chunk-1fnxbfkf.js.gz +0 -0
  99. package/web/chunk-1hmw1eaw.js +1 -0
  100. package/web/chunk-1hmw1eaw.js.br +0 -0
  101. package/web/chunk-1hmw1eaw.js.gz +0 -0
  102. package/web/chunk-1qd75yjn.js +2 -0
  103. package/web/chunk-1qd75yjn.js.br +0 -0
  104. package/web/chunk-1qd75yjn.js.gz +0 -0
  105. package/web/chunk-20gcnbgn.js +2 -0
  106. package/web/chunk-20gcnbgn.js.br +0 -0
  107. package/web/chunk-20gcnbgn.js.gz +0 -0
  108. package/web/chunk-20v068s6.js +1 -0
  109. package/web/chunk-20v068s6.js.br +0 -0
  110. package/web/chunk-20v068s6.js.gz +0 -0
  111. package/web/chunk-22jfhjk3.js +2 -0
  112. package/web/chunk-22jfhjk3.js.br +0 -0
  113. package/web/chunk-22jfhjk3.js.gz +0 -0
  114. package/web/chunk-2nwvdqxm.js +1 -0
  115. package/web/chunk-2nwvdqxm.js.br +0 -0
  116. package/web/chunk-2nwvdqxm.js.gz +0 -0
  117. package/web/chunk-2wvgy7f4.js +1 -0
  118. package/web/chunk-2wvgy7f4.js.br +0 -0
  119. package/web/chunk-2wvgy7f4.js.gz +0 -0
  120. package/web/chunk-37hn49td.js +2 -0
  121. package/web/chunk-37hn49td.js.br +0 -0
  122. package/web/chunk-37hn49td.js.gz +0 -0
  123. package/web/chunk-3crfxxst.js +21 -0
  124. package/web/chunk-3crfxxst.js.br +0 -0
  125. package/web/chunk-3crfxxst.js.gz +0 -0
  126. package/web/chunk-3hg9a6xa.js +1 -0
  127. package/web/chunk-3hg9a6xa.js.br +0 -0
  128. package/web/chunk-3hg9a6xa.js.gz +0 -0
  129. package/web/chunk-3m2nnnk5.js +1 -0
  130. package/web/chunk-3m2nnnk5.js.br +0 -0
  131. package/web/chunk-3m2nnnk5.js.gz +0 -0
  132. package/web/chunk-3ry5cjnp.js +169 -0
  133. package/web/chunk-3ry5cjnp.js.br +0 -0
  134. package/web/chunk-3ry5cjnp.js.gz +0 -0
  135. package/web/chunk-407zrkgx.js +40 -0
  136. package/web/chunk-407zrkgx.js.br +0 -0
  137. package/web/chunk-407zrkgx.js.gz +0 -0
  138. package/web/chunk-414npx47.js +1 -0
  139. package/web/chunk-414npx47.js.br +0 -0
  140. package/web/chunk-414npx47.js.gz +0 -0
  141. package/web/chunk-43e1ste5.js +1 -0
  142. package/web/chunk-43e1ste5.js.br +0 -0
  143. package/web/chunk-43e1ste5.js.gz +0 -0
  144. package/web/chunk-45ex0e3e.js +2 -0
  145. package/web/chunk-45ex0e3e.js.br +0 -0
  146. package/web/chunk-45ex0e3e.js.gz +0 -0
  147. package/web/chunk-508cpafz.js +142 -0
  148. package/web/chunk-508cpafz.js.br +0 -0
  149. package/web/chunk-508cpafz.js.gz +0 -0
  150. package/web/chunk-538r4sey.js +1 -0
  151. package/web/chunk-538r4sey.js.br +0 -0
  152. package/web/chunk-538r4sey.js.gz +0 -0
  153. package/web/chunk-55zs0yq1.js +1 -0
  154. package/web/chunk-55zs0yq1.js.br +0 -0
  155. package/web/chunk-55zs0yq1.js.gz +0 -0
  156. package/web/chunk-58gh3tbh.js +34 -0
  157. package/web/chunk-58gh3tbh.js.br +0 -0
  158. package/web/chunk-58gh3tbh.js.gz +0 -0
  159. package/web/chunk-5h3r1hpg.js +89 -0
  160. package/web/chunk-5h3r1hpg.js.br +0 -0
  161. package/web/chunk-5h3r1hpg.js.gz +0 -0
  162. package/web/chunk-68q4nnmc.js +2 -0
  163. package/web/chunk-68q4nnmc.js.br +3 -0
  164. package/web/chunk-68q4nnmc.js.gz +0 -0
  165. package/web/chunk-6ktmzq32.js +16 -0
  166. package/web/chunk-6ktmzq32.js.br +0 -0
  167. package/web/chunk-6ktmzq32.js.gz +0 -0
  168. package/web/chunk-6ry6x1ez.js +1 -0
  169. package/web/chunk-6ry6x1ez.js.br +0 -0
  170. package/web/chunk-6ry6x1ez.js.gz +0 -0
  171. package/web/chunk-6wxxypbv.js +7 -0
  172. package/web/chunk-6wxxypbv.js.br +0 -0
  173. package/web/chunk-6wxxypbv.js.gz +0 -0
  174. package/web/chunk-6x9r1z9z.js +291 -0
  175. package/web/chunk-6x9r1z9z.js.br +0 -0
  176. package/web/chunk-6x9r1z9z.js.gz +0 -0
  177. package/web/chunk-719tz8xw.js +1 -0
  178. package/web/chunk-719tz8xw.js.br +0 -0
  179. package/web/chunk-719tz8xw.js.gz +0 -0
  180. package/web/chunk-7devrtv4.js +2 -0
  181. package/web/chunk-7devrtv4.js.br +3 -0
  182. package/web/chunk-7devrtv4.js.gz +0 -0
  183. package/web/chunk-7rs26q98.js +2 -0
  184. package/web/chunk-7rs26q98.js.br +0 -0
  185. package/web/chunk-7rs26q98.js.gz +0 -0
  186. package/web/chunk-82aqq58f.js +24 -0
  187. package/web/chunk-82aqq58f.js.br +0 -0
  188. package/web/chunk-82aqq58f.js.gz +0 -0
  189. package/web/chunk-96n00vam.js +1 -0
  190. package/web/chunk-96n00vam.js.br +0 -0
  191. package/web/chunk-96n00vam.js.gz +0 -0
  192. package/web/chunk-99c0h3v7.js +1 -0
  193. package/web/chunk-99c0h3v7.js.br +0 -0
  194. package/web/chunk-99c0h3v7.js.gz +0 -0
  195. package/web/chunk-a11ev6ff.js +1 -0
  196. package/web/chunk-a11ev6ff.js.br +0 -0
  197. package/web/chunk-a11ev6ff.js.gz +0 -0
  198. package/web/chunk-a1cpkzwh.js +2 -0
  199. package/web/chunk-a1cpkzwh.js.br +0 -0
  200. package/web/chunk-a1cpkzwh.js.gz +0 -0
  201. package/web/chunk-a31z4c14.js +4 -0
  202. package/web/chunk-a31z4c14.js.br +0 -0
  203. package/web/chunk-a31z4c14.js.gz +0 -0
  204. package/web/chunk-aan5qk6x.js +1 -0
  205. package/web/chunk-aan5qk6x.js.br +0 -0
  206. package/web/chunk-aan5qk6x.js.gz +0 -0
  207. package/web/chunk-b07y0tzq.js +1 -0
  208. package/web/chunk-b07y0tzq.js.br +0 -0
  209. package/web/chunk-b07y0tzq.js.gz +0 -0
  210. package/web/chunk-b4d1948q.js +62 -0
  211. package/web/chunk-b4d1948q.js.br +0 -0
  212. package/web/chunk-b4d1948q.js.gz +0 -0
  213. package/web/chunk-btk2h3vh.js +36 -0
  214. package/web/chunk-btk2h3vh.js.br +0 -0
  215. package/web/chunk-btk2h3vh.js.gz +0 -0
  216. package/web/chunk-bw9crrb4.js +1 -0
  217. package/web/chunk-bw9crrb4.js.br +0 -0
  218. package/web/chunk-bw9crrb4.js.gz +0 -0
  219. package/web/chunk-c1s7faqj.js +2 -0
  220. package/web/chunk-c1s7faqj.js.br +0 -0
  221. package/web/chunk-c1s7faqj.js.gz +0 -0
  222. package/web/chunk-c3d08dw1.js +1 -0
  223. package/web/chunk-c3d08dw1.js.br +0 -0
  224. package/web/chunk-c3d08dw1.js.gz +0 -0
  225. package/web/chunk-cgt871p9.js +1 -0
  226. package/web/chunk-cgt871p9.js.br +0 -0
  227. package/web/chunk-cgt871p9.js.gz +0 -0
  228. package/web/chunk-crfbqd4d.js +2 -0
  229. package/web/chunk-crfbqd4d.js.br +0 -0
  230. package/web/chunk-crfbqd4d.js.gz +0 -0
  231. package/web/chunk-ctr4kt7p.js +332 -0
  232. package/web/chunk-ctr4kt7p.js.br +0 -0
  233. package/web/chunk-ctr4kt7p.js.gz +0 -0
  234. package/web/chunk-cys4n4sv.js +1 -0
  235. package/web/chunk-cys4n4sv.js.br +0 -0
  236. package/web/chunk-cys4n4sv.js.gz +0 -0
  237. package/web/chunk-d5n2yz4e.js +2 -0
  238. package/web/chunk-d5n2yz4e.js.br +0 -0
  239. package/web/chunk-d5n2yz4e.js.gz +0 -0
  240. package/web/chunk-d6wcabaa.css +1 -0
  241. package/web/chunk-d6wcabaa.css.br +0 -0
  242. package/web/chunk-d6wcabaa.css.gz +0 -0
  243. package/web/chunk-d7nrrcwp.js +38 -0
  244. package/web/chunk-d7nrrcwp.js.br +0 -0
  245. package/web/chunk-d7nrrcwp.js.gz +0 -0
  246. package/web/chunk-df9ja645.js +1 -0
  247. package/web/chunk-df9ja645.js.br +0 -0
  248. package/web/chunk-df9ja645.js.gz +0 -0
  249. package/web/chunk-dhxc6xe9.js +1 -0
  250. package/web/chunk-dhxc6xe9.js.br +2 -0
  251. package/web/chunk-dhxc6xe9.js.gz +0 -0
  252. package/web/chunk-dy2egpw5.js +12 -0
  253. package/web/chunk-dy2egpw5.js.br +0 -0
  254. package/web/chunk-dy2egpw5.js.gz +0 -0
  255. package/web/chunk-e4cwyn1g.js +2 -0
  256. package/web/chunk-e4cwyn1g.js.br +0 -0
  257. package/web/chunk-e4cwyn1g.js.gz +0 -0
  258. package/web/chunk-efjc9mga.js +2 -0
  259. package/web/chunk-efjc9mga.js.br +0 -0
  260. package/web/chunk-efjc9mga.js.gz +0 -0
  261. package/web/chunk-eq59kad4.js +303 -0
  262. package/web/chunk-eq59kad4.js.br +0 -0
  263. package/web/chunk-eq59kad4.js.gz +0 -0
  264. package/web/chunk-f05s9gsw.js +7 -0
  265. package/web/chunk-f05s9gsw.js.br +0 -0
  266. package/web/chunk-f05s9gsw.js.gz +0 -0
  267. package/web/chunk-f2bb976c.js +1 -0
  268. package/web/chunk-f2bb976c.js.br +0 -0
  269. package/web/chunk-f2bb976c.js.gz +0 -0
  270. package/web/chunk-f4aabnnv.js +1 -0
  271. package/web/chunk-f4aabnnv.js.br +0 -0
  272. package/web/chunk-f4aabnnv.js.gz +0 -0
  273. package/web/chunk-f5wyg9zh.js +2 -0
  274. package/web/chunk-f5wyg9zh.js.br +0 -0
  275. package/web/chunk-f5wyg9zh.js.gz +0 -0
  276. package/web/chunk-fmbc7t17.js +7 -0
  277. package/web/chunk-fmbc7t17.js.br +0 -0
  278. package/web/chunk-fmbc7t17.js.gz +0 -0
  279. package/web/chunk-ftdzs90e.js +1 -0
  280. package/web/chunk-ftdzs90e.js.br +0 -0
  281. package/web/chunk-ftdzs90e.js.gz +0 -0
  282. package/web/chunk-g0s2xxfd.js +324 -0
  283. package/web/chunk-g0s2xxfd.js.br +0 -0
  284. package/web/chunk-g0s2xxfd.js.gz +0 -0
  285. package/web/chunk-g1k9nggh.js +39 -0
  286. package/web/chunk-g1k9nggh.js.br +0 -0
  287. package/web/chunk-g1k9nggh.js.gz +0 -0
  288. package/web/chunk-g26mzwzc.js +1 -0
  289. package/web/chunk-g26mzwzc.js.br +0 -0
  290. package/web/chunk-g26mzwzc.js.gz +0 -0
  291. package/web/chunk-g7b4p9k9.js +1 -0
  292. package/web/chunk-g7b4p9k9.js.br +0 -0
  293. package/web/chunk-g7b4p9k9.js.gz +0 -0
  294. package/web/chunk-ghr3jf15.js +140 -0
  295. package/web/chunk-ghr3jf15.js.br +0 -0
  296. package/web/chunk-ghr3jf15.js.gz +0 -0
  297. package/web/chunk-gv4zh4er.js +1 -0
  298. package/web/chunk-gv4zh4er.js.br +0 -0
  299. package/web/chunk-gv4zh4er.js.gz +0 -0
  300. package/web/chunk-gvndjaan.js +2 -0
  301. package/web/chunk-gvndjaan.js.br +0 -0
  302. package/web/chunk-gvndjaan.js.gz +0 -0
  303. package/web/chunk-gw0e69yj.js +1 -0
  304. package/web/chunk-gw0e69yj.js.br +0 -0
  305. package/web/chunk-gw0e69yj.js.gz +0 -0
  306. package/web/chunk-gxwsf4t1.js +2 -0
  307. package/web/chunk-gxwsf4t1.js.br +0 -0
  308. package/web/chunk-gxwsf4t1.js.gz +0 -0
  309. package/web/chunk-hh6vpvar.js +84 -0
  310. package/web/chunk-hh6vpvar.js.br +0 -0
  311. package/web/chunk-hh6vpvar.js.gz +0 -0
  312. package/web/chunk-hxqqy585.js +1 -0
  313. package/web/chunk-hxqqy585.js.br +0 -0
  314. package/web/chunk-hxqqy585.js.gz +0 -0
  315. package/web/chunk-hxsrph02.js +1139 -0
  316. package/web/chunk-hxsrph02.js.br +0 -0
  317. package/web/chunk-hxsrph02.js.gz +0 -0
  318. package/web/chunk-hxx6ad4x.js +1 -0
  319. package/web/chunk-hxx6ad4x.js.br +0 -0
  320. package/web/chunk-hxx6ad4x.js.gz +0 -0
  321. package/web/chunk-hzvff525.js +2 -0
  322. package/web/chunk-hzvff525.js.br +0 -0
  323. package/web/chunk-hzvff525.js.gz +0 -0
  324. package/web/chunk-j2gkg76r.js +2 -0
  325. package/web/chunk-j2gkg76r.js.br +0 -0
  326. package/web/chunk-j2gkg76r.js.gz +0 -0
  327. package/web/chunk-jcbheqv1.js +1 -0
  328. package/web/chunk-jcbheqv1.js.br +0 -0
  329. package/web/chunk-jcbheqv1.js.gz +0 -0
  330. package/web/chunk-jhx6v9es.js +1 -0
  331. package/web/chunk-jhx6v9es.js.br +0 -0
  332. package/web/chunk-jhx6v9es.js.gz +0 -0
  333. package/web/chunk-jnhem746.js +292 -0
  334. package/web/chunk-jnhem746.js.br +0 -0
  335. package/web/chunk-jnhem746.js.gz +0 -0
  336. package/web/chunk-jr796qsk.js +1 -0
  337. package/web/chunk-jr796qsk.js.br +0 -0
  338. package/web/chunk-jr796qsk.js.gz +0 -0
  339. package/web/chunk-jw92texh.js +1 -0
  340. package/web/chunk-jw92texh.js.br +0 -0
  341. package/web/chunk-jw92texh.js.gz +0 -0
  342. package/web/chunk-k89686qj.js +2 -0
  343. package/web/chunk-k89686qj.js.br +0 -0
  344. package/web/chunk-k89686qj.js.gz +0 -0
  345. package/web/chunk-mqdvg55y.js +2 -0
  346. package/web/chunk-mqdvg55y.js.br +0 -0
  347. package/web/chunk-mqdvg55y.js.gz +0 -0
  348. package/web/chunk-mvm0gvwj.js +24 -0
  349. package/web/chunk-mvm0gvwj.js.br +0 -0
  350. package/web/chunk-mvm0gvwj.js.gz +0 -0
  351. package/web/chunk-n033azqs.js +30 -0
  352. package/web/chunk-n033azqs.js.br +0 -0
  353. package/web/chunk-n033azqs.js.gz +0 -0
  354. package/web/chunk-n0fqhrqv.js +89 -0
  355. package/web/chunk-n0fqhrqv.js.br +0 -0
  356. package/web/chunk-n0fqhrqv.js.gz +0 -0
  357. package/web/chunk-n1p03ng0.js +1 -0
  358. package/web/chunk-n1p03ng0.js.br +0 -0
  359. package/web/chunk-n1p03ng0.js.gz +0 -0
  360. package/web/chunk-nb73fq72.js +1 -0
  361. package/web/chunk-nb73fq72.js.br +0 -0
  362. package/web/chunk-nb73fq72.js.gz +0 -0
  363. package/web/chunk-ngsv0xfb.js +1 -0
  364. package/web/chunk-ngsv0xfb.js.br +0 -0
  365. package/web/chunk-ngsv0xfb.js.gz +0 -0
  366. package/web/chunk-nxnkb0w4.js +55 -0
  367. package/web/chunk-nxnkb0w4.js.br +0 -0
  368. package/web/chunk-nxnkb0w4.js.gz +0 -0
  369. package/web/chunk-nymsmy8d.js +78 -0
  370. package/web/chunk-nymsmy8d.js.br +0 -0
  371. package/web/chunk-nymsmy8d.js.gz +0 -0
  372. package/web/chunk-nzqxb0ea.js +1 -0
  373. package/web/chunk-nzqxb0ea.js.br +0 -0
  374. package/web/chunk-nzqxb0ea.js.gz +0 -0
  375. package/web/chunk-p26b4zdm.js +1 -0
  376. package/web/chunk-p26b4zdm.js.br +0 -0
  377. package/web/chunk-p26b4zdm.js.gz +0 -0
  378. package/web/chunk-qa0wwff0.js +1 -0
  379. package/web/chunk-qa0wwff0.js.br +0 -0
  380. package/web/chunk-qa0wwff0.js.gz +0 -0
  381. package/web/chunk-qgv81n98.js +1 -0
  382. package/web/chunk-qgv81n98.js.br +0 -0
  383. package/web/chunk-qgv81n98.js.gz +0 -0
  384. package/web/chunk-qtwjt5mm.js +3 -0
  385. package/web/chunk-qtwjt5mm.js.br +0 -0
  386. package/web/chunk-qtwjt5mm.js.gz +0 -0
  387. package/web/chunk-r49dy5vx.js +1 -0
  388. package/web/chunk-r49dy5vx.js.br +0 -0
  389. package/web/chunk-r49dy5vx.js.gz +0 -0
  390. package/web/chunk-r97hd8wk.js +98 -0
  391. package/web/chunk-r97hd8wk.js.br +0 -0
  392. package/web/chunk-r97hd8wk.js.gz +0 -0
  393. package/web/chunk-rj1rp0tc.js +1 -0
  394. package/web/chunk-rj1rp0tc.js.br +0 -0
  395. package/web/chunk-rj1rp0tc.js.gz +0 -0
  396. package/web/chunk-s00gxcxn.js +2 -0
  397. package/web/chunk-s00gxcxn.js.br +0 -0
  398. package/web/chunk-s00gxcxn.js.gz +0 -0
  399. package/web/chunk-s6a13wxe.js +2 -0
  400. package/web/chunk-s6a13wxe.js.br +0 -0
  401. package/web/chunk-s6a13wxe.js.gz +0 -0
  402. package/web/chunk-sb61aqg8.js +4 -0
  403. package/web/chunk-sb61aqg8.js.br +0 -0
  404. package/web/chunk-sb61aqg8.js.gz +0 -0
  405. package/web/chunk-scwrkcdw.js +1 -0
  406. package/web/chunk-scwrkcdw.js.br +0 -0
  407. package/web/chunk-scwrkcdw.js.gz +0 -0
  408. package/web/chunk-shtvhd61.js +200 -0
  409. package/web/chunk-shtvhd61.js.br +0 -0
  410. package/web/chunk-shtvhd61.js.gz +0 -0
  411. package/web/chunk-szwh742y.js +2 -0
  412. package/web/chunk-szwh742y.js.br +0 -0
  413. package/web/chunk-szwh742y.js.gz +0 -0
  414. package/web/chunk-t5e9vh89.js +1 -0
  415. package/web/chunk-t5e9vh89.js.br +0 -0
  416. package/web/chunk-t5e9vh89.js.gz +0 -0
  417. package/web/chunk-tbgavq0t.js +2 -0
  418. package/web/chunk-tbgavq0t.js.br +0 -0
  419. package/web/chunk-tbgavq0t.js.gz +0 -0
  420. package/web/chunk-tefm9md2.js +2 -0
  421. package/web/chunk-tefm9md2.js.br +0 -0
  422. package/web/chunk-tefm9md2.js.gz +0 -0
  423. package/web/chunk-tntwwpyh.js +2 -0
  424. package/web/chunk-tntwwpyh.js.br +0 -0
  425. package/web/chunk-tntwwpyh.js.gz +0 -0
  426. package/web/chunk-tp3fpa0t.js +1 -0
  427. package/web/chunk-tp3fpa0t.js.br +0 -0
  428. package/web/chunk-tp3fpa0t.js.gz +0 -0
  429. package/web/chunk-tr7fg3tv.js +8 -0
  430. package/web/chunk-tr7fg3tv.js.br +0 -0
  431. package/web/chunk-tr7fg3tv.js.gz +0 -0
  432. package/web/chunk-v5xf47q0.js +1 -0
  433. package/web/chunk-v5xf47q0.js.br +0 -0
  434. package/web/chunk-v5xf47q0.js.gz +0 -0
  435. package/web/chunk-vayamfxv.js +1 -0
  436. package/web/chunk-vayamfxv.js.br +0 -0
  437. package/web/chunk-vayamfxv.js.gz +0 -0
  438. package/web/chunk-vndrjeyr.js +2 -0
  439. package/web/chunk-vndrjeyr.js.br +0 -0
  440. package/web/chunk-vndrjeyr.js.gz +0 -0
  441. package/web/chunk-vwms8c7b.js +1 -0
  442. package/web/chunk-vwms8c7b.js.br +0 -0
  443. package/web/chunk-vwms8c7b.js.gz +0 -0
  444. package/web/chunk-w2gy2tmp.js +99 -0
  445. package/web/chunk-w2gy2tmp.js.br +0 -0
  446. package/web/chunk-w2gy2tmp.js.gz +0 -0
  447. package/web/chunk-wdd9pasx.js +1 -0
  448. package/web/chunk-wdd9pasx.js.br +0 -0
  449. package/web/chunk-wdd9pasx.js.gz +0 -0
  450. package/web/chunk-whfh2wev.js +41 -0
  451. package/web/chunk-whfh2wev.js.br +0 -0
  452. package/web/chunk-whfh2wev.js.gz +0 -0
  453. package/web/chunk-wjecy48x.js +1 -0
  454. package/web/chunk-wjecy48x.js.br +0 -0
  455. package/web/chunk-wjecy48x.js.gz +0 -0
  456. package/web/chunk-wqmyjj6w.js +370 -0
  457. package/web/chunk-wqmyjj6w.js.br +0 -0
  458. package/web/chunk-wqmyjj6w.js.gz +0 -0
  459. package/web/chunk-wv83gygp.js +1 -0
  460. package/web/chunk-wv83gygp.js.br +0 -0
  461. package/web/chunk-wv83gygp.js.gz +0 -0
  462. package/web/chunk-x1gr0017.js +70 -0
  463. package/web/chunk-x1gr0017.js.br +0 -0
  464. package/web/chunk-x1gr0017.js.gz +0 -0
  465. package/web/chunk-xa9m0mh2.js +106 -0
  466. package/web/chunk-xa9m0mh2.js.br +0 -0
  467. package/web/chunk-xa9m0mh2.js.gz +0 -0
  468. package/web/chunk-xjbxndxz.js +2 -0
  469. package/web/chunk-xjbxndxz.js.br +0 -0
  470. package/web/chunk-xjbxndxz.js.gz +0 -0
  471. package/web/chunk-xsfmh8rr.js +217 -0
  472. package/web/chunk-xsfmh8rr.js.br +0 -0
  473. package/web/chunk-xsfmh8rr.js.gz +0 -0
  474. package/web/chunk-xvsb3w1f.js +1 -0
  475. package/web/chunk-xvsb3w1f.js.br +0 -0
  476. package/web/chunk-xvsb3w1f.js.gz +0 -0
  477. package/web/chunk-y2jkaf1e.js +2 -0
  478. package/web/chunk-y2jkaf1e.js.br +0 -0
  479. package/web/chunk-y2jkaf1e.js.gz +0 -0
  480. package/web/chunk-ynpx7j96.js +1 -0
  481. package/web/chunk-ynpx7j96.js.br +0 -0
  482. package/web/chunk-ynpx7j96.js.gz +0 -0
  483. package/web/chunk-z04ncfs3.js +2 -0
  484. package/web/chunk-z04ncfs3.js.br +0 -0
  485. package/web/chunk-z04ncfs3.js.gz +0 -0
  486. package/web/chunk-zapwrc5k.js +2 -0
  487. package/web/chunk-zapwrc5k.js.br +0 -0
  488. package/web/chunk-zapwrc5k.js.gz +0 -0
  489. package/web/chunk-zq1qbaxb.js +2 -0
  490. package/web/chunk-zq1qbaxb.js.br +0 -0
  491. package/web/chunk-zq1qbaxb.js.gz +0 -0
  492. package/web/chunk-zs7physk.js +120 -0
  493. package/web/chunk-zs7physk.js.br +0 -0
  494. package/web/chunk-zs7physk.js.gz +0 -0
  495. package/web/index.html +1 -1
  496. package/web/index.html.br +0 -0
  497. package/web/index.html.gz +0 -0
  498. package/worker.js +1 -1
  499. package/chunk-0ecs4nme.js +0 -18
  500. package/chunk-0mrd775t.js +0 -3
  501. package/chunk-0p12aad6.js +0 -3
  502. package/chunk-0vdz9j55.js +0 -7
  503. package/chunk-1v0dv855.js +0 -3
  504. package/chunk-2c6seev1.js +0 -3
  505. package/chunk-2jeg8h8d.js +0 -3
  506. package/chunk-2q3tewbg.js +0 -59
  507. package/chunk-3hqka8zs.js +0 -2
  508. package/chunk-3ktcgaec.js +0 -2
  509. package/chunk-3v0ezmaw.js +0 -39
  510. package/chunk-3zv7ryz0.js +0 -2
  511. package/chunk-4mwx4pet.js +0 -15
  512. package/chunk-5h96jz3p.js +0 -3
  513. package/chunk-5kd940f5.js +0 -3
  514. package/chunk-61e7nvw9.js +0 -2
  515. package/chunk-628vymvd.js +0 -3
  516. package/chunk-6h9dxrr4.js +0 -2
  517. package/chunk-6ka4m0ax.js +0 -2
  518. package/chunk-6q0ak8d1.js +0 -12
  519. package/chunk-768vwfc3.js +0 -3
  520. package/chunk-7k4xghss.js +0 -5
  521. package/chunk-8jv34hrx.js +0 -7
  522. package/chunk-8np9b2y8.js +0 -3
  523. package/chunk-8yv55y6g.js +0 -3
  524. package/chunk-93bcazsp.js +0 -2
  525. package/chunk-95rqa8r8.js +0 -2
  526. package/chunk-9fccgczj.js +0 -3
  527. package/chunk-akf8x16s.js +0 -5
  528. package/chunk-bkmd5d8p.js +0 -3
  529. package/chunk-df7ye0xb.js +0 -9
  530. package/chunk-drbd6485.js +0 -3
  531. package/chunk-dsd6pd2m.js +0 -2
  532. package/chunk-eejgn4ye.js +0 -2
  533. package/chunk-eek8fqvj.js +0 -2
  534. package/chunk-ewjrnvjb.js +0 -10
  535. package/chunk-f4tqhvff.js +0 -3
  536. package/chunk-ff293dj0.js +0 -4
  537. package/chunk-g23dnf4y.js +0 -4
  538. package/chunk-gha8wd63.js +0 -11
  539. package/chunk-gwcstcqs.js +0 -3566
  540. package/chunk-gwrpahes.js +0 -2
  541. package/chunk-hz92pdms.js +0 -2
  542. package/chunk-jepxf22f.js +0 -7
  543. package/chunk-keq5kv9b.js +0 -3
  544. package/chunk-khdch9sx.js +0 -25
  545. package/chunk-m1w7f6d3.js +0 -5
  546. package/chunk-m839588n.js +0 -2
  547. package/chunk-mah60ek9.js +0 -3
  548. package/chunk-mmm1jh57.js +0 -20
  549. package/chunk-mmt11y21.js +0 -2
  550. package/chunk-mny4xyb0.js +0 -3
  551. package/chunk-mq0p4ssz.js +0 -3
  552. package/chunk-mzta1jts.js +0 -10
  553. package/chunk-n0qwj5gm.js +0 -12
  554. package/chunk-n19ec95n.js +0 -3
  555. package/chunk-n5b822pn.js +0 -3
  556. package/chunk-nvxx397h.js +0 -2
  557. package/chunk-nwfhbcme.js +0 -4
  558. package/chunk-pjv9mppd.js +0 -473
  559. package/chunk-pr1hfw3a.js +0 -2
  560. package/chunk-q2re8mn9.js +0 -31
  561. package/chunk-qgg3wk8h.js +0 -2
  562. package/chunk-r9gkfk6f.js +0 -16
  563. package/chunk-rjfph4m5.js +0 -3
  564. package/chunk-rkn6bven.js +0 -390
  565. package/chunk-rmy489b1.js +0 -7
  566. package/chunk-sf2cp0m6.js +0 -8
  567. package/chunk-sfwy8rqg.js +0 -3
  568. package/chunk-sj2q2amm.js +0 -11
  569. package/chunk-sqfs6z7c.js +0 -3
  570. package/chunk-sy980cjq.js +0 -2
  571. package/chunk-t64hda7b.js +0 -2
  572. package/chunk-tbhqhejq.js +0 -2
  573. package/chunk-trxaygjr.js +0 -5
  574. package/chunk-v7ehjbxx.js +0 -2
  575. package/chunk-vjegsy9q.js +0 -2
  576. package/chunk-vt4xyc4q.js +0 -2
  577. package/chunk-w430z452.js +0 -25
  578. package/chunk-xycq2q8m.js +0 -2
  579. package/chunk-y6mng74k.js +0 -2
  580. package/chunk-y8aq7mb7.js +0 -3
  581. package/chunk-ynt6najh.js +0 -3
  582. package/chunk-z1y43t2s.js +0 -3
  583. package/chunk-z6v2pcc0.js +0 -3
  584. package/web/chunk-00wh99xz.js +0 -78
  585. package/web/chunk-00wh99xz.js.br +0 -0
  586. package/web/chunk-00wh99xz.js.gz +0 -0
  587. package/web/chunk-0a1t2j8h.js +0 -2
  588. package/web/chunk-0a1t2j8h.js.br +0 -0
  589. package/web/chunk-0a1t2j8h.js.gz +0 -0
  590. package/web/chunk-0g9ycv0h.js +0 -2
  591. package/web/chunk-0g9ycv0h.js.br +0 -0
  592. package/web/chunk-0g9ycv0h.js.gz +0 -0
  593. package/web/chunk-1ar2phwa.js +0 -1
  594. package/web/chunk-1ar2phwa.js.br +0 -0
  595. package/web/chunk-1ar2phwa.js.gz +0 -0
  596. package/web/chunk-1jfydncj.js +0 -24
  597. package/web/chunk-1jfydncj.js.br +0 -0
  598. package/web/chunk-1jfydncj.js.gz +0 -0
  599. package/web/chunk-1p1jtvrt.js +0 -2
  600. package/web/chunk-1p1jtvrt.js.br +0 -0
  601. package/web/chunk-1p1jtvrt.js.gz +0 -0
  602. package/web/chunk-1x38r11w.js +0 -1
  603. package/web/chunk-1x38r11w.js.br +0 -2
  604. package/web/chunk-1x38r11w.js.gz +0 -0
  605. package/web/chunk-25rf3svt.js +0 -2
  606. package/web/chunk-25rf3svt.js.br +0 -0
  607. package/web/chunk-25rf3svt.js.gz +0 -0
  608. package/web/chunk-2cfv55j2.js +0 -1
  609. package/web/chunk-2cfv55j2.js.br +0 -0
  610. package/web/chunk-2cfv55j2.js.gz +0 -0
  611. package/web/chunk-2q37qdq2.js +0 -2
  612. package/web/chunk-2q37qdq2.js.br +0 -0
  613. package/web/chunk-2q37qdq2.js.gz +0 -0
  614. package/web/chunk-2yhmab75.js +0 -7
  615. package/web/chunk-2yhmab75.js.br +0 -0
  616. package/web/chunk-2yhmab75.js.gz +0 -0
  617. package/web/chunk-33eqjx7d.js +0 -2
  618. package/web/chunk-33eqjx7d.js.br +0 -0
  619. package/web/chunk-33eqjx7d.js.gz +0 -0
  620. package/web/chunk-39rtp0f4.js +0 -1
  621. package/web/chunk-39rtp0f4.js.br +0 -0
  622. package/web/chunk-39rtp0f4.js.gz +0 -0
  623. package/web/chunk-3at57qna.js +0 -1
  624. package/web/chunk-3at57qna.js.br +0 -0
  625. package/web/chunk-3at57qna.js.gz +0 -0
  626. package/web/chunk-3z9kpkec.js +0 -1
  627. package/web/chunk-3z9kpkec.js.br +0 -0
  628. package/web/chunk-3z9kpkec.js.gz +0 -0
  629. package/web/chunk-43shp7zx.js +0 -2
  630. package/web/chunk-43shp7zx.js.br +0 -0
  631. package/web/chunk-43shp7zx.js.gz +0 -0
  632. package/web/chunk-4ncnt1c2.js +0 -2
  633. package/web/chunk-4ncnt1c2.js.br +0 -0
  634. package/web/chunk-4ncnt1c2.js.gz +0 -0
  635. package/web/chunk-4vc07x6t.js +0 -1
  636. package/web/chunk-4vc07x6t.js.br +0 -0
  637. package/web/chunk-4vc07x6t.js.gz +0 -0
  638. package/web/chunk-4ytc5sth.js +0 -1
  639. package/web/chunk-4ytc5sth.js.br +0 -0
  640. package/web/chunk-4ytc5sth.js.gz +0 -0
  641. package/web/chunk-54vdfmx0.js +0 -2
  642. package/web/chunk-54vdfmx0.js.br +0 -0
  643. package/web/chunk-54vdfmx0.js.gz +0 -0
  644. package/web/chunk-5a80hcah.js +0 -1
  645. package/web/chunk-5a80hcah.js.br +0 -0
  646. package/web/chunk-5a80hcah.js.gz +0 -0
  647. package/web/chunk-5c5h90k0.js +0 -1
  648. package/web/chunk-5c5h90k0.js.br +0 -0
  649. package/web/chunk-5c5h90k0.js.gz +0 -0
  650. package/web/chunk-5kcmtrrk.js +0 -2
  651. package/web/chunk-5kcmtrrk.js.br +0 -0
  652. package/web/chunk-5kcmtrrk.js.gz +0 -0
  653. package/web/chunk-5zpn3n5a.js +0 -1
  654. package/web/chunk-5zpn3n5a.js.br +0 -0
  655. package/web/chunk-5zpn3n5a.js.gz +0 -0
  656. package/web/chunk-64k06g43.js +0 -1
  657. package/web/chunk-64k06g43.js.br +0 -0
  658. package/web/chunk-64k06g43.js.gz +0 -0
  659. package/web/chunk-6pbrtp4e.js +0 -30
  660. package/web/chunk-6pbrtp4e.js.br +0 -0
  661. package/web/chunk-6pbrtp4e.js.gz +0 -0
  662. package/web/chunk-6sehssym.js +0 -1
  663. package/web/chunk-6sehssym.js.br +0 -2
  664. package/web/chunk-6sehssym.js.gz +0 -0
  665. package/web/chunk-7hxj251q.js +0 -1
  666. package/web/chunk-7hxj251q.js.br +0 -0
  667. package/web/chunk-7hxj251q.js.gz +0 -0
  668. package/web/chunk-7qcmg5ns.js +0 -2
  669. package/web/chunk-7qcmg5ns.js.br +0 -0
  670. package/web/chunk-7qcmg5ns.js.gz +0 -0
  671. package/web/chunk-7ycp549b.js +0 -2
  672. package/web/chunk-7ycp549b.js.br +0 -0
  673. package/web/chunk-7ycp549b.js.gz +0 -0
  674. package/web/chunk-811qc5bs.js +0 -1
  675. package/web/chunk-811qc5bs.js.br +0 -0
  676. package/web/chunk-811qc5bs.js.gz +0 -0
  677. package/web/chunk-82gjgy45.js +0 -1
  678. package/web/chunk-82gjgy45.js.br +0 -0
  679. package/web/chunk-82gjgy45.js.gz +0 -0
  680. package/web/chunk-82j6713x.js +0 -214
  681. package/web/chunk-82j6713x.js.br +0 -0
  682. package/web/chunk-82j6713x.js.gz +0 -0
  683. package/web/chunk-9kx2s040.js +0 -1
  684. package/web/chunk-9kx2s040.js.br +0 -0
  685. package/web/chunk-9kx2s040.js.gz +0 -0
  686. package/web/chunk-9v1f6yc8.js +0 -1
  687. package/web/chunk-9v1f6yc8.js.br +0 -0
  688. package/web/chunk-9v1f6yc8.js.gz +0 -0
  689. package/web/chunk-9vexd52p.js +0 -324
  690. package/web/chunk-9vexd52p.js.br +0 -0
  691. package/web/chunk-9vexd52p.js.gz +0 -0
  692. package/web/chunk-ajj3nc80.js +0 -2
  693. package/web/chunk-ajj3nc80.js.br +0 -0
  694. package/web/chunk-ajj3nc80.js.gz +0 -0
  695. package/web/chunk-amrkb4dd.js +0 -1
  696. package/web/chunk-amrkb4dd.js.br +0 -0
  697. package/web/chunk-amrkb4dd.js.gz +0 -0
  698. package/web/chunk-amrt87c9.js +0 -1
  699. package/web/chunk-amrt87c9.js.br +0 -0
  700. package/web/chunk-amrt87c9.js.gz +0 -0
  701. package/web/chunk-b7d5k9sp.js +0 -370
  702. package/web/chunk-b7d5k9sp.js.br +0 -0
  703. package/web/chunk-b7d5k9sp.js.gz +0 -0
  704. package/web/chunk-bavn0z5d.js +0 -1
  705. package/web/chunk-bavn0z5d.js.br +0 -0
  706. package/web/chunk-bavn0z5d.js.gz +0 -0
  707. package/web/chunk-bjw74xvy.js +0 -4
  708. package/web/chunk-bjw74xvy.js.br +0 -0
  709. package/web/chunk-bjw74xvy.js.gz +0 -0
  710. package/web/chunk-bn68ks4x.js +0 -1
  711. package/web/chunk-bn68ks4x.js.br +0 -0
  712. package/web/chunk-bn68ks4x.js.gz +0 -0
  713. package/web/chunk-c59d2j14.js +0 -8
  714. package/web/chunk-c59d2j14.js.br +0 -0
  715. package/web/chunk-c59d2j14.js.gz +0 -0
  716. package/web/chunk-cfz9ftze.js +0 -70
  717. package/web/chunk-cfz9ftze.js.br +0 -0
  718. package/web/chunk-cfz9ftze.js.gz +0 -0
  719. package/web/chunk-chq476ch.js +0 -98
  720. package/web/chunk-chq476ch.js.br +0 -0
  721. package/web/chunk-chq476ch.js.gz +0 -0
  722. package/web/chunk-cqr2kq2c.js +0 -1
  723. package/web/chunk-cqr2kq2c.js.br +0 -0
  724. package/web/chunk-cqr2kq2c.js.gz +0 -0
  725. package/web/chunk-cxhcrhqc.js +0 -1
  726. package/web/chunk-cxhcrhqc.js.br +0 -0
  727. package/web/chunk-cxhcrhqc.js.gz +0 -0
  728. package/web/chunk-d0ey112q.js +0 -140
  729. package/web/chunk-d0ey112q.js.br +0 -0
  730. package/web/chunk-d0ey112q.js.gz +0 -0
  731. package/web/chunk-d71z7s5r.js +0 -16
  732. package/web/chunk-d71z7s5r.js.br +0 -0
  733. package/web/chunk-d71z7s5r.js.gz +0 -0
  734. package/web/chunk-dembnhph.js +0 -2
  735. package/web/chunk-dembnhph.js.br +0 -0
  736. package/web/chunk-dembnhph.js.gz +0 -0
  737. package/web/chunk-dfq4w8mf.js +0 -1
  738. package/web/chunk-dfq4w8mf.js.br +0 -0
  739. package/web/chunk-dfq4w8mf.js.gz +0 -0
  740. package/web/chunk-drr7mqg2.js +0 -1
  741. package/web/chunk-drr7mqg2.js.br +0 -0
  742. package/web/chunk-drr7mqg2.js.gz +0 -0
  743. package/web/chunk-dwdxczxc.js +0 -99
  744. package/web/chunk-dwdxczxc.js.br +0 -0
  745. package/web/chunk-dwdxczxc.js.gz +0 -0
  746. package/web/chunk-e3b2krd7.js +0 -1
  747. package/web/chunk-e3b2krd7.js.br +0 -0
  748. package/web/chunk-e3b2krd7.js.gz +0 -0
  749. package/web/chunk-e4wbkc1x.js +0 -55
  750. package/web/chunk-e4wbkc1x.js.br +0 -0
  751. package/web/chunk-e4wbkc1x.js.gz +0 -0
  752. package/web/chunk-ee67ps6t.js +0 -1
  753. package/web/chunk-ee67ps6t.js.br +0 -0
  754. package/web/chunk-ee67ps6t.js.gz +0 -0
  755. package/web/chunk-ef0wf92p.js +0 -2
  756. package/web/chunk-ef0wf92p.js.br +0 -0
  757. package/web/chunk-ef0wf92p.js.gz +0 -0
  758. package/web/chunk-ekwmp0s0.js +0 -1
  759. package/web/chunk-ekwmp0s0.js.br +0 -0
  760. package/web/chunk-ekwmp0s0.js.gz +0 -0
  761. package/web/chunk-f2qrf0he.js +0 -7
  762. package/web/chunk-f2qrf0he.js.br +0 -0
  763. package/web/chunk-f2qrf0he.js.gz +0 -0
  764. package/web/chunk-f88vhwan.js +0 -34
  765. package/web/chunk-f88vhwan.js.br +0 -0
  766. package/web/chunk-f88vhwan.js.gz +0 -0
  767. package/web/chunk-fpp6jtb4.js +0 -1
  768. package/web/chunk-fpp6jtb4.js.br +0 -0
  769. package/web/chunk-fpp6jtb4.js.gz +0 -0
  770. package/web/chunk-ft62hfnt.js +0 -1
  771. package/web/chunk-ft62hfnt.js.br +0 -0
  772. package/web/chunk-ft62hfnt.js.gz +0 -0
  773. package/web/chunk-g3fahpjw.js +0 -2
  774. package/web/chunk-g3fahpjw.js.br +0 -0
  775. package/web/chunk-g3fahpjw.js.gz +0 -0
  776. package/web/chunk-g5b4wjwp.js +0 -1135
  777. package/web/chunk-g5b4wjwp.js.br +0 -0
  778. package/web/chunk-g5b4wjwp.js.gz +0 -0
  779. package/web/chunk-ga3tn73a.js +0 -1
  780. package/web/chunk-ga3tn73a.js.br +0 -0
  781. package/web/chunk-ga3tn73a.js.gz +0 -0
  782. package/web/chunk-gf4vtpw2.js +0 -1
  783. package/web/chunk-gf4vtpw2.js.br +0 -0
  784. package/web/chunk-gf4vtpw2.js.gz +0 -0
  785. package/web/chunk-ghxfjwhq.js +0 -1
  786. package/web/chunk-ghxfjwhq.js.br +0 -0
  787. package/web/chunk-ghxfjwhq.js.gz +0 -0
  788. package/web/chunk-gxqs7zmy.js +0 -1
  789. package/web/chunk-gxqs7zmy.js.br +0 -0
  790. package/web/chunk-gxqs7zmy.js.gz +0 -0
  791. package/web/chunk-htn0dt64.js +0 -2
  792. package/web/chunk-htn0dt64.js.br +0 -0
  793. package/web/chunk-htn0dt64.js.gz +0 -0
  794. package/web/chunk-jpdp0xkd.js +0 -1
  795. package/web/chunk-jpdp0xkd.js.br +0 -0
  796. package/web/chunk-jpdp0xkd.js.gz +0 -0
  797. package/web/chunk-jtzbk251.js +0 -291
  798. package/web/chunk-jtzbk251.js.br +0 -0
  799. package/web/chunk-jtzbk251.js.gz +0 -0
  800. package/web/chunk-k8yyb4wc.js +0 -2
  801. package/web/chunk-k8yyb4wc.js.br +0 -0
  802. package/web/chunk-k8yyb4wc.js.gz +0 -0
  803. package/web/chunk-kc6k0ect.js +0 -1
  804. package/web/chunk-kc6k0ect.js.br +0 -0
  805. package/web/chunk-kc6k0ect.js.gz +0 -0
  806. package/web/chunk-kk7k8xc8.js +0 -21
  807. package/web/chunk-kk7k8xc8.js.br +0 -0
  808. package/web/chunk-kk7k8xc8.js.gz +0 -0
  809. package/web/chunk-kmpyntam.js +0 -169
  810. package/web/chunk-kmpyntam.js.br +0 -0
  811. package/web/chunk-kmpyntam.js.gz +0 -0
  812. package/web/chunk-mejpj22t.js +0 -89
  813. package/web/chunk-mejpj22t.js.br +0 -0
  814. package/web/chunk-mejpj22t.js.gz +0 -0
  815. package/web/chunk-mm10pm0x.js +0 -106
  816. package/web/chunk-mm10pm0x.js.br +0 -0
  817. package/web/chunk-mm10pm0x.js.gz +0 -0
  818. package/web/chunk-mpve4748.js +0 -1
  819. package/web/chunk-mpve4748.js.br +0 -0
  820. package/web/chunk-mpve4748.js.gz +0 -0
  821. package/web/chunk-ms022qq9.js +0 -1
  822. package/web/chunk-ms022qq9.js.br +0 -2
  823. package/web/chunk-ms022qq9.js.gz +0 -0
  824. package/web/chunk-msn8bpe6.js +0 -1
  825. package/web/chunk-msn8bpe6.js.br +0 -0
  826. package/web/chunk-msn8bpe6.js.gz +0 -0
  827. package/web/chunk-mxf122px.js +0 -1
  828. package/web/chunk-mxf122px.js.br +0 -0
  829. package/web/chunk-mxf122px.js.gz +0 -0
  830. package/web/chunk-myhtb5ps.js +0 -2
  831. package/web/chunk-myhtb5ps.js.br +0 -0
  832. package/web/chunk-myhtb5ps.js.gz +0 -0
  833. package/web/chunk-mzv41kv9.js +0 -1
  834. package/web/chunk-mzv41kv9.js.br +0 -2
  835. package/web/chunk-mzv41kv9.js.gz +0 -0
  836. package/web/chunk-mzyg8zga.js +0 -332
  837. package/web/chunk-mzyg8zga.js.br +0 -0
  838. package/web/chunk-mzyg8zga.js.gz +0 -0
  839. package/web/chunk-n8j9jdsh.js +0 -2
  840. package/web/chunk-n8j9jdsh.js.br +0 -0
  841. package/web/chunk-n8j9jdsh.js.gz +0 -0
  842. package/web/chunk-n8ts6ra2.js +0 -36
  843. package/web/chunk-n8ts6ra2.js.br +0 -0
  844. package/web/chunk-n8ts6ra2.js.gz +0 -0
  845. package/web/chunk-nefchfa1.js +0 -1
  846. package/web/chunk-nefchfa1.js.br +0 -0
  847. package/web/chunk-nefchfa1.js.gz +0 -0
  848. package/web/chunk-ng0bsm6n.js +0 -1
  849. package/web/chunk-ng0bsm6n.js.br +0 -0
  850. package/web/chunk-ng0bsm6n.js.gz +0 -0
  851. package/web/chunk-nz1mm18x.js +0 -1
  852. package/web/chunk-nz1mm18x.js.br +0 -0
  853. package/web/chunk-nz1mm18x.js.gz +0 -0
  854. package/web/chunk-pdxqp4rh.js +0 -2
  855. package/web/chunk-pdxqp4rh.js.br +0 -0
  856. package/web/chunk-pdxqp4rh.js.gz +0 -0
  857. package/web/chunk-pe2zvyjt.js +0 -2
  858. package/web/chunk-pe2zvyjt.js.br +0 -0
  859. package/web/chunk-pe2zvyjt.js.gz +0 -0
  860. package/web/chunk-q0kx0wyj.js +0 -2
  861. package/web/chunk-q0kx0wyj.js.br +0 -0
  862. package/web/chunk-q0kx0wyj.js.gz +0 -0
  863. package/web/chunk-q6aqg79d.js +0 -2
  864. package/web/chunk-q6aqg79d.js.br +0 -0
  865. package/web/chunk-q6aqg79d.js.gz +0 -0
  866. package/web/chunk-q8ve5wqt.js +0 -292
  867. package/web/chunk-q8ve5wqt.js.br +0 -0
  868. package/web/chunk-q8ve5wqt.js.gz +0 -0
  869. package/web/chunk-qh93t9tv.js +0 -1
  870. package/web/chunk-qh93t9tv.js.br +0 -0
  871. package/web/chunk-qh93t9tv.js.gz +0 -0
  872. package/web/chunk-qjswcwvm.js +0 -1
  873. package/web/chunk-qjswcwvm.js.br +0 -0
  874. package/web/chunk-qjswcwvm.js.gz +0 -0
  875. package/web/chunk-qqewmk3y.js +0 -62
  876. package/web/chunk-qqewmk3y.js.br +0 -0
  877. package/web/chunk-qqewmk3y.js.gz +0 -0
  878. package/web/chunk-qzb06me8.js +0 -303
  879. package/web/chunk-qzb06me8.js.br +0 -0
  880. package/web/chunk-qzb06me8.js.gz +0 -0
  881. package/web/chunk-r2zernvz.js +0 -7
  882. package/web/chunk-r2zernvz.js.br +0 -0
  883. package/web/chunk-r2zernvz.js.gz +0 -0
  884. package/web/chunk-r8ykja8v.js +0 -139
  885. package/web/chunk-r8ykja8v.js.br +0 -0
  886. package/web/chunk-r8ykja8v.js.gz +0 -0
  887. package/web/chunk-r9b7eh2j.js +0 -1
  888. package/web/chunk-r9b7eh2j.js.br +0 -0
  889. package/web/chunk-r9b7eh2j.js.gz +0 -0
  890. package/web/chunk-rjvdk0s6.js +0 -1
  891. package/web/chunk-rjvdk0s6.js.br +0 -0
  892. package/web/chunk-rjvdk0s6.js.gz +0 -0
  893. package/web/chunk-ry1wp3v8.js +0 -2
  894. package/web/chunk-ry1wp3v8.js.br +0 -0
  895. package/web/chunk-ry1wp3v8.js.gz +0 -0
  896. package/web/chunk-s2bfc2vk.js +0 -1
  897. package/web/chunk-s2bfc2vk.js.br +0 -0
  898. package/web/chunk-s2bfc2vk.js.gz +0 -0
  899. package/web/chunk-s4c6nzj9.js +0 -120
  900. package/web/chunk-s4c6nzj9.js.br +0 -0
  901. package/web/chunk-s4c6nzj9.js.gz +0 -0
  902. package/web/chunk-ss23nnmc.js +0 -217
  903. package/web/chunk-ss23nnmc.js.br +0 -0
  904. package/web/chunk-ss23nnmc.js.gz +0 -0
  905. package/web/chunk-sxmv80th.js +0 -2
  906. package/web/chunk-sxmv80th.js.br +0 -0
  907. package/web/chunk-sxmv80th.js.gz +0 -0
  908. package/web/chunk-sy2cdka3.js +0 -24
  909. package/web/chunk-sy2cdka3.js.br +0 -0
  910. package/web/chunk-sy2cdka3.js.gz +0 -0
  911. package/web/chunk-sysebfkg.js +0 -41
  912. package/web/chunk-sysebfkg.js.br +0 -0
  913. package/web/chunk-sysebfkg.js.gz +0 -0
  914. package/web/chunk-t3620hrb.js +0 -39
  915. package/web/chunk-t3620hrb.js.br +0 -0
  916. package/web/chunk-t3620hrb.js.gz +0 -0
  917. package/web/chunk-t5srz1hs.js +0 -3
  918. package/web/chunk-t5srz1hs.js.br +0 -0
  919. package/web/chunk-t5srz1hs.js.gz +0 -0
  920. package/web/chunk-ta913rgd.js +0 -2
  921. package/web/chunk-ta913rgd.js.br +0 -0
  922. package/web/chunk-ta913rgd.js.gz +0 -0
  923. package/web/chunk-v25k7n3r.js +0 -12
  924. package/web/chunk-v25k7n3r.js.br +0 -0
  925. package/web/chunk-v25k7n3r.js.gz +0 -0
  926. package/web/chunk-v36p2ccs.js +0 -2
  927. package/web/chunk-v36p2ccs.js.br +0 -0
  928. package/web/chunk-v36p2ccs.js.gz +0 -0
  929. package/web/chunk-vf0p4ayw.js +0 -1
  930. package/web/chunk-vf0p4ayw.js.br +0 -0
  931. package/web/chunk-vf0p4ayw.js.gz +0 -0
  932. package/web/chunk-vmpry714.js +0 -1
  933. package/web/chunk-vmpry714.js.br +0 -0
  934. package/web/chunk-vmpry714.js.gz +0 -0
  935. package/web/chunk-vr6n4pvt.js +0 -1
  936. package/web/chunk-vr6n4pvt.js.br +0 -0
  937. package/web/chunk-vr6n4pvt.js.gz +0 -0
  938. package/web/chunk-vrtdjg91.js +0 -1
  939. package/web/chunk-vrtdjg91.js.br +0 -0
  940. package/web/chunk-vrtdjg91.js.gz +0 -0
  941. package/web/chunk-vx6qbmd7.js +0 -2
  942. package/web/chunk-vx6qbmd7.js.br +0 -0
  943. package/web/chunk-vx6qbmd7.js.gz +0 -0
  944. package/web/chunk-vx9g94x2.js +0 -200
  945. package/web/chunk-vx9g94x2.js.br +0 -0
  946. package/web/chunk-vx9g94x2.js.gz +0 -0
  947. package/web/chunk-w5v80bmk.js +0 -89
  948. package/web/chunk-w5v80bmk.js.br +0 -0
  949. package/web/chunk-w5v80bmk.js.gz +0 -0
  950. package/web/chunk-wj0ck0pa.js +0 -40
  951. package/web/chunk-wj0ck0pa.js.br +0 -0
  952. package/web/chunk-wj0ck0pa.js.gz +0 -0
  953. package/web/chunk-wjzdpyhs.css +0 -1
  954. package/web/chunk-wjzdpyhs.css.br +0 -0
  955. package/web/chunk-wjzdpyhs.css.gz +0 -0
  956. package/web/chunk-wmt8d7zv.js +0 -38
  957. package/web/chunk-wmt8d7zv.js.br +0 -0
  958. package/web/chunk-wmt8d7zv.js.gz +0 -0
  959. package/web/chunk-wqf0qjbv.js +0 -4
  960. package/web/chunk-wqf0qjbv.js.br +0 -0
  961. package/web/chunk-wqf0qjbv.js.gz +0 -0
  962. package/web/chunk-ww5c1dmz.js +0 -1
  963. package/web/chunk-ww5c1dmz.js.br +0 -0
  964. package/web/chunk-ww5c1dmz.js.gz +0 -0
  965. package/web/chunk-xsyrxa45.js +0 -2
  966. package/web/chunk-xsyrxa45.js.br +0 -0
  967. package/web/chunk-xsyrxa45.js.gz +0 -0
  968. package/web/chunk-y5f7gy03.js +0 -142
  969. package/web/chunk-y5f7gy03.js.br +0 -0
  970. package/web/chunk-y5f7gy03.js.gz +0 -0
  971. package/web/chunk-yg78fas7.js +0 -2
  972. package/web/chunk-yg78fas7.js.br +0 -0
  973. package/web/chunk-yg78fas7.js.gz +0 -0
  974. package/web/chunk-yvkbc3s5.js +0 -1
  975. package/web/chunk-yvkbc3s5.js.br +0 -0
  976. package/web/chunk-yvkbc3s5.js.gz +0 -0
  977. package/web/chunk-yygayy5a.js +0 -1
  978. package/web/chunk-yygayy5a.js.br +0 -0
  979. package/web/chunk-yygayy5a.js.gz +0 -0
  980. package/web/chunk-z9nj64n7.js +0 -2
  981. package/web/chunk-z9nj64n7.js.br +0 -0
  982. package/web/chunk-z9nj64n7.js.gz +0 -0
  983. package/web/chunk-za5j3w7x.js +0 -2
  984. package/web/chunk-za5j3w7x.js.br +0 -0
  985. package/web/chunk-za5j3w7x.js.gz +0 -0
  986. package/web/chunk-zc0e01j4.js +0 -1
  987. package/web/chunk-zc0e01j4.js.br +0 -0
  988. package/web/chunk-zc0e01j4.js.gz +0 -0
  989. package/web/chunk-zj9s9w76.js +0 -1
  990. package/web/chunk-zj9s9w76.js.br +0 -0
  991. package/web/chunk-zj9s9w76.js.gz +0 -0
  992. package/web/chunk-znwpavn5.js +0 -84
  993. package/web/chunk-znwpavn5.js.br +0 -0
  994. package/web/chunk-znwpavn5.js.gz +0 -0
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env bun
2
+ // @bun
3
+ import{at}from"./chunk-45wfmdts.js";import{ut,He,ws,dn,xs,yi,vs,_s,Es,As,Ts,Ps,ks}from"./chunk-x3g1bzq6.js";import{qe}from"./chunk-cb3jgak9.js";import{mkdirSync as K}from"fs";import{dirname as z,join as Z}from"path";import{parseArgs as F}from"util";import{readFile as N}from"fs/promises";import{join as H}from"path";async function P(e,t){try{return await B(e,t),console.log(`Plugin ${t} reloaded`),0}catch(r){let a=(r instanceof Error?r.message:String(r)).replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]+/gu," ");return console.error(`\u63D2\u4EF6\u91CD\u8F7D\u5931\u8D25\uFF1A${a}`),1}}async function B(e,t){if(!/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$/.test(t))throw Error("Invalid plugin id");let r=JSON.parse(await N(H(e,"server.json"),"utf8"));if(!r||typeof r!=="object"||!("url"in r)||typeof r.url!=="string")throw Error("Invalid server record; restart basalt");let a=new URL(r.url);if(a.username||a.password||a.protocol!=="https:"&&!(a.protocol==="http:"&&["localhost","127.0.0.1","[::1]"].includes(a.hostname)))throw Error("Plugin reload requires HTTPS or a local HTTP server");a.pathname=`/api/plugins/${encodeURIComponent(t)}/reload`,a.search="",a.hash="";let A=process.env.BASALT_TOKEN,p=await fetch(a,{method:"POST",redirect:"error",signal:AbortSignal.timeout(30000),headers:A?{Authorization:`Bearer ${A}`}:{}});if(!p.ok){let C=await p.text(),u="";try{let d=JSON.parse(C);if(d&&typeof d==="object"&&"error"in d){let l=d.error;if(typeof l==="string")u=l;else if(l&&typeof l==="object"&&"message"in l&&typeof l.message==="string")u=l.message}}catch{}let L=p.status===401?"\uFF1B\u8BF7\u8BBE\u7F6E BASALT_TOKEN \u4E3A\u5DF2\u914D\u5BF9\u8BBE\u5907\u4EE4\u724C\u540E\u91CD\u8BD5":"";throw Error(`HTTP ${p.status}${u?`\uFF1A${u}`:""}${L}`)}}import{appendFileSync as O,existsSync as y,mkdirSync as D,readFileSync as I}from"fs";import{homedir as T}from"os";import{basename as R,delimiter as U,dirname as S,join as c}from"path";var j=`
4
+ $dir = $env:BASALT_SETUP_DIR.TrimEnd('\\')
5
+ $current = [Environment]::GetEnvironmentVariable("Path", "User")
6
+ $parts = if ($current) { $current -split ';' } else { @() }
7
+ if ($parts | Where-Object { $_.TrimEnd('\\') -ieq $dir }) { Write-Output "exists"; exit 0 }
8
+ [Environment]::SetEnvironmentVariable("Path", (@($current, $dir) | Where-Object { $_ }) -join ';', "User")
9
+ Write-Output "added"
10
+ `;function M(e,t=process.env.SHELL,r=process.platform){let a=T();switch(R(t??"sh")){case"zsh":return{file:c(process.env.ZDOTDIR??a,".zshrc"),line:`export PATH="${e}:$PATH"`};case"bash":return{file:c(a,r==="darwin"?".bash_profile":".bashrc"),line:`export PATH="${e}:$PATH"`};case"fish":return{file:c(a,".config","fish","conf.d","basalt.fish"),line:`fish_add_path "${e}"`};default:return{file:c(a,".profile"),line:`export PATH="${e}:$PATH"`}}}function W(e){if(process.platform==="win32"){let a=Bun.spawnSync(["powershell","-NoProfile","-NonInteractive","-Command",j],{env:{...process.env,BASALT_SETUP_DIR:e},stderr:"pipe"});if(a.exitCode!==0)throw Error(`\u4FEE\u6539\u7528\u6237 PATH \u5931\u8D25\uFF1A${a.stderr.toString().trim()}`);return{status:a.stdout.toString().trim()==="added"?"added":"exists",target:"\u7528\u6237 PATH \u73AF\u5883\u53D8\u91CF"}}if(process.env.PATH?.split(U).includes(e))return{status:"exists",target:"\u5F53\u524D PATH"};let{file:t,line:r}=M(e);if(y(t)&&I(t,"utf8").includes(r))return{status:"exists",target:t};return D(S(t),{recursive:!0}),O(t,`
11
+ # Basalt
12
+ ${r}
13
+ `),{status:"added",target:t}}function x(e){let t;if(e.npmPackage){if(t=process.env.BUN_INSTALL_BIN??c(process.env.BUN_INSTALL??c(T(),".bun"),"bin"),!["basalt","basalt.exe","basalt.cmd"].some((a)=>y(c(t,a))))return console.error(`\u5728 ${t} \u91CC\u6CA1\u6709\u627E\u5230 basalt \u547D\u4EE4\u3002\u901A\u8FC7 npm \u5B89\u88C5\u65F6 npm \u7684\u5168\u5C40\u76EE\u5F55\u901A\u5E38\u5DF2\u5728 PATH \u4E2D\uFF0C\u65E0\u9700 setup\u3002`),1}else if(e.compiled)t=S(e.executable);else return console.error("\u4ECE\u6E90\u7801\u8FD0\u884C\u65F6\u65E0\u9700 setup"),1;try{let r=W(t);if(r.status==="exists")console.log(`${t} \u5DF2\u5728 ${r.target} \u4E2D\uFF0C\u65E0\u9700\u4FEE\u6539\u3002\u5982\u679C\u4ECD\u63D0\u793A\u627E\u4E0D\u5230 basalt\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u7EC8\u7AEF\u3002`);else console.log(`\u5DF2\u628A ${t} \u52A0\u5165 ${r.target}`),console.log("\u8BF7\u91CD\u65B0\u6253\u5F00\u7EC8\u7AEF\uFF0C\u4E4B\u540E\u53EF\u76F4\u63A5\u8FD0\u884C basalt");return 0}catch(r){return console.error(r instanceof Error?r.message:String(r)),1}}var G=`basalt \u2014 \u542F\u52A8\u5373\u670D\u52A1\u5668
14
+
15
+ \u7528\u6CD5: basalt [\u9009\u9879] \u540E\u53F0\u542F\u52A8\u670D\u52A1\uFF0C\u5C31\u7EEA\u540E\u8FD4\u56DE
16
+ basalt status \u67E5\u770B\u670D\u52A1\u72B6\u6001
17
+ basalt stop \u505C\u6B62\u670D\u52A1
18
+ basalt restart \u6309\u539F\u53C2\u6570\u91CD\u542F\u670D\u52A1
19
+ basalt logs \u67E5\u770B\u6700\u8FD1\u540E\u53F0\u65E5\u5FD7
20
+ basalt pair \u4E3A\u8FD0\u884C\u4E2D\u7684\u670D\u52A1\u751F\u6210\u65B0\u914D\u5BF9\u7801\u548C\u914D\u5BF9\u94FE\u63A5
21
+ basalt autostart <enable|disable|status> \u7BA1\u7406\u767B\u5F55\u81EA\u542F
22
+ basalt update \u7528\u5B89\u88C5\u65F6\u7684 npm/bun \u66F4\u65B0\u5230\u6700\u65B0\u7248\u672C\uFF08\u8FD0\u884C\u4E2D\u7684\u670D\u52A1\u7A7A\u95F2\u65F6\u81EA\u52A8\u91CD\u542F\uFF09
23
+ basalt setup \u628A basalt \u6240\u5728\u76EE\u5F55\u52A0\u5165 PATH\uFF08\u88C5\u5B8C\u63D0\u793A\u627E\u4E0D\u5230\u547D\u4EE4\u65F6\u7528\uFF09
24
+ basalt plugin reload <id> [--data <\u76EE\u5F55>]
25
+ basalt tunnel set <\u4E3B\u673A\u540D> [--token <\u4EE4\u724C>] [--aud <Audience> [--team <\u56E2\u961F\u57DF\u540D>]]
26
+ basalt tunnel off | status \u8FDC\u7A0B\u8BBF\u95EE\uFF08Cloudflare \u96A7\u9053\uFF0C\u89C1 README\uFF09
27
+
28
+ --host <\u5730\u5740> \u76D1\u542C\u5730\u5740\uFF08\u9ED8\u8BA4 127.0.0.1\uFF1B\u5C40\u57DF\u7F51\u8BBE\u7F6E\u4EC5\u9644\u52A0\u79C1\u7F51\u76D1\u542C\uFF09
29
+ --port <\u7AEF\u53E3> \u76D1\u542C\u7AEF\u53E3\uFF08\u9ED8\u8BA4 7420\uFF09
30
+ --no-auth \u5173\u95ED\u8BA4\u8BC1\uFF08\u4EFB\u4F55\u80FD\u8FDE\u4E0A\u7684\u4EBA\u90FD\u80FD\u63A7\u5236\u8FD9\u53F0\u673A\u5668\uFF09
31
+ --no-tray \u4E0D\u663E\u793A\u7CFB\u7EDF\u6258\u76D8\u56FE\u6807
32
+ --insecure-http \u5141\u8BB8\u975E\u672C\u673A\u76D1\u542C\u4F7F\u7528\u660E\u6587 HTTP\uFF08\u4E0D\u63A8\u8350\uFF09
33
+ --allow-remote-no-auth \u5141\u8BB8\u975E\u672C\u673A\u76D1\u542C\u65F6\u5173\u95ED\u8BA4\u8BC1\uFF08\u6781\u4E0D\u5B89\u5168\uFF09
34
+ --allow-origin <\u6765\u6E90> \u5141\u8BB8\u8DE8\u57DF\u8BBF\u95EE\u7684 Web \u5730\u5740\uFF0C\u53EF\u91CD\u590D\uFF1B* \u8868\u793A\u4EFB\u610F
35
+ --allow-host <\u4E3B\u673A\u540D> \u5141\u8BB8\u53CD\u5411\u4EE3\u7406\u5165\u53E3\u4E3B\u673A\u540D\uFF0C\u53EF\u91CD\u590D\uFF1B\u4E0D\u542B\u534F\u8BAE\u6216\u7AEF\u53E3
36
+ --web-url <\u5730\u5740> \u914D\u5BF9\u94FE\u63A5\u4F7F\u7528\u7684 Web \u5730\u5740\uFF08\u9ED8\u8BA4\u670D\u52A1\u5668\u81EA\u5E26\u7684 Web\uFF09
37
+ --model <provider/id> \u542F\u52A8\u65F6\u4F7F\u7528\u7684\u6A21\u578B
38
+ --demo \u4F7F\u7528\u5185\u7F6E\u6F14\u793A\u6A21\u578B\uFF08\u4E0D\u9700\u8981\u4EFB\u4F55 API key\uFF09
39
+ --token <\u4EE4\u724C> tunnel set \u7528\uFF1A\u96A7\u9053\u4EE4\u724C\uFF08\u4E5F\u53EF\u8BBE BASALT_TUNNEL_TOKEN\uFF0C\u907F\u514D\u8FDB shell \u5386\u53F2\uFF09
40
+ --aud <Audience> tunnel set \u7528\uFF1AAccess \u5E94\u7528\u7684 Audience \u6807\u7B7E
41
+ --team <\u56E2\u961F\u57DF\u540D> tunnel set \u7528\uFF1AAccess \u56E2\u961F\u57DF\u540D\uFF08\u4E0D\u586B\u6309\u516C\u5171\u57DF\u540D\u7684\u767B\u5F55\u8DF3\u8F6C\u81EA\u52A8\u63A2\u6D4B\uFF09
42
+ --data <\u76EE\u5F55> \u6570\u636E\u76EE\u5F55\uFF08\u9ED8\u8BA4\u6309\u5E73\u53F0\u60EF\u4F8B\uFF0C\u6216 BASALT_HOME\uFF09
43
+ --open \u542F\u52A8\u540E\u5728\u6D4F\u89C8\u5668\u91CC\u6253\u5F00\u5DE5\u4F5C\u53F0\uFF08\u5E26\u914D\u5BF9\u94FE\u63A5\uFF09
44
+ --foreground \u5728\u524D\u53F0\u8FD0\u884C\u670D\u52A1\uFF0C\u4F9B\u8C03\u8BD5\u3001launchd \u548C systemd \u4F7F\u7528
45
+ --replace \u5DF2\u6709\u5B9E\u4F8B\u5728\u8FD0\u884C\u65F6\u5148\u505C\u6389\u5B83\u518D\u542F\u52A8\uFF08\u5B89\u88C5\u548C\u66F4\u65B0\u7528\uFF09
46
+ --no-update-check \u4E0D\u81EA\u52A8\u68C0\u67E5\u548C\u5B89\u88C5\u65B0\u7248\u672C\uFF08\u4E5F\u53EF\u8BBE BASALT_NO_UPDATE_CHECK=1\uFF09
47
+ -v, --version \u663E\u793A\u7248\u672C
48
+ -h, --help \u663E\u793A\u5E2E\u52A9
49
+ `,{values:o,positionals:s}=F({allowPositionals:!0,options:{host:{type:"string"},port:{type:"string"},"no-auth":{type:"boolean",default:!1},"no-tray":{type:"boolean",default:!1},"insecure-http":{type:"boolean",default:!1},"allow-remote-no-auth":{type:"boolean",default:!1},"allow-origin":{type:"string",multiple:!0,default:[]},"allow-host":{type:"string",multiple:!0,default:[]},"web-url":{type:"string"},model:{type:"string"},demo:{type:"boolean",default:!1},data:{type:"string"},token:{type:"string"},team:{type:"string"},aud:{type:"string"},open:{type:"boolean",default:!1},foreground:{type:"boolean",default:!1},replace:{type:"boolean",default:!1},"no-update-check":{type:"boolean",default:!1},version:{type:"boolean",short:"v",default:!1},help:{type:"boolean",short:"h",default:!1}}});if(o.help||s[0]==="help"&&s.length===1)console.log(G),process.exit(0);if(o.version)console.log(ut.version),process.exit(0);var f=process.argv.slice(2),v=Z(at(),"instances"),n=o.data??(["status","stop","restart","logs","pair","plugin"].includes(s[0]??"")?await xs(at(),v):at()),m=!0,g="@bkm016/basalt",h=m&&!g?[process.execPath]:[process.execPath,Bun.main],i=s[0],V=!o["no-update-check"]&&!process.env.BASALT_NO_UPDATE_CHECK,E=o.host===void 0||qe(o.host),{portNumber:_,portSpecified:q}=ws(o.port),b={loopback:E,insecureHttp:o["insecure-http"],noAuth:o["no-auth"],allowRemoteNoAuth:o["allow-remote-no-auth"],allowedHosts:o["allow-host"],allowedOrigins:o["allow-origin"],webUrl:o["web-url"]};if(i==="update"&&s.length===1)process.exit(await ks(n,{packageDir:z(Bun.main),packageName:g,compiled:m}));if(i==="tunnel"){let{tunnelCommand:e}=await import("./chunk-jp1gqkbp.js");process.exit(await e(n,s[1],s[2],{token:o.token,team:o.team,aud:o.aud,port:_}))}if(i==="setup"&&s.length===1)process.exit(x({compiled:m,npmPackage:g,executable:process.execPath}));if(i==="plugin"){let[,e,t]=s;if(e!=="reload"||!t||s.length!==3)console.error("\u7528\u6CD5: basalt plugin reload <id> [--data <\u76EE\u5F55>]"),process.exit(1);process.exit(await P(n,t))}if(i==="status"&&s.length===1)process.exit(await vs(n));if(i==="stop"&&s.length===1)process.exit(await _s(n));if(i==="restart"&&s.length===1)process.exit(await Es({dataDir:n,rawArgs:f,launchCommand:h,open:o.open,validation:b}));if(i==="logs"&&s.length===1)process.exit(await As(n));if(i==="pair"&&s.length===1)process.exit(await Ts(n));if(i==="autostart"&&s.length===2)process.exit(await Ps({action:s[1]??"",dataDir:n,rawArgs:f,launchCommand:h,validation:b}));if(s.length)console.error(`\u672A\u77E5\u547D\u4EE4\uFF1A${s.join(" ")}
50
+ \u8FD0\u884C basalt --help \u67E5\u770B\u53EF\u7528\u547D\u4EE4`),process.exit(1);K(n,{recursive:!0});dn(b);var{NetworkManager:J,resolveNetworkHost:Q}=await import("./chunk-j16smb6d.js"),w=new J(n);w.load();var k;try{k=Q(w.settings(),{host:o.host,auth:!o["no-auth"],insecureHttp:o["insecure-http"],allowRemoteNoAuth:o["allow-remote-no-auth"]})}catch(e){console.error(`\u62D2\u7EDD\u542F\u52A8\uFF1A${e instanceof Error?e.message:String(e)}`),process.exit(1)}if(!o.foreground){let e=await He(n);if(e&&!o.replace){if(!o["no-tray"]&&typeof e.hwnd==="number"){let{notifyExistingTray:t}=await import("./chunk-n9m2pagh.js");t(e.hwnd)}console.log(`basalt \u5DF2\u5728\u8FD0\u884C\uFF1A${e.url}`),process.exit(0)}process.exit(await yi(h,f,n,process.cwd()))}var X=Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url"),{startForegroundServer:Y}=await import("./chunk-ydhdewcv.js");await Y({dataDir:n,instanceRegistry:v,rawArgs:f,launchCommand:h,compiled:m,npmPackage:g,portNumber:_,portSpecified:q,loopback:E,host:k,network:w,args:o,cliSecret:X,autoUpdate:V});
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{eo,Ua}from"./chunk-krbdx24j.js";export{eo as runUIWorker,Ua as uiTest};
@@ -0,0 +1,8 @@
1
+ // @bun
2
+ import{z,Kr,Hn,st,at,t,m}from"./chunk-45wfmdts.js";import{ot,_t,q,n,l,X,S,i,s,y,it,Fe,Te,T,U,rs,ns,Ze,Oe,c,de,mt,Hr,qr,Gr,Qo,Kt,Fn,dr,ht,k,Be,O,G,Qt,he,et,os,Et,mr,Yo,Bn,At,jr,Xo,Le,fe,$n,Wn,Yt,Jo,Zo,hr,gr,ft,re,yr,br,Z}from"./chunk-yztc2q9q.js";import{ct}from"./chunk-wwazj6mz.js";var Ji={};ct(Ji,{ArchivedError:()=>ft,BadRequestError:()=>t,BusyError:()=>re,DEFAULT_TIMEOUT:()=>Hr,FoldingPolicy:()=>Wn,MAX_ATTACHMENTS:()=>ot,MAX_TIMEOUT:()=>qr,MAX_TOOL_OUTPUT:()=>Oe,NotFoundError:()=>m,PluginCheckError:()=>ht,ProcessRegistry:()=>ur,RemoteHost:()=>Kr,SshHost:()=>st,Type:()=>Fe,aliased:()=>Te,budget:()=>$n,calls:()=>Be,clip:()=>de,clipSaved:()=>mt,connectCommand:()=>Hn,dataDir:()=>at,definePlugin:()=>k,estimateMessage:()=>G,estimateTokens:()=>O,estimateTools:()=>Qt,extensionTranscript:()=>Zo,findWindowsBash:()=>Gr,foldPoint:()=>Bn,foldedThrough:()=>Et,formatLines:()=>hr,gateShellCommand:()=>Ze,groupRuns:()=>et,hasFoldedHistory:()=>jr,historyTodos:()=>br,localHost:()=>z,newID:()=>Z,normalizeRunRecords:()=>os,preview:()=>he,processRegistry:()=>Dr,project:()=>Le,projectUserText:()=>At,releaseProcesses:()=>Ur,requestBody:()=>L,resolveShellCommand:()=>Kt,retainProcesses:()=>Nr,routeParam:()=>v,runShell:()=>dr,sealPoint:()=>mr,selectHistory:()=>yr,sessionTools:()=>gr,shellSpawnOptions:()=>Fn,staleFold:()=>Yo,text:()=>c,timerClock:()=>Ge,tool:()=>T,toolSession:()=>U,transcript:()=>Yt,usable:()=>fe,userTranscript:()=>Jo,validAttachment:()=>_t,workState:()=>Xo});var Ge={now:()=>Date.now(),after(e,o){let r=setTimeout(o,e);return()=>clearTimeout(r)}};var Xr=1048576,La=262144,Or=8,za=32,Ra=4096;class ur{cwd;outputLimit;terminal;shellPreference;extraPath;host;jobs=new Map;closed=!1;constructor(e,o=30000,r,f,a,d=z){this.cwd=e;this.outputLimit=o;this.terminal=r;this.shellPreference=f;this.extraPath=a;this.host=d}dialect(){let e=typeof this.shellPreference==="function"?this.shellPreference():this.shellPreference;return Kt("",e,this.host).shellName}setTerminalObserver(e){this.terminal=e}start(e,o,r){let f=r?.observer,a=r?.clock??Ge;if(this.closed)throw Error("\u540E\u53F0\u4EFB\u52A1\u6CE8\u518C\u8868\u5DF2\u5173\u95ED");if(!r?.shellGuardApproved){let C=rs(e,this.dialect());if(C.length>0)throw Error(ns(C))}if(this.list().filter((C)=>C.state==="running").length>=Or)throw Error(`\u540E\u53F0\u4EFB\u52A1\u5E76\u53D1\u6570\u5DF2\u8FBE\u4E0A\u9650\uFF08${Or}\uFF09`);let p=[...this.jobs.values()].filter((C)=>C.state!=="running");for(let C of p.slice(0,Math.max(0,p.length-za+1)))this.jobs.delete(C.id);let u=typeof this.shellPreference==="function"?this.shellPreference():this.shellPreference,{argv:g,isWindows:R}=Kt(e,u,this.host),_=this.host.spawn(g,{...Fn(this.cwd,this.extraPath,this.host),stdin:r?.stdin}),x={id:`j${crypto.randomUUID()}`,command:e,cwd:this.cwd,proc:_,stdin:Boolean(r?.stdin),started:a.now(),state:"running",code:null,output:"",outputBytes:0,readAt:0,dropped:0,unreadDroppedBytes:0,done:Promise.resolve(),waiters:[]};this.jobs.set(x.id,x);let w=()=>{for(let C of x.waiters.splice(0))C()},M=async(C,E)=>{let B=new Qo(R);for await(let Q of C){let ge=B.decode(Q);if(x.output+=ge,x.outputBytes+=Buffer.byteLength(ge),f?.output(ge,E),x.outputBytes>Xr+La){let se=Buffer.from(x.output),pe=se.length-Xr;while(pe<se.length&&(se[pe]??0)>>6===2)pe++;let ye=se.subarray(pe).toString(),ve=x.output.length-ye.length;x.unreadDroppedBytes+=Buffer.byteLength(x.output.slice(Math.max(0,x.readAt-x.dropped),ve)),x.output=ye,x.outputBytes=se.length-pe,x.dropped+=ve}w()}let V=B.flush();if(x.output+=V,x.outputBytes+=Buffer.byteLength(V),V)f?.output(V,E)},H,I=Promise.all([M(_.stdout,"stdout"),M(_.stderr,"stderr")]).catch((C)=>{H=C,x.proc.kill().catch(()=>{})}),N=!1;if(x.done=(async()=>{if(x.code=await _.exited,x.timer?.(),await Mt(x.proc.kill(),12000,"\u6E05\u7406\u540E\u53F0\u4EFB\u52A1\u8FDB\u7A0B\u6811\u8D85\u65F6"),await Mt(I,2000,"\u540E\u53F0\u4EFB\u52A1\u8F93\u51FA\u7BA1\u9053\u672A\u5173\u95ED\uFF0C\u53EF\u80FD\u4ECD\u6709\u6B8B\u7559\u8FDB\u7A0B"),H)throw H;if(x.state==="running")x.state="exited";if(N=!0,f?.end(x.state,x.code),!f&&x.state!=="killed")this.terminal?.(x);w()})().catch((C)=>{x.error=C,x.state="exited",x.output+=`
3
+ [\u540E\u53F0\u4EFB\u52A1\u5904\u7406\u5931\u8D25: ${String(C)}]`;try{if(!N)f?.end(x.state,x.code)}catch{}if(!f)this.terminal?.(x,C);w()}),o!==void 0)x.timer=a.after(o,()=>{if(x.state==="running")x.state="timeout",x.proc.kill().catch(()=>{})});return x}find(e){let o=this.jobs.get(e);if(!o)throw Error(`\u540E\u53F0\u4EFB\u52A1\u4E0D\u5B58\u5728: ${e}`);return o}list(){return[...this.jobs.values()].map((e)=>({id:e.id,command:e.command,state:e.state,code:e.code,started:e.started}))}peek(e,o=0,r=64000){let f=this.find(e),a=f.output.slice(Math.max(0,o-f.dropped));return{id:f.id,command:f.command,state:f.state,code:f.code,output:a.slice(-r),next:f.dropped+f.output.length,truncated:o<f.dropped||a.length>r}}async read(e,o,r=0,f=!1,a,d){let p=this.find(e),u=o?new RegExp(o):void 0,g=Date.now()+r;a?.throwIfAborted();let R=p.readAt;while(p.state==="running"){a?.throwIfAborted();let H=Math.max(p.readAt,R-Ra),I=p.output.slice(Math.max(0,H-p.dropped));if(R=p.dropped+p.output.length,(u?u.test(I):!f)||Date.now()>=g||d?.aborted)break;await new Promise((N,C)=>{let E=()=>{clearTimeout(V),d?.removeEventListener("abort",B);let Q=p.waiters.indexOf(B);if(Q>=0)p.waiters.splice(Q,1);C(a?.reason)},B=()=>{clearTimeout(V),a?.removeEventListener("abort",E),d?.removeEventListener("abort",B);let Q=p.waiters.indexOf(B);if(Q>=0)p.waiters.splice(Q,1);N()},V=setTimeout(B,Math.max(0,g-Date.now()));p.waiters.push(B),a?.addEventListener("abort",E,{once:!0}),d?.addEventListener("abort",B,{once:!0})})}a?.throwIfAborted();let _=p.unreadDroppedBytes;p.unreadDroppedBytes=0;let x=p.output.slice(Math.max(0,p.readAt-p.dropped));p.readAt=p.dropped+p.output.length;let w=x.slice(-this.outputLimit),M=_+Buffer.byteLength(x.slice(0,x.length-w.length));return{job:p,output:`${M?`[truncated ${M} bytes]
4
+ `:""}${w}`,stopped:p.state==="running"&&d?.aborted===!0}}async write(e,o,r=!1,f){let a=this.find(e);if(a.state!=="running")throw Error(`\u540E\u53F0\u4EFB\u52A1\u5DF2\u7ED3\u675F: ${e}`);if(!a.stdin)throw Error(`\u540E\u53F0\u4EFB\u52A1\u672A\u5F00\u653E stdin: ${e}`);if(o){let d=await Ze(o,f,this.dialect());if(d)throw Error(d);await a.proc.write(o)}if(r)await a.proc.end()}async stop(e){let o=this.find(e);if(o.state==="running"||o.error)await Mt(o.proc.kill(),12000,"\u7EC8\u6B62\u540E\u53F0\u4EFB\u52A1\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u76EE\u6807\u673A\u5668\u7684\u8FDE\u63A5\u4E0E\u8FDB\u7A0B\u6743\u9650"),o.error=void 0,o.state="killed";if(await Mt(o.done,15000,"\u540E\u53F0\u4EFB\u52A1\u672A\u5B8C\u6210\u9000\u51FA\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u6709\u6B8B\u7559\u8FDB\u7A0B"),o.error)throw o.error;return{id:o.id,state:o.state,code:o.code}}async idle(){await Promise.all([...this.jobs.values()].map((e)=>e.done))}close(){this.closed=!0;for(let e of this.jobs.values())if(e.state==="running")e.state="killed",e.proc.kill().catch(()=>{})}}async function Mt(e,o,r){let f;try{return await Promise.race([e,new Promise((a,d)=>{f=setTimeout(()=>d(Error(r)),o)})])}finally{clearTimeout(f)}}var wt=new WeakMap,Tt=new WeakMap;function Dr(e,o){let r=wt.get(e);if(!r)r=o(),wt.set(e,r);return r}function Nr(e){Tt.set(e,(Tt.get(e)??0)+1)}function Ur(e,o){let r=(Tt.get(o)??1)-1;if(Tt.set(o,r),r>0)return!1;if(o.close(),wt.get(e)===o)wt.delete(e);return!0}async function L(e){let o=await e.json();if(!o||typeof o!=="object"||Array.isArray(o))throw new t("expected a JSON object");return o}function v(e,o){let r=e[o];if(!r)throw new t(`${o} is required`);return r}var zo=100,Fr=1e4,Sa=60000,_a=200,Y=()=>s(),Cr=()=>n(S({minimum:1,maximum:Fr})),Qe=()=>n(s({minLength:1,maxLength:128})),Pa=y([l({click:y([Y(),l({selector:Y()})])}),l({type:l({label:Y(),text:Y()})}),l({waitText:Y(),timeoutMs:Cr()}),l({expectText:Y(),within:n(Y())}),l({waitSelector:Y(),timeoutMs:Cr()}),l({expectCount:l({selector:Y(),n:S({minimum:0})})}),l({snapshot:l({selector:Y(),depth:n(S({minimum:0,maximum:_a}))})}),l({expectCalls:l({onOpen:n(q(Y())),onClose:n(S({minimum:0}))})}),l({expectValue:l({label:Y(),value:Y()})})]),Ha=l({status:S({minimum:100,maximum:599}),body:X(),delayMs:n(S({minimum:0,maximum:Fr}))}),Xa=y([i("paths"),i("request"),i("verify"),i("ui_test"),i("list"),i("docs"),i("check"),i("load"),i("reload"),i("enable"),i("disable")]),Oa=y([i("page"),i("tab"),i("card"),i("sidebar")]),oa=l({action:Xa,path:n(s({minLength:1,maxLength:4096})),method:n(Y()),body:n(it(Y(),X())),importTimeoutMs:n(S({minimum:1,maximum:Fr})),timeoutMs:n(S({minimum:1,maximum:Sa})),sessionID:Qe(),scope:n(y([i("user"),i("all")])),id:Qe(),slot:Qe(),view:Qe(),codeBlock:Qe(),kind:n(Oa),props:n(it(Y(),X())),context:n(it(Y(),X())),steps:n(q(Pa,{maxItems:zo})),mockRoutes:n(it(Y(),Ha)),topic:n(s({maxLength:100})),grep:n(s({minLength:1,maxLength:200}))});var Ca=(e,o)=>{if(typeof e!=="number")return;if(o===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(o===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(o===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(o===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}},Lt=Ca;var Aa={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Ar=Aa;var Ia=(e)=>Lt(Ar[e.toLowerCase()],6),Ir=Ia;var $a=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Na=(e)=>{let o;return(o=e.match($a))?Lt(parseInt(o[1],16),o[1].length):void 0},$r=Na;var zt="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)";var Ae="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%";var tt="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var Er="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(deg|grad|rad|turn)|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var ke="\\s*,\\s*";var j0=new RegExp("^(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)|none)$");var qa=new RegExp(`^rgba?\\(\\s*${zt}${ke}${zt}${ke}${zt}\\s*(?:,\\s*${tt}\\s*)?\\)$`),ja=new RegExp(`^rgba?\\(\\s*${Ae}${ke}${Ae}${ke}${Ae}\\s*(?:,\\s*${tt}\\s*)?\\)$`),Da=(e)=>{let o={mode:"rgb"},r;if(r=e.match(qa)){if(r[1]!==void 0)o.r=r[1]/255;if(r[2]!==void 0)o.g=r[2]/255;if(r[3]!==void 0)o.b=r[3]/255}else if(r=e.match(ja)){if(r[1]!==void 0)o.r=r[1]/100;if(r[2]!==void 0)o.g=r[2]/100;if(r[3]!==void 0)o.b=r[3]/100}else return;if(r[4]!==void 0)o.alpha=Math.max(0,Math.min(1,r[4]/100));else if(r[5]!==void 0)o.alpha=Math.max(0,Math.min(1,+r[5]));return o},Jr=Da;var Ea=(e,o)=>e===void 0?void 0:typeof e!=="object"?nt(e):e.mode!==void 0?e:o?{...e,mode:o}:void 0,rt=Ea;var Ja=(e="rgb")=>(o)=>(o=rt(o,e))!==void 0?o.mode===e?o:me[o.mode][e]?me[o.mode][e](o):e==="rgb"?me[o.mode].rgb(o):me.rgb[e](me[o.mode].rgb(o)):void 0,ce=Ja;var me={},Br={},lt=[],vo={},Ba=(e)=>e,j=(e)=>{if(me[e.mode]={...me[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach((o)=>{if(!me[o])me[o]={};me[o][e.mode]=e.fromMode[o]}),!e.ranges)e.ranges={};if(!e.difference)e.difference={};return e.channels.forEach((o)=>{if(e.ranges[o]===void 0)e.ranges[o]=[0,1];if(!e.interpolate[o])throw Error(`Missing interpolator for: ${o}`);if(typeof e.interpolate[o]==="function")e.interpolate[o]={use:e.interpolate[o]};if(!e.interpolate[o].fixup)e.interpolate[o].fixup=Ba}),Br[e.mode]=e,(e.parse||[]).forEach((o)=>{Fa(o,e.mode)}),ce(e.mode)},Ie=(e)=>Br[e],Fa=(e,o)=>{if(typeof e==="string"){if(!o)throw Error("'mode' required when 'parser' is a string");vo[e]=o}else if(typeof e==="function"){if(lt.indexOf(e)<0)lt.push(e)}};var yo=/[^\x00-\x7F]|[a-zA-Z_]/,Ua=/[^\x00-\x7F]|[-\w]/,h={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},P=0;function Rt(e){let o=e[P],r=e[P+1];if(o==="-"||o==="+")return/\d/.test(r)||r==="."&&/\d/.test(e[P+2]);if(o===".")return/\d/.test(r);return/\d/.test(o)}function ko(e){if(P>=e.length)return!1;let o=e[P];if(yo.test(o))return!0;if(o==="-"){if(e.length-P<2)return!1;let r=e[P+1];if(r==="-"||yo.test(r))return!0;return!1}return!1}var Ya={deg:1,rad:180/Math.PI,grad:0.9,turn:360};function dt(e){let o="";if(e[P]==="-"||e[P]==="+")o+=e[P++];if(o+=St(e),e[P]==="."&&/\d/.test(e[P+1]))o+=e[P++]+St(e);if(e[P]==="e"||e[P]==="E"){if((e[P+1]==="-"||e[P+1]==="+")&&/\d/.test(e[P+2]))o+=e[P++]+e[P++]+St(e);else if(/\d/.test(e[P+1]))o+=e[P++]+St(e)}if(ko(e)){let r=Pt(e);if(r==="deg"||r==="rad"||r==="turn"||r==="grad")return{type:h.Hue,value:o*Ya[r]};return}if(e[P]==="%")return P++,{type:h.Percentage,value:+o};return{type:h.Number,value:+o}}function St(e){let o="";while(/\d/.test(e[P]))o+=e[P++];return o}function Pt(e){let o="";while(P<e.length&&Ua.test(e[P]))o+=e[P++];return o}function Wa(e){let o=Pt(e);if(e[P]==="(")return P++,{type:h.Function,value:o};if(o==="none")return{type:h.None,value:void 0};return{type:h.Ident,value:o}}function Ga(e=""){let o=e.trim(),r=[],f;P=0;while(P<o.length){if(f=o[P++],f===`
5
+ `||f==="\t"||f===" "){while(P<o.length&&(o[P]===`
6
+ `||o[P]==="\t"||o[P]===" "))P++;continue}if(f===",")return;if(f===")"){r.push({type:h.ParenClose});continue}if(f==="+"){if(P--,Rt(o)){r.push(dt(o));continue}return}if(f==="-"){if(P--,Rt(o)){r.push(dt(o));continue}if(ko(o)){r.push({type:h.Ident,value:Pt(o)});continue}return}if(f==="."){if(P--,Rt(o)){r.push(dt(o));continue}return}if(f==="/"){while(P<o.length&&(o[P]===`
7
+ `||o[P]==="\t"||o[P]===" "))P++;let a;if(Rt(o)){if(a=dt(o),a.type!==h.Hue){r.push({type:h.Alpha,value:a});continue}}if(ko(o)){if(Pt(o)==="none"){r.push({type:h.Alpha,value:{type:h.None,value:void 0}});continue}}return}if(/\d/.test(f)){P--,r.push(dt(o));continue}if(yo.test(f)){P--,r.push(Wa(o));continue}return}return r}function Za(e){e._i=0;let o=e[e._i++];if(!o||o.type!==h.Function||o.value!=="color")return;if(o=e[e._i++],o.type!==h.Ident)return;let r=vo[o.value];if(!r)return;let f={mode:r},a=Yr(e,!1);if(!a)return;let d=Ie(r).channels;for(let p=0,u,g;p<d.length;p++)if(u=a[p],g=d[p],u.type!==h.None){if(f[g]=u.type===h.Number?u.value:u.value/100,g==="alpha")f[g]=Math.max(0,Math.min(1,f[g]))}return f}function Yr(e,o){let r=[],f;while(e._i<e.length){if(f=e[e._i++],f.type===h.None||f.type===h.Number||f.type===h.Alpha||f.type===h.Percentage||o&&f.type===h.Hue){r.push(f);continue}if(f.type===h.ParenClose){if(e._i<e.length)return;continue}return}if(r.length<3||r.length>4)return;if(r.length===4){if(r[3].type!==h.Alpha)return;r[3]=r[3].value}if(r.length===3)r.push({type:h.None,value:void 0});return r.every((a)=>a.type!==h.Alpha)?r:void 0}function Ka(e,o){e._i=0;let r=e[e._i++];if(!r||r.type!==h.Function)return;let f=Yr(e,o);if(!f)return;return f.unshift(r.value),f}var Va=(e)=>{if(typeof e!=="string")return;let o=Ga(e),r=o?Ka(o,!0):void 0,f=void 0,a=0,d=lt.length;while(a<d)if((f=lt[a++](e,r))!==void 0)return f;return o?Za(o):void 0},nt=Va;function Qa(e,o){if(!o||o[0]!=="rgb"&&o[0]!=="rgba")return;let r={mode:"rgb"},[,f,a,d,p]=o;if(f.type===h.Hue||a.type===h.Hue||d.type===h.Hue)return;if(f.type!==h.None)r.r=f.type===h.Number?f.value/255:f.value/100;if(a.type!==h.None)r.g=a.type===h.Number?a.value/255:a.value/100;if(d.type!==h.None)r.b=d.type===h.Number?d.value/255:d.value/100;if(p.type!==h.None)r.alpha=Math.min(1,Math.max(0,p.type===h.Number?p.value:p.value/100));return r}var Wr=Qa;var ei=(e)=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Zr=ei;var Vr=(e,o,r)=>e+r*(o-e);var ti=(e)=>{let o=[];for(let r=0;r<e.length-1;r++){let f=e[r],a=e[r+1];if(f===void 0&&a===void 0)o.push(void 0);else if(f!==void 0&&a!==void 0)o.push([f,a]);else o.push(f!==void 0?[f,f]:[a,a])}return o},Qr=(e)=>(o)=>{let r=ti(o);return(f)=>{let a=f*r.length,d=f>=1?r.length-1:Math.max(Math.floor(a),0),p=r[d];return p===void 0?void 0:e(p[0],p[1],a-d)}};var b=Qr(Vr);var A=(e)=>{let o=!1,r=e.map((f)=>{if(f!==void 0)return o=!0,f;return 1});return o?r:e};var oi={mode:"rgb",channels:["r","g","b","alpha"],parse:[Wr,$r,Jr,Ir,Zr,"srgb"],serialize:"srgb",interpolate:{r:b,g:b,b,alpha:{use:b,fixup:A}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},ae=oi;var Mo=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),ri=(e)=>{let o=Mo(e.r),r=Mo(e.g),f=Mo(e.b),a={mode:"xyz65",x:0.5766690429101305*o+0.1855582379065463*r+0.1882286462349947*f,y:0.297344975250536*o+0.6273635662554661*r+0.0752914584939979*f,z:0.0270313613864123*o+0.0706888525358272*r+0.9913375368376386*f};if(e.alpha!==void 0)a.alpha=e.alpha;return a},wo=ri;var To=(e)=>Math.pow(Math.abs(e),0.4547069271758437)*Math.sign(e),ni=({x:e,y:o,z:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a={mode:"a98",r:To(e*2.0415879038107465-o*0.5650069742788597-0.3447313507783297*r),g:To(e*-0.9692436362808798+o*1.8759675015077206+0.0415550574071756*r),b:To(e*0.0134442806320312-o*0.1183623922310184+1.0151749943912058*r)};if(f!==void 0)a.alpha=f;return a},Lo=ni;var Ro=(e=0)=>{let o=Math.abs(e);if(o<=0.04045)return e/12.92;return(Math.sign(e)||1)*Math.pow((o+0.055)/1.055,2.4)},ai=({r:e,g:o,b:r,alpha:f})=>{let a={mode:"lrgb",r:Ro(e),g:Ro(o),b:Ro(r)};if(f!==void 0)a.alpha=f;return a},ie=ai;var ii=(e)=>{let{r:o,g:r,b:f,alpha:a}=ie(e),d={mode:"xyz65",x:0.4123907992659593*o+0.357584339383878*r+0.1804807884018343*f,y:0.2126390058715102*o+0.715168678767756*r+0.0721923153607337*f,z:0.0193308187155918*o+0.119194779794626*r+0.9505321522496607*f};if(a!==void 0)d.alpha=a;return d},ee=ii;var So=(e=0)=>{let o=Math.abs(e);if(o>0.0031308)return(Math.sign(e)||1)*(1.055*Math.pow(o,0.4166666666666667)-0.055);return e*12.92},li=({r:e,g:o,b:r,alpha:f},a="rgb")=>{let d={mode:a,r:So(e),g:So(o),b:So(r)};if(f!==void 0)d.alpha=f;return d},le=li;var fi=({x:e,y:o,z:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=le({r:e*3.2409699419045226-o*1.537383177570094-0.4986107602930034*r,g:e*-0.9692436362808796+o*1.8759675015077204+0.0415550574071756*r,b:e*0.0556300796969936-o*0.2039769588889765+1.0569715142428784*r});if(f!==void 0)a.alpha=f;return a},te=fi;var si={...ae,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:(e)=>Lo(ee(e)),xyz65:Lo},toMode:{rgb:(e)=>te(wo(e)),xyz65:wo}},en=si;var di=(e)=>(e=e%360)<0?e+360:e,D=di;var pi=(e,o)=>e.map((r,f,a)=>{if(r===void 0)return r;let d=D(r);if(f===0||e[f-1]===void 0)return d;return o(d-D(a[f-1]))}).reduce((r,f)=>{if(!r.length||f===void 0||r[r.length-1]===void 0)return r.push(f),r;return r.push(f+r[r.length-1]),r},[]),W=(e)=>pi(e,(o)=>Math.abs(o)<=180?o:o-360*Math.sign(o));var F=[-0.14861,1.78277,-0.29227,-0.90649,1.97294,0],tn=Math.PI/180,on=180/Math.PI;var rn=F[3]*F[4],nn=F[1]*F[4],an=F[1]*F[2]-F[0]*F[3],mi=({r:e,g:o,b:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=(an*r+e*rn-o*nn)/(an+rn-nn),d=r-a,p=(F[4]*(o-a)-F[2]*d)/F[3],u={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(d*d+p*p)/(F[4]*a*(1-a))};if(u.s)u.h=Math.atan2(p,d)*on-120;if(f!==void 0)u.alpha=f;return u},ln=mi;var ci=({h:e,s:o,l:r,alpha:f})=>{let a={mode:"rgb"};if(e=(e===void 0?0:e+120)*tn,r===void 0)r=0;let d=o===void 0?0:o*r*(1-r),p=Math.cos(e),u=Math.sin(e);if(a.r=r+d*(F[0]*p+F[1]*u),a.g=r+d*(F[2]*p+F[3]*u),a.b=r+d*(F[4]*p+F[5]*u),f!==void 0)a.alpha=f;return a},fn=ci;var Me=(e,o)=>{if(e.h===void 0||o.h===void 0||!e.s||!o.s)return 0;let r=D(e.h),f=D(o.h),a=Math.sin((f-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*o.s)*a},sn=(e,o)=>{if(e.h===void 0||o.h===void 0)return 0;let r=D(e.h),f=D(o.h);if(Math.abs(f-r)>180)return r-(f-360*Math.sign(f-r));return f-r},we=(e,o)=>{if(e.h===void 0||o.h===void 0||!e.c||!o.c)return 0;let r=D(e.h),f=D(o.h),a=Math.sin((f-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*o.c)*a};var K=(e)=>{let o=e.reduce((f,a)=>{if(a!==void 0){let d=a*Math.PI/180;f.sin+=Math.sin(d),f.cos+=Math.cos(d)}return f},{sin:0,cos:0}),r=Math.atan2(o.sin,o.cos)*180/Math.PI;return r<0?360+r:r};var ui={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:ln},toMode:{rgb:fn},interpolate:{h:{use:b,fixup:W},s:b,l:b,alpha:{use:b,fixup:A}},difference:{h:Me},average:{h:K}},dn=ui;var hi=({l:e,a:o,b:r,alpha:f},a="lch")=>{if(o===void 0)o=0;if(r===void 0)r=0;let d=Math.sqrt(o*o+r*r),p={mode:a,l:e,c:d};if(d)p.h=D(Math.atan2(r,o)*180/Math.PI);if(f!==void 0)p.alpha=f;return p},oe=hi;var bi=({l:e,c:o,h:r,alpha:f},a="lab")=>{if(r===void 0)r=0;let d={mode:a,l:e,a:o?o*Math.cos(r/180*Math.PI):0,b:o?o*Math.sin(r/180*Math.PI):0};if(f!==void 0)d.alpha=f;return d},ne=bi;var Ht=Math.pow(29,3)/Math.pow(3,3),Xt=Math.pow(6,3)/Math.pow(29,3);var J={X:0.9642956764295677,Y:1,Z:0.8251046025104602},ze={X:0.9504559270516716,Y:1,Z:1.0890577507598784},es=Math.pow(29,3)/Math.pow(3,3),ts=Math.pow(6,3)/Math.pow(29,3);var _o=(e)=>Math.pow(e,3)>Xt?Math.pow(e,3):(116*e-16)/Ht,xi=({l:e,a:o,b:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=(e+16)/116,d=o/500+a,p=a-r/200,u={mode:"xyz65",x:_o(d)*ze.X,y:_o(a)*ze.Y,z:_o(p)*ze.Z};if(f!==void 0)u.alpha=f;return u},Ot=xi;var gi=(e)=>te(Ot(e)),Re=gi;var Po=(e)=>e>Xt?Math.cbrt(e):(Ht*e+16)/116,vi=({x:e,y:o,z:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=Po(e/ze.X),d=Po(o/ze.Y),p=Po(r/ze.Z),u={mode:"lab65",l:116*d-16,a:500*(a-d),b:200*(d-p)};if(f!==void 0)u.alpha=f;return u},Ct=vi;var yi=(e)=>{let o=Ct(ee(e));if(e.r===e.b&&e.b===e.g)o.a=o.b=0;return o},Se=yi;var je=1,It=1,$e=0.14444444444444443*Math.PI,De=Math.cos($e),Ee=Math.sin($e),$t=100/Math.log(1.39);var ki=({l:e,c:o,h:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a={mode:"lab65",l:(Math.exp(e*je/$t)-1)/0.0039},d=(Math.exp(0.0435*o*It*je)-1)/0.075,p=d*Math.cos(r/180*Math.PI-$e),u=d*Math.sin(r/180*Math.PI-$e);if(a.a=p*De-u/0.83*Ee,a.b=p*Ee+u/0.83*De,f!==void 0)a.alpha=f;return a},pt=ki;var Mi=({l:e,a:o,b:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=o*De+r*Ee,d=0.83*(r*De-o*Ee),p=Math.sqrt(a*a+d*d),u={mode:"dlch",l:$t/je*Math.log(1+0.0039*e),c:Math.log(1+0.075*p)/(0.0435*It*je)};if(u.c)u.h=D((Math.atan2(d,a)+$e)/Math.PI*180);if(f!==void 0)u.alpha=f;return u},ut=Mi;var pn=(e)=>pt(oe(e,"dlch")),mn=(e)=>ne(ut(e),"dlab"),wi={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:pn,rgb:(e)=>Re(pn(e))},fromMode:{lab65:mn,rgb:(e)=>mn(Se(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:b,a:b,b,alpha:{use:b,fixup:A}}},cn=wi;var Ti={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:pt,dlab:(e)=>ne(e,"dlab"),rgb:(e)=>Re(pt(e))},fromMode:{lab65:ut,dlab:(e)=>oe(e,"dlch"),rgb:(e)=>ut(Se(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:b,c:b,h:{use:b,fixup:W},alpha:{use:b,fixup:A}},difference:{h:we},average:{h:K}},un=Ti;function Ho({h:e,s:o,i:r,alpha:f}){if(e=D(e!==void 0?e:0),o===void 0)o=0;if(r===void 0)r=0;let a=Math.abs(e/60%2-1),d;switch(Math.floor(e/60)){case 0:d={r:r*(1+o*(3/(2-a)-1)),g:r*(1+o*(3*(1-a)/(2-a)-1)),b:r*(1-o)};break;case 1:d={r:r*(1+o*(3*(1-a)/(2-a)-1)),g:r*(1+o*(3/(2-a)-1)),b:r*(1-o)};break;case 2:d={r:r*(1-o),g:r*(1+o*(3/(2-a)-1)),b:r*(1+o*(3*(1-a)/(2-a)-1))};break;case 3:d={r:r*(1-o),g:r*(1+o*(3*(1-a)/(2-a)-1)),b:r*(1+o*(3/(2-a)-1))};break;case 4:d={r:r*(1+o*(3*(1-a)/(2-a)-1)),g:r*(1-o),b:r*(1+o*(3/(2-a)-1))};break;case 5:d={r:r*(1+o*(3/(2-a)-1)),g:r*(1-o),b:r*(1+o*(3*(1-a)/(2-a)-1))};break;default:d={r:r*(1-o),g:r*(1-o),b:r*(1-o)}}if(d.mode="rgb",f!==void 0)d.alpha=f;return d}function Oo({r:e,g:o,b:r,alpha:f}){if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=Math.max(e,o,r),d=Math.min(e,o,r),p={mode:"hsi",s:e+o+r===0?0:1-3*d/(e+o+r),i:(e+o+r)/3};if(a-d!==0)p.h=(a===e?(o-r)/(a-d)+(o<r)*6:a===o?(r-e)/(a-d)+2:(e-o)/(a-d)+4)*60;if(f!==void 0)p.alpha=f;return p}var Li={mode:"hsi",toMode:{rgb:Ho},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Oo},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:b,fixup:W},s:b,i:b,alpha:{use:b,fixup:A}},difference:{h:Me},average:{h:K}},hn=Li;function Co({h:e,s:o,l:r,alpha:f}){if(e=D(e!==void 0?e:0),o===void 0)o=0;if(r===void 0)r=0;let a=r+o*(r<0.5?r:1-r),d=a-(a-r)*2*Math.abs(e/60%2-1),p;switch(Math.floor(e/60)){case 0:p={r:a,g:d,b:2*r-a};break;case 1:p={r:d,g:a,b:2*r-a};break;case 2:p={r:2*r-a,g:a,b:d};break;case 3:p={r:2*r-a,g:d,b:a};break;case 4:p={r:d,g:2*r-a,b:a};break;case 5:p={r:a,g:2*r-a,b:d};break;default:p={r:2*r-a,g:2*r-a,b:2*r-a}}if(p.mode="rgb",f!==void 0)p.alpha=f;return p}function Ao({r:e,g:o,b:r,alpha:f}){if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=Math.max(e,o,r),d=Math.min(e,o,r),p={mode:"hsl",s:a===d?0:(a-d)/(1-Math.abs(a+d-1)),l:0.5*(a+d)};if(a-d!==0)p.h=(a===e?(o-r)/(a-d)+(o<r)*6:a===o?(r-e)/(a-d)+2:(e-o)/(a-d)+4)*60;if(f!==void 0)p.alpha=f;return p}var zi=(e,o)=>{switch(o){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},bn=zi;var Ri=new RegExp(`^hsla?\\(\\s*${Er}${ke}${Ae}${ke}${Ae}\\s*(?:,\\s*${tt}\\s*)?\\)$`),Si=(e)=>{let o=e.match(Ri);if(!o)return;let r={mode:"hsl"};if(o[3]!==void 0)r.h=+o[3];else if(o[1]!==void 0&&o[2]!==void 0)r.h=bn(o[1],o[2]);if(o[4]!==void 0)r.s=Math.min(Math.max(0,o[4]/100),1);if(o[5]!==void 0)r.l=Math.min(Math.max(0,o[5]/100),1);if(o[6]!==void 0)r.alpha=Math.max(0,Math.min(1,o[6]/100));else if(o[7]!==void 0)r.alpha=Math.max(0,Math.min(1,+o[7]));return r},xn=Si;function _i(e,o){if(!o||o[0]!=="hsl"&&o[0]!=="hsla")return;let r={mode:"hsl"},[,f,a,d,p]=o;if(f.type!==h.None){if(f.type===h.Percentage)return;r.h=f.value}if(a.type!==h.None){if(a.type===h.Hue)return;r.s=a.value/100}if(d.type!==h.None){if(d.type===h.Hue)return;r.l=d.value/100}if(p.type!==h.None)r.alpha=Math.min(1,Math.max(0,p.type===h.Number?p.value:p.value/100));return r}var gn=_i;var Pi={mode:"hsl",toMode:{rgb:Co},fromMode:{rgb:Ao},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[gn,xn],serialize:(e)=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:b,fixup:W},s:b,l:b,alpha:{use:b,fixup:A}},difference:{h:Me},average:{h:K}},Nt=Pi;function bt({h:e,s:o,v:r,alpha:f}){if(e=D(e!==void 0?e:0),o===void 0)o=0;if(r===void 0)r=0;let a=Math.abs(e/60%2-1),d;switch(Math.floor(e/60)){case 0:d={r,g:r*(1-o*a),b:r*(1-o)};break;case 1:d={r:r*(1-o*a),g:r,b:r*(1-o)};break;case 2:d={r:r*(1-o),g:r,b:r*(1-o*a)};break;case 3:d={r:r*(1-o),g:r*(1-o*a),b:r};break;case 4:d={r:r*(1-o*a),g:r*(1-o),b:r};break;case 5:d={r,g:r*(1-o),b:r*(1-o*a)};break;default:d={r:r*(1-o),g:r*(1-o),b:r*(1-o)}}if(d.mode="rgb",f!==void 0)d.alpha=f;return d}function xt({r:e,g:o,b:r,alpha:f}){if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=Math.max(e,o,r),d=Math.min(e,o,r),p={mode:"hsv",s:a===0?0:1-d/a,v:a};if(a-d!==0)p.h=(a===e?(o-r)/(a-d)+(o<r)*6:a===o?(r-e)/(a-d)+2:(e-o)/(a-d)+4)*60;if(f!==void 0)p.alpha=f;return p}var Hi={mode:"hsv",toMode:{rgb:bt},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:xt},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:b,fixup:W},s:b,v:b,alpha:{use:b,fixup:A}},difference:{h:Me},average:{h:K}},qt=Hi;function Io({h:e,w:o,b:r,alpha:f}){if(o===void 0)o=0;if(r===void 0)r=0;if(o+r>1){let a=o+r;o/=a,r/=a}return bt({h:e,s:r===1?1:1-o/(1-r),v:1-r,alpha:f})}function $o(e){let o=xt(e);if(o===void 0)return;let r=o.s!==void 0?o.s:0,f=o.v!==void 0?o.v:0,a={mode:"hwb",w:(1-r)*f,b:1-f};if(o.h!==void 0)a.h=o.h;if(o.alpha!==void 0)a.alpha=o.alpha;return a}function Xi(e,o){if(!o||o[0]!=="hwb")return;let r={mode:"hwb"},[,f,a,d,p]=o;if(f.type!==h.None){if(f.type===h.Percentage)return;r.h=f.value}if(a.type!==h.None){if(a.type===h.Hue)return;r.w=a.value/100}if(d.type!==h.None){if(d.type===h.Hue)return;r.b=d.value/100}if(p.type!==h.None)r.alpha=Math.min(1,Math.max(0,p.type===h.Number?p.value:p.value/100));return r}var vn=Xi;var Oi={mode:"hwb",toMode:{rgb:Io},fromMode:{rgb:$o},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[vn],serialize:(e)=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:b,fixup:W},w:b,b,alpha:{use:b,fixup:A}},difference:{h:sn},average:{h:K}},yn=Oi;var jt=203;var Dt=0.1593017578125;var Jt=0.8359375,Bt=18.8515625,Ft=18.6875;function Ut(e){if(e<0)return 0;let o=Math.pow(e,0.012683313515655966);return 1e4*Math.pow(Math.max(0,o-0.8359375)/(18.8515625-18.6875*o),6.277394636015326)}function Wt(e){if(e<0)return 0;let o=Math.pow(e/1e4,0.1593017578125);return Math.pow((0.8359375+18.8515625*o)/(1+18.6875*o),78.84375)}var No=(e)=>Math.max(e/jt,0),Ci=({i:e,t:o,p:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=Ut(e+0.008609037037932761*o+0.11102962500302593*r),d=Ut(e-0.00860903703793275*o-0.11102962500302599*r),p=Ut(e+0.5600313357106791*o-0.32062717498731885*r),u={mode:"xyz65",x:No(2.070152218389422*a-1.3263473389671556*d+0.2066510476294051*p),y:No(0.3647385209748074*a+0.680566024947227*d-0.0453045459220346*p),z:No(-0.049747207535812*a-0.0492609666966138*d+1.1880659249923042*p)};if(f!==void 0)u.alpha=f;return u},qo=Ci;var Do=(e=0)=>Math.max(e*jt,0),Ai=({x:e,y:o,z:r,alpha:f})=>{let a=Do(e),d=Do(o),p=Do(r),u=Wt(0.3592832590121217*a+0.6976051147779502*d-0.0358915932320289*p),g=Wt(-0.1920808463704995*a+1.1004767970374323*d+0.0753748658519118*p),R=Wt(0.0070797844607477*a+0.0748396662186366*d+0.8433265453898765*p),_=0.5*u+0.5*g,x=1.61376953125*u-3.323486328125*g+1.709716796875*R,w=4.378173828125*u-4.24560546875*g-0.132568359375*R,M={mode:"itp",i:_,t:x,p:w};if(f!==void 0)M.alpha=f;return M},Eo=Ai;var Ii={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:qo,rgb:(e)=>te(qo(e))},fromMode:{xyz65:Eo,rgb:(e)=>Eo(ee(e))},ranges:{i:[0,0.581],t:[-0.369,0.272],p:[-0.164,0.331]},interpolate:{i:b,t:b,p:b,alpha:{use:b,fixup:A}}},kn=Ii;var $i=134.03437499999998,Ni=0.000000000016295499532821565,Bo=(e)=>{if(e<0)return 0;let o=Math.pow(e/1e4,Dt);return Math.pow((Jt+Bt*o)/(1+Ft*o),$i)},Fo=(e=0)=>Math.max(e*203,0),qi=({x:e,y:o,z:r,alpha:f})=>{e=Fo(e),o=Fo(o),r=Fo(r);let a=1.15*e-0.15*r,d=0.66*o+0.34*e,p=Bo(0.41478972*a+0.579999*d+0.014648*r),u=Bo(-0.20151*a+1.120649*d+0.0531008*r),g=Bo(-0.0166008*a+0.2648*d+0.6684799*r),R=(p+u)/2,_={mode:"jab",j:0.44*R/(1-0.56*R)-Ni,a:3.524*p-4.066708*u+0.542708*g,b:0.199076*p+1.096799*u-1.295875*g};if(f!==void 0)_.alpha=f;return _},Gt=qi;var ji=134.03437499999998,Mn=0.000000000016295499532821565,Uo=(e)=>{if(e<0)return 0;let o=Math.pow(e,1/ji);return 1e4*Math.pow((Jt-o)/(Ft*o-Bt),1/Dt)},Wo=(e)=>e/203,Di=({j:e,a:o,b:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=(e+Mn)/(0.44+0.56*(e+Mn)),d=Uo(a+0.13860504*o+0.058047316*r),p=Uo(a-0.13860504*o-0.058047316*r),u=Uo(a-0.096019242*o-0.8118919*r),g={mode:"xyz65",x:Wo(1.661373024652174*d-0.914523081304348*p+0.23136208173913045*u),y:Wo(-0.3250758611844533*d+1.571847026732543*p-0.21825383453227928*u),z:Wo(-0.090982811*d-0.31272829*p+1.5227666*u)};if(f!==void 0)g.alpha=f;return g},Zt=Di;var Ei=(e)=>{let o=Gt(ee(e));if(e.r===e.b&&e.b===e.g)o.a=o.b=0;return o},Vt=Ei;var Bi=(e)=>te(Zt(e)),eo=Bi;var Fi={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Vt,xyz65:Gt},toMode:{rgb:eo,xyz65:Zt},ranges:{j:[0,0.222],a:[-0.109,0.129],b:[-0.185,0.134]},interpolate:{j:b,a:b,b,alpha:{use:b,fixup:A}}},wn=Fi;var Ui=({j:e,a:o,b:r,alpha:f})=>{if(o===void 0)o=0;if(r===void 0)r=0;let a=Math.sqrt(o*o+r*r),d={mode:"jch",j:e,c:a};if(a)d.h=D(Math.atan2(r,o)*180/Math.PI);if(f!==void 0)d.alpha=f;return d},Go=Ui;var Yi=({j:e,c:o,h:r,alpha:f})=>{if(r===void 0)r=0;let a={mode:"jab",j:e,a:o?o*Math.cos(r/180*Math.PI):0,b:o?o*Math.sin(r/180*Math.PI):0};if(f!==void 0)a.alpha=f;return a},Ko=Yi;var Wi={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Ko,rgb:(e)=>eo(Ko(e))},fromMode:{rgb:(e)=>Go(Vt(e)),jab:Go},channels:["j","c","h","alpha"],ranges:{j:[0,0.221],c:[0,0.19],h:[0,360]},interpolate:{h:{use:b,fixup:W},c:b,j:b,alpha:{use:b,fixup:A}},difference:{h:we},average:{h:K}},Tn=Wi;var _e=Math.pow(29,3)/Math.pow(3,3),Je=Math.pow(6,3)/Math.pow(29,3);var Vo=(e)=>Math.pow(e,3)>Je?Math.pow(e,3):(116*e-16)/_e,Gi=({l:e,a:o,b:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=(e+16)/116,d=o/500+a,p=a-r/200,u={mode:"xyz50",x:Vo(d)*J.X,y:Vo(a)*J.Y,z:Vo(p)*J.Z};if(f!==void 0)u.alpha=f;return u},Ue=Gi;var Zi=({x:e,y:o,z:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=le({r:e*3.1341359569958707-o*1.6173863321612538-0.4906619460083532*r,g:e*-0.978795502912089+o*1.916254567259524+0.03344273116131949*r,b:e*0.07195537988411677-o*0.2289768264158322+1.405386058324125*r});if(f!==void 0)a.alpha=f;return a},ue=Zi;var Ki=(e)=>ue(Ue(e)),to=Ki;var Vi=(e)=>{let{r:o,g:r,b:f,alpha:a}=ie(e),d={mode:"xyz50",x:0.436065742824811*o+0.3851514688337912*r+0.14307845442264197*f,y:0.22249319175623702*o+0.7168870538238823*r+0.06061979053616537*f,z:0.013923904500943465*o+0.09708128566574634*r+0.7140993584005155*f};if(a!==void 0)d.alpha=a;return d},be=Vi;var er=(e)=>e>Je?Math.cbrt(e):(_e*e+16)/116,Qi=({x:e,y:o,z:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=er(e/J.X),d=er(o/J.Y),p=er(r/J.Z),u={mode:"lab",l:116*d-16,a:500*(a-d),b:200*(d-p)};if(f!==void 0)u.alpha=f;return u},Ye=Qi;var el=(e)=>{let o=Ye(be(e));if(e.r===e.b&&e.b===e.g)o.a=o.b=0;return o},oo=el;function tl(e,o){if(!o||o[0]!=="lab")return;let r={mode:"lab"},[,f,a,d,p]=o;if(f.type===h.Hue||a.type===h.Hue||d.type===h.Hue)return;if(f.type!==h.None)r.l=Math.min(Math.max(0,f.value),100);if(a.type!==h.None)r.a=a.type===h.Number?a.value:a.value*125/100;if(d.type!==h.None)r.b=d.type===h.Number?d.value:d.value*125/100;if(p.type!==h.None)r.alpha=Math.min(1,Math.max(0,p.type===h.Number?p.value:p.value/100));return r}var Ln=tl;var ol={mode:"lab",toMode:{xyz50:Ue,rgb:to},fromMode:{xyz50:Ye,rgb:oo},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-100,100],b:[-100,100]},parse:[Ln],serialize:(e)=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:b,a:b,b,alpha:{use:b,fixup:A}}},We=ol;var rl={...We,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Ot,rgb:Re},fromMode:{xyz65:Ct,rgb:Se},ranges:{l:[0,100],a:[-86.182,98.234],b:[-107.86,94.477]}},zn=rl;function nl(e,o){if(!o||o[0]!=="lch")return;let r={mode:"lch"},[,f,a,d,p]=o;if(f.type!==h.None){if(f.type===h.Hue)return;r.l=Math.min(Math.max(0,f.value),100)}if(a.type!==h.None)r.c=Math.max(0,a.type===h.Number?a.value:a.value*150/100);if(d.type!==h.None){if(d.type===h.Percentage)return;r.h=d.value}if(p.type!==h.None)r.alpha=Math.min(1,Math.max(0,p.type===h.Number?p.value:p.value/100));return r}var Rn=nl;var al={mode:"lch",toMode:{lab:ne,rgb:(e)=>to(ne(e))},fromMode:{rgb:(e)=>oe(oo(e)),lab:oe},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Rn],serialize:(e)=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:b,fixup:W},c:b,l:b,alpha:{use:b,fixup:A}},difference:{h:we},average:{h:K}},Ke=al;var il={...Ke,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:(e)=>ne(e,"lab65"),rgb:(e)=>Re(ne(e,"lab65"))},fromMode:{rgb:(e)=>oe(Se(e),"lch65"),lab65:(e)=>oe(e,"lch65")},ranges:{l:[0,100],c:[0,133.807],h:[0,360]}},Sn=il;var ll=({l:e,u:o,v:r,alpha:f})=>{if(o===void 0)o=0;if(r===void 0)r=0;let a=Math.sqrt(o*o+r*r),d={mode:"lchuv",l:e,c:a};if(a)d.h=D(Math.atan2(r,o)*180/Math.PI);if(f!==void 0)d.alpha=f;return d},tr=ll;var fl=({l:e,c:o,h:r,alpha:f})=>{if(r===void 0)r=0;let a={mode:"luv",l:e,u:o?o*Math.cos(r/180*Math.PI):0,v:o?o*Math.sin(r/180*Math.PI):0};if(f!==void 0)a.alpha=f;return a},or=fl;var _n=(e,o,r)=>4*e/(e+15*o+3*r),Pn=(e,o,r)=>9*o/(e+15*o+3*r),sl=_n(J.X,J.Y,J.Z),dl=Pn(J.X,J.Y,J.Z),pl=(e)=>e<=Je?_e*e:116*Math.cbrt(e)-16,ml=({x:e,y:o,z:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=pl(o/J.Y),d=_n(e,o,r),p=Pn(e,o,r);if(!isFinite(d)||!isFinite(p))a=d=p=0;else d=13*a*(d-sl),p=13*a*(p-dl);let u={mode:"luv",l:a,u:d,v:p};if(f!==void 0)u.alpha=f;return u},gt=ml;var cl=(e,o,r)=>4*e/(e+15*o+3*r),ul=(e,o,r)=>9*o/(e+15*o+3*r),hl=cl(J.X,J.Y,J.Z),bl=ul(J.X,J.Y,J.Z),xl=({l:e,u:o,v:r,alpha:f})=>{if(e===void 0)e=0;if(e===0)return{mode:"xyz50",x:0,y:0,z:0};if(o===void 0)o=0;if(r===void 0)r=0;let a=o/(13*e)+hl,d=r/(13*e)+bl,p=J.Y*(e<=8?e/_e:Math.pow((e+16)/116,3)),u=p*(9*a)/(4*d),g=p*(12-3*a-20*d)/(4*d),R={mode:"xyz50",x:u,y:p,z:g};if(f!==void 0)R.alpha=f;return R},vt=xl;var gl=(e)=>tr(gt(be(e))),vl=(e)=>ue(vt(or(e))),yl={mode:"lchuv",toMode:{luv:or,rgb:vl},fromMode:{rgb:gl,luv:tr},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:b,fixup:W},c:b,l:b,alpha:{use:b,fixup:A}},difference:{h:we},average:{h:K}},Xn=yl;var kl={...ae,mode:"lrgb",toMode:{rgb:le},fromMode:{rgb:ie},parse:["srgb-linear"],serialize:"srgb-linear"},On=kl;var Ml={mode:"luv",toMode:{xyz50:vt,rgb:(e)=>ue(vt(e))},fromMode:{xyz50:gt,rgb:(e)=>gt(be(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:b,u:b,v:b,alpha:{use:b,fixup:A}}},Cn=Ml;var wl=({r:e,g:o,b:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=Math.cbrt(0.41222147079999993*e+0.5363325363*o+0.0514459929*r),d=Math.cbrt(0.2119034981999999*e+0.6806995450999999*o+0.1073969566*r),p=Math.cbrt(0.08830246189999998*e+0.2817188376*o+0.6299787005000002*r),u={mode:"oklab",l:0.2104542553*a+0.793617785*d-0.0040720468*p,a:1.9779984951*a-2.428592205*d+0.4505937099*p,b:0.0259040371*a+0.7827717662*d-0.808675766*p};if(f!==void 0)u.alpha=f;return u},ro=wl;var Tl=(e)=>{let o=ro(ie(e));if(e.r===e.b&&e.b===e.g)o.a=o.b=0;return o},Pe=Tl;var Ll=({l:e,a:o,b:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=Math.pow(e*0.9999999984505198+0.39633779217376786*o+0.2158037580607588*r,3),d=Math.pow(e*1.0000000088817609-0.10556134232365635*o-0.06385417477170591*r,3),p=Math.pow(e*1.0000000546724108-0.08948418209496575*o-1.2914855378640917*r,3),u={mode:"lrgb",r:4.076741661347994*a-3.307711590408193*d+0.230969928729428*p,g:-1.2684380040921763*a+2.6097574006633715*d-0.3413193963102197*p,b:-0.004196086541837188*a-0.7034186144594493*d+1.7076147009309444*p};if(f!==void 0)u.alpha=f;return u},xe=Ll;var zl=(e)=>le(xe(e)),He=zl;function yt(e){return 0.5*(1.170873786407767*e-0.206+Math.sqrt((1.170873786407767*e-0.206)*(1.170873786407767*e-0.206)+0.14050485436893204*e))}function Ne(e){return(e*e+0.206*e)/(1.170873786407767*(e+0.03))}function Rl(e,o){let r,f,a,d,p,u,g,R;if(-1.88170328*e-0.80936493*o>1)r=1.19086277,f=1.76576728,a=0.59662641,d=0.75515197,p=0.56771245,u=4.0767416621,g=-3.3077115913,R=0.2309699292;else if(1.81444104*e-1.19445276*o>1)r=0.73956515,f=-0.45954404,a=0.08285427,d=0.1254107,p=0.14503204,u=-1.2684380046,g=2.6097574011,R=-0.3413193965;else r=1.35733652,f=-0.00915799,a=-1.1513021,d=-0.50559606,p=0.00692167,u=-0.0041960863,g=-0.7034186147,R=1.707614701;let _=r+f*e+a*o+d*e*e+p*e*o,x=0.3963377774*e+0.2158037573*o,w=-0.1055613458*e-0.0638541728*o,M=-0.0894841775*e-1.291485548*o;{let H=1+_*x,I=1+_*w,N=1+_*M,C=H*H*H,E=I*I*I,B=N*N*N,V=3*x*H*H,Q=3*w*I*I,ge=3*M*N*N,se=6*x*x*H,pe=6*w*w*I,ye=6*M*M*N,ve=u*C+g*E+R*B,Ce=u*V+g*Q+R*ge,Ve=u*se+g*pe+R*ye;_=_-ve*Ce/(Ce*Ce-0.5*ve*Ve)}return _}function rr(e,o){let r=Rl(e,o),f=xe({l:1,a:r*e,b:r*o}),a=Math.cbrt(1/Math.max(f.r,f.g,f.b)),d=a*r;return[a,d]}function Sl(e,o,r,f,a,d=null){if(!d)d=rr(e,o);let p;if((r-a)*d[1]-(d[0]-a)*f<=0)p=d[1]*a/(f*d[0]+d[1]*(a-r));else{p=d[1]*(a-1)/(f*(d[0]-1)+d[1]*(a-r));{let u=r-a,g=f,R=0.3963377774*e+0.2158037573*o,_=-0.1055613458*e-0.0638541728*o,x=-0.0894841775*e-1.291485548*o,w=u+g*R,M=u+g*_,H=u+g*x;{let I=a*(1-p)+p*r,N=p*f,C=I+N*R,E=I+N*_,B=I+N*x,V=C*C*C,Q=E*E*E,ge=B*B*B,se=3*w*C*C,pe=3*M*E*E,ye=3*H*B*B,ve=6*w*w*C,Ce=6*M*M*E,Ve=6*H*H*B,Lr=4.0767416621*V-3.3077115913*Q+0.2309699292*ge-1,co=4.0767416621*se-3.3077115913*pe+0.2309699292*ye,Ma=4.0767416621*ve-3.3077115913*Ce+0.2309699292*Ve,zr=co/(co*co-0.5*Lr*Ma),uo=-Lr*zr,Rr=-1.2684380046*V+2.6097574011*Q-0.3413193965*ge-1,ho=-1.2684380046*se+2.6097574011*pe-0.3413193965*ye,wa=-1.2684380046*ve+2.6097574011*Ce-0.3413193965*Ve,Sr=ho/(ho*ho-0.5*Rr*wa),bo=-Rr*Sr,_r=-0.0041960863*V-0.7034186147*Q+1.707614701*ge-1,xo=-0.0041960863*se-0.7034186147*pe+1.707614701*ye,Ta=-0.0041960863*ve-0.7034186147*Ce+1.707614701*Ve,Pr=xo/(xo*xo-0.5*_r*Ta),go=-_r*Pr;uo=zr>=0?uo:1e6,bo=Sr>=0?bo:1e6,go=Pr>=0?go:1e6,p+=Math.min(uo,Math.min(bo,go))}}}return p}function kt(e,o,r=null){if(!r)r=rr(e,o);let f=r[0],a=r[1];return[a/f,a/(1-f)]}function no(e,o,r){let f=rr(o,r),a=Sl(o,r,e,1,e,f),d=kt(o,r,f),p=0.11516993+1/(7.4477897+4.1590124*r+o*(-2.19557347+1.75198401*r+o*(-2.13704948-10.02301043*r+o*(-4.24894561+5.38770819*r+4.69891013*o)))),u=0.11239642+1/(1.6132032-0.68124379*r+o*(0.40370612+0.90148123*r+o*(-0.27087943+0.6122399*r+o*(0.00299215-0.45399568*r-0.14661872*o)))),g=a/Math.min(e*d[0],(1-e)*d[1]),R=e*p,_=(1-e)*u,x=0.9*g*Math.sqrt(Math.sqrt(1/(1/(R*R*R*R)+1/(_*_*_*_))));return R=e*0.4,_=(1-e)*0.8,[Math.sqrt(1/(1/(R*R)+1/(_*_))),x,a]}function ao(e){let o=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,f=e.b!==void 0?e.b:0,a={mode:"okhsl",l:yt(o)};if(e.alpha!==void 0)a.alpha=e.alpha;let d=Math.sqrt(r*r+f*f);if(!d)return a.s=0,a;let[p,u,g]=no(o,r/d,f/d),R;if(d<u){let _=0,x=0.8*p,w=1-x/u;R=(d-_)/(x+w*(d-_))*0.8}else{let _=u,x=0.2*u*u*1.25*1.25/p,w=1-x/(g-u);R=0.8+0.2*((d-_)/(x+w*(d-_)))}if(R)a.s=R,a.h=D(Math.atan2(f,r)*180/Math.PI);return a}function io(e){let o=e.h!==void 0?e.h:0,r=e.s!==void 0?e.s:0,f=e.l!==void 0?e.l:0,a={mode:"oklab",l:Ne(f)};if(e.alpha!==void 0)a.alpha=e.alpha;if(!r||f===1)return a.a=a.b=0,a;let d=Math.cos(o/180*Math.PI),p=Math.sin(o/180*Math.PI),[u,g,R]=no(a.l,d,p),_,x,w,M;if(r<0.8)_=1.25*r,x=0,w=0.8*u,M=1-w/g;else _=5*(r-0.8),x=g,w=0.2*g*g*1.25*1.25/u,M=1-w/(R-g);let H=x+_*w/(1-M*_);return a.a=H*d,a.b=H*p,a}var _l={...Nt,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:ao,rgb:(e)=>ao(Pe(e))},toMode:{oklab:io,rgb:(e)=>He(io(e))}},An=_l;function lo(e){let o=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,f=e.b!==void 0?e.b:0,a=Math.sqrt(r*r+f*f),d=a?r/a:1,p=a?f/a:1,[u,g]=kt(d,p),R=0.5,_=1-R/u,x=g/(a+o*g),w=x*o,M=x*a,H=Ne(w),I=M*H/w,N=xe({l:H,a:d*I,b:p*I}),C=Math.cbrt(1/Math.max(N.r,N.g,N.b,0));o=o/C,a=a/C*yt(o)/o,o=yt(o);let E={mode:"okhsv",s:a?(R+g)*M/(g*R+g*_*M):0,v:o?o/w:0};if(E.s)E.h=D(Math.atan2(f,r)*180/Math.PI);if(e.alpha!==void 0)E.alpha=e.alpha;return E}function fo(e){let o={mode:"oklab"};if(e.alpha!==void 0)o.alpha=e.alpha;let r=e.h!==void 0?e.h:0,f=e.s!==void 0?e.s:0,a=e.v!==void 0?e.v:0,d=Math.cos(r/180*Math.PI),p=Math.sin(r/180*Math.PI),[u,g]=kt(d,p),R=0.5,_=1-R/u,x=1-f*R/(R+g-g*_*f),w=f*g*R/(R+g-g*_*f),M=Ne(x),H=w*M/x,I=xe({l:M,a:d*H,b:p*H}),N=Math.cbrt(1/Math.max(I.r,I.g,I.b,0)),C=Ne(a*x),E=w*C/x;return o.l=C*N,o.a=E*d*N,o.b=E*p*N,o}var Pl={...qt,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:lo,rgb:(e)=>lo(Pe(e))},toMode:{oklab:fo,rgb:(e)=>He(fo(e))}},In=Pl;function Hl(e,o){if(!o||o[0]!=="oklab")return;let r={mode:"oklab"},[,f,a,d,p]=o;if(f.type===h.Hue||a.type===h.Hue||d.type===h.Hue)return;if(f.type!==h.None)r.l=Math.min(Math.max(0,f.type===h.Number?f.value:f.value/100),1);if(a.type!==h.None)r.a=a.type===h.Number?a.value:a.value*0.4/100;if(d.type!==h.None)r.b=d.type===h.Number?d.value:d.value*0.4/100;if(p.type!==h.None)r.alpha=Math.min(1,Math.max(0,p.type===h.Number?p.value:p.value/100));return r}var Nn=Hl;var Xl={...We,mode:"oklab",toMode:{lrgb:xe,rgb:He},fromMode:{lrgb:ro,rgb:Pe},ranges:{l:[0,1],a:[-0.4,0.4],b:[-0.4,0.4]},parse:[Nn],serialize:(e)=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},qn=Xl;function Ol(e,o){if(!o||o[0]!=="oklch")return;let r={mode:"oklch"},[,f,a,d,p]=o;if(f.type!==h.None){if(f.type===h.Hue)return;r.l=Math.min(Math.max(0,f.type===h.Number?f.value:f.value/100),1)}if(a.type!==h.None)r.c=Math.max(0,a.type===h.Number?a.value:a.value*0.4/100);if(d.type!==h.None){if(d.type===h.Percentage)return;r.h=d.value}if(p.type!==h.None)r.alpha=Math.min(1,Math.max(0,p.type===h.Number?p.value:p.value/100));return r}var jn=Ol;var Cl={...Ke,mode:"oklch",toMode:{oklab:(e)=>ne(e,"oklab"),rgb:(e)=>He(ne(e,"oklab"))},fromMode:{rgb:(e)=>oe(Pe(e),"oklch"),oklab:(e)=>oe(e,"oklch")},parse:[jn],serialize:(e)=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,0.4],h:[0,360]}},En=Cl;var Al=(e)=>{let{r:o,g:r,b:f,alpha:a}=ie(e),d={mode:"xyz65",x:0.486570948648216*o+0.265667693169093*r+0.1982172852343625*f,y:0.2289745640697487*o+0.6917385218365062*r+0.079286914093745*f,z:0*o+0.0451133818589026*r+1.043944368900976*f};if(a!==void 0)d.alpha=a;return d},nr=Al;var Il=({x:e,y:o,z:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=le({r:e*2.4934969119414263-o*0.9313836179191242-0.402710784450717*r,g:e*-0.8294889695615749+o*1.7626640603183465+0.0236246858419436*r,b:e*0.0358458302437845-o*0.0761723892680418+0.9568845240076871*r},"p3");if(f!==void 0)a.alpha=f;return a},ar=Il;var $l={...ae,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:(e)=>ar(ee(e)),xyz65:ar},toMode:{rgb:(e)=>te(nr(e)),xyz65:nr}},Jn=$l;var ir=(e)=>{let o=Math.abs(e);if(o>=0.001953125)return Math.sign(e)*Math.pow(o,0.5555555555555556);return 16*e},Nl=({x:e,y:o,z:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a={mode:"prophoto",r:ir(e*1.3457868816471585-o*0.2555720873797946-0.0511018649755453*r),g:ir(e*-0.5446307051249019+o*1.5082477428451466+0.0205274474364214*r),b:ir(e*0+o*0+1.2119675456389452*r)};if(f!==void 0)a.alpha=f;return a},lr=Nl;var fr=(e=0)=>{let o=Math.abs(e);if(o>=0.03125)return Math.sign(e)*Math.pow(o,1.8);return e/16},ql=(e)=>{let o=fr(e.r),r=fr(e.g),f=fr(e.b),a={mode:"xyz50",x:0.7977666449006423*o+0.1351812974005331*r+0.0313477341283922*f,y:0.2880748288194013*o+0.7118352342418731*r+0.0000899369387256*f,z:0*o+0*r+0.8251046025104602*f};if(e.alpha!==void 0)a.alpha=e.alpha;return a},sr=ql;var jl={...ae,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:lr,rgb:(e)=>lr(be(e))},toMode:{xyz50:sr,rgb:(e)=>ue(sr(e))}},Un=jl;var pr=(e)=>{let o=Math.abs(e);if(o>0.018053968510807)return(Math.sign(e)||1)*(1.09929682680944*Math.pow(o,0.45)-0.09929682680944008);return 4.5*e},Dl=({x:e,y:o,z:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a={mode:"rec2020",r:pr(e*1.7166511879712683-o*0.3556707837763925-0.2533662813736599*r),g:pr(e*-0.6666843518324893+o*1.6164812366349395+0.0157685458139111*r),b:pr(e*0.0176398574453108-o*0.0427706132578085+0.9421031212354739*r)};if(f!==void 0)a.alpha=f;return a},cr=Dl;var xr=(e=0)=>{let o=Math.abs(e);if(o<0.08124285829863151)return e/4.5;return(Math.sign(e)||1)*Math.pow((o+1.09929682680944-1)/1.09929682680944,2.2222222222222223)},El=(e)=>{let o=xr(e.r),r=xr(e.g),f=xr(e.b),a={mode:"xyz65",x:0.6369580483012911*o+0.1446169035862083*r+0.1688809751641721*f,y:0.262700212011267*o+0.6779980715188708*r+0.059301716469862*f,z:0*o+0.0280726930490874*r+1.0609850577107909*f};if(e.alpha!==void 0)a.alpha=e.alpha;return a},vr=El;var Jl={...ae,mode:"rec2020",fromMode:{xyz65:cr,rgb:(e)=>cr(ee(e))},toMode:{xyz65:vr,rgb:(e)=>te(vr(e))},parse:["rec2020"],serialize:"rec2020"},Yn=Jl;var Xe=0.0037930732552754493,so=Math.cbrt(0.0037930732552754493);var kr=(e)=>Math.cbrt(e)-so,Bl=(e)=>{let{r:o,g:r,b:f,alpha:a}=ie(e),d=kr(0.3*o+0.622*r+0.078*f+Xe),p=kr(0.23*o+0.692*r+0.078*f+Xe),u=kr(0.2434226892454782*o+0.2047674442449682*r+0.5518098665095535*f+Xe),g={mode:"xyb",x:(d-p)/2,y:(d+p)/2,b:u-(d+p)/2};if(a!==void 0)g.alpha=a;return g},Gn=Bl;var Mr=(e)=>Math.pow(e+so,3),Fl=({x:e,y:o,b:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a=Mr(e+o)-Xe,d=Mr(o-e)-Xe,p=Mr(r+o)-Xe,u=le({r:11.031566904639861*a-9.866943908131562*d-0.16462299650829934*p,g:-3.2541473810744237*a+4.418770377582723*d-0.16462299650829934*p,b:-3.6588512867136815*a+2.7129230459360922*d+1.9459282407775895*p});if(f!==void 0)u.alpha=f;return u},Zn=Fl;var Ul={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Zn},fromMode:{rgb:Gn},ranges:{x:[-0.0154,0.0281],y:[0,0.8453],b:[-0.2778,0.388]},interpolate:{x:b,y:b,b,alpha:{use:b,fixup:A}}},Kn=Ul;var Yl={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:ue,lab:Ye},fromMode:{rgb:be,lab:Ue},channels:["x","y","z","alpha"],ranges:{x:[0,0.964],y:[0,0.999],z:[0,0.825]},interpolate:{x:b,y:b,z:b,alpha:{use:b,fixup:A}}},Vn=Yl;var Wl=(e)=>{let{x:o,y:r,z:f,alpha:a}=e;if(o===void 0)o=0;if(r===void 0)r=0;if(f===void 0)f=0;let d={mode:"xyz50",x:1.0479298208405488*o+0.0229467933410191*r-0.0501922295431356*f,y:0.0296278156881593*o+0.990434484573249*r-0.0170738250293851*f,z:-0.0092430581525912*o+0.0150551448965779*r+0.7518742899580008*f};if(a!==void 0)d.alpha=a;return d},Qn=Wl;var Gl=(e)=>{let{x:o,y:r,z:f,alpha:a}=e;if(o===void 0)o=0;if(r===void 0)r=0;if(f===void 0)f=0;let d={mode:"xyz65",x:0.9554734527042182*o-0.0230985368742614*r+0.0632593086610217*f,y:-0.0283697069632081*o+1.0099954580058226*r+0.021041398966943*f,z:0.0123140016883199*o-0.0205076964334779*r+1.3303659366080753*f};if(a!==void 0)d.alpha=a;return d},ea=Gl;var Zl={mode:"xyz65",toMode:{rgb:te,xyz50:Qn},fromMode:{rgb:ee,xyz50:ea},ranges:{x:[0,0.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:b,y:b,z:b,alpha:{use:b,fixup:A}}},ta=Zl;var Kl=({r:e,g:o,b:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a={mode:"yiq",y:0.29889531*e+0.58662247*o+0.11448223*r,i:0.59597799*e-0.2741761*o-0.32180189*r,q:0.21147017*e-0.52261711*o+0.31114694*r};if(f!==void 0)a.alpha=f;return a},ra=Kl;var Vl=({y:e,i:o,q:r,alpha:f})=>{if(e===void 0)e=0;if(o===void 0)o=0;if(r===void 0)r=0;let a={mode:"rgb",r:e+0.95608445*o+0.6208885*r,g:e-0.27137664*o-0.6486059*r,b:e-1.10561724*o+1.70250126*r};if(f!==void 0)a.alpha=f;return a},na=Vl;var Ql={mode:"yiq",toMode:{rgb:na},fromMode:{rgb:ra},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-0.595,0.595],q:[-0.522,0.522]},interpolate:{y:b,i:b,q:b,alpha:{use:b,fixup:A}}},la=Ql;var e0=(e,o)=>Math.round(e*(o=Math.pow(10,o)))/o,t0=(e=4)=>(o)=>typeof o==="number"?e0(o,e):o,fa=t0;var Mh=fa(2),o0=(e)=>Math.max(0,Math.min(1,e||0)),wr=(e)=>Math.round(o0(e)*255),r0=ce("rgb"),wh=ce("hsl"),da=(e)=>{if(e===void 0)return;let o=wr(e.r),r=wr(e.g),f=wr(e.b);return"#"+(16777216|o<<16|r<<8|f).toString(16).slice(1)};var po=(e)=>da(r0(e));var pa=(e,o="rgb",r=!1)=>{let f=o?Ie(o).channels:null,a=o?ce(o):rt;return(d)=>{let p=a(d);if(!p)return;let u=(f||Ie(p.mode).channels).reduce((R,_)=>{let x=e(p[_],_,p,o);if(x!==void 0&&!isNaN(x))R[_]=x;return R},{mode:p.mode});if(!r)return u;let g=rt(d);if(g&&g.mode!==u.mode)return ce(g.mode)(u);return u}},ma=(e,o,r)=>{if(o!=="alpha")return(e||0)*(r.alpha!==void 0?r.alpha:1);return e},ca=(e,o,r)=>{if(o!=="alpha"&&r.alpha!==0)return(e||0)/(r.alpha!==void 0?r.alpha:1);return e};var n0=(e)=>{if(e[0]===void 0)e[0]=0;if(e[e.length-1]===void 0)e[e.length-1]=1;let o=1,r,f,a,d;while(o<e.length){if(e[o]===void 0){f=o,a=e[o-1],r=o;while(e[r]===void 0)r++;d=(e[r]-a)/(r-o+1);while(o<r)e[o]=a+(o+1-f)*d,o++}else if(e[o]<e[o-1])e[o]=e[o-1];o++}return e},ua=n0;var a0=(e=0.5)=>(o)=>e<=0?1:e>=1?0:Math.pow(o,Math.log(0.5)/Math.log(e)),ha=a0;var mo=(e)=>typeof e==="function",qe=(e)=>e&&typeof e==="object",ba=(e)=>typeof e==="number",xa=(e,o="rgb",r,f)=>{let a=Ie(o),d=ce(o),p=[],u=[],g={};e.forEach((w)=>{if(Array.isArray(w))p.push(d(w[0])),u.push(w[1]);else if(ba(w)||mo(w))g[u.length]=w;else p.push(d(w)),u.push(void 0)}),ua(u);let R=a.channels.reduce((w,M)=>{let H;if(qe(r)&&qe(r[M])&&r[M].fixup)H=r[M].fixup;else if(qe(a.interpolate[M])&&a.interpolate[M].fixup)H=a.interpolate[M].fixup;else H=(I)=>I;return w[M]=H(p.map((I)=>I[M])),w},{});if(f){let w=p.map((M,H)=>a.channels.reduce((I,N)=>(I[N]=R[N][H],I),{mode:o}));R=a.channels.reduce((M,H)=>(M[H]=w.map((I)=>{let N=f(I[H],H,I,o);return isNaN(N)?void 0:N}),M),{})}let _=a.channels.reduce((w,M)=>{let H;if(mo(r))H=r;else if(qe(r)&&mo(r[M]))H=r[M];else if(qe(r)&&qe(r[M])&&r[M].use)H=r[M].use;else if(mo(a.interpolate[M]))H=a.interpolate[M];else if(qe(a.interpolate[M]))H=a.interpolate[M].use;return w[M]=H(R[M]),w},{}),x=p.length-1;return(w)=>{if(w=Math.min(Math.max(0,w),1),w<=u[0])return p[0];if(w>u[x])return p[x];let M=0;while(u[M]<w)M++;let H=u[M-1],I=u[M]-H,N=(w-H)/I,C=g[M]||g[0];if(C!==void 0){if(ba(C))C=ha((C-H)/I);N=C(N)}let E=(M-1+N)/x;return a.channels.reduce((B,V)=>{let Q=_[V](E);if(Q!==void 0)B[V]=Q;return B},{mode:o})}},Tr=(e,o="rgb",r)=>xa(e,o,r),ga=(e,o)=>(r,f="rgb",a)=>{let d=o?pa(o,f):void 0,p=xa(r,f,a,e);return d?(u)=>d(p(u)):p},i0=ga(ma,ca);var k1=j(en),M1=j(dn),w1=j(cn),T1=j(un),L1=j(hn),z1=j(Nt),R1=j(qt),S1=j(yn),_1=j(kn),P1=j(wn),H1=j(Tn),X1=j(We),O1=j(zn),C1=j(Ke),A1=j(Sn),I1=j(Xn),$1=j(On),N1=j(Cn),q1=j(An),j1=j(In),D1=j(qn),E1=j(En),J1=j(Jn),B1=j(Un),F1=j(Yn),U1=j(ae),Y1=j(Kn),W1=j(Vn),G1=j(ta),Z1=j(la);function jo(e){let o=nt(e.trim());return o&&po(o)}function ia(e,o,r){return po(Tr([e,o],"rgb")(r))}var va={sans:'"Inter Variable", ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif',serif:'"Source Serif 4 Variable", "Iowan Old Style", Georgia, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", serif',mono:'"JetBrains Mono Variable", ui-monospace, "SF Mono", Menlo, Consolas, monospace'},ya={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem",field:"10px",dock:"20px",sheet:"28px"},Dn={scheme:"light",colors:ka({bg:"oklch(0.984 0.002 95)",sidebar:"oklch(0.966 0.003 95)",panel:"oklch(1 0 0)",raised:"oklch(0.94 0.004 95)",bubble:"oklch(0.948 0.004 95)",line:"oklch(0.905 0.005 95)",lineStrong:"oklch(0.84 0.006 95)",ink:"oklch(0.22 0.006 250)",dim:"oklch(0.47 0.008 250)",faint:"oklch(0.63 0.008 250)",accent:"oklch(0.53 0.085 172)",accentStrong:"oklch(0.47 0.085 172)",accentInk:"oklch(0.99 0.01 172)",accentSoft:"oklch(0.53 0.085 172 / 0.11)",danger:"oklch(0.55 0.17 27)",dangerFill:"oklch(0.52 0.17 27)",dangerFillHover:"oklch(0.47 0.17 27)",dangerInk:"oklch(1 0 0)",success:"oklch(0.56 0.11 155)",warning:"oklch(0.7 0.14 70)",overlay:"oklch(0.2 0.01 250 / 0.32)",scrim:"oklch(0.16 0.005 250 / 0.6)",scrimInk:"oklch(1 0 0)",knob:"oklch(1 0 0)",highlight:"oklch(0.85 0.15 90 / 0.65)",facet:"oklch(0.32 0.012 240)",facetLit:"oklch(0.46 0.012 240)",facetShade:"oklch(0.27 0.01 240)",syntax:{foreground:"#393a34",comment:"#a0ada0",punctuation:"#999999",keyword:"#1e754f",storage:"#ab5959",string:"#b56959",regexp:"#ab5e3f",number:"#2f798a",constant:"#a65e2b",function:"#59873a",type:"#2e8f82",property:"#998418",variable:"#b07d48",namespace:"#b05a78",link:"#393a34",inserted:"#22863a",deleted:"#b31d28",changed:"#e36209"},chartPalette:["#2a78d6","#eb6834","#1baf7a","#eda100","#e87ba4","#008300","#4a3aa7","#e34948"],chartSequential:["#cde2fb","#86b6ef","#3987e5","#1c5cab","#0d366b"]}),fonts:va,shadows:{float:"0 1px 2px oklch(0.2 0.01 250 / 0.05), 0 8px 28px -6px oklch(0.2 0.01 250 / 0.14)",composer:"0 1px 2px oklch(0.2 0.01 250 / 0.04), 0 6px 24px -8px oklch(0.2 0.01 250 / 0.1)",sheen:"inset 0 1px 0 oklch(1 0 0 / 0.05)",sheenFill:"inset 0 1px 0 oklch(1 0 0 / 0.12)",knob:"0 0 0 0.5px oklch(0 0 0 / 0.1), 0 1px 1px oklch(0 0 0 / 0.08), 0 3px 8px -1px oklch(0 0 0 / 0.18)",groove:"inset 0 1px 1.5px oklch(0 0 0 / 0.12), inset 0 0 0 0.5px oklch(0 0 0 / 0.05)"},radii:ya},sa={scheme:"dark",colors:ka({bg:"oklch(0.215 0.005 250)",sidebar:"oklch(0.19 0.005 250)",panel:"oklch(0.248 0.006 250)",raised:"oklch(0.285 0.006 250)",bubble:"oklch(0.27 0.006 250)",line:"oklch(0.3 0.006 250)",lineStrong:"oklch(0.37 0.007 250)",ink:"oklch(0.94 0.003 250)",dim:"oklch(0.77 0.005 250)",faint:"oklch(0.6 0.006 250)",accent:"oklch(0.76 0.085 172)",accentStrong:"oklch(0.82 0.08 172)",accentInk:"oklch(0.22 0.03 172)",accentSoft:"oklch(0.76 0.085 172 / 0.13)",danger:"oklch(0.72 0.14 27)",dangerFill:"oklch(0.5 0.165 25)",dangerFillHover:"oklch(0.55 0.175 25)",dangerInk:"oklch(1 0 0)",success:"oklch(0.76 0.12 155)",warning:"oklch(0.8 0.13 75)",overlay:"oklch(0.1 0.005 250 / 0.55)",scrim:"oklch(0.1 0.005 250 / 0.7)",scrimInk:"oklch(1 0 0)",knob:"oklch(1 0 0)",highlight:"oklch(0.62 0.13 90 / 0.55)",facet:"oklch(0.76 0.01 240)",facetLit:"oklch(0.91 0.006 240)",facetShade:"oklch(0.64 0.012 240)",syntax:{foreground:"#dbd7ca",comment:"#758575",punctuation:"#666666",keyword:"#4d9375",storage:"#cb7676",string:"#c98a7d",regexp:"#c4704f",number:"#4c9a91",constant:"#c99076",function:"#80a665",type:"#5da994",property:"#b8a965",variable:"#bd976a",namespace:"#db889a",link:"#dedcd5",inserted:"#85e89d",deleted:"#fdaeb7",changed:"#ffab70"},chartPalette:["#3987e5","#d95926","#199e70","#c98500","#d55181","#008300","#9085e9","#e66767"],chartSequential:["#184f95","#2a78d6","#5598e7","#9ec5f4","#cde2fb"]}),fonts:va,shadows:{float:"0 1px 2px oklch(0 0 0 / 0.3), 0 10px 32px -6px oklch(0 0 0 / 0.5)",composer:"0 1px 2px oklch(0 0 0 / 0.25), 0 8px 28px -8px oklch(0 0 0 / 0.45)",sheen:"inset 0 1px 0 oklch(1 0 0 / 0.05)",sheenFill:"inset 0 1px 0 oklch(1 0 0 / 0.12)",knob:"0 0 0 0.5px oklch(0 0 0 / 0.1), 0 1px 1px oklch(0 0 0 / 0.08), 0 3px 8px -1px oklch(0 0 0 / 0.18)",groove:"inset 0 1px 1.5px oklch(0 0 0 / 0.12), inset 0 0 0 0.5px oklch(0 0 0 / 0.05)"},radii:ya};function ka(e,o,r){let a=Object.fromEntries(["bg","sidebar","panel","raised","bubble","ink","dim","faint","line","lineStrong","accent","danger","success","warning"].map((d)=>[d,jo(e[d])??o?.[d]??"#808080"]));return{...e,hex:{...a,...r}}}var aa={"surface.panel":"overflow-hidden rounded-xl border border-line bg-panel text-ink","surface.card":"rounded-2xl border border-line bg-panel text-ink","surface.subtle":"rounded-xl border border-line/60 bg-raised/25","surface.interactive":"overflow-hidden rounded-xl border border-line bg-panel/70 transition-colors hover:border-line-strong hover:bg-panel","surface.dock":"relative flex flex-col overflow-hidden rounded-dock border border-line bg-panel shadow-[var(--shadow-sheen),var(--shadow-composer)] outline-none","surface.empty":"py-8 text-center text-xs text-faint","surface.emptyDashed":"flex flex-col items-center gap-3 rounded-2xl border border-dashed border-line-strong/70 px-6 py-16 text-center","surface.floating":"z-50 min-w-40 overflow-hidden rounded-xl border border-line bg-panel p-1 text-ink shadow-float outline-none data-[state=closed]:animate-float-out data-[state=open]:animate-float-in","surface.floatingItem":"relative flex min-h-8 w-full cursor-default items-center gap-2.5 rounded-lg px-2 py-1.5 text-left text-ui outline-none select-none transition-colors duration-100 data-highlighted:bg-raised data-[selected=true]:bg-raised [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-faint","surface.floatingLabel":"px-2 pt-1.5 pb-1 text-xs font-medium text-faint","surface.floatingSeparator":"-mx-1 my-1 h-px bg-line","surface.toolbarFloating":"flex items-center gap-0.5 rounded-lg border border-line/70 bg-panel/85 p-0.5 shadow-xs backdrop-blur-sm","surface.tooltip":"z-50 flex origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-ink px-2 py-1 text-xs font-medium text-bg shadow-float select-none data-[state=closed]:animate-float-out data-[state=delayed-open]:animate-float-in data-[state=instant-open]:animate-fade","surface.dialog":"fixed z-50 flex max-h-[min(92dvh,48rem)] w-full flex-col border border-line bg-panel shadow-float outline-none max-sm:sheet-surface max-sm:data-[state=closed]:animate-sheet-out max-sm:data-[state=open]:animate-sheet-in sm:top-1/2 sm:left-1/2 sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl sm:data-[state=closed]:animate-dialog-out sm:data-[state=open]:animate-dialog-in","surface.overlay":"fixed inset-0 z-40 bg-overlay backdrop-blur-[2px] data-[state=closed]:animate-overlay-out data-[state=open]:animate-overlay-in","toast.item":"pointer-events-auto flex w-full items-start gap-2.5 rounded-xl border border-line bg-panel px-3.5 py-2.5 text-ui leading-5 text-ink shadow-float outline-none data-[state=closed]:animate-float-out data-[state=open]:animate-rise data-[swipe=end]:animate-float-out data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)]","toast.danger":"border-danger/35","button.base":"relative inline-flex shrink-0 items-center justify-center gap-1.5 font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,scale,opacity] duration-150 ease-out-quint select-none active:scale-[0.96] data-[state=open]:scale-100 data-[state=open]:active:scale-100 disabled:pointer-events-none disabled:opacity-45 [&_svg]:shrink-0","button.primary":"bg-accent text-accent-ink shadow-sheen-fill hover:bg-accent-strong","button.secondary":"border border-line bg-panel text-ink shadow-xs hover:border-line-strong hover:bg-raised/60","button.ghost":"text-dim hover:bg-raised hover:text-ink data-[state=open]:bg-raised data-[state=open]:text-ink","button.danger":"bg-danger-fill text-danger-ink shadow-sheen-fill hover:bg-danger-fill-hover","button.dangerGhost":"text-danger hover:bg-danger/10","button.inverse":"bg-ink text-bg hover:bg-ink/85","control.input":"w-full rounded-field border border-line bg-bg px-3 text-sm text-ink outline-none transition-[border-color,box-shadow] duration-150 placeholder:text-faint hover:border-line-strong focus:border-accent/60 focus:shadow-[0_0_0_3px_var(--color-accent-soft)] disabled:opacity-50 aria-invalid:border-danger/60","control.chipTrigger":"inline-flex h-8 max-w-full min-w-0 items-center gap-1.5 rounded-full border border-line bg-panel px-3 text-xs text-dim shadow-xs transition-[background-color,border-color,color,scale] duration-150 ease-out-quint select-none hover:border-line-strong hover:bg-raised/60 hover:text-ink active:scale-[0.97] data-[state=open]:border-line-strong data-[state=open]:bg-raised data-[state=open]:text-ink disabled:pointer-events-none disabled:opacity-45","control.fieldTrigger":"inline-flex h-9 w-full min-w-0 items-center gap-2 rounded-field border border-line bg-bg px-3 text-sm text-ink transition-[border-color,box-shadow] duration-150 select-none hover:border-line-strong data-[state=open]:border-accent/60 data-[state=open]:shadow-[0_0_0_3px_var(--color-accent-soft)] disabled:pointer-events-none disabled:opacity-50","control.segmented":"relative inline-flex rounded-xl bg-raised p-1","control.segmentedPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-panel opacity-0 shadow-xs will-change-transform","control.switch":"group/switch relative inline-flex h-5.5 w-9.5 shrink-0 items-center rounded-full p-0.5 transition-colors duration-200 disabled:opacity-45 data-[state=checked]:bg-accent data-[state=unchecked]:bg-line-strong","control.switchThumb":"block h-4.5 w-4.5 rounded-full bg-knob shadow-knob transition-[translate,width] duration-300 ease-spring group-active/switch:w-5.5 data-[state=checked]:translate-x-4 group-active/switch:data-[state=checked]:translate-x-3","control.kbd":"inline-flex h-4.5 min-w-4.5 items-center justify-center rounded border border-line bg-raised px-1 font-sans text-2xs leading-none font-medium text-faint","control.badge":"inline-flex items-center rounded-md bg-raised px-1.5 py-0.5 text-2xs leading-none font-medium text-faint","control.badgeAccent":"inline-flex shrink-0 items-center rounded-md bg-accent-soft px-1.5 py-0.5 text-2xs leading-none font-medium text-accent","control.iconCircle":"group relative flex size-7 items-center justify-center rounded-full border border-line bg-raised/40 text-dim transition-all duration-200 hover:border-accent hover:bg-accent/10 hover:text-accent disabled:opacity-35","command.inputWrap":"flex shrink-0 items-center gap-2 border-b border-line px-3","command.input":"h-11 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-faint","command.group":"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:pt-1.5 [&_[cmdk-group-heading]]:pb-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-faint","command.row":"relative flex w-full cursor-default gap-3 rounded-lg px-2.5 py-2 text-left outline-none select-none transition-colors duration-100 data-[selected=true]:bg-raised","code.base":"overflow-x-auto font-mono text-xs leading-[1.65] [&_pre]:bg-transparent! [&_pre]:outline-none","code.block":"group/code my-4 font-sans not-italic first:mt-0 last:mb-0","page.container":"mx-auto max-w-3xl animate-fade px-4 pt-6 pb-16 sm:px-6 sm:pt-10","page.title":"min-w-0 flex-1 font-serif text-title leading-tight tracking-[-0.015em]","page.description":"mb-8 text-sm text-dim","workspace.header":"box-content flex h-12 shrink-0 items-center gap-2 border-b border-line/60 px-3 pt-[env(safe-area-inset-top)]","settings.groupTitle":"text-ui font-medium text-dim","settings.groupDesc":"mt-0.5 text-xs text-faint","settings.groupBox":"divide-y divide-line overflow-hidden rounded-2xl border border-line bg-panel","settings.row":"flex flex-wrap items-center justify-between gap-4 p-4","settings.rowTitle":"text-sm font-medium text-ink","settings.rowDesc":"mt-0.5 text-xs leading-5 break-words text-dim","status.base":"inline-flex shrink-0 items-center gap-1.5 rounded-full px-2 py-1 text-2xs leading-none font-medium","status.success":"bg-success/10 text-success","status.warning":"bg-warning/10 text-warning","status.danger":"bg-danger/10 text-danger","status.neutral":"bg-raised text-dim","callout.base":"flex animate-rise items-start gap-2.5 rounded-xl border px-3.5 py-2.5 text-ui leading-5","callout.info":"border-line bg-raised/40 text-dim","callout.danger":"border-danger/25 bg-danger/6 text-danger","chat.banner":"flex shrink-0 flex-wrap items-center justify-between gap-2 border-b border-line bg-raised/45 px-4 py-2 text-xs text-dim","chat.dockBanner":"flex shrink-0 flex-wrap items-center justify-between gap-2 rounded-dock border border-line bg-raised/55 px-4 py-3 text-xs text-dim","chat.userBubble":"rounded-dock rounded-br-md bg-bubble px-4 py-2.5 text-body leading-[1.6] text-ink break-words whitespace-pre-wrap","chat.attachmentCard":"flex h-8 items-center gap-1.5 rounded-xl border border-line bg-panel px-2.5 text-xs text-dim","chat.prose":"font-serif text-body leading-[1.78] tracking-[0.005em] break-words text-ink/84 [font-optical-sizing:auto]","chat.metaBadge":"inline-flex cursor-default select-none items-center gap-1 rounded-md border border-line/60 bg-raised/60 px-1.5 py-0.5 text-2xs text-faint transition-colors hover:border-line hover:bg-raised hover:text-dim","chat.stepRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1.5 text-left text-ui transition-colors hover:bg-raised/60","chat.timelineRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1 text-left text-xs text-faint transition-colors enabled:hover:bg-raised/60 enabled:hover:text-dim","chat.thinkingBody":"mt-1.5 mb-2.5 font-serif text-ui leading-[1.65] text-dim italic [&_code]:font-mono [&_code]:text-xs [&_code]:not-italic [&_pre]:not-italic","chat.toolOutput":"max-h-80 overflow-auto px-4 py-3 font-mono text-xs leading-[1.65] whitespace-pre-wrap break-words","chat.diffAdd":"bg-success/10 text-success","chat.diffRemove":"bg-danger/9 text-danger","chat.foldPill":"group/fold flex cursor-pointer select-none items-center gap-2 rounded-full border border-line/70 bg-panel/90 px-3.5 py-1 text-xs text-faint transition-all hover:border-line hover:bg-raised/80 hover:text-dim active:scale-[0.98]","chat.scrollBottomBtn":"flex h-8 items-center gap-1.5 rounded-full border border-line bg-panel/95 px-3 text-xs font-medium text-dim shadow-float backdrop-blur-sm transition-[color,background-color,border-color,transform] hover:border-line-strong hover:bg-raised/80 hover:text-ink active:scale-95","search.highlight":"rounded-sm bg-accent-soft px-0.5 font-medium text-ink","search.filterChip":"inline-flex h-6 items-center gap-1 rounded-md border border-line bg-panel px-2 text-xs text-dim transition-colors hover:border-line-strong hover:bg-raised/60 hover:text-ink data-[state=open]:border-line-strong data-[state=open]:bg-raised","search.filterChipActive":"inline-flex h-6 items-center gap-1 rounded-md border border-accent/35 bg-accent-soft pl-2 pr-1 text-xs font-medium text-accent transition-colors hover:border-accent/55","composer.box":"group/composer relative min-w-0 rounded-dock border border-line bg-panel shadow-[var(--shadow-sheen),var(--shadow-composer)] transition-[border-color,box-shadow] duration-300 focus-within:border-line-strong focus-within:shadow-[var(--shadow-sheen),0_14px_38px_-10px_color-mix(in_oklch,var(--color-accent)_14%,transparent),var(--shadow-composer)]","composer.input":"relative block min-h-13 w-full resize-none bg-transparent px-4 pt-3.5 pb-1.5 text-md leading-6 outline-none placeholder:text-faint","composer.attachment":"group/att flex h-9 items-center gap-2 rounded-xl border border-line bg-raised/60 pr-1.5 pl-2.5 text-xs","sidebar.shell":"flex h-full flex-col bg-sidebar pt-[env(safe-area-inset-top)]","sidebar.drawer":"fixed inset-y-0 left-0 z-0 flex w-[min(86vw,24rem)] flex-col bg-sidebar outline-none transition-[translate,opacity] duration-380 ease-out-quint md:hidden","sidebar.rightShell":"flex h-full w-full flex-col border-l border-line bg-bg","sidebar.rightDrawer":"fixed inset-y-0 right-0 z-50 flex w-[min(24rem,90vw)] flex-col border-l border-line bg-sidebar shadow-float outline-none","sidebar.navItem":"group flex h-9 w-full items-center gap-2.5 rounded-lg px-2 text-left text-sm select-none transition-colors duration-150 ease-out-quint max-md:h-10 max-md:rounded-xl max-md:text-md","sidebar.sectionTitle":"flex-1 text-xs font-medium text-faint","sidebar.hoverPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised/65 opacity-0 will-change-transform max-md:rounded-xl","sidebar.activePill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised opacity-0 max-md:rounded-xl shadow-sheen will-change-transform","markdown.p":"my-4 in-data-[streaming]:animate-stream-block first:mt-0 last:mb-0 [&:has(+ol)]:mb-1.5 [&:has(+ul)]:mb-1.5","markdown.strong":"font-semibold text-ink","markdown.a":"font-medium text-accent underline decoration-accent/40 underline-offset-[3px] transition-colors hover:text-accent-strong hover:decoration-accent","markdown.fileChip":"mx-[0.18em] inline-flex max-w-full cursor-pointer items-baseline gap-1 rounded-md bg-raised/85 px-[0.42em] py-[0.08em] align-baseline font-mono text-[0.84em] leading-[1.4] text-ink/92 no-underline transition-colors hover:bg-accent-soft hover:text-accent active:scale-[0.99]","markdown.h1":"mt-6 mb-2.5 in-data-[streaming]:animate-stream-block text-[1.28em] leading-snug font-semibold text-ink first:mt-0","markdown.h2":"mt-6 mb-2.5 in-data-[streaming]:animate-stream-block text-[1.16em] leading-snug font-semibold text-ink first:mt-0","markdown.h3":"mt-5.5 mb-2 in-data-[streaming]:animate-stream-block text-[1.06em] font-semibold text-ink first:mt-0","markdown.h4":"mt-4.5 mb-1.5 in-data-[streaming]:animate-stream-block font-semibold text-ink first:mt-0","markdown.ul":"mt-1.5 mb-5 list-disc pl-[1.5em] marker:text-faint first:mt-0 last:mb-0","markdown.ol":"mt-1.5 mb-5 list-decimal pl-[1.6em] marker:text-[0.9em] marker:text-faint first:mt-0 last:mb-0","markdown.li":"my-2 in-data-[streaming]:animate-stream-block pl-1 [&>blockquote]:my-2.5 [&>div]:my-2.5 [&>div:first-child]:mt-2 [&>ol]:mt-1.5 [&>ol]:mb-3 [&>ol:first-child]:mt-1.5 [&>ol:last-child]:mb-3 [&>p]:my-2 [&>p:first-child]:mt-0 [&>p:last-child]:mb-0 [&>ul]:mt-1.5 [&>ul]:mb-3 [&>ul:first-child]:mt-1.5 [&>ul:last-child]:mb-3","markdown.blockquote":"my-3.5 in-data-[streaming]:animate-stream-block border-l-[3px] border-line-strong pl-3.5 text-dim italic","markdown.hr":"my-5 in-data-[streaming]:animate-stream-block border-line","markdown.inlineCode":"mx-[0.18em] rounded-md bg-raised/85 px-[0.38em] py-[0.12em] font-mono text-[0.84em] text-ink/95 break-words","markdown.details":"my-3.5 in-data-[streaming]:animate-stream-block overflow-hidden rounded-xl border border-line bg-raised/25 not-italic first:mt-0 last:mb-0","markdown.detailsTrigger":"group/collapsible flex w-full cursor-pointer items-center gap-2 px-3.5 py-2.5 text-left font-sans text-ui leading-snug font-medium text-ink transition-colors hover:bg-raised/55 data-[state=open]:bg-raised/35","markdown.detailsContent":"border-t border-line px-3.5 py-3 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0","markdown.imageButton":"my-3 block cursor-zoom-in overflow-hidden rounded-xl border border-line bg-panel text-left transition-[transform,filter] hover:brightness-95 active:scale-[0.99] focus-visible:ring-2 focus-visible:ring-accent outline-none","markdown.tableWrap":"my-4 in-data-[streaming]:animate-stream-block overflow-x-auto rounded-xl border border-line font-sans not-italic first:mt-0 last:mb-0","markdown.table":"w-full border-collapse text-ui","markdown.thead":"bg-raised/50","markdown.th":"min-w-24 border-b border-line px-3 py-2 text-left font-semibold","markdown.td":"min-w-24 border-t border-line px-3 py-2 align-top [&_code]:wrap-anywhere"};
8
+ export{Ge,ur,Dr,Nr,Ur,L,v,Ji,zo,Fr,oa,jo,ia,Dn,sa,aa};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{tt,Pt}from"./chunk-97bazdk3.js";import{rt}from"./chunk-tpv5hz99.js";import{lt,De,H}from"./chunk-912knnfg.js";import{Ce,oe,_,Re,ie,St,K}from"./chunk-v4p8807b.js";var{awsEndpointFunctions:Y,emitWarningIfUnsupportedVersion:J,createDefaultUserAgentProvider:X,NODE_APP_ID_CONFIG_OPTIONS:Z,getAwsRegionExtensionConfiguration:ee,resolveAwsRegionExtensionConfiguration:te,resolveUserAgentConfig:se,resolveHostHeaderConfig:ne,getUserAgentPlugin:re,getHostHeaderPlugin:ae,getLoggerPlugin:ce,getRecursionDetectionPlugin:ue}=H(),{NoAuthSigner:de,getHttpAuthSchemeEndpointRuleSetPlugin:pe,DefaultIdentityProviderConfig:le,getHttpSigningPlugin:he}=De(),{normalizeProvider:F,getSmithyContext:ge,ServiceException:me,NoOpLogger:Se,emitWarningIfUnsupportedVersion:_e,loadConfigsForDefaultMode:Ee,getDefaultExtensionConfiguration:fe,resolveDefaultRuntimeConfig:Pe,Client:ve,makeBuilder:xe,createAggregatedClient:Ie}=oe(),{Command:Es}=oe();var{resolveDefaultsModeConfig:ye,loadConfig:a,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Ae,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Oe,NODE_REGION_CONFIG_OPTIONS:we,NODE_REGION_CONFIG_FILE_OPTIONS:Te,resolveRegionConfig:Ne}=_(),{BinaryDecisionDiagram:ke,EndpointCache:be,decideEndpoint:Fe,customEndpointFunctions:qe,resolveEndpointConfig:$e,getEndpointPlugin:He}=Re(),{parseUrl:Ue,getHttpHandlerExtensionConfiguration:Ge,resolveHttpHandlerRuntimeConfig:Me,getContentLengthPlugin:ze}=K(),{DEFAULT_RETRY_MODE:je,NODE_RETRY_MODE_CONFIG_OPTIONS:Le,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Ke,resolveRetryConfig:Ve,getRetryPlugin:Be}=lt(),{TypeRegistry:q,getSchemaSerdePlugin:We}=Ce(),{resolveAwsSdkSigV4Config:Qe,AwsSdkSigV4Signer:Ye,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Je}=tt(),{toUtf8:Xe,fromUtf8:Ze,toBase64:et,fromBase64:st,calculateBodyLength:ot}=ie(),{streamCollector:nt,NodeHttpHandler:it}=rt(),{AwsRestJsonProtocol:at}=Pt(),{Sha256:ct}=St(),ut=async(e,t,s)=>({operation:ge(t).operation,region:await F(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function dt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function pt(e){return{schemeId:"smithy.api#noAuth"}}var ht=(e)=>{let t=[];switch(e.operation){case"GetRoleCredentials":{t.push(pt());break}default:t.push(dt(e))}return t},gt=(e)=>{let t=Qe(e);return Object.assign(t,{authSchemePreference:F(e.authSchemePreference??[])})},mt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),_t={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Et="3.997.47",ft={version:Et},p="ref",c=-1,g=!0,T="isSet",U="PartitionResult",m="booleanEquals",R="getAttr",N={[p]:"Endpoint"},x={[p]:U},d={},D=[{[p]:"Region"}],k={conditions:[[T,[N]],[T,D],["aws.partition",D,U],[m,[{[p]:"UseFIPS"},g]],[m,[{[p]:"UseDualStack"},g]],[m,[{fn:R,argv:[x,"supportsDualStack"]},g]],[m,[{fn:R,argv:[x,"supportsFIPS"]},g]],["stringEquals",[{fn:R,argv:[x,"name"]},"aws-us-gov"]]],results:[[c],[c,"Invalid Configuration: FIPS and custom endpoint are not supported"],[c,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[N,d],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",d],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",d],[c,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",d],[c,"Invalid Configuration: Missing Region"]]},vt=2,n=1e8,Rt=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]),xt=ke.from(Rt,vt,k.conditions,k.results),Ct=new be({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),It=(e,t={})=>Ct.get(e,()=>Fe(xt,{endpointParams:e,logger:t.logger}));qe.aws=Y;class u extends me{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e);Object.setPrototypeOf(this,u.prototype)}}class C extends u{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype)}}class I extends u{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype)}}class y extends u{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype)}}class A extends u{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype)}}var yt="AccessTokenType",At="GetRoleCredentials",Ot="GetRoleCredentialsRequest",wt="GetRoleCredentialsResponse",Tt="InvalidRequestException",Nt="RoleCredentials",Dt="ResourceNotFoundException",kt="SecretAccessKeyType",bt="SessionTokenType",Ft="TooManyRequestsException",qt="UnauthorizedException",$t="accountId",Ht="accessKeyId",Ut="accessToken",Gt="account_id",S="client",E="error",Mt="expiration",zt="http",f="httpError",jt="httpHeader",b="httpQuery",P="message",Lt="roleCredentials",Kt="roleName",Vt="role_name",G="smithy.ts.sdk.synthetic.com.amazonaws.sso",Bt="secretAccessKey",Wt="sessionToken",Qt="x-amz-sso_bearer_token",r="com.amazonaws.sso",M=new q(G),Yt=[-3,G,"SSOServiceException",0,[],[]];M.registerError(Yt,u);var l=new q(r),Jt=[-3,r,Tt,{[E]:S,[f]:400},[P],[0]];l.registerError(Jt,C);var Xt=[-3,r,Dt,{[E]:S,[f]:404},[P],[0]];l.registerError(Xt,I);var Zt=[-3,r,Ft,{[E]:S,[f]:429},[P],[0]];l.registerError(Zt,y);var es=[-3,r,qt,{[E]:S,[f]:401},[P],[0]];l.registerError(es,A);var ts=[M,l],ss=[0,r,yt,8,0],os=[0,r,kt,8,0],ns=[0,r,bt,8,0],rs=[3,r,Ot,0,[Kt,$t,Ut],[[0,{[b]:Vt}],[0,{[b]:Gt}],[()=>ss,{[jt]:Qt}]],3],is=[3,r,wt,0,[Lt],[[()=>as,0]]],as=[3,r,Nt,0,[Ht,Bt,Wt,Mt],[0,[()=>os,0],[()=>ns,0],1]],cs=[9,r,At,{[zt]:["GET","/federation/credentials",200]},()=>rs,()=>is],us=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??st,base64Encoder:e?.base64Encoder??et,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??It,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ht,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Ye},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new de}],logger:e?.logger??new Se,protocol:e?.protocol??at,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:ts,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",sha256:e?.sha256??ct,urlParser:e?.urlParser??Ue,utf8Decoder:e?.utf8Decoder??Ze,utf8Encoder:e?.utf8Encoder??Xe}),ds=(e)=>{_e(process.version);let t=ye(e),s=()=>t().then(Ee),i=us(e);J(process.version);let o={profile:e?.profile,logger:i.logger};return{...i,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??a(Je,o),bodyLengthChecker:e?.bodyLengthChecker??ot,defaultUserAgentProvider:e?.defaultUserAgentProvider??X({serviceId:i.serviceId,clientVersion:ft.version}),maxAttempts:e?.maxAttempts??a(Ke,e),region:e?.region??a(we,{...Te,...o}),requestHandler:it.create(e?.requestHandler??s),retryMode:e?.retryMode??a({...Le,default:async()=>(await s()).retryMode||je},e),streamCollector:e?.streamCollector??nt,useDualstackEndpoint:e?.useDualstackEndpoint??a(Oe,o),useFipsEndpoint:e?.useFipsEndpoint??a(Ae,o),userAgentAppId:e?.userAgentAppId??a(Z,o)}},ps=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:i}=e;return{setHttpAuthScheme(o){let h=t.findIndex((v)=>v.schemeId===o.schemeId);if(h===-1)t.push(o);else t.splice(h,1,o)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(o){s=o},httpAuthSchemeProvider(){return s},setCredentials(o){i=o},credentials(){return i}}},ls=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),hs=(e,t)=>{let s=Object.assign(ee(e),fe(e),Ge(e),ps(e));return t.forEach((i)=>i.configure(s)),Object.assign(e,te(s),Pe(s),Me(s),ls(s))};class O extends ve{config;constructor(...[e]){let t=ds(e||{});super(t);this.initConfig=t;let s=mt(t),i=se(s),o=Ve(i),h=Ne(o),v=ne(h),V=$e(v),B=gt(V),W=hs(B,e?.extensions||[]);this.config=W,this.middlewareStack.use(We(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(ze(this.config)),this.middlewareStack.use(ae(this.config)),this.middlewareStack.use(ce(this.config)),this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(pe(this.config,{httpAuthSchemeParametersProvider:ut,identityProviderConfigProvider:async(Q)=>new le({"aws.auth#sigv4":Q.credentials})})),this.middlewareStack.use(he(this.config))}destroy(){super.destroy()}}var gs=xe(_t,"SWBPortalService","SSOClient",He),ms={},Ss=(e,t,s,i)=>[];class w extends gs(ms,Ss,"GetRoleCredentials",cs){}var _s={GetRoleCredentialsCommand:w};class z extends O{}Ie(_s,z);var j=w;var L=O;export{j as GetRoleCredentialsCommand,L as SSOClient};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{Pr}from"./chunk-j01t6mnq.js";var y=Promise.resolve(),M=60000,T=1e4,E=(r)=>r instanceof Error?r.message:String(r);function R(){return new Worker(new URL("./ui-test-worker.js",import.meta.url))}function I(r,e,t){if(!Number.isInteger(e)||e<1||e>t)throw Error(`${r} must be between 1 and ${t}`)}async function eo(r,e,t={}){let l=t.timeoutMs??M,u=t.importTimeoutMs??T;I("timeoutMs",l,M),I("importTimeoutMs",u,T);let i=y,p=Promise.withResolvers();y=i.then(()=>p.promise);let o=new AbortController,n=t.signal?AbortSignal.any([t.signal,o.signal]):o.signal,g,b,f,w=new Map,c=Promise.withResolvers(),k=()=>c.reject(n.reason??Error("UI test cancelled"));n.addEventListener("abort",k,{once:!0});async function h(d,s){let m=new AbortController;w.set(s.id,m);try{if(!t.runtime)throw Error("API unavailable during module inspection");let a=await Pr(t.runtime,s.input,AbortSignal.any([n,m.signal]));if(!n.aborted)d.postMessage({type:"response",id:s.id,response:a})}catch(a){if(!n.aborted)d.postMessage({type:"response",id:s.id,error:E(a)})}finally{w.delete(s.id)}}try{n.throwIfAborted(),f=setTimeout(()=>o.abort(Error(`UI execution timed out after ${l}ms`)),l),await Promise.race([i,c.promise]),n.throwIfAborted();let d=typeof r==="string"?{source:r,css:t.css}:await Promise.race([r(),c.promise.then(()=>{throw Error("Worker finished before startup")})]);n.throwIfAborted();let s=R();return g=s,s.onerror=(m)=>c.reject(Error(m.message)),s.onmessage=(m)=>{let a=m.data;switch(a.type){case"importing":b=setTimeout(()=>o.abort(Error(`UI import timed out after ${u}ms`)),u);break;case"imported":clearTimeout(b);break;case"done":c.resolve(a.result);break;case"error":c.reject(Error(a.error));break;case"cancel":w.get(a.id)?.abort();break;case"request":h(s,a);break}},s.postMessage({type:"start",...d,id:e,input:t.input}),await c.promise}finally{clearTimeout(f),clearTimeout(b),n.removeEventListener("abort",k),o.abort();for(let d of w.values())d.abort();g?.terminate(),p.resolve()}}async function Ua(r,e,t){t?.throwIfAborted();let l=r.plugins.list().find((o)=>o.id===e.id);if(l?.status!=="enabled")throw Error("Load and enable the plugin before ui_test");if([e.slot,e.view,e.codeBlock].filter(Boolean).length!==1)throw Error("ui_test requires exactly one of slot, view or codeBlock");let u=e.view?l.web?.find((o)=>o.view===e.view):void 0;if(e.view&&u&&e.kind&&u.kind!==e.kind)throw Error(`View kind mismatch: expected ${u.kind}, got ${e.kind}`);let i=e.kind??u?.kind;if(i!==void 0&&i!=="page"&&i!=="tab"&&i!=="card"&&i!=="sidebar")throw Error(`Unsupported view kind: ${i}`);let p=await eo(async()=>{let o=await r.plugins.webBundle(e.id);if(!o)throw Error("Plugin has no dynamic Web bundle");let n=await r.plugins.webCSS(e.id);return{source:o,css:n}},e.id,{input:{...e,kind:i},runtime:r,signal:t,timeoutMs:e.timeoutMs,importTimeoutMs:e.importTimeoutMs});if(!("steps"in p))throw Error("Worker returned an invalid UI report");return p}
3
+ export{eo,Ua};
@@ -0,0 +1,8 @@
1
+ // @bun
2
+ import{V}from"./chunk-bh29df86.js";import{E}from"./chunk-qqfdg01g.js";import{J,Ae}from"./chunk-cjeyy6da.js";import{W,xr,We}from"./chunk-q1s5r204.js";class u extends Error{code;diagnosticDetails;constructor(r,t,n){super(r);this.name="PiMessagesResponseError",this.code=t,this.diagnosticDetails=n}}function x(r){try{let t=JSON.parse(r),n=t?.error;return t&&typeof n==="object"&&n!==null&&!Array.isArray(n)?t:void 0}catch{return}}function m(r){return r.length>8192?`${r.slice(0,8192)}\u2026`:r}function y(r,t,n){let e=typeof n?.error?.message==="string"?n.error.message:void 0,s=typeof n?.error?.code==="string"?n.error.code:void 0,a=e??t,o=s?` (${s})`:"";return`${r.status} ${r.statusText}: ${a}${o}`}function k(r,t,n,e){let s=x(e),a=typeof s?.error?.code==="string"?s.error.code:void 0;return new u(y(n,e,s),a,{version:1,provider:r.provider,model:r.id,url:t.toString(),status:n.status,statusText:n.statusText,...s?.error===void 0?{}:{error:s.error},...s?{}:{body:m(e)},timestampMs:Date.now()})}function h(){return{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}function l(r,t){if(!t)return;We(r,{type:"pi_messages_rewrite",timestamp:Date.now(),details:{...t}})}function w(r){let t={role:"assistant",content:[],api:r.api,provider:r.provider,model:r.id,usage:h(),stopReason:"pending",timestamp:Date.now()},n=new Map;return(e)=>{switch(e.type){case"done":if(Object.assign(t,{stopReason:e.reason,usage:e.usage,responseId:e.responseId}),e.providerThinkingLevel!==void 0)t.providerThinkingLevel=e.providerThinkingLevel;return l(t,e.rewrite),{type:"done",reason:e.reason,message:t};case"error":if(Object.assign(t,{stopReason:e.reason,usage:e.usage,errorMessage:e.errorMessage,responseId:e.responseId}),e.providerThinkingLevel!==void 0)t.providerThinkingLevel=e.providerThinkingLevel;return l(t,e.rewrite),{type:"error",reason:e.reason,error:t};case"start":break;case"text_start":t.content[e.contentIndex]={type:"text",text:""};break;case"text_delta":t.content[e.contentIndex].text+=e.delta;break;case"text_end":Object.assign(t.content[e.contentIndex],{text:e.content,textSignature:e.contentSignature});break;case"thinking_start":t.content[e.contentIndex]={type:"thinking",thinking:""};break;case"thinking_delta":t.content[e.contentIndex].thinking+=e.delta;break;case"thinking_end":Object.assign(t.content[e.contentIndex],{thinking:e.content,thinkingSignature:e.contentSignature,redacted:e.redacted});break;case"toolcall_start":t.content[e.contentIndex]={type:"toolCall",id:e.id,name:e.toolName,arguments:{}},n.set(e.contentIndex,"");break;case"toolcall_delta":{let s=`${n.get(e.contentIndex)??""}${e.delta}`;n.set(e.contentIndex,s),t.content[e.contentIndex].arguments=V(s);break}case"toolcall_end":return Object.assign(t.content[e.contentIndex],e.toolCall),n.delete(e.contentIndex),{type:"toolcall_end",contentIndex:e.contentIndex,toolCall:t.content[e.contentIndex],partial:t}}return{...e,partial:t}}}async function*b(r){let t=new TextDecoder,n=r.getReader(),e="";try{while(!0){let{done:s,value:a}=await n.read();e+=s?t.decode():t.decode(a,{stream:!0}),e=e.replace(/\r\n/g,`
3
+ `);let o=e.indexOf(`
4
+
5
+ `);while(o!==-1){let c=f(e.slice(0,o));if(c)yield c;e=e.slice(o+2),o=e.indexOf(`
6
+
7
+ `)}if(s)break}if(e.trim()){let s=f(e);if(s)yield s}}finally{n.releaseLock()}}function f(r){let t=r.split(`
8
+ `).find((n)=>n.startsWith("data:"))?.slice(5).trim();return t&&t!=="[DONE]"?JSON.parse(t):void 0}function I(r,t,n){let e=n?"aborted":"error",s={role:"assistant",content:[],api:r.api,provider:r.provider,model:r.id,usage:h(),stopReason:e,errorMessage:t instanceof Error?t.message:String(t),timestamp:Date.now()};if(!n&&t instanceof u)We(s,xr("pi_messages_response_failure",t,t.diagnosticDetails));return{type:"error",reason:e,error:s}}function T(r,t){if(r)return r;return E("PI_CACHE_RETENTION",t)==="long"?"long":void 0}var R=(r,t,n)=>{let e=new W,s=w(r);return(async()=>{try{let a=n?.apiKey;if(!a)throw Error(`No API key provided for provider "${r.provider}"`);let o=new URL(`${r.baseUrl.replace(/\/+$/u,"")}/messages`);if(n?.debug)o.searchParams.set("debug","1");let c={model:r.id,context:t,options:{temperature:n?.temperature,maxTokens:n?.maxTokens,reasoning:n?.reasoning,cacheRetention:T(n?.cacheRetention,n?.env),sessionId:n?.sessionId,toolChoice:n?.toolChoice}},p=await n?.onPayload?.(c,r);if(p!==void 0)c=p;let i=await(n?.fetch??globalThis.fetch)(o,{method:"POST",headers:{authorization:`Bearer ${a}`,accept:"text/event-stream","content-type":"application/json",...Ae(n?.headers)},body:JSON.stringify(c),signal:n?.signal});if(await n?.onResponse?.({status:i.status,headers:J(i.headers)},r),!i.ok){let d=await i.text();throw k(r,o,i,d)}if(!i.body)throw Error(`${r.provider} response has no body`);for await(let d of b(i.body)){await n?.onProviderStreamEvent?.(d,r);let g=s(d);if(e.push(g),g.type==="done"||g.type==="error")return}throw Error(`${r.provider} stream ended without a terminal event`)}catch(a){e.push(I(r,a,n?.signal?.aborted??!1))}})(),e},P=(r,t,n)=>{let e=n;return R(r,t,{...n,reasoning:n?.reasoning,toolChoice:n?.toolChoice,debug:e?.debug})};export{u as PiMessagesResponseError,R as stream,P as streamSimple};
@@ -0,0 +1,16 @@
1
+ // @bun
2
+ import{Di,$t,Ct,C,uo,Ni}from"./chunk-jdrqn8m1.js";import{o,e,p,sr,Gt,D,Se,I,qi,An,lr}from"./chunk-tyzzbhr5.js";import*as S from"fs/promises";import*as ne from"fs";import*as O from"path";import*as $e from"child_process";import*as at from"crypto";import*as ct from"readline";function x(a){if(a.inputSchema.type!=="object")throw Error(`JSON schema for tool "${a.name}" must be an object, but got ${a.inputSchema.type}`);return{type:"custom",name:a.name,input_schema:a.inputSchema,description:a.description,run:a.run,parse:(r)=>r,...a.close?{close:a.close}:{}}}var F=Ct.promises,J=448,pt=384;function ae(a,r){let t=C.relative(a,r);return t===""||!t.startsWith(".."+C.sep)&&t!==".."&&!C.isAbsolute(t)}async function Ee(a,r){for(let t of a)if(ae(await X(C.resolve(t)),r))return t;return}var yt=40;function Z(a){let r=a?.code;return typeof r==="string"?r:void 0}async function X(a){let r=[],t=a,i=0;for(;;){let n;try{n=await F.realpath(t)}catch(s){let c;try{c=(await F.lstat(t)).isSymbolicLink()}catch(l){let f=Z(l);if(f!=="ENOENT"&&f!=="ENOTDIR")throw l;let h=C.dirname(t);if(h===t)throw l;r.push(C.basename(t)),t=h;continue}if(!c)throw s;if(++i>yt)throw Object.assign(Error("too many levels of symbolic links"),{code:"ELOOP"});t=C.resolve(C.dirname(t),await F.readlink(t));continue}return r.length?C.join(n,...r.reverse()):n}}async function Ae(a,r,t){let i=t?.allowedRoots??[],n=await X(C.resolve(a)),s;try{s=await X(C.resolve(n,r))}catch(l){throw new I(q(l,`path ${JSON.stringify(r)}`))}if(ae(n,s)||await Ee(i,s)!==void 0)return s;let c=i.length?"the session's working directory and its other permitted directories":"the session's working directory";throw new I(`path ${JSON.stringify(r)} is outside ${c}`)}async function be(a,r){let t=C.dirname(a),i=C.join(t,`.tmp-${process.pid}-${$t.randomUUID()}`),n=await F.stat(a).then((c)=>c.mode&511,()=>{return}),s;try{if(s=await F.open(i,"wx",pt),n!==void 0)await s.chmod(n);await s.writeFile(r,"utf-8"),await s.sync(),await s.close(),s=void 0,await F.rename(i,a)}catch(c){if(s)await s.close().catch(()=>{});throw await F.unlink(i).catch(()=>{}),c}}function q(a,r){let t=Z(a);switch(t){case"ENOENT":return`${r}: no such file or directory`;case"EACCES":case"EPERM":return`${r}: permission denied`;case"ENOTDIR":return`${r}: not a directory`;case"EISDIR":return`${r}: is a directory`;case"ELOOP":return`${r}: too many levels of symbolic links`;case"ENAMETOOLONG":return`${r}: file name too long`;case"ENOSPC":return`${r}: no space left on device`;case"EMFILE":case"ENFILE":return`${r}: too many open files`;default:return`${r}: ${t!==void 0?`i/o error (${t})`:"i/o error"}`}}var k=Ct.promises,wt=Ni.promisify(Di.execFile);async function _t(a){let{client:r,sessionId:t}=a;if(!r)return async()=>{};let i=D(r),n=a.session;if(!n){if(t===void 0)return async()=>{};i.warn("AgentToolContext.sessionId is deprecated and costs an extra session fetch; fetch the session once and set `session` instead",{component:"agent-tool-context"}),n=await r.beta.sessions.retrieve(t)}let s=C.resolve(a.workdir,"skills"),c=[];for(let l of n.agent.skills)try{let f=await r.beta.skills.versions.retrieve(l.version,{skill_id:l.skill_id}),h=C.basename(f.name.trim());if(h===""||h==="."||h==="..")h=l.skill_id;let d=C.resolve(s,h);if(d!==s&&!d.startsWith(s+C.sep)){i.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:f.name});continue}let m=await r.beta.skills.versions.download(f.id,{skill_id:l.skill_id});await k.rm(d,{recursive:!0,force:!0}),await k.mkdir(d,{recursive:!0,mode:J}),c.push(d),await Ce(m,d),i.info("downloaded skill",{component:"agent-tool-context",skill_id:l.skill_id,version:f.id,dest:d})}catch(f){i.warn("failed to download skill",{component:"agent-tool-context",skill_id:l.skill_id,error:String(f)})}return async()=>{for(let l of c)await k.rm(l,{recursive:!0,force:!0}).catch((f)=>{i.warn("failed to clean up skill",{component:"agent-tool-context",dest:l,error:String(f)})})}}function gt(a){for(let r of a){let t=r.trim();if(!t)continue;if(C.isAbsolute(t)||t.split(/[\\/]/).includes(".."))throw new p(`refusing to extract unsafe archive member: ${t}`)}}var Me="skill archive listing is inconsistent; refusing to extract",St={unzip:new Set(["-","d","?"]),tar:new Set(["-","d","C"])};function xe(a){let r=a.split(`
3
+ `);if(r[r.length-1]==="")r.pop();return r}function Et(a,r){return/^[\x20-\x7E]+$/.test(r)&&!/[\\^#]/.test(r)&&!(a==="unzip"&&r.startsWith("-"))}function bt(a,r,t){let i=xe(r),n=xe(t);if(i.length!==n.length)throw new p(Me);let s=[],c=[];return i.forEach((l,f)=>{if(St[a].has(n[f].charAt(0))){s.push(l);return}if(!Et(a,l))throw new p(`refusing to extract archive: cannot safely exclude member ${JSON.stringify(l)}`);c.push(l)}),{plain:s,special:c}}async function De(a){for(let r of await k.readdir(a,{withFileTypes:!0}))if(r.isDirectory())await De(C.join(a,r.name));else if(!r.isFile())throw new p(Me)}async function Oe(a,r){try{let{stdout:t}=await wt(a,r);return t}catch(t){if(Z(t)==="ENOENT")throw new p(`skill extraction requires the \`${a}\` command, but it was not found on PATH`);throw t}}function Ot(a){let r,t=!1;for(let i of a){let n=i.trim().split("/").filter((c)=>c!==""&&c!==".");if(n.length===0)continue;let s=n[0];if(r===void 0)r=s;else if(s!==r)return"";if(n.length>1)t=!0}return r!==void 0&&t?r:""}async function Ce(a,r){let t=C.join(r,`.skill-archive-${process.pid}-${Date.now()}`);if(!a.body)throw new p("skill download response had no body");await uo.promises.pipeline(uo.Readable.fromWeb(a.body),Ct.createWriteStream(t));let i=C.join(C.dirname(r),`.skill-stage-${process.pid}-${Date.now()}`),n=C.join(C.dirname(r),`.skill-exclude-${process.pid}-${Date.now()}`);try{let s=await vt(t,4),c=s.length>=4&&s[0]===80&&s[1]===75&&s[2]===3&&s[3]===4,l=c?"unzip":"tar",f=await Oe(l,c?["-Z1",t]:["-tf",t]),h=await Oe(l,c?["-Z","--h","--t",t]:["-tvf",t]),{plain:d,special:m}=bt(l,f,h);gt([...d,...m]);let _=Ot(d);if(await k.mkdir(i,{recursive:!0,mode:J}),d.length>0)await Oe(l,await Mt(l,t,i,m,n));await De(i);let E=_?C.join(i,_):i,A=await k.readdir(E).catch((M)=>{throw Z(M)==="ENOENT"?new p(Me):M});for(let M of A)await k.rename(C.join(E,M),C.join(r,M))}finally{await k.rm(t,{force:!0}),await k.rm(n,{force:!0}),await k.rm(i,{recursive:!0,force:!0})}}async function Mt(a,r,t,i,n){let s=i.map((c)=>c.replace(/[*?[\\]/g,"\\$&"));if(a==="unzip")return["-oq",r,"-d",t,...s.length>0?["-x",...s]:[]];if(s.length===0)return["-xf",r,"-C",t];return await k.writeFile(n,s.join(`
4
+ `)+`
5
+ `,{flag:"wx",mode:384}),["-xf",r,"-C",t,"-X",n]}async function vt(a,r){let t=await k.open(a,"r");try{let i=Buffer.alloc(r),{bytesRead:n}=await t.read(i,0,r,0);return i.subarray(0,n)}finally{await t.close()}}var g=Ct.promises,z=Ct.constants,Ue=448,kt=384,It=448,ke=z.O_NOFOLLOW??0,Rt=z.O_NONBLOCK??0,y=(()=>{class a extends Error{constructor(r,t){super(`path ${JSON.stringify(t)} ${r}`);this.name="FileStoreError",this.reason=r,this.relPath=t}}return a.ESCAPES_ROOT="escapes the store root",a.IS_A_SYMLINK="is a symlink",a.NOT_A_FILE="is not a regular file",a.NOT_A_DIRECTORY="is not a directory",a.NOT_UTF8="is not valid utf-8",a.MOVE_DESTINATION_EXISTS="already exists",a})();function Ie(a){return a.startsWith("/")&&!a.split("/").includes("..")}var ve=(()=>{class a{constructor(r,t,i=!1){this.hashes=new Map,this.rootPath=r,this.removedOnDispose=t,this.decoder=i?new TextDecoder("utf-8",{fatal:!0}):void 0}static async open(r,t){if(!Nt())throw Error("FileStore requires O_NOFOLLOW support on this platform");let i=!1;try{await g.lstat(r)}catch(n){if(n.code!=="ENOENT")throw n;i=!0}return new a(C.resolve(r),i,t?.utf8??!1)}async createRoot(){await Tt(this.rootPath)}root(){return{path:this.rootPath,removedOnDispose:this.removedOnDispose}}async dispose(){if(!this.removedOnDispose)return;await g.rm(this.rootPath,{recursive:!0,force:!0})}async put(r,t,i){let n=r.replace(/\\/g,"/");if(n.endsWith("/")||n.endsWith("/.")||n===""||n===".")throw new y(y.NOT_A_FILE,r);let s=this.resolveUnderRoot(r),c=typeof t==="string"?sr(t):t;this.requireUtf8(r,c),await Fe(this.rootPath,C.dirname(s)),await Lt(s,c,i?.executable??!1)}async get(r){let t=this.resolveUnderRoot(r),i;try{i=await je(r,t)}catch(s){if(s.code==="ENOENT")return null;throw s}let n;try{let s=await i.readFile();n=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}finally{await i.close()}return this.requireUtf8(r,n),n}async ls(r="/"){let t=this.resolveUnderRoot(r);return new Set((await Pe(this.rootPath,r,t)).map(([i])=>i))}async findSymlinks(r="/"){let t=this.resolveUnderRoot(r);return xt(this.rootPath,r,t)}async hashtree(r="/"){let t=this.resolveUnderRoot(r),i=ce.nowNs(),n=Object.create(null);for(let[s,c]of await Pe(this.rootPath,r,t)){let l=await this.hashViaCache(s,c,i);if(l!==null)n[s]=l}return n}async hashFile(r){let t=this.resolveUnderRoot(r),i;try{i=await g.lstat(t,{bigint:!0})}catch(s){if(s.code==="ENOENT")return null;throw s}if(i.isSymbolicLink())throw new y(y.IS_A_SYMLINK,r);if(!i.isFile())throw new y(y.NOT_A_FILE,r);let n=C.relative(this.rootPath,t).split(C.sep).join("/");return this.hashViaCache(n,t,ce.nowNs())}async move(r,t){let i=this.resolveUnderRoot(r),n=this.resolveUnderRoot(t);if(i===this.rootPath||n===this.rootPath)return;if(await g.stat(n).then(()=>!0,()=>!1))throw new y(y.MOVE_DESTINATION_EXISTS,t);await Fe(this.rootPath,C.dirname(n)),await g.rename(i,n)}async remove(r){let t=this.resolveUnderRoot(r);if(t===this.rootPath)return;let i;try{i=await g.lstat(t,{bigint:!0})}catch(n){if(n.code==="ENOENT")return;throw n}if(i.isDirectory())await g.rm(t,{recursive:!0,force:!0});else try{await g.unlink(t)}catch(n){if(n.code!=="ENOENT")throw n}}resolveUnderRoot(r){let t=r.replace(/\\/g,"/").replace(/^\/+/,""),i=t.split("/").filter((n)=>n!==""&&n!==".");if(C.posix.isAbsolute(t)||i.includes(".."))throw new y(y.ESCAPES_ROOT,r);return i.length===0?this.rootPath:C.join(this.rootPath,...i)}requireUtf8(r,t){if(!this.decoder)return;try{this.decoder.decode(t)}catch{throw new y(y.NOT_UTF8,r)}}async hashViaCache(r,t,i){let n;try{n=await g.lstat(t,{bigint:!0})}catch(l){if(l.code==="ENOENT")return null;throw l}if(!n.isFile())return null;let s=this.hashes.get(r),c;if(s!==void 0&&Ft(s,n))c=s.sha;else try{c=await ce.hashFile(t)}catch(l){let f=l.code;if(f==="ENOENT"||l instanceof y)return null;if(f==="ELOOP"||f==="EMLINK")return null;throw l}if(Pt(n,i))this.hashes.set(r,{mtimeNs:n.mtimeNs,ctimeNs:n.ctimeNs,size:n.size,sha:c});return c}}return a.isPathLegal=Ie,a})();function Nt(){return ke!==0}async function Tt(a){let r=[],t=a;for(;;){try{await g.stat(t);break}catch(n){let s=n.code;if(s!=="ENOENT"&&s!=="ENOTDIR"&&s!=="ELOOP")throw n}r.push(t);let i=C.dirname(t);if(i===t)break;t=i}for(let i of r.reverse())try{await g.mkdir(i,{mode:Ue})}catch(n){if(n.code!=="EEXIST")throw n}}async function Fe(a,r){let t=C.relative(a,r);if(t==="")return;let i=a;for(let n of t.split(C.sep)){i=C.join(i,n);try{await g.mkdir(i,{mode:Ue})}catch(s){if(s.code!=="EEXIST")throw s}}}async function Lt(a,r,t){let i=t?It:kt,n=C.join(C.dirname(a),`.fs-${$t.randomBytes(8).toString("hex")}.tmp`),s;try{s=await g.open(n,z.O_WRONLY|z.O_CREAT|z.O_EXCL|ke,i),await s.writeFile(r),await s.close(),s=void 0,await g.rename(n,a)}catch(c){if(s)await s.close().catch(()=>{});throw await g.unlink(n).catch(()=>{}),c}}async function je(a,r){let t;try{t=await g.open(r,z.O_RDONLY|ke|Rt)}catch(i){let n=i.code;if(n==="ELOOP"||n==="EMLINK")throw new y(y.IS_A_SYMLINK,a);throw i}try{if(!(await t.stat()).isFile())throw new y(y.NOT_A_FILE,a)}catch(i){throw await t.close().catch(()=>{}),i}return t}async function At(a){let r=$t.createHash("sha256"),t=await je(C.basename(a),a),i=new Uint8Array(1048576);try{for(;;){let{bytesRead:n}=await t.read(i,0,i.length);if(n===0)break;r.update(i.subarray(0,n))}}finally{await t.close()}return r.digest("hex")}async function Pe(a,r,t){if(!await Dt(r,t))return[];let i=[];return await Be(t,(n,s)=>{if(s.isFile())i.push([C.relative(a,n).split(C.sep).join("/"),n])}),i.sort(),i}async function xt(a,r,t){let i=(c)=>C.relative(a,c).split(C.sep).join("/"),n;try{n=await g.lstat(t,{bigint:!0})}catch(c){let l=c.code;if(l==="ENOENT"||l==="ENOTDIR")return new Set;throw c}if(n.isSymbolicLink())return new Set([i(t)]);if(!n.isDirectory())throw new y(y.NOT_A_DIRECTORY,r);let s=new Set;return await Be(t,(c,l)=>{if(l.isSymbolicLink())s.add(i(c))}),s}async function Dt(a,r){let t;try{t=await g.lstat(r,{bigint:!0})}catch(i){let n=i.code;if(n==="ENOENT"||n==="ENOTDIR")return!1;throw i}if(!t.isDirectory())throw new y(y.NOT_A_DIRECTORY,a);return!0}async function Be(a,r){let t=[a];while(t.length){let i=t.pop(),n;try{n=await g.readdir(i,{withFileTypes:!0})}catch(s){if(s.code==="ENOENT")continue;throw s}for(let s of n){let c=C.join(i,s.name);if(r(c,s),s.isDirectory()&&!s.isSymbolicLink())t.push(c)}}}function Ft(a,r){return r.mtimeNs===a.mtimeNs&&r.ctimeNs===a.ctimeNs&&r.size===a.size}function Pt(a,r){return(a.mtimeNs>a.ctimeNs?a.mtimeNs:a.ctimeNs)<r-ce.timestampTrustMarginNs}var Wt=2000000000n,ce={hashFile:At,timestampTrustMarginNs:Wt,nowNs:()=>BigInt(Date.now())*1000000n},Ye=ve,We=Symbol.asyncDispose;if(We)Object.defineProperty(ve.prototype,We,{value:ve.prototype.dispose,configurable:!0,writable:!0});var w,N,le,Q,fe,u,G,de,T,qe,he,ze,Ge,Re,Ne,He,Ke,Te,Ve,Xe,me,ue,Je,Ze,Ut=30000,K=".anthropic-memory-store",et=1;function Qe(a){return $t.createHash("sha256").update(`version ${et}
6
+ ${a}`,"utf-8").digest("hex")}var jt=30000,Bt=100,Yt=20,qt=16,zt=32,Ht=8,Kt=50;class P extends p{constructor(a,r){super(a);if(this.name="SessionMemoryError",r!==void 0)this.cause=r}}class tt{constructor(a,r,t){this.mode=a,this.cap=r,this.waiveWindow=t,this.attempted=0,this.capped=0,this.suppressed=0}takeSlot(){if(this.attempted>=this.cap)return this.capped++,!1;return this.attempted++,!0}}var Vt=(()=>{class a{constructor(r,t){w.add(this),N.set(this,void 0),le.set(this,void 0),Q.set(this,void 0),fe.set(this,void 0),u.set(this,void 0),G.set(this,void 0),de.set(this,!1),T.set(this,[]),o(this,N,r,"f"),o(this,le,t.workdir,"f"),o(this,Q,t.syncIntervalMs??qi,"f"),An(e(this,Q,"f"),"syncIntervalMs"),o(this,fe,t.syncDeletions??"enabled","f"),o(this,u,D(r),"f"),o(this,G,Date.now(),"f")}get roots(){return e(this,T,"f").map((r)=>r.files.root().path)}get readOnlyRoots(){return e(this,T,"f").filter((r)=>r.readOnly).map((r)=>r.files.root().path)}async download(r){for(let t of r.resources){if(t.type!=="memory_store")continue;let i=e(this,w,"m",qe).call(this,t),n;try{if(n={memoryStoreId:t.memory_store_id,files:await Ye.open(i,{utf8:!0}),readOnly:t.access==="read_only",baseline:new Map,refusedShas:new Map,pendingDeletes:new Map},!n.files.root().removedOnDispose)throw new P(`something already exists at the memory store's path: ${i} (memory_store_id=${t.memory_store_id}); it must not exist when the session starts`);try{await n.files.createRoot()}catch(s){if(!H(s))throw s;throw new P(`cannot create the memory store's folder: ${i} (memory_store_id=${t.memory_store_id}): ${s}; the worker host must make this mount path writable`,s)}await e(this,w,"m",Ne).call(this,n),e(this,u,"f").info("downloaded memories",{count:n.baseline.size,memory_store_id:n.memoryStoreId,dest:n.files.root().path}),e(this,T,"f").push(n)}catch(s){if(n)await n.files.dispose().catch(()=>{});if(s instanceof P)throw s;throw new P(`failed to download memory store memory_store_id=${t.memory_store_id}: ${s}`,s)}}o(this,G,Date.now(),"f")}async finish(){if(e(this,de,"f"))throw new p("finish() was already called: it is the session's last sync and runs once");o(this,de,!0,"f"),await this.syncAll(!0)}async syncAll(r){await Promise.all(e(this,T,"f").map((t)=>e(this,w,"m",ze).call(this,t,r))),o(this,G,Date.now(),"f")}async syncIfDue(){if(Date.now()-e(this,G,"f")<e(this,Q,"f"))return;await this.syncAll(!1)}async flushWrites(r){await Promise.all(e(this,T,"f").map((t)=>e(this,w,"m",Ge).call(this,t,r)))}async dispose(){for(let r of e(this,T,"f")){let t=r.files.root();try{let i=await e(this,w,"m",he).call(this,r);if(!i.markerOk&&Object.keys(i.files).length>0){e(this,u,"f").warn(`${i.distrustReason}; leaving the memory store folder on disk`,{root:t.path,memory_store_id:r.memoryStoreId});continue}await r.files.dispose()}catch(i){if(!(i instanceof y)&&!H(i))throw i;e(this,u,"f").warn("failed to remove the memory store folder",{root:r.files.root().path,memory_store_id:r.memoryStoreId,error:String(i)});continue}if(t.removedOnDispose)e(this,u,"f").info("removed memory store dir",{dest:t.path,memory_store_id:r.memoryStoreId})}}}return N=new WeakMap,le=new WeakMap,Q=new WeakMap,fe=new WeakMap,u=new WeakMap,G=new WeakMap,de=new WeakMap,T=new WeakMap,w=new WeakSet,qe=function(t){if(t.mount_path){if(!Ie(t.mount_path))throw new P(`memory store mount_path is not a clean absolute path: ${JSON.stringify(t.mount_path)} (memory_store_id=${t.memory_store_id})`);return t.mount_path}return C.join(e(this,le,"f"),"memory",t.name||t.memory_store_id)},he=async function(t){let i=await t.files.hashtree(),n=i[K];if(delete i[K],n===Qe(t.memoryStoreId))return{files:i,markerOk:!0,distrustReason:null};return{files:i,markerOk:!1,distrustReason:n!==void 0?"the marker file does not match this store":"the marker file is gone"}},ze=async function(t,i){try{let n=await e(this,w,"m",he).call(this,t),s=n.files;if(!n.markerOk){if(Object.keys(s).length>0){e(this,u,"f").warn(`${n.distrustReason}; leaving the memory store folder as found and not syncing`,{root:t.files.root().path,memory_store_id:t.memoryStoreId});return}await e(this,w,"m",Re).call(this,t,"the folder or its marker is gone");return}if(Object.keys(s).length===0&&t.baseline.size>1){await e(this,w,"m",Re).call(this,t,"every memory file is gone at once");return}let c=new Map;for await(let[m,_]of e(this,w,"m",me).call(this,t.memoryStoreId))c.set(m,_);let l=new tt(e(this,fe,"f"),Math.max(Ht,Math.min(Kt,Math.floor(t.baseline.size/4))),i),f=[],h=new Map,d=[...new Set([...c.keys(),...Object.keys(s),...t.baseline.keys()])].sort();for(let m of d){let _=c.get(m),E=s[m],A=t.baseline.get(m),M;if(E===void 0&&A!==void 0&&_!==void 0&&_.content_sha256===A&&!t.readOnly)M=await e(this,w,"m",Je).call(this,t,m,_,A,l);else M=await e(this,w,"m",He).call(this,t,m,_,E,f);if(M!==void 0)h.set(m,M)}if(t.baseline=h,await e(this,w,"m",Ve).call(this,t,f),l.suppressed>0)e(this,u,"f").debug("remote deletes are disabled; locally deleted memories stay on the server",{count:l.suppressed,memory_store_id:t.memoryStoreId});if(l.capped>0)e(this,u,"f").warn(`delete cap reached: ${l.mode==="log_only"?"would send":"sent"} ${l.attempted} deletes, held ${l.capped} for later syncs`,{memory_store_id:t.memoryStoreId})}catch(n){e(this,u,"f").warn("memory sync failed",{memory_store_id:t.memoryStoreId,error:String(n)})}},Ge=async function(t,i){let n=new Map,s=new Set,c=async()=>{if(t.readOnly)return;let l=await e(this,w,"m",he).call(this,t);if(!l.markerOk){e(this,u,"f").warn(`${l.distrustReason}; not uploading anything from the memory store folder`,{root:t.files.root().path,memory_store_id:t.memoryStoreId});return}for(let[d,m]of Object.entries(l.files))if(m!==t.baseline.get(d)&&t.refusedShas.get(d)!==m)n.set(d,m),s.add(d);if(n.size===0||i?.aborted)return;let f=new Map;for await(let[d,m]of e(this,w,"m",me).call(this,t.memoryStoreId)){if(i?.aborted)return;f.set(d,m)}let h=[];for(let d of[...n.keys()].sort()){let m=n.get(d),_=t.baseline.get(d),E=f.get(d);if(E!==void 0&&E.content_sha256===m){t.baseline.set(d,E.content_sha256),s.delete(d);continue}if(E!==void 0&&E.content_sha256!==_){e(this,u,"f").warn("memory changed both locally and remotely; the flush leaves the remote version",{path:d,memory_store_id:t.memoryStoreId}),s.delete(d);continue}h.push([d,m,E])}await e(this,w,"m",Xe).call(this,t,h,s,i)};try{if(await Xt(c(),i),i?.aborted&&s.size>0)e(this,u,"f").warn(`memory flush cut off part-way; ${s.size} of ${n.size} changed files had not finished uploading`,{memory_store_id:t.memoryStoreId})}catch(l){e(this,u,"f").warn("memory flush failed",{memory_store_id:t.memoryStoreId,error:String(l)})}},Re=async function(t,i){e(this,u,"f").warn(`${i}; re-downloading the memory store folder instead of syncing`,{root:t.files.root().path,memory_store_id:t.memoryStoreId}),await t.files.createRoot(),await e(this,w,"m",Ne).call(this,t)},Ne=async function(t){t.baseline=new Map,t.pendingDeletes.clear(),await t.files.put(K,`version ${et}
7
+ ${t.memoryStoreId}`);for await(let[i,n]of e(this,w,"m",me).call(this,t.memoryStoreId,"full"))if(await e(this,w,"m",Te).call(this,t,i,n.content??""))t.baseline.set(i,n.content_sha256)},He=async function(t,i,n,s,c){let l=t.baseline.get(i);if(s!==void 0)t.pendingDeletes.delete(i);if(!n){if(s===void 0){t.pendingDeletes.delete(i);return}if(l!==void 0){if(s===l){let _=await e(this,w,"m",Ke).call(this,t,i,l);if(_===void 0)return;if(_===l)return l;s=_}if(t.readOnly)e(this,u,"f").warn("memory deleted remotely but edited locally; keeping the file, which a read-only store cannot push",{path:i,memory_store_id:t.memoryStoreId});else if(t.refusedShas.get(i)!==s)e(this,u,"f").info("memory deleted remotely but edited locally; re-creating it from the file",{path:i,memory_store_id:t.memoryStoreId})}if(t.readOnly)return;if(t.refusedShas.get(i)===s)return;return await e(this,w,"m",ue).call(this,t,i,s,void 0)}let f=n.content_sha256,h=f!==l,d=s!==void 0&&s!==l&&s!==f,m=!t.readOnly&&d;if(s===void 0&&l!==void 0){if(h)e(this,u,"f").warn("memory deleted locally but changed remotely; restoring the remote version",{path:i,memory_store_id:t.memoryStoreId}),t.pendingDeletes.delete(i),c.push([i,n]);return l}if(h){if(s===f)return f;if(d)e(this,u,"f").warn("memory changed both locally and remotely; keeping the remote version",{path:i,memory_store_id:t.memoryStoreId});return c.push([i,n]),l}if(m){if(t.refusedShas.get(i)===s)return f;return await e(this,w,"m",ue).call(this,t,i,s,n)??f}return f},Ke=async function(t,i,n){let s;try{s=await t.files.hashFile(i)}catch(c){if(!(c instanceof y)&&!H(c))throw c;return n}if(s===null)return;if(s!==n)return s;try{await t.files.remove(i)}catch(c){if(!(c instanceof y)&&!H(c))throw c;return e(this,u,"f").warn("failed to remove memory deleted remotely",{path:i,memory_store_id:t.memoryStoreId,error:String(c)}),n}return},Te=async function(t,i,n){try{await t.files.put(i,n)}catch(s){if(!(s instanceof y)&&!H(s))throw s;return e(this,u,"f").warn("failed to write memory",{path:i,memory_store_id:t.memoryStoreId,error:String(s)}),!1}return!0},Ve=async function(t,i){if(i.length===0)return;let n=async(l,f)=>{let h;try{h=await e(this,N,"f").beta.memoryStores.memories.retrieve(f.id,{memory_store_id:t.memoryStoreId,view:"full"})}catch(d){if(Se(d,404))return;e(this,u,"f").warn("failed to fetch memory content",{path:l,memory_store_id:t.memoryStoreId,error:String(d)});return}if(await e(this,w,"m",Te).call(this,t,l,h.content??""))t.baseline.set(l,h.content_sha256)},s=i[Symbol.iterator](),c=async()=>{for(let[l,f]of s)await n(l,f)};await Promise.all(Array.from({length:Math.min(qt,i.length)},c))},Xe=async function(t,i,n,s){let c=i[Symbol.iterator](),l=async()=>{for(let[f,h,d]of c){if(s?.aborted)return;let m=await e(this,w,"m",ue).call(this,t,f,h,d);if(n.delete(f),m!==void 0)t.baseline.set(f,m)}};await Promise.all(Array.from({length:Math.min(zt,i.length)},l))},me=async function*(t,i="basic"){let n=i==="basic"?Bt:Yt;for await(let s of e(this,N,"f").beta.memoryStores.memories.list(t,{view:i,limit:n})){if(s.type!=="memory")continue;let c=s.path.replace(/^\/+/,"");if(c===K){e(this,u,"f").warn("the server listed the reserved marker path; skipping",{path:s.path,memory_store_id:t});continue}yield[c,s]}},ue=async function r(t,i,n,s){try{let c=await t.files.get(i);if(c===null)return;let l=Gt(c),f=s?await e(this,N,"f").beta.memoryStores.memories.update(s.id,{memory_store_id:t.memoryStoreId,content:l,precondition:{type:"content_sha256",content_sha256:s.content_sha256}}):await e(this,N,"f").beta.memoryStores.memories.create(t.memoryStoreId,{path:"/"+i,content:l});return t.refusedShas.delete(i),f.content_sha256}catch(c){if(s&&Se(c,404))return await e(this,w,"m",r).call(this,t,i,n,void 0);let l=c instanceof y||Se(c,400)||Se(c,413);if(s&&Se(c,409))e(this,u,"f").warn("memory changed both locally and remotely; the upload was refused and the local edit loses",{path:i,memory_store_id:t.memoryStoreId});else if(l&&n!==void 0)t.refusedShas.set(i,n),e(this,u,"f").warn("the server rejected this memory file, so it stays un-synced until its content changes",{path:i,memory_store_id:t.memoryStoreId,rejection:String(c)});else e(this,u,"f").warn("failed to upload memory",{path:i,memory_store_id:t.memoryStoreId,error:String(c)});return}},Je=async function(t,i,n,s,c){if(c.mode==="disabled")return c.suppressed++,s;let l=t.pendingDeletes.get(i);if(l===void 0)l=Date.now(),t.pendingDeletes.set(i,l);if(!c.waiveWindow&&Date.now()-l<jt)return s;let f,h;try{f=await t.files.hashFile(K)===Qe(t.memoryStoreId),h=await t.files.hashFile(i)===null}catch(m){if(!(m instanceof y)&&!H(m))throw m;f=h=!1}if(!f)return s;if(!h)return t.pendingDeletes.delete(i),s;if(!c.takeSlot())return s;if(c.mode==="log_only")return e(this,u,"f").info("log-only: sync would delete this memory on the server",{path:i,memory_store_id:t.memoryStoreId}),s;let d=await e(this,w,"m",Ze).call(this,t,i,n,s);if(d===void 0)t.pendingDeletes.delete(i);return d},Ze=async function(t,i,n,s){try{await e(this,N,"f").beta.memoryStores.memories.delete(n.id,{memory_store_id:t.memoryStoreId,expected_content_sha256:s})}catch(c){if(Se(c,404))return;if(Se(c,409)||Se(c,412))e(this,u,"f").warn("memory deleted locally but changed remotely; keeping the remote version",{path:i,memory_store_id:t.memoryStoreId});else e(this,u,"f").warn("failed to delete memory",{path:i,memory_store_id:t.memoryStoreId,error:String(c)});return s}e(this,u,"f").info("propagated local deletion",{path:i,memory_store_id:t.memoryStoreId});return},a})();function H(a){return typeof a==="object"&&a!==null&&typeof a.code==="string"}async function Xt(a,r){if(!r){await a;return}let t,i=new Promise((n)=>{if(t=n,r.aborted)n()});r.addEventListener("abort",t,{once:!0});try{await Promise.race([a,i])}finally{r.removeEventListener("abort",t)}}var pe,b,v,ee,W,R,Le,ye,te,we,_e,U,j,V,B,re,L,rt,it,nt=102400,lt=120000,Jt=262144,Zt=65536,ot=Buffer.from(`
8
+ `),ie=102400,Qt=2000,er=200;class ft extends p{constructor(a){super(`bash command timed out after ${a}ms`);this.name="BashTimeoutError",this.timeoutMs=a}}var tr=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,rr=S.glob;function dt(a){return a===void 0?Jt:a}function Y(a){if(a===void 0)return;throw new p("The `unrestrictedPaths` option you passed to the agent toolset (AgentToolContext) is no longer supported. The toolset's file tools (read, write, edit, glob, grep) are now always confined to the working directory plus the directories listed in `allowedRoots`. Remove `unrestrictedPaths` from your context; to let the file tools reach any other directory, add it to `allowedRoots`.")}function Vr(a){return[or(a),ar(a),dr(a),hr(a),ur(a),pr(a)]}async function oe(a,r){return Y(a.unrestrictedPaths),Ae(a.workdir,r,{allowedRoots:a.allowedRoots??[]})}function ht(a,r){return Ee(a.readOnlyRoots??[],r)}function ir(){let a={};for(let[r,t]of Object.entries(process.env)){if(r.startsWith("ANTHROPIC_"))continue;a[r]=t}return a}var nr=(()=>{class a{constructor(r,t=ir()){pe.add(this),b.set(this,void 0),v.set(this,""),ee.set(this,!1),W.set(this,!1),R.set(this,null),o(this,b,$e.spawn("/bin/bash",["--noprofile","--norc"],{cwd:r,env:{...t,PS1:"",PS2:"",TERM:"dumb"},stdio:["pipe","pipe","pipe"],detached:!0}),"f"),e(this,b,"f").stdout.setEncoding("utf8"),e(this,b,"f").stderr.setEncoding("utf8"),e(this,b,"f").stdout.on("data",(i)=>e(this,pe,"m",Le).call(this,i)),e(this,b,"f").stderr.on("data",(i)=>e(this,pe,"m",Le).call(this,i)),e(this,b,"f").once("close",()=>{o(this,W,!0,"f");let i=e(this,R,"f");o(this,R,null,"f"),i?.resolve()})}get closed(){return e(this,W,"f")}async exec(r,t={}){if(e(this,W,"f"))throw new p("bash session terminated");let i=t.timeoutMs??lt,n=t.signal;n?.throwIfAborted(),o(this,v,"","f"),o(this,ee,!1,"f");let s=`__ANT_CMD_${at.randomUUID()}_DONE__`,c=`${s.slice(0,8)}''${s.slice(8)}`,l=`{ ${r}
9
+ } </dev/null 2>&1; printf '\\n${c}%d\\n' $?
10
+ `;if(e(this,b,"f").stdin.write(l),e(this,v,"f").indexOf(s)<0){let{promise:E,resolve:A}=lr();o(this,R,{sentinel:s,resolve:A},"f");let M,se;try{await Promise.race([E,new Promise((ut,ge)=>{M=setTimeout(()=>ge(new ft(i)),i)}),new Promise((ut,ge)=>{if(!n)return;se=()=>ge(n.reason),n.addEventListener("abort",se,{once:!0})})])}finally{if(M)clearTimeout(M);if(se&&n)n.removeEventListener("abort",se);o(this,R,null,"f")}}let f=e(this,v,"f").indexOf(s);if(f<0)throw new p("bash session terminated");let d=e(this,v,"f").slice(f+s.length).match(/^(-?\d+)/),m=d?parseInt(d[1],10):-1,_=e(this,v,"f").slice(0,f).replace(tr,"").replace(/\n+$/,"");if(e(this,ee,"f"))_=`[output truncated]
11
+ ${_}`;return{output:_,exitCode:m}}close(){if(e(this,W,"f"))return;o(this,W,!0,"f");let r=e(this,R,"f");o(this,R,null,"f"),r?.resolve(),e(this,b,"f").stdout.destroy(),e(this,b,"f").stderr.destroy(),e(this,b,"f").stdin.destroy();try{process.kill(-e(this,b,"f").pid,"SIGKILL")}catch{e(this,b,"f").kill("SIGKILL")}e(this,b,"f").unref()}}return b=new WeakMap,v=new WeakMap,ee=new WeakMap,W=new WeakMap,R=new WeakMap,pe=new WeakSet,Le=function(t){if(o(this,v,e(this,v,"f")+t,"f"),e(this,v,"f").length>nt)o(this,v,e(this,v,"f").slice(e(this,v,"f").length-nt),"f"),o(this,ee,!0,"f");if(e(this,R,"f")&&e(this,v,"f").indexOf(e(this,R,"f").sentinel)>=0){let i=e(this,R,"f");o(this,R,null,"f"),i.resolve()}},a})();function or(a){Y(a.unrestrictedPaths);let r,t=Promise.resolve();return x({name:"bash",description:"Run a bash command in a persistent shell. State (cwd, env vars) persists across calls.",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to run"},restart:{type:"boolean",description:"Restart the persistent shell before running"},timeout_ms:{type:"integer",description:"Per-call timeout in milliseconds"}}},run:async({command:i,restart:n,timeout_ms:s},c)=>{let l=t,f=lr();t=f.promise;try{await l}catch{}try{if(n)r?.close(),r=void 0;if(!i){if(n)return"bash session restarted";throw new I("bash: command is required")}r??(r=new nr(a.workdir,a.env));try{let{output:h,exitCode:d}=await r.exec(i,{timeoutMs:s??lt,signal:c?.signal});if(d!==0)throw new I(h||`exit ${d}`);return h}catch(h){if(h instanceof I)throw h;throw r.close(),r=void 0,new I(`bash: ${h instanceof Error?h.message:String(h)}`)}}finally{f.resolve()}},close:()=>{r?.close(),r=void 0}})}function ar(a){return Y(a.unrestrictedPaths),x({name:"read",description:"Read a UTF-8 text file relative to the workdir.",inputSchema:{type:"object",properties:{file_path:{type:"string"},view_range:{type:"array",items:{type:"integer"},description:"[start_line, end_line] 1-indexed inclusive"}},required:["file_path"]},run:async({file_path:r,view_range:t})=>{if(!r)throw new I("read: file_path is required");let i=await oe(a,r);if(t?.length&&t.length!==2)throw new I("read: view_range must be [start_line, end_line]");let n;try{let d=await S.stat(i);if(!d.isFile())throw new I(`read: ${r} is not a regular file`);let m=dt(a.maxFileBytes);if(m!==null&&d.size>m){if(!t?.length)throw new I(`read: ${r} is ${d.size} bytes, exceeds ${m}-byte limit. Use the view_range parameter to read specific line ranges, e.g. view_range: [1, 500].`);let[_,E]=t;return await cr(i,r,_,E,m)}n=await S.readFile(i,"utf8")}catch(d){if(d instanceof I)throw d;throw new I(`read: ${q(d,r)}`)}if(!t?.length)return n;let[s,c]=t,l=n.split(`
12
+ `),f=Math.max(0,s-1),h=c>0?c:l.length;return l.slice(f,h).join(`
13
+ `)}})}async function cr(a,r,t,i,n){let s=new fr(r,t,i,n);if(s.rangeIsEmpty())return"";let c=ne.createReadStream(a,{highWaterMark:Zt});try{for await(let l of c)if(s.collectFrom(l),s.rangeIsCollected())break}finally{c.destroy()}return s.text()}var fr=(()=>{class a{constructor(r,t,i,n){ye.add(this),te.set(this,void 0),we.set(this,void 0),_e.set(this,void 0),U.set(this,void 0),j.set(this,void 0),V.set(this,void 0),B.set(this,0),re.set(this,[]),L.set(this,0),o(this,te,r,"f"),o(this,we,t,"f"),o(this,_e,i,"f"),o(this,U,Math.max(0,t-1),"f"),o(this,j,i>0?i:1/0,"f"),o(this,V,n,"f")}rangeIsEmpty(){return e(this,j,"f")<=e(this,U,"f")}rangeIsCollected(){return e(this,B,"f")>=e(this,j,"f")}collectFrom(r){var t;let i=0;while(i<r.length&&!this.rangeIsCollected()){let n=r.indexOf(10,i),s=n<0?r.length:n;if(e(this,B,"f")>=e(this,U,"f"))e(this,ye,"m",rt).call(this,r.subarray(i,s),n>=0);if(n<0)break;o(this,B,(t=e(this,B,"f"),t++,t),"f"),i=n+1}}text(){return Buffer.concat(e(this,re,"f"),e(this,L,"f")).toString("utf8")}}return te=new WeakMap,we=new WeakMap,_e=new WeakMap,U=new WeakMap,j=new WeakMap,V=new WeakMap,B=new WeakMap,re=new WeakMap,L=new WeakMap,ye=new WeakSet,rt=function(t,i){if(e(this,re,"f").push(t),o(this,L,e(this,L,"f")+t.length,"f"),i&&e(this,B,"f")+1<e(this,j,"f"))e(this,re,"f").push(ot),o(this,L,e(this,L,"f")+ot.length,"f");if(e(this,L,"f")>e(this,V,"f"))throw e(this,ye,"m",it).call(this)},it=function(){if(e(this,j,"f")-e(this,U,"f")===1)return new I(`read: line ${e(this,U,"f")+1} of ${e(this,te,"f")} alone exceeds ${e(this,V,"f")}-byte limit. The read tool cannot return part of a line, so view_range cannot narrow this further.`);return new I(`read: view_range [${e(this,we,"f")}, ${e(this,_e,"f")}] of ${e(this,te,"f")} exceeds ${e(this,V,"f")}-byte limit. Narrow the view_range to read a smaller portion.`)},a})();function dr(a){return Y(a.unrestrictedPaths),x({name:"write",description:"Write a UTF-8 text file relative to the workdir, creating parent directories as needed.",inputSchema:{type:"object",properties:{file_path:{type:"string"},content:{type:"string"}},required:["file_path","content"]},run:async({file_path:r,content:t})=>{if(!r)throw new I("write: file_path is required");let i=await oe(a,r),n=await ht(a,i);if(n!==void 0)throw new I(`write: ${r} is inside read-only directory ${n}`);try{await S.mkdir(O.dirname(i),{recursive:!0,mode:J}),await be(i,t??"")}catch(s){throw new I(`write: ${q(s,r)}`)}return`wrote ${Buffer.byteLength(t??"")} bytes to ${r}`}})}function hr(a){return Y(a.unrestrictedPaths),x({name:"edit",description:"Replace old_string with new_string in a file. old_string must be unique unless replace_all.",inputSchema:{type:"object",properties:{file_path:{type:"string"},old_string:{type:"string"},new_string:{type:"string"},replace_all:{type:"boolean"}},required:["file_path","old_string","new_string"]},run:async({file_path:r,old_string:t,new_string:i,replace_all:n})=>{if(!r)throw new I("edit: file_path is required");if(!t)throw new I("edit: old_string is required");let s=await oe(a,r),c=await ht(a,s);if(c!==void 0)throw new I(`edit: ${r} is inside read-only directory ${c}`);let l;try{let d=await S.stat(s);if(!d.isFile())throw new I(`edit: ${r} is not a regular file`);let m=dt(a.maxFileBytes);if(m!==null&&d.size>m)throw new I(`edit: ${r} is ${d.size} bytes, exceeds ${m}-byte limit. The edit tool loads the whole file and cannot modify a file this large.`);l=await S.readFile(s,"utf8")}catch(d){if(d instanceof I)throw d;throw new I(`edit: ${q(d,r)}`)}let f=l.split(t).length-1;if(f===0)throw new I(`edit: old_string not found in ${r}`);let h;if(n)h=l.split(t).join(i);else{if(f>1)throw new I(`edit: old_string appears ${f} times in ${r} (must be unique)`);h=l.replace(t,()=>i)}try{await be(s,h)}catch(d){throw new I(`edit: write: ${q(d,r)}`)}return`edited ${r} (${n?f:1} replacement(s))`}})}function mr(a){return a.split(/[\\/{},]/).includes("..")}function ur(a){return Y(a.unrestrictedPaths),x({name:"glob",description:"Match files under the workdir against a glob pattern. Results are mtime-sorted, newest first.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string",description:"Directory to search in. Defaults to the workdir."}},required:["pattern"]},run:async({pattern:r,path:t})=>{if(!r)throw new I("glob: pattern is required");if(O.isAbsolute(r))throw new I("glob: absolute pattern not permitted; pass a relative pattern (and optionally path)");if(mr(r))throw new I('glob: ".." is not permitted in the pattern');let i=t?await oe(a,t):O.resolve(a.workdir),n=t?i:await X(i),s=[],c=mt;try{for await(let l of rr(r,{cwd:i,withFileTypes:!0,exclude:(f)=>f.name===".git"||f.name==="node_modules"})){if(c--<=0)break;if(!l.isFile())continue;let f=O.join(l.parentPath,l.name),h;try{h=await S.realpath(f)}catch{continue}if(!ae(n,h))continue;let d=0;try{d=(await S.stat(f)).mtimeMs}catch{}s.push({path:f,mtime:d})}}catch(l){throw new I(`glob: ${l instanceof Error?l.message:String(l)}`)}if(s.length===0)return"no matches";return s.sort((l,f)=>f.mtime-l.mtime),s.slice(0,er).map((l)=>l.path).join(`
14
+ `)}})}function pr(a){return Y(a.unrestrictedPaths),x({name:"grep",description:"Search file contents for a regex. Uses ripgrep if available, otherwise a built-in walker.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string"}},required:["pattern"]},run:async({pattern:r,path:t},i)=>{if(!r)throw new I("grep: pattern is required");let n=O.resolve(a.workdir);if(t)n=await oe(a,t);let s=await Sr();return s?yr(s,r,n,i?.signal):wr(r,n,i?.signal)}})}function yr(a,r,t,i){return new Promise((n,s)=>{let c=$e.spawn(a,["-n","--no-heading","-e",r,"--",t],{...i?{signal:i}:{}}),l="",f="",h=!1;c.stdout.on("data",(d)=>{if(h)return;if(l+=d,l.length>ie)h=!0,l=l.slice(0,ie),c.kill("SIGKILL")}),c.stderr.on("data",(d)=>f+=d),c.on("close",(d)=>{if(i?.aborted)return s(new I("grep: aborted"));if(h)return n(l+`
15
+ [output truncated at ${ie} bytes]`);if(d===0)return n(l);if(d===1)return n("no matches");s(new I(`grep: rg failed: ${f||`exit ${d}`}`))}),c.on("error",(d)=>{if(i?.aborted)return s(new I("grep: aborted"));s(new I(`grep: rg failed: ${d.message}`))})})}async function wr(a,r,t){let i;try{i=new RegExp(a)}catch(f){throw new I(`grep: invalid regex: ${f instanceof Error?f.message:String(f)}`)}let n=[],s=ie,c=(f)=>{if(s-=f.length+1,s<0)return n.push(`[output truncated at ${ie} bytes]`),!1;return n.push(f),!0};if((await S.stat(r).catch(()=>null))?.isFile())await st(r,i,c);else await gr(r,"",(f)=>st(O.join(r,f),i,c),t);if(t?.aborted)throw new I("grep: aborted");if(n.length===0)return"no matches";return n.join(`
16
+ `)}async function st(a,r,t){let i=ne.createReadStream(a,{encoding:"utf8"}),n=ct.createInterface({input:i,crlfDelay:1/0}),s=0;try{for await(let c of n){if(s++,c.length>Qt)continue;if(r.test(c)&&!t(`${a}:${s}:${c}`))return!1}}catch{}finally{i.destroy()}return!0}var _r=40,mt=50000;async function gr(a,r,t,i){let n=mt;async function s(c,l){if(l>_r)return!0;if(i?.aborted)return!1;let f;try{f=await S.readdir(O.join(a,c),{withFileTypes:!0})}catch{return!0}for(let h of f){if(h.name===".git"||h.name==="node_modules")continue;if(n--<=0)return!1;if(i?.aborted)return!1;let d=c?O.join(c,h.name):h.name;if(h.isDirectory()){if(!await s(d,l+1))return!1}else if(h.isFile()){if(await t(d)===!1)return!1}}return!0}await s(r,0)}async function Sr(){let a=(process.env.PATH??"").split(O.delimiter);for(let r of a){let t=O.join(r,"rg");try{return await S.access(t,ne.constants.X_OK),t}catch{}}return null}export{Ut as MEMORY_FLUSH_TIMEOUT_MS,P as SessionMemoryError,Vt as SessionMemoryStores,Vr as betaAgentToolset20260401,_t as setupSkills};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Cr,Fi}from"./chunk-10x1zefx.js";import"./chunk-qqfdg01g.js";import"./chunk-bh29df86.js";export{Cr as stream,Fi as streamSimple};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Gi,Do,No,zi,ji}from"./chunk-tzbefwf0.js";export{zi as confirmLocalPairing,No as copyTextToClipboard,Gi as notifyExistingTray,Do as openBrowser,ji as startTray};