@bkm016/basalt 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (976) hide show
  1. package/chunk-03b5jh31.js +5 -0
  2. package/chunk-0x0459qp.js +2 -0
  3. package/chunk-16yz5ebn.js +2 -0
  4. package/chunk-1kdd7xry.js +2 -0
  5. package/chunk-225dyk1y.js +8 -0
  6. package/chunk-2fymxwe7.js +7 -0
  7. package/chunk-2m2sa0bp.js +2 -0
  8. package/chunk-35y6nf6k.js +12 -0
  9. package/chunk-3phf8eg6.js +3 -0
  10. package/chunk-3qxq264t.js +2 -0
  11. package/chunk-3r38vbt5.js +2 -0
  12. package/chunk-3s8rpc1w.js +3 -0
  13. package/chunk-3t8wz9w8.js +3 -0
  14. package/chunk-43qf44t8.js +3 -0
  15. package/chunk-49hsqsht.js +2 -0
  16. package/chunk-4fbj3k59.js +3 -0
  17. package/chunk-4fj91gt1.js +4 -0
  18. package/chunk-51a0843g.js +3 -0
  19. package/chunk-5h59tby8.js +470 -0
  20. package/chunk-5m51j40e.js +7 -0
  21. package/chunk-5mt8xxex.js +3 -0
  22. package/chunk-85sjfyjd.js +2 -0
  23. package/chunk-97ntcrm7.js +2 -0
  24. package/chunk-9qzyn98b.js +3 -0
  25. package/chunk-9t3v8c3m.js +2 -0
  26. package/chunk-9w1m9av8.js +11 -0
  27. package/chunk-9x28stv0.js +2 -0
  28. package/chunk-a3fpx924.js +3 -0
  29. package/chunk-ak95r8mq.js +3556 -0
  30. package/chunk-ak9rkrf3.js +5 -0
  31. package/chunk-bn1aaewd.js +59 -0
  32. package/chunk-c5ydt3vq.js +3 -0
  33. package/chunk-cjh5h31t.js +11 -0
  34. package/chunk-cr0tqn6j.js +3 -0
  35. package/chunk-e0ytnnwt.js +3 -0
  36. package/chunk-e8xywvv4.js +3 -0
  37. package/chunk-enmrpjpt.js +3 -0
  38. package/chunk-ewaskman.js +2 -0
  39. package/chunk-feyt85gg.js +2 -0
  40. package/chunk-ftg4b5pa.js +3 -0
  41. package/chunk-g6cc7ac1.js +3 -0
  42. package/chunk-gdx1j9c5.js +10 -0
  43. package/chunk-gs5aebwh.js +2 -0
  44. package/chunk-h00wjps7.js +4 -0
  45. package/chunk-h1fwdz4h.js +2 -0
  46. package/chunk-hhxtc9jn.js +2 -0
  47. package/chunk-hrn2ss1a.js +2 -0
  48. package/chunk-jhwb962k.js +15 -0
  49. package/chunk-jpwr1sd2.js +3 -0
  50. package/chunk-jy07y4pv.js +7 -0
  51. package/chunk-k9x1r69s.js +18 -0
  52. package/chunk-kb5h9rmb.js +2 -0
  53. package/chunk-kgnd32hn.js +4 -0
  54. package/chunk-kka12j10.js +3 -0
  55. package/chunk-kypdthjg.js +2 -0
  56. package/chunk-m9386732.js +16 -0
  57. package/chunk-np123myw.js +12 -0
  58. package/chunk-ntntwtxn.js +5 -0
  59. package/chunk-qn70tm91.js +20 -0
  60. package/chunk-qtgc74er.js +5 -0
  61. package/chunk-qz6ybxjg.js +39 -0
  62. package/chunk-r36b12zb.js +2 -0
  63. package/chunk-re8n2te5.js +2 -0
  64. package/chunk-rpbxbb92.js +10 -0
  65. package/chunk-rqrjzz73.js +2 -0
  66. package/chunk-scy1p7x2.js +9 -0
  67. package/chunk-sq5ppnr3.js +25 -0
  68. package/chunk-syhhzr1j.js +3 -0
  69. package/chunk-tmq8ktys.js +3 -0
  70. package/chunk-ttv805sb.js +390 -0
  71. package/chunk-v878x8zr.js +7 -0
  72. package/chunk-ve1b6vg6.js +2 -0
  73. package/chunk-vzrmdaba.js +2 -0
  74. package/chunk-w3n8wm44.js +2 -0
  75. package/chunk-w3skxmvx.js +3 -0
  76. package/chunk-wxzk086k.js +2 -0
  77. package/chunk-x1y4s01x.js +31 -0
  78. package/chunk-y8mf9tcj.js +25 -0
  79. package/chunk-z4g2q36h.js +3 -0
  80. package/chunk-zkjnt298.js +3 -0
  81. package/compiled.js +9 -9
  82. package/package.json +1 -1
  83. package/ui-test-worker.js +37 -37
  84. package/web/chunk-07dd0jed.js +78 -0
  85. package/web/chunk-07dd0jed.js.br +0 -0
  86. package/web/chunk-07dd0jed.js.gz +0 -0
  87. package/web/chunk-0hvyq55w.js +1 -0
  88. package/web/chunk-0hvyq55w.js.br +0 -0
  89. package/web/chunk-0hvyq55w.js.gz +0 -0
  90. package/web/chunk-0q5drhbk.js +1 -0
  91. package/web/chunk-0q5drhbk.js.br +0 -0
  92. package/web/chunk-0q5drhbk.js.gz +0 -0
  93. package/web/chunk-0rvx1z2b.js +1 -0
  94. package/web/chunk-0rvx1z2b.js.br +0 -0
  95. package/web/chunk-0rvx1z2b.js.gz +0 -0
  96. package/web/chunk-0w6ta3ps.js +1 -0
  97. package/web/chunk-0w6ta3ps.js.br +0 -0
  98. package/web/chunk-0w6ta3ps.js.gz +0 -0
  99. package/web/chunk-0wqmwnd8.js +2 -0
  100. package/web/chunk-0wqmwnd8.js.br +0 -0
  101. package/web/chunk-0wqmwnd8.js.gz +0 -0
  102. package/web/chunk-0z10aqp1.js +2 -0
  103. package/web/chunk-0z10aqp1.js.br +0 -0
  104. package/web/chunk-0z10aqp1.js.gz +0 -0
  105. package/web/chunk-12vcrj7y.js +1 -0
  106. package/web/chunk-12vcrj7y.js.br +0 -0
  107. package/web/chunk-12vcrj7y.js.gz +0 -0
  108. package/web/chunk-16b5anw4.js +3 -0
  109. package/web/chunk-16b5anw4.js.br +0 -0
  110. package/web/chunk-16b5anw4.js.gz +0 -0
  111. package/web/chunk-21d8pzcm.js +142 -0
  112. package/web/chunk-21d8pzcm.js.br +0 -0
  113. package/web/chunk-21d8pzcm.js.gz +0 -0
  114. package/web/chunk-2c4affp1.js +70 -0
  115. package/web/chunk-2c4affp1.js.br +0 -0
  116. package/web/chunk-2c4affp1.js.gz +0 -0
  117. package/web/chunk-2dykyq1n.js +2 -0
  118. package/web/chunk-2dykyq1n.js.br +0 -0
  119. package/web/chunk-2dykyq1n.js.gz +0 -0
  120. package/web/chunk-2h2w244w.js +370 -0
  121. package/web/chunk-2h2w244w.js.br +0 -0
  122. package/web/chunk-2h2w244w.js.gz +0 -0
  123. package/web/chunk-2hd51wb6.js +169 -0
  124. package/web/chunk-2hd51wb6.js.br +0 -0
  125. package/web/chunk-2hd51wb6.js.gz +0 -0
  126. package/web/chunk-2tc6krye.js +291 -0
  127. package/web/chunk-2tc6krye.js.br +0 -0
  128. package/web/chunk-2tc6krye.js.gz +0 -0
  129. package/web/chunk-2w27acew.js +38 -0
  130. package/web/chunk-2w27acew.js.br +0 -0
  131. package/web/chunk-2w27acew.js.gz +0 -0
  132. package/web/chunk-2w4rdnhj.js +1 -0
  133. package/web/chunk-2w4rdnhj.js.br +0 -0
  134. package/web/chunk-2w4rdnhj.js.gz +0 -0
  135. package/web/chunk-31vxes2p.js +200 -0
  136. package/web/chunk-31vxes2p.js.br +0 -0
  137. package/web/chunk-31vxes2p.js.gz +0 -0
  138. package/web/chunk-32qd2y5h.js +1 -0
  139. package/web/chunk-32qd2y5h.js.br +0 -0
  140. package/web/chunk-32qd2y5h.js.gz +0 -0
  141. package/web/chunk-366a11ec.js +1 -0
  142. package/web/chunk-366a11ec.js.br +0 -0
  143. package/web/chunk-366a11ec.js.gz +0 -0
  144. package/web/chunk-39kaz6fa.js +4 -0
  145. package/web/chunk-39kaz6fa.js.br +0 -0
  146. package/web/chunk-39kaz6fa.js.gz +0 -0
  147. package/web/chunk-3d3y4tep.js +214 -0
  148. package/web/chunk-3d3y4tep.js.br +0 -0
  149. package/web/chunk-3d3y4tep.js.gz +0 -0
  150. package/web/chunk-4makcmpw.js +1 -0
  151. package/web/chunk-4makcmpw.js.br +0 -0
  152. package/web/chunk-4makcmpw.js.gz +0 -0
  153. package/web/chunk-4mypk63p.js +2 -0
  154. package/web/chunk-4mypk63p.js.br +0 -0
  155. package/web/chunk-4mypk63p.js.gz +0 -0
  156. package/web/chunk-4zftsyq2.js +2 -0
  157. package/web/chunk-4zftsyq2.js.br +0 -0
  158. package/web/chunk-4zftsyq2.js.gz +0 -0
  159. package/web/chunk-50wrjr22.js +2 -0
  160. package/web/chunk-50wrjr22.js.br +0 -0
  161. package/web/chunk-50wrjr22.js.gz +0 -0
  162. package/web/chunk-52tt9qt4.js +2 -0
  163. package/web/chunk-52tt9qt4.js.br +0 -0
  164. package/web/chunk-52tt9qt4.js.gz +0 -0
  165. package/web/chunk-55kw8p9r.js +89 -0
  166. package/web/chunk-55kw8p9r.js.br +0 -0
  167. package/web/chunk-55kw8p9r.js.gz +0 -0
  168. package/web/chunk-56tqa12m.js +2 -0
  169. package/web/chunk-56tqa12m.js.br +0 -0
  170. package/web/chunk-56tqa12m.js.gz +0 -0
  171. package/web/chunk-595tqsv5.js +1 -0
  172. package/web/chunk-595tqsv5.js.br +0 -0
  173. package/web/chunk-595tqsv5.js.gz +0 -0
  174. package/web/chunk-5cp4n5ck.js +2 -0
  175. package/web/chunk-5cp4n5ck.js.br +0 -0
  176. package/web/chunk-5cp4n5ck.js.gz +0 -0
  177. package/web/chunk-5h193k2c.js +1 -0
  178. package/web/chunk-5h193k2c.js.br +0 -0
  179. package/web/chunk-5h193k2c.js.gz +0 -0
  180. package/web/chunk-5nbmnchg.js +16 -0
  181. package/web/chunk-5nbmnchg.js.br +0 -0
  182. package/web/chunk-5nbmnchg.js.gz +0 -0
  183. package/web/chunk-5vc1wkwb.js +2 -0
  184. package/web/chunk-5vc1wkwb.js.br +0 -0
  185. package/web/chunk-5vc1wkwb.js.gz +0 -0
  186. package/web/chunk-5wgdprjp.js +1 -0
  187. package/web/chunk-5wgdprjp.js.br +0 -0
  188. package/web/chunk-5wgdprjp.js.gz +0 -0
  189. package/web/chunk-60fbfw70.js +1 -0
  190. package/web/chunk-60fbfw70.js.br +0 -0
  191. package/web/chunk-60fbfw70.js.gz +0 -0
  192. package/web/chunk-62z94rt2.js +36 -0
  193. package/web/chunk-62z94rt2.js.br +0 -0
  194. package/web/chunk-62z94rt2.js.gz +0 -0
  195. package/web/chunk-67khfy00.css +1 -0
  196. package/web/chunk-67khfy00.css.br +0 -0
  197. package/web/chunk-67khfy00.css.gz +0 -0
  198. package/web/chunk-6bt2t0xt.js +8 -0
  199. package/web/chunk-6bt2t0xt.js.br +0 -0
  200. package/web/chunk-6bt2t0xt.js.gz +0 -0
  201. package/web/chunk-780qvh05.js +99 -0
  202. package/web/chunk-780qvh05.js.br +0 -0
  203. package/web/chunk-780qvh05.js.gz +0 -0
  204. package/web/chunk-78t5dqea.js +324 -0
  205. package/web/chunk-78t5dqea.js.br +0 -0
  206. package/web/chunk-78t5dqea.js.gz +0 -0
  207. package/web/chunk-7cf1kk45.js +1 -0
  208. package/web/chunk-7cf1kk45.js.br +2 -0
  209. package/web/chunk-7cf1kk45.js.gz +0 -0
  210. package/web/chunk-7edmyret.js +1 -0
  211. package/web/chunk-7edmyret.js.br +0 -0
  212. package/web/chunk-7edmyret.js.gz +0 -0
  213. package/web/chunk-7remkcff.js +2 -0
  214. package/web/chunk-7remkcff.js.br +0 -0
  215. package/web/chunk-7remkcff.js.gz +0 -0
  216. package/web/chunk-7s062q01.js +1 -0
  217. package/web/chunk-7s062q01.js.br +0 -0
  218. package/web/chunk-7s062q01.js.gz +0 -0
  219. package/web/chunk-82zwwy0b.js +1 -0
  220. package/web/chunk-82zwwy0b.js.br +0 -0
  221. package/web/chunk-82zwwy0b.js.gz +0 -0
  222. package/web/chunk-89crtpnw.js +1 -0
  223. package/web/chunk-89crtpnw.js.br +0 -0
  224. package/web/chunk-89crtpnw.js.gz +0 -0
  225. package/web/chunk-8c6h952g.js +106 -0
  226. package/web/chunk-8c6h952g.js.br +0 -0
  227. package/web/chunk-8c6h952g.js.gz +0 -0
  228. package/web/chunk-8wgev3hd.js +1 -0
  229. package/web/chunk-8wgev3hd.js.br +0 -0
  230. package/web/chunk-8wgev3hd.js.gz +0 -0
  231. package/web/chunk-9r7nbre7.js +2 -0
  232. package/web/chunk-9r7nbre7.js.br +0 -0
  233. package/web/chunk-9r7nbre7.js.gz +0 -0
  234. package/web/chunk-9vcbnf1m.js +1 -0
  235. package/web/chunk-9vcbnf1m.js.br +0 -0
  236. package/web/chunk-9vcbnf1m.js.gz +0 -0
  237. package/web/chunk-9y9nwaqj.js +1 -0
  238. package/web/chunk-9y9nwaqj.js.br +0 -0
  239. package/web/chunk-9y9nwaqj.js.gz +0 -0
  240. package/web/chunk-abahqsws.js +2 -0
  241. package/web/chunk-abahqsws.js.br +0 -0
  242. package/web/chunk-abahqsws.js.gz +0 -0
  243. package/web/chunk-acv6gk2b.js +2 -0
  244. package/web/chunk-acv6gk2b.js.br +0 -0
  245. package/web/chunk-acv6gk2b.js.gz +0 -0
  246. package/web/chunk-ajpzsx51.js +1 -0
  247. package/web/chunk-ajpzsx51.js.br +0 -0
  248. package/web/chunk-ajpzsx51.js.gz +0 -0
  249. package/web/chunk-b1b9txvk.js +1 -0
  250. package/web/chunk-b1b9txvk.js.br +0 -0
  251. package/web/chunk-b1b9txvk.js.gz +0 -0
  252. package/web/chunk-b83bzjcx.js +1134 -0
  253. package/web/chunk-b83bzjcx.js.br +0 -0
  254. package/web/chunk-b83bzjcx.js.gz +0 -0
  255. package/web/chunk-c1zhat04.js +1 -0
  256. package/web/chunk-c1zhat04.js.br +0 -0
  257. package/web/chunk-c1zhat04.js.gz +0 -0
  258. package/web/chunk-c37hhmtd.js +62 -0
  259. package/web/chunk-c37hhmtd.js.br +0 -0
  260. package/web/chunk-c37hhmtd.js.gz +0 -0
  261. package/web/chunk-c69t0ysj.js +1 -0
  262. package/web/chunk-c69t0ysj.js.br +0 -0
  263. package/web/chunk-c69t0ysj.js.gz +0 -0
  264. package/web/chunk-caz85hz4.js +1 -0
  265. package/web/chunk-caz85hz4.js.br +0 -0
  266. package/web/chunk-caz85hz4.js.gz +0 -0
  267. package/web/chunk-cbtpaf3e.js +7 -0
  268. package/web/chunk-cbtpaf3e.js.br +0 -0
  269. package/web/chunk-cbtpaf3e.js.gz +0 -0
  270. package/web/chunk-d1gga18f.js +217 -0
  271. package/web/chunk-d1gga18f.js.br +0 -0
  272. package/web/chunk-d1gga18f.js.gz +0 -0
  273. package/web/chunk-d4kjy2qn.js +1 -0
  274. package/web/chunk-d4kjy2qn.js.br +0 -0
  275. package/web/chunk-d4kjy2qn.js.gz +0 -0
  276. package/web/chunk-dbv8qpen.js +303 -0
  277. package/web/chunk-dbv8qpen.js.br +0 -0
  278. package/web/chunk-dbv8qpen.js.gz +0 -0
  279. package/web/chunk-e65y60v1.js +2 -0
  280. package/web/chunk-e65y60v1.js.br +0 -0
  281. package/web/chunk-e65y60v1.js.gz +0 -0
  282. package/web/chunk-e6r1sb5r.js +7 -0
  283. package/web/chunk-e6r1sb5r.js.br +0 -0
  284. package/web/chunk-e6r1sb5r.js.gz +0 -0
  285. package/web/chunk-ed8qqn45.js +2 -0
  286. package/web/chunk-ed8qqn45.js.br +0 -0
  287. package/web/chunk-ed8qqn45.js.gz +0 -0
  288. package/web/chunk-ef1h0tt7.js +2 -0
  289. package/web/chunk-ef1h0tt7.js.br +0 -0
  290. package/web/chunk-ef1h0tt7.js.gz +0 -0
  291. package/web/chunk-ep5qff8m.js +1 -0
  292. package/web/chunk-ep5qff8m.js.br +0 -0
  293. package/web/chunk-ep5qff8m.js.gz +0 -0
  294. package/web/chunk-ex66t805.js +120 -0
  295. package/web/chunk-ex66t805.js.br +0 -0
  296. package/web/chunk-ex66t805.js.gz +0 -0
  297. package/web/chunk-fb8qtyqg.js +1 -0
  298. package/web/chunk-fb8qtyqg.js.br +0 -0
  299. package/web/chunk-fb8qtyqg.js.gz +0 -0
  300. package/web/chunk-fbzhgaak.js +98 -0
  301. package/web/chunk-fbzhgaak.js.br +0 -0
  302. package/web/chunk-fbzhgaak.js.gz +0 -0
  303. package/web/chunk-ffwyfdg4.js +1 -0
  304. package/web/chunk-ffwyfdg4.js.br +0 -0
  305. package/web/chunk-ffwyfdg4.js.gz +0 -0
  306. package/web/chunk-fsz1msjr.js +2 -0
  307. package/web/chunk-fsz1msjr.js.br +0 -0
  308. package/web/chunk-fsz1msjr.js.gz +0 -0
  309. package/web/chunk-fztzcy7c.js +89 -0
  310. package/web/chunk-fztzcy7c.js.br +0 -0
  311. package/web/chunk-fztzcy7c.js.gz +0 -0
  312. package/web/chunk-g3vbtxgy.js +2 -0
  313. package/web/chunk-g3vbtxgy.js.br +0 -0
  314. package/web/chunk-g3vbtxgy.js.gz +0 -0
  315. package/web/chunk-g4st8a4e.js +1 -0
  316. package/web/chunk-g4st8a4e.js.br +0 -0
  317. package/web/chunk-g4st8a4e.js.gz +0 -0
  318. package/web/chunk-gs41j1vb.js +1 -0
  319. package/web/chunk-gs41j1vb.js.br +0 -0
  320. package/web/chunk-gs41j1vb.js.gz +0 -0
  321. package/web/chunk-gt4dzb4b.js +292 -0
  322. package/web/chunk-gt4dzb4b.js.br +0 -0
  323. package/web/chunk-gt4dzb4b.js.gz +0 -0
  324. package/web/chunk-h4g8j133.js +7 -0
  325. package/web/chunk-h4g8j133.js.br +0 -0
  326. package/web/chunk-h4g8j133.js.gz +0 -0
  327. package/web/chunk-hj067dfg.js +1 -0
  328. package/web/chunk-hj067dfg.js.br +2 -0
  329. package/web/chunk-hj067dfg.js.gz +0 -0
  330. package/web/chunk-ht3cek8b.js +1 -0
  331. package/web/chunk-ht3cek8b.js.br +2 -0
  332. package/web/chunk-ht3cek8b.js.gz +0 -0
  333. package/web/chunk-hw4f79k8.js +1 -0
  334. package/web/chunk-hw4f79k8.js.br +0 -0
  335. package/web/chunk-hw4f79k8.js.gz +0 -0
  336. package/web/chunk-j2y3wkxc.js +40 -0
  337. package/web/chunk-j2y3wkxc.js.br +0 -0
  338. package/web/chunk-j2y3wkxc.js.gz +0 -0
  339. package/web/chunk-j4942vkb.js +1 -0
  340. package/web/chunk-j4942vkb.js.br +0 -0
  341. package/web/chunk-j4942vkb.js.gz +0 -0
  342. package/web/chunk-j7sfcfxr.js +1 -0
  343. package/web/chunk-j7sfcfxr.js.br +0 -0
  344. package/web/chunk-j7sfcfxr.js.gz +0 -0
  345. package/web/chunk-jge5e8c4.js +1 -0
  346. package/web/chunk-jge5e8c4.js.br +0 -0
  347. package/web/chunk-jge5e8c4.js.gz +0 -0
  348. package/web/chunk-jyjgvcac.js +2 -0
  349. package/web/chunk-jyjgvcac.js.br +0 -0
  350. package/web/chunk-jyjgvcac.js.gz +0 -0
  351. package/web/chunk-k1d0y72z.js +2 -0
  352. package/web/chunk-k1d0y72z.js.br +0 -0
  353. package/web/chunk-k1d0y72z.js.gz +0 -0
  354. package/web/chunk-k9bzz441.js +1 -0
  355. package/web/chunk-k9bzz441.js.br +0 -0
  356. package/web/chunk-k9bzz441.js.gz +0 -0
  357. package/web/chunk-keway722.js +39 -0
  358. package/web/chunk-keway722.js.br +0 -0
  359. package/web/chunk-keway722.js.gz +0 -0
  360. package/web/chunk-kh0xyffx.js +1 -0
  361. package/web/chunk-kh0xyffx.js.br +0 -0
  362. package/web/chunk-kh0xyffx.js.gz +0 -0
  363. package/web/chunk-kr7shpnb.js +4 -0
  364. package/web/chunk-kr7shpnb.js.br +0 -0
  365. package/web/chunk-kr7shpnb.js.gz +0 -0
  366. package/web/chunk-ktvxgxsd.js +2 -0
  367. package/web/chunk-ktvxgxsd.js.br +0 -0
  368. package/web/chunk-ktvxgxsd.js.gz +0 -0
  369. package/web/chunk-kv5swske.js +1 -0
  370. package/web/chunk-kv5swske.js.br +0 -0
  371. package/web/chunk-kv5swske.js.gz +0 -0
  372. package/web/chunk-kx2k462h.js +1 -0
  373. package/web/chunk-kx2k462h.js.br +0 -0
  374. package/web/chunk-kx2k462h.js.gz +0 -0
  375. package/web/chunk-m5b7hny2.js +2 -0
  376. package/web/chunk-m5b7hny2.js.br +0 -0
  377. package/web/chunk-m5b7hny2.js.gz +0 -0
  378. package/web/chunk-m7kypzvp.js +2 -0
  379. package/web/chunk-m7kypzvp.js.br +0 -0
  380. package/web/chunk-m7kypzvp.js.gz +0 -0
  381. package/web/chunk-n00se8nk.js +2 -0
  382. package/web/chunk-n00se8nk.js.br +0 -0
  383. package/web/chunk-n00se8nk.js.gz +0 -0
  384. package/web/chunk-n419cees.js +1 -0
  385. package/web/chunk-n419cees.js.br +0 -0
  386. package/web/chunk-n419cees.js.gz +0 -0
  387. package/web/chunk-n45fgfyt.js +1 -0
  388. package/web/chunk-n45fgfyt.js.br +2 -0
  389. package/web/chunk-n45fgfyt.js.gz +0 -0
  390. package/web/chunk-n5v71fas.js +2 -0
  391. package/web/chunk-n5v71fas.js.br +0 -0
  392. package/web/chunk-n5v71fas.js.gz +0 -0
  393. package/web/chunk-ngdj0r7w.js +24 -0
  394. package/web/chunk-ngdj0r7w.js.br +0 -0
  395. package/web/chunk-ngdj0r7w.js.gz +0 -0
  396. package/web/chunk-p6ma361e.js +2 -0
  397. package/web/chunk-p6ma361e.js.br +0 -0
  398. package/web/chunk-p6ma361e.js.gz +0 -0
  399. package/web/chunk-p76f6cf4.js +2 -0
  400. package/web/chunk-p76f6cf4.js.br +0 -0
  401. package/web/chunk-p76f6cf4.js.gz +0 -0
  402. package/web/chunk-pvhz0gqy.js +332 -0
  403. package/web/chunk-pvhz0gqy.js.br +0 -0
  404. package/web/chunk-pvhz0gqy.js.gz +0 -0
  405. package/web/chunk-q96eky9v.js +1 -0
  406. package/web/chunk-q96eky9v.js.br +0 -0
  407. package/web/chunk-q96eky9v.js.gz +0 -0
  408. package/web/chunk-qcgs1mft.js +2 -0
  409. package/web/chunk-qcgs1mft.js.br +0 -0
  410. package/web/chunk-qcgs1mft.js.gz +0 -0
  411. package/web/chunk-qgtqwmkb.js +1 -0
  412. package/web/chunk-qgtqwmkb.js.br +2 -0
  413. package/web/chunk-qgtqwmkb.js.gz +0 -0
  414. package/web/chunk-qh24q7c0.js +2 -0
  415. package/web/chunk-qh24q7c0.js.br +0 -0
  416. package/web/chunk-qh24q7c0.js.gz +0 -0
  417. package/web/chunk-qygjhm63.js +1 -0
  418. package/web/chunk-qygjhm63.js.br +0 -0
  419. package/web/chunk-qygjhm63.js.gz +0 -0
  420. package/web/chunk-r1xksxab.js +1 -0
  421. package/web/chunk-r1xksxab.js.br +0 -0
  422. package/web/chunk-r1xksxab.js.gz +0 -0
  423. package/web/chunk-rfsg5rke.js +1 -0
  424. package/web/chunk-rfsg5rke.js.br +2 -0
  425. package/web/chunk-rfsg5rke.js.gz +0 -0
  426. package/web/chunk-rsc5k5he.js +139 -0
  427. package/web/chunk-rsc5k5he.js.br +0 -0
  428. package/web/chunk-rsc5k5he.js.gz +0 -0
  429. package/web/chunk-s7a2f62f.js +140 -0
  430. package/web/chunk-s7a2f62f.js.br +0 -0
  431. package/web/chunk-s7a2f62f.js.gz +0 -0
  432. package/web/chunk-s7h50avx.js +2 -0
  433. package/web/chunk-s7h50avx.js.br +0 -0
  434. package/web/chunk-s7h50avx.js.gz +0 -0
  435. package/web/chunk-sac6fn9n.js +24 -0
  436. package/web/chunk-sac6fn9n.js.br +0 -0
  437. package/web/chunk-sac6fn9n.js.gz +0 -0
  438. package/web/chunk-sk47kk5j.js +1 -0
  439. package/web/chunk-sk47kk5j.js.br +0 -0
  440. package/web/chunk-sk47kk5j.js.gz +0 -0
  441. package/web/chunk-t0xjx21h.js +30 -0
  442. package/web/chunk-t0xjx21h.js.br +0 -0
  443. package/web/chunk-t0xjx21h.js.gz +0 -0
  444. package/web/chunk-t9heac9a.js +2 -0
  445. package/web/chunk-t9heac9a.js.br +0 -0
  446. package/web/chunk-t9heac9a.js.gz +0 -0
  447. package/web/chunk-v7ck87jf.js +1 -0
  448. package/web/chunk-v7ck87jf.js.br +0 -0
  449. package/web/chunk-v7ck87jf.js.gz +0 -0
  450. package/web/chunk-vvk9nche.js +21 -0
  451. package/web/chunk-vvk9nche.js.br +0 -0
  452. package/web/chunk-vvk9nche.js.gz +0 -0
  453. package/web/chunk-vxtfen72.js +1 -0
  454. package/web/chunk-vxtfen72.js.br +0 -0
  455. package/web/chunk-vxtfen72.js.gz +0 -0
  456. package/web/chunk-w5c2r59n.js +41 -0
  457. package/web/chunk-w5c2r59n.js.br +0 -0
  458. package/web/chunk-w5c2r59n.js.gz +0 -0
  459. package/web/chunk-wh0vt2vd.js +34 -0
  460. package/web/chunk-wh0vt2vd.js.br +0 -0
  461. package/web/chunk-wh0vt2vd.js.gz +0 -0
  462. package/web/chunk-wvvrdqgb.js +1 -0
  463. package/web/chunk-wvvrdqgb.js.br +2 -0
  464. package/web/chunk-wvvrdqgb.js.gz +0 -0
  465. package/web/chunk-xe7fj72r.js +1 -0
  466. package/web/chunk-xe7fj72r.js.br +0 -0
  467. package/web/chunk-xe7fj72r.js.gz +0 -0
  468. package/web/chunk-xp9tdb5t.js +1 -0
  469. package/web/chunk-xp9tdb5t.js.br +2 -0
  470. package/web/chunk-xp9tdb5t.js.gz +0 -0
  471. package/web/chunk-y10hsdq4.js +1 -0
  472. package/web/chunk-y10hsdq4.js.br +0 -0
  473. package/web/chunk-y10hsdq4.js.gz +0 -0
  474. package/web/chunk-yarsp7h7.js +12 -0
  475. package/web/chunk-yarsp7h7.js.br +0 -0
  476. package/web/chunk-yarsp7h7.js.gz +0 -0
  477. package/web/chunk-yw5wyz1q.js +55 -0
  478. package/web/chunk-yw5wyz1q.js.br +0 -0
  479. package/web/chunk-yw5wyz1q.js.gz +0 -0
  480. package/web/chunk-z3ea4vhk.js +1 -0
  481. package/web/chunk-z3ea4vhk.js.br +0 -0
  482. package/web/chunk-z3ea4vhk.js.gz +0 -0
  483. package/web/chunk-z7adzvfz.js +1 -0
  484. package/web/chunk-z7adzvfz.js.br +0 -0
  485. package/web/chunk-z7adzvfz.js.gz +0 -0
  486. package/web/chunk-zb01zmms.js +84 -0
  487. package/web/chunk-zb01zmms.js.br +0 -0
  488. package/web/chunk-zb01zmms.js.gz +0 -0
  489. package/web/index.html +3 -1
  490. package/web/index.html.br +0 -0
  491. package/web/index.html.gz +0 -0
  492. package/worker.js +1 -1
  493. package/chunk-13pbt8mn.js +0 -2
  494. package/chunk-14085qqt.js +0 -8
  495. package/chunk-2dph65ye.js +0 -3
  496. package/chunk-2v8anxgd.js +0 -9
  497. package/chunk-37f4ks5f.js +0 -3
  498. package/chunk-3q1hxwxb.js +0 -5
  499. package/chunk-3qs33s9g.js +0 -2
  500. package/chunk-53m94h0b.js +0 -7
  501. package/chunk-5jy2cnyr.js +0 -18
  502. package/chunk-5wfyn3k0.js +0 -3
  503. package/chunk-69v706tc.js +0 -5
  504. package/chunk-79h4rzza.js +0 -2
  505. package/chunk-7xfde6se.js +0 -3
  506. package/chunk-8bf4g2d7.js +0 -3
  507. package/chunk-adq8c7vt.js +0 -25
  508. package/chunk-ahpg469e.js +0 -3
  509. package/chunk-ary9gky8.js +0 -7
  510. package/chunk-becsymjn.js +0 -2
  511. package/chunk-beqps81c.js +0 -4
  512. package/chunk-bnvynyww.js +0 -3
  513. package/chunk-c785tr0e.js +0 -4078
  514. package/chunk-cc19pbgm.js +0 -12
  515. package/chunk-d6g5m56z.js +0 -2
  516. package/chunk-etkktxdc.js +0 -2
  517. package/chunk-etxsj2ey.js +0 -10
  518. package/chunk-f2ajxymw.js +0 -2
  519. package/chunk-f2bcfa6z.js +0 -7
  520. package/chunk-f47qdrkp.js +0 -2
  521. package/chunk-f5yg6yd0.js +0 -3
  522. package/chunk-fjk9ztjc.js +0 -11
  523. package/chunk-g99n5ywc.js +0 -3
  524. package/chunk-grwavjp7.js +0 -2
  525. package/chunk-gsek3gpd.js +0 -3
  526. package/chunk-gv9hbv9j.js +0 -2
  527. package/chunk-h045t6f1.js +0 -2
  528. package/chunk-h4g1tzk6.js +0 -11
  529. package/chunk-had2k7b9.js +0 -20
  530. package/chunk-hbm45044.js +0 -25
  531. package/chunk-hd2hars5.js +0 -3
  532. package/chunk-hfh230tm.js +0 -2
  533. package/chunk-hkx7d1j9.js +0 -7
  534. package/chunk-jbk2tmza.js +0 -5
  535. package/chunk-jv9sy0np.js +0 -2
  536. package/chunk-kdc8tq70.js +0 -2
  537. package/chunk-m1nevdw6.js +0 -3
  538. package/chunk-m6yrpt1f.js +0 -5
  539. package/chunk-mrchbvsy.js +0 -4
  540. package/chunk-n9x6akk3.js +0 -2
  541. package/chunk-ne94brn4.js +0 -3
  542. package/chunk-nv1jg79d.js +0 -2
  543. package/chunk-pvdt969t.js +0 -59
  544. package/chunk-q22dnah8.js +0 -3
  545. package/chunk-q2zayphb.js +0 -10
  546. package/chunk-q4h6djtp.js +0 -2
  547. package/chunk-qa8mne61.js +0 -2
  548. package/chunk-r9z9m75h.js +0 -16
  549. package/chunk-rmyzxqkd.js +0 -467
  550. package/chunk-rq647zmf.js +0 -2
  551. package/chunk-sj4jvm9p.js +0 -2
  552. package/chunk-sq0ra5m8.js +0 -4
  553. package/chunk-sxg03n4v.js +0 -2
  554. package/chunk-t0m1wjrn.js +0 -3
  555. package/chunk-td52edcm.js +0 -31
  556. package/chunk-tdnwaaw4.js +0 -12
  557. package/chunk-teky87xx.js +0 -3
  558. package/chunk-v1avwm7q.js +0 -3
  559. package/chunk-wcmk8ee3.js +0 -3
  560. package/chunk-wf9r0frb.js +0 -3
  561. package/chunk-wx697mre.js +0 -2
  562. package/chunk-wzz64ygm.js +0 -2
  563. package/chunk-xb9mwt5a.js +0 -2
  564. package/chunk-xbkbaa84.js +0 -2
  565. package/chunk-xjy31n64.js +0 -3
  566. package/chunk-xzn34n38.js +0 -389
  567. package/chunk-yprp5s5v.js +0 -3
  568. package/chunk-yyhdabhq.js +0 -15
  569. package/chunk-z2jp61ze.js +0 -39
  570. package/chunk-zt5szcek.js +0 -3
  571. package/chunk-zxb6cg3m.js +0 -2
  572. package/web/chunk-0ays2hhj.js +0 -41
  573. package/web/chunk-0ays2hhj.js.br +0 -0
  574. package/web/chunk-0ays2hhj.js.gz +0 -0
  575. package/web/chunk-0na4c1bp.js +0 -139
  576. package/web/chunk-0na4c1bp.js.br +0 -0
  577. package/web/chunk-0na4c1bp.js.gz +0 -0
  578. package/web/chunk-0y0p0ct0.js +0 -1
  579. package/web/chunk-0y0p0ct0.js.br +0 -0
  580. package/web/chunk-0y0p0ct0.js.gz +0 -0
  581. package/web/chunk-191v8amv.js +0 -1
  582. package/web/chunk-191v8amv.js.br +0 -0
  583. package/web/chunk-191v8amv.js.gz +0 -0
  584. package/web/chunk-1c6rhsft.js +0 -200
  585. package/web/chunk-1c6rhsft.js.br +0 -0
  586. package/web/chunk-1c6rhsft.js.gz +0 -0
  587. package/web/chunk-1mwkrh5f.js +0 -370
  588. package/web/chunk-1mwkrh5f.js.br +0 -0
  589. package/web/chunk-1mwkrh5f.js.gz +0 -0
  590. package/web/chunk-1q4r17he.js +0 -2
  591. package/web/chunk-1q4r17he.js.br +0 -0
  592. package/web/chunk-1q4r17he.js.gz +0 -0
  593. package/web/chunk-1sm3c8an.js +0 -8
  594. package/web/chunk-1sm3c8an.js.br +0 -0
  595. package/web/chunk-1sm3c8an.js.gz +0 -0
  596. package/web/chunk-1vmjpvy5.js +0 -1
  597. package/web/chunk-1vmjpvy5.js.br +0 -0
  598. package/web/chunk-1vmjpvy5.js.gz +0 -0
  599. package/web/chunk-1x4z5w5e.js +0 -1
  600. package/web/chunk-1x4z5w5e.js.br +0 -2
  601. package/web/chunk-1x4z5w5e.js.gz +0 -0
  602. package/web/chunk-22ncha3b.js +0 -142
  603. package/web/chunk-22ncha3b.js.br +0 -0
  604. package/web/chunk-22ncha3b.js.gz +0 -0
  605. package/web/chunk-239rqgmj.js +0 -24
  606. package/web/chunk-239rqgmj.js.br +0 -0
  607. package/web/chunk-239rqgmj.js.gz +0 -0
  608. package/web/chunk-2c6zessc.js +0 -2
  609. package/web/chunk-2c6zessc.js.br +0 -0
  610. package/web/chunk-2c6zessc.js.gz +0 -0
  611. package/web/chunk-2m7b1wmp.js +0 -1
  612. package/web/chunk-2m7b1wmp.js.br +0 -0
  613. package/web/chunk-2m7b1wmp.js.gz +0 -0
  614. package/web/chunk-2qncw4c0.js +0 -2
  615. package/web/chunk-2qncw4c0.js.br +0 -0
  616. package/web/chunk-2qncw4c0.js.gz +0 -0
  617. package/web/chunk-2r497559.js +0 -2
  618. package/web/chunk-2r497559.js.br +0 -0
  619. package/web/chunk-2r497559.js.gz +0 -0
  620. package/web/chunk-2t43cra8.js +0 -1
  621. package/web/chunk-2t43cra8.js.br +0 -0
  622. package/web/chunk-2t43cra8.js.gz +0 -0
  623. package/web/chunk-2v379e1v.js +0 -1
  624. package/web/chunk-2v379e1v.js.br +0 -2
  625. package/web/chunk-2v379e1v.js.gz +0 -0
  626. package/web/chunk-2ywd0vz2.js +0 -1
  627. package/web/chunk-2ywd0vz2.js.br +0 -0
  628. package/web/chunk-2ywd0vz2.js.gz +0 -0
  629. package/web/chunk-3626tdgf.js +0 -1
  630. package/web/chunk-3626tdgf.js.br +0 -0
  631. package/web/chunk-3626tdgf.js.gz +0 -0
  632. package/web/chunk-3fq54zbf.js +0 -2
  633. package/web/chunk-3fq54zbf.js.br +0 -0
  634. package/web/chunk-3fq54zbf.js.gz +0 -0
  635. package/web/chunk-3jptvn0z.js +0 -1
  636. package/web/chunk-3jptvn0z.js.br +0 -0
  637. package/web/chunk-3jptvn0z.js.gz +0 -0
  638. package/web/chunk-3k31m9yk.js +0 -7
  639. package/web/chunk-3k31m9yk.js.br +0 -0
  640. package/web/chunk-3k31m9yk.js.gz +0 -0
  641. package/web/chunk-3wrebqcz.js +0 -1
  642. package/web/chunk-3wrebqcz.js.br +0 -0
  643. package/web/chunk-3wrebqcz.js.gz +0 -0
  644. package/web/chunk-42z866aa.js +0 -1
  645. package/web/chunk-42z866aa.js.br +0 -0
  646. package/web/chunk-42z866aa.js.gz +0 -0
  647. package/web/chunk-46r5s1ag.js +0 -1
  648. package/web/chunk-46r5s1ag.js.br +0 -2
  649. package/web/chunk-46r5s1ag.js.gz +0 -0
  650. package/web/chunk-4h8kxmac.js +0 -1
  651. package/web/chunk-4h8kxmac.js.br +0 -2
  652. package/web/chunk-4h8kxmac.js.gz +0 -0
  653. package/web/chunk-4hmp8qcv.js +0 -1
  654. package/web/chunk-4hmp8qcv.js.br +0 -0
  655. package/web/chunk-4hmp8qcv.js.gz +0 -0
  656. package/web/chunk-4ryyn6k5.js +0 -1
  657. package/web/chunk-4ryyn6k5.js.br +0 -0
  658. package/web/chunk-4ryyn6k5.js.gz +0 -0
  659. package/web/chunk-4zp7b44y.js +0 -78
  660. package/web/chunk-4zp7b44y.js.br +0 -0
  661. package/web/chunk-4zp7b44y.js.gz +0 -0
  662. package/web/chunk-52n1enqe.js +0 -1
  663. package/web/chunk-52n1enqe.js.br +0 -0
  664. package/web/chunk-52n1enqe.js.gz +0 -0
  665. package/web/chunk-5m5jve5q.js +0 -2
  666. package/web/chunk-5m5jve5q.js.br +0 -0
  667. package/web/chunk-5m5jve5q.js.gz +0 -0
  668. package/web/chunk-62ssrwet.js +0 -1
  669. package/web/chunk-62ssrwet.js.br +0 -0
  670. package/web/chunk-62ssrwet.js.gz +0 -0
  671. package/web/chunk-6e14fdx8.js +0 -1
  672. package/web/chunk-6e14fdx8.js.br +0 -0
  673. package/web/chunk-6e14fdx8.js.gz +0 -0
  674. package/web/chunk-6kckk3j9.js +0 -1
  675. package/web/chunk-6kckk3j9.js.br +0 -2
  676. package/web/chunk-6kckk3j9.js.gz +0 -0
  677. package/web/chunk-6vdh5wx5.js +0 -1
  678. package/web/chunk-6vdh5wx5.js.br +0 -0
  679. package/web/chunk-6vdh5wx5.js.gz +0 -0
  680. package/web/chunk-6wyrfrh1.js +0 -1
  681. package/web/chunk-6wyrfrh1.js.br +0 -0
  682. package/web/chunk-6wyrfrh1.js.gz +0 -0
  683. package/web/chunk-77pcpdb5.js +0 -303
  684. package/web/chunk-77pcpdb5.js.br +0 -0
  685. package/web/chunk-77pcpdb5.js.gz +0 -0
  686. package/web/chunk-7dq3x88k.js +0 -120
  687. package/web/chunk-7dq3x88k.js.br +0 -0
  688. package/web/chunk-7dq3x88k.js.gz +0 -0
  689. package/web/chunk-7ebwmmjn.js +0 -34
  690. package/web/chunk-7ebwmmjn.js.br +0 -0
  691. package/web/chunk-7ebwmmjn.js.gz +0 -0
  692. package/web/chunk-7jra5kj0.js +0 -1
  693. package/web/chunk-7jra5kj0.js.br +0 -0
  694. package/web/chunk-7jra5kj0.js.gz +0 -0
  695. package/web/chunk-8dgtprxa.js +0 -2
  696. package/web/chunk-8dgtprxa.js.br +0 -0
  697. package/web/chunk-8dgtprxa.js.gz +0 -0
  698. package/web/chunk-8mrw5mgn.js +0 -1
  699. package/web/chunk-8mrw5mgn.js.br +0 -0
  700. package/web/chunk-8mrw5mgn.js.gz +0 -0
  701. package/web/chunk-8n1cyb8k.js +0 -99
  702. package/web/chunk-8n1cyb8k.js.br +0 -0
  703. package/web/chunk-8n1cyb8k.js.gz +0 -0
  704. package/web/chunk-8nxjthxc.js +0 -1
  705. package/web/chunk-8nxjthxc.js.br +0 -0
  706. package/web/chunk-8nxjthxc.js.gz +0 -0
  707. package/web/chunk-8ssjqdky.js +0 -1
  708. package/web/chunk-8ssjqdky.js.br +0 -2
  709. package/web/chunk-8ssjqdky.js.gz +0 -0
  710. package/web/chunk-90k6xrsa.js +0 -2
  711. package/web/chunk-90k6xrsa.js.br +0 -0
  712. package/web/chunk-90k6xrsa.js.gz +0 -0
  713. package/web/chunk-926v5sg8.js +0 -24
  714. package/web/chunk-926v5sg8.js.br +0 -0
  715. package/web/chunk-926v5sg8.js.gz +0 -0
  716. package/web/chunk-9kvr6dkh.js +0 -106
  717. package/web/chunk-9kvr6dkh.js.br +0 -0
  718. package/web/chunk-9kvr6dkh.js.gz +0 -0
  719. package/web/chunk-9s6zj1sh.js +0 -217
  720. package/web/chunk-9s6zj1sh.js.br +0 -0
  721. package/web/chunk-9s6zj1sh.js.gz +0 -0
  722. package/web/chunk-9vf3zy3d.js +0 -2
  723. package/web/chunk-9vf3zy3d.js.br +0 -0
  724. package/web/chunk-9vf3zy3d.js.gz +0 -0
  725. package/web/chunk-acpyx69f.js +0 -1
  726. package/web/chunk-acpyx69f.js.br +0 -0
  727. package/web/chunk-acpyx69f.js.gz +0 -0
  728. package/web/chunk-amch1hp8.js +0 -1
  729. package/web/chunk-amch1hp8.js.br +0 -0
  730. package/web/chunk-amch1hp8.js.gz +0 -0
  731. package/web/chunk-azjpkz26.js +0 -38
  732. package/web/chunk-azjpkz26.js.br +0 -0
  733. package/web/chunk-azjpkz26.js.gz +0 -0
  734. package/web/chunk-b2zmxzm0.js +0 -2
  735. package/web/chunk-b2zmxzm0.js.br +0 -0
  736. package/web/chunk-b2zmxzm0.js.gz +0 -0
  737. package/web/chunk-bgn0bkad.js +0 -98
  738. package/web/chunk-bgn0bkad.js.br +0 -0
  739. package/web/chunk-bgn0bkad.js.gz +0 -0
  740. package/web/chunk-bka3pbzn.js +0 -4
  741. package/web/chunk-bka3pbzn.js.br +0 -0
  742. package/web/chunk-bka3pbzn.js.gz +0 -0
  743. package/web/chunk-ck23t8as.js +0 -2
  744. package/web/chunk-ck23t8as.js.br +0 -0
  745. package/web/chunk-ck23t8as.js.gz +0 -0
  746. package/web/chunk-cp5ec63g.js +0 -30
  747. package/web/chunk-cp5ec63g.js.br +0 -0
  748. package/web/chunk-cp5ec63g.js.gz +0 -0
  749. package/web/chunk-cw21gjwg.js +0 -39
  750. package/web/chunk-cw21gjwg.js.br +0 -0
  751. package/web/chunk-cw21gjwg.js.gz +0 -0
  752. package/web/chunk-cxcpk0qt.js +0 -2
  753. package/web/chunk-cxcpk0qt.js.br +0 -0
  754. package/web/chunk-cxcpk0qt.js.gz +0 -0
  755. package/web/chunk-d3s30py8.js +0 -1
  756. package/web/chunk-d3s30py8.js.br +0 -0
  757. package/web/chunk-d3s30py8.js.gz +0 -0
  758. package/web/chunk-dj4jc1ec.js +0 -1
  759. package/web/chunk-dj4jc1ec.js.br +0 -0
  760. package/web/chunk-dj4jc1ec.js.gz +0 -0
  761. package/web/chunk-drr7mqg2.js +0 -1
  762. package/web/chunk-drr7mqg2.js.br +0 -0
  763. package/web/chunk-drr7mqg2.js.gz +0 -0
  764. package/web/chunk-ef2xw0kb.js +0 -1
  765. package/web/chunk-ef2xw0kb.js.br +0 -0
  766. package/web/chunk-ef2xw0kb.js.gz +0 -0
  767. package/web/chunk-emxa4wv3.js +0 -2
  768. package/web/chunk-emxa4wv3.js.br +0 -0
  769. package/web/chunk-emxa4wv3.js.gz +0 -0
  770. package/web/chunk-fek0yrg5.js +0 -2
  771. package/web/chunk-fek0yrg5.js.br +0 -0
  772. package/web/chunk-fek0yrg5.js.gz +0 -0
  773. package/web/chunk-fgm2r34b.js +0 -36
  774. package/web/chunk-fgm2r34b.js.br +0 -0
  775. package/web/chunk-fgm2r34b.js.gz +0 -0
  776. package/web/chunk-fpqs301q.js +0 -2
  777. package/web/chunk-fpqs301q.js.br +0 -0
  778. package/web/chunk-fpqs301q.js.gz +0 -0
  779. package/web/chunk-fv6se8xf.js +0 -1
  780. package/web/chunk-fv6se8xf.js.br +0 -2
  781. package/web/chunk-fv6se8xf.js.gz +0 -0
  782. package/web/chunk-g0nagyx2.js +0 -1
  783. package/web/chunk-g0nagyx2.js.br +0 -0
  784. package/web/chunk-g0nagyx2.js.gz +0 -0
  785. package/web/chunk-g5fp9ep9.js +0 -1
  786. package/web/chunk-g5fp9ep9.js.br +0 -0
  787. package/web/chunk-g5fp9ep9.js.gz +0 -0
  788. package/web/chunk-gh1fmd3j.js +0 -3
  789. package/web/chunk-gh1fmd3j.js.br +0 -0
  790. package/web/chunk-gh1fmd3j.js.gz +0 -0
  791. package/web/chunk-gq5825re.js +0 -70
  792. package/web/chunk-gq5825re.js.br +0 -0
  793. package/web/chunk-gq5825re.js.gz +0 -0
  794. package/web/chunk-gy57dyny.js +0 -1
  795. package/web/chunk-gy57dyny.js.br +0 -0
  796. package/web/chunk-gy57dyny.js.gz +0 -0
  797. package/web/chunk-j6jjk46a.js +0 -2
  798. package/web/chunk-j6jjk46a.js.br +0 -0
  799. package/web/chunk-j6jjk46a.js.gz +0 -0
  800. package/web/chunk-j7p6xhe2.js +0 -1
  801. package/web/chunk-j7p6xhe2.js.br +0 -0
  802. package/web/chunk-j7p6xhe2.js.gz +0 -0
  803. package/web/chunk-jb8xfsc6.js +0 -2
  804. package/web/chunk-jb8xfsc6.js.br +0 -0
  805. package/web/chunk-jb8xfsc6.js.gz +0 -0
  806. package/web/chunk-jqyxnnn0.js +0 -1
  807. package/web/chunk-jqyxnnn0.js.br +0 -0
  808. package/web/chunk-jqyxnnn0.js.gz +0 -0
  809. package/web/chunk-jtwct1bx.js +0 -1133
  810. package/web/chunk-jtwct1bx.js.br +0 -0
  811. package/web/chunk-jtwct1bx.js.gz +0 -0
  812. package/web/chunk-k22kq2t7.js +0 -12
  813. package/web/chunk-k22kq2t7.js.br +0 -0
  814. package/web/chunk-k22kq2t7.js.gz +0 -0
  815. package/web/chunk-k2ry7k7s.js +0 -1
  816. package/web/chunk-k2ry7k7s.js.br +0 -0
  817. package/web/chunk-k2ry7k7s.js.gz +0 -0
  818. package/web/chunk-k3aa37pw.js +0 -2
  819. package/web/chunk-k3aa37pw.js.br +0 -0
  820. package/web/chunk-k3aa37pw.js.gz +0 -0
  821. package/web/chunk-kdbrrecz.js +0 -332
  822. package/web/chunk-kdbrrecz.js.br +0 -0
  823. package/web/chunk-kdbrrecz.js.gz +0 -0
  824. package/web/chunk-kes2tf1q.js +0 -2
  825. package/web/chunk-kes2tf1q.js.br +0 -3
  826. package/web/chunk-kes2tf1q.js.gz +0 -0
  827. package/web/chunk-ksrzt6c5.js +0 -1
  828. package/web/chunk-ksrzt6c5.js.br +0 -0
  829. package/web/chunk-ksrzt6c5.js.gz +0 -0
  830. package/web/chunk-m2ethr1n.js +0 -84
  831. package/web/chunk-m2ethr1n.js.br +0 -0
  832. package/web/chunk-m2ethr1n.js.gz +0 -0
  833. package/web/chunk-m7tcm69z.js +0 -292
  834. package/web/chunk-m7tcm69z.js.br +0 -0
  835. package/web/chunk-m7tcm69z.js.gz +0 -0
  836. package/web/chunk-m8bz4e6n.js +0 -2
  837. package/web/chunk-m8bz4e6n.js.br +0 -0
  838. package/web/chunk-m8bz4e6n.js.gz +0 -0
  839. package/web/chunk-mva687p4.js +0 -1
  840. package/web/chunk-mva687p4.js.br +0 -0
  841. package/web/chunk-mva687p4.js.gz +0 -0
  842. package/web/chunk-n8fe9j5b.js +0 -214
  843. package/web/chunk-n8fe9j5b.js.br +0 -0
  844. package/web/chunk-n8fe9j5b.js.gz +0 -0
  845. package/web/chunk-nckx4yfd.js +0 -62
  846. package/web/chunk-nckx4yfd.js.br +0 -0
  847. package/web/chunk-nckx4yfd.js.gz +0 -0
  848. package/web/chunk-ncynjha5.js +0 -2
  849. package/web/chunk-ncynjha5.js.br +0 -0
  850. package/web/chunk-ncynjha5.js.gz +0 -0
  851. package/web/chunk-nq7dp0wj.js +0 -291
  852. package/web/chunk-nq7dp0wj.js.br +0 -0
  853. package/web/chunk-nq7dp0wj.js.gz +0 -0
  854. package/web/chunk-pagep4k3.js +0 -1
  855. package/web/chunk-pagep4k3.js.br +0 -0
  856. package/web/chunk-pagep4k3.js.gz +0 -0
  857. package/web/chunk-pbrk7zdw.js +0 -1
  858. package/web/chunk-pbrk7zdw.js.br +0 -0
  859. package/web/chunk-pbrk7zdw.js.gz +0 -0
  860. package/web/chunk-q0cs1bhg.js +0 -2
  861. package/web/chunk-q0cs1bhg.js.br +0 -0
  862. package/web/chunk-q0cs1bhg.js.gz +0 -0
  863. package/web/chunk-q749pgke.js +0 -1
  864. package/web/chunk-q749pgke.js.br +0 -0
  865. package/web/chunk-q749pgke.js.gz +0 -0
  866. package/web/chunk-q7yry602.js +0 -1
  867. package/web/chunk-q7yry602.js.br +0 -0
  868. package/web/chunk-q7yry602.js.gz +0 -0
  869. package/web/chunk-qkeaa97s.js +0 -1
  870. package/web/chunk-qkeaa97s.js.br +0 -0
  871. package/web/chunk-qkeaa97s.js.gz +0 -0
  872. package/web/chunk-qx7afyba.js +0 -1
  873. package/web/chunk-qx7afyba.js.br +0 -0
  874. package/web/chunk-qx7afyba.js.gz +0 -0
  875. package/web/chunk-qxvqkkmw.js +0 -1
  876. package/web/chunk-qxvqkkmw.js.br +0 -0
  877. package/web/chunk-qxvqkkmw.js.gz +0 -0
  878. package/web/chunk-qych3sbs.js +0 -1
  879. package/web/chunk-qych3sbs.js.br +0 -0
  880. package/web/chunk-qych3sbs.js.gz +0 -0
  881. package/web/chunk-rcaqmcm4.js +0 -40
  882. package/web/chunk-rcaqmcm4.js.br +0 -0
  883. package/web/chunk-rcaqmcm4.js.gz +0 -0
  884. package/web/chunk-s5kbbker.js +0 -89
  885. package/web/chunk-s5kbbker.js.br +0 -0
  886. package/web/chunk-s5kbbker.js.gz +0 -0
  887. package/web/chunk-sdq69ysp.js +0 -2
  888. package/web/chunk-sdq69ysp.js.br +0 -0
  889. package/web/chunk-sdq69ysp.js.gz +0 -0
  890. package/web/chunk-sgbc835w.js +0 -2
  891. package/web/chunk-sgbc835w.js.br +0 -0
  892. package/web/chunk-sgbc835w.js.gz +0 -0
  893. package/web/chunk-sk0cmsbx.js +0 -7
  894. package/web/chunk-sk0cmsbx.js.br +0 -0
  895. package/web/chunk-sk0cmsbx.js.gz +0 -0
  896. package/web/chunk-smmcx1z4.js +0 -324
  897. package/web/chunk-smmcx1z4.js.br +0 -0
  898. package/web/chunk-smmcx1z4.js.gz +0 -0
  899. package/web/chunk-sq7ntjp0.js +0 -16
  900. package/web/chunk-sq7ntjp0.js.br +0 -0
  901. package/web/chunk-sq7ntjp0.js.gz +0 -0
  902. package/web/chunk-st27df9w.js +0 -2
  903. package/web/chunk-st27df9w.js.br +0 -0
  904. package/web/chunk-st27df9w.js.gz +0 -0
  905. package/web/chunk-svxkg8n3.js +0 -2
  906. package/web/chunk-svxkg8n3.js.br +0 -0
  907. package/web/chunk-svxkg8n3.js.gz +0 -0
  908. package/web/chunk-t9nzrp2p.js +0 -1
  909. package/web/chunk-t9nzrp2p.js.br +0 -0
  910. package/web/chunk-t9nzrp2p.js.gz +0 -0
  911. package/web/chunk-t9t9v1r8.js +0 -55
  912. package/web/chunk-t9t9v1r8.js.br +0 -0
  913. package/web/chunk-t9t9v1r8.js.gz +0 -0
  914. package/web/chunk-tzpv48j3.js +0 -2
  915. package/web/chunk-tzpv48j3.js.br +0 -0
  916. package/web/chunk-tzpv48j3.js.gz +0 -0
  917. package/web/chunk-vgsk4ppw.js +0 -7
  918. package/web/chunk-vgsk4ppw.js.br +0 -0
  919. package/web/chunk-vgsk4ppw.js.gz +0 -0
  920. package/web/chunk-vq41ta7n.js +0 -4
  921. package/web/chunk-vq41ta7n.js.br +0 -0
  922. package/web/chunk-vq41ta7n.js.gz +0 -0
  923. package/web/chunk-vszya05r.js +0 -2
  924. package/web/chunk-vszya05r.js.br +0 -0
  925. package/web/chunk-vszya05r.js.gz +0 -0
  926. package/web/chunk-w08egbqf.js +0 -1
  927. package/web/chunk-w08egbqf.js.br +0 -0
  928. package/web/chunk-w08egbqf.js.gz +0 -0
  929. package/web/chunk-wcmq0qgh.js +0 -1
  930. package/web/chunk-wcmq0qgh.js.br +0 -0
  931. package/web/chunk-wcmq0qgh.js.gz +0 -0
  932. package/web/chunk-wctq02yb.js +0 -2
  933. package/web/chunk-wctq02yb.js.br +0 -0
  934. package/web/chunk-wctq02yb.js.gz +0 -0
  935. package/web/chunk-wfa1c8dn.js +0 -1
  936. package/web/chunk-wfa1c8dn.js.br +0 -0
  937. package/web/chunk-wfa1c8dn.js.gz +0 -0
  938. package/web/chunk-wfwadf3r.js +0 -2
  939. package/web/chunk-wfwadf3r.js.br +0 -0
  940. package/web/chunk-wfwadf3r.js.gz +0 -0
  941. package/web/chunk-wgas5t5y.js +0 -1
  942. package/web/chunk-wgas5t5y.js.br +0 -0
  943. package/web/chunk-wgas5t5y.js.gz +0 -0
  944. package/web/chunk-x7k4eyee.js +0 -21
  945. package/web/chunk-x7k4eyee.js.br +0 -0
  946. package/web/chunk-x7k4eyee.js.gz +0 -0
  947. package/web/chunk-xpv38q1f.js +0 -140
  948. package/web/chunk-xpv38q1f.js.br +0 -0
  949. package/web/chunk-xpv38q1f.js.gz +0 -0
  950. package/web/chunk-xt671z8e.js +0 -1
  951. package/web/chunk-xt671z8e.js.br +0 -0
  952. package/web/chunk-xt671z8e.js.gz +0 -0
  953. package/web/chunk-xwrrkwwx.css +0 -1
  954. package/web/chunk-xwrrkwwx.css.br +0 -0
  955. package/web/chunk-xwrrkwwx.css.gz +0 -0
  956. package/web/chunk-xwy3gth5.js +0 -89
  957. package/web/chunk-xwy3gth5.js.br +0 -0
  958. package/web/chunk-xwy3gth5.js.gz +0 -0
  959. package/web/chunk-xwyadj9p.js +0 -2
  960. package/web/chunk-xwyadj9p.js.br +0 -0
  961. package/web/chunk-xwyadj9p.js.gz +0 -0
  962. package/web/chunk-xzgvnd23.js +0 -1
  963. package/web/chunk-xzgvnd23.js.br +0 -0
  964. package/web/chunk-xzgvnd23.js.gz +0 -0
  965. package/web/chunk-y05m6rvz.js +0 -1
  966. package/web/chunk-y05m6rvz.js.br +0 -2
  967. package/web/chunk-y05m6rvz.js.gz +0 -0
  968. package/web/chunk-z51mtwh3.js +0 -169
  969. package/web/chunk-z51mtwh3.js.br +0 -0
  970. package/web/chunk-z51mtwh3.js.gz +0 -0
  971. package/web/chunk-z77xrqc1.js +0 -1
  972. package/web/chunk-z77xrqc1.js.br +0 -0
  973. package/web/chunk-z77xrqc1.js.gz +0 -0
  974. package/web/chunk-z946nbmn.js +0 -2
  975. package/web/chunk-z946nbmn.js.br +0 -0
  976. package/web/chunk-z946nbmn.js.gz +0 -0
@@ -0,0 +1,34 @@
1
+ import{t,ce,Oa,m,f,B,S,G,A,R,I,L,D,P,N,h,Q,X,g}from"./chunk-dbv8qpen.js";var fe=(e,s)=>Oa(e,"a",-s),St=fe;function kt(e,s){let i=de(e),n=i.filter((c)=>he(c,e)),r=0,o=0,a=[];if(n.length>1){let c=Wt(n);for(let d=0;d<n.length;++d){let l=n[d];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}n.sort((d,l)=>l.angle-d.angle);let x=n[n.length-1];for(let d=0;d<n.length;++d){let l=n[d];o+=(x.x+l.x)*(l.y-x.y);let k={x:(l.x+x.x)/2,y:(l.y+x.y)/2},p=null;for(let _=0;_<l.parentIndex.length;++_)if(x.parentIndex.includes(l.parentIndex[_])){let M=e[l.parentIndex[_]],C=Math.atan2(l.x-M.x,l.y-M.y),V=Math.atan2(x.x-M.x,x.y-M.y),j=V-C;if(j<0)j+=2*Math.PI;let O=V-j/2,b=ot(k,{x:M.x+M.radius*Math.sin(O),y:M.y+M.radius*Math.cos(O)});if(b>M.radius*2)b=M.radius*2;if(p==null||p.width>b)p={circle:M,width:b,p1:l,p2:x,large:b>M.radius,sweep:!0}}if(p!=null)a.push(p),r+=Et(p.circle.radius,p.width),x=l}}else{let c=e[0];for(let d=1;d<e.length;++d)if(e[d].radius<c.radius)c=e[d];let x=!1;for(let d=0;d<e.length;++d)if(ot(e[d],c)>Math.abs(c.radius-e[d].radius)){x=!0;break}if(x)r=o=0;else r=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-0.0000000001,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0})}if(o/=2,s)s.area=r+o,s.arcArea=r,s.polygonArea=o,s.arcs=a,s.innerPoints=n,s.intersectionPoints=i;return r+o}function he(e,s){return s.every((i)=>ot(e,i)<i.radius+0.0000000001)}function de(e){let s=[];for(let i=0;i<e.length;++i)for(let n=i+1;n<e.length;++n){let r=Gt(e[i],e[n]);for(let o of r)o.parentIndex=[i,n],s.push(o)}return s}function Et(e,s){return e*e*Math.acos(1-s/e)-(e-s)*Math.sqrt(s*(2*e-s))}function ot(e,s){return Math.sqrt((e.x-s.x)*(e.x-s.x)+(e.y-s.y)*(e.y-s.y))}function Rt(e,s,i){if(i>=e+s)return 0;if(i<=Math.abs(e-s))return Math.PI*Math.min(e,s)*Math.min(e,s);let n=e-(i*i-s*s+e*e)/(2*i),r=s-(i*i-e*e+s*s)/(2*i);return Et(e,n)+Et(s,r)}function Gt(e,s){let i=ot(e,s),n=e.radius,r=s.radius;if(i>=n+r||i<=Math.abs(n-r))return[];let o=(n*n-r*r+i*i)/(2*i),a=Math.sqrt(n*n-o*o),c=e.x+o*(s.x-e.x)/i,x=e.y+o*(s.y-e.y)/i,d=-(s.y-e.y)*(a/i),l=-(s.x-e.x)*(a/i);return[{x:c+d,y:x-l},{x:c-d,y:x+l}]}function Wt(e){let s={x:0,y:0};for(let i of e)s.x+=i.x,s.y+=i.y;return s.x/=e.length,s.y/=e.length,s}function ge(e,s,i,n){n=n||{};let r=n.maxIterations||100,o=n.tolerance||0.0000000001,a=e(s),c=e(i),x=i-s;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return s;if(c===0)return i;for(let d=0;d<r;++d){x/=2;let l=s+x,k=e(l);if(k*a>=0)s=l;if(Math.abs(x)<o||k===0)return l}return s+x}function Tt(e){let s=Array(e);for(let i=0;i<e;++i)s[i]=0;return s}function qt(e,s){return Tt(e).map(()=>Tt(s))}function pt(e,s){let i=0;for(let n=0;n<e.length;++n)i+=e[n]*s[n];return i}function zt(e){return Math.sqrt(pt(e,e))}function At(e,s,i){for(let n=0;n<s.length;++n)e[n]=s[n]*i}function gt(e,s,i,n,r){for(let o=0;o<e.length;++o)e[o]=s*i[o]+n*r[o]}function Kt(e,s,i){i=i||{};let n=i.maxIterations||s.length*200,r=i.nonZeroDelta||1.05,o=i.zeroDelta||0.001,a=i.minErrorDelta||0.000001,c=i.minErrorDelta||0.00001,x=i.rho!==void 0?i.rho:1,d=i.chi!==void 0?i.chi:2,l=i.psi!==void 0?i.psi:-0.5,k=i.sigma!==void 0?i.sigma:0.5,p,_=s.length,M=Array(_+1);M[0]=s,M[0].fx=e(s),M[0].id=0;for(let E=0;E<_;++E){let u=s.slice();u[E]=u[E]?u[E]*r:o,M[E+1]=u,M[E+1].fx=e(u),M[E+1].id=E+1}function C(E){for(let u=0;u<E.length;u++)M[_][u]=E[u];M[_].fx=E.fx}let V=(E,u)=>E.fx-u.fx,j=s.slice(),O=s.slice(),b=s.slice(),w=s.slice();for(let E=0;E<n;++E){if(M.sort(V),i.history){let v=M.map((y)=>{let W=y.slice();return W.fx=y.fx,W.id=y.id,W});v.sort((y,W)=>y.id-W.id),i.history.push({x:M[0].slice(),fx:M[0].fx,simplex:v})}p=0;for(let v=0;v<_;++v)p=Math.max(p,Math.abs(M[0][v]-M[1][v]));if(Math.abs(M[0].fx-M[_].fx)<a&&p<c)break;for(let v=0;v<_;++v){j[v]=0;for(let y=0;y<_;++y)j[v]+=M[y][v];j[v]/=_}let u=M[_];if(gt(O,1+x,j,-x,u),O.fx=e(O),O.fx<M[0].fx)if(gt(w,1+d,j,-d,u),w.fx=e(w),w.fx<O.fx)C(w);else C(O);else if(O.fx>=M[_-1].fx){let v=!1;if(O.fx>u.fx)if(gt(b,1+l,j,-l,u),b.fx=e(b),b.fx<u.fx)C(b);else v=!0;else if(gt(b,1-l*x,j,l*x,u),b.fx=e(b),b.fx<O.fx)C(b);else v=!0;if(v){if(k>=1)break;for(let y=1;y<M.length;++y)gt(M[y],1-k,M[0],k,M[y]),M[y].fx=e(M[y])}}else C(O)}return M.sort(V),{fx:M[0].fx,x:M[0]}}function xe(e,s,i,n,r,o,a){let c=i.fx,x=pt(i.fxprime,s),d=c,l=c,k=x,p=0;r=r||1,o=o||0.000001,a=a||0.1;function _(M,C,V){for(let j=0;j<16;++j)if(r=(M+C)/2,gt(n.x,1,i.x,r,s),d=n.fx=e(n.x,n.fxprime),k=pt(n.fxprime,s),d>c+o*r*x||d>=V)C=r;else{if(Math.abs(k)<=-a*x)return r;if(k*(C-M)>=0)C=M;M=r,V=d}return 0}for(let M=0;M<10;++M){if(gt(n.x,1,i.x,r,s),d=n.fx=e(n.x,n.fxprime),k=pt(n.fxprime,s),d>c+o*r*x||M&&d>=l)return _(p,r,l);if(Math.abs(k)<=-a*x)return r;if(k>=0)return _(r,p,d);l=d,p=r,r*=2}return r}function ye(e,s,i){let n={x:s.slice(),fx:0,fxprime:s.slice()},r={x:s.slice(),fx:0,fxprime:s.slice()},o=s.slice(),a,c,x=1,d;i=i||{},d=i.maxIterations||s.length*20,n.fx=e(n.x,n.fxprime),a=n.fxprime.slice(),At(a,n.fxprime,-1);for(let l=0;l<d;++l){if(x=xe(e,a,n,r,x),i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:x});if(!x)At(a,n.fxprime,-1);else{gt(o,1,r.fxprime,-1,n.fxprime);let k=pt(n.fxprime,n.fxprime),p=Math.max(0,pt(o,r.fxprime)/k);gt(a,p,a,-1,r.fxprime),c=n,n=r,r=c}if(zt(n.fxprime)<=0.00001)break}if(i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:x});return n}function Ht(e,s={}){s.maxIterations=s.maxIterations||500;let i=s.initialLayout||ve,n=s.lossFunction||mt,r=pe(e,s),o=i(r,s),a=Object.keys(o),c=[];for(let l of a)c.push(o[l].x),c.push(o[l].y);let d=Kt((l)=>{let k={};for(let p=0;p<a.length;++p){let _=a[p];k[_]={x:l[2*p],y:l[2*p+1],radius:o[_].radius}}return n(k,r)},c,s).x;for(let l=0;l<a.length;++l){let k=a[l];o[k].x=d[2*l],o[k].y=d[2*l+1]}return o}var Yt=0.0000000001;function Ct(e,s,i){if(Math.min(e,s)*Math.min(e,s)*Math.PI<=i+Yt)return Math.abs(e-s);return ge((n)=>Rt(e,s,n)-i,0,e+s)}function pe(e,s={}){let i=s.distinct,n=e.map((c)=>Object.assign({},c));function r(c){return c.join(";")}if(i){let c=new Map;for(let x of n)for(let d=0;d<x.sets.length;d++){let l=String(x.sets[d]);c.set(l,x.size+(c.get(l)||0));for(let k=d+1;k<x.sets.length;k++){let p=String(x.sets[k]),_=`${l};${p}`,M=`${p};${l}`;c.set(_,x.size+(c.get(_)||0)),c.set(M,x.size+(c.get(M)||0))}}for(let x of n)if(x.sets.length<3)x.size=c.get(r(x.sets))}let o=[],a=new Set;for(let c of n)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){let x=c.sets[0],d=c.sets[1];a.add(r(c.sets)),a.add(r([d,x]))}o.sort((c,x)=>c===x?0:c<x?-1:1);for(let c=0;c<o.length;++c){let x=o[c];for(let d=c+1;d<o.length;++d){let l=o[d];if(!a.has(r([x,l])))n.push({sets:[x,l],size:0})}}return n}function me(e,s,i){let n=qt(s.length,s.length),r=qt(s.length,s.length);return e.filter((o)=>o.sets.length===2).forEach((o)=>{let a=i[o.sets[0]],c=i[o.sets[1]],x=Math.sqrt(s[a].size/Math.PI),d=Math.sqrt(s[c].size/Math.PI),l=Ct(x,d,o.size);n[a][c]=n[c][a]=l;let k=0;if(o.size+0.0000000001>=Math.min(s[a].size,s[c].size))k=1;else if(o.size<=0.0000000001)k=-1;r[a][c]=r[c][a]=k}),{distances:n,constraints:r}}function be(e,s,i,n){for(let o=0;o<s.length;++o)s[o]=0;let r=0;for(let o=0;o<i.length;++o){let a=e[2*o],c=e[2*o+1];for(let x=o+1;x<i.length;++x){let d=e[2*x],l=e[2*x+1],k=i[o][x],p=n[o][x],_=(d-a)*(d-a)+(l-c)*(l-c),M=Math.sqrt(_),C=_-k*k;if(p>0&&M<=k||p<0&&M>=k)continue;r+=2*C*C,s[2*o]+=4*C*(a-d),s[2*o+1]+=4*C*(c-l),s[2*x]+=4*C*(d-a),s[2*x+1]+=4*C*(l-c)}}return r}function ve(e,s={}){let i=Ie(e,s),n=s.lossFunction||mt;if(e.length>=8){let r=ke(e,s),o=n(r,e),a=n(i,e);if(o+0.00000001<a)i=r}return i}function ke(e,s={}){let i=s.restarts||10,n=[],r={};for(let p of e)if(p.sets.length===1)r[p.sets[0]]=n.length,n.push(p);let{distances:o,constraints:a}=me(e,n,r),c=zt(o.map(zt))/o.length;o=o.map((p)=>p.map((_)=>_/c));let x=(p,_)=>be(p,_,o,a),d=null;for(let p=0;p<i;++p){let _=Tt(o.length*2).map(Math.random),M=ye(x,_,s);if(!d||M.fx<d.fx)d=M}let l=d.x,k={};for(let p=0;p<n.length;++p){let _=n[p];k[_.sets[0]]={x:l[2*p]*c,y:l[2*p+1]*c,radius:Math.sqrt(_.size/Math.PI)}}if(s.history)for(let p of s.history)At(p.x,c);return k}function Ie(e,s){let i=s&&s.lossFunction?s.lossFunction:mt,n={},r={};for(let k of e)if(k.sets.length===1){let p=k.sets[0];n[p]={x:10000000000,y:10000000000,rowid:n.length,size:k.size,radius:Math.sqrt(k.size/Math.PI)},r[p]=[]}e=e.filter((k)=>k.sets.length===2);for(let k of e){let p=k.weight!=null?k.weight:1,_=k.sets[0],M=k.sets[1];if(k.size+Yt>=Math.min(n[_].size,n[M].size))p=0;r[_].push({set:M,size:k.size,weight:p}),r[M].push({set:_,size:k.size,weight:p})}let o=[];Object.keys(r).forEach((k)=>{let p=0;for(let _=0;_<r[k].length;++_)p+=r[k][_].size*r[k][_].weight;o.push({set:k,size:p})});function a(k,p){return p.size-k.size}o.sort(a);let c={};function x(k){return k.set in c}function d(k,p){n[p].x=k.x,n[p].y=k.y,c[p]=!0}d({x:0,y:0},o[0].set);for(let k=1;k<o.length;++k){let p=o[k].set,_=r[p].filter(x),M=n[p];if(_.sort(a),_.length===0)throw"ERROR: missing pairwise overlap information";let C=[];for(var l=0;l<_.length;++l){let O=n[_[l].set],b=Ct(M.radius,O.radius,_[l].size);C.push({x:O.x+b,y:O.y}),C.push({x:O.x-b,y:O.y}),C.push({y:O.y+b,x:O.x}),C.push({y:O.y-b,x:O.x});for(let w=l+1;w<_.length;++w){let E=n[_[w].set],u=Ct(M.radius,E.radius,_[w].size),v=Gt({x:O.x,y:O.y,radius:b},{x:E.x,y:E.y,radius:u});C.push(...v)}}let V=100000000000000000000000000000000000000000000000000,j=C[0];for(let O of C){n[p].x=O.x,n[p].y=O.y;let b=i(n,e);if(b<V)V=b,j=O}d(j,p)}return n}function mt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let a=e[n.sets[0]],c=e[n.sets[1]];r=Rt(a.radius,c.radius,ot(a,c))}else r=kt(n.sets.map((a)=>e[a]));let o=n.weight!=null?n.weight:1;i+=o*(r-n.size)*(r-n.size)}return i}function Xt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let c=e[n.sets[0]],x=e[n.sets[1]];r=Rt(c.radius,x.radius,ot(c,x))}else r=kt(n.sets.map((c)=>e[c]));let o=n.weight!=null?n.weight:1,a=Math.log((r+1)/(n.size+1));i+=o*a*a}return i}function Me(e,s,i){if(i==null)e.sort((r,o)=>o.radius-r.radius);else e.sort(i);if(e.length>0){let r=e[0].x,o=e[0].y;for(let a of e)a.x-=r,a.y-=o}if(e.length===2){if(ot(e[0],e[1])<Math.abs(e[1].radius-e[0].radius))e[1].x=e[0].x+e[0].radius-e[1].radius-0.0000000001,e[1].y=e[0].y}if(e.length>1){let r=Math.atan2(e[1].x,e[1].y)-s,o=Math.cos(r),a=Math.sin(r);for(let c of e){let{x,y:d}=c;c.x=o*x-a*d,c.y=a*x+o*d}}if(e.length>2){let r=Math.atan2(e[2].x,e[2].y)-s;while(r<0)r+=2*Math.PI;while(r>2*Math.PI)r-=2*Math.PI;if(r>Math.PI){let o=e[1].y/(0.0000000001+e[1].x);for(let a of e){var n=(a.x+o*a.y)/(1+o*o);a.x=2*n-a.x,a.y=2*n*o-a.y}}}}function Se(e){e.forEach((r)=>{r.parent=r});function s(r){if(r.parent!==r)r.parent=s(r.parent);return r.parent}function i(r,o){let a=s(r),c=s(o);a.parent=c}for(let r=0;r<e.length;++r)for(let o=r+1;o<e.length;++o){let a=e[r].radius+e[o].radius;if(ot(e[r],e[o])+0.0000000001<a)i(e[o],e[r])}let n=new Map;for(let r=0;r<e.length;++r){let o=s(e[r]).parent.setid;if(!n.has(o))n.set(o,[]);n.get(o).push(e[r])}return e.forEach((r)=>{delete r.parent}),Array.from(n.values())}function Dt(e){let s=(i)=>{let n=e.reduce((o,a)=>Math.max(o,a[i]+a.radius),Number.NEGATIVE_INFINITY),r=e.reduce((o,a)=>Math.min(o,a[i]-a.radius),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:s("x"),yRange:s("y")}}function Zt(e,s,i){if(s==null)s=Math.PI/2;let n=$t(e).map((d)=>Object.assign({},d)),r=Se(n);for(let d of r){Me(d,s,i);let l=Dt(d);d.size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),d.bounds=l}r.sort((d,l)=>l.size-d.size),n=r[0];let o=n.bounds,a=(o.xRange.max-o.xRange.min)/50;function c(d,l,k){if(!d)return;let p=d.bounds,_,M;if(l)_=o.xRange.max-p.xRange.min+a;else{_=o.xRange.max-p.xRange.max;let C=(p.xRange.max-p.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(C<0)_+=C}if(k)M=o.yRange.max-p.yRange.min+a;else{M=o.yRange.max-p.yRange.max;let C=(p.yRange.max-p.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(C<0)M+=C}for(let C of d)C.x+=_,C.y+=M,n.push(C)}let x=1;while(x<r.length)c(r[x],!0,!1),c(r[x+1],!1,!0),c(r[x+2],!0,!0),x+=3,o=Dt(n);return Qt(n)}function Jt(e,s,i,n,r){let o=$t(e);s-=2*n,i-=2*n;let{xRange:a,yRange:c}=Dt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),e;let x,d;if(r){let _=Math.sqrt(r/Math.PI)*2;x=s/_,d=i/_}else x=s/(a.max-a.min),d=i/(c.max-c.min);let l=Math.min(d,x),k=(s-(a.max-a.min)*l)/2,p=(i-(c.max-c.min)*l)/2;return Qt(o.map((_)=>({radius:l*_.radius,x:n+k+(_.x-a.min)*l,y:n+p+(_.y-c.min)*l,setid:_.setid})))}function Qt(e){let s={};for(let i of e)s[i.setid]=i;return s}function $t(e){return Object.keys(e).map((i)=>Object.assign(e[i],{setid:i}))}function te(e={}){let s=!1,i=600,n=350,r=15,o=1000,a=Math.PI/2,c=!0,x=null,d=!0,l=!0,k=null,p=null,_=!1,M=null,C=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,V={},j=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],O=0,b=function(v){if(v in V)return V[v];var y=V[v]=j[O];if(O+=1,O>=j.length)O=0;return y},w=Ht,E=mt;function u(v){let y=v.datum(),W=new Set;y.forEach((T)=>{if(T.size==0&&T.sets.length==1)W.add(T.sets[0])}),y=y.filter((T)=>!T.sets.some((Z)=>W.has(Z)));let z={},K={};if(y.length>0){let T=w(y,{lossFunction:E,distinct:_});if(c)T=Zt(T,a,p);z=Jt(T,i,n,r,x),K=ne(z,y,C)}let at={};y.forEach((T)=>{if(T.label)at[T.sets]=T.label});function nt(T){if(T.sets in at)return at[T.sets];if(T.sets.length==1)return""+T.sets[0]}v.selectAll("svg").data([z]).enter().append("svg");let Y=v.select("svg");if(s)Y.attr("viewBox",`0 0 ${i} ${n}`);else Y.attr("width",i).attr("height",n);let U={},H=!1;Y.selectAll(".venn-area path").each(function(T){let Z=this.getAttribute("d");if(T.sets.length==1&&Z&&!_)H=!0,U[T.sets[0]]=Ee(Z)});function F(T){return(Z)=>{let yt=T.sets.map((dt)=>{let ht=U[dt],rt=z[dt];if(!ht)ht={x:i/2,y:n/2,radius:1};if(!rt)rt={x:i/2,y:n/2,radius:1};return{x:ht.x*(1-Z)+rt.x*Z,y:ht.y*(1-Z)+rt.y*Z,radius:ht.radius*(1-Z)+rt.radius*Z}});return Ut(yt,M)}}let J=Y.selectAll(".venn-area").data(y,(T)=>T.sets),st=J.enter().append("g").attr("class",(T)=>`venn-area venn-${T.sets.length==1?"circle":"intersection"}${T.colour||T.color?" venn-coloured":""}`).attr("data-venn-sets",(T)=>T.sets.join("_")),tt=st.append("path"),lt=st.append("text").attr("class","label").text((T)=>nt(T)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)tt.style("fill-opacity","0").filter((T)=>T.sets.length==1).style("fill",(T)=>T.colour?T.colour:T.color?T.color:b(T.sets)).style("fill-opacity",".25"),lt.style("fill",(T)=>{if(T.colour||T.color)return"#FFF";if(e.textFill)return e.textFill;return T.sets.length==1?b(T.sets):"#444"});function it(T){if(typeof T.transition==="function")return T.transition("venn").duration(o);return T}let et=v;if(H&&typeof et.transition==="function")et=it(v),et.selectAll("path").attrTween("d",F);else et.selectAll("path").attr("d",(T)=>Ut(T.sets.map((Z)=>z[Z])),M);let q=et.selectAll("text").filter((T)=>(T.sets in K)).text((T)=>nt(T)).attr("x",(T)=>Math.floor(K[T.sets].x)).attr("y",(T)=>Math.floor(K[T.sets].y));if(d)if(H)if("on"in q)q.on("end",wt(z,nt));else q.each("end",wt(z,nt));else q.each(wt(z,nt));let ft=it(J.exit()).remove();if(typeof J.transition==="function")ft.selectAll("path").attrTween("d",F);let ut=ft.selectAll("text").attr("x",i/2).attr("y",n/2);if(k!==null)lt.style("font-size","0px"),q.style("font-size",k),ut.style("font-size","0px");return{circles:z,textCentres:K,nodes:J,enter:st,update:et,exit:ft}}return u.wrap=function(v){if(!arguments.length)return d;return d=v,u},u.useViewBox=function(){return s=!0,u},u.width=function(v){if(!arguments.length)return i;return i=v,u},u.height=function(v){if(!arguments.length)return n;return n=v,u},u.padding=function(v){if(!arguments.length)return r;return r=v,u},u.distinct=function(v){if(!arguments.length)return _;return _=v,u},u.colours=function(v){if(!arguments.length)return b;return b=v,u},u.colors=function(v){if(!arguments.length)return b;return b=v,u},u.fontSize=function(v){if(!arguments.length)return k;return k=v,u},u.round=function(v){if(!arguments.length)return M;return M=v,u},u.duration=function(v){if(!arguments.length)return o;return o=v,u},u.layoutFunction=function(v){if(!arguments.length)return w;return w=v,u},u.normalize=function(v){if(!arguments.length)return c;return c=v,u},u.scaleToFit=function(v){if(!arguments.length)return x;return x=v,u},u.styled=function(v){if(!arguments.length)return l;return l=v,u},u.orientation=function(v){if(!arguments.length)return a;return a=v,u},u.orientationOrder=function(v){if(!arguments.length)return p;return p=v,u},u.lossFunction=function(v){if(!arguments.length)return E;return E=v==="default"?mt:v==="logRatio"?Xt:v,u},u}function wt(e,s){return function(i){let n=this,r=e[i.sets[0]].radius||50,o=s(i)||"",a=o.split(/\s+/).reverse(),c=3,x=(o.length+a.length)/3,d=a.pop(),l=[d],k=0,p=1.1;n.textContent=null;let _=[];function M(b){let w=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return w.textContent=b,_.push(w),n.append(w),w}let C=M(d);while(!0){if(d=a.pop(),!d)break;l.push(d);let b=l.join(" ");if(C.textContent=b,b.length>x&&C.getComputedTextLength()>r)l.pop(),C.textContent=l.join(" "),l=[d],C=M(d),k++}let V=0.35-k*p/2,j=n.getAttribute("x"),O=n.getAttribute("y");_.forEach((b,w)=>{b.setAttribute("x",j),b.setAttribute("y",O),b.setAttribute("dy",`${V+w*p}em`)})}}function _t(e,s,i){let n=s[0].radius-ot(s[0],e);for(let r=1;r<s.length;++r){let o=s[r].radius-ot(s[r],e);if(o<=n)n=o}for(let r=0;r<i.length;++r){let o=ot(i[r],e)-i[r].radius;if(o<=n)n=o}return n}function ee(e,s,i){let n=[];for(let l of e)n.push({x:l.x,y:l.y}),n.push({x:l.x+l.radius/2,y:l.y}),n.push({x:l.x-l.radius/2,y:l.y}),n.push({x:l.x,y:l.y+l.radius/2}),n.push({x:l.x,y:l.y-l.radius/2});let r=n[0],o=_t(n[0],e,s);for(let l=1;l<n.length;++l){let k=_t(n[l],e,s);if(k>=o)r=n[l],o=k}let a=Kt((l)=>-1*_t({x:l[0],y:l[1]},e,s),[r.x,r.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,c={x:i?0:a[0],y:a[1]},x=!0;for(let l of e)if(ot(c,l)>l.radius){x=!1;break}for(let l of s)if(ot(c,l)<l.radius){x=!1;break}if(x)return c;if(e.length==1)return{x:e[0].x,y:e[0].y};let d={};if(kt(e,d),d.arcs.length===0)return{x:0,y:-1000,disjoint:!0};if(d.arcs.length==1)return{x:d.arcs[0].circle.x,y:d.arcs[0].circle.y};if(s.length)return ee(e,[]);return Wt(d.arcs.map((l)=>l.p1))}function we(e){let s={},i=Object.keys(e);for(let n of i)s[n]=[];for(let n=0;n<i.length;n++){let r=i[n],o=e[r];for(let a=n+1;a<i.length;++a){let c=i[a],x=e[c],d=ot(o,x);if(d+x.radius<=o.radius+0.0000000001)s[c].push(r);else if(d+o.radius<=x.radius+0.0000000001)s[r].push(c)}}return s}function ne(e,s,i){let n={},r=we(e);for(let o=0;o<s.length;++o){let a=s[o].sets,c={},x={};for(let p=0;p<a.length;++p){c[a[p]]=!0;let _=r[a[p]];for(let M=0;M<_.length;++M)x[_[M]]=!0}let d=[],l=[];for(let p in e)if(p in c)d.push(e[p]);else if(!(p in x))l.push(e[p]);let k=ee(d,l,i);if(n[a]=k,k.disjoint&&s[o].size>0)console.log("WARNING: area "+a+" not represented on screen")}return n}function _e(e,s,i){let n=[];return n.push(`
2
+ M`,e,s),n.push(`
3
+ m`,-i,0),n.push(`
4
+ a`,i,i,0,1,0,i*2,0),n.push(`
5
+ a`,i,i,0,1,0,-i*2,0),n.join(" ")}function Ee(e){let s=e.split(" ");return{x:Number.parseFloat(s[1]),y:Number.parseFloat(s[2]),radius:-Number.parseFloat(s[4])}}function se(e){if(e.length===0)return[];let s={};return kt(e,s),s.arcs}function ie(e,s){if(e.length===0)return"M 0 0";let i=Math.pow(10,s||0),n=s!=null?(o)=>Math.round(o*i)/i:(o)=>o;if(e.length==1){let o=e[0].circle;return _e(n(o.x),n(o.y),n(o.radius))}let r=[`
6
+ M`,n(e[0].p2.x),n(e[0].p2.y)];for(let o of e){let a=n(o.circle.radius);r.push(`
7
+ A`,a,a,0,o.large?1:0,o.sweep?1:0,n(o.p1.x),n(o.p1.y))}return r.join(" ")}function Ut(e,s){return ie(se(e),s)}function re(e,s={}){let{lossFunction:i,layoutFunction:n=Ht,normalize:r=!0,orientation:o=Math.PI/2,orientationOrder:a,width:c=600,height:x=350,padding:d=15,scaleToFit:l=!1,symmetricalTextCentre:k=!1,distinct:p,round:_=2}=s,M=n(e,{lossFunction:i==="default"||!i?mt:i==="logRatio"?Xt:i,distinct:p});if(r)M=Zt(M,o,a);let C=Jt(M,c,x,d,l),V=ne(C,e,k),j=new Map(Object.keys(C).map((w)=>[w,{set:w,x:C[w].x,y:C[w].y,radius:C[w].radius}])),O=e.map((w)=>{let E=w.sets.map((y)=>j.get(y)),u=se(E),v=ie(u,_);return{circles:E,arcs:u,path:v,area:w,has:new Set(w.sets)}});function b(w){let E="";for(let u of O)if(u.has.size>w.length&&w.every((v)=>u.has.has(v)))E+=" "+u.path;return E}return O.map(({circles:w,arcs:E,path:u,area:v})=>({data:v,text:V[v.sets],circles:w,arcs:E,path:u,distinctPath:u+b(v.sets)}))}var Nt=function(){var e=t(function(O,b,w,E){for(w=w||{},E=O.length;E--;w[O[E]]=b);return w},"o"),s=[5,8],i=[7,8,11,12,17,19,22,24],n=[1,17],r=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],a=[1,31],c=[1,39],x=[7,8,11,12,17,19,22,24,27],d=[1,57],l=[1,56],k=[1,58],p=[1,59],_=[1,60],M=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],C={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:t(function(b,w,E,u,v,y,W){var z=y.length-1;switch(v){case 1:return y[z-1];case 2:case 3:case 4:this.$=[];break;case 5:y[z-1].push(y[z]),this.$=y[z-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=y[z];break;case 8:u.setDiagramTitle(y[z].substr(6)),this.$=y[z].substr(6);break;case 9:if(u.addSubsetData([y[z]],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 10:if(u.addSubsetData([y[z-1]],y[z],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 11:if(u.addSubsetData([y[z-2]],void 0,parseFloat(y[z])),u.setIndentMode)u.setIndentMode(!0);break;case 12:if(u.addSubsetData([y[z-3]],y[z-2],parseFloat(y[z])),u.setIndentMode)u.setIndentMode(!0);break;case 13:if(y[z].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(y[z]);if(u.addSubsetData(y[z],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 14:if(y[z-1].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(y[z-1]);if(u.addSubsetData(y[z-1],y[z],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 15:if(y[z-2].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(y[z-2]);if(u.addSubsetData(y[z-2],void 0,parseFloat(y[z])),u.setIndentMode)u.setIndentMode(!0);break;case 16:if(y[z-3].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(y[z-3]);if(u.addSubsetData(y[z-3],y[z-2],parseFloat(y[z])),u.setIndentMode)u.setIndentMode(!0);break;case 17:case 18:case 19:u.addTextData(y[z-1],y[z],void 0);break;case 20:case 21:u.addTextData(y[z-2],y[z-1],y[z]);break;case 23:u.addStyleData(y[z-1],y[z]);break;case 24:case 25:case 26:var K=u.getCurrentSets();if(!K)throw Error("text requires set");u.addTextData(K,y[z],void 0);break;case 27:case 28:var K=u.getCurrentSets();if(!K)throw Error("text requires set");u.addTextData(K,y[z-1],y[z]);break;case 29:case 41:this.$=[y[z]];break;case 30:case 42:this.$=[...y[z-2],y[z]];break;case 31:this.$=[y[z-2],y[z]];break;case 33:this.$=y[z].join(" ");break;case 34:this.$=[y[z]];break;case 35:y[z-1].push(y[z]),this.$=y[z-1];break;case 43:case 44:this.$=y[z];break}},"anonymous"),table:[e(s,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(i,[2,4],{6:5}),e(s,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),e(i,[2,8]),{13:16,20:n,21:r},{13:20,18:19,20:n,21:r},{13:20,18:21,20:n,21:r},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:r},e(i,[2,9],{14:[1,27],15:[1,28]}),e(o,[2,43]),e(o,[2,44]),e(i,[2,13],{14:[1,29],15:[1,30],27:a}),e(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:a},e(i,[2,22]),e(i,[2,24],{14:[1,35]}),e(i,[2,25],{14:[1,36]}),e(i,[2,26]),{20:c,25:37,26:38,27:a},e(i,[2,10],{15:[1,40]}),{16:[1,41]},e(i,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:r},e(i,[2,17],{14:[1,45]}),e(i,[2,18],{14:[1,46]}),e(i,[2,19]),e(i,[2,27]),e(i,[2,28]),e(i,[2,23],{27:[1,47]}),e(x,[2,29]),{15:[1,48]},{16:[1,49]},e(i,[2,11]),{16:[1,50]},e(i,[2,15]),e(o,[2,42]),e(i,[2,20]),e(i,[2,21]),{20:c,26:51},{16:d,20:l,21:[1,53],28:52,29:54,30:55,31:k,32:p,33:_},e(i,[2,12]),e(i,[2,16]),e(x,[2,30]),e(x,[2,31]),e(x,[2,32]),e(x,[2,33],{30:61,16:d,20:l,31:k,32:p,33:_}),e(M,[2,34]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),e(M,[2,39]),e(M,[2,40]),e(M,[2,35])],defaultActions:{6:[2,1]},parseError:t(function(b,w){if(w.recoverable)this.trace(b);else{var E=Error(b);throw E.hash=w,E}},"parseError"),parse:t(function(b){var w=this,E=[0],u=[],v=[null],y=[],W=this.table,z="",K=0,at=0,nt=0,Y=2,U=1,H=y.slice.call(arguments,1),F=Object.create(this.lexer),J={yy:{}};for(var st in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,st))J.yy[st]=this.yy[st];if(F.setInput(b,J.yy),J.yy.lexer=F,J.yy.parser=this,typeof F.yylloc>"u")F.yylloc={};var tt=F.yylloc;y.push(tt);var lt=F.options&&F.options.ranges;if(typeof J.yy.parseError==="function")this.parseError=J.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function it(ct){E.length=E.length-2*ct,v.length=v.length-ct,y.length=y.length-ct}t(it,"popStack");function et(){var ct=u.pop()||F.lex()||U;if(typeof ct!=="number"){if(ct instanceof Array)u=ct,ct=u.pop();ct=w.symbols_[ct]||ct}return ct}t(et,"lex");var q,ft,ut,T,Z,yt,dt={},ht,rt,Bt,vt;while(!0){if(ut=E[E.length-1],this.defaultActions[ut])T=this.defaultActions[ut];else{if(q===null||typeof q>"u")q=et();T=W[ut]&&W[ut][q]}if(typeof T>"u"||!T.length||!T[0]){var Mt="";vt=[];for(ht in W[ut])if(this.terminals_[ht]&&ht>Y)vt.push("'"+this.terminals_[ht]+"'");if(F.showPosition)Mt="Parse error on line "+(K+1)+`:
8
+ `+F.showPosition()+`
9
+ Expecting `+vt.join(", ")+", got '"+(this.terminals_[q]||q)+"'";else Mt="Parse error on line "+(K+1)+": Unexpected "+(q==U?"end of input":"'"+(this.terminals_[q]||q)+"'");this.parseError(Mt,{text:F.match,token:this.terminals_[q]||q,line:F.yylineno,loc:tt,expected:vt})}if(T[0]instanceof Array&&T.length>1)throw Error("Parse Error: multiple actions possible at state: "+ut+", token: "+q);switch(T[0]){case 1:if(E.push(q),v.push(F.yytext),y.push(F.yylloc),E.push(T[1]),q=null,!ft){if(at=F.yyleng,z=F.yytext,K=F.yylineno,tt=F.yylloc,nt>0)nt--}else q=ft,ft=null;break;case 2:if(rt=this.productions_[T[1]][1],dt.$=v[v.length-rt],dt._$={first_line:y[y.length-(rt||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(rt||1)].first_column,last_column:y[y.length-1].last_column},lt)dt._$.range=[y[y.length-(rt||1)].range[0],y[y.length-1].range[1]];if(yt=this.performAction.apply(dt,[z,at,K,J.yy,T[1],v,y].concat(H)),typeof yt<"u")return yt;if(rt)E=E.slice(0,-1*rt*2),v=v.slice(0,-1*rt),y=y.slice(0,-1*rt);E.push(this.productions_[T[1]][0]),v.push(dt.$),y.push(dt._$),Bt=W[E[E.length-2]][E[E.length-1]],E.push(Bt);break;case 3:return!0}}return!0},"parse")},V=function(){var O={EOF:1,parseError:t(function(w,E){if(this.yy.parser)this.yy.parser.parseError(w,E);else throw Error(w)},"parseError"),setInput:t(function(b,w){if(this.yy=w||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var w=b.match(/(?:\r\n?|\n).*/g);if(w)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),b},"input"),unput:t(function(b){var w=b.length,E=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var u=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1)this.yylineno-=E.length-1;var v=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===u.length?this.yylloc.first_column:0)+u[u.length-E.length].length-E[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[v[0],v[0]+this.yyleng-w];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
10
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(b){this.unput(this.match.slice(b))},"less"),pastInput:t(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var b=this.pastInput(),w=Array(b.length+1).join("-");return b+this.upcomingInput()+`
11
+ `+w+"^"},"showPosition"),test_match:t(function(b,w){var E,u,v;if(this.options.backtrack_lexer){if(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)v.yylloc.range=this.yylloc.range.slice(0)}if(u=b[0].match(/(?:\r\n?|\n).*/g),u)this.yylineno+=u.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],E=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(E)return E;else if(this._backtrack){for(var y in v)this[y]=v[y];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var b,w,E,u;if(!this._more)this.yytext="",this.match="";var v=this._currentRules();for(var y=0;y<v.length;y++)if(E=this._input.match(this.rules[v[y]]),E&&(!w||E[0].length>w[0].length)){if(w=E,u=y,this.options.backtrack_lexer)if(b=this.test_match(E,v[y]),b!==!1)return b;else if(this._backtrack){w=!1;continue}else return!1;else if(!this.options.flex)break}if(w){if(b=this.test_match(w,v[u]),b!==!1)return b;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:t(function(w){this.conditionStack.push(w)},"begin"),popState:t(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:t(function(w){this.begin(w)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(w,E,u,v){var y=v;switch(u){case 0:break;case 1:break;case 2:break;case 3:if(w.getIndentMode&&w.getIndentMode())return w.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:if(w.setIndentMode)w.setIndentMode(!1);this.begin("INITIAL"),this.unput(E.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(w.consumeIndentText)w.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return E.yytext=E.yytext.slice(2,-2),14;break;case 17:return E.yytext=E.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return O}();C.lexer=V;function j(){this.yy={}}return t(j,"Parser"),j.prototype=C,C.Parser=j,new j}();Nt.parser=Nt;var ze=Nt,Ot=[],Lt=[],jt=[],Ft=new Set,Pt,Vt=!1,Ae=t((e,s,i)=>{let n=It(e).sort(),r=i??10/Math.pow(e.length,2);if(Pt=n,n.length===1)Ft.add(n[0]);Ot.push({sets:n,size:r,label:s?bt(s):void 0})},"addSubsetData"),Ce=t(()=>Ot,"getSubsetData"),bt=t((e)=>{let s=e.trim();if(s.length>=2&&s.startsWith('"')&&s.endsWith('"'))return s.slice(1,-1);return s},"normalizeText"),De=t((e)=>e?bt(e):e,"normalizeStyleValue"),Re=t((e,s,i)=>{let n=bt(s);Lt.push({sets:It(e).sort(),id:n,label:i?bt(i):void 0})},"addTextData"),Ne=t((e,s)=>{let i=It(e).sort(),n={};for(let[r,o]of s)n[r]=De(o)??o;jt.push({targets:i,styles:n})},"addStyleData"),Oe=t(()=>jt,"getStyleData"),It=t((e)=>e.map((s)=>bt(s)),"normalizeIdentifierList"),Le=t((e)=>{let i=It(e).filter((n)=>!Ft.has(n));if(i.length>0)throw Error(`unknown set identifier: ${i.join(", ")}`)},"validateUnionIdentifiers"),je=t(()=>Lt,"getTextData"),Fe=t(()=>Pt,"getCurrentSets"),Pe=t(()=>Vt,"getIndentMode"),Ve=t((e)=>{Vt=e},"setIndentMode"),Be=B.venn;function oe(){return X(Be,S().venn)}t(oe,"getConfig");var qe=t(()=>{A(),Ot.length=0,Lt.length=0,jt.length=0,Ft.clear(),Pt=void 0,Vt=!1},"customClear"),Ue={getConfig:oe,clear:qe,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:N,getAccDescription:D,setAccDescription:L,addSubsetData:Ae,getSubsetData:Ce,addTextData:Re,addStyleData:Ne,validateUnionIdentifiers:Le,getTextData:je,getStyleData:Oe,getCurrentSets:Fe,getIndentMode:Pe,setIndentMode:Ve},Ge=t((e)=>`
13
+ .venn-title {
14
+ font-size: 32px;
15
+ fill: ${e.vennTitleTextColor};
16
+ font-family: ${e.fontFamily};
17
+ }
18
+
19
+ .venn-circle text {
20
+ font-size: 48px;
21
+ font-family: ${e.fontFamily};
22
+ }
23
+
24
+ .venn-intersection text {
25
+ font-size: 48px;
26
+ fill: ${e.vennSetTextColor};
27
+ font-family: ${e.fontFamily};
28
+ }
29
+
30
+ .venn-text-node {
31
+ font-family: ${e.fontFamily};
32
+ color: ${e.vennSetTextColor};
33
+ }
34
+ `,"getStyles"),We=Ge;function ae(e){let s=new Map;for(let i of e){let n=i.targets.join("|"),r=s.get(n);if(r)Object.assign(r,i.styles);else s.set(n,{...i.styles})}return s}t(ae,"buildStyleByKey");var Ke=t((e,s,i,n)=>{let r=n.db,o=r.getConfig?.(),{themeVariables:a,look:c,handDrawnSeed:x}=S(),d=c==="handDrawn",l=[a.venn1,a.venn2,a.venn3,a.venn4,a.venn5,a.venn6,a.venn7,a.venn8].filter(Boolean),k=r.getDiagramTitle?.(),p=r.getSubsetData(),_=r.getTextData(),M=ae(r.getStyleData()),C=ue(p),V=o?.width??800,j=o?.height??450,O=1600,b=V/1600,w=k?48*b:0,E=a.primaryTextColor??a.textColor,u=Q(s);if(u.attr("viewBox",`0 0 ${V} ${j}`),k)u.append("text").text(k).attr("class","venn-title").attr("font-size",`${32*b}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*b).style("fill",a.vennTitleTextColor||a.titleColor);let v=h(document.createElement("div")),y=te().width(V).height(j-w);v.datum(C).call(y);let W=d?g.svg(v.select("svg").node()):void 0,z=re(C,{width:V,height:j-w,padding:o?.padding??15}),K=new Map;for(let U of z){let H=xt([...U.data.sets].sort());K.set(H,U)}if(_.length>0)le(o,K,v,_,b,M);let at=ce(a.background||"#f4f4f4");if(v.selectAll(".venn-circle").each(function(U,H){let F=h(this),st=xt([...U.sets].sort()),tt=M.get(st),lt=l.length>0?l[H%l.length]:void 0,it=tt?.fill||lt||a.primaryColor;F.classed(`venn-set-${H%8}`,!0);let et=tt?.["fill-opacity"]??0.1,q=tt?.stroke||it,ft=tt?.["stroke-width"]||`${5*b}`;if(d&&W){let T=K.get(st);if(T&&T.circles.length>0){let Z=T.circles[0],yt=W.circle(Z.x,Z.y,Z.radius*2,{roughness:0.7,seed:x,fill:St(it,0.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+H*60,stroke:q,strokeWidth:parseFloat(String(ft))});F.select("path").remove(),F.node()?.insertBefore(yt,F.select("text").node())}}else F.select("path").style("fill",it).style("fill-opacity",et).style("stroke",q).style("stroke-width",ft).style("stroke-opacity",0.95);let ut=tt?.color||(at?m(it,30):f(it,30));F.select("text").style("font-size",`${48*b}px`).style("fill",ut)}),d&&W)v.selectAll(".venn-intersection").each(function(U){let H=h(this),J=xt([...U.sets].sort()),st=M.get(J),tt=st?.fill;if(tt){let lt=H.select("path"),it=lt.attr("d");if(it){let et=W.path(it,{roughness:0.7,seed:x,fill:St(tt,0.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),q=lt.node();q?.parentNode?.insertBefore(et,q),lt.remove()}}else H.select("path").style("fill-opacity",0);H.select("text").style("font-size",`${48*b}px`).style("fill",st?.color??a.vennSetTextColor??E)});else v.selectAll(".venn-intersection text").style("font-size",`${48*b}px`).style("fill",(U)=>{let F=xt([...U.sets].sort());return M.get(F)?.color??a.vennSetTextColor??E}),v.selectAll(".venn-intersection path").style("fill-opacity",(U)=>{let F=xt([...U.sets].sort());return M.get(F)?.fill?1:0}).style("fill",(U)=>{let F=xt([...U.sets].sort());return M.get(F)?.fill??"transparent"});let nt=u.append("g").attr("transform",`translate(0, ${w})`),Y=v.select("svg").node();if(Y&&"childNodes"in Y)for(let U of[...Y.childNodes])nt.node()?.appendChild(U);G(u,j,V,o?.useMaxWidth??!0)},"draw");function xt(e){return e.join("|")}t(xt,"stableSetsKey");function le(e,s,i,n,r,o){let a=e?.useDebugLayout??!1,x=i.select("svg").append("g").attr("class","venn-text-nodes"),d=new Map;for(let l of n){let k=xt(l.sets),p=d.get(k);if(p)p.push(l);else d.set(k,[l])}for(let[l,k]of d.entries()){let p=s.get(l);if(!p?.text)continue;let _=p.text.x,M=p.text.y,C=Math.min(...p.circles.map((Y)=>Y.radius)),V=Math.min(...p.circles.map((Y)=>Y.radius-Math.hypot(_-Y.x,M-Y.y))),j=Number.isFinite(V)?Math.max(0,V):0;if(j===0&&Number.isFinite(C))j=C*0.6;let O=x.append("g").attr("class","venn-text-area").attr("font-size",`${40*r}px`);if(a)O.append("circle").attr("class","venn-text-debug-circle").attr("cx",_).attr("cy",M).attr("r",j).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*r).attr("stroke-dasharray",`${6*r} ${4*r}`);let b=Math.max(80*r,j*2*0.95),w=Math.max(60*r,j*2*0.95),v=(p.data.label&&p.data.label.length>0?Math.min(32*r,j*0.25):0)+(k.length<=2?30*r:0),y=_-b/2,W=M-w/2+v,z=Math.max(1,Math.ceil(Math.sqrt(k.length))),K=Math.max(1,Math.ceil(k.length/z)),at=b/z,nt=w/K;for(let[Y,U]of k.entries()){let H=Y%z,F=Math.floor(Y/z),J=y+at*(H+0.5),st=W+nt*(F+0.5);if(a)O.append("rect").attr("class","venn-text-debug-cell").attr("x",y+at*H).attr("y",W+nt*F).attr("width",at).attr("height",nt).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*r).attr("stroke-dasharray",`${4*r} ${3*r}`);let tt=at*0.9,lt=nt*0.9,it=O.append("foreignObject").attr("class","venn-text-node-fo").attr("width",tt).attr("height",lt).attr("x",J-tt/2).attr("y",st-lt/2).attr("overflow","visible"),et=o.get(U.id)?.color,q=it.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(U.label??U.id);if(et)q.style("color",et)}}}t(le,"renderTextNodes");function ue(e){let s=new Set(e.map((r)=>[...r.sets].sort().join("|"))),i=new Map(e.filter((r)=>r.sets.length===1&&r.size!==void 0).map((r)=>[r.sets[0],r.size])),n=[];for(let r of e){if(r.sets.length<3)continue;let o=[...r.sets].sort();for(let a=0;a<o.length-1;a++)for(let c=a+1;c<o.length;c++){let x=[o[a],o[c]],d=x.join("|");if(!s.has(d)){s.add(d);let l=i.get(x[0]),k=i.get(x[1]),p=l!==void 0&&k!==void 0?Math.min(l,k)/4:2.5;n.push({sets:x,size:p,label:""})}}}return n.length>0?[...e,...n]:e}t(ue,"ensurePairwiseSubsets");var He={draw:Ke},rn={parser:ze,db:Ue,renderer:He,styles:We};export{rn as diagram};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{mn}from"./chunk-e65y60v1.js";export{mn as default};
@@ -0,0 +1,2 @@
1
+ �import{mn}from"./chunk-e65y60v1.js";export{mn as default};
2
+ 
Binary file
@@ -0,0 +1 @@
1
+ import{Ss}from"./chunk-21d8pzcm.js";export{Ss as createPieServices};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{Hi}from"./chunk-52tt9qt4.js";export{Hi as default};
@@ -0,0 +1,2 @@
1
+ �import{Hi}from"./chunk-52tt9qt4.js";export{Hi as default};
2
+ 
Binary file
@@ -0,0 +1 @@
1
+ import{Xr}from"./chunk-9r7nbre7.js";export{Xr as default};
Binary file
Binary file
@@ -0,0 +1,12 @@
1
+ import{ss,_r,Oi,ls,qr,cs,ai}from"./chunk-b83bzjcx.js";var S=class extends Error{constructor(t){super(t);this.name="ShikiError"}};function tn(t){return Ne(t)}function Ne(t){if(Array.isArray(t))return nn(t);if(t instanceof RegExp)return t;if(typeof t==="object")return rn(t);return t}function nn(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=Ne(t[n]);return e}function rn(t){let e={};for(let n in t)e[n]=Ne(t[n]);return e}function Ve(t,...e){return e.forEach((n)=>{for(let r in n)t[r]=n[r]}),t}function Ye(t){let e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");if(e===0)return t;else if(~e===t.length-1)return Ye(t.substring(0,t.length-1));else return t.substr(~e+1)}var ye=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,J=class{static hasCaptures(t){if(t===null)return!1;return ye.lastIndex=0,ye.test(t)}static replaceCaptures(t,e,n){return t.replace(ye,(r,s,i,o)=>{let a=n[parseInt(s||i,10)];if(a){let c=e.substring(a.start,a.end);while(c[0]===".")c=c.substring(1);switch(o){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return r})}};function Je(t,e){if(t<e)return-1;if(t>e)return 1;return 0}function Qe(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let s=0;s<n;s++){let i=Je(t[s],e[s]);if(i!==0)return i}return 0}return n-r}function Fe(t){if(/^#[0-9a-f]{6}$/i.test(t))return!0;if(/^#[0-9a-f]{8}$/i.test(t))return!0;if(/^#[0-9a-f]{3}$/i.test(t))return!0;if(/^#[0-9a-f]{4}$/i.test(t))return!0;return!1}function Xe(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Ze=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);let e=this.fn(t);return this.cache.set(t,e),e}},M=class{constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(an(t),e)}static createFromParsedTheme(t,e){return ln(t,e)}_cachedMatchRoot=new Ze((t)=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;let e=t.scopeName,r=this._cachedMatchRoot.get(e).find((s)=>sn(t.parent,s.parentScopes));if(!r)return null;return new et(r.fontStyle,r.foreground,r.background)}},be=class t{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(let r of n)e=new t(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new t(n,e[r]);return n}push(e){return new t(this,e)}getSegments(){let e=this,n=[];while(e)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){if(this===e)return!0;if(this.parent===null)return!1;return this.parent.extends(e)}getExtensionIfDefined(e){let n=[],r=this;while(r&&r!==e)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function sn(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],s=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],s=!0}while(t){if(on(t.scopeName,r))break;if(s)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function on(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var et=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function an(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let s=0,i=e.length;s<i;s++){let o=e[s];if(!o.settings)continue;let a;if(typeof o.scope==="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),a=h.split(",")}else if(Array.isArray(o.scope))a=o.scope;else a=[""];let c=-1;if(typeof o.settings.fontStyle==="string"){c=0;let h=o.settings.fontStyle.split(" ");for(let d=0,f=h.length;d<f;d++)switch(h[d]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let l=null;if(typeof o.settings.foreground==="string"&&Fe(o.settings.foreground))l=o.settings.foreground;let u=null;if(typeof o.settings.background==="string"&&Fe(o.settings.background))u=o.settings.background;for(let h=0,d=a.length;h<d;h++){let m=a[h].trim().split(" "),y=m[m.length-1],_=null;if(m.length>1)_=m.slice(0,m.length-1),_.reverse();n[r++]=new cn(y,_,s,c,l,u)}}return n}var cn=class{constructor(t,e,n,r,s,i){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=s,this.background=i}},k=((t)=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(k||{});function ln(t,e){t.sort((c,l)=>{let u=Je(c.scope,l.scope);if(u!==0)return u;if(u=Qe(c.parentScopes,l.parentScopes),u!==0)return u;return c.index-l.index});let n=0,r="#000000",s="#ffffff";while(t.length>=1&&t[0].scope===""){let c=t.shift();if(c.fontStyle!==-1)n=c.fontStyle;if(c.foreground!==null)r=c.foreground;if(c.background!==null)s=c.background}let i=new un(e),o=new et(n,i.getId(r),i.getId(s)),a=new fn(new we(0,null,-1,0,0),[]);for(let c=0,l=t.length;c<l;c++){let u=t[c];a.insert(0,u.scope,u.parentScopes,u.fontStyle,i.getId(u.foreground),i.getId(u.background))}return new M(i,o,a)}var un=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},hn=Object.freeze([]),we=class t{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,s,i){this.scopeDepth=e,this.parentScopes=n||hn,this.fontStyle=r,this.foreground=s,this.background=i}clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,s=e.length;r<s;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,s){if(this.scopeDepth>e)console.log("how did this happen?");else this.scopeDepth=e;if(n!==-1)this.fontStyle=n;if(r!==0)this.foreground=r;if(s!==0)this.background=s}},fn=class t{constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,s=0;while(!0){if(e.parentScopes[r]===">")r++;if(n.parentScopes[s]===">")s++;if(r>=e.parentScopes.length||s>=n.parentScopes.length)break;let i=n.parentScopes[s].length-e.parentScopes[r].length;if(i!==0)return i;r++,s++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),s,i;if(r===-1)s=e,i="";else s=e.substring(0,r),i=e.substring(r+1);if(this._children.hasOwnProperty(s))return this._children[s].match(i)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n}insert(e,n,r,s,i,o){if(n===""){this._doInsertHere(e,r,s,i,o);return}let a=n.indexOf("."),c,l;if(a===-1)c=n,l="";else c=n.substring(0,a),l=n.substring(a+1);let u;if(this._children.hasOwnProperty(c))u=this._children[c];else u=new t(this._mainRule.clone(),we.cloneArr(this._rulesWithParentScopes)),this._children[c]=u;u.insert(e+1,l,r,s,i,o)}_doInsertHere(e,n,r,s,i){if(n===null){this._mainRule.acceptOverwrite(e,r,s,i);return}for(let o=0,a=this._rulesWithParentScopes.length;o<a;o++){let c=this._rulesWithParentScopes[o];if(Qe(c.parentScopes,n)===0){c.acceptOverwrite(e,r,s,i);return}}if(r===-1)r=this._mainRule.fontStyle;if(s===0)s=this._mainRule.foreground;if(i===0)i=this._mainRule.background;this._rulesWithParentScopes.push(new we(e,n,r,s,i))}},x=class t{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){let n=t.getLanguageId(e),r=t.getTokenType(e),s=t.getFontStyle(e),i=t.getForeground(e),o=t.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:i,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,r,s,i,o,a){let c=t.getLanguageId(e),l=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,h=t.getFontStyle(e),d=t.getForeground(e),f=t.getBackground(e);if(n!==0)c=n;if(r!==8)l=mn(r);if(s!==null)u=s?1:0;if(i!==-1)h=i;if(o!==0)d=o;if(a!==0)f=a;return(c<<0|l<<8|u<<10|h<<11|d<<15|f<<24)>>>0}};function dn(t){return t}function mn(t){return t}function X(t,e){let n=[],r=gn(t),s=r.next();while(s!==null){let c=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let l=o();if(n.push({matcher:l,priority:c}),s!==",")break;s=r.next()}return n;function i(){if(s==="-"){s=r.next();let c=i();return(l)=>!!c&&!c(l)}if(s==="("){s=r.next();let c=a();if(s===")")s=r.next();return c}if(De(s)){let c=[];do c.push(s),s=r.next();while(De(s));return(l)=>e(c,l)}return null}function o(){let c=[],l=i();while(l)c.push(l),l=i();return(u)=>c.every((h)=>h(u))}function a(){let c=[],l=o();while(l){if(c.push(l),s==="|"||s===",")do s=r.next();while(s==="|"||s===",");else break;l=o()}return(u)=>c.some((h)=>h(u))}}function De(t){return!!t&&!!t.match(/[\w\.:]+/)}function gn(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;let r=n[0];return n=e.exec(t),r}}}function tt(t){if(typeof t.dispose==="function")t.dispose()}var j=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},pn=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},_n=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){let e=t.toKey();if(this._seenReferenceKeys.has(e))return;this._seenReferenceKeys.add(e),this._references.push(t)}},yn=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new j(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let t=this.Q;this.Q=[];let e=new _n;for(let n of t)bn(n,this.initialScopeName,this.repo,e);for(let n of e.references)if(n instanceof j){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function bn(t,e,n,r){let s=n.lookup(t.scopeName);if(!s){if(t.scopeName===e)throw Error(`No grammar provided for <${e}>`);return}let i=n.lookup(e);if(t instanceof j)Q({baseGrammar:i,selfGrammar:s},r);else Ce(t.ruleName,{baseGrammar:i,selfGrammar:s,repository:s.repository},r);let o=n.injections(t.scopeName);if(o)for(let a of o)r.add(new j(a))}function Ce(t,e,n){if(e.repository&&e.repository[t]){let r=e.repository[t];Z([r],e,n)}}function Q(t,e){if(t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns))Z(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e);if(t.selfGrammar.injections)Z(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Z(t,e,n){for(let r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let s=r.repository?Ve({},e.repository,r.repository):e.repository;if(Array.isArray(r.patterns))Z(r.patterns,{...e,repository:s},n);let i=r.include;if(!i)continue;let o=nt(i);switch(o.kind){case 0:Q({...e,selfGrammar:e.baseGrammar},n);break;case 1:Q(e,n);break;case 2:Ce(o.ruleName,{...e,repository:s},n);break;case 3:case 4:let a=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){let c={baseGrammar:e.baseGrammar,selfGrammar:a,repository:s};if(o.kind===4)Ce(o.ruleName,c,n);else Q(c,n)}else if(o.kind===4)n.add(new pn(o.scopeName,o.ruleName));else n.add(new j(o.scopeName));break}}}var Sn=class{kind=0},wn=class{kind=1},Cn=class{constructor(t){this.ruleName=t}kind=2},kn=class{constructor(t){this.scopeName=t}kind=3},Rn=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function nt(t){if(t==="$base")return new Sn;else if(t==="$self")return new wn;let e=t.indexOf("#");if(e===-1)return new kn(t);else if(e===0)return new Cn(t.substring(1));else{let n=t.substring(0,e),r=t.substring(e+1);return new Rn(n,r)}}var Nn=/\\(\d+)/,We=/\\(\d+)/g,Cs=Symbol("RuleId"),Tn=-1,rt=-2;function st(t){return t}function it(t){return t}var W=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,r){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=J.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=J.hasCaptures(this._contentName)}get debugName(){let t=this.$location?`${Ye(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){if(!this._nameIsCapturing||this._name===null||t===null||e===null)return this._name;return J.replaceCaptures(this._name,t,e)}getContentName(t,e){if(!this._contentNameIsCapturing||this._contentName===null)return this._contentName;return J.replaceCaptures(this._contentName,t,e)}},vn=class extends W{retokenizeCapturedWithRuleId;constructor(t,e,n,r,s){super(t,e,n,r);this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(t,e){throw Error("Not supported!")}compile(t,e){throw Error("Not supported!")}compileAG(t,e,n,r){throw Error("Not supported!")}},An=class extends W{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,null);this._match=new F(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new D,this.collectPatterns(t,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},He=class extends W{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,r);this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}collectPatterns(t,e){for(let n of this.patterns)t.getRule(n).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new D,this.collectPatterns(t,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},ke=class extends W{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s,i,o,a,c,l){super(t,e,n,r);this._begin=new F(s,this.id),this.beginCaptures=i,this._end=new F(o?o:"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,r)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new D;for(let n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns);if(this.applyEndPatternLast)this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end);else this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}if(this._end.hasBackReferences)if(this.applyEndPatternLast)this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e);else this._cachedCompiledPatterns.setSource(0,e);return this._cachedCompiledPatterns}},ee=class extends W{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,r,s,i,o,a,c){super(t,e,n,r);this._begin=new F(s,this.id),this.beginCaptures=i,this.whileCaptures=a,this._while=new F(o,rt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null;if(this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new D;for(let e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,r){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,r)}_getCachedCompiledWhilePatterns(t,e){if(!this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns=new D,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while);if(this._while.hasBackReferences)this._cachedCompiledWhilePatterns.setSource(0,e?e:"￿");return this._cachedCompiledWhilePatterns}},ot=class t{static createCaptureRule(e,n,r,s,i){return e.registerRule((o)=>new vn(n,o,r,s,i))}static getCompiledRuleId(e,n,r){if(!e.id)n.registerRule((s)=>{if(e.id=s,e.match)return new An(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){if(e.repository)r=Ve({},r,e.repository);let i=e.patterns;if(typeof i>"u"&&e.include)i=[{include:e.include}];return new He(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(i,n,r))}if(e.while)return new ee(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,t._compileCaptures(e.whileCaptures||e.captures,n,r),t._compilePatterns(e.patterns,n,r));return new ke(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,t._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,r))});return e.id}static _compileCaptures(e,n,r){let s=[];if(e){let i=0;for(let o in e){if(o==="$vscodeTextmateLocation")continue;let a=parseInt(o,10);if(a>i)i=a}for(let o=0;o<=i;o++)s[o]=null;for(let o in e){if(o==="$vscodeTextmateLocation")continue;let a=parseInt(o,10),c=0;if(e[o].patterns)c=t.getCompiledRuleId(e[o],n,r);s[a]=t.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,c)}}return s}static _compilePatterns(e,n,r){let s=[];if(e)for(let i=0,o=e.length;i<o;i++){let a=e[i],c=-1;if(a.include){let l=nt(a.include);switch(l.kind){case 0:case 1:c=t.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[l.ruleName];if(u)c=t.getCompiledRuleId(u,n,r);break;case 3:case 4:let h=l.scopeName,d=l.kind===4?l.ruleName:null,f=n.getExternalGrammar(h,r);if(f)if(d){let m=f.repository[d];if(m)c=t.getCompiledRuleId(m,n,f.repository)}else c=t.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else c=t.getCompiledRuleId(a,n,r);if(c!==-1){let l=n.getRule(c),u=!1;if(l instanceof He||l instanceof ke||l instanceof ee){if(l.hasMissingPatterns&&l.patterns.length===0)u=!0}if(u)continue;s.push(c)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}},F=class t{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&typeof e==="string"){let r=e.length,s=0,i=[],o=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"){if(a+1<r){let l=e.charAt(a+1);if(l==="z")i.push(e.substring(s,a)),i.push("$(?!\\n)(?<!\\n)"),s=a+2;else if(l==="A"||l==="G")o=!0;a++}}if(this.hasAnchor=o,s===0)this.source=e;else i.push(e.substring(s,r)),this.source=i.join("")}else this.hasAnchor=!1,this.source=e;if(this.hasAnchor)this._anchorCache=this._buildAnchorCache();else this._anchorCache=null;if(this.ruleId=n,typeof this.source==="string")this.hasBackReferences=Nn.test(this.source);else this.hasBackReferences=!1}clone(){return new t(this.source,this.ruleId)}setSource(e){if(this.source===e)return;if(this.source=e,this.hasAnchor)this._anchorCache=this._buildAnchorCache()}resolveBackReferences(e,n){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let r=n.map((s)=>e.substring(s.start,s.end));return We.lastIndex=0,this.source.replace(We,(s,i)=>Xe(r[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let e=[],n=[],r=[],s=[],i,o,a,c;for(i=0,o=this.source.length;i<o;i++)if(a=this.source.charAt(i),e[i]=a,n[i]=a,r[i]=a,s[i]=a,a==="\\"){if(i+1<o){if(c=this.source.charAt(i+1),c==="A")e[i+1]="￿",n[i+1]="￿",r[i+1]="A",s[i+1]="A";else if(c==="G")e[i+1]="￿",n[i+1]="G",r[i+1]="￿",s[i+1]="G";else e[i+1]=c,n[i+1]=c,r[i+1]=c,s[i+1]=c;i++}}return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(e,n){if(!this.hasAnchor||!this._anchorCache||typeof this.source!=="string")return this.source;if(e)if(n)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;else if(n)return this._anchorCache.A0_G1;else return this._anchorCache.A0_G0}},D=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){if(this._cached)this._cached.dispose(),this._cached=null;if(this._anchorCache.A0_G0)this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null;if(this._anchorCache.A0_G1)this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null;if(this._anchorCache.A1_G0)this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null;if(this._anchorCache.A1_G1)this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){if(this._items[t].source!==e)this._disposeCaches(),this._items[t].setSource(e)}compile(t){if(!this._cached){let e=this._items.map((n)=>n.source);this._cached=new qe(t,e,this._items.map((n)=>n.ruleId))}return this._cached}compileAG(t,e,n){if(!this._hasAnchors)return this.compile(t);else if(e)if(n){if(!this._anchorCache.A1_G1)this._anchorCache.A1_G1=this._resolveAnchors(t,e,n);return this._anchorCache.A1_G1}else{if(!this._anchorCache.A1_G0)this._anchorCache.A1_G0=this._resolveAnchors(t,e,n);return this._anchorCache.A1_G0}else if(n){if(!this._anchorCache.A0_G1)this._anchorCache.A0_G1=this._resolveAnchors(t,e,n);return this._anchorCache.A0_G1}else{if(!this._anchorCache.A0_G0)this._anchorCache.A0_G0=this._resolveAnchors(t,e,n);return this._anchorCache.A0_G0}}_resolveAnchors(t,e,n){let r=this._items.map((s)=>s.resolveAnchors(e,n));return new qe(t,r,this._items.map((s)=>s.ruleId))}},qe=class{constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}scanner;dispose(){if(typeof this.scanner.dispose==="function")this.scanner.dispose()}toString(){let t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
2
+ `)}findNextMatchSync(t,e,n){let r=this.scanner.findNextMatchSync(t,e,n);if(!r)return null;return{ruleId:this.rules[r.index],captureIndices:r.captureIndices}}},Se=class{constructor(t,e){this.languageId=t,this.tokenType=e}},En=class t{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new Se(e,8),this._embeddedLanguagesMatcher=new xn(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){if(e===null)return t._NULL_SCOPE_METADATA;return this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new Se(0,0);_getBasicScopeAttributes=new Ze((e)=>{let n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Se(n,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let n=e.match(t.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},xn=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);let e=t.map(([n,r])=>Xe(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;let e=t.match(this.scopesRegExp);if(!e)return;return this.values.get(e[1])}},ks={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},at=!1,ze=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function ct(t,e,n,r,s,i,o,a){let c=e.content.length,l=!1,u=-1;if(o){let f=In(t,e,n,r,s,i);s=f.stack,r=f.linePos,n=f.isFirstLine,u=f.anchorPosition}let h=Date.now();while(!l){if(a!==0){if(Date.now()-h>a)return new ze(s,!0)}d()}return new ze(s,!1);function d(){let f=Ln(t,e,n,r,s,u);if(!f){i.produce(s,c),l=!0;return}let{captureIndices:m,matchedRuleId:y}=f,_=m&&m.length>0?m[0].end>r:!1;if(y===Tn){let p=s.getRule(t);i.produce(s,m[0].start),s=s.withContentNameScopesList(s.nameScopesList),B(t,e,n,s,i,p.endCaptures,m),i.produce(s,m[0].end);let g=s;if(s=s.parent,u=g.getAnchorPos(),!_&&g.getEnterPos()===r){s=g,i.produce(s,c),l=!0;return}}else{let p=t.getRule(y);i.produce(s,m[0].start);let g=s,b=p.getName(e.content,m),C=s.contentNameScopesList.pushAttributed(b,t);if(s=s.push(y,r,u,m[0].end===c,null,C,C),p instanceof ke){let R=p;B(t,e,n,s,i,R.beginCaptures,m),i.produce(s,m[0].end),u=m[0].end;let N=R.getContentName(e.content,m),E=C.pushAttributed(N,t);if(s=s.withContentNameScopesList(E),R.endHasBackReferences)s=s.withEndRule(R.getEndWithResolvedBackReferences(e.content,m));if(!_&&g.hasSameRuleAs(s)){s=s.pop(),i.produce(s,c),l=!0;return}}else if(p instanceof ee){let R=p;B(t,e,n,s,i,R.beginCaptures,m),i.produce(s,m[0].end),u=m[0].end;let N=R.getContentName(e.content,m),E=C.pushAttributed(N,t);if(s=s.withContentNameScopesList(E),R.whileHasBackReferences)s=s.withEndRule(R.getWhileWithResolvedBackReferences(e.content,m));if(!_&&g.hasSameRuleAs(s)){s=s.pop(),i.produce(s,c),l=!0;return}}else if(B(t,e,n,s,i,p.captures,m),i.produce(s,m[0].end),s=s.pop(),!_){s=s.safePop(),i.produce(s,c),l=!0;return}}if(m[0].end>r)r=m[0].end,n=!1}}function In(t,e,n,r,s,i){let o=s.beginRuleCapturedEOL?0:-1,a=[];for(let c=s;c;c=c.pop()){let l=c.getRule(t);if(l instanceof ee)a.push({rule:l,stack:c})}for(let c=a.pop();c;c=a.pop()){let{ruleScanner:l,findOptions:u}=Bn(c.rule,t,c.stack.endRule,n,r===o),h=l.findNextMatchSync(e,r,u);if(h){if(h.ruleId!==rt){s=c.stack.pop();break}if(h.captureIndices&&h.captureIndices.length){if(i.produce(c.stack,h.captureIndices[0].start),B(t,e,n,c.stack,i,c.rule.whileCaptures,h.captureIndices),i.produce(c.stack,h.captureIndices[0].end),o=h.captureIndices[0].end,h.captureIndices[0].end>r)r=h.captureIndices[0].end,n=!1}}else{s=c.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:o,isFirstLine:n}}function Ln(t,e,n,r,s,i){let o=Pn(t,e,n,r,s,i),a=t.getInjections();if(a.length===0)return o;let c=Gn(a,t,e,n,r,s,i);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;if(u<l||c.priorityMatch&&u===l)return c;return o}function Pn(t,e,n,r,s,i){let o=s.getRule(t),{ruleScanner:a,findOptions:c}=lt(o,t,s.endRule,n,r===i),l=a.findNextMatchSync(e,r,c);if(l)return{captureIndices:l.captureIndices,matchedRuleId:l.ruleId};return null}function Gn(t,e,n,r,s,i,o){let a=Number.MAX_VALUE,c=null,l,u=0,h=i.contentNameScopesList.getScopeNames();for(let d=0,f=t.length;d<f;d++){let m=t[d];if(!m.matcher(h))continue;let y=e.getRule(m.ruleId),{ruleScanner:_,findOptions:p}=lt(y,e,null,r,s===o),g=_.findNextMatchSync(n,s,p);if(!g)continue;let b=g.captureIndices[0].start;if(b>=a)continue;if(a=b,c=g.captureIndices,l=g.ruleId,u=m.priority,a===s)break}if(c)return{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l};return null}function lt(t,e,n,r,s){if(at){let o=t.compile(e,n),a=ut(r,s);return{ruleScanner:o,findOptions:a}}return{ruleScanner:t.compileAG(e,n,r,s),findOptions:0}}function Bn(t,e,n,r,s){if(at){let o=t.compileWhile(e,n),a=ut(r,s);return{ruleScanner:o,findOptions:a}}return{ruleScanner:t.compileWhileAG(e,n,r,s),findOptions:0}}function ut(t,e){let n=0;if(!t)n|=1;if(!e)n|=4;return n}function B(t,e,n,r,s,i,o){if(i.length===0)return;let a=e.content,c=Math.min(i.length,o.length),l=[],u=o[0].end;for(let h=0;h<c;h++){let d=i[h];if(d===null)continue;let f=o[h];if(f.length===0)continue;if(f.start>u)break;while(l.length>0&&l[l.length-1].endPos<=f.start)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0)s.produceFromScopes(l[l.length-1].scopes,f.start);else s.produce(r,f.start);if(d.retokenizeCapturedWithRuleId){let y=d.getName(a,o),_=r.contentNameScopesList.pushAttributed(y,t),p=d.getContentName(a,o),g=_.pushAttributed(p,t),b=r.push(d.retokenizeCapturedWithRuleId,f.start,-1,!1,null,_,g),C=t.createOnigString(a.substring(0,f.end));ct(t,C,n&&f.start===0,f.start,b,s,!1,0),tt(C);continue}let m=d.getName(a,o);if(m!==null){let _=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(m,t);l.push(new On(_,f.end))}}while(l.length>0)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var On=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function $n(t,e,n,r,s,i,o,a){return new jn(t,e,n,r,s,i,o,a)}function Ue(t,e,n,r,s){let i=X(e,te),o=ot.getCompiledRuleId(n,r,s.repository);for(let a of i)t.push({debugSelector:e,matcher:a.matcher,ruleId:o,grammar:s,priority:a.priority})}function te(t,e){if(e.length<t.length)return!1;let n=0;return t.every((r)=>{for(let s=n;s<e.length;s++)if(Mn(e[s],r))return n=s+1,!0;return!1})}function Mn(t,e){if(!t)return!1;if(t===e)return!0;let n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var jn=class{constructor(t,e,n,r,s,i,o,a){if(this._rootScopeName=t,this.balancedBracketSelectors=i,this._onigLib=a,this._basicScopeAttributesProvider=new En(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Ke(e,null),this._injections=null,this._tokenTypeMatchers=[],s)for(let c of Object.keys(s)){let l=X(c,te);for(let u of l)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let t of this._ruleId2desc)if(t)t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){let t={lookup:(s)=>{if(s===this._rootScopeName)return this._grammar;return this.getExternalGrammar(s)},injections:(s)=>this._grammarRepository.injections(s)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){let s=r.injections;if(s)for(let o in s)Ue(e,o,s[o],this,r);let i=this._grammarRepository.injections(n);if(i)i.forEach((o)=>{let a=this.getExternalGrammar(o);if(a){let c=a.injectionSelector;if(c)Ue(e,c,a,this,a)}})}return e.sort((s,i)=>s.priority-i.priority),e}getInjections(){if(this._injections===null)this._injections=this._collectInjections();return this._injections}registerRule(t){let e=++this._lastRuleId,n=t(st(e));return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[it(t)]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];else if(this._grammarRepository){let n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=Ke(n,e&&e.$base),this._includedGrammars[t]}return}tokenizeLine(t,e,n=0){let r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){let r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){if(this._rootId===-1)this._rootId=ot.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections();let s;if(!e||e===Re.NULL){s=!0;let l=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=x.set(0,l.languageId,l.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),d=this.getRule(this._rootId).getName(null,null),f;if(d)f=O.createRootAndLookUpScopeName(d,h,this);else f=O.createRoot("unknown",h);e=new Re(null,this._rootId,-1,-1,!1,null,f,f)}else s=!1,e.reset();t=t+`
3
+ `;let i=this.createOnigString(t),o=i.content.length,a=new Dn(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),c=ct(this,i,s,0,e,a,!0,r);return tt(i),{lineLength:o,lineTokens:a,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Ke(t,e){return t=tn(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var O=class t{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,s=e?.scopePath??null;for(let i of n)s=be.push(s,i.scopeNames),r=new t(r,s,i.encodedTokenAttributes);return r}static createRoot(e,n){return new t(null,new be(null,e),n)}static createRootAndLookUpScopeName(e,n,r){let s=r.getMetadataForScope(e),i=new be(null,e),o=r.themeProvider.themeMatch(i),a=t.mergeAttributes(n,s,o);return new t(null,i,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return t.equals(this,e)}static equals(e,n){do{if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let s=-1,i=0,o=0;if(r!==null)s=r.fontStyle,i=r.foregroundId,o=r.backgroundId;return x.set(e,n.languageId,n.tokenType,null,s,i,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return t._pushAttributed(this,e,n);let r=e.split(/ /g),s=this;for(let i of r)s=t._pushAttributed(s,i,n);return s}static _pushAttributed(e,n,r){let s=r.getMetadataForScope(n),i=e.scopePath.push(n),o=r.themeProvider.themeMatch(i),a=t.mergeAttributes(e.tokenAttributes,s,o);return new t(e,i,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let n=[],r=this;while(r&&r!==e)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}},Re=class t{constructor(e,n,r,s,i,o,a,c){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=o,this.nameScopesList=a,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}_stackElementBrand=void 0;static NULL=new t(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){if(e===null)return!1;return t._equals(this,e)}static _equals(e,n){if(e===n)return!0;if(!this._structuralEquals(e,n))return!1;return O.equals(e.contentNameScopesList,n.contentNameScopesList)}static _structuralEquals(e,n){do{if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){while(e)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){t._reset(this)}pop(){return this.parent}safePop(){if(this.parent)return this.parent;return this}push(e,n,r,s,i,o,a){return new t(this,e,n,r,s,i,o,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){if(this.parent)n=this.parent._writeString(e,n);return e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){if(this.contentNameScopesList===e)return this;return this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){if(this.endRule===e)return this;return new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;while(n&&n._enterPos===e._enterPos){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:it(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){let r=O.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new t(e,st(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,O.fromExtension(r,n.contentNameScopesList))}},Fn=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap((n)=>{if(n==="*")return this.allowAny=!0,[];return X(n,te).map((r)=>r.matcher)}),this.unbalancedBracketScopes=e.flatMap((n)=>X(n,te).map((r)=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(let e of this.unbalancedBracketScopes)if(e(t))return!1;for(let e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Dn=class{constructor(t,e,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=t?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways)s=!0;if(this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let i=t?.getScopeNames()??[];for(let o of this._tokenTypeOverrides)if(o.matcher(i))r=x.set(r,0,dn(o.type),null,-1,0,0);if(this.balancedBracketSelectors)s=this.balancedBracketSelectors.match(i)}if(s)r=x.set(r,0,8,s,-1,0,0);if(this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}let n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){if(this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1)this._tokens.pop();if(this._tokens.length===0)this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0;return this._tokens}getBinaryResult(t,e){if(this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1)this._binaryTokens.pop(),this._binaryTokens.pop();if(this._binaryTokens.length===0)this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0;let n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},Wn=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){if(this._rawGrammars.set(t.scopeName,t),e)this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,r,s){if(!this._grammars.has(t)){let i=this._rawGrammars.get(t);if(!i)return null;this._grammars.set(t,$n(t,i,e,n,r,s,this,this._onigLib))}return this._grammars.get(t)}},ht=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Wn(M.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(M.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Fn(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,e,n,r,s){let i=new yn(this._syncRegistry,t);while(i.Q.length>0)i.Q.map((o)=>this._loadSingleGrammar(o.scopeName)),i.processQueue();return this._grammarForScopeName(t,e,n,r,s)}_loadSingleGrammar(t){if(!this._ensureGrammarCache.has(t))this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0)}_doLoadSingleGrammar(t){let e=this._options.loadGrammar(t);if(e){let n=typeof this._options.getInjections==="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(t,e=[],n=0,r=null){return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,r)}_grammarForScopeName(t,e=0,n=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(t,e,n,r,s)}},ne=Re.NULL;function q(t,e){let n=typeof t==="string"?{}:{...t.colorReplacements},r=typeof t==="string"?t:t.name;for(let[s,i]of Object.entries(e?.colorReplacements||{}))if(typeof i==="string")n[s]=i;else if(s===r)Object.assign(n,i);return n}function v(t,e){if(!t)return t;return e?.[t?.toLowerCase()]||t}function pt(t){return Array.isArray(t)?t:[t]}async function Te(t){return Promise.resolve(typeof t==="function"?t():t).then((e)=>e.default||e)}function z(t){return!t||["plaintext","txt","text","plain"].includes(t)}function _t(t){return t==="ansi"||z(t)}function U(t){return t==="none"}function yt(t){return U(t)}var Hn=/(\r?\n)/g;function P(t,e=!1){if(t.length===0)return[["",0]];let n=t.split(Hn),r=0,s=[];for(let i=0;i<n.length;i+=2){let o=e?n[i]+(n[i+1]||""):n[i];s.push([o,r]),r+=n[i].length,r+=n[i+1]?.length||0}return s}var ft={light:"#333333",dark:"#bbbbbb"},dt={light:"#fffffe",dark:"#1e1e1e"},mt="__shiki_resolved";function re(t){if(t?.[mt])return t;let e={...t};if(e.tokenColors&&!e.settings)e.settings=e.tokenColors,delete e.tokenColors;e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){let a=e.settings?e.settings.find((c)=>!c.name&&!c.scope):void 0;if(a?.settings?.foreground)r=a.settings.foreground;if(a?.settings?.background)n=a.settings.background;if(!r&&e?.colors?.["editor.foreground"])r=e.colors["editor.foreground"];if(!n&&e?.colors?.["editor.background"])n=e.colors["editor.background"];if(!r)r=e.type==="light"?ft.light:ft.dark;if(!n)n=e.type==="light"?dt.light:dt.dark;e.fg=r,e.bg=n}if(!(e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope))e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let s=0,i=new Map;function o(a){if(i.has(a))return i.get(a);s+=1;let c=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;if(e.colorReplacements?.[`#${c}`])return o(a);return i.set(a,c),c}e.settings=e.settings.map((a)=>{let c=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),l=a.settings?.background&&!a.settings.background.startsWith("#");if(!c&&!l)return a;let u={...a,settings:{...a.settings}};if(c){let h=o(a.settings.foreground);e.colorReplacements[h]=a.settings.foreground,u.settings.foreground=h}if(l){let h=o(a.settings.background);e.colorReplacements[h]=a.settings.background,u.settings.background=h}return u});for(let a of Object.keys(e.colors||{}))if(a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi")){if(!e.colors[a]?.startsWith("#")){let c=o(e.colors[a]);e.colorReplacements[c]=e.colors[a],e.colors[a]=c}}return Object.defineProperty(e,mt,{enumerable:!1,writable:!1,value:!0}),e}async function bt(t){return[...new Set((await Promise.all(t.filter((e)=>!_t(e)).map(async(e)=>await Te(e).then((n)=>Array.isArray(n)?n:[n])))).flat())]}async function St(t){return(await Promise.all(t.map(async(e)=>yt(e)?null:re(await Te(e))))).filter((e)=>!!e)}function wt(t,e){if(!e)return t;if(e[t]){let n=new Set([t]);while(e[t]){if(t=e[t],n.has(t))throw new S(`Circular alias \`${[...n].join(" -> ")} -> ${t}\``);n.add(t)}}return t}var qn=class extends ht{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(t,e,n,r={}){super(t);this._resolver=t,this._themes=e,this._langs=n,this._alias=r,this._themes.map((s)=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){if(typeof t==="string")return this._resolvedThemes.get(t);else return this.loadTheme(t)}loadTheme(t){let e=re(t);if(e.name)this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null;return e}getLoadedThemes(){if(!this._loadedThemesCache)this._loadedThemesCache=[...this._resolvedThemes.keys()];return this._loadedThemesCache}setTheme(t){let e=this._textmateThemeCache.get(t);if(!e)e=M.createFromRawTheme(t),this._textmateThemeCache.set(t,e);this._syncRegistry.setTheme(e)}getGrammar(t){return t=wt(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;let e=new Set([...this._langMap.values()].filter((s)=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);let n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);let r=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases)t.aliases.forEach((s)=>{this._alias[s]=t.name});if(this._loadedLanguagesCache=null,e.size)for(let s of e)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(let r of t)this.resolveEmbeddedLanguages(r);let e=[...this._langGraph.entries()],n=e.filter(([r,s])=>!s);if(n.length){let r=e.filter(([s,i])=>{if(!i)return!1;return(i.embeddedLanguages||i.embeddedLangs)?.some((o)=>n.map(([a])=>a).includes(o))}).filter((s)=>!n.includes(s));throw new S(`Missing languages ${n.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(let[r,s]of e)this._resolver.addLanguage(s);for(let[r,s]of e)this.loadLanguage(s)}getLoadedLanguages(){if(!this._loadedLanguagesCache)this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])];return this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);let e=t.embeddedLanguages??t.embeddedLangs;if(e)for(let n of e)this._langGraph.set(n,this._langMap.get(n))}},zn=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,e){this._onigLib={createOnigScanner:(n)=>t.createScanner(n),createOnigString:(n)=>t.createString(n)},e.forEach((n)=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){if(this._langs.set(t.name,t),t.aliases)t.aliases.forEach((e)=>{this._langs.set(e,t)});if(this._scopeToLang.set(t.scopeName,t),t.injectTo)t.injectTo.forEach((e)=>{if(!this._injections.get(e))this._injections.set(e,[]);this._injections.get(e).push(t.scopeName)})}getInjections(t){let e=t.split("."),n=[];for(let r=1;r<=e.length;r++){let s=e.slice(0,r).join(".");n=[...n,...this._injections.get(s)||[]]}return n}},H=0;function ve(t){if(H+=1,t.warnings!==!1&&H>=10&&H%10===0)console.warn(`[Shiki] ${H} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new S("`engine` option is required for synchronous mode");let n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(re),s=new qn(new zn(t.engine,n),r,n,t.langAlias),i;function o(g){return wt(g,t.langAlias)}function a(g){_();let b=s.getGrammar(typeof g==="string"?g:g.name);if(!b)throw new S(`Language \`${g}\` not found, you may need to load it first`);return b}function c(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();let b=s.getTheme(g);if(!b)throw new S(`Theme \`${g}\` not found, you may need to load it first`);return b}function l(g){_();let b=c(g);if(i!==g)s.setTheme(b),i=g;return{theme:b,colorMap:s.getColorMap()}}function u(){return _(),s.getLoadedThemes()}function h(){return _(),s.getLoadedLanguages()}function d(...g){_(),s.loadLanguages(g.flat(1))}async function f(...g){return d(await bt(g))}function m(...g){_();for(let b of g.flat(1))s.loadTheme(b)}async function y(...g){return _(),m(await St(g))}function _(){if(e)throw new S("Shiki instance has been disposed")}function p(){if(e)return;e=!0,s.dispose(),H-=1}return{setTheme:l,getTheme:c,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:h,resolveLangAlias:o,loadLanguage:f,loadLanguageSync:d,loadTheme:y,loadThemeSync:m,dispose:p,[Symbol.dispose]:p}}async function Ae(t){if(!t.engine)console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[e,n,r]=await Promise.all([St(t.themes||[]),bt(t.langs||[]),t.engine]);return ve({...t,themes:e,langs:n,engine:r})}var Ct=new WeakMap;function K(t,e){Ct.set(t,e)}function G(t){return Ct.get(t)}var se=class t{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new t(Object.fromEntries(pt(n).map((r)=>[r,ne])),e)}constructor(...e){if(e.length===2){let[n,r]=e;this.lang=r,this._stacks=n}else{let[n,r,s]=e;this.lang=r,this._stacks={[s]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Un(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Un(t){let e=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);let i=s?.nameScopesList?.scopeName;if(i)e.push(i);if(s.parent)r(s.parent)}return r(t),e}function Kn(t,e){if(!(t instanceof se))throw new S("Invalid grammar state");return t.getInternalStack(e)}var Vn=/,/,Yn=/ /;function Ee(t,e,n={}){let{theme:r=t.getLoadedThemes()[0]}=n;if(z(t.resolveLangAlias(n.lang||"text"))||U(r))return P(e).map((a)=>[{content:a[0],offset:a[1]}]);let{theme:s,colorMap:i}=t.setTheme(r),o=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new S(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(s.name))throw new S(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Rt(e,o,s,i,n)}function kt(...t){if(t.length===2)return G(t[1]);let[e,n,r={}]=t,{lang:s="text",theme:i=e.getLoadedThemes()[0]}=r;if(z(s)||U(i))throw new S("Plain language does not have grammar state");if(s==="ansi")throw new S("ANSI language does not have grammar state");let{theme:o,colorMap:a}=e.setTheme(i),c=e.getLanguage(s);return new se(xe(n,c,o,a,r).stateStack,c.name,o.name)}function Rt(t,e,n,r,s){let i=xe(t,e,n,r,s),o=new se(i.stateStack,e.name,n.name);return K(i.tokens,o),i.tokens}function xe(t,e,n,r,s){let i=q(n,s),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500,includeExplanation:c=!1}=s,l=P(t),u=s.grammarState?Kn(s.grammarState,n.name)??ne:s.grammarContextCode!=null?xe(s.grammarContextCode,e,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ne,h=[],d=[];for(let f=0,m=l.length;f<m;f++){let[y,_]=l[f];if(y===""){h=[],d.push([]);continue}if(o>0&&y.length>=o){h=[],d.push([{content:y,offset:_,color:"",fontStyle:0}]);continue}let p,g,b;if(c&&c!=="tokenType")p=e.tokenizeLine(y,u,a),g=p.tokens,b=0;let C=e.tokenizeLine2(y,u,a),R=C.tokens.length/2;for(let N=0;N<R;N++){let E=C.tokens[2*N],ge=N+1<R?C.tokens[2*N+2]:y.length;if(E===ge)continue;let pe=C.tokens[2*N+1],Zt=v(r[x.getForeground(pe)],i),en=x.getFontStyle(pe),Y={content:y.substring(E,ge),offset:_+E,color:Zt,fontStyle:en};if(c==="tokenType")Y.type=x.getTokenType(pe);else if(c){let Me=[];if(c!=="scopeName")for(let T of n.settings){let L;switch(typeof T.scope){case"string":L=T.scope.split(Vn).map((_e)=>_e.trim());break;case"object":L=T.scope;break;default:continue}Me.push({settings:T,selectors:L.map((_e)=>_e.split(Yn))})}Y.explanation=[];let je=0;while(E+je<ge){let T=g[b],L=y.substring(T.startIndex,T.endIndex);je+=L.length,Y.explanation.push({content:L,scopes:c==="scopeName"?Jn(T.scopes):Qn(Me,T.scopes)}),b+=1}}h.push(Y)}d.push(h),h=[],u=C.ruleStack}return{tokens:d,stateStack:u}}function Jn(t){return t.map((e)=>({scopeName:e}))}function Qn(t,e){let n=[];for(let r=0,s=e.length;r<s;r++){let i=e[r];n[r]={scopeName:i,themeMatches:Zn(t,i,e.slice(0,r))}}return n}function gt(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function Xn(t,e,n){if(!gt(t.at(-1),e))return!1;let r=t.length-2,s=n.length-1;while(r>=0&&s>=0){if(gt(t[r],n[s]))r-=1;s-=1}if(r===-1)return!0;return!1}function Zn(t,e,n){let r=[];for(let{selectors:s,settings:i}of t)for(let o of s)if(Xn(o,e,n)){r.push(i);break}return r}function ie(t,e,n,r=Ee){let s=Object.entries(n.themes).filter((l)=>l[1]).map((l)=>({color:l[0],theme:l[1]})),i=s.map((l)=>{let u=r(t,e,{...n,theme:l.theme});return{tokens:u,state:G(u),theme:typeof l.theme==="string"?l.theme:l.theme.name}}),o=er(...i.map((l)=>l.tokens)),a=o[0].map((l,u)=>l.map((h,d)=>{let f={content:h.content,variants:{},offset:h.offset};if("includeExplanation"in n&&n.includeExplanation)f.explanation=h.explanation;return o.forEach((m,y)=>{let{content:_,explanation:p,offset:g,...b}=m[u][d];f.variants[s[y].color]=b}),f})),c=i[0].state?new se(Object.fromEntries(i.map((l)=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;if(c)K(a,c);return a}function er(...t){let e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){let s=t.map((c)=>c[r]),i=e.map(()=>[]);e.forEach((c,l)=>c.push(i[l]));let o=s.map(()=>0),a=s.map((c)=>c[0]);while(a.every((c)=>c)){let c=Math.min(...a.map((l)=>l.content.length));for(let l=0;l<n;l++){let u=a[l];if(u.content.length===c)i[l].push(u),o[l]+=1,a[l]=s[l][o[l]];else i[l].push({...u,content:u.content.slice(0,c)}),a[l]={...u,content:u.content.slice(c),offset:u.offset+c}}}}return e}var Nt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Tt={}.hasOwnProperty;function vt(t,e){let n=e||{};function r(s,...i){let{invalid:o,handlers:a}=r;if(s&&Tt.call(s,t)){let c=String(s[t]);o=Tt.call(a,c)?a[c]:r.unknown}if(o)return o.call(this,s,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var tr=/["&'<>`]/g,nr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,sr=/[|\\{}()[\]^$+*?.]/g,At=new WeakMap;function Et(t,e){if(t=t.replace(e.subset?ir(e.subset):tr,r),e.subset||e.escapeOnly)return t;return t.replace(nr,n).replace(rr,r);function n(s,i,o){return e.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),e)}function r(s,i,o){return e.format(s.charCodeAt(0),o.charCodeAt(i+1),e)}}function ir(t){let e=At.get(t);if(!e)e=or(t),At.set(t,e);return e}function or(t){let e=[],n=-1;while(++n<t.length)e.push(t[n].replace(sr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var ar=/[\dA-Fa-f]/;function xt(t,e,n){let r="&#x"+t.toString(16).toUpperCase();return n&&e&&!ar.test(String.fromCharCode(e))?r:r+";"}var cr=/\d/;function It(t,e,n){let r="&#"+String(t);return n&&e&&!cr.test(String.fromCharCode(e))?r:r+";"}var Lt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var oe={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};var Pt=["cent","copy","divide","gt","lt","not","para","times"];var Gt={}.hasOwnProperty,Ie={},ae;for(ae in oe)if(Gt.call(oe,ae))Ie[oe[ae]]=ae;var lr=/[^\dA-Za-z]/;function Bt(t,e,n,r){let s=String.fromCharCode(t);if(Gt.call(Ie,s)){let i=Ie[s],o="&"+i;if(n&&Lt.includes(i)&&!Pt.includes(i)&&(!r||e&&e!==61&&lr.test(String.fromCharCode(e))))return o;return o+";"}return""}function Ot(t,e,n){let r=xt(t,e,n.omitOptionalSemicolons),s;if(n.useNamedReferences||n.useShortestReferences)s=Bt(t,e,n.omitOptionalSemicolons,n.attribute);if((n.useShortestReferences||!s)&&n.useShortestReferences){let i=It(t,e,n.omitOptionalSemicolons);if(i.length<r.length)r=i}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function A(t,e){return Et(t,Object.assign({format:Ot},e))}var ur=/^>|^->|<!--|-->|--!>|<!-$/g,hr=[">"],fr=["<",">"];function $t(t,e,n,r){return r.settings.bogusComments?"<?"+A(t.value,Object.assign({},r.settings.characterReferences,{subset:hr}))+">":"<!--"+t.value.replace(ur,s)+"-->";function s(i){return A(i,Object.assign({},r.settings.characterReferences,{subset:fr}))}}function Mt(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}var w=jt(1),Le=jt(-1),dr=[];function jt(t){return e;function e(n,r,s){let i=n?n.children:dr,o=(r||0)+t,a=i[o];if(!s)while(a&&_r(a))o+=t,a=i[o];return a}}var mr={}.hasOwnProperty;function ce(t){return e;function e(n,r,s){return mr.call(t,n.tagName)&&t[n.tagName](n,r,s)}}var V=ce({body:pr,caption:Pe,colgroup:Pe,dd:wr,dt:Sr,head:Pe,html:gr,li:br,optgroup:Cr,option:kr,p:yr,rp:Ft,rt:Ft,tbody:Nr,td:Dt,tfoot:Tr,th:Dt,thead:Rr,tr:vr});function Pe(t,e,n){let r=w(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&_r(r.value.charAt(0)))}function gr(t,e,n){let r=w(n,e);return!r||r.type!=="comment"}function pr(t,e,n){let r=w(n,e);return!r||r.type!=="comment"}function yr(t,e,n){let r=w(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function br(t,e,n){let r=w(n,e);return!r||r.type==="element"&&r.tagName==="li"}function Sr(t,e,n){let r=w(n,e);return Boolean(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function wr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ft(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Cr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function kr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Rr(t,e,n){let r=w(n,e);return Boolean(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Nr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Tr(t,e,n){return!w(n,e)}function vr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function Dt(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}var Wt=ce({body:xr,colgroup:Ir,head:Er,html:Ar,tbody:Lr});function Ar(t){let e=w(t,-1);return!e||e.type!=="comment"}function Er(t){let e=new Set;for(let r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}let n=t.children[0];return!n||n.type==="element"}function xr(t){let e=w(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&_r(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Ir(t,e,n){let r=Le(n,e),s=w(t,-1,!0);if(n&&r&&r.type==="element"&&r.tagName==="colgroup"&&V(r,n.children.indexOf(r),n))return!1;return Boolean(s&&s.type==="element"&&s.tagName==="col")}function Lr(t,e,n){let r=Le(n,e),s=w(t,-1);if(n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&V(r,n.children.indexOf(r),n))return!1;return Boolean(s&&s.type==="element"&&s.tagName==="tr")}var le={name:[[`
4
+ \f\r &/=>`.split(""),`
5
+ \f\r "&'/=>\``.split("")],[`\x00
6
+ \f\r "&'/<=>`.split(""),`\x00
7
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
8
+ \f\r &>`.split(""),`\x00
9
+ \f\r "&'<=>\``.split("")],[`\x00
10
+ \f\r "&'<=>\``.split(""),`\x00
11
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\x00&'".split(""),"\x00\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\x00"&'.split(""),"\x00\"&'`".split("")]]};function Ht(t,e,n,r){let s=r.schema,i=s.space==="svg"?!1:r.settings.omitOptionalTags,o=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase()),a=[],c;if(s.space==="html"&&t.tagName==="svg")r.schema=qr;let l=Pr(r,t.properties),u=r.all(s.space==="html"&&t.tagName==="template"?t.content:t);if(r.schema=s,u)o=!1;if(l||!i||!Wt(t,e,n)){if(a.push("<",t.tagName,l?" "+l:""),o&&(s.space==="svg"||r.settings.closeSelfClosing)){if(c=l.charAt(l.length-1),!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")a.push(" ");a.push("/")}a.push(">")}if(a.push(u),!o&&(!i||!V(t,e,n)))a.push("</"+t.tagName+">");return a.join("")}function Pr(t,e){let n=[],r=-1,s;if(e){for(s in e)if(e[s]!==null&&e[s]!==void 0){let i=Gr(t,s,e[s]);if(i)n.push(i)}}while(++r<n.length){let i=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;if(r!==n.length-1&&i!=='"'&&i!=="'")n[r]+=" "}return n.join("")}function Gr(t,e,n){let r=Oi(t.schema,e),s=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,i=t.settings.allowDangerousCharacters?0:1,o=t.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n===""))n=!0;else if((r.boolean||r.overloadedBoolean)&&(typeof n!=="string"||n===r.attribute||n===""))n=Boolean(n);if(n===null||n===void 0||n===!1||typeof n==="number"&&Number.isNaN(n))return"";let c=A(r.attribute,Object.assign({},t.settings.characterReferences,{subset:le.name[s][i]}));if(n===!0)return c;if(n=Array.isArray(n)?(r.commaSeparated?ss:cs)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)return c;if(t.settings.preferUnquoted)a=A(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:le.unquoted[s][i]}));if(a!==n){if(t.settings.quoteSmart&&ai(n,o)>ai(n,t.alternative))o=t.alternative;a=o+A(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?le.single:le.double)[s][i],attribute:!0}))+o}return c+(a?"="+a:a)}var Br=["<","&"];function ue(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:A(t.value,Object.assign({},r.settings.characterReferences,{subset:Br}))}function qt(t,e,n,r){return r.settings.allowDangerousHtml?t.value:ue(t,e,n,r)}function zt(t,e,n,r){return r.all(t)}var Ut=vt("type",{invalid:Or,unknown:$r,handlers:{comment:$t,doctype:Mt,element:Ht,raw:qt,root:zt,text:ue}});function Or(t){throw Error("Expected node, not `"+t+"`")}function $r(t){throw Error("Cannot compile unknown node `"+t.type+"`")}var Mr={},jr={},Fr=[];function Ge(t,e){let n=e||Mr,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Dr,all:Wr,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Nt,characterReferences:n.characterReferences||jr,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?qr:ls,quote:r,alternative:s}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Dr(t,e,n){return Ut(t,e,n,this)}function Wr(t){let e=[],n=t&&t.children||Fr,r=-1;while(++r<n.length)e[r]=this.one(n[r],r,t);return e.join("")}var Kt=/\s+/g;function Jt(t,e){if(!e)return t;if(t.properties||={},t.properties.class||=[],typeof t.properties.class==="string")t.properties.class=t.properties.class.split(Kt);if(!Array.isArray(t.properties.class))t.properties.class=[];let n=Array.isArray(e)?e:e.split(Kt);for(let r of n)if(r&&!t.properties.class.includes(r))t.properties.class.push(r);return t}function Hr(t){let e=P(t,!0).map(([s])=>s);function n(s){if(s===t.length)return{line:e.length-1,character:e.at(-1).length};let i=s,o=0;for(let a of e){if(i<a.length)break;i-=a.length,o++}return{line:o,character:i}}function r(s,i){let o=0;for(let a=0;a<s;a++)o+=e[a].length;return o+=i,o}return{lines:e,indexToPos:n,posToIndex:r}}var zr=["color","background-color"];function Ur(t,e){let n=0,r=[];for(let s of e){if(s>n)r.push({...t,content:t.content.slice(n,s),offset:t.offset+n});n=s}if(n<t.content.length)r.push({...t,content:t.content.slice(n),offset:t.offset+n});return r}function Kr(t,e){let n=0,r=t.length;while(n<r){let s=n+(r-n>>1);if(t[s]<=e)n=s+1;else r=s}return n}function Vr(t,e){let n=[...e instanceof Set?e:new Set(e)].sort((r,s)=>r-s);if(!n.length)return t;return t.map((r)=>r.flatMap((s)=>{let i=s.offset+s.content.length,o=Kr(n,s.offset),a=o;while(a<n.length&&n[a]<i)a++;if(o===a)return s;let c=n.slice(o,a);for(let l=0;l<c.length;l++)c[l]-=s.offset;return Ur(s,c)}))}function Yr(t,e,n,r,s="css-vars"){let i={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map((u)=>he(t.variants[u])),a=new Set(o.flatMap((u)=>Object.keys(u))),c={},l=(u,h)=>{let d=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+e[u]+(h==="color"?"":d)};return o.forEach((u,h)=>{for(let d of a){let f=u[d]||"inherit";if(h===0&&r&&zr.includes(d))if(r==="light-dark()"&&o.length>1){let m=e.findIndex((g)=>g==="light"),y=e.findIndex((g)=>g==="dark");if(m===-1||y===-1)throw new S('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let _=o[m][d]||"inherit",p=o[y][d]||"inherit";if(c[d]=`light-dark(${_}, ${p})`,s==="css-vars")c[l(h,d)]=f}else c[d]=f;else if(s==="css-vars")c[l(h,d)]=f}}),i.htmlStyle=c,i}function he(t){let e={};if(t.color)e.color=t.color;if(t.bgColor)e["background-color"]=t.bgColor;if(t.fontStyle){if(t.fontStyle&k.Italic)e["font-style"]="italic";if(t.fontStyle&k.Bold)e["font-weight"]="bold";let n=[];if(t.fontStyle&k.Underline)n.push("underline");if(t.fontStyle&k.Strikethrough)n.push("line-through");if(n.length)e["text-decoration"]=n.join(" ")}return e}function Oe(t){if(typeof t==="string")return t;return Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}function Jr(){let t=new WeakMap;function e(n){if(!t.has(n.meta)){let s=function(o){if(typeof o==="number"){if(o<0||o>n.source.length)throw new S(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);return{...r.indexToPos(o),offset:o}}else{let a=r.lines[o.line];if(a===void 0)throw new S(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${r.lines.length}`);let c=o.character;if(c<0)c=a.length+c;if(c<0||c>a.length)throw new S(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${a.length}`);return{...o,character:c,offset:r.posToIndex(o.line,c)}}},r=Hr(n.source),i=(n.options.decorations||[]).map((o)=>({...o,start:s(o.start),end:s(o.end)}));Qr(i),t.set(n.meta,{decorations:i,converter:r,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;return Vr(n,e(this).decorations.flatMap((r)=>[r.start.offset,r.end.offset]))},code(n){if(!this.options.decorations?.length)return;let r=e(this),s=[...n.children].filter((u)=>u.type==="element"&&u.tagName==="span");if(s.length!==r.converter.lines.length)throw new S(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(u,h,d,f){let m=s[u],y="",_=-1,p=-1;if(h===0)_=0;if(d===0)p=0;if(d===Number.POSITIVE_INFINITY)p=m.children.length;if(_===-1||p===-1)for(let b=0;b<m.children.length;b++){if(y+=Qt(m.children[b]),_===-1&&y.length===h)_=b+1;if(p===-1&&y.length===d)p=b+1}if(_===-1)throw new S(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(p===-1)throw new S(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);let g=m.children.slice(_,p);if(!f.alwaysWrap&&g.length===m.children.length)a(m,f,"line");else if(!f.alwaysWrap&&g.length===1&&g[0].type==="element")a(g[0],f,"token");else{let b={type:"element",tagName:"span",properties:{},children:g};a(b,f,"wrapper"),m.children.splice(_,g.length,b)}}function o(u,h){s[u]=a(s[u],h,"line")}function a(u,h,d){let f=h.properties||{},m=h.transform||((y)=>y);if(u.tagName=h.tagName||"span",u.properties={...u.properties,...f,class:u.properties.class},h.properties?.class)Jt(u,h.properties.class);return u=m(u,d)||u,u}let c=[],l=r.decorations.sort((u,h)=>h.start.offset-u.start.offset||u.end.offset-h.end.offset);for(let u of l){let{start:h,end:d}=u;if(h.line===d.line)i(h.line,h.character,d.character,u);else if(h.line<d.line){i(h.line,h.character,Number.POSITIVE_INFINITY,u);for(let f=h.line+1;f<d.line;f++)c.unshift(()=>o(f,u));i(d.line,0,d.character,u)}}c.forEach((u)=>u())}}}function Qr(t){for(let e=0;e<t.length;e++){let n=t[e];if(n.start.offset>n.end.offset)throw new S(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){let s=t[r],i=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,o=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,c=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(i||o||a||c){if(i&&o)continue;if(a&&c)continue;if(a&&n.start.offset===n.end.offset)continue;if(o&&s.start.offset===s.end.offset)continue;throw new S(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Qt(t){if(t.type==="text")return t.value;if(t.type==="element")return t.children.map(Qt).join("");return""}var Xr=[Jr()];function fe(t){let e=Zr(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Xr]}function Zr(t){let e=[],n=[],r=[];for(let s of t)switch(s.enforce){case"pre":e.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:e,post:n,normal:r}}var I=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Be={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function es(t,e){let n=t.indexOf("\x1B",e);if(n!==-1){if(t[n+1]==="["){let r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}}return{position:t.length}}function Vt(t){let e=t.shift();if(e==="2"){let n=t.splice(0,3).map((r)=>Number.parseInt(r));if(n.length!==3||n.some((r)=>Number.isNaN(r)))return;return{type:"rgb",rgb:n}}else if(e==="5"){let n=t.shift();if(n)return{type:"table",index:Number(n)}}}function ts(t){let e=[];while(t.length>0){let n=t.shift();if(!n)continue;let r=Number.parseInt(n);if(Number.isNaN(r))continue;if(r===0)e.push({type:"resetAll"});else if(r<=9){if(Be[r])e.push({type:"setDecoration",value:Be[r]})}else if(r<=29){let s=Be[r-20];if(s){if(e.push({type:"resetDecoration",value:s}),s==="dim")e.push({type:"resetDecoration",value:"bold"})}}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:I[r-30]}});else if(r===38){let s=Vt(t);if(s)e.push({type:"setForegroundColor",value:s})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:I[r-40]}});else if(r===48){let s=Vt(t);if(s)e.push({type:"setBackgroundColor",value:s})}else if(r===49)e.push({type:"resetBackgroundColor"});else if(r===53)e.push({type:"setDecoration",value:"overline"});else if(r===55)e.push({type:"resetDecoration",value:"overline"});else if(r>=90&&r<=97)e.push({type:"setForegroundColor",value:{type:"named",name:I[r-90+8]}});else if(r>=100&&r<=107)e.push({type:"setBackgroundColor",value:{type:"named",name:I[r-100+8]}})}return e}function ns(){let t=null,e=null,n=new Set;return{parse(r){let s=[],i=0;do{let o=es(r,i),a=o.sequence?r.substring(i,o.startPosition):r.substring(i);if(a.length>0)s.push({value:a,foreground:t,background:e,decorations:new Set(n)});if(o.sequence){let c=ts(o.sequence);for(let l of c)if(l.type==="resetAll")t=null,e=null,n.clear();else if(l.type==="resetForegroundColor")t=null;else if(l.type==="resetBackgroundColor")e=null;else if(l.type==="resetDecoration")n.delete(l.value);for(let l of c)if(l.type==="setForegroundColor")t=l.value;else if(l.type==="setBackgroundColor")e=l.value;else if(l.type==="setDecoration")n.add(l.value)}i=o.position}while(i<r.length);return s}}}var rs={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function is(t=rs){function e(a){return t[a]}function n(a){return`#${a.map((c)=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let l=0;l<I.length;l++)r.push(e(I[l]));let a=[0,95,135,175,215,255];for(let l=0;l<6;l++)for(let u=0;u<6;u++)for(let h=0;h<6;h++)r.push(n([a[l],a[u],a[h]]));let c=8;for(let l=0;l<24;l++,c+=10)r.push(n([c,c,c]));return r}function i(a){return s()[a]}function o(a){switch(a.type){case"named":return e(a.name);case"rgb":return n(a.rgb);case"table":return i(a.index)}}return{value:o}}var os=/#([0-9a-f]{3,8})/i,as=/var\((--[\w-]+-ansi-[\w-]+)\)/,us={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function hs(t,e,n){let r=q(t,n),s=P(e),i=is(Object.fromEntries(I.map((a)=>{let c=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`;return[a,t.colors?.[c]||us[a]]}))),o=ns();return s.map((a)=>o.parse(a[0]).map((c)=>{let l,u;if(c.decorations.has("reverse"))l=c.background?i.value(c.background):t.bg,u=c.foreground?i.value(c.foreground):t.fg;else l=c.foreground?i.value(c.foreground):t.fg,u=c.background?i.value(c.background):void 0;if(l=v(l,r),u=v(u,r),c.decorations.has("dim"))l=fs(l);let h=k.None;if(c.decorations.has("bold"))h|=k.Bold;if(c.decorations.has("italic"))h|=k.Italic;if(c.decorations.has("underline"))h|=k.Underline;if(c.decorations.has("strikethrough"))h|=k.Strikethrough;return{content:c.value,offset:a[1],color:l,bgColor:u,fontStyle:h}}))}function fs(t){let e=t.match(os);if(e){let r=e[1];if(r.length===8){let s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else if(r.length===6)return`#${r}80`;else if(r.length===4){let s=r[0],i=r[1],o=r[2],a=r[3];return`#${s}${s}${i}${i}${o}${o}${Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){let s=r[0],i=r[1],o=r[2];return`#${s}${s}${i}${i}${o}${o}80`}}let n=t.match(as);if(n)return`var(${n[1]}-dim)`;return t}function $e(t,e,n={}){let r=t.resolveLangAlias(n.lang||"text"),{theme:s=t.getLoadedThemes()[0]}=n;if(!z(r)&&!U(s)&&r==="ansi"){let{theme:i}=t.setTheme(s);return hs(i,e,n)}return Ee(t,e,n)}function de(t,e,n){let r,s,i,o,a,c;if("themes"in n){let{defaultColor:l="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,d=Object.entries(n.themes).filter((p)=>p[1]).map((p)=>({color:p[0],theme:p[1]})).sort((p,g)=>p.color===l?-1:g.color===l?1:0);if(d.length===0)throw new S("`themes` option must not be empty");let f=ie(t,e,n,$e);if(c=G(f),l&&l!=="light-dark()"&&!d.some((p)=>p.color===l))throw new S(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=d.map((p)=>t.getTheme(p.theme)),y=d.map((p)=>p.color);if(i=f.map((p)=>p.map((g)=>Yr(g,y,u,l,h))),c)K(i,c);let _=d.map((p)=>q(p.theme,n));s=Yt(d,m,_,u,l,"fg",h),r=Yt(d,m,_,u,l,"bg",h),o=`shiki-themes ${m.map((p)=>p.name).join(" ")}`,a=l?void 0:[s,r].join(";")}else if("theme"in n){let l=q(n.theme,n);i=$e(t,e,n);let u=t.getTheme(n.theme);r=v(u.bg,l),s=v(u.fg,l),o=u.name,c=G(i)}else throw new S("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:s,bg:r,themeName:o,rootStyle:a,grammarState:c}}function Yt(t,e,n,r,s,i,o){return t.map((a,c)=>{let l=v(e[c][i],n[c])||"inherit",u=`${r+a.color}${i==="bg"?"-bg":""}:${l}`;if(c===0&&s){if(s==="light-dark()"&&t.length>1){let h=t.findIndex((f)=>f.color==="light"),d=t.findIndex((f)=>f.color==="dark");if(h===-1||d===-1)throw new S('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${v(e[h][i],n[h])||"inherit"}, ${v(e[d][i],n[d])||"inherit"});${u}`}return l}if(o==="css-vars")return u;return null}).filter((a)=>!!a).join(";")}var Xt=/^\s+$/,ds=/^(\s*)(.*?)(\s*)$/;function me(t,e,n,r={meta:{},options:n,codeToHast:(s,i)=>me(t,s,i),codeToTokens:(s,i)=>de(t,s,i)}){let s=e;for(let m of fe(n))s=m.preprocess?.call(r,s,n)||s;let{tokens:i,fg:o,bg:a,themeName:c,rootStyle:l,grammarState:u}=de(t,s,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:d=!1}=n;if(h===!0)i=gs(i);else if(h==="never")i=ps(i);if(d)i=_s(i);let f={...r,get source(){return s}};for(let m of fe(n))i=m.tokens?.call(f,i)||i;return ms(i,{...n,fg:o,bg:a,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},f,u)}function ms(t,e,n,r=G(t)){let s=fe(e),i=[],o={type:"root",children:[]},{structure:a="classic",tabindex:c="0"}=e,l={class:`shiki ${e.themeName||""}`};if(e.rootStyle!==!1)if(e.rootStyle!=null)l.style=e.rootStyle;else l.style=`background-color:${e.bg};color:${e.fg}`;if(c!==!1&&c!=null)l.tabindex=c.toString();for(let[y,_]of Object.entries(e.meta||{}))if(!y.startsWith("_"))l[y]=_;let u={type:"element",tagName:"pre",properties:l,children:[],data:e.data},h={type:"element",tagName:"code",properties:{},children:i},d=[],f={...n,structure:a,addClassToHast:Jt,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return o},get pre(){return u},get code(){return h},get lines(){return d}};if(t.forEach((y,_)=>{if(_){if(a==="inline")o.children.push({type:"element",tagName:"br",properties:{},children:[]});else if(a==="classic")i.push({type:"text",value:`
12
+ `})}let p={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(let b of y){let C={type:"element",tagName:"span",properties:{...b.htmlAttrs},children:[{type:"text",value:b.content}]},R=Oe(b.htmlStyle||he(b));if(R)C.properties.style=R;for(let N of s)C=N?.span?.call(f,C,_+1,g,p,b)||C;if(a==="inline")o.children.push(C);else if(a==="classic")p.children.push(C);g+=b.content.length}if(a==="classic"){for(let b of s)p=b?.line?.call(f,p,_+1)||p;d.push(p),i.push(p)}else if(a==="inline")d.push(p)}),a==="classic"){for(let y of s)h=y?.code?.call(f,h)||h;u.children.push(h);for(let y of s)u=y?.pre?.call(f,u)||u;o.children.push(u)}else if(a==="inline"){let y=[],_={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let g of o.children)if(g.type==="element"&&g.tagName==="br")y.push(_),_={type:"element",tagName:"span",properties:{class:"line"},children:[]};else if(g.type==="element"||g.type==="text")_.children.push(g);y.push(_);let p={type:"element",tagName:"code",properties:{},children:y};for(let g of s)p=g?.code?.call(f,p)||p;o.children=[];for(let g=0;g<p.children.length;g++){if(g>0)o.children.push({type:"element",tagName:"br",properties:{},children:[]});let b=p.children[g];if(b.type==="element")o.children.push(...b.children)}}let m=o;for(let y of s)m=y?.root?.call(f,m)||m;if(r)K(m,r);return m}function gs(t){return t.map((e)=>{let n=[],r="",s;return e.forEach((i,o)=>{let a=!(i.fontStyle&&(i.fontStyle&k.Underline||i.fontStyle&k.Strikethrough));if(a&&Xt.test(i.content)&&e[o+1]){if(s===void 0)s=i.offset;r+=i.content}else if(r){if(a)n.push({...i,offset:s,content:r+i.content});else n.push({content:r,offset:s},i);s=void 0,r=""}else n.push(i)}),n})}function ps(t){return t.map((e)=>e.flatMap((n)=>{if(Xt.test(n.content))return n;let r=n.content.match(ds);if(!r)return n;let[,s,i,o]=r;if(!s&&!o)return n;let a=[{...n,offset:n.offset+s.length,content:i}];if(s)a.unshift({content:s,offset:n.offset});if(o)a.push({content:o,offset:n.offset+s.length+i.length});return a}))}function _s(t){return t.map((e)=>{let n=[];for(let r of e){if(n.length===0){n.push({...r});continue}let s=n.at(-1),i=Oe(s.htmlStyle||he(s)),o=Oe(r.htmlStyle||he(r)),a=s.fontStyle&&(s.fontStyle&k.Underline||s.fontStyle&k.Strikethrough),c=r.fontStyle&&(r.fontStyle&k.Underline||r.fontStyle&k.Strikethrough);if(!a&&!c&&i===o)s.content+=r.content;else n.push({...r})}return n})}var ys=Ge;function bs(t,e,n){let r={meta:{},options:n,codeToHast:(i,o)=>me(t,i,o),codeToTokens:(i,o)=>de(t,i,o)},s=ys(me(t,e,n,r));for(let i of fe(n))s=i.postprocess?.call(r,s,n)||s;return s}async function No(t){let e=await Ae(t);return{getLastGrammarState:(...n)=>kt(e,...n),codeToTokensBase:(n,r)=>$e(e,n,r),codeToTokensWithThemes:(n,r)=>ie(e,n,r),codeToTokens:(n,r)=>de(e,n,r),codeToHast:(n,r)=>me(e,n,r),codeToHtml:(n,r)=>bs(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}export{No as createHighlighterCore};
Binary file
Binary file