zen-code 4.8.1 → 4.8.3

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 (415) hide show
  1. package/dist/app.js +175 -99
  2. package/dist/chunk-03bb6pab.js +1 -0
  3. package/dist/chunk-03d08304.js +1 -0
  4. package/dist/{chunk-wwn7gw8g.js → chunk-04kzaj7h.js} +3 -3
  5. package/dist/chunk-09f94dtz.js +1 -0
  6. package/dist/chunk-0bpvpy2e.js +1 -0
  7. package/dist/chunk-0ch9bkct.js +1 -0
  8. package/dist/chunk-0cz1ygrn.js +1 -0
  9. package/dist/chunk-0dstjr38.js +1 -0
  10. package/dist/chunk-0gb5n1jp.js +1 -0
  11. package/dist/{chunk-9k57afdm.js → chunk-0gpa9n28.js} +1 -1
  12. package/dist/chunk-0mryaqgb.js +1 -0
  13. package/dist/chunk-0myk23dw.js +1 -0
  14. package/dist/chunk-0qrqmmqt.js +1 -0
  15. package/dist/chunk-0teh8cbt.js +2 -0
  16. package/dist/chunk-1163kxya.js +1 -0
  17. package/dist/chunk-11ctp51v.js +2 -0
  18. package/dist/chunk-13f0qh77.js +1 -0
  19. package/dist/chunk-17zj2hd5.js +1 -0
  20. package/dist/chunk-1a5zv67s.js +1 -0
  21. package/dist/chunk-1dwn0qqb.js +1 -0
  22. package/dist/chunk-1efcgvx0.js +1 -0
  23. package/dist/chunk-1ggv4msc.js +1 -0
  24. package/dist/chunk-1mdbzd7e.js +1 -0
  25. package/dist/chunk-1pm5qfkm.js +1 -0
  26. package/dist/chunk-1q8wzky6.js +1 -0
  27. package/dist/chunk-1w5m9c5y.js +2 -0
  28. package/dist/{chunk-bgpcx3bm.js → chunk-21w7a0t2.js} +2 -2
  29. package/dist/chunk-2215g4qb.js +2 -0
  30. package/dist/chunk-25es8s2e.js +1 -0
  31. package/dist/chunk-28p35k17.js +1 -0
  32. package/dist/chunk-2evyqqz7.js +2 -0
  33. package/dist/chunk-2f9mf6mw.js +2 -0
  34. package/dist/chunk-2gr7rdv0.js +1 -0
  35. package/dist/chunk-2hjzw0cx.js +1 -0
  36. package/dist/chunk-2kka9ex2.js +1 -0
  37. package/dist/chunk-2m3g6fah.js +1 -0
  38. package/dist/chunk-2qx9kzj1.js +1 -0
  39. package/dist/chunk-2tg0fzzw.js +2 -0
  40. package/dist/chunk-2vtz4ypn.js +1 -0
  41. package/dist/chunk-2w2pzwmm.js +1 -0
  42. package/dist/chunk-2zqq58q6.js +2 -0
  43. package/dist/chunk-323aj0k7.js +1 -0
  44. package/dist/chunk-3b8bw2gg.js +1 -0
  45. package/dist/chunk-3c791dd5.js +1 -0
  46. package/dist/chunk-3dqan531.js +1 -0
  47. package/dist/chunk-3ek4pcr6.js +1 -0
  48. package/dist/chunk-3mzwewcx.js +1 -0
  49. package/dist/chunk-3ns6c29z.js +1 -0
  50. package/dist/chunk-3p4khpea.js +1 -0
  51. package/dist/chunk-3pd9zqn2.js +1 -0
  52. package/dist/chunk-3pqm74e3.js +1 -0
  53. package/dist/{chunk-j1n8jp1w.js → chunk-3s46q55v.js} +2 -2
  54. package/dist/chunk-3s6j6d1z.js +1 -0
  55. package/dist/chunk-3tq80kwe.js +1 -0
  56. package/dist/chunk-3x564va6.js +2 -0
  57. package/dist/chunk-3z87tvcn.js +1 -0
  58. package/dist/chunk-40fxbk0k.js +1 -0
  59. package/dist/chunk-41hzdwnx.js +1 -0
  60. package/dist/chunk-45dyg3fv.js +1 -0
  61. package/dist/chunk-4ecfe9a1.js +1 -0
  62. package/dist/chunk-4g796wg5.js +1 -0
  63. package/dist/chunk-4j4w856j.js +1 -0
  64. package/dist/chunk-4mw5szy1.js +1 -0
  65. package/dist/{chunk-yaa4eesd.js → chunk-4n978rje.js} +2 -2
  66. package/dist/chunk-4pa2a33z.js +1 -0
  67. package/dist/chunk-4qs8qf3g.js +1 -0
  68. package/dist/{chunk-czz2fs2w.js → chunk-4s6z4724.js} +1 -1
  69. package/dist/chunk-4tgv8687.js +1 -0
  70. package/dist/chunk-4vr7sc1e.js +1 -0
  71. package/dist/chunk-4wmmjwq3.js +1 -0
  72. package/dist/chunk-4z0wk36t.js +1 -0
  73. package/dist/chunk-4zemyepb.js +1 -0
  74. package/dist/chunk-501c35tf.js +1 -0
  75. package/dist/chunk-50hw7e2n.js +1 -0
  76. package/dist/chunk-51cf1nrg.js +1 -0
  77. package/dist/chunk-51h1tm3c.js +1 -0
  78. package/dist/chunk-5743qc09.js +1 -0
  79. package/dist/chunk-5g0asgdm.js +1 -0
  80. package/dist/chunk-5gaygdyf.js +1 -0
  81. package/dist/chunk-5n3h6mhr.js +1 -0
  82. package/dist/chunk-5vzt6z7d.js +1 -0
  83. package/dist/chunk-6180vb4q.js +2 -0
  84. package/dist/chunk-62zhdx11.js +1 -0
  85. package/dist/chunk-63ghca0g.js +1 -0
  86. package/dist/chunk-6a35z43a.js +1 -0
  87. package/dist/chunk-6e734rff.js +1 -0
  88. package/dist/chunk-6ezeq351.js +1 -0
  89. package/dist/chunk-6gxwe3hq.js +1 -0
  90. package/dist/chunk-6hbnk94n.js +1 -0
  91. package/dist/chunk-6meyz753.js +1 -0
  92. package/dist/chunk-6nhdwm44.js +1 -0
  93. package/dist/chunk-6r7b9pg1.js +1 -0
  94. package/dist/chunk-6rzyzk0g.js +1 -0
  95. package/dist/chunk-6v5eepr1.js +1 -0
  96. package/dist/chunk-70gnwjt8.js +1 -0
  97. package/dist/chunk-72h39xc8.js +1 -0
  98. package/dist/chunk-76gx2wc0.js +1 -0
  99. package/dist/chunk-77gv3r7z.js +1 -0
  100. package/dist/chunk-7893pky5.js +1 -0
  101. package/dist/chunk-7cenjy4r.js +2 -0
  102. package/dist/chunk-7dmms791.js +1 -0
  103. package/dist/chunk-7h9sjfmy.js +1 -0
  104. package/dist/chunk-7hvw60gp.js +1 -0
  105. package/dist/chunk-7pntzqpm.js +1 -0
  106. package/dist/chunk-7zprjevz.js +1 -0
  107. package/dist/chunk-80jab8dy.js +1 -0
  108. package/dist/chunk-85j75g9q.js +1 -0
  109. package/dist/chunk-86em0evs.js +1 -0
  110. package/dist/chunk-86exrje1.js +1 -0
  111. package/dist/chunk-88191bqb.js +1 -0
  112. package/dist/chunk-8chx87e7.js +1 -0
  113. package/dist/chunk-8evmvqza.js +1 -0
  114. package/dist/chunk-8hp4t30w.js +1 -0
  115. package/dist/chunk-8kv8e5sn.js +1 -0
  116. package/dist/chunk-8m5dqftt.js +1 -0
  117. package/dist/chunk-8m6adpjf.js +1 -0
  118. package/dist/chunk-8mmvxxyj.js +1 -0
  119. package/dist/chunk-8nkp692y.js +1 -0
  120. package/dist/chunk-8tg10bhe.js +1 -0
  121. package/dist/chunk-91rrbsk7.js +1 -0
  122. package/dist/chunk-92pjraxh.js +2 -0
  123. package/dist/chunk-952k4ak8.js +1 -0
  124. package/dist/chunk-97bsgfnr.js +1 -0
  125. package/dist/{chunk-3ep2tag7.js → chunk-98x8wkt6.js} +1 -1
  126. package/dist/chunk-9c0wnb5t.js +1 -0
  127. package/dist/chunk-9dh8d15f.js +1 -0
  128. package/dist/chunk-9dn65rqp.js +1 -0
  129. package/dist/chunk-9ft87v6s.js +2 -0
  130. package/dist/chunk-9gnhztzd.js +1 -0
  131. package/dist/chunk-9h0v5e0k.js +2 -0
  132. package/dist/{chunk-rrkzfahh.js → chunk-9hkn5b8e.js} +1 -1
  133. package/dist/chunk-9kydh60d.js +1 -0
  134. package/dist/chunk-9nb6v3q0.js +2 -0
  135. package/dist/chunk-9phx46cq.js +2 -0
  136. package/dist/chunk-9xaygaay.js +2 -0
  137. package/dist/chunk-9ynmrc70.js +1 -0
  138. package/dist/chunk-acceg8yk.js +1 -0
  139. package/dist/chunk-afdat9a4.js +1 -0
  140. package/dist/chunk-ajtch74a.js +1 -0
  141. package/dist/chunk-ak0aqr2c.js +1 -0
  142. package/dist/chunk-ak2n1ckf.js +1 -0
  143. package/dist/chunk-ak43xwf1.js +1 -0
  144. package/dist/{chunk-7dp8kq2f.js → chunk-anbr96y3.js} +2 -2
  145. package/dist/{chunk-5wn1nfqy.js → chunk-aqyqcpz2.js} +2 -2
  146. package/dist/{chunk-yvhq458c.js → chunk-arppjtcv.js} +1 -1
  147. package/dist/chunk-azxn0zvz.js +1 -0
  148. package/dist/chunk-b4fn3tre.js +1 -0
  149. package/dist/chunk-b68ekt52.js +1 -0
  150. package/dist/chunk-b6xencpw.js +1 -0
  151. package/dist/{chunk-3n2b4eb4.js → chunk-b9fn4n7z.js} +2 -2
  152. package/dist/{chunk-s3fyfrka.js → chunk-ba18by4y.js} +2 -2
  153. package/dist/chunk-bb9mvt9d.js +1 -0
  154. package/dist/chunk-bd35cx5s.js +1 -0
  155. package/dist/chunk-bf0pjbfa.js +1 -0
  156. package/dist/chunk-bfm294j1.js +1 -0
  157. package/dist/chunk-bh05aqrf.js +2 -0
  158. package/dist/chunk-bh33p34p.js +1 -0
  159. package/dist/chunk-bngqptzm.js +1 -0
  160. package/dist/chunk-bnrv5f66.js +2 -0
  161. package/dist/chunk-bwcdkk1e.js +2 -0
  162. package/dist/chunk-bwjh7xrm.js +1 -0
  163. package/dist/chunk-bwnx1zht.js +1 -0
  164. package/dist/chunk-c1345z85.js +1 -0
  165. package/dist/chunk-c1gpr8nz.js +1 -0
  166. package/dist/chunk-c1r7zjt3.js +1 -0
  167. package/dist/chunk-c3b7gwkd.js +1 -0
  168. package/dist/chunk-c5d87fzk.js +1 -0
  169. package/dist/chunk-cd37w7qk.js +1 -0
  170. package/dist/chunk-cegx2zze.js +1 -0
  171. package/dist/chunk-cm6vfvym.js +1 -0
  172. package/dist/chunk-crjf70s3.js +1 -0
  173. package/dist/chunk-crvp4wnc.js +1 -0
  174. package/dist/chunk-cwvb8zr5.js +1 -0
  175. package/dist/chunk-cyd358a8.js +1 -0
  176. package/dist/chunk-d08qq3wd.js +1 -0
  177. package/dist/chunk-d9hpz80s.js +2 -0
  178. package/dist/chunk-d9xgby9w.js +1 -0
  179. package/dist/chunk-dhgjjhh7.js +1 -0
  180. package/dist/chunk-djmxgj5c.js +1 -0
  181. package/dist/chunk-dpa9tgf6.js +2 -0
  182. package/dist/chunk-dvmzq40v.js +1 -0
  183. package/dist/chunk-dw3081wb.js +1 -0
  184. package/dist/chunk-dxg8cctv.js +2 -0
  185. package/dist/chunk-e112438q.js +1 -0
  186. package/dist/chunk-e2qmvzgm.js +1 -0
  187. package/dist/chunk-e2vdc3vs.js +1 -0
  188. package/dist/chunk-eh3cemzk.js +1 -0
  189. package/dist/chunk-ehpz2t7m.js +1 -0
  190. package/dist/chunk-ek58k066.js +1 -0
  191. package/dist/chunk-emdn1c33.js +1 -0
  192. package/dist/chunk-er06b5kx.js +2 -0
  193. package/dist/chunk-eyty7ng4.js +1 -0
  194. package/dist/chunk-f3jbz60e.js +1 -0
  195. package/dist/chunk-f40x0w1g.js +1 -0
  196. package/dist/chunk-f6cbjh6q.js +1 -0
  197. package/dist/chunk-fbf3gztk.js +1 -0
  198. package/dist/chunk-fcexqvhh.js +1 -0
  199. package/dist/chunk-fcxgd3qb.js +1 -0
  200. package/dist/{chunk-cze71w02.js → chunk-feptb1bb.js} +1 -1
  201. package/dist/chunk-fmmsa2ry.js +2 -0
  202. package/dist/chunk-frzyyytq.js +1 -0
  203. package/dist/chunk-fs2mzcgs.js +1 -0
  204. package/dist/{chunk-15smn69q.js → chunk-g0fa5dyc.js} +2 -2
  205. package/dist/chunk-g1yt0qc9.js +1 -0
  206. package/dist/chunk-g30bcqjk.js +1 -0
  207. package/dist/chunk-g3p0vcay.js +2 -0
  208. package/dist/chunk-g8k4dhcx.js +1 -0
  209. package/dist/chunk-g9q5nbz0.js +1 -0
  210. package/dist/chunk-geyhpd32.js +1 -0
  211. package/dist/chunk-gh5vbn9x.js +1 -0
  212. package/dist/chunk-gp1ensbx.js +1 -0
  213. package/dist/chunk-gphyz2x3.js +1 -0
  214. package/dist/chunk-gpmj4w3z.js +1 -0
  215. package/dist/{chunk-5fqt5yg1.js → chunk-gqdapzfq.js} +1 -1
  216. package/dist/chunk-gtms11w9.js +1 -0
  217. package/dist/chunk-gy4p2qnz.js +1 -0
  218. package/dist/chunk-h5k1z56v.js +1 -0
  219. package/dist/chunk-h8ay3dqc.js +1 -0
  220. package/dist/chunk-h8de6gyf.js +1 -0
  221. package/dist/chunk-hgpmrbsr.js +1 -0
  222. package/dist/chunk-hsq3vxna.js +2 -0
  223. package/dist/chunk-htgt048s.js +1 -0
  224. package/dist/chunk-hvekwfwd.js +1 -0
  225. package/dist/{chunk-j204fejq.js → chunk-hxw717c2.js} +1 -1
  226. package/dist/chunk-hzejh175.js +1 -0
  227. package/dist/chunk-j5e4dmw7.js +1 -0
  228. package/dist/chunk-j8b7x5pr.js +1 -0
  229. package/dist/chunk-jafhgffb.js +1 -0
  230. package/dist/chunk-jam7nh0r.js +1 -0
  231. package/dist/chunk-jh6wwc9v.js +1 -0
  232. package/dist/chunk-jhjbxj1k.js +1 -0
  233. package/dist/chunk-jhwm3phf.js +1 -0
  234. package/dist/chunk-jmzy9per.js +1 -0
  235. package/dist/chunk-jppcve2j.js +1 -0
  236. package/dist/chunk-jy5kmp4s.js +1 -0
  237. package/dist/chunk-k1kzp019.js +2 -0
  238. package/dist/chunk-k7e2abhq.js +1 -0
  239. package/dist/chunk-k97swe5s.js +1 -0
  240. package/dist/chunk-ke9tpkk2.js +1 -0
  241. package/dist/chunk-kncs6js6.js +1 -0
  242. package/dist/chunk-ksr76npa.js +1 -0
  243. package/dist/chunk-ksy4d0za.js +1 -0
  244. package/dist/chunk-kvb035wf.js +2 -0
  245. package/dist/chunk-kwgygr4z.js +1 -0
  246. package/dist/chunk-m3zge9wv.js +1 -0
  247. package/dist/chunk-m7bwshtn.js +1 -0
  248. package/dist/chunk-m8mdqeye.js +1 -0
  249. package/dist/chunk-mcrmg4m8.js +1 -0
  250. package/dist/chunk-mfexzmw2.js +1 -0
  251. package/dist/chunk-mjwypsrz.js +1 -0
  252. package/dist/chunk-mp159559.js +2 -0
  253. package/dist/chunk-mp6yhf6a.js +1 -0
  254. package/dist/chunk-mr7em8w4.js +1 -0
  255. package/dist/chunk-mrkf2b3t.js +434 -0
  256. package/dist/chunk-msha9pw1.js +1 -0
  257. package/dist/chunk-mvv3ktys.js +1 -0
  258. package/dist/chunk-mymqnpgf.js +1 -0
  259. package/dist/chunk-n220pha2.js +1 -0
  260. package/dist/chunk-n65ycayf.js +1 -0
  261. package/dist/{chunk-q8arjxg1.js → chunk-n72x5y7a.js} +1 -1
  262. package/dist/chunk-n9x46wsq.js +1 -0
  263. package/dist/chunk-n9zmzbyq.js +1 -0
  264. package/dist/chunk-na5z94zg.js +2 -0
  265. package/dist/chunk-nbcah8mh.js +1 -0
  266. package/dist/chunk-ncs4rnsn.js +1 -0
  267. package/dist/chunk-nt5n8jcr.js +1 -0
  268. package/dist/chunk-nv58ta3s.js +1 -0
  269. package/dist/chunk-nw76mbwc.js +1 -0
  270. package/dist/chunk-p2z2bacg.js +1 -0
  271. package/dist/chunk-p3mpqeqw.js +1 -0
  272. package/dist/chunk-p3p6a3ht.js +1 -0
  273. package/dist/chunk-p46at2ts.js +1 -0
  274. package/dist/chunk-p6dgtz38.js +1 -0
  275. package/dist/chunk-p70r0dds.js +1 -0
  276. package/dist/{chunk-h5nnz4dy.js → chunk-p89xw4y2.js} +1 -1
  277. package/dist/chunk-pd4wysbn.js +1 -0
  278. package/dist/chunk-pe45n68n.js +1 -0
  279. package/dist/chunk-pf09ha3g.js +1 -0
  280. package/dist/chunk-pn04v4sv.js +1 -0
  281. package/dist/{chunk-bjywwcgn.js → chunk-pnhf6jtr.js} +2 -2
  282. package/dist/chunk-pr7vzg5y.js +1 -0
  283. package/dist/chunk-psdrzwp5.js +1 -0
  284. package/dist/chunk-px75djc6.js +1 -0
  285. package/dist/chunk-q3x300wy.js +1 -0
  286. package/dist/chunk-q56ns9ta.js +1 -0
  287. package/dist/chunk-q86xqx6c.js +1 -0
  288. package/dist/chunk-q9711zm8.js +1 -0
  289. package/dist/chunk-q9w8vj93.js +2 -0
  290. package/dist/chunk-qpkn7wvc.js +1 -0
  291. package/dist/chunk-qrr2ytkg.js +2 -0
  292. package/dist/chunk-r0gjpz5m.js +1 -0
  293. package/dist/chunk-r1enj0f0.js +1 -0
  294. package/dist/chunk-r9r1v9kw.js +1 -0
  295. package/dist/chunk-rc027n67.js +1 -0
  296. package/dist/chunk-rgc9k4rf.js +2 -0
  297. package/dist/chunk-rmrp92n9.js +1 -0
  298. package/dist/chunk-rv0x9fbs.js +1 -0
  299. package/dist/chunk-rvxb17kx.js +1 -0
  300. package/dist/chunk-rxs4gexg.js +1 -0
  301. package/dist/{chunk-0fhpz98a.js → chunk-rxxn6qxm.js} +2 -2
  302. package/dist/chunk-s6t5vxm9.js +1 -0
  303. package/dist/chunk-s6xjfvvd.js +1 -0
  304. package/dist/chunk-s719ttj9.js +1 -0
  305. package/dist/chunk-sd6qvm4t.js +1 -0
  306. package/dist/chunk-shc3fcge.js +1 -0
  307. package/dist/chunk-ss233wsa.js +1 -0
  308. package/dist/chunk-stp38gza.js +1 -0
  309. package/dist/{chunk-c9q11tk2.js → chunk-sws9653v.js} +1 -1
  310. package/dist/chunk-syme57ea.js +1 -0
  311. package/dist/chunk-sz3tq28n.js +2 -0
  312. package/dist/chunk-t0tznkac.js +1 -0
  313. package/dist/chunk-t32zj7ah.js +1 -0
  314. package/dist/chunk-t5z5e89a.js +1 -0
  315. package/dist/chunk-t8w9hqaa.js +1 -0
  316. package/dist/chunk-t97kks4j.js +1 -0
  317. package/dist/chunk-tamfhbc6.js +1 -0
  318. package/dist/chunk-tchg9ygq.js +1 -0
  319. package/dist/chunk-te7k3eqj.js +1 -0
  320. package/dist/chunk-tjj6zd94.js +2 -0
  321. package/dist/chunk-tpgf3t6p.js +1 -0
  322. package/dist/chunk-tpyp8wqr.js +1 -0
  323. package/dist/chunk-trx18gxg.js +1 -0
  324. package/dist/chunk-ts98e90r.js +1 -0
  325. package/dist/chunk-tv1kqdv9.js +1 -0
  326. package/dist/chunk-tvbj84md.js +1 -0
  327. package/dist/chunk-tx71e422.js +1 -0
  328. package/dist/chunk-ty5eswjv.js +1 -0
  329. package/dist/chunk-v1e0cwqh.js +1 -0
  330. package/dist/{chunk-dh3jz71n.js → chunk-v28dexnx.js} +1 -1
  331. package/dist/chunk-v3bw2mnd.js +1 -0
  332. package/dist/chunk-v3ta4qyy.js +1 -0
  333. package/dist/chunk-v85y10pz.js +1 -0
  334. package/dist/chunk-v8ag7wgx.js +1 -0
  335. package/dist/chunk-v9b5r8aq.js +1 -0
  336. package/dist/chunk-vd8byz1r.js +2 -0
  337. package/dist/chunk-vgvekk29.js +1 -0
  338. package/dist/chunk-vjvr9n6y.js +1 -0
  339. package/dist/chunk-vkfgx6sa.js +2 -0
  340. package/dist/{chunk-kbs4px1b.js → chunk-vkfhjhhh.js} +1 -1
  341. package/dist/chunk-vtxyeepe.js +2 -0
  342. package/dist/chunk-vxzscaap.js +1 -0
  343. package/dist/{chunk-9kc9cea3.js → chunk-vyfvrrc8.js} +2 -2
  344. package/dist/chunk-w0me5x6g.js +1 -0
  345. package/dist/{chunk-vjj00e3e.js → chunk-w69pf8zx.js} +2 -2
  346. package/dist/chunk-w895krdx.js +1 -0
  347. package/dist/chunk-w8vzpn90.js +1 -0
  348. package/dist/chunk-wb0ms9q0.js +1 -0
  349. package/dist/chunk-we3jwpsb.js +2 -0
  350. package/dist/chunk-wk8sx9ev.js +1 -0
  351. package/dist/{chunk-jkbtx9va.js → chunk-wtwgpw9g.js} +1 -1
  352. package/dist/chunk-wy3eznsy.js +2 -0
  353. package/dist/chunk-x0mnchxz.js +1 -0
  354. package/dist/chunk-x0qb9311.js +1 -0
  355. package/dist/chunk-x7g4cwft.js +1 -0
  356. package/dist/{chunk-6ty22kkt.js → chunk-xb46b3bf.js} +1 -1
  357. package/dist/chunk-xcea0hn5.js +2 -0
  358. package/dist/{chunk-kxk71nn0.js → chunk-xh3gtpfd.js} +1 -1
  359. package/dist/chunk-xk0abc6t.js +1 -0
  360. package/dist/chunk-xmp5jp4r.js +1 -0
  361. package/dist/{chunk-vc384abg.js → chunk-xzpqbfjh.js} +1 -1
  362. package/dist/chunk-y1f3hfaq.js +1 -0
  363. package/dist/chunk-y3d9nwzf.js +1 -0
  364. package/dist/chunk-y3gfd4y3.js +1 -0
  365. package/dist/{chunk-sft6ep0c.js → chunk-y5pf2d0x.js} +1 -1
  366. package/dist/chunk-y6vatv51.js +1 -0
  367. package/dist/chunk-y971vkwy.js +1 -0
  368. package/dist/chunk-yb2kp04v.js +1 -0
  369. package/dist/chunk-yctck6wf.js +1 -0
  370. package/dist/chunk-yfasv01s.js +1 -0
  371. package/dist/chunk-yj27rmw2.js +1 -0
  372. package/dist/chunk-ypj2k2de.js +1 -0
  373. package/dist/chunk-yr04s6b7.js +1 -0
  374. package/dist/chunk-yr48as8z.js +1 -0
  375. package/dist/chunk-ywas7wb8.js +1 -0
  376. package/dist/chunk-ywp666sg.js +1 -0
  377. package/dist/chunk-yx4mdqvf.js +1 -0
  378. package/dist/chunk-yxwramd1.js +1 -0
  379. package/dist/chunk-yz8sseev.js +1 -0
  380. package/dist/chunk-z0abvgpr.js +1 -0
  381. package/dist/chunk-z46zzhqf.js +1 -0
  382. package/dist/chunk-z6rwg7bs.js +1 -0
  383. package/dist/chunk-zag96nyc.js +2 -0
  384. package/dist/chunk-zb9wth64.js +1 -0
  385. package/dist/chunk-zkfa00mf.js +1 -0
  386. package/dist/chunk-znpdxhep.js +1 -0
  387. package/dist/chunk-zpes0b8m.js +1 -0
  388. package/dist/{chunk-n1d8xx5k.js → chunk-zqx4fcfe.js} +1 -1
  389. package/dist/chunk-zt78xjtr.js +2 -0
  390. package/dist/chunk-ztpff54v.js +1 -0
  391. package/dist/chunk-zv9ac3c0.js +2 -0
  392. package/dist/chunk-zx19re81.js +2 -0
  393. package/dist/cli.js +1 -1
  394. package/dist/nonInteractive.js +3 -3
  395. package/dist/zen-keyboard.js +1 -1
  396. package/package.json +4 -2
  397. package/dist/chunk-3jek9sxm.js +0 -2
  398. package/dist/chunk-3znrwnd8.js +0 -1
  399. package/dist/chunk-4b8yaknt.js +0 -1
  400. package/dist/chunk-5nzs0q25.js +0 -1
  401. package/dist/chunk-70a0e941.js +0 -1
  402. package/dist/chunk-8nhayyat.js +0 -1
  403. package/dist/chunk-cga0m5sy.js +0 -1
  404. package/dist/chunk-e0sqjq2h.js +0 -1
  405. package/dist/chunk-efhkdw2z.js +0 -1
  406. package/dist/chunk-ew7249h9.js +0 -1
  407. package/dist/chunk-hww94vjn.js +0 -1
  408. package/dist/chunk-k67epfhc.js +0 -1
  409. package/dist/chunk-keqk70wm.js +0 -2
  410. package/dist/chunk-mg8zpgaz.js +0 -1
  411. package/dist/chunk-ndtwq2zx.js +0 -2
  412. package/dist/chunk-pdkbrds7.js +0 -1
  413. package/dist/chunk-rdc9pxf6.js +0 -1
  414. package/dist/chunk-vkng13p1.js +0 -424
  415. package/dist/chunk-wbn1hbxf.js +0 -1
@@ -0,0 +1 @@
1
+ import"./chunk-feptb1bb.js";var e=Object.freeze(JSON.parse('{"displayName":"Groovy","name":"groovy","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.groovy"}},"match":"^(#!).+$\\\\n","name":"comment.line.hashbang.groovy"},{"captures":{"1":{"name":"keyword.other.package.groovy"},"2":{"name":"storage.modifier.package.groovy"},"3":{"name":"punctuation.terminator.groovy"}},"match":"^\\\\s*(package)\\\\b(?:\\\\s*([^ $;]+)\\\\s*(;)?)?","name":"meta.package.groovy"},{"begin":"(import static)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.import.static.groovy"}},"captures":{"1":{"name":"keyword.other.import.groovy"},"2":{"name":"storage.modifier.import.groovy"},"3":{"name":"punctuation.terminator.groovy"}},"contentName":"storage.modifier.import.groovy","end":"\\\\s*(?:$|(?=%>)(;))","endCaptures":{"1":{"name":"punctuation.terminator.groovy"}},"name":"meta.import.groovy","patterns":[{"match":"\\\\.","name":"punctuation.separator.groovy"},{"match":"\\\\s","name":"invalid.illegal.character_not_allowed_here.groovy"}]},{"begin":"(import)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.import.groovy"}},"captures":{"1":{"name":"keyword.other.import.groovy"},"2":{"name":"storage.modifier.import.groovy"},"3":{"name":"punctuation.terminator.groovy"}},"contentName":"storage.modifier.import.groovy","end":"\\\\s*(?:$|(?=%>)|(;))","endCaptures":{"1":{"name":"punctuation.terminator.groovy"}},"name":"meta.import.groovy","patterns":[{"match":"\\\\.","name":"punctuation.separator.groovy"},{"match":"\\\\s","name":"invalid.illegal.character_not_allowed_here.groovy"}]},{"captures":{"1":{"name":"keyword.other.import.groovy"},"2":{"name":"keyword.other.import.static.groovy"},"3":{"name":"storage.modifier.import.groovy"},"4":{"name":"punctuation.terminator.groovy"}},"match":"^\\\\s*(import)\\\\s+(static)\\\\s+\\\\b(?:\\\\s*([^ $;]+)\\\\s*(;)?)?","name":"meta.import.groovy"},{"include":"#groovy"}],"repository":{"annotations":{"patterns":[{"begin":"(?<!\\\\.)(@[^ (]+)(\\\\()","beginCaptures":{"1":{"name":"storage.type.annotation.groovy"},"2":{"name":"punctuation.definition.annotation-arguments.begin.groovy"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.annotation-arguments.end.groovy"}},"name":"meta.declaration.annotation.groovy","patterns":[{"captures":{"1":{"name":"constant.other.key.groovy"},"2":{"name":"keyword.operator.assignment.groovy"}},"match":"(\\\\w*)\\\\s*(=)"},{"include":"#values"},{"match":",","name":"punctuation.definition.seperator.groovy"}]},{"match":"(?<!\\\\.)@\\\\S+","name":"storage.type.annotation.groovy"}]},"anonymous-classes-and-new":{"begin":"\\\\bnew\\\\b","beginCaptures":{"0":{"name":"keyword.control.new.groovy"}},"end":"(?<=[])])(?!\\\\s*\\\\{)|(?<=})|(?=;)|$","patterns":[{"begin":"(\\\\w+)\\\\s*(?=\\\\[)","beginCaptures":{"1":{"name":"storage.type.groovy"}},"end":"}|(?=\\\\s*[),;])|$","patterns":[{"begin":"\\\\[","end":"]","patterns":[{"include":"#groovy"}]},{"begin":"\\\\{","end":"(?=})","patterns":[{"include":"#groovy"}]}]},{"begin":"(?=\\\\w.*\\\\(?)","end":"(?<=\\\\))|$","patterns":[{"include":"#object-types"},{"begin":"\\\\(","beginCaptures":{"1":{"name":"storage.type.groovy"}},"end":"\\\\)","patterns":[{"include":"#groovy"}]}]},{"begin":"\\\\{","end":"}","name":"meta.inner-class.groovy","patterns":[{"include":"#class-body"}]}]},"braces":{"begin":"\\\\{","end":"}","patterns":[{"include":"#groovy-code"}]},"class":{"begin":"(?=\\\\w?[\\\\w\\\\s]*(?:class|@?interface|enum)\\\\s+\\\\w+)","end":"}","endCaptures":{"0":{"name":"punctuation.section.class.end.groovy"}},"name":"meta.definition.class.groovy","patterns":[{"include":"#storage-modifiers"},{"include":"#comments"},{"captures":{"1":{"name":"storage.modifier.groovy"},"2":{"name":"entity.name.type.class.groovy"}},"match":"(class|@?interface|enum)\\\\s+(\\\\w+)","name":"meta.class.identifier.groovy"},{"begin":"extends","beginCaptures":{"0":{"name":"storage.modifier.extends.groovy"}},"end":"(?=\\\\{|implements)","name":"meta.definition.class.inherited.classes.groovy","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"(implements)\\\\s","beginCaptures":{"1":{"name":"storage.modifier.implements.groovy"}},"end":"(?=\\\\s*extends|\\\\{)","name":"meta.definition.class.implemented.interfaces.groovy","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"\\\\{","end":"(?=})","name":"meta.class.body.groovy","patterns":[{"include":"#class-body"}]}]},"class-body":{"patterns":[{"include":"#enum-values"},{"include":"#constructors"},{"include":"#groovy"}]},"closures":{"begin":"\\\\{(?=.*?->)","end":"}","patterns":[{"begin":"(?<=\\\\{)(?=[^}]*?->)","end":"->","endCaptures":{"0":{"name":"keyword.operator.groovy"}},"patterns":[{"begin":"(?!->)","end":"(?=->)","name":"meta.closure.parameters.groovy","patterns":[{"begin":"(?!,|->)","end":"(?=,|->)","name":"meta.closure.parameter.groovy","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.groovy"}},"end":"(?=,|->)","name":"meta.parameter.default.groovy","patterns":[{"include":"#groovy-code"}]},{"include":"#parameters"}]}]}]},{"begin":"(?=[^}])","end":"(?=})","patterns":[{"include":"#groovy-code"}]}]},"comment-block":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.groovy"}},"end":"\\\\*/","name":"comment.block.groovy"},"comments":{"patterns":[{"captures":{"0":{"name":"punctuation.definition.comment.groovy"}},"match":"/\\\\*\\\\*/","name":"comment.block.empty.groovy"},{"include":"text.html.javadoc"},{"include":"#comment-block"},{"captures":{"1":{"name":"punctuation.definition.comment.groovy"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.groovy"}]},"constants":{"patterns":[{"match":"\\\\b([A-Z][0-9A-Z_]+)\\\\b","name":"constant.other.groovy"},{"match":"\\\\b(true|false|null)\\\\b","name":"constant.language.groovy"}]},"constructors":{"applyEndPatternLast":1,"begin":"(?<=;|^)(?=\\\\s*(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)\\\\s+)*[A-Z]\\\\w*\\\\()","end":"}","patterns":[{"include":"#method-content"}]},"enum-values":{"patterns":[{"begin":"(?<=;|^)\\\\s*\\\\b([0-9A-Z_]+)(?=\\\\s*(?:[(,;}]|$))","beginCaptures":{"1":{"name":"constant.enum.name.groovy"}},"end":"[,;]|(?=})|^(?!\\\\s*\\\\w+\\\\s*(?:,|$))","patterns":[{"begin":"\\\\(","end":"\\\\)","name":"meta.enum.value.groovy","patterns":[{"match":",","name":"punctuation.definition.seperator.parameter.groovy"},{"include":"#groovy-code"}]}]}]},"groovy":{"patterns":[{"include":"#comments"},{"include":"#class"},{"include":"#variables"},{"include":"#methods"},{"include":"#annotations"},{"include":"#groovy-code"}]},"groovy-code":{"patterns":[{"include":"#groovy-code-minus-map-keys"},{"include":"#map-keys"}]},"groovy-code-minus-map-keys":{"patterns":[{"include":"#comments"},{"include":"#annotations"},{"include":"#support-functions"},{"include":"#keyword-language"},{"include":"#values"},{"include":"#anonymous-classes-and-new"},{"include":"#keyword-operator"},{"include":"#types"},{"include":"#storage-modifiers"},{"include":"#parens"},{"include":"#closures"},{"include":"#braces"}]},"keyword":{"patterns":[{"include":"#keyword-operator"},{"include":"#keyword-language"}]},"keyword-language":{"patterns":[{"match":"\\\\b(try|catch|finally|throw)\\\\b","name":"keyword.control.exception.groovy"},{"match":"\\\\b((?<!\\\\.)(?:return|break|continue|default|do|while|for|switch|if|else))\\\\b","name":"keyword.control.groovy"},{"begin":"\\\\bcase\\\\b","beginCaptures":{"0":{"name":"keyword.control.groovy"}},"end":":","endCaptures":{"0":{"name":"punctuation.definition.case-terminator.groovy"}},"name":"meta.case.groovy","patterns":[{"include":"#groovy-code-minus-map-keys"}]},{"begin":"\\\\b(assert)\\\\s","beginCaptures":{"1":{"name":"keyword.control.assert.groovy"}},"end":"$|[;}]","name":"meta.declaration.assertion.groovy","patterns":[{"match":":","name":"keyword.operator.assert.expression-seperator.groovy"},{"include":"#groovy-code-minus-map-keys"}]},{"match":"\\\\b(throws)\\\\b","name":"keyword.other.throws.groovy"}]},"keyword-operator":{"patterns":[{"match":"\\\\b(as)\\\\b","name":"keyword.operator.as.groovy"},{"match":"\\\\b(in)\\\\b","name":"keyword.operator.in.groovy"},{"match":"\\\\?:","name":"keyword.operator.elvis.groovy"},{"match":"\\\\*:","name":"keyword.operator.spreadmap.groovy"},{"match":"\\\\.\\\\.","name":"keyword.operator.range.groovy"},{"match":"->","name":"keyword.operator.arrow.groovy"},{"match":"<<","name":"keyword.operator.leftshift.groovy"},{"match":"(?<=\\\\S)\\\\.(?=\\\\S)","name":"keyword.operator.navigation.groovy"},{"match":"(?<=\\\\S)\\\\?\\\\.(?=\\\\S)","name":"keyword.operator.safe-navigation.groovy"},{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.groovy"}},"end":"(?=$|[])}])","name":"meta.evaluation.ternary.groovy","patterns":[{"match":":","name":"keyword.operator.ternary.expression-seperator.groovy"},{"include":"#groovy-code-minus-map-keys"}]},{"match":"==~","name":"keyword.operator.match.groovy"},{"match":"=~","name":"keyword.operator.find.groovy"},{"match":"\\\\b(instanceof)\\\\b","name":"keyword.operator.instanceof.groovy"},{"match":"(===?|!=|<=|>=|<=>|<>|[<>]|<<)","name":"keyword.operator.comparison.groovy"},{"match":"=","name":"keyword.operator.assignment.groovy"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.groovy"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.groovy"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.groovy"}]},"language-variables":{"patterns":[{"match":"\\\\b(this|super)\\\\b","name":"variable.language.groovy"}]},"map-keys":{"patterns":[{"captures":{"1":{"name":"constant.other.key.groovy"},"2":{"name":"punctuation.definition.seperator.key-value.groovy"}},"match":"(\\\\w+)\\\\s*(:)"}]},"method-call":{"begin":"([$\\\\w]+)(\\\\()","beginCaptures":{"1":{"name":"meta.method.groovy"},"2":{"name":"punctuation.definition.method-parameters.begin.groovy"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.method-parameters.end.groovy"}},"name":"meta.method-call.groovy","patterns":[{"match":",","name":"punctuation.definition.seperator.parameter.groovy"},{"include":"#groovy-code"}]},"method-content":{"patterns":[{"match":"\\\\s"},{"include":"#annotations"},{"begin":"(?=[<\\\\w][^(]*\\\\s+[$<\\\\w]+\\\\s*\\\\()","end":"(?=[$\\\\w]+\\\\s*\\\\()","name":"meta.method.return-type.java","patterns":[{"include":"#storage-modifiers"},{"include":"#types"}]},{"begin":"([$\\\\w]+)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.java"}},"end":"\\\\)","name":"meta.definition.method.signature.java","patterns":[{"begin":"(?=[^)])","end":"(?=\\\\))","name":"meta.method.parameters.groovy","patterns":[{"begin":"(?=[^),])","end":"(?=[),])","name":"meta.method.parameter.groovy","patterns":[{"match":",","name":"punctuation.definition.separator.groovy"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.groovy"}},"end":"(?=[),])","name":"meta.parameter.default.groovy","patterns":[{"include":"#groovy-code"}]},{"include":"#parameters"}]}]}]},{"begin":"(?=<)","end":"(?=\\\\s)","name":"meta.method.paramerised-type.groovy","patterns":[{"begin":"<","end":">","name":"storage.type.parameters.groovy","patterns":[{"include":"#types"},{"match":",","name":"punctuation.definition.seperator.groovy"}]}]},{"begin":"throws","beginCaptures":{"0":{"name":"storage.modifier.groovy"}},"end":"(?=[;{])|^(?=\\\\s*(?:[^{\\\\s]|$))","name":"meta.throwables.groovy","patterns":[{"include":"#object-types"}]},{"begin":"\\\\{","end":"(?=})","name":"meta.method.body.java","patterns":[{"include":"#groovy-code"}]}]},"methods":{"applyEndPatternLast":1,"begin":"(?<=;|^|\\\\{)(?=\\\\s*(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)|def|(?:(?:void|boolean|byte|char|short|int|float|long|double)|@?(?:[A-Za-z]\\\\w*\\\\.)*[A-Z]+\\\\w*)[]\\\\[]*(?:<.*>)?)\\\\s+([^=]+\\\\s+)?\\\\w+\\\\s*\\\\()","end":"}|(?=[^{])","name":"meta.definition.method.groovy","patterns":[{"include":"#method-content"}]},"nest_curly":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.groovy"}},"end":"}","patterns":[{"include":"#nest_curly"}]},"numbers":{"patterns":[{"match":"((0([Xx])\\\\h*)|([-+])?\\\\b(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([DFLUdfglu]|UL|ul)?\\\\b","name":"constant.numeric.groovy"}]},"object-types":{"patterns":[{"begin":"\\\\b((?:[a-z]\\\\w*\\\\.)*(?:[A-Z]+\\\\w*[a-z]+\\\\w*|UR[IL]))<","end":"[>[^],<?\\\\[\\\\w\\\\s]]","name":"storage.type.generic.groovy","patterns":[{"include":"#object-types"},{"begin":"<","end":"[>[^],<\\\\[\\\\w\\\\s]]","name":"storage.type.generic.groovy"}]},{"begin":"\\\\b((?:[a-z]\\\\w*\\\\.)*[A-Z]+\\\\w*[a-z]+\\\\w*)(?=\\\\[)","end":"(?=[^]\\\\s])","name":"storage.type.object.array.groovy","patterns":[{"begin":"\\\\[","end":"]","patterns":[{"include":"#groovy"}]}]},{"match":"\\\\b(?:[A-Za-z]\\\\w*\\\\.)*(?:[A-Z]+\\\\w*[a-z]+\\\\w*|UR[IL])\\\\b","name":"storage.type.groovy"}]},"object-types-inherited":{"patterns":[{"begin":"\\\\b((?:[A-Za-z]\\\\w*\\\\.)*[A-Z]+\\\\w*[a-z]+\\\\w*)<","end":"[>[^],<?\\\\[\\\\w\\\\s]]","name":"entity.other.inherited-class.groovy","patterns":[{"include":"#object-types-inherited"},{"begin":"<","end":"[>[^],<\\\\[\\\\w\\\\s]]","name":"storage.type.generic.groovy"}]},{"captures":{"1":{"name":"keyword.operator.dereference.groovy"}},"match":"\\\\b(?:[A-Za-z]\\\\w*(\\\\.))*[A-Z]+\\\\w*[a-z]+\\\\w*\\\\b","name":"entity.other.inherited-class.groovy"}]},"parameters":{"patterns":[{"include":"#annotations"},{"include":"#storage-modifiers"},{"include":"#types"},{"match":"\\\\w+","name":"variable.parameter.method.groovy"}]},"parens":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#groovy-code"}]},"primitive-arrays":{"patterns":[{"match":"\\\\b(?:void|boolean|byte|char|short|int|float|long|double)(\\\\[])*\\\\b","name":"storage.type.primitive.array.groovy"}]},"primitive-types":{"patterns":[{"match":"\\\\b(?:void|boolean|byte|char|short|int|float|long|double)\\\\b","name":"storage.type.primitive.groovy"}]},"regexp":{"patterns":[{"begin":"/(?=[^/]+/([^>]|$))","beginCaptures":{"0":{"name":"punctuation.definition.string.regexp.begin.groovy"}},"end":"/","endCaptures":{"0":{"name":"punctuation.definition.string.regexp.end.groovy"}},"name":"string.regexp.groovy","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.groovy"}]},{"begin":"~\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.regexp.begin.groovy"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.regexp.end.groovy"}},"name":"string.regexp.compiled.groovy","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.groovy"}]}]},"storage-modifiers":{"patterns":[{"match":"\\\\b(p(?:rivate|rotected|ublic))\\\\b","name":"storage.modifier.access-control.groovy"},{"match":"\\\\b(static)\\\\b","name":"storage.modifier.static.groovy"},{"match":"\\\\b(final)\\\\b","name":"storage.modifier.final.groovy"},{"match":"\\\\b(native|synchronized|abstract|threadsafe|transient)\\\\b","name":"storage.modifier.other.groovy"}]},"string-quoted-double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.groovy"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.groovy"}},"name":"string.quoted.double.groovy","patterns":[{"include":"#string-quoted-double-contents"}]},"string-quoted-double-contents":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.groovy"},{"applyEndPatternLast":1,"begin":"\\\\$\\\\w","end":"(?=\\\\W)","name":"variable.other.interpolated.groovy","patterns":[{"match":"\\\\w","name":"variable.other.interpolated.groovy"},{"match":"\\\\.","name":"keyword.other.dereference.groovy"}]},{"begin":"\\\\$\\\\{","captures":{"0":{"name":"punctuation.section.embedded.groovy"}},"end":"}","name":"source.groovy.embedded.source","patterns":[{"include":"#nest_curly"}]}]},"string-quoted-double-multiline":{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.groovy"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.groovy"}},"name":"string.quoted.double.multiline.groovy","patterns":[{"include":"#string-quoted-double-contents"}]},"string-quoted-single":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.groovy"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.groovy"}},"name":"string.quoted.single.groovy","patterns":[{"include":"#string-quoted-single-contents"}]},"string-quoted-single-contents":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.groovy"}]},"string-quoted-single-multiline":{"begin":"\'\'\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.groovy"}},"end":"\'\'\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.groovy"}},"name":"string.quoted.single.multiline.groovy","patterns":[{"include":"#string-quoted-single-contents"}]},"strings":{"patterns":[{"include":"#string-quoted-double-multiline"},{"include":"#string-quoted-single-multiline"},{"include":"#string-quoted-double"},{"include":"#string-quoted-single"},{"include":"#regexp"}]},"structures":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.structure.begin.groovy"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.structure.end.groovy"}},"name":"meta.structure.groovy","patterns":[{"include":"#groovy-code"},{"match":",","name":"punctuation.definition.separator.groovy"}]},"support-functions":{"patterns":[{"match":"\\\\b(?:sprintf|print(?:f|ln)?)\\\\b","name":"support.function.print.groovy"},{"match":"\\\\b(?:shouldFail|fail(?:NotEquals)?|ass(?:ume|ert(?:S(?:cript|ame)|N(?:ot(?:Same|Null)|ull)|Contains|T(?:hat|oString|rue)|Inspect|Equals|False|Length|ArrayEquals)))\\\\b","name":"support.function.testing.groovy"}]},"types":{"patterns":[{"match":"\\\\b(def)\\\\b","name":"storage.type.def.groovy"},{"include":"#primitive-types"},{"include":"#primitive-arrays"},{"include":"#object-types"}]},"values":{"patterns":[{"include":"#language-variables"},{"include":"#strings"},{"include":"#numbers"},{"include":"#constants"},{"include":"#types"},{"include":"#structures"},{"include":"#method-call"}]},"variables":{"applyEndPatternLast":1,"patterns":[{"begin":"(?=(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)|def|(?:void|boolean|byte|char|short|int|float|long|double)|(?:[a-z]\\\\w*\\\\.)*[A-Z]+\\\\w*)\\\\s+[],<>\\\\[_\\\\w\\\\d\\\\s]+(?:=|$))","end":";|$","name":"meta.definition.variable.groovy","patterns":[{"match":"\\\\s"},{"captures":{"1":{"name":"constant.variable.groovy"}},"match":"([0-9A-Z_]+)\\\\s+(?==)"},{"captures":{"1":{"name":"meta.definition.variable.name.groovy"}},"match":"(\\\\w[^,\\\\s]*)\\\\s+(?==)"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.groovy"}},"end":"$","patterns":[{"include":"#groovy-code"}]},{"captures":{"1":{"name":"meta.definition.variable.name.groovy"}},"match":"(\\\\w[^=\\\\s]*)(?=\\\\s*($|;))"},{"include":"#groovy-code"}]}]}},"scopeName":"source.groovy"}')),n=[e];export{n as default};
@@ -0,0 +1 @@
1
+ import{R as a}from"./chunk-11ctp51v.js";import"./chunk-9phx46cq.js";import"./chunk-d9hpz80s.js";import"./chunk-zv9ac3c0.js";import"./chunk-feptb1bb.js";export{a as default};
@@ -0,0 +1 @@
1
+ import"./chunk-feptb1bb.js";var e=Object.freeze(JSON.parse('{"displayName":"CODEOWNERS","name":"codeowners","patterns":[{"include":"#comment"},{"include":"#pattern"},{"include":"#owner"}],"repository":{"comment":{"patterns":[{"begin":"^\\\\s*#","captures":{"0":{"name":"punctuation.definition.comment.codeowners"}},"end":"$","name":"comment.line.codeowners"}]},"owner":{"match":"\\\\S*@\\\\S+","name":"storage.type.function.codeowners"},"pattern":{"match":"^\\\\s*(\\\\S+)","name":"variable.other.codeowners"}},"scopeName":"text.codeowners"}')),n=[e];export{n as default};
@@ -0,0 +1 @@
1
+ import{I as a}from"./chunk-7cenjy4r.js";import{S as t}from"./chunk-9phx46cq.js";import{T as n}from"./chunk-d9hpz80s.js";import{U as e}from"./chunk-zv9ac3c0.js";import"./chunk-feptb1bb.js";var i=Object.freeze(JSON.parse('{"displayName":"Glimmer TS","injections":{"L:source.gts -comment -(string -meta.embedded)":{"patterns":[{"include":"#main"}]}},"name":"glimmer-ts","patterns":[{"include":"#main"},{"include":"source.ts"}],"repository":{"as-keyword":{"match":"\\\\s\\\\b(as)\\\\b(?=\\\\s\\\\|)","name":"keyword.control","patterns":[]},"as-params":{"begin":"(?<!\\\\|)(\\\\|)","beginCaptures":{"1":{"name":"constant.other.symbol.begin.ember-handlebars"}},"end":"(\\\\|)(?!\\\\|)","endCaptures":{"1":{"name":"constant.other.symbol.end.ember-handlebars"}},"name":"keyword.block-params.ember-handlebars","patterns":[{"include":"#variable"}]},"attention":{"match":"@?(TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE|REVIEW|NB|BUG|QUESTION|TEMP)\\\\b","name":"storage.type.class.${1:/downcase}","patterns":[]},"boolean":{"captures":{"0":{"name":"string.regexp"},"1":{"name":"string.regexp"},"2":{"name":"string.regexp"}},"match":"true|false|undefined|null","patterns":[]},"component-tag":{"begin":"(</?)(@|this.)?([-$.0-:A-Z_a-z]+)\\\\b","beginCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"support.function","patterns":[{"match":"(@|this)","name":"variable.language"},{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]},"3":{"name":"entity.name.type","patterns":[{"include":"#glimmer-component-path"},{"match":"([$:@])","name":"markup.bold"}]}},"end":"(/?)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"}},"name":"meta.tag.any.ember-handlebars","patterns":[{"include":"#tag-like-content"}]},"digit":{"captures":{"0":{"name":"constant.numeric"},"1":{"name":"constant.numeric"},"2":{"name":"constant.numeric"}},"match":"\\\\d*(\\\\.)?\\\\d+","patterns":[]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html.ember-handlebars"},"3":{"name":"punctuation.definition.entity.html.ember-handlebars"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.html.ember-handlebars"},{"match":"&","name":"invalid.illegal.bad-ampersand.html.ember-handlebars"}]},"glimmer-argument":{"captures":{"1":{"name":"entity.other.attribute-name.ember-handlebars.argument","patterns":[{"match":"(@)","name":"markup.italic"}]},"2":{"name":"punctuation.separator.key-value.html.ember-handlebars"}},"match":"\\\\s(@[-.0-:A-Z_a-z]+)(=)?"},"glimmer-as-stuff":{"patterns":[{"include":"#as-keyword"},{"include":"#as-params"}]},"glimmer-block":{"begin":"(\\\\{\\\\{~?)([#/])(([$\\\\--9@-Z_a-z]+))","captures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"},"3":{"name":"keyword.control","patterns":[{"include":"#glimmer-component-path"},{"match":"(/)+","name":"punctuation.definition.tag"},{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]}},"end":"(~?}})","name":"entity.expression.ember-handlebars","patterns":[{"include":"#glimmer-as-stuff"},{"include":"#glimmer-supexp-content"}]},"glimmer-bools":{"captures":{"0":{"name":"keyword.operator"},"1":{"name":"keyword.operator"},"2":{"name":"string.regexp"},"3":{"name":"string.regexp"},"4":{"name":"keyword.operator"}},"match":"(\\\\{\\\\{~?)(true|false|null|undefined|\\\\d*(\\\\.)?\\\\d+)(~?}})","name":"entity.expression.ember-handlebars"},"glimmer-comment-block":{"begin":"\\\\{\\\\{!--","captures":{"0":{"name":"punctuation.definition.block.comment.glimmer"}},"end":"--}}","name":"comment.block.glimmer","patterns":[{"include":"#script"},{"include":"#attention"}]},"glimmer-comment-inline":{"begin":"\\\\{\\\\{!","captures":{"0":{"name":"punctuation.definition.block.comment.glimmer"}},"end":"}}","name":"comment.inline.glimmer","patterns":[{"include":"#script"},{"include":"#attention"}]},"glimmer-component-path":{"captures":{"1":{"name":"punctuation.definition.tag"}},"match":"(::|[$._])"},"glimmer-control-expression":{"begin":"(\\\\{\\\\{~?)(([-/-9A-Z_a-z]+)\\\\s)","captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"keyword.control"}},"end":"(~?}})","name":"entity.expression.ember-handlebars","patterns":[{"include":"#glimmer-supexp-content"}]},"glimmer-else-block":{"captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"punctuation.definition.tag"},"2":{"name":"keyword.control"},"3":{"name":"keyword.control","patterns":[{"include":"#glimmer-subexp"},{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#boolean"},{"include":"#digit"},{"include":"#param"},{"include":"#glimmer-parameter-name"},{"include":"#glimmer-parameter-value"}]},"4":{"name":"punctuation.definition.tag"}},"match":"(\\\\{\\\\{~?)(else(?:\\\\s[a-z]+\\\\s|))([\\\\x08().0-9@-Za-z\\\\s]+)?(~?}})","name":"entity.expression.ember-handlebars"},"glimmer-expression":{"begin":"(\\\\{\\\\{~?)(([-().0-9@-Z_a-z\\\\s]+))","captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"support.function","patterns":[{"match":"\\\\(+","name":"string.regexp"},{"match":"\\\\)+","name":"string.regexp"},{"match":"(\\\\.)+","name":"punctuation.definition.tag"},{"include":"#glimmer-supexp-content"}]}},"end":"(~?}})","name":"entity.expression.ember-handlebars","patterns":[{"include":"#glimmer-supexp-content"}]},"glimmer-expression-property":{"begin":"(\\\\{\\\\{~?)((@|this.)([-.0-9A-Z_a-z]+))","captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"support.function","patterns":[{"match":"(@|this)","name":"variable.language"},{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]},"4":{"name":"support.function","patterns":[{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]}},"end":"(~?}})","name":"entity.expression.ember-handlebars","patterns":[{"include":"#glimmer-supexp-content"}]},"glimmer-parameter-name":{"captures":{"1":{"name":"variable.parameter.name.ember-handlebars"},"2":{"name":"punctuation.definition.expression.ember-handlebars"}},"match":"\\\\b([-0-9A-Z_a-z]+)(\\\\s?=)","patterns":[]},"glimmer-parameter-value":{"captures":{"1":{"name":"support.function","patterns":[{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]}},"match":"\\\\b([-.0-:A-Z_a-z]+)\\\\b(?!=)","patterns":[]},"glimmer-special-block":{"captures":{"0":{"name":"keyword.operator"},"1":{"name":"keyword.operator"},"2":{"name":"keyword.control"},"3":{"name":"keyword.operator"}},"match":"(\\\\{\\\\{~?)(yield|outlet)(~?}})","name":"entity.expression.ember-handlebars"},"glimmer-subexp":{"begin":"(\\\\()([-.0-9@-Za-z]+)","captures":{"1":{"name":"keyword.other"},"2":{"name":"keyword.control"}},"end":"(\\\\))","name":"entity.subexpression.ember-handlebars","patterns":[{"include":"#glimmer-supexp-content"}]},"glimmer-supexp-content":{"patterns":[{"include":"#glimmer-subexp"},{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#boolean"},{"include":"#digit"},{"include":"#param"},{"include":"#glimmer-parameter-name"},{"include":"#glimmer-parameter-value"}]},"glimmer-unescaped-expression":{"begin":"\\\\{\\\\{\\\\{","captures":{"0":{"name":"keyword.operator"}},"end":"}}}","name":"entity.unescaped.expression.ember-handlebars","patterns":[{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#glimmer-subexp"},{"include":"#param"}]},"html-attribute":{"captures":{"1":{"name":"entity.other.attribute-name.ember-handlebars","patterns":[{"match":"(\\\\.\\\\.\\\\.attributes)","name":"markup.bold"}]},"2":{"name":"punctuation.separator.key-value.html.ember-handlebars"}},"match":"\\\\s([-.0-:A-Z_a-z]+)(=)?"},"html-comment":{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.html.ember-handlebars"}},"end":"--\\\\s*>","name":"comment.block.html.ember-handlebars","patterns":[{"include":"#attention"},{"match":"--","name":"invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars"}]},"html-tag":{"begin":"(</?)([-0-9a-z]+)(?![.:])\\\\b","beginCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"entity.name.tag.html.ember-handlebars"}},"end":"(/?)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"}},"name":"meta.tag.any.ember-handlebars","patterns":[{"include":"#tag-like-content"}]},"main":{"patterns":[{"begin":"\\\\s*(<)(template)\\\\s*(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.other.html"},"3":{"name":"punctuation.definition.tag.html"}},"end":"(</)(template)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.other.html"},"3":{"name":"punctuation.definition.tag.html"}},"name":"meta.js.embeddedTemplateWithoutArgs","patterns":[{"include":"#style"},{"include":"#script"},{"include":"#glimmer-else-block"},{"include":"#glimmer-bools"},{"include":"#glimmer-special-block"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#html-tag"},{"include":"#component-tag"},{"include":"#html-comment"},{"include":"#entities"}]},{"begin":"(<)(template)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.other.html"}},"end":"(</)(template)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.other.html"},"3":{"name":"punctuation.definition.tag.html"}},"name":"meta.js.embeddedTemplateWithArgs","patterns":[{"begin":"(?<=<template)","end":"(?=>)","patterns":[{"include":"#tag-like-content"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.js"}},"contentName":"meta.html.embedded.block","end":"(?=</template>)","patterns":[{"include":"#style"},{"include":"#script"},{"include":"#glimmer-else-block"},{"include":"#glimmer-bools"},{"include":"#glimmer-special-block"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#html-tag"},{"include":"#component-tag"},{"include":"#html-comment"},{"include":"#entities"}]}]},{"begin":"\\\\b((?:\\\\w+\\\\.)*h(?:bs|tml)\\\\s*)(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js"},"2":{"name":"punctuation.definition.string.template.begin.js"}},"contentName":"meta.embedded.block.html","end":"(`)","endCaptures":{"0":{"name":"string.js"},"1":{"name":"punctuation.definition.string.template.end.js"}},"patterns":[{"include":"source.ts#template-substitution-element"},{"include":"#style"},{"include":"#script"},{"include":"#glimmer-else-block"},{"include":"#glimmer-bools"},{"include":"#glimmer-special-block"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#html-tag"},{"include":"#component-tag"},{"include":"#html-comment"},{"include":"#entities"}]},{"begin":"((createTemplate|hbs|html))(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.ts"},"2":{"name":"meta.function-call.ts"},"3":{"name":"meta.brace.round.ts"}},"contentName":"meta.embedded.block.html","end":"(\\\\))","endCaptures":{"1":{"name":"meta.brace.round.ts"}},"patterns":[{"begin":"(([\\"\'`]))","beginCaptures":{"1":{"name":"string.template.ts"},"2":{"name":"punctuation.definition.string.template.begin.ts"}},"end":"(([\\"\'`]))","endCaptures":{"1":{"name":"string.template.ts"},"2":{"name":"punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#style"},{"include":"#script"},{"include":"#glimmer-else-block"},{"include":"#glimmer-bools"},{"include":"#glimmer-special-block"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#html-tag"},{"include":"#component-tag"},{"include":"#html-comment"},{"include":"#entities"}]}]},{"begin":"((precompileTemplate)\\\\s*)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.ts"},"2":{"name":"meta.function-call.ts"},"3":{"name":"meta.brace.round.ts"}},"end":"(\\\\))","endCaptures":{"1":{"name":"meta.brace.round.ts"}},"patterns":[{"begin":"(([\\"\'`]))","beginCaptures":{"1":{"name":"string.template.ts"},"2":{"name":"punctuation.definition.string.template.begin.ts"}},"contentName":"meta.embedded.block.html","end":"(([\\"\'`]))","endCaptures":{"1":{"name":"string.template.ts"},"2":{"name":"punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#style"},{"include":"#script"},{"include":"#glimmer-else-block"},{"include":"#glimmer-bools"},{"include":"#glimmer-special-block"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#html-tag"},{"include":"#component-tag"},{"include":"#html-comment"},{"include":"#entities"}]},{"include":"source.ts#object-literal"},{"include":"source.ts"}]}]},"param":{"captures":{"0":{"name":"support.function","patterns":[{"match":"(@|this)","name":"variable.language"},{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]},"1":{"name":"support.function","patterns":[{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]}},"match":"(@|this.)([-.0-9A-Z_a-z]+)","patterns":[]},"script":{"begin":"(^[\\\\t ]+)?(?=<(?i:script)\\\\b(?!-))","beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"end":"(?!\\\\G)([\\\\t ]*$\\\\n?)?","endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}},"patterns":[{"begin":"(<)((?i:script))\\\\b","beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"(/)((?i:script))(>)","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.embedded.block.html","patterns":[{"begin":"\\\\G","end":"(?=/)","patterns":[{"begin":"(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.end.html"}},"end":"((<))(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.js-ignored-vscode"}},"patterns":[{"begin":"\\\\G","end":"(?=</(?i:script))","name":"source.js","patterns":[{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=</script)|\\\\n","name":"comment.line.double-slash.js"}]},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"\\\\*/|(?=</script)","name":"comment.block.js"},{"include":"source.js"}]}]},{"begin":"(?i:(?=type\\\\s*=\\\\s*([\\"\']?)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\"\'>\\\\s]))","end":"((<))(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"text.html.basic"}},"patterns":[{"begin":"(?!\\\\G)","end":"(?=</(?i:script))","name":"text.html.basic","patterns":[{"include":"text.html.basic"}]}]},{"begin":"(?=(?i:type))","end":"(<)(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"}}},{"include":"#string-double-quoted-html"},{"include":"#string-single-quoted-html"},{"include":"#glimmer-argument"},{"include":"#html-attribute"}]}]}]},"string-double-quoted-handlebars":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}},"name":"string.quoted.double.ember-handlebars","patterns":[{"match":"\\\\\\\\\\"","name":"constant.character.escape.ember-handlebars"}]},"string-double-quoted-html":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}},"name":"string.quoted.double.html.ember-handlebars","patterns":[{"match":"\\\\\\\\\\"","name":"constant.character.escape.ember-handlebars"},{"include":"#glimmer-bools"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"}]},"string-single-quoted-handlebars":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}},"name":"string.quoted.single.ember-handlebars","patterns":[{"match":"\\\\\\\\\'","name":"constant.character.escape.ember-handlebars"}]},"string-single-quoted-html":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}},"name":"string.quoted.single.html.ember-handlebars","patterns":[{"match":"\\\\\\\\\'","name":"constant.character.escape.ember-handlebars"},{"include":"#glimmer-bools"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"}]},"style":{"begin":"(^[\\\\t ]+)?(?=<(?i:style)\\\\b(?!-))","beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"end":"(?!\\\\G)([\\\\t ]*$\\\\n?)?","endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}},"patterns":[{"begin":"(?i)(<)(style)(?=\\\\s|/?>)","beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"(?i)((<)/)(style)\\\\s*(>)","endCaptures":{"0":{"name":"meta.tag.metadata.style.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.css-ignored-vscode"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.embedded.block.html","patterns":[{"begin":"\\\\G","captures":{"1":{"name":"punctuation.definition.tag.end.html"}},"end":"(>)","name":"meta.tag.metadata.style.start.html","patterns":[{"include":"#glimmer-argument"},{"include":"#html-attribute"}]},{"begin":"(?!\\\\G)","end":"(?=</(?i:style))","name":"source.css","patterns":[{"include":"source.css"}]}]}]},"tag-like-content":{"patterns":[{"include":"#glimmer-bools"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#boolean"},{"include":"#digit"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#string-double-quoted-html"},{"include":"#string-single-quoted-html"},{"include":"#glimmer-as-stuff"},{"include":"#glimmer-argument"},{"include":"#html-attribute"}]},"variable":{"match":"\\\\b([-0-9A-Z_a-z]+)\\\\b","name":"support.function","patterns":[]}},"scopeName":"source.gts","embeddedLangs":["typescript","css","javascript","html"],"aliases":["gts"]}')),c=[...a,...n,...e,...t,i];export{c as default};
@@ -1,2 +1,2 @@
1
- import{rb as W}from"./chunk-cze71w02.js";import X from"micromatch";import{z as E}from"zod";var T;((D)=>{D.ALLOW="allow";D.ASK="ask";D.DENY="deny"})(T||={});var _=E.object({tool:E.string(),specifier:E.string().optional(),action:E.nativeEnum(T)}),$=E.object({allow:E.array(E.string()).optional(),ask:E.array(E.string()).optional(),deny:E.array(E.string()).optional(),defaultMode:E.nativeEnum(T).optional()}),v=E.object({name:E.string(),args:E.record(E.string(),E.any())});class Q{rules;defaultMode;patternCache=new Map;constructor(x){this.rules=x.rules,this.defaultMode=x.defaultMode||"ask",this.rules.sort((q,B)=>{let D={deny:0,ask:1,allow:2},H=D[q.action]-D[B.action];if(H!==0)return H;let J=q.specifier==null?1:0,N=B.specifier==null?1:0;return J-N})}checkPermission(x){for(let q of this.rules)if(this.matchRule(q,x))return{allowed:q.action==="allow"||q.action==="ask",requiresApproval:q.action==="ask",matchedRule:q,reason:this.getReason(q)};return{allowed:this.defaultMode==="allow"||this.defaultMode==="ask",requiresApproval:this.defaultMode==="ask",reason:`No matching rule, using default mode: ${this.defaultMode}`}}matchRule(x,q){if(x.tool!==q.name)return!1;if(!x.specifier)return!0;let B=this.argsToString(q.args);if(q.name==="Bash")return this.matchBashCommand(x.specifier,B);if(x.specifier.endsWith(" ")&&!/[*?[\\]/.test(x.specifier))return B.startsWith(x.specifier);return this.matchGlob(x.specifier,B)}matchBashCommand(x,q){if(/[;&|]/.test(q))return!1;let D=/[<>()]/;if(D.test(q)){let H=q.split(D)[0].trim();return this.matchBashPattern(x,H)}return this.matchBashPattern(x,q)}matchBashPattern(x,q){if(x.endsWith(" "))return q.startsWith(x);return this.matchGlob(x,q)}matchGlob(x,q){try{let B=x.replace(/^\.\//,""),D=q.replace(/^\.\//,""),H=`${x}::${q}`,J=this.patternCache.get(H);if(J!==void 0)return J;let N=X.isMatch(D,B,{nocase:!1,dot:!0});return this.cacheResult(H,N),N}catch(B){return q===x}}cacheResult(x,q){if(this.patternCache.size>1000){let B=this.patternCache.keys().next().value;if(B)this.patternCache.delete(B)}this.patternCache.set(x,q)}argsToString(x){if(typeof x==="object"&&x!==null){if("command"in x&&x.command)return String(x.command);if("file_path"in x&&x.file_path)return String(x.file_path);return Object.values(x).flat().join(" ")}return String(x)}getReason(x){let q=x.action.toUpperCase(),B=x.tool,D=x.specifier?`(${x.specifier})`:"";return`${q} rule matched: ${B}${D}`}static parseRule(x,q){let B=x.match(/^(\w+)(?:\((.*)\))?$/);if(!B)throw Error(`Invalid permission rule format: ${x}`);let[,D,H]=B;return{tool:D,specifier:H,action:q}}static fromConfig(x){let q=[];for(let B of x.allow||[])q.push(Q.parseRule(B,"allow"));for(let B of x.ask||[])q.push(Q.parseRule(B,"ask"));for(let B of x.deny||[])q.push(Q.parseRule(B,"deny"));return new Q({rules:q,defaultMode:x.defaultMode||"ask"})}clearCache(){this.patternCache.clear()}getCacheSize(){return this.patternCache.size}}class L{configStore;toolNameMapper={};constructor(x){this.configStore=x}static instance=null;static getInstance(x){if(!L.instance){if(!x)throw Error("PermissionStore not initialized. Provide configStore on first call.");L.instance=new L(x)}return L.instance}static resetInstance(){L.instance=null}async getPermissions(){let x=await this.configStore.getConfig();if(x.permissions)return Q.fromConfig(x.permissions);return}async checkBashPermission(x,q){return(await this.getPermissions())?.checkPermission({name:"Bash",args:{command:x,cwd:q}})}async checkReadPermission(x){return(await this.getPermissions())?.checkPermission({name:"Read",args:{file_path:x}})}async checkWritePermission(x){return(await this.getPermissions())?.checkPermission({name:"Write",args:{file_path:x}})}}class V{configStore;skillStore;pluginStore;remoteStore;permissionStore;_initialized=!1;constructor(x,q,B,D){this.configStore=x,this.skillStore=q,this.pluginStore=B,this.remoteStore=D,this.permissionStore=L.getInstance(x)}async initialize(){if(this._initialized)return;if("initialize"in this.configStore&&typeof this.configStore.initialize==="function")await this.configStore.initialize();if("initialize"in this.skillStore&&typeof this.skillStore.initialize==="function")await this.skillStore.initialize();if("initialize"in this.pluginStore&&typeof this.pluginStore.initialize==="function")await this.pluginStore.initialize();this._initialized=!0}async ensureInitialized(){if(!this._initialized)throw Error("ConfigManager not initialized. Call await manager.initialize() first.")}async getConfig(){return await this.ensureInitialized(),await this.configStore.getConfig()}async updateConfig(x){return await this.ensureInitialized(),await this.configStore.updateConfig(x)}async listSkills(){return await this.ensureInitialized(),await this.skillStore.listSkills()}async getSkill(x){return await this.ensureInitialized(),await this.skillStore.getSkill(x)}async saveSkill(x,q){return await this.ensureInitialized(),await this.skillStore.saveSkill(x,q)}async deleteSkill(x){return await this.ensureInitialized(),await this.skillStore.deleteSkill(x)}async syncSkillsFromRemote(){if(await this.ensureInitialized(),!this.remoteStore)throw Error("Remote store not configured");return await this.skillStore.syncFromRemote(this.remoteStore)}async listPlugins(){return await this.ensureInitialized(),await this.pluginStore.listPlugins()}async getPluginConfig(x){return await this.ensureInitialized(),await this.pluginStore.getPluginConfig(x)}async updatePluginConfig(x,q){return await this.ensureInitialized(),await this.pluginStore.updatePluginConfig(x,q)}async installPlugin(x,q){return await this.ensureInitialized(),await this.pluginStore.installPlugin(x,q)}async uninstallPlugin(x){return await this.ensureInitialized(),await this.pluginStore.uninstallPlugin(x)}async checkBashPermission(x,q){return await this.ensureInitialized(),await this.permissionStore.checkBashPermission(x,q)}async checkReadPermission(x){return await this.ensureInitialized(),await this.permissionStore.checkReadPermission(x)}async checkWritePermission(x){return await this.ensureInitialized(),await this.permissionStore.checkWritePermission(x)}async getPermissionMatcher(){return await this.ensureInitialized(),await this.permissionStore.getPermissions()}getConfigPath(){return this.configStore?.dbPath}}async function y(){let{FileSystemConfigStore:x}=await import("./chunk-efhkdw2z.js"),{FileSystemSkillStore:q}=await import("./chunk-70a0e941.js"),{FileSystemPluginStore:B}=await import("./chunk-cga0m5sy.js"),D=new x,H=new q,J=new B,N=new V(D,H,J);return await N.initialize(),N}async function z(x){let{configStore:q,skillStore:B,pluginStore:D,remoteStore:H}=x,J=new V(q,B,D,H);return await J.initialize(),J}
2
- export{V as hb,y as ib,z as jb};
1
+ import{kc as W}from"./chunk-feptb1bb.js";import X from"micromatch";import{z as E}from"zod";var T;((D)=>{D.ALLOW="allow";D.ASK="ask";D.DENY="deny"})(T||={});var _=E.object({tool:E.string(),specifier:E.string().optional(),action:E.nativeEnum(T)}),$=E.object({allow:E.array(E.string()).optional(),ask:E.array(E.string()).optional(),deny:E.array(E.string()).optional(),defaultMode:E.nativeEnum(T).optional()}),v=E.object({name:E.string(),args:E.record(E.string(),E.any())});class Q{rules;defaultMode;patternCache=new Map;constructor(x){this.rules=x.rules,this.defaultMode=x.defaultMode||"ask",this.rules.sort((q,B)=>{let D={deny:0,ask:1,allow:2},H=D[q.action]-D[B.action];if(H!==0)return H;let J=q.specifier==null?1:0,N=B.specifier==null?1:0;return J-N})}checkPermission(x){for(let q of this.rules)if(this.matchRule(q,x))return{allowed:q.action==="allow"||q.action==="ask",requiresApproval:q.action==="ask",matchedRule:q,reason:this.getReason(q)};return{allowed:this.defaultMode==="allow"||this.defaultMode==="ask",requiresApproval:this.defaultMode==="ask",reason:`No matching rule, using default mode: ${this.defaultMode}`}}matchRule(x,q){if(x.tool!==q.name)return!1;if(!x.specifier)return!0;let B=this.argsToString(q.args);if(q.name==="Bash")return this.matchBashCommand(x.specifier,B);if(x.specifier.endsWith(" ")&&!/[*?[\\]/.test(x.specifier))return B.startsWith(x.specifier);return this.matchGlob(x.specifier,B)}matchBashCommand(x,q){if(/[;&|]/.test(q))return!1;let D=/[<>()]/;if(D.test(q)){let H=q.split(D)[0].trim();return this.matchBashPattern(x,H)}return this.matchBashPattern(x,q)}matchBashPattern(x,q){if(x.endsWith(" "))return q.startsWith(x);return this.matchGlob(x,q)}matchGlob(x,q){try{let B=x.replace(/^\.\//,""),D=q.replace(/^\.\//,""),H=`${x}::${q}`,J=this.patternCache.get(H);if(J!==void 0)return J;let N=X.isMatch(D,B,{nocase:!1,dot:!0});return this.cacheResult(H,N),N}catch(B){return q===x}}cacheResult(x,q){if(this.patternCache.size>1000){let B=this.patternCache.keys().next().value;if(B)this.patternCache.delete(B)}this.patternCache.set(x,q)}argsToString(x){if(typeof x==="object"&&x!==null){if("command"in x&&x.command)return String(x.command);if("file_path"in x&&x.file_path)return String(x.file_path);return Object.values(x).flat().join(" ")}return String(x)}getReason(x){let q=x.action.toUpperCase(),B=x.tool,D=x.specifier?`(${x.specifier})`:"";return`${q} rule matched: ${B}${D}`}static parseRule(x,q){let B=x.match(/^(\w+)(?:\((.*)\))?$/);if(!B)throw Error(`Invalid permission rule format: ${x}`);let[,D,H]=B;return{tool:D,specifier:H,action:q}}static fromConfig(x){let q=[];for(let B of x.allow||[])q.push(Q.parseRule(B,"allow"));for(let B of x.ask||[])q.push(Q.parseRule(B,"ask"));for(let B of x.deny||[])q.push(Q.parseRule(B,"deny"));return new Q({rules:q,defaultMode:x.defaultMode||"ask"})}clearCache(){this.patternCache.clear()}getCacheSize(){return this.patternCache.size}}class L{configStore;toolNameMapper={};constructor(x){this.configStore=x}static instance=null;static getInstance(x){if(!L.instance){if(!x)throw Error("PermissionStore not initialized. Provide configStore on first call.");L.instance=new L(x)}return L.instance}static resetInstance(){L.instance=null}async getPermissions(){let x=await this.configStore.getConfig();if(x.permissions)return Q.fromConfig(x.permissions);return}async checkBashPermission(x,q){return(await this.getPermissions())?.checkPermission({name:"Bash",args:{command:x,cwd:q}})}async checkReadPermission(x){return(await this.getPermissions())?.checkPermission({name:"Read",args:{file_path:x}})}async checkWritePermission(x){return(await this.getPermissions())?.checkPermission({name:"Write",args:{file_path:x}})}}class V{configStore;skillStore;pluginStore;remoteStore;permissionStore;_initialized=!1;constructor(x,q,B,D){this.configStore=x,this.skillStore=q,this.pluginStore=B,this.remoteStore=D,this.permissionStore=L.getInstance(x)}async initialize(){if(this._initialized)return;if("initialize"in this.configStore&&typeof this.configStore.initialize==="function")await this.configStore.initialize();if("initialize"in this.skillStore&&typeof this.skillStore.initialize==="function")await this.skillStore.initialize();if("initialize"in this.pluginStore&&typeof this.pluginStore.initialize==="function")await this.pluginStore.initialize();this._initialized=!0}async ensureInitialized(){if(!this._initialized)throw Error("ConfigManager not initialized. Call await manager.initialize() first.")}async getConfig(){return await this.ensureInitialized(),await this.configStore.getConfig()}async updateConfig(x){return await this.ensureInitialized(),await this.configStore.updateConfig(x)}async listSkills(){return await this.ensureInitialized(),await this.skillStore.listSkills()}async getSkill(x){return await this.ensureInitialized(),await this.skillStore.getSkill(x)}async saveSkill(x,q){return await this.ensureInitialized(),await this.skillStore.saveSkill(x,q)}async deleteSkill(x){return await this.ensureInitialized(),await this.skillStore.deleteSkill(x)}async syncSkillsFromRemote(){if(await this.ensureInitialized(),!this.remoteStore)throw Error("Remote store not configured");return await this.skillStore.syncFromRemote(this.remoteStore)}async listPlugins(){return await this.ensureInitialized(),await this.pluginStore.listPlugins()}async getPluginConfig(x){return await this.ensureInitialized(),await this.pluginStore.getPluginConfig(x)}async updatePluginConfig(x,q){return await this.ensureInitialized(),await this.pluginStore.updatePluginConfig(x,q)}async installPlugin(x,q){return await this.ensureInitialized(),await this.pluginStore.installPlugin(x,q)}async uninstallPlugin(x){return await this.ensureInitialized(),await this.pluginStore.uninstallPlugin(x)}async checkBashPermission(x,q){return await this.ensureInitialized(),await this.permissionStore.checkBashPermission(x,q)}async checkReadPermission(x){return await this.ensureInitialized(),await this.permissionStore.checkReadPermission(x)}async checkWritePermission(x){return await this.ensureInitialized(),await this.permissionStore.checkWritePermission(x)}async getPermissionMatcher(){return await this.ensureInitialized(),await this.permissionStore.getPermissions()}getConfigPath(){return this.configStore?.dbPath}}async function y(){let{FileSystemConfigStore:x}=await import("./chunk-13f0qh77.js"),{FileSystemSkillStore:q}=await import("./chunk-6ezeq351.js"),{FileSystemPluginStore:B}=await import("./chunk-80jab8dy.js"),D=new x,H=new q,J=new B,N=new V(D,H,J);return await N.initialize(),N}async function z(x){let{configStore:q,skillStore:B,pluginStore:D,remoteStore:H}=x,J=new V(q,B,D,H);return await J.initialize(),J}
2
+ export{V as ac,y as bc,z as cc};
@@ -0,0 +1 @@
1
+ import{o as a}from"./chunk-qrr2ytkg.js";import"./chunk-feptb1bb.js";export{a as default};
@@ -0,0 +1 @@
1
+ import"./chunk-feptb1bb.js";var e=Object.freeze(JSON.parse('{"displayName":"Odin","name":"odin","patterns":[{"include":"#file-tags"},{"include":"#package-name-declaration"},{"include":"#import-declaration"},{"include":"#statements"}],"repository":{"assignments":{"patterns":[{"include":"#procedure-assignment"},{"include":"#type-assignment"},{"include":"#distinct-type-assignment"},{"include":"#constant-assignment"},{"include":"#variable-assignment"},{"include":"#type-annotation"}]},"attribute":{"patterns":[{"captures":{"1":{"name":"keyword.control.attribute.odin"},"2":{"name":"entity.other.attribute-name.odin"}},"match":"(@)\\\\s*([A-Z_a-z]\\\\w*)\\\\b","name":"meta.attribute.odin"},{"begin":"(@)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.attribute.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.attribute.odin","patterns":[{"match":"\\\\b([A-Z_a-z]\\\\w*)\\\\b","name":"entity.other.attribute-name.odin"},{"match":",","name":"punctuation.odin"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.odin"}},"end":"(?=[),])","patterns":[{"include":"#expressions"}]}]}]},"basic-types":{"patterns":[{"match":"\\\\b(i(?:8|16|32|64|128|nt))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(u(?:8|16|32|64|128|int|intptr))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b((?:u16|u32|u64|u128|i16|i32|i64|i128)le)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b((?:i16|i32|i64|i128|u16|u32|u64|u128)be)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(f(?:16|32|64))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(f(?:16|32|64)le)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(f(?:16|32|64)be)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(complex(?:32|64|128))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(quaternion(?:64|128|256))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(b(?:ool|8|16|32|64))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(string|cstring|rune)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(rawptr)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(any|typeid)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(byte)\\\\b","name":"support.type.primitive.odin"}]},"block-comment":{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.odin"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.odin"}},"name":"comment.block.odin","patterns":[{"include":"#block-comment"}]},"block-definition":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.odin"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.odin"}},"name":"meta.block.odin","patterns":[{"include":"#statements"}]},"block-label":{"captures":{"1":{"name":"entity.name.label.odin"},"2":{"name":"punctuation.definition.label.odin"}},"match":"(\\\\w+)(:)\\\\s*(?=for|switch|if|\\\\{)","name":"meta.block.label.odin"},"case-clause":{"begin":"\\\\b(case)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.odin"}},"end":":","endCaptures":{"0":{"name":"punctuation.definition.section.case-statement.odin"}},"name":"meta.case-clause.expr.odin","patterns":[{"include":"#expressions"}]},"comments":{"patterns":[{"include":"#block-comment"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.odin"}},"end":"\\\\n","name":"comment.line.double-slash.odin"},{"begin":"#!","beginCaptures":{"0":{"name":"punctuation.definition.comment.odin"}},"end":"\\\\n","name":"comment.line.shebang.odin"}]},"constant-assignment":{"captures":{"1":{"name":"variable.other.constant.odin"},"2":{"name":"keyword.operator.assignment.odin"}},"match":"([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*:)","name":"meta.definition.variable.odin"},"distinct-type-assignment":{"begin":"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*:)\\\\s*(?=(distinct)\\\\b)","beginCaptures":{"1":{"name":"entity.name.type.odin"},"2":{"name":"keyword.operator.assignment.odin"},"3":{"name":"storage.type.odin"}},"end":"(?=^)|(?<=})","name":"meta.definition.variable.odin","patterns":[{"include":"#type-declaration"}]},"expressions":{"patterns":[{"include":"#comments"},{"include":"#ternary"},{"include":"#map-bitset"},{"include":"#slice"},{"include":"#keywords"},{"include":"#type-parameter"},{"include":"#basic-types"},{"include":"#procedure-calls"},{"include":"#property-access"},{"include":"#union-member-access"},{"include":"#union-non-nil-access"},{"include":"#strings"},{"include":"#punctuation"},{"include":"#variable-name"}]},"file-tags":{"begin":"#\\\\+[A-Z_a-z][-0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"entity.name.tag.odin"}},"end":"\\\\n","name":"comment.line.double-slash.odin","patterns":[{"match":",","name":"punctuation.odin"},{"match":"!","name":"keyword.operator.logical.odin"},{"match":"[A-Z_a-z][-0-9A-Z_a-z]*","name":"entity.other.attribute-name.odin"}]},"import-declaration":{"begin":"\\\\b((?:|foreign\\\\s+)import)\\\\b","beginCaptures":{"0":{"name":"keyword.control.import.odin"}},"end":"(?=^|;)","name":"meta.import.odin","patterns":[{"begin":"\\\\b[A-Z_a-z]\\\\w*","beginCaptures":{"0":{"name":"entity.name.namespace.odin"}},"end":"(?=^|;)","name":"entity.name.alias.odin","patterns":[{"include":"#strings"},{"include":"#comments"}]},{"include":"#strings"},{"include":"#comments"}]},"keywords":{"patterns":[{"match":"\\\\b(import|foreign|package)\\\\b","name":"keyword.control.odin"},{"match":"\\\\b(if|else|or_else|when|where|for|in|not_in|defer|switch|return|or_return)\\\\b","name":"keyword.control.odin"},{"captures":{"1":{"name":"keyword.control.odin"},"2":{"name":"entity.name.label.odin"}},"match":"\\\\b((?:|or_)(?:break|continue))\\\\b\\\\s*(\\\\w+)?"},{"match":"\\\\b(fallthrough|case|dynamic)\\\\b","name":"keyword.control.odin"},{"match":"\\\\b(do|force_inline|no_inline)\\\\b","name":"keyword.control.odin"},{"match":"\\\\b(asm)\\\\b","name":"keyword.control.odin"},{"match":"\\\\b(auto_cast|distinct|using)\\\\b","name":"storage.modifier.odin"},{"match":"\\\\b(context)\\\\b","name":"keyword.context.odin"},{"match":"\\\\b(ODIN_(?:ARCH|OS))\\\\b","name":"variable.other.constant.odin"},{"match":"\\\\b(nil|true|false)\\\\b","name":"constant.language.odin"},{"match":"---","name":"constant.language.odin"},{"match":"\\\\b(\\\\d([_\\\\d])*(\\\\.\\\\d([_\\\\d])*)?)(([Ee])([-+])?\\\\d+)?[ijk]?\\\\b","name":"constant.numeric.odin"},{"match":"\\\\b((0b([01_])+)|(0o([_\\\\d])+)|(0d([_\\\\d])+)|(0[Xhx]([_\\\\h])+))i?\\\\b","name":"constant.numeric.odin"},{"match":"\\\\b(struct|enum|union|map|bit_set|bit_field|matrix)\\\\b","name":"storage.type.odin"},{"match":"[-%*+/]=|%%=","name":"keyword.operator.assignment.compound.odin"},{"match":"(?:[|~]|&~?|<<|>>)=","name":"keyword.operator.assignment.compound.bitwise.odin"},{"match":"[!=]=","name":"keyword.operator.comparison.odin"},{"match":"[<>]=?","name":"keyword.operator.relational.odin"},{"match":"\\\\.\\\\.[<=]","name":"keyword.operator.range.odin"},{"match":"\\\\.\\\\.","name":"keyword.operator.spread.odin"},{"match":":[:=]|=","name":"keyword.operator.assignment.odin"},{"match":"&","name":"keyword.operator.address.odin"},{"match":"\\\\^","name":"keyword.operator.address.odin"},{"match":"->","name":"storage.type.function.arrow.odin"},{"match":"@|([-!%*+/:|]|<<?|>>?|~)=?|=|: : ?|\\\\$","name":"keyword.operator.odin"},{"match":"#[A-Z_a-z]\\\\w*","name":"entity.name.tag.odin"}]},"map-bitset":{"begin":"\\\\b(bit_set|map)\\\\b","beginCaptures":{"0":{"name":"storage.type.odin"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.bracket.square.odin"}},"patterns":[{"match":"\\\\[","name":"punctuation.definition.bracket.square.odin"},{"include":"#type-declaration"}]},"object-definition":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.odin"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.odin"}},"name":"meta.object.type.odin","patterns":[{"include":"#statements"}]},"package-name-declaration":{"captures":{"1":{"name":"keyword.control.odin"},"2":{"name":"entity.name.type.module.odin"}},"match":"^\\\\s*(package)\\\\s+([A-Z_a-z]\\\\w*)"},"parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.odin"}},"name":"meta.parameters.odin","patterns":[{"include":"#assignments"},{"include":"#expressions"}]},"procedure-assignment":{"begin":"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*:|=)\\\\s*(#\\\\w+)?\\\\s*(?=proc\\\\b)","beginCaptures":{"1":{"name":"meta.definition.function.odin entity.name.function.odin"},"2":{"name":"keyword.operator.assignment.odin"},"3":{"name":"keyword.other.odin"}},"end":"(?=^)|(?<=})","name":"meta.definition.variable.odin","patterns":[{"include":"#type-declaration"}]},"procedure-calls":{"patterns":[{"begin":"\\\\b(cast|transmute)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.function.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.function-call.odin","patterns":[{"include":"#type-declaration"}]},{"begin":"\\\\b((?:size|align)_of)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.builtin.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.function-call.odin","patterns":[{"include":"#type-declaration"}]},{"begin":"\\\\b(len|cap|offset_of_selector|offset_of_member|offset_of|offset_of_by_string|type_of|type_info_of|typeid_of|swizzle|complex|quaternion|real|imag|jmag|kmag|conj|expand_values|min|max|abs|clamp|soa_zip|soa_unzip|make|new|new_clone|resize|reserve|append|delete|free|free_all|assert|panic)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.builtin.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.function-call.odin","patterns":[{"include":"#expressions"}]},{"begin":"([A-Z_a-z]\\\\w*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.function-call.odin","patterns":[{"include":"#expressions"}]}]},"property-access":{"captures":{"1":{"name":"variable.other.object.odin"},"2":{"name":"punctuation.accessor.odin"}},"match":"([A-Z_a-z]\\\\w*)\\\\s*(\\\\.)\\\\s*(?=[A-Z_a-z]\\\\w*)"},"punctuation":{"match":"[](),.;\\\\[\\\\\\\\{}]","name":"punctuation.odin"},"return-type-declaration":{"begin":"->","beginCaptures":{"0":{"name":"storage.type.function.arrow.odin"}},"end":"(?=^|[),;{]|where)","name":"meta.return.type.odin","patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#basic-types"},{"include":"#property-access"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.odin"}},"name":"meta.parameters.odin","patterns":[{"include":"#comments"},{"include":"#assignments"},{"include":"#keywords"},{"include":"#basic-types"},{"include":"#property-access"},{"include":"#type-name"},{"include":"#punctuation"}]},{"include":"#type-name"}]},"slice":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.odin"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.odin"}},"name":"meta.slice.odin","patterns":[{"match":"\\\\?","name":"keyword.operator.array.odin"},{"match":":","name":"keyword.operator.slice.odin"},{"include":"#expressions"}]},"statements":{"patterns":[{"include":"#attribute"},{"include":"#procedure-assignment"},{"include":"#type-assignment"},{"include":"#distinct-type-assignment"},{"include":"#constant-assignment"},{"include":"#variable-assignment"},{"include":"#case-clause"},{"include":"#block-label"},{"include":"#type-annotation"},{"include":"#block-definition"},{"include":"#expressions"}]},"string-escaped-char":{"patterns":[{"match":"\\\\\\\\(x1b|e|033)\\\\[[0-9;]*m","name":"constant.character.escape.ansi-color-sequence.odin"},{"match":"\\\\\\\\([\\"\'\\\\\\\\abefnrtuv]|x\\\\h{2}|u\\\\h{4}|U\\\\h{8}|[0-7]{3})","name":"constant.character.escape.odin"},{"match":"%([%E-HMTUXb-imo-tvwxz])","name":"constant.character.escape.placeholders.odin"},{"match":"%(\\\\d*\\\\.?\\\\d*f)","name":"constant.character.escape.placeholders-floats.odin"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.odin"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.odin"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.odin"}},"name":"string.quoted.double.odin","patterns":[{"include":"#string-escaped-char"}]},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.odin"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.odin"}},"name":"string.quoted.single.odin","patterns":[{"include":"#string-escaped-char"}]},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.odin"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.odin"}},"name":"string.quoted.raw.odin"}]},"ternary":{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.odin"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.odin"}},"name":"meta.ternary.odin","patterns":[{"include":"#expressions"}]},"type-annotation":{"begin":"(?:([A-Z_a-z]\\\\w*)\\\\s*(,)\\\\s*)?(?:([A-Z_a-z]\\\\w*)\\\\s*(,)\\\\s*)?([A-Z_a-z]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.name.odin"},"2":{"name":"punctuation.odin"},"3":{"name":"variable.name.odin"},"4":{"name":"punctuation.odin"},"5":{"name":"variable.name.odin"},"6":{"name":"keyword.operator.type.annotation.odin"}},"end":"(?=^|[),:;=]|for|switch|if|\\\\{)","name":"meta.type.annotation.odin","patterns":[{"include":"#type-declaration"}]},"type-assignment":{"begin":"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*:)\\\\s*(?=(struct|union|enum|bit_set|bit_field)\\\\b)","beginCaptures":{"1":{"name":"entity.name.type.odin"},"2":{"name":"keyword.operator.assignment.odin"},"3":{"name":"storage.type.odin"}},"end":"(?=^)|(?<=})","name":"meta.definition.variable.odin","patterns":[{"include":"#type-declaration"}]},"type-declaration":{"name":"meta.type.declaration.odin","patterns":[{"include":"#map-bitset"},{"begin":"\\\\b(proc|struct|union|enum|bit_field)\\\\b","beginCaptures":{"1":{"name":"storage.type.odin"}},"end":"(?=^|[),;])|(?<=})","patterns":[{"include":"#parameters"},{"include":"#return-type-declaration"},{"include":"#object-definition"},{"include":"#expressions"}]},{"include":"#comments"},{"include":"#strings"},{"include":"#block-definition"},{"include":"#keywords"},{"include":"#basic-types"},{"include":"#slice"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.odin"}},"patterns":[{"include":"#type-declaration"}]},{"include":"#property-access"},{"include":"#punctuation"},{"include":"#type-name"}]},"type-name":{"match":"\\\\b[A-Z_a-z]\\\\w*\\\\b","name":"entity.name.type.odin"},"type-parameter":{"captures":{"1":{"name":"keyword.operator.odin"},"2":{"name":"entity.name.type.parameter.odin"}},"match":"(\\\\$)\\\\s*\\\\b([A-Z_a-z]\\\\w*)\\\\b"},"union-member-access":{"begin":"([A-Z_a-z]\\\\w*)\\\\s*(\\\\.)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.other.object.odin"},"2":{"name":"punctuation.accessor.odin"},"3":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"patterns":[{"include":"#type-declaration"}]},"union-non-nil-access":{"captures":{"1":{"name":"variable.other.object.odin"},"2":{"name":"punctuation.accessor.odin"},"3":{"name":"punctuation.accessor.optional.odin"}},"match":"([A-Z_a-z]\\\\w*)\\\\s*(\\\\.)\\\\s*(\\\\?)"},"variable-assignment":{"captures":{"1":{"name":"variable.name.odin"},"2":{"name":"punctuation.odin"},"3":{"name":"variable.name.odin"},"4":{"name":"punctuation.odin"},"5":{"name":"variable.name.odin"},"6":{"name":"keyword.operator.assignment.odin"}},"match":"(?:([A-Z_a-z]\\\\w*)\\\\s*(,)\\\\s*)?(?:([A-Z_a-z]\\\\w*)\\\\s*(,)\\\\s*)?([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*=)","name":"meta.definition.variable.odin"},"variable-name":{"match":"\\\\b[A-Z_a-z]\\\\w*\\\\b","name":"variable.name.odin"}},"scopeName":"source.odin"}')),n=[e];export{n as default};
@@ -1,4 +1,4 @@
1
- import{nb as K0,ob as P,rb as R}from"./chunk-cze71w02.js";var C=P((j4,h0)=>{var g0=["nodebuffer","arraybuffer","fragments"],w0=typeof Blob<"u";if(w0)g0.push("blob");h0.exports={BINARY_TYPES:g0,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:w0,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var n=P((Y4,X0)=>{var{EMPTY_BUFFER:l5}=C(),F0=Buffer[Symbol.species];function p5(J,K){if(J.length===0)return l5;if(J.length===1)return J[0];let X=Buffer.allocUnsafe(K),Z=0;for(let $=0;$<J.length;$++){let Q=J[$];X.set(Q,Z),Z+=Q.length}if(Z<K)return new F0(X.buffer,X.byteOffset,Z);return X}function m0(J,K,X,Z,$){for(let Q=0;Q<$;Q++)X[Z+Q]=J[Q]^K[Q&3]}function f0(J,K){for(let X=0;X<J.length;X++)J[X]^=K[X&3]}function b5(J){if(J.length===J.buffer.byteLength)return J.buffer;return J.buffer.slice(J.byteOffset,J.byteOffset+J.length)}function D0(J){if(D0.readOnly=!0,Buffer.isBuffer(J))return J;let K;if(J instanceof ArrayBuffer)K=new F0(J);else if(ArrayBuffer.isView(J))K=new F0(J.buffer,J.byteOffset,J.byteLength);else K=Buffer.from(J),D0.readOnly=!1;return K}X0.exports={concat:p5,mask:m0,toArrayBuffer:b5,toBuffer:D0,unmask:f0};if(!process.env.WS_NO_BUFFER_UTIL)try{let J=(()=>{throw new Error("Cannot require module "+"bufferutil");})();X0.exports.mask=function(K,X,Z,$,Q){if(Q<48)m0(K,X,Z,$,Q);else J.mask(K,X,Z,$,Q)},X0.exports.unmask=function(K,X){if(K.length<32)f0(K,X);else J.unmask(K,X)}}catch(J){}});var b0=P((V4,p0)=>{var u0=Symbol("kDone"),O0=Symbol("kRun");class l0{constructor(J){this[u0]=()=>{this.pending--,this[O0]()},this.concurrency=J||1/0,this.jobs=[],this.pending=0}add(J){this.jobs.push(J),this[O0]()}[O0](){if(this.pending===this.concurrency)return;if(this.jobs.length){let J=this.jobs.shift();this.pending++,J(this[u0])}}}p0.exports=l0});var a=P((_4,n0)=>{var r=R("zlib"),k0=n(),k5=b0(),{kStatusCode:i0}=C(),i5=Buffer[Symbol.species],d5=Buffer.from([0,0,255,255]),$0=Symbol("permessage-deflate"),q=Symbol("total-length"),f=Symbol("callback"),L=Symbol("buffers"),u=Symbol("error"),Z0;class d0{constructor(J,K,X){if(this._maxPayload=X|0,this._options=J||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!K,this._deflate=null,this._inflate=null,this.params=null,!Z0){let Z=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Z0=new k5(Z)}}static get extensionName(){return"permessage-deflate"}offer(){let J={};if(this._options.serverNoContextTakeover)J.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)J.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)J.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)J.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)J.client_max_window_bits=!0;return J}accept(J){return J=this.normalizeParams(J),this.params=this._isServer?this.acceptAsServer(J):this.acceptAsClient(J),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let J=this._deflate[f];if(this._deflate.close(),this._deflate=null,J)J(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(J){let K=this._options,X=J.find((Z)=>{if(K.serverNoContextTakeover===!1&&Z.server_no_context_takeover||Z.server_max_window_bits&&(K.serverMaxWindowBits===!1||typeof K.serverMaxWindowBits==="number"&&K.serverMaxWindowBits>Z.server_max_window_bits)||typeof K.clientMaxWindowBits==="number"&&!Z.client_max_window_bits)return!1;return!0});if(!X)throw Error("None of the extension offers can be accepted");if(K.serverNoContextTakeover)X.server_no_context_takeover=!0;if(K.clientNoContextTakeover)X.client_no_context_takeover=!0;if(typeof K.serverMaxWindowBits==="number")X.server_max_window_bits=K.serverMaxWindowBits;if(typeof K.clientMaxWindowBits==="number")X.client_max_window_bits=K.clientMaxWindowBits;else if(X.client_max_window_bits===!0||K.clientMaxWindowBits===!1)delete X.client_max_window_bits;return X}acceptAsClient(J){let K=J[0];if(this._options.clientNoContextTakeover===!1&&K.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!K.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")K.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&K.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return K}normalizeParams(J){return J.forEach((K)=>{Object.keys(K).forEach((X)=>{let Z=K[X];if(Z.length>1)throw Error(`Parameter "${X}" must have only a single value`);if(Z=Z[0],X==="client_max_window_bits"){if(Z!==!0){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else if(X==="server_max_window_bits"){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(X==="client_no_context_takeover"||X==="server_no_context_takeover"){if(Z!==!0)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else throw Error(`Unknown parameter "${X}"`);K[X]=Z})}),J}decompress(J,K,X){Z0.add((Z)=>{this._decompress(J,K,($,Q)=>{Z(),X($,Q)})})}compress(J,K,X){Z0.add((Z)=>{this._compress(J,K,($,Q)=>{Z(),X($,Q)})})}_decompress(J,K,X){let Z=this._isServer?"client":"server";if(!this._inflate){let $=`${Z}_max_window_bits`,Q=typeof this.params[$]!=="number"?r.Z_DEFAULT_WINDOWBITS:this.params[$];this._inflate=r.createInflateRaw({...this._options.zlibInflateOptions,windowBits:Q}),this._inflate[$0]=this,this._inflate[q]=0,this._inflate[L]=[],this._inflate.on("error",n5),this._inflate.on("data",c0)}if(this._inflate[f]=X,this._inflate.write(J),K)this._inflate.write(d5);this._inflate.flush(()=>{let $=this._inflate[u];if($){this._inflate.close(),this._inflate=null,X($);return}let Q=k0.concat(this._inflate[L],this._inflate[q]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[q]=0,this._inflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._inflate.reset();X(null,Q)})}_compress(J,K,X){let Z=this._isServer?"server":"client";if(!this._deflate){let $=`${Z}_max_window_bits`,Q=typeof this.params[$]!=="number"?r.Z_DEFAULT_WINDOWBITS:this.params[$];this._deflate=r.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:Q}),this._deflate[q]=0,this._deflate[L]=[],this._deflate.on("data",c5)}this._deflate[f]=X,this._deflate.write(J),this._deflate.flush(r.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let $=k0.concat(this._deflate[L],this._deflate[q]);if(K)$=new i5($.buffer,$.byteOffset,$.length-4);if(this._deflate[f]=null,this._deflate[q]=0,this._deflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._deflate.reset();X(null,$)})}}n0.exports=d0;function c5(J){this[L].push(J),this[q]+=J.length}function c0(J){if(this[q]+=J.length,this[$0]._maxPayload<1||this[q]<=this[$0]._maxPayload){this[L].push(J);return}this[u]=RangeError("Max payload size exceeded"),this[u].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[u][i0]=1009,this.removeListener("data",c0),this.reset()}function n5(J){if(this[$0]._inflate=null,this[u]){this[f](this[u]);return}J[i0]=1007,this[f](J)}});var l=P((N4,Q0)=>{var{isUtf8:r0}=R("buffer"),{hasBlob:r5}=C(),a5=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function s5(J){return J>=1000&&J<=1014&&J!==1004&&J!==1005&&J!==1006||J>=3000&&J<=4999}function P0(J){let K=J.length,X=0;while(X<K)if((J[X]&128)===0)X++;else if((J[X]&224)===192){if(X+1===K||(J[X+1]&192)!==128||(J[X]&254)===192)return!1;X+=2}else if((J[X]&240)===224){if(X+2>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||J[X]===224&&(J[X+1]&224)===128||J[X]===237&&(J[X+1]&224)===160)return!1;X+=3}else if((J[X]&248)===240){if(X+3>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||(J[X+3]&192)!==128||J[X]===240&&(J[X+1]&240)===128||J[X]===244&&J[X+1]>143||J[X]>244)return!1;X+=4}else return!1;return!0}function o5(J){return r5&&typeof J==="object"&&typeof J.arrayBuffer==="function"&&typeof J.type==="string"&&typeof J.stream==="function"&&(J[Symbol.toStringTag]==="Blob"||J[Symbol.toStringTag]==="File")}Q0.exports={isBlob:o5,isValidStatusCode:s5,isValidUTF8:P0,tokenChars:a5};if(r0)Q0.exports.isValidUTF8=function(J){return J.length<24?P0(J):r0(J)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let J=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();Q0.exports.isValidUTF8=function(K){return K.length<32?P0(K):J(K)}}catch(J){}});var T0=P((H4,e0)=>{var{Writable:t5}=R("stream"),a0=a(),{BINARY_TYPES:e5,EMPTY_BUFFER:s0,kStatusCode:J1,kWebSocket:K1}=C(),{concat:M0,toArrayBuffer:X1,unmask:Z1}=n(),{isValidStatusCode:$1,isValidUTF8:o0}=l(),G0=Buffer[Symbol.species];class t0 extends t5{constructor(J={}){super();this._allowSynchronousEvents=J.allowSynchronousEvents!==void 0?J.allowSynchronousEvents:!0,this._binaryType=J.binaryType||e5[0],this._extensions=J.extensions||{},this._isServer=!!J.isServer,this._maxPayload=J.maxPayload|0,this._skipUTF8Validation=!!J.skipUTF8Validation,this[K1]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(J,K,X){if(this._opcode===8&&this._state==0)return X();this._bufferedBytes+=J.length,this._buffers.push(J),this.startLoop(X)}consume(J){if(this._bufferedBytes-=J,J===this._buffers[0].length)return this._buffers.shift();if(J<this._buffers[0].length){let X=this._buffers[0];return this._buffers[0]=new G0(X.buffer,X.byteOffset+J,X.length-J),new G0(X.buffer,X.byteOffset,J)}let K=Buffer.allocUnsafe(J);do{let X=this._buffers[0],Z=K.length-J;if(J>=X.length)K.set(this._buffers.shift(),Z);else K.set(new Uint8Array(X.buffer,X.byteOffset,J),Z),this._buffers[0]=new G0(X.buffer,X.byteOffset+J,X.length-J);J-=X.length}while(J>0);return K}startLoop(J){this._loop=!0;do switch(this._state){case 0:this.getInfo(J);break;case 1:this.getPayloadLength16(J);break;case 2:this.getPayloadLength64(J);break;case 3:this.getMask();break;case 4:this.getData(J);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)J()}getInfo(J){if(this._bufferedBytes<2){this._loop=!1;return}let K=this.consume(2);if((K[0]&48)!==0){let Z=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");J(Z);return}let X=(K[0]&64)===64;if(X&&!this._extensions[a0.extensionName]){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._fin=(K[0]&128)===128,this._opcode=K[0]&15,this._payloadLength=K[1]&127,this._opcode===0){if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(!this._fragmented){let Z=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._compressed=X}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let Z=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");J(Z);return}if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let Z=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");J(Z);return}}else{let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(K[1]&128)===128,this._isServer){if(!this._masked){let Z=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");J(Z);return}}else if(this._masked){let Z=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");J(Z);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength(J)}getPayloadLength16(J){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(J)}getPayloadLength64(J){if(this._bufferedBytes<8){this._loop=!1;return}let K=this.consume(8),X=K.readUInt32BE(0);if(X>Math.pow(2,21)-1){let Z=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");J(Z);return}this._payloadLength=X*Math.pow(2,32)+K.readUInt32BE(4),this.haveLength(J)}haveLength(J){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let K=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");J(K);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(J){let K=s0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(K=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)Z1(K,this._mask)}if(this._opcode>7){this.controlMessage(K,J);return}if(this._compressed){this._state=5,this.decompress(K,J);return}if(K.length)this._messageLength=this._totalPayloadLength,this._fragments.push(K);this.dataMessage(J)}decompress(J,K){this._extensions[a0.extensionName].decompress(J,this._fin,(Z,$)=>{if(Z)return K(Z);if($.length){if(this._messageLength+=$.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let Q=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");K(Q);return}this._fragments.push($)}if(this.dataMessage(K),this._state===0)this.startLoop(K)})}dataMessage(J){if(!this._fin){this._state=0;return}let K=this._messageLength,X=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let Z;if(this._binaryType==="nodebuffer")Z=M0(X,K);else if(this._binaryType==="arraybuffer")Z=X1(M0(X,K));else if(this._binaryType==="blob")Z=new Blob(X);else Z=X;if(this._allowSynchronousEvents)this.emit("message",Z,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!0),this._state=0,this.startLoop(J)})}else{let Z=M0(X,K);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");J($);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",Z,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!1),this._state=0,this.startLoop(J)})}}controlMessage(J,K){if(this._opcode===8){if(J.length===0)this._loop=!1,this.emit("conclude",1005,s0),this.end();else{let X=J.readUInt16BE(0);if(!$1(X)){let $=this.createError(RangeError,`invalid status code ${X}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");K($);return}let Z=new G0(J.buffer,J.byteOffset+2,J.length-2);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");K($);return}this._loop=!1,this.emit("conclude",X,Z),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",J),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",J),this._state=0,this.startLoop(K)})}createError(J,K,X,Z,$){this._loop=!1,this._errored=!0;let Q=new J(X?`Invalid WebSocket frame: ${K}`:K);return Error.captureStackTrace(Q,this.createError),Q.code=$,Q[J1]=Z,Q}}e0.exports=t0});var B0=P((A4,X5)=>{var{Duplex:R4}=R("stream"),{randomFillSync:Q1}=R("crypto"),J5=a(),{EMPTY_BUFFER:G1,kWebSocket:I1,NOOP:z1}=C(),{isBlob:p,isValidStatusCode:j1}=l(),{mask:K5,toBuffer:S}=n(),T=Symbol("kByteLength"),Y1=Buffer.alloc(4),v,b=8192,x=0,V1=1,_1=2;class W{constructor(J,K,X){if(this._extensions=K||{},X)this._generateMask=X,this._maskBuffer=Buffer.alloc(4);this._socket=J,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=x,this.onerror=z1,this[I1]=void 0}static frame(J,K){let X,Z=!1,$=2,Q=!1;if(K.mask){if(X=K.maskBuffer||Y1,K.generateMask)K.generateMask(X);else{if(b===8192){if(v===void 0)v=Buffer.alloc(8192);Q1(v,0,8192),b=0}X[0]=v[b++],X[1]=v[b++],X[2]=v[b++],X[3]=v[b++]}Q=(X[0]|X[1]|X[2]|X[3])===0,$=6}let G;if(typeof J==="string")if((!K.mask||Q)&&K[T]!==void 0)G=K[T];else J=Buffer.from(J),G=J.length;else G=J.length,Z=K.mask&&K.readOnly&&!Q;let z=G;if(G>=65536)$+=8,z=127;else if(G>125)$+=2,z=126;let I=Buffer.allocUnsafe(Z?G+$:$);if(I[0]=K.fin?K.opcode|128:K.opcode,K.rsv1)I[0]|=64;if(I[1]=z,z===126)I.writeUInt16BE(G,2);else if(z===127)I[2]=I[3]=0,I.writeUIntBE(G,4,6);if(!K.mask)return[I,J];if(I[1]|=128,I[$-4]=X[0],I[$-3]=X[1],I[$-2]=X[2],I[$-1]=X[3],Q)return[I,J];if(Z)return K5(J,X,I,$,G),[I];return K5(J,X,J,0,G),[I,J]}close(J,K,X,Z){let $;if(J===void 0)$=G1;else if(typeof J!=="number"||!j1(J))throw TypeError("First argument must be a valid error code number");else if(K===void 0||!K.length)$=Buffer.allocUnsafe(2),$.writeUInt16BE(J,0);else{let G=Buffer.byteLength(K);if(G>123)throw RangeError("The message must not be greater than 123 bytes");if($=Buffer.allocUnsafe(2+G),$.writeUInt16BE(J,0),typeof K==="string")$.write(K,2);else $.set(K,2)}let Q={[T]:$.length,fin:!0,generateMask:this._generateMask,mask:X,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==x)this.enqueue([this.dispatch,$,!1,Q,Z]);else this.sendFrame(W.frame($,Q),Z)}ping(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(p(J))Z=J.size,$=!1;else J=S(J),Z=J.length,$=S.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let Q={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:9,readOnly:$,rsv1:!1};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,Q,X]);else this.getBlobData(J,!1,Q,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,Q,X]);else this.sendFrame(W.frame(J,Q),X)}pong(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(p(J))Z=J.size,$=!1;else J=S(J),Z=J.length,$=S.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let Q={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:10,readOnly:$,rsv1:!1};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,Q,X]);else this.getBlobData(J,!1,Q,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,Q,X]);else this.sendFrame(W.frame(J,Q),X)}send(J,K,X){let Z=this._extensions[J5.extensionName],$=K.binary?2:1,Q=K.compress,G,z;if(typeof J==="string")G=Buffer.byteLength(J),z=!1;else if(p(J))G=J.size,z=!1;else J=S(J),G=J.length,z=S.readOnly;if(this._firstFragment){if(this._firstFragment=!1,Q&&Z&&Z.params[Z._isServer?"server_no_context_takeover":"client_no_context_takeover"])Q=G>=Z._threshold;this._compress=Q}else Q=!1,$=0;if(K.fin)this._firstFragment=!0;let I={[T]:G,fin:K.fin,generateMask:this._generateMask,mask:K.mask,maskBuffer:this._maskBuffer,opcode:$,readOnly:z,rsv1:Q};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,this._compress,I,X]);else this.getBlobData(J,this._compress,I,X);else if(this._state!==x)this.enqueue([this.dispatch,J,this._compress,I,X]);else this.dispatch(J,this._compress,I,X)}getBlobData(J,K,X,Z){this._bufferedBytes+=X[T],this._state=_1,J.arrayBuffer().then(($)=>{if(this._socket.destroyed){let G=Error("The socket was closed while the blob was being read");process.nextTick(x0,this,G,Z);return}this._bufferedBytes-=X[T];let Q=S($);if(!K)this._state=x,this.sendFrame(W.frame(Q,X),Z),this.dequeue();else this.dispatch(Q,K,X,Z)}).catch(($)=>{process.nextTick(N1,this,$,Z)})}dispatch(J,K,X,Z){if(!K){this.sendFrame(W.frame(J,X),Z);return}let $=this._extensions[J5.extensionName];this._bufferedBytes+=X[T],this._state=V1,$.compress(J,X.fin,(Q,G)=>{if(this._socket.destroyed){let z=Error("The socket was closed while data was being compressed");x0(this,z,Z);return}this._bufferedBytes-=X[T],this._state=x,X.readOnly=!1,this.sendFrame(W.frame(G,X),Z),this.dequeue()})}dequeue(){while(this._state===x&&this._queue.length){let J=this._queue.shift();this._bufferedBytes-=J[3][T],Reflect.apply(J[0],this,J.slice(1))}}enqueue(J){this._bufferedBytes+=J[3][T],this._queue.push(J)}sendFrame(J,K){if(J.length===2)this._socket.cork(),this._socket.write(J[0]),this._socket.write(J[1],K),this._socket.uncork();else this._socket.write(J[0],K)}}X5.exports=W;function x0(J,K,X){if(typeof X==="function")X(K);for(let Z=0;Z<J._queue.length;Z++){let $=J._queue[Z],Q=$[$.length-1];if(typeof Q==="function")Q(K)}}function N1(J,K,X){x0(J,K,X),J.onerror(K)}});var V5=P((F4,Y5)=>{var{kForOnEventAttribute:s,kListener:C0}=C(),Z5=Symbol("kCode"),$5=Symbol("kData"),Q5=Symbol("kError"),G5=Symbol("kMessage"),I5=Symbol("kReason"),k=Symbol("kTarget"),z5=Symbol("kType"),j5=Symbol("kWasClean");class E{constructor(J){this[k]=null,this[z5]=J}get target(){return this[k]}get type(){return this[z5]}}Object.defineProperty(E.prototype,"target",{enumerable:!0});Object.defineProperty(E.prototype,"type",{enumerable:!0});class i extends E{constructor(J,K={}){super(J);this[Z5]=K.code===void 0?0:K.code,this[I5]=K.reason===void 0?"":K.reason,this[j5]=K.wasClean===void 0?!1:K.wasClean}get code(){return this[Z5]}get reason(){return this[I5]}get wasClean(){return this[j5]}}Object.defineProperty(i.prototype,"code",{enumerable:!0});Object.defineProperty(i.prototype,"reason",{enumerable:!0});Object.defineProperty(i.prototype,"wasClean",{enumerable:!0});class o extends E{constructor(J,K={}){super(J);this[Q5]=K.error===void 0?null:K.error,this[G5]=K.message===void 0?"":K.message}get error(){return this[Q5]}get message(){return this[G5]}}Object.defineProperty(o.prototype,"error",{enumerable:!0});Object.defineProperty(o.prototype,"message",{enumerable:!0});class z0 extends E{constructor(J,K={}){super(J);this[$5]=K.data===void 0?null:K.data}get data(){return this[$5]}}Object.defineProperty(z0.prototype,"data",{enumerable:!0});var H1={addEventListener(J,K,X={}){for(let $ of this.listeners(J))if(!X[s]&&$[C0]===K&&!$[s])return;let Z;if(J==="message")Z=function(Q,G){let z=new z0("message",{data:G?Q:Q.toString()});z[k]=this,I0(K,this,z)};else if(J==="close")Z=function(Q,G){let z=new i("close",{code:Q,reason:G.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});z[k]=this,I0(K,this,z)};else if(J==="error")Z=function(Q){let G=new o("error",{error:Q,message:Q.message});G[k]=this,I0(K,this,G)};else if(J==="open")Z=function(){let Q=new E("open");Q[k]=this,I0(K,this,Q)};else return;if(Z[s]=!!X[s],Z[C0]=K,X.once)this.once(J,Z);else this.on(J,Z)},removeEventListener(J,K){for(let X of this.listeners(J))if(X[C0]===K&&!X[s]){this.removeListener(J,X);break}}};Y5.exports={CloseEvent:i,ErrorEvent:o,Event:E,EventTarget:H1,MessageEvent:z0};function I0(J,K,X){if(typeof J==="object"&&J.handleEvent)J.handleEvent.call(J,X);else J.call(K,X)}});var q0=P((D4,_5)=>{var{tokenChars:t}=l();function B(J,K,X){if(J[K]===void 0)J[K]=[X];else J[K].push(X)}function R1(J){let K=Object.create(null),X=Object.create(null),Z=!1,$=!1,Q=!1,G,z,I=-1,V=-1,_=-1,Y=0;for(;Y<J.length;Y++)if(V=J.charCodeAt(Y),G===void 0)if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(Y!==0&&(V===32||V===9)){if(_===-1&&I!==-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(I,_);if(V===44)B(K,D,X),X=Object.create(null);else G=D;I=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);else if(z===void 0)if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(V===32||V===9){if(_===-1&&I!==-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;if(B(X,J.slice(I,_),!0),V===44)B(K,G,X),X=Object.create(null),G=void 0;I=_=-1}else if(V===61&&I!==-1&&_===-1)z=J.slice(I,Y),I=_=-1;else throw SyntaxError(`Unexpected character at index ${Y}`);else if($){if(t[V]!==1)throw SyntaxError(`Unexpected character at index ${Y}`);if(I===-1)I=Y;else if(!Z)Z=!0;$=!1}else if(Q)if(t[V]===1){if(I===-1)I=Y}else if(V===34&&I!==-1)Q=!1,_=Y;else if(V===92)$=!0;else throw SyntaxError(`Unexpected character at index ${Y}`);else if(V===34&&J.charCodeAt(Y-1)===61)Q=!0;else if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(I!==-1&&(V===32||V===9)){if(_===-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(I,_);if(Z)D=D.replace(/\\/g,""),Z=!1;if(B(X,z,D),V===44)B(K,G,X),X=Object.create(null),G=void 0;z=void 0,I=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);if(I===-1||Q||V===32||V===9)throw SyntaxError("Unexpected end of input");if(_===-1)_=Y;let F=J.slice(I,_);if(G===void 0)B(K,F,X);else{if(z===void 0)B(X,F,!0);else if(Z)B(X,z,F.replace(/\\/g,""));else B(X,z,F);B(K,G,X)}return K}function A1(J){return Object.keys(J).map((K)=>{let X=J[K];if(!Array.isArray(X))X=[X];return X.map((Z)=>{return[K].concat(Object.keys(Z).map(($)=>{let Q=Z[$];if(!Array.isArray(Q))Q=[Q];return Q.map((G)=>G===!0?$:`${$}=${G}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}_5.exports={format:A1,parse:R1}});var _0=P((M4,B5)=>{var F1=R("events"),D1=R("https"),O1=R("http"),R5=R("net"),P1=R("tls"),{randomBytes:M1,createHash:T1}=R("crypto"),{Duplex:O4,Readable:P4}=R("stream"),{URL:U0}=R("url"),y=a(),x1=T0(),B1=B0(),{isBlob:C1}=l(),{BINARY_TYPES:N5,CLOSE_TIMEOUT:q1,EMPTY_BUFFER:j0,GUID:U1,kForOnEventAttribute:L0,kListener:L1,kStatusCode:W1,kWebSocket:A,NOOP:A5}=C(),{EventTarget:{addEventListener:E1,removeEventListener:y1}}=V5(),{format:S1,parse:v1}=q0(),{toBuffer:g1}=n(),F5=Symbol("kAborted"),W0=[8,13],U=["CONNECTING","OPEN","CLOSING","CLOSED"],w1=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class j extends F1{constructor(J,K,X){super();if(this._binaryType=N5[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=j0,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=j.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,J!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,K===void 0)K=[];else if(!Array.isArray(K))if(typeof K==="object"&&K!==null)X=K,K=[];else K=[K];D5(this,J,K,X)}else this._autoPong=X.autoPong,this._closeTimeout=X.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(J){if(!N5.includes(J))return;if(this._binaryType=J,this._receiver)this._receiver._binaryType=J}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(J,K,X){let Z=new x1({allowSynchronousEvents:X.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:X.maxPayload,skipUTF8Validation:X.skipUTF8Validation}),$=new B1(J,this._extensions,X.generateMask);if(this._receiver=Z,this._sender=$,this._socket=J,Z[A]=this,$[A]=this,J[A]=this,Z.on("conclude",f1),Z.on("drain",u1),Z.on("error",l1),Z.on("message",p1),Z.on("ping",b1),Z.on("pong",k1),$.onerror=i1,J.setTimeout)J.setTimeout(0);if(J.setNoDelay)J.setNoDelay();if(K.length>0)J.unshift(K);J.on("close",M5),J.on("data",V0),J.on("end",T5),J.on("error",x5),this._readyState=j.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=j.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[y.extensionName])this._extensions[y.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=j.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(J,K){if(this.readyState===j.CLOSED)return;if(this.readyState===j.CONNECTING){M(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===j.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=j.CLOSING,this._sender.close(J,K,!this._isServer,(X)=>{if(X)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),P5(this)}pause(){if(this.readyState===j.CONNECTING||this.readyState===j.CLOSED)return;this._paused=!0,this._socket.pause()}ping(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.ping(J||j0,K,X)}pong(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.pong(J||j0,K,X)}resume(){if(this.readyState===j.CONNECTING||this.readyState===j.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof K==="function")X=K,K={};if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}let Z={binary:typeof J!=="string",mask:!this._isServer,compress:!0,fin:!0,...K};if(!this._extensions[y.extensionName])Z.compress=!1;this._sender.send(J||j0,Z,X)}terminate(){if(this.readyState===j.CLOSED)return;if(this.readyState===j.CONNECTING){M(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=j.CLOSING,this._socket.destroy()}}Object.defineProperty(j,"CONNECTING",{enumerable:!0,value:U.indexOf("CONNECTING")});Object.defineProperty(j.prototype,"CONNECTING",{enumerable:!0,value:U.indexOf("CONNECTING")});Object.defineProperty(j,"OPEN",{enumerable:!0,value:U.indexOf("OPEN")});Object.defineProperty(j.prototype,"OPEN",{enumerable:!0,value:U.indexOf("OPEN")});Object.defineProperty(j,"CLOSING",{enumerable:!0,value:U.indexOf("CLOSING")});Object.defineProperty(j.prototype,"CLOSING",{enumerable:!0,value:U.indexOf("CLOSING")});Object.defineProperty(j,"CLOSED",{enumerable:!0,value:U.indexOf("CLOSED")});Object.defineProperty(j.prototype,"CLOSED",{enumerable:!0,value:U.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((J)=>{Object.defineProperty(j.prototype,J,{enumerable:!0})});["open","error","close","message"].forEach((J)=>{Object.defineProperty(j.prototype,`on${J}`,{enumerable:!0,get(){for(let K of this.listeners(J))if(K[L0])return K[L1];return null},set(K){for(let X of this.listeners(J))if(X[L0]){this.removeListener(J,X);break}if(typeof K!=="function")return;this.addEventListener(J,K,{[L0]:!0})}})});j.prototype.addEventListener=E1;j.prototype.removeEventListener=y1;B5.exports=j;function D5(J,K,X,Z){let $={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:q1,protocolVersion:W0[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...Z,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(J._autoPong=$.autoPong,J._closeTimeout=$.closeTimeout,!W0.includes($.protocolVersion))throw RangeError(`Unsupported protocol version: ${$.protocolVersion} (supported versions: ${W0.join(", ")})`);let Q;if(K instanceof U0)Q=K;else try{Q=new U0(K)}catch(N){throw SyntaxError(`Invalid URL: ${K}`)}if(Q.protocol==="http:")Q.protocol="ws:";else if(Q.protocol==="https:")Q.protocol="wss:";J._url=Q.href;let G=Q.protocol==="wss:",z=Q.protocol==="ws+unix:",I;if(Q.protocol!=="ws:"&&!G&&!z)I=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(z&&!Q.pathname)I="The URL's pathname is empty";else if(Q.hash)I="The URL contains a fragment identifier";if(I){let N=SyntaxError(I);if(J._redirects===0)throw N;else{Y0(J,N);return}}let V=G?443:80,_=M1(16).toString("base64"),Y=G?D1.request:O1.request,F=new Set,D;if($.createConnection=$.createConnection||(G?m1:h1),$.defaultPort=$.defaultPort||V,$.port=Q.port||V,$.host=Q.hostname.startsWith("[")?Q.hostname.slice(1,-1):Q.hostname,$.headers={...$.headers,"Sec-WebSocket-Version":$.protocolVersion,"Sec-WebSocket-Key":_,Connection:"Upgrade",Upgrade:"websocket"},$.path=Q.pathname+Q.search,$.timeout=$.handshakeTimeout,$.perMessageDeflate)D=new y($.perMessageDeflate!==!0?$.perMessageDeflate:{},!1,$.maxPayload),$.headers["Sec-WebSocket-Extensions"]=S1({[y.extensionName]:D.offer()});if(X.length){for(let N of X){if(typeof N!=="string"||!w1.test(N)||F.has(N))throw SyntaxError("An invalid or duplicated subprotocol was specified");F.add(N)}$.headers["Sec-WebSocket-Protocol"]=X.join(",")}if($.origin)if($.protocolVersion<13)$.headers["Sec-WebSocket-Origin"]=$.origin;else $.headers.Origin=$.origin;if(Q.username||Q.password)$.auth=`${Q.username}:${Q.password}`;if(z){let N=$.path.split(":");$.socketPath=N[0],$.path=N[1]}let H;if($.followRedirects){if(J._redirects===0){J._originalIpc=z,J._originalSecure=G,J._originalHostOrSocketPath=z?$.socketPath:Q.host;let N=Z&&Z.headers;if(Z={...Z,headers:{}},N)for(let[O,h]of Object.entries(N))Z.headers[O.toLowerCase()]=h}else if(J.listenerCount("redirect")===0){let N=z?J._originalIpc?$.socketPath===J._originalHostOrSocketPath:!1:J._originalIpc?!1:Q.host===J._originalHostOrSocketPath;if(!N||J._originalSecure&&!G){if(delete $.headers.authorization,delete $.headers.cookie,!N)delete $.headers.host;$.auth=void 0}}if($.auth&&!Z.headers.authorization)Z.headers.authorization="Basic "+Buffer.from($.auth).toString("base64");if(H=J._req=Y($),J._redirects)J.emit("redirect",J.url,H)}else H=J._req=Y($);if($.timeout)H.on("timeout",()=>{M(J,H,"Opening handshake has timed out")});if(H.on("error",(N)=>{if(H===null||H[F5])return;H=J._req=null,Y0(J,N)}),H.on("response",(N)=>{let O=N.headers.location,h=N.statusCode;if(O&&$.followRedirects&&h>=300&&h<400){if(++J._redirects>$.maxRedirects){M(J,H,"Maximum redirects exceeded");return}H.abort();let d;try{d=new U0(O,K)}catch(y0){let m=SyntaxError(`Invalid URL: ${O}`);Y0(J,m);return}D5(J,d,X,Z)}else if(!J.emit("unexpected-response",H,N))M(J,H,`Unexpected server response: ${N.statusCode}`)}),H.on("upgrade",(N,O,h)=>{if(J.emit("upgrade",N),J.readyState!==j.CONNECTING)return;H=J._req=null;let d=N.headers.upgrade;if(d===void 0||d.toLowerCase()!=="websocket"){M(J,O,"Invalid Upgrade header");return}let y0=T1("sha1").update(_+U1).digest("base64");if(N.headers["sec-websocket-accept"]!==y0){M(J,O,"Invalid Sec-WebSocket-Accept header");return}let m=N.headers["sec-websocket-protocol"],c;if(m!==void 0){if(!F.size)c="Server sent a subprotocol but none was requested";else if(!F.has(m))c="Server sent an invalid subprotocol"}else if(F.size)c="Server sent no subprotocol";if(c){M(J,O,c);return}if(m)J._protocol=m;let S0=N.headers["sec-websocket-extensions"];if(S0!==void 0){if(!D){M(J,O,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let R0;try{R0=v1(S0)}catch(A0){M(J,O,"Invalid Sec-WebSocket-Extensions header");return}let v0=Object.keys(R0);if(v0.length!==1||v0[0]!==y.extensionName){M(J,O,"Server indicated an extension that was not requested");return}try{D.accept(R0[y.extensionName])}catch(A0){M(J,O,"Invalid Sec-WebSocket-Extensions header");return}J._extensions[y.extensionName]=D}J.setSocket(O,h,{allowSynchronousEvents:$.allowSynchronousEvents,generateMask:$.generateMask,maxPayload:$.maxPayload,skipUTF8Validation:$.skipUTF8Validation})}),$.finishRequest)$.finishRequest(H,J);else H.end()}function Y0(J,K){J._readyState=j.CLOSING,J._errorEmitted=!0,J.emit("error",K),J.emitClose()}function h1(J){return J.path=J.socketPath,R5.connect(J)}function m1(J){if(J.path=void 0,!J.servername&&J.servername!=="")J.servername=R5.isIP(J.host)?"":J.host;return P1.connect(J)}function M(J,K,X){J._readyState=j.CLOSING;let Z=Error(X);if(Error.captureStackTrace(Z,M),K.setHeader){if(K[F5]=!0,K.abort(),K.socket&&!K.socket.destroyed)K.socket.destroy();process.nextTick(Y0,J,Z)}else K.destroy(Z),K.once("error",J.emit.bind(J,"error")),K.once("close",J.emitClose.bind(J))}function E0(J,K,X){if(K){let Z=C1(K)?K.size:g1(K).length;if(J._socket)J._sender._bufferedBytes+=Z;else J._bufferedAmount+=Z}if(X){let Z=Error(`WebSocket is not open: readyState ${J.readyState} (${U[J.readyState]})`);process.nextTick(X,Z)}}function f1(J,K){let X=this[A];if(X._closeFrameReceived=!0,X._closeMessage=K,X._closeCode=J,X._socket[A]===void 0)return;if(X._socket.removeListener("data",V0),process.nextTick(O5,X._socket),J===1005)X.close();else X.close(J,K)}function u1(){let J=this[A];if(!J.isPaused)J._socket.resume()}function l1(J){let K=this[A];if(K._socket[A]!==void 0)K._socket.removeListener("data",V0),process.nextTick(O5,K._socket),K.close(J[W1]);if(!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function H5(){this[A].emitClose()}function p1(J,K){this[A].emit("message",J,K)}function b1(J){let K=this[A];if(K._autoPong)K.pong(J,!this._isServer,A5);K.emit("ping",J)}function k1(J){this[A].emit("pong",J)}function O5(J){J.resume()}function i1(J){let K=this[A];if(K.readyState===j.CLOSED)return;if(K.readyState===j.OPEN)K._readyState=j.CLOSING,P5(K);if(this._socket.end(),!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function P5(J){J._closeTimer=setTimeout(J._socket.destroy.bind(J._socket),J._closeTimeout)}function M5(){let J=this[A];if(this.removeListener("close",M5),this.removeListener("data",V0),this.removeListener("end",T5),J._readyState=j.CLOSING,!this._readableState.endEmitted&&!J._closeFrameReceived&&!J._receiver._writableState.errorEmitted&&this._readableState.length!==0){let K=this.read(this._readableState.length);J._receiver.write(K)}if(J._receiver.end(),this[A]=void 0,clearTimeout(J._closeTimer),J._receiver._writableState.finished||J._receiver._writableState.errorEmitted)J.emitClose();else J._receiver.on("error",H5),J._receiver.on("finish",H5)}function V0(J){if(!this[A]._receiver.write(J))this.pause()}function T5(){let J=this[A];J._readyState=j.CLOSING,J._receiver.end(),this.end()}function x5(){let J=this[A];if(this.removeListener("error",x5),this.on("error",A5),J)J._readyState=j.CLOSING,this.destroy()}});var L5=P((x4,U5)=>{var T4=_0(),{Duplex:d1}=R("stream");function C5(J){J.emit("close")}function c1(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function q5(J){if(this.removeListener("error",q5),this.destroy(),this.listenerCount("error")===0)this.emit("error",J)}function n1(J,K){let X=!0,Z=new d1({...K,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return J.on("message",function(Q,G){let z=!G&&Z._readableState.objectMode?Q.toString():Q;if(!Z.push(z))J.pause()}),J.once("error",function(Q){if(Z.destroyed)return;X=!1,Z.destroy(Q)}),J.once("close",function(){if(Z.destroyed)return;Z.push(null)}),Z._destroy=function($,Q){if(J.readyState===J.CLOSED){Q($),process.nextTick(C5,Z);return}let G=!1;if(J.once("error",function(I){G=!0,Q(I)}),J.once("close",function(){if(!G)Q($);process.nextTick(C5,Z)}),X)J.terminate()},Z._final=function($){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._final($)});return}if(J._socket===null)return;if(J._socket._writableState.finished){if($(),Z._readableState.endEmitted)Z.destroy()}else J._socket.once("finish",function(){$()}),J.close()},Z._read=function(){if(J.isPaused)J.resume()},Z._write=function($,Q,G){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._write($,Q,G)});return}J.send($,G)},Z.on("end",c1),Z.on("error",q5),Z}U5.exports=n1});var E5=P((B4,W5)=>{var{tokenChars:r1}=l();function a1(J){let K=new Set,X=-1,Z=-1,$=0;for($;$<J.length;$++){let G=J.charCodeAt($);if(Z===-1&&r1[G]===1){if(X===-1)X=$}else if($!==0&&(G===32||G===9)){if(Z===-1&&X!==-1)Z=$}else if(G===44){if(X===-1)throw SyntaxError(`Unexpected character at index ${$}`);if(Z===-1)Z=$;let z=J.slice(X,Z);if(K.has(z))throw SyntaxError(`The "${z}" subprotocol is duplicated`);K.add(z),X=Z=-1}else throw SyntaxError(`Unexpected character at index ${$}`)}if(X===-1||Z!==-1)throw SyntaxError("Unexpected end of input");let Q=J.slice(X,$);if(K.has(Q))throw SyntaxError(`The "${Q}" subprotocol is duplicated`);return K.add(Q),K}W5.exports={parse:a1}});var w5=P((q4,g5)=>{var s1=R("events"),N0=R("http"),{Duplex:C4}=R("stream"),{createHash:o1}=R("crypto"),y5=q0(),g=a(),t1=E5(),e1=_0(),{CLOSE_TIMEOUT:J4,GUID:K4,kWebSocket:X4}=C(),Z4=/^[+/0-9A-Za-z]{22}==$/;class v5 extends s1{constructor(J,K){super();if(J={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:J4,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:e1,...J},J.port==null&&!J.server&&!J.noServer||J.port!=null&&(J.server||J.noServer)||J.server&&J.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(J.port!=null)this._server=N0.createServer((X,Z)=>{let $=N0.STATUS_CODES[426];Z.writeHead(426,{"Content-Length":$.length,"Content-Type":"text/plain"}),Z.end($)}),this._server.listen(J.port,J.host,J.backlog,K);else if(J.server)this._server=J.server;if(this._server){let X=this.emit.bind(this,"connection");this._removeListeners=$4(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(Z,$,Q)=>{this.handleUpgrade(Z,$,Q,X)}})}if(J.perMessageDeflate===!0)J.perMessageDeflate={};if(J.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=J,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close(J){if(this._state===2){if(J)this.once("close",()=>{J(Error("The server is not running"))});process.nextTick(e,this);return}if(J)this.once("close",J);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(e,this);else this._shouldEmitClose=!0;else process.nextTick(e,this)}else{let K=this._server;this._removeListeners(),this._removeListeners=this._server=null,K.close(()=>{e(this)})}}shouldHandle(J){if(this.options.path){let K=J.url.indexOf("?");if((K!==-1?J.url.slice(0,K):J.url)!==this.options.path)return!1}return!0}handleUpgrade(J,K,X,Z){K.on("error",S5);let $=J.headers["sec-websocket-key"],Q=J.headers.upgrade,G=+J.headers["sec-websocket-version"];if(J.method!=="GET"){w(this,J,K,405,"Invalid HTTP method");return}if(Q===void 0||Q.toLowerCase()!=="websocket"){w(this,J,K,400,"Invalid Upgrade header");return}if($===void 0||!Z4.test($)){w(this,J,K,400,"Missing or invalid Sec-WebSocket-Key header");return}if(G!==13&&G!==8){w(this,J,K,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(J)){J0(K,400);return}let z=J.headers["sec-websocket-protocol"],I=new Set;if(z!==void 0)try{I=t1.parse(z)}catch(Y){w(this,J,K,400,"Invalid Sec-WebSocket-Protocol header");return}let V=J.headers["sec-websocket-extensions"],_={};if(this.options.perMessageDeflate&&V!==void 0){let Y=new g(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let F=y5.parse(V);if(F[g.extensionName])Y.accept(F[g.extensionName]),_[g.extensionName]=Y}catch(F){w(this,J,K,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let Y={origin:J.headers[`${G===8?"sec-websocket-origin":"origin"}`],secure:!!(J.socket.authorized||J.socket.encrypted),req:J};if(this.options.verifyClient.length===2){this.options.verifyClient(Y,(F,D,H,N)=>{if(!F)return J0(K,D||401,H,N);this.completeUpgrade(_,$,I,J,K,X,Z)});return}if(!this.options.verifyClient(Y))return J0(K,401)}this.completeUpgrade(_,$,I,J,K,X,Z)}completeUpgrade(J,K,X,Z,$,Q,G){if(!$.readable||!$.writable)return $.destroy();if($[X4])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return J0($,503);let I=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o1("sha1").update(K+K4).digest("base64")}`],V=new this.options.WebSocket(null,void 0,this.options);if(X.size){let _=this.options.handleProtocols?this.options.handleProtocols(X,Z):X.values().next().value;if(_)I.push(`Sec-WebSocket-Protocol: ${_}`),V._protocol=_}if(J[g.extensionName]){let _=J[g.extensionName].params,Y=y5.format({[g.extensionName]:[_]});I.push(`Sec-WebSocket-Extensions: ${Y}`),V._extensions=J}if(this.emit("headers",I,Z),$.write(I.concat(`\r
1
+ import{gc as K0,hc as P,kc as R}from"./chunk-feptb1bb.js";var C=P((j4,h0)=>{var g0=["nodebuffer","arraybuffer","fragments"],w0=typeof Blob<"u";if(w0)g0.push("blob");h0.exports={BINARY_TYPES:g0,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:w0,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var n=P((Y4,X0)=>{var{EMPTY_BUFFER:l5}=C(),F0=Buffer[Symbol.species];function p5(J,K){if(J.length===0)return l5;if(J.length===1)return J[0];let X=Buffer.allocUnsafe(K),Z=0;for(let $=0;$<J.length;$++){let Q=J[$];X.set(Q,Z),Z+=Q.length}if(Z<K)return new F0(X.buffer,X.byteOffset,Z);return X}function m0(J,K,X,Z,$){for(let Q=0;Q<$;Q++)X[Z+Q]=J[Q]^K[Q&3]}function f0(J,K){for(let X=0;X<J.length;X++)J[X]^=K[X&3]}function b5(J){if(J.length===J.buffer.byteLength)return J.buffer;return J.buffer.slice(J.byteOffset,J.byteOffset+J.length)}function D0(J){if(D0.readOnly=!0,Buffer.isBuffer(J))return J;let K;if(J instanceof ArrayBuffer)K=new F0(J);else if(ArrayBuffer.isView(J))K=new F0(J.buffer,J.byteOffset,J.byteLength);else K=Buffer.from(J),D0.readOnly=!1;return K}X0.exports={concat:p5,mask:m0,toArrayBuffer:b5,toBuffer:D0,unmask:f0};if(!process.env.WS_NO_BUFFER_UTIL)try{let J=(()=>{throw new Error("Cannot require module "+"bufferutil");})();X0.exports.mask=function(K,X,Z,$,Q){if(Q<48)m0(K,X,Z,$,Q);else J.mask(K,X,Z,$,Q)},X0.exports.unmask=function(K,X){if(K.length<32)f0(K,X);else J.unmask(K,X)}}catch(J){}});var b0=P((V4,p0)=>{var u0=Symbol("kDone"),O0=Symbol("kRun");class l0{constructor(J){this[u0]=()=>{this.pending--,this[O0]()},this.concurrency=J||1/0,this.jobs=[],this.pending=0}add(J){this.jobs.push(J),this[O0]()}[O0](){if(this.pending===this.concurrency)return;if(this.jobs.length){let J=this.jobs.shift();this.pending++,J(this[u0])}}}p0.exports=l0});var a=P((_4,n0)=>{var r=R("zlib"),k0=n(),k5=b0(),{kStatusCode:i0}=C(),i5=Buffer[Symbol.species],d5=Buffer.from([0,0,255,255]),$0=Symbol("permessage-deflate"),q=Symbol("total-length"),f=Symbol("callback"),L=Symbol("buffers"),u=Symbol("error"),Z0;class d0{constructor(J,K,X){if(this._maxPayload=X|0,this._options=J||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!K,this._deflate=null,this._inflate=null,this.params=null,!Z0){let Z=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Z0=new k5(Z)}}static get extensionName(){return"permessage-deflate"}offer(){let J={};if(this._options.serverNoContextTakeover)J.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)J.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)J.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)J.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)J.client_max_window_bits=!0;return J}accept(J){return J=this.normalizeParams(J),this.params=this._isServer?this.acceptAsServer(J):this.acceptAsClient(J),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let J=this._deflate[f];if(this._deflate.close(),this._deflate=null,J)J(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(J){let K=this._options,X=J.find((Z)=>{if(K.serverNoContextTakeover===!1&&Z.server_no_context_takeover||Z.server_max_window_bits&&(K.serverMaxWindowBits===!1||typeof K.serverMaxWindowBits==="number"&&K.serverMaxWindowBits>Z.server_max_window_bits)||typeof K.clientMaxWindowBits==="number"&&!Z.client_max_window_bits)return!1;return!0});if(!X)throw Error("None of the extension offers can be accepted");if(K.serverNoContextTakeover)X.server_no_context_takeover=!0;if(K.clientNoContextTakeover)X.client_no_context_takeover=!0;if(typeof K.serverMaxWindowBits==="number")X.server_max_window_bits=K.serverMaxWindowBits;if(typeof K.clientMaxWindowBits==="number")X.client_max_window_bits=K.clientMaxWindowBits;else if(X.client_max_window_bits===!0||K.clientMaxWindowBits===!1)delete X.client_max_window_bits;return X}acceptAsClient(J){let K=J[0];if(this._options.clientNoContextTakeover===!1&&K.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!K.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")K.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&K.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return K}normalizeParams(J){return J.forEach((K)=>{Object.keys(K).forEach((X)=>{let Z=K[X];if(Z.length>1)throw Error(`Parameter "${X}" must have only a single value`);if(Z=Z[0],X==="client_max_window_bits"){if(Z!==!0){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else if(X==="server_max_window_bits"){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(X==="client_no_context_takeover"||X==="server_no_context_takeover"){if(Z!==!0)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else throw Error(`Unknown parameter "${X}"`);K[X]=Z})}),J}decompress(J,K,X){Z0.add((Z)=>{this._decompress(J,K,($,Q)=>{Z(),X($,Q)})})}compress(J,K,X){Z0.add((Z)=>{this._compress(J,K,($,Q)=>{Z(),X($,Q)})})}_decompress(J,K,X){let Z=this._isServer?"client":"server";if(!this._inflate){let $=`${Z}_max_window_bits`,Q=typeof this.params[$]!=="number"?r.Z_DEFAULT_WINDOWBITS:this.params[$];this._inflate=r.createInflateRaw({...this._options.zlibInflateOptions,windowBits:Q}),this._inflate[$0]=this,this._inflate[q]=0,this._inflate[L]=[],this._inflate.on("error",n5),this._inflate.on("data",c0)}if(this._inflate[f]=X,this._inflate.write(J),K)this._inflate.write(d5);this._inflate.flush(()=>{let $=this._inflate[u];if($){this._inflate.close(),this._inflate=null,X($);return}let Q=k0.concat(this._inflate[L],this._inflate[q]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[q]=0,this._inflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._inflate.reset();X(null,Q)})}_compress(J,K,X){let Z=this._isServer?"server":"client";if(!this._deflate){let $=`${Z}_max_window_bits`,Q=typeof this.params[$]!=="number"?r.Z_DEFAULT_WINDOWBITS:this.params[$];this._deflate=r.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:Q}),this._deflate[q]=0,this._deflate[L]=[],this._deflate.on("data",c5)}this._deflate[f]=X,this._deflate.write(J),this._deflate.flush(r.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let $=k0.concat(this._deflate[L],this._deflate[q]);if(K)$=new i5($.buffer,$.byteOffset,$.length-4);if(this._deflate[f]=null,this._deflate[q]=0,this._deflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._deflate.reset();X(null,$)})}}n0.exports=d0;function c5(J){this[L].push(J),this[q]+=J.length}function c0(J){if(this[q]+=J.length,this[$0]._maxPayload<1||this[q]<=this[$0]._maxPayload){this[L].push(J);return}this[u]=RangeError("Max payload size exceeded"),this[u].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[u][i0]=1009,this.removeListener("data",c0),this.reset()}function n5(J){if(this[$0]._inflate=null,this[u]){this[f](this[u]);return}J[i0]=1007,this[f](J)}});var l=P((N4,Q0)=>{var{isUtf8:r0}=R("buffer"),{hasBlob:r5}=C(),a5=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function s5(J){return J>=1000&&J<=1014&&J!==1004&&J!==1005&&J!==1006||J>=3000&&J<=4999}function P0(J){let K=J.length,X=0;while(X<K)if((J[X]&128)===0)X++;else if((J[X]&224)===192){if(X+1===K||(J[X+1]&192)!==128||(J[X]&254)===192)return!1;X+=2}else if((J[X]&240)===224){if(X+2>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||J[X]===224&&(J[X+1]&224)===128||J[X]===237&&(J[X+1]&224)===160)return!1;X+=3}else if((J[X]&248)===240){if(X+3>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||(J[X+3]&192)!==128||J[X]===240&&(J[X+1]&240)===128||J[X]===244&&J[X+1]>143||J[X]>244)return!1;X+=4}else return!1;return!0}function o5(J){return r5&&typeof J==="object"&&typeof J.arrayBuffer==="function"&&typeof J.type==="string"&&typeof J.stream==="function"&&(J[Symbol.toStringTag]==="Blob"||J[Symbol.toStringTag]==="File")}Q0.exports={isBlob:o5,isValidStatusCode:s5,isValidUTF8:P0,tokenChars:a5};if(r0)Q0.exports.isValidUTF8=function(J){return J.length<24?P0(J):r0(J)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let J=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();Q0.exports.isValidUTF8=function(K){return K.length<32?P0(K):J(K)}}catch(J){}});var T0=P((H4,e0)=>{var{Writable:t5}=R("stream"),a0=a(),{BINARY_TYPES:e5,EMPTY_BUFFER:s0,kStatusCode:J1,kWebSocket:K1}=C(),{concat:M0,toArrayBuffer:X1,unmask:Z1}=n(),{isValidStatusCode:$1,isValidUTF8:o0}=l(),G0=Buffer[Symbol.species];class t0 extends t5{constructor(J={}){super();this._allowSynchronousEvents=J.allowSynchronousEvents!==void 0?J.allowSynchronousEvents:!0,this._binaryType=J.binaryType||e5[0],this._extensions=J.extensions||{},this._isServer=!!J.isServer,this._maxPayload=J.maxPayload|0,this._skipUTF8Validation=!!J.skipUTF8Validation,this[K1]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(J,K,X){if(this._opcode===8&&this._state==0)return X();this._bufferedBytes+=J.length,this._buffers.push(J),this.startLoop(X)}consume(J){if(this._bufferedBytes-=J,J===this._buffers[0].length)return this._buffers.shift();if(J<this._buffers[0].length){let X=this._buffers[0];return this._buffers[0]=new G0(X.buffer,X.byteOffset+J,X.length-J),new G0(X.buffer,X.byteOffset,J)}let K=Buffer.allocUnsafe(J);do{let X=this._buffers[0],Z=K.length-J;if(J>=X.length)K.set(this._buffers.shift(),Z);else K.set(new Uint8Array(X.buffer,X.byteOffset,J),Z),this._buffers[0]=new G0(X.buffer,X.byteOffset+J,X.length-J);J-=X.length}while(J>0);return K}startLoop(J){this._loop=!0;do switch(this._state){case 0:this.getInfo(J);break;case 1:this.getPayloadLength16(J);break;case 2:this.getPayloadLength64(J);break;case 3:this.getMask();break;case 4:this.getData(J);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)J()}getInfo(J){if(this._bufferedBytes<2){this._loop=!1;return}let K=this.consume(2);if((K[0]&48)!==0){let Z=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");J(Z);return}let X=(K[0]&64)===64;if(X&&!this._extensions[a0.extensionName]){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._fin=(K[0]&128)===128,this._opcode=K[0]&15,this._payloadLength=K[1]&127,this._opcode===0){if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(!this._fragmented){let Z=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._compressed=X}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let Z=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");J(Z);return}if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let Z=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");J(Z);return}}else{let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(K[1]&128)===128,this._isServer){if(!this._masked){let Z=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");J(Z);return}}else if(this._masked){let Z=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");J(Z);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength(J)}getPayloadLength16(J){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(J)}getPayloadLength64(J){if(this._bufferedBytes<8){this._loop=!1;return}let K=this.consume(8),X=K.readUInt32BE(0);if(X>Math.pow(2,21)-1){let Z=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");J(Z);return}this._payloadLength=X*Math.pow(2,32)+K.readUInt32BE(4),this.haveLength(J)}haveLength(J){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let K=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");J(K);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(J){let K=s0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(K=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)Z1(K,this._mask)}if(this._opcode>7){this.controlMessage(K,J);return}if(this._compressed){this._state=5,this.decompress(K,J);return}if(K.length)this._messageLength=this._totalPayloadLength,this._fragments.push(K);this.dataMessage(J)}decompress(J,K){this._extensions[a0.extensionName].decompress(J,this._fin,(Z,$)=>{if(Z)return K(Z);if($.length){if(this._messageLength+=$.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let Q=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");K(Q);return}this._fragments.push($)}if(this.dataMessage(K),this._state===0)this.startLoop(K)})}dataMessage(J){if(!this._fin){this._state=0;return}let K=this._messageLength,X=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let Z;if(this._binaryType==="nodebuffer")Z=M0(X,K);else if(this._binaryType==="arraybuffer")Z=X1(M0(X,K));else if(this._binaryType==="blob")Z=new Blob(X);else Z=X;if(this._allowSynchronousEvents)this.emit("message",Z,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!0),this._state=0,this.startLoop(J)})}else{let Z=M0(X,K);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");J($);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",Z,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!1),this._state=0,this.startLoop(J)})}}controlMessage(J,K){if(this._opcode===8){if(J.length===0)this._loop=!1,this.emit("conclude",1005,s0),this.end();else{let X=J.readUInt16BE(0);if(!$1(X)){let $=this.createError(RangeError,`invalid status code ${X}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");K($);return}let Z=new G0(J.buffer,J.byteOffset+2,J.length-2);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");K($);return}this._loop=!1,this.emit("conclude",X,Z),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",J),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",J),this._state=0,this.startLoop(K)})}createError(J,K,X,Z,$){this._loop=!1,this._errored=!0;let Q=new J(X?`Invalid WebSocket frame: ${K}`:K);return Error.captureStackTrace(Q,this.createError),Q.code=$,Q[J1]=Z,Q}}e0.exports=t0});var B0=P((A4,X5)=>{var{Duplex:R4}=R("stream"),{randomFillSync:Q1}=R("crypto"),J5=a(),{EMPTY_BUFFER:G1,kWebSocket:I1,NOOP:z1}=C(),{isBlob:p,isValidStatusCode:j1}=l(),{mask:K5,toBuffer:S}=n(),T=Symbol("kByteLength"),Y1=Buffer.alloc(4),v,b=8192,x=0,V1=1,_1=2;class W{constructor(J,K,X){if(this._extensions=K||{},X)this._generateMask=X,this._maskBuffer=Buffer.alloc(4);this._socket=J,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=x,this.onerror=z1,this[I1]=void 0}static frame(J,K){let X,Z=!1,$=2,Q=!1;if(K.mask){if(X=K.maskBuffer||Y1,K.generateMask)K.generateMask(X);else{if(b===8192){if(v===void 0)v=Buffer.alloc(8192);Q1(v,0,8192),b=0}X[0]=v[b++],X[1]=v[b++],X[2]=v[b++],X[3]=v[b++]}Q=(X[0]|X[1]|X[2]|X[3])===0,$=6}let G;if(typeof J==="string")if((!K.mask||Q)&&K[T]!==void 0)G=K[T];else J=Buffer.from(J),G=J.length;else G=J.length,Z=K.mask&&K.readOnly&&!Q;let z=G;if(G>=65536)$+=8,z=127;else if(G>125)$+=2,z=126;let I=Buffer.allocUnsafe(Z?G+$:$);if(I[0]=K.fin?K.opcode|128:K.opcode,K.rsv1)I[0]|=64;if(I[1]=z,z===126)I.writeUInt16BE(G,2);else if(z===127)I[2]=I[3]=0,I.writeUIntBE(G,4,6);if(!K.mask)return[I,J];if(I[1]|=128,I[$-4]=X[0],I[$-3]=X[1],I[$-2]=X[2],I[$-1]=X[3],Q)return[I,J];if(Z)return K5(J,X,I,$,G),[I];return K5(J,X,J,0,G),[I,J]}close(J,K,X,Z){let $;if(J===void 0)$=G1;else if(typeof J!=="number"||!j1(J))throw TypeError("First argument must be a valid error code number");else if(K===void 0||!K.length)$=Buffer.allocUnsafe(2),$.writeUInt16BE(J,0);else{let G=Buffer.byteLength(K);if(G>123)throw RangeError("The message must not be greater than 123 bytes");if($=Buffer.allocUnsafe(2+G),$.writeUInt16BE(J,0),typeof K==="string")$.write(K,2);else $.set(K,2)}let Q={[T]:$.length,fin:!0,generateMask:this._generateMask,mask:X,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==x)this.enqueue([this.dispatch,$,!1,Q,Z]);else this.sendFrame(W.frame($,Q),Z)}ping(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(p(J))Z=J.size,$=!1;else J=S(J),Z=J.length,$=S.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let Q={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:9,readOnly:$,rsv1:!1};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,Q,X]);else this.getBlobData(J,!1,Q,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,Q,X]);else this.sendFrame(W.frame(J,Q),X)}pong(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(p(J))Z=J.size,$=!1;else J=S(J),Z=J.length,$=S.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let Q={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:10,readOnly:$,rsv1:!1};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,Q,X]);else this.getBlobData(J,!1,Q,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,Q,X]);else this.sendFrame(W.frame(J,Q),X)}send(J,K,X){let Z=this._extensions[J5.extensionName],$=K.binary?2:1,Q=K.compress,G,z;if(typeof J==="string")G=Buffer.byteLength(J),z=!1;else if(p(J))G=J.size,z=!1;else J=S(J),G=J.length,z=S.readOnly;if(this._firstFragment){if(this._firstFragment=!1,Q&&Z&&Z.params[Z._isServer?"server_no_context_takeover":"client_no_context_takeover"])Q=G>=Z._threshold;this._compress=Q}else Q=!1,$=0;if(K.fin)this._firstFragment=!0;let I={[T]:G,fin:K.fin,generateMask:this._generateMask,mask:K.mask,maskBuffer:this._maskBuffer,opcode:$,readOnly:z,rsv1:Q};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,this._compress,I,X]);else this.getBlobData(J,this._compress,I,X);else if(this._state!==x)this.enqueue([this.dispatch,J,this._compress,I,X]);else this.dispatch(J,this._compress,I,X)}getBlobData(J,K,X,Z){this._bufferedBytes+=X[T],this._state=_1,J.arrayBuffer().then(($)=>{if(this._socket.destroyed){let G=Error("The socket was closed while the blob was being read");process.nextTick(x0,this,G,Z);return}this._bufferedBytes-=X[T];let Q=S($);if(!K)this._state=x,this.sendFrame(W.frame(Q,X),Z),this.dequeue();else this.dispatch(Q,K,X,Z)}).catch(($)=>{process.nextTick(N1,this,$,Z)})}dispatch(J,K,X,Z){if(!K){this.sendFrame(W.frame(J,X),Z);return}let $=this._extensions[J5.extensionName];this._bufferedBytes+=X[T],this._state=V1,$.compress(J,X.fin,(Q,G)=>{if(this._socket.destroyed){let z=Error("The socket was closed while data was being compressed");x0(this,z,Z);return}this._bufferedBytes-=X[T],this._state=x,X.readOnly=!1,this.sendFrame(W.frame(G,X),Z),this.dequeue()})}dequeue(){while(this._state===x&&this._queue.length){let J=this._queue.shift();this._bufferedBytes-=J[3][T],Reflect.apply(J[0],this,J.slice(1))}}enqueue(J){this._bufferedBytes+=J[3][T],this._queue.push(J)}sendFrame(J,K){if(J.length===2)this._socket.cork(),this._socket.write(J[0]),this._socket.write(J[1],K),this._socket.uncork();else this._socket.write(J[0],K)}}X5.exports=W;function x0(J,K,X){if(typeof X==="function")X(K);for(let Z=0;Z<J._queue.length;Z++){let $=J._queue[Z],Q=$[$.length-1];if(typeof Q==="function")Q(K)}}function N1(J,K,X){x0(J,K,X),J.onerror(K)}});var V5=P((F4,Y5)=>{var{kForOnEventAttribute:s,kListener:C0}=C(),Z5=Symbol("kCode"),$5=Symbol("kData"),Q5=Symbol("kError"),G5=Symbol("kMessage"),I5=Symbol("kReason"),k=Symbol("kTarget"),z5=Symbol("kType"),j5=Symbol("kWasClean");class E{constructor(J){this[k]=null,this[z5]=J}get target(){return this[k]}get type(){return this[z5]}}Object.defineProperty(E.prototype,"target",{enumerable:!0});Object.defineProperty(E.prototype,"type",{enumerable:!0});class i extends E{constructor(J,K={}){super(J);this[Z5]=K.code===void 0?0:K.code,this[I5]=K.reason===void 0?"":K.reason,this[j5]=K.wasClean===void 0?!1:K.wasClean}get code(){return this[Z5]}get reason(){return this[I5]}get wasClean(){return this[j5]}}Object.defineProperty(i.prototype,"code",{enumerable:!0});Object.defineProperty(i.prototype,"reason",{enumerable:!0});Object.defineProperty(i.prototype,"wasClean",{enumerable:!0});class o extends E{constructor(J,K={}){super(J);this[Q5]=K.error===void 0?null:K.error,this[G5]=K.message===void 0?"":K.message}get error(){return this[Q5]}get message(){return this[G5]}}Object.defineProperty(o.prototype,"error",{enumerable:!0});Object.defineProperty(o.prototype,"message",{enumerable:!0});class z0 extends E{constructor(J,K={}){super(J);this[$5]=K.data===void 0?null:K.data}get data(){return this[$5]}}Object.defineProperty(z0.prototype,"data",{enumerable:!0});var H1={addEventListener(J,K,X={}){for(let $ of this.listeners(J))if(!X[s]&&$[C0]===K&&!$[s])return;let Z;if(J==="message")Z=function(Q,G){let z=new z0("message",{data:G?Q:Q.toString()});z[k]=this,I0(K,this,z)};else if(J==="close")Z=function(Q,G){let z=new i("close",{code:Q,reason:G.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});z[k]=this,I0(K,this,z)};else if(J==="error")Z=function(Q){let G=new o("error",{error:Q,message:Q.message});G[k]=this,I0(K,this,G)};else if(J==="open")Z=function(){let Q=new E("open");Q[k]=this,I0(K,this,Q)};else return;if(Z[s]=!!X[s],Z[C0]=K,X.once)this.once(J,Z);else this.on(J,Z)},removeEventListener(J,K){for(let X of this.listeners(J))if(X[C0]===K&&!X[s]){this.removeListener(J,X);break}}};Y5.exports={CloseEvent:i,ErrorEvent:o,Event:E,EventTarget:H1,MessageEvent:z0};function I0(J,K,X){if(typeof J==="object"&&J.handleEvent)J.handleEvent.call(J,X);else J.call(K,X)}});var q0=P((D4,_5)=>{var{tokenChars:t}=l();function B(J,K,X){if(J[K]===void 0)J[K]=[X];else J[K].push(X)}function R1(J){let K=Object.create(null),X=Object.create(null),Z=!1,$=!1,Q=!1,G,z,I=-1,V=-1,_=-1,Y=0;for(;Y<J.length;Y++)if(V=J.charCodeAt(Y),G===void 0)if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(Y!==0&&(V===32||V===9)){if(_===-1&&I!==-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(I,_);if(V===44)B(K,D,X),X=Object.create(null);else G=D;I=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);else if(z===void 0)if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(V===32||V===9){if(_===-1&&I!==-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;if(B(X,J.slice(I,_),!0),V===44)B(K,G,X),X=Object.create(null),G=void 0;I=_=-1}else if(V===61&&I!==-1&&_===-1)z=J.slice(I,Y),I=_=-1;else throw SyntaxError(`Unexpected character at index ${Y}`);else if($){if(t[V]!==1)throw SyntaxError(`Unexpected character at index ${Y}`);if(I===-1)I=Y;else if(!Z)Z=!0;$=!1}else if(Q)if(t[V]===1){if(I===-1)I=Y}else if(V===34&&I!==-1)Q=!1,_=Y;else if(V===92)$=!0;else throw SyntaxError(`Unexpected character at index ${Y}`);else if(V===34&&J.charCodeAt(Y-1)===61)Q=!0;else if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(I!==-1&&(V===32||V===9)){if(_===-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(I,_);if(Z)D=D.replace(/\\/g,""),Z=!1;if(B(X,z,D),V===44)B(K,G,X),X=Object.create(null),G=void 0;z=void 0,I=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);if(I===-1||Q||V===32||V===9)throw SyntaxError("Unexpected end of input");if(_===-1)_=Y;let F=J.slice(I,_);if(G===void 0)B(K,F,X);else{if(z===void 0)B(X,F,!0);else if(Z)B(X,z,F.replace(/\\/g,""));else B(X,z,F);B(K,G,X)}return K}function A1(J){return Object.keys(J).map((K)=>{let X=J[K];if(!Array.isArray(X))X=[X];return X.map((Z)=>{return[K].concat(Object.keys(Z).map(($)=>{let Q=Z[$];if(!Array.isArray(Q))Q=[Q];return Q.map((G)=>G===!0?$:`${$}=${G}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}_5.exports={format:A1,parse:R1}});var _0=P((M4,B5)=>{var F1=R("events"),D1=R("https"),O1=R("http"),R5=R("net"),P1=R("tls"),{randomBytes:M1,createHash:T1}=R("crypto"),{Duplex:O4,Readable:P4}=R("stream"),{URL:U0}=R("url"),y=a(),x1=T0(),B1=B0(),{isBlob:C1}=l(),{BINARY_TYPES:N5,CLOSE_TIMEOUT:q1,EMPTY_BUFFER:j0,GUID:U1,kForOnEventAttribute:L0,kListener:L1,kStatusCode:W1,kWebSocket:A,NOOP:A5}=C(),{EventTarget:{addEventListener:E1,removeEventListener:y1}}=V5(),{format:S1,parse:v1}=q0(),{toBuffer:g1}=n(),F5=Symbol("kAborted"),W0=[8,13],U=["CONNECTING","OPEN","CLOSING","CLOSED"],w1=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class j extends F1{constructor(J,K,X){super();if(this._binaryType=N5[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=j0,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=j.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,J!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,K===void 0)K=[];else if(!Array.isArray(K))if(typeof K==="object"&&K!==null)X=K,K=[];else K=[K];D5(this,J,K,X)}else this._autoPong=X.autoPong,this._closeTimeout=X.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(J){if(!N5.includes(J))return;if(this._binaryType=J,this._receiver)this._receiver._binaryType=J}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(J,K,X){let Z=new x1({allowSynchronousEvents:X.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:X.maxPayload,skipUTF8Validation:X.skipUTF8Validation}),$=new B1(J,this._extensions,X.generateMask);if(this._receiver=Z,this._sender=$,this._socket=J,Z[A]=this,$[A]=this,J[A]=this,Z.on("conclude",f1),Z.on("drain",u1),Z.on("error",l1),Z.on("message",p1),Z.on("ping",b1),Z.on("pong",k1),$.onerror=i1,J.setTimeout)J.setTimeout(0);if(J.setNoDelay)J.setNoDelay();if(K.length>0)J.unshift(K);J.on("close",M5),J.on("data",V0),J.on("end",T5),J.on("error",x5),this._readyState=j.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=j.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[y.extensionName])this._extensions[y.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=j.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(J,K){if(this.readyState===j.CLOSED)return;if(this.readyState===j.CONNECTING){M(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===j.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=j.CLOSING,this._sender.close(J,K,!this._isServer,(X)=>{if(X)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),P5(this)}pause(){if(this.readyState===j.CONNECTING||this.readyState===j.CLOSED)return;this._paused=!0,this._socket.pause()}ping(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.ping(J||j0,K,X)}pong(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.pong(J||j0,K,X)}resume(){if(this.readyState===j.CONNECTING||this.readyState===j.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof K==="function")X=K,K={};if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}let Z={binary:typeof J!=="string",mask:!this._isServer,compress:!0,fin:!0,...K};if(!this._extensions[y.extensionName])Z.compress=!1;this._sender.send(J||j0,Z,X)}terminate(){if(this.readyState===j.CLOSED)return;if(this.readyState===j.CONNECTING){M(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=j.CLOSING,this._socket.destroy()}}Object.defineProperty(j,"CONNECTING",{enumerable:!0,value:U.indexOf("CONNECTING")});Object.defineProperty(j.prototype,"CONNECTING",{enumerable:!0,value:U.indexOf("CONNECTING")});Object.defineProperty(j,"OPEN",{enumerable:!0,value:U.indexOf("OPEN")});Object.defineProperty(j.prototype,"OPEN",{enumerable:!0,value:U.indexOf("OPEN")});Object.defineProperty(j,"CLOSING",{enumerable:!0,value:U.indexOf("CLOSING")});Object.defineProperty(j.prototype,"CLOSING",{enumerable:!0,value:U.indexOf("CLOSING")});Object.defineProperty(j,"CLOSED",{enumerable:!0,value:U.indexOf("CLOSED")});Object.defineProperty(j.prototype,"CLOSED",{enumerable:!0,value:U.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((J)=>{Object.defineProperty(j.prototype,J,{enumerable:!0})});["open","error","close","message"].forEach((J)=>{Object.defineProperty(j.prototype,`on${J}`,{enumerable:!0,get(){for(let K of this.listeners(J))if(K[L0])return K[L1];return null},set(K){for(let X of this.listeners(J))if(X[L0]){this.removeListener(J,X);break}if(typeof K!=="function")return;this.addEventListener(J,K,{[L0]:!0})}})});j.prototype.addEventListener=E1;j.prototype.removeEventListener=y1;B5.exports=j;function D5(J,K,X,Z){let $={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:q1,protocolVersion:W0[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...Z,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(J._autoPong=$.autoPong,J._closeTimeout=$.closeTimeout,!W0.includes($.protocolVersion))throw RangeError(`Unsupported protocol version: ${$.protocolVersion} (supported versions: ${W0.join(", ")})`);let Q;if(K instanceof U0)Q=K;else try{Q=new U0(K)}catch(N){throw SyntaxError(`Invalid URL: ${K}`)}if(Q.protocol==="http:")Q.protocol="ws:";else if(Q.protocol==="https:")Q.protocol="wss:";J._url=Q.href;let G=Q.protocol==="wss:",z=Q.protocol==="ws+unix:",I;if(Q.protocol!=="ws:"&&!G&&!z)I=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(z&&!Q.pathname)I="The URL's pathname is empty";else if(Q.hash)I="The URL contains a fragment identifier";if(I){let N=SyntaxError(I);if(J._redirects===0)throw N;else{Y0(J,N);return}}let V=G?443:80,_=M1(16).toString("base64"),Y=G?D1.request:O1.request,F=new Set,D;if($.createConnection=$.createConnection||(G?m1:h1),$.defaultPort=$.defaultPort||V,$.port=Q.port||V,$.host=Q.hostname.startsWith("[")?Q.hostname.slice(1,-1):Q.hostname,$.headers={...$.headers,"Sec-WebSocket-Version":$.protocolVersion,"Sec-WebSocket-Key":_,Connection:"Upgrade",Upgrade:"websocket"},$.path=Q.pathname+Q.search,$.timeout=$.handshakeTimeout,$.perMessageDeflate)D=new y($.perMessageDeflate!==!0?$.perMessageDeflate:{},!1,$.maxPayload),$.headers["Sec-WebSocket-Extensions"]=S1({[y.extensionName]:D.offer()});if(X.length){for(let N of X){if(typeof N!=="string"||!w1.test(N)||F.has(N))throw SyntaxError("An invalid or duplicated subprotocol was specified");F.add(N)}$.headers["Sec-WebSocket-Protocol"]=X.join(",")}if($.origin)if($.protocolVersion<13)$.headers["Sec-WebSocket-Origin"]=$.origin;else $.headers.Origin=$.origin;if(Q.username||Q.password)$.auth=`${Q.username}:${Q.password}`;if(z){let N=$.path.split(":");$.socketPath=N[0],$.path=N[1]}let H;if($.followRedirects){if(J._redirects===0){J._originalIpc=z,J._originalSecure=G,J._originalHostOrSocketPath=z?$.socketPath:Q.host;let N=Z&&Z.headers;if(Z={...Z,headers:{}},N)for(let[O,h]of Object.entries(N))Z.headers[O.toLowerCase()]=h}else if(J.listenerCount("redirect")===0){let N=z?J._originalIpc?$.socketPath===J._originalHostOrSocketPath:!1:J._originalIpc?!1:Q.host===J._originalHostOrSocketPath;if(!N||J._originalSecure&&!G){if(delete $.headers.authorization,delete $.headers.cookie,!N)delete $.headers.host;$.auth=void 0}}if($.auth&&!Z.headers.authorization)Z.headers.authorization="Basic "+Buffer.from($.auth).toString("base64");if(H=J._req=Y($),J._redirects)J.emit("redirect",J.url,H)}else H=J._req=Y($);if($.timeout)H.on("timeout",()=>{M(J,H,"Opening handshake has timed out")});if(H.on("error",(N)=>{if(H===null||H[F5])return;H=J._req=null,Y0(J,N)}),H.on("response",(N)=>{let O=N.headers.location,h=N.statusCode;if(O&&$.followRedirects&&h>=300&&h<400){if(++J._redirects>$.maxRedirects){M(J,H,"Maximum redirects exceeded");return}H.abort();let d;try{d=new U0(O,K)}catch(y0){let m=SyntaxError(`Invalid URL: ${O}`);Y0(J,m);return}D5(J,d,X,Z)}else if(!J.emit("unexpected-response",H,N))M(J,H,`Unexpected server response: ${N.statusCode}`)}),H.on("upgrade",(N,O,h)=>{if(J.emit("upgrade",N),J.readyState!==j.CONNECTING)return;H=J._req=null;let d=N.headers.upgrade;if(d===void 0||d.toLowerCase()!=="websocket"){M(J,O,"Invalid Upgrade header");return}let y0=T1("sha1").update(_+U1).digest("base64");if(N.headers["sec-websocket-accept"]!==y0){M(J,O,"Invalid Sec-WebSocket-Accept header");return}let m=N.headers["sec-websocket-protocol"],c;if(m!==void 0){if(!F.size)c="Server sent a subprotocol but none was requested";else if(!F.has(m))c="Server sent an invalid subprotocol"}else if(F.size)c="Server sent no subprotocol";if(c){M(J,O,c);return}if(m)J._protocol=m;let S0=N.headers["sec-websocket-extensions"];if(S0!==void 0){if(!D){M(J,O,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let R0;try{R0=v1(S0)}catch(A0){M(J,O,"Invalid Sec-WebSocket-Extensions header");return}let v0=Object.keys(R0);if(v0.length!==1||v0[0]!==y.extensionName){M(J,O,"Server indicated an extension that was not requested");return}try{D.accept(R0[y.extensionName])}catch(A0){M(J,O,"Invalid Sec-WebSocket-Extensions header");return}J._extensions[y.extensionName]=D}J.setSocket(O,h,{allowSynchronousEvents:$.allowSynchronousEvents,generateMask:$.generateMask,maxPayload:$.maxPayload,skipUTF8Validation:$.skipUTF8Validation})}),$.finishRequest)$.finishRequest(H,J);else H.end()}function Y0(J,K){J._readyState=j.CLOSING,J._errorEmitted=!0,J.emit("error",K),J.emitClose()}function h1(J){return J.path=J.socketPath,R5.connect(J)}function m1(J){if(J.path=void 0,!J.servername&&J.servername!=="")J.servername=R5.isIP(J.host)?"":J.host;return P1.connect(J)}function M(J,K,X){J._readyState=j.CLOSING;let Z=Error(X);if(Error.captureStackTrace(Z,M),K.setHeader){if(K[F5]=!0,K.abort(),K.socket&&!K.socket.destroyed)K.socket.destroy();process.nextTick(Y0,J,Z)}else K.destroy(Z),K.once("error",J.emit.bind(J,"error")),K.once("close",J.emitClose.bind(J))}function E0(J,K,X){if(K){let Z=C1(K)?K.size:g1(K).length;if(J._socket)J._sender._bufferedBytes+=Z;else J._bufferedAmount+=Z}if(X){let Z=Error(`WebSocket is not open: readyState ${J.readyState} (${U[J.readyState]})`);process.nextTick(X,Z)}}function f1(J,K){let X=this[A];if(X._closeFrameReceived=!0,X._closeMessage=K,X._closeCode=J,X._socket[A]===void 0)return;if(X._socket.removeListener("data",V0),process.nextTick(O5,X._socket),J===1005)X.close();else X.close(J,K)}function u1(){let J=this[A];if(!J.isPaused)J._socket.resume()}function l1(J){let K=this[A];if(K._socket[A]!==void 0)K._socket.removeListener("data",V0),process.nextTick(O5,K._socket),K.close(J[W1]);if(!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function H5(){this[A].emitClose()}function p1(J,K){this[A].emit("message",J,K)}function b1(J){let K=this[A];if(K._autoPong)K.pong(J,!this._isServer,A5);K.emit("ping",J)}function k1(J){this[A].emit("pong",J)}function O5(J){J.resume()}function i1(J){let K=this[A];if(K.readyState===j.CLOSED)return;if(K.readyState===j.OPEN)K._readyState=j.CLOSING,P5(K);if(this._socket.end(),!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function P5(J){J._closeTimer=setTimeout(J._socket.destroy.bind(J._socket),J._closeTimeout)}function M5(){let J=this[A];if(this.removeListener("close",M5),this.removeListener("data",V0),this.removeListener("end",T5),J._readyState=j.CLOSING,!this._readableState.endEmitted&&!J._closeFrameReceived&&!J._receiver._writableState.errorEmitted&&this._readableState.length!==0){let K=this.read(this._readableState.length);J._receiver.write(K)}if(J._receiver.end(),this[A]=void 0,clearTimeout(J._closeTimer),J._receiver._writableState.finished||J._receiver._writableState.errorEmitted)J.emitClose();else J._receiver.on("error",H5),J._receiver.on("finish",H5)}function V0(J){if(!this[A]._receiver.write(J))this.pause()}function T5(){let J=this[A];J._readyState=j.CLOSING,J._receiver.end(),this.end()}function x5(){let J=this[A];if(this.removeListener("error",x5),this.on("error",A5),J)J._readyState=j.CLOSING,this.destroy()}});var L5=P((x4,U5)=>{var T4=_0(),{Duplex:d1}=R("stream");function C5(J){J.emit("close")}function c1(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function q5(J){if(this.removeListener("error",q5),this.destroy(),this.listenerCount("error")===0)this.emit("error",J)}function n1(J,K){let X=!0,Z=new d1({...K,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return J.on("message",function(Q,G){let z=!G&&Z._readableState.objectMode?Q.toString():Q;if(!Z.push(z))J.pause()}),J.once("error",function(Q){if(Z.destroyed)return;X=!1,Z.destroy(Q)}),J.once("close",function(){if(Z.destroyed)return;Z.push(null)}),Z._destroy=function($,Q){if(J.readyState===J.CLOSED){Q($),process.nextTick(C5,Z);return}let G=!1;if(J.once("error",function(I){G=!0,Q(I)}),J.once("close",function(){if(!G)Q($);process.nextTick(C5,Z)}),X)J.terminate()},Z._final=function($){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._final($)});return}if(J._socket===null)return;if(J._socket._writableState.finished){if($(),Z._readableState.endEmitted)Z.destroy()}else J._socket.once("finish",function(){$()}),J.close()},Z._read=function(){if(J.isPaused)J.resume()},Z._write=function($,Q,G){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._write($,Q,G)});return}J.send($,G)},Z.on("end",c1),Z.on("error",q5),Z}U5.exports=n1});var E5=P((B4,W5)=>{var{tokenChars:r1}=l();function a1(J){let K=new Set,X=-1,Z=-1,$=0;for($;$<J.length;$++){let G=J.charCodeAt($);if(Z===-1&&r1[G]===1){if(X===-1)X=$}else if($!==0&&(G===32||G===9)){if(Z===-1&&X!==-1)Z=$}else if(G===44){if(X===-1)throw SyntaxError(`Unexpected character at index ${$}`);if(Z===-1)Z=$;let z=J.slice(X,Z);if(K.has(z))throw SyntaxError(`The "${z}" subprotocol is duplicated`);K.add(z),X=Z=-1}else throw SyntaxError(`Unexpected character at index ${$}`)}if(X===-1||Z!==-1)throw SyntaxError("Unexpected end of input");let Q=J.slice(X,$);if(K.has(Q))throw SyntaxError(`The "${Q}" subprotocol is duplicated`);return K.add(Q),K}W5.exports={parse:a1}});var w5=P((q4,g5)=>{var s1=R("events"),N0=R("http"),{Duplex:C4}=R("stream"),{createHash:o1}=R("crypto"),y5=q0(),g=a(),t1=E5(),e1=_0(),{CLOSE_TIMEOUT:J4,GUID:K4,kWebSocket:X4}=C(),Z4=/^[+/0-9A-Za-z]{22}==$/;class v5 extends s1{constructor(J,K){super();if(J={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:J4,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:e1,...J},J.port==null&&!J.server&&!J.noServer||J.port!=null&&(J.server||J.noServer)||J.server&&J.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(J.port!=null)this._server=N0.createServer((X,Z)=>{let $=N0.STATUS_CODES[426];Z.writeHead(426,{"Content-Length":$.length,"Content-Type":"text/plain"}),Z.end($)}),this._server.listen(J.port,J.host,J.backlog,K);else if(J.server)this._server=J.server;if(this._server){let X=this.emit.bind(this,"connection");this._removeListeners=$4(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(Z,$,Q)=>{this.handleUpgrade(Z,$,Q,X)}})}if(J.perMessageDeflate===!0)J.perMessageDeflate={};if(J.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=J,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close(J){if(this._state===2){if(J)this.once("close",()=>{J(Error("The server is not running"))});process.nextTick(e,this);return}if(J)this.once("close",J);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(e,this);else this._shouldEmitClose=!0;else process.nextTick(e,this)}else{let K=this._server;this._removeListeners(),this._removeListeners=this._server=null,K.close(()=>{e(this)})}}shouldHandle(J){if(this.options.path){let K=J.url.indexOf("?");if((K!==-1?J.url.slice(0,K):J.url)!==this.options.path)return!1}return!0}handleUpgrade(J,K,X,Z){K.on("error",S5);let $=J.headers["sec-websocket-key"],Q=J.headers.upgrade,G=+J.headers["sec-websocket-version"];if(J.method!=="GET"){w(this,J,K,405,"Invalid HTTP method");return}if(Q===void 0||Q.toLowerCase()!=="websocket"){w(this,J,K,400,"Invalid Upgrade header");return}if($===void 0||!Z4.test($)){w(this,J,K,400,"Missing or invalid Sec-WebSocket-Key header");return}if(G!==13&&G!==8){w(this,J,K,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(J)){J0(K,400);return}let z=J.headers["sec-websocket-protocol"],I=new Set;if(z!==void 0)try{I=t1.parse(z)}catch(Y){w(this,J,K,400,"Invalid Sec-WebSocket-Protocol header");return}let V=J.headers["sec-websocket-extensions"],_={};if(this.options.perMessageDeflate&&V!==void 0){let Y=new g(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let F=y5.parse(V);if(F[g.extensionName])Y.accept(F[g.extensionName]),_[g.extensionName]=Y}catch(F){w(this,J,K,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let Y={origin:J.headers[`${G===8?"sec-websocket-origin":"origin"}`],secure:!!(J.socket.authorized||J.socket.encrypted),req:J};if(this.options.verifyClient.length===2){this.options.verifyClient(Y,(F,D,H,N)=>{if(!F)return J0(K,D||401,H,N);this.completeUpgrade(_,$,I,J,K,X,Z)});return}if(!this.options.verifyClient(Y))return J0(K,401)}this.completeUpgrade(_,$,I,J,K,X,Z)}completeUpgrade(J,K,X,Z,$,Q,G){if(!$.readable||!$.writable)return $.destroy();if($[X4])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return J0($,503);let I=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o1("sha1").update(K+K4).digest("base64")}`],V=new this.options.WebSocket(null,void 0,this.options);if(X.size){let _=this.options.handleProtocols?this.options.handleProtocols(X,Z):X.values().next().value;if(_)I.push(`Sec-WebSocket-Protocol: ${_}`),V._protocol=_}if(J[g.extensionName]){let _=J[g.extensionName].params,Y=y5.format({[g.extensionName]:[_]});I.push(`Sec-WebSocket-Extensions: ${Y}`),V._extensions=J}if(this.emit("headers",I,Z),$.write(I.concat(`\r
2
2
  `).join(`\r
3
3
  `)),$.removeListener("error",S5),V.setSocket($,Q,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients)this.clients.add(V),V.on("close",()=>{if(this.clients.delete(V),this._shouldEmitClose&&!this.clients.size)process.nextTick(e,this)});G(V,Z)}}g5.exports=v5;function $4(J,K){for(let X of Object.keys(K))J.on(X,K[X]);return function(){for(let Z of Object.keys(K))J.removeListener(Z,K[Z])}}function e(J){J._state=2,J.emit("close")}function S5(){this.destroy()}function J0(J,K,X,Z){X=X||N0.STATUS_CODES[K],Z={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(X),...Z},J.once("finish",J.destroy),J.end(`HTTP/1.1 ${K} ${N0.STATUS_CODES[K]}\r
4
4
  `+Object.keys(Z).map(($)=>`${$}: ${Z[$]}`).join(`\r