@bkm016/basalt 0.1.12 → 0.1.14

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 (288) hide show
  1. package/README.md +3 -2
  2. package/chunk-03wzwnn6.js +2 -0
  3. package/{chunk-7jezts2n.js → chunk-06s9pr82.js} +2 -2
  4. package/{chunk-eyrtbbdd.js → chunk-0crbhhna.js} +1 -1
  5. package/{chunk-kpe7pnhy.js → chunk-0rasqm8y.js} +4 -4
  6. package/chunk-1w4nh5t6.js +5 -0
  7. package/{chunk-02d3x4mj.js → chunk-2eaehpp6.js} +3 -3
  8. package/{chunk-jj4hqbrx.js → chunk-30dxcr91.js} +3 -3
  9. package/{chunk-nw1xpt3s.js → chunk-343jsm46.js} +2 -2
  10. package/{chunk-bk4rpnm8.js → chunk-37ndxehw.js} +2 -2
  11. package/chunk-38g4jd6v.js +5 -0
  12. package/{chunk-0fc9apfn.js → chunk-39mh7h58.js} +23 -23
  13. package/{chunk-6mges89p.js → chunk-44a7f5ta.js} +5 -5
  14. package/chunk-44b9yx79.js +2 -0
  15. package/{chunk-jn5pqy5v.js → chunk-46vy2m29.js} +1 -1
  16. package/{chunk-2kxnw7vs.js → chunk-4f6p4n7k.js} +2 -2
  17. package/chunk-4w8j6n7z.js +2 -0
  18. package/{chunk-qs8zzg50.js → chunk-4yxd2kg1.js} +2 -2
  19. package/{chunk-ksk49hv0.js → chunk-59hg9a84.js} +1 -1
  20. package/chunk-62ebm0bn.js +2 -0
  21. package/chunk-6ef085c1.js +20 -0
  22. package/chunk-6hx9y86d.js +3 -0
  23. package/chunk-73t051r6.js +2 -0
  24. package/{chunk-1h34mzh7.js → chunk-7mgkpn94.js} +7 -7
  25. package/{chunk-w0rr66z7.js → chunk-81x8r8w4.js} +1 -1
  26. package/chunk-86yr2c0r.js +3 -0
  27. package/{chunk-ypqjfv3a.js → chunk-8np9b2y8.js} +2 -2
  28. package/{chunk-hbnmymaq.js → chunk-9ew8cap5.js} +2 -2
  29. package/chunk-9v3b7jjv.js +2 -0
  30. package/{chunk-01nve4qy.js → chunk-9vam83py.js} +1 -1
  31. package/chunk-9xjecw6c.js +2 -0
  32. package/{chunk-6sz5q3df.js → chunk-b2wpj81x.js} +2 -2
  33. package/chunk-b516bp7n.js +3 -0
  34. package/chunk-bjvv3403.js +2 -0
  35. package/{chunk-hc300148.js → chunk-c8g9jjqs.js} +2 -2
  36. package/chunk-cs91rmbf.js +18 -0
  37. package/chunk-drett6hb.js +2 -0
  38. package/{chunk-fy82qxa1.js → chunk-edcf97ka.js} +1 -1
  39. package/chunk-en7z6ne5.js +3 -0
  40. package/{chunk-p2pmdbt2.js → chunk-evnqkyt7.js} +12 -12
  41. package/{chunk-8mezk0cb.js → chunk-g2etemv5.js} +2 -2
  42. package/{chunk-n0ybj4h9.js → chunk-g5p9mj1r.js} +2 -2
  43. package/{chunk-eq4wqxzt.js → chunk-ge38dhv9.js} +2 -2
  44. package/chunk-hggam3je.js +2 -0
  45. package/chunk-k38jaz6c.js +7 -0
  46. package/{chunk-qfcr5g35.js → chunk-kcn05erf.js} +3 -3
  47. package/{chunk-rwks9zaw.js → chunk-m5km74eq.js} +2 -2
  48. package/{chunk-jpnf71q7.js → chunk-mfb3dgs8.js} +2 -2
  49. package/{chunk-vjne04dp.js → chunk-mh4bjtfs.js} +4 -4
  50. package/chunk-nysatg77.js +4161 -0
  51. package/chunk-p886jr17.js +25 -0
  52. package/{chunk-82v8jh1h.js → chunk-pdt65s31.js} +2 -2
  53. package/chunk-pjgt1bdx.js +3 -0
  54. package/{chunk-tvm4zmgj.js → chunk-pyj6avd5.js} +2 -2
  55. package/chunk-qd2enpr2.js +3 -0
  56. package/{chunk-cbgpymt4.js → chunk-qe76naq9.js} +1 -1
  57. package/{chunk-ntks40jd.js → chunk-qjnx4fsn.js} +5 -5
  58. package/{chunk-fhxy6y34.js → chunk-qs161f2q.js} +2 -2
  59. package/{chunk-v7wcchy2.js → chunk-rghqprav.js} +1 -1
  60. package/chunk-t33bm5aa.js +2 -0
  61. package/{chunk-nrsd810j.js → chunk-tfhp09nj.js} +2 -2
  62. package/chunk-vd5332ps.js +2 -0
  63. package/{chunk-3pf1d62g.js → chunk-vqm94hz2.js} +2 -2
  64. package/{chunk-85v69h91.js → chunk-w55cnj0f.js} +2 -2
  65. package/{chunk-1zj3zvw5.js → chunk-wnd3y4c0.js} +4 -4
  66. package/{chunk-stj493dn.js → chunk-xafx1p7z.js} +2 -2
  67. package/{chunk-9as0p561.js → chunk-xf7zw32f.js} +14 -14
  68. package/chunk-xk3t5ves.js +482 -0
  69. package/{chunk-5wnmbc1b.js → chunk-xq74x4gc.js} +2 -2
  70. package/chunk-y0274xr2.js +7 -0
  71. package/{chunk-ejjem0tc.js → chunk-z9p6s986.js} +6 -6
  72. package/chunk-zcwz44db.js +2 -0
  73. package/{chunk-w6f2r052.js → chunk-zhyzhekt.js} +1 -1
  74. package/compiled.js +85 -12
  75. package/package.json +1 -1
  76. package/ui-test-worker.js +65 -65
  77. package/web/chunk-15g9pnzy.js +1 -0
  78. package/web/{chunk-4f6a8dsk.js → chunk-17wwzrp4.js} +1 -1
  79. package/web/chunk-19tkjg9w.js +1 -0
  80. package/web/chunk-1y387f45.js +1 -0
  81. package/web/{chunk-30aeb767.js → chunk-25sn840r.js} +2 -2
  82. package/web/chunk-26sp6jre.js +1 -0
  83. package/web/{chunk-81s15c2e.js → chunk-2c7kxr4v.js} +2 -2
  84. package/web/{chunk-wvrs986a.js → chunk-2gsf89vs.js} +3 -3
  85. package/web/{chunk-3qxxrwsp.js → chunk-2gvz70wr.js} +10 -10
  86. package/web/chunk-2s3my1jn.js +1 -0
  87. package/web/{chunk-ar6jnhm5.js → chunk-32dh0hft.js} +1 -1
  88. package/web/{chunk-3rkkp6ed.js → chunk-3haw3wcw.js} +5 -5
  89. package/web/{chunk-hn8m1vsg.js → chunk-3rxhs9qm.js} +7 -7
  90. package/web/chunk-410qdvmv.js +1 -0
  91. package/web/chunk-4qehf2xx.js +2 -0
  92. package/web/{chunk-qdd3bx8q.js → chunk-51b8n5e1.js} +1 -1
  93. package/web/chunk-54mgncq3.js +1 -0
  94. package/web/{chunk-r6kk4vp1.js → chunk-59g6rrew.js} +4 -4
  95. package/web/{chunk-7tkgbbf9.js → chunk-5d9veaef.js} +2 -2
  96. package/web/chunk-6481wt3t.js +1 -0
  97. package/web/chunk-6ehecat3.js +1 -0
  98. package/web/chunk-6m8hq6ph.js +1 -0
  99. package/web/chunk-73941p08.js +1 -0
  100. package/web/{chunk-aeymdtm1.js → chunk-783s8jds.js} +3 -3
  101. package/web/{chunk-g4zm0crw.js → chunk-78m018ya.js} +1 -1
  102. package/web/chunk-797bh7z6.js +39 -0
  103. package/web/{chunk-hva7xyne.js → chunk-7hpqrfgg.js} +2 -2
  104. package/web/{chunk-enwfd8d5.js → chunk-7kywe73f.js} +2 -2
  105. package/web/chunk-7qq1ypvj.js +1 -0
  106. package/web/{chunk-xbyrgyy0.js → chunk-7wzszsf5.js} +2 -2
  107. package/web/{chunk-aa46mrgh.js → chunk-7zfqppsx.js} +2 -2
  108. package/web/{chunk-d73zkc4q.js → chunk-8sr9w61v.js} +3 -3
  109. package/web/{chunk-v34mr9ky.js → chunk-8ttp8fh3.js} +6 -6
  110. package/web/chunk-8zg89764.js +1 -0
  111. package/web/{chunk-2cyzaqjy.js → chunk-988e9wx6.js} +3 -3
  112. package/web/{chunk-k4dnjf8n.js → chunk-9h0f3gar.js} +3 -3
  113. package/web/chunk-9vr6hpmk.js +34 -0
  114. package/web/chunk-9vrp249f.js +2 -0
  115. package/web/{chunk-td83xf12.js → chunk-a205cj09.js} +2 -2
  116. package/web/{chunk-gkmaryr4.js → chunk-ahn2frbt.js} +1 -1
  117. package/web/{chunk-5g8md2wg.js → chunk-aknsydan.js} +5 -5
  118. package/web/chunk-at0xtfhy.js +1 -0
  119. package/web/chunk-bahccwb9.js +1 -0
  120. package/web/{chunk-rdr6wt22.js → chunk-c7fqrs8j.js} +4 -4
  121. package/web/chunk-d3hyf9yd.js +1 -0
  122. package/web/chunk-dcegr80c.js +1 -0
  123. package/web/{chunk-act3rr85.js → chunk-dwtatme7.js} +1 -1
  124. package/web/{chunk-5np514v5.js → chunk-ex8rmqn1.js} +12 -12
  125. package/web/{chunk-g488hxx0.js → chunk-faskbfjf.js} +3 -3
  126. package/web/chunk-feanedhx.js +1 -0
  127. package/web/{chunk-e94pd9rr.js → chunk-ffywf5w5.js} +10 -10
  128. package/web/chunk-fx3d48e6.js +1 -0
  129. package/web/{chunk-ncfzmf2g.js → chunk-g3szt4c4.js} +1 -1
  130. package/web/chunk-g7bcntpm.js +1 -0
  131. package/web/chunk-gr1tjqbd.js +1 -0
  132. package/web/{chunk-bygwbpvq.js → chunk-hbwxtbq3.js} +2 -2
  133. package/web/{chunk-gten0rpx.js → chunk-hdtvrh0f.js} +2 -2
  134. package/web/chunk-j031r08w.js +1 -0
  135. package/web/{chunk-d57fm7k0.js → chunk-j6wcszxq.js} +2 -2
  136. package/web/{chunk-885kpj14.js → chunk-jdx7qp2w.js} +2 -2
  137. package/web/chunk-jge7nn3s.js +1 -0
  138. package/web/chunk-jy8zat04.js +1 -0
  139. package/web/{chunk-7vgh17es.js → chunk-jzge034r.js} +1 -1
  140. package/web/{chunk-fj753yzt.js → chunk-k4qrqmdk.js} +2 -2
  141. package/web/chunk-k8s7kye3.js +1 -0
  142. package/web/{chunk-2jfesv7m.js → chunk-k9fyqrhp.js} +2 -2
  143. package/web/chunk-k9zn1n6d.js +1 -0
  144. package/web/chunk-kg3tksv7.js +1 -0
  145. package/web/chunk-kk5rw81s.js +2 -0
  146. package/web/{chunk-xpecre7w.js → chunk-kpmd893m.js} +4 -4
  147. package/web/chunk-md9j949p.js +1 -0
  148. package/web/{chunk-jeafmjsm.js → chunk-mn2wv9ye.js} +6 -6
  149. package/web/{chunk-dndd757x.js → chunk-mv7jgmnb.js} +3 -3
  150. package/web/{chunk-c3fty2c2.js → chunk-mvm68qtt.js} +7 -7
  151. package/web/chunk-nbcpbqq4.js +1 -0
  152. package/web/{chunk-b99k8q22.js → chunk-nfpff7yf.js} +8 -8
  153. package/web/chunk-nk7jkpam.js +1 -0
  154. package/web/chunk-nmvt1rn3.js +1 -0
  155. package/web/chunk-npw1s1h2.js +1 -0
  156. package/web/chunk-npyrdsf8.css +1 -0
  157. package/web/chunk-nzzxv84v.js +8 -0
  158. package/web/{chunk-n9v14vyd.js → chunk-p4pqtybm.js} +22 -22
  159. package/web/{chunk-jyf7a7yp.js → chunk-p79c7aak.js} +1 -1
  160. package/web/{chunk-6jb2zyp6.js → chunk-pafw34vg.js} +2 -2
  161. package/web/{chunk-y2rzeb4v.js → chunk-pf65cank.js} +2 -2
  162. package/web/{chunk-d1btrqmw.js → chunk-ppa21760.js} +1 -1
  163. package/web/{chunk-60mym60n.js → chunk-ptpkv0te.js} +1 -1
  164. package/web/{chunk-yjs6jmdb.js → chunk-qcdej581.js} +3 -3
  165. package/web/{chunk-q1zxvjhs.js → chunk-qftcdcps.js} +2 -2
  166. package/web/{chunk-4wwd3pfz.js → chunk-qv1w36ja.js} +2 -2
  167. package/web/chunk-r8p741qj.js +2 -0
  168. package/web/chunk-rcexbkjj.js +1 -0
  169. package/web/{chunk-kerfb21g.js → chunk-rjakb64x.js} +1 -1
  170. package/web/{chunk-k0cg4n2k.js → chunk-s0xy00v5.js} +2 -2
  171. package/web/{chunk-ym7kv2hs.js → chunk-s2ps0ct5.js} +1 -1
  172. package/web/{chunk-h24ybwp6.js → chunk-s45g7fp6.js} +1 -1
  173. package/web/{chunk-pjpre6de.js → chunk-s70aj1v5.js} +6 -6
  174. package/web/chunk-say8bvkc.js +1 -0
  175. package/web/{chunk-qh62nkem.js → chunk-sd3cdqcm.js} +2 -2
  176. package/web/{chunk-6f2sz84q.js → chunk-sgkevxdf.js} +2 -2
  177. package/web/chunk-sjffrcq9.js +1 -0
  178. package/web/{chunk-19zd0tye.js → chunk-snaepr87.js} +8 -8
  179. package/web/{chunk-3n9ypydh.js → chunk-tdzh6nsz.js} +2 -2
  180. package/web/{chunk-wqzbxzk3.js → chunk-tjd8qp87.js} +1 -1
  181. package/web/chunk-tncc9e57.js +1 -0
  182. package/web/chunk-ty2rmwda.js +1142 -0
  183. package/web/chunk-v22hp18w.js +1 -0
  184. package/web/chunk-ve9dz857.js +2 -0
  185. package/web/{chunk-80z8s8zb.js → chunk-vg346gxc.js} +2 -2
  186. package/web/{chunk-hqxc9m07.js → chunk-vpegzgzb.js} +10 -10
  187. package/web/{chunk-pzg25qqe.js → chunk-vvvd3grf.js} +2 -2
  188. package/web/{chunk-qp3tjhaq.js → chunk-vwv6pqy7.js} +1 -1
  189. package/web/{chunk-3psgr0q8.js → chunk-vxm7n7w6.js} +20 -20
  190. package/web/{chunk-h754ntg7.js → chunk-w5q7978e.js} +1 -1
  191. package/web/{chunk-xvfeq8v2.js → chunk-we4mhfmq.js} +12 -12
  192. package/web/{chunk-8539865x.js → chunk-wfgrdabk.js} +1 -1
  193. package/web/{chunk-sdr5wa4z.js → chunk-wkhj4hsw.js} +4 -4
  194. package/web/{chunk-7ksg3ccg.js → chunk-wspk8qbg.js} +2 -2
  195. package/web/{chunk-hxbfkdjd.js → chunk-xf1hnpme.js} +1 -1
  196. package/web/{chunk-v1hfbjz9.js → chunk-xhqvzmfj.js} +5 -5
  197. package/web/chunk-xq70hgre.js +1 -0
  198. package/web/chunk-xtss82z2.js +1 -0
  199. package/web/{chunk-yf8ykk4v.js → chunk-y3tb6410.js} +3 -3
  200. package/web/{chunk-7v85yvb2.js → chunk-y6mcxfm0.js} +1 -1
  201. package/web/{chunk-7adsmqv6.js → chunk-ya696bfe.js} +2 -2
  202. package/web/{chunk-w9gnqkez.js → chunk-ysw5fs45.js} +3 -3
  203. package/web/chunk-zkq1xknc.js +1 -0
  204. package/web/chunk-zkv025s5.js +1 -0
  205. package/web/{chunk-8cnjd0f2.js → chunk-zpzvz973.js} +28 -28
  206. package/web/{chunk-b5zf1hs3.js → chunk-zsat72qd.js} +120 -120
  207. package/web/chunk-zx3h7v72.js +1 -0
  208. package/web/index.html +1 -1
  209. package/worker.js +1 -1
  210. package/chunk-1xfv4bd7.js +0 -2
  211. package/chunk-2fyjph3f.js +0 -2
  212. package/chunk-37zystxb.js +0 -25
  213. package/chunk-3k627vf2.js +0 -3
  214. package/chunk-4gtgqcct.js +0 -5
  215. package/chunk-7er5pz7s.js +0 -479
  216. package/chunk-7g5smgjj.js +0 -2
  217. package/chunk-7m3jagqn.js +0 -2
  218. package/chunk-9c4gdg1q.js +0 -3
  219. package/chunk-b2bxqeb4.js +0 -2
  220. package/chunk-bpw6q7g0.js +0 -3
  221. package/chunk-bwawt15q.js +0 -3
  222. package/chunk-cdw03j4t.js +0 -20
  223. package/chunk-ch1r3ted.js +0 -2
  224. package/chunk-cmwdjes8.js +0 -18
  225. package/chunk-db7ws33a.js +0 -7
  226. package/chunk-e1x629v0.js +0 -5
  227. package/chunk-j64dc767.js +0 -3
  228. package/chunk-m4bg1apa.js +0 -7
  229. package/chunk-nhm9z3d8.js +0 -2
  230. package/chunk-pnspvnyd.js +0 -2
  231. package/chunk-qnkrrwmg.js +0 -2
  232. package/chunk-r4gm8ngh.js +0 -2
  233. package/chunk-rks90mh1.js +0 -2
  234. package/chunk-t7te60m7.js +0 -2
  235. package/chunk-tv52xajf.js +0 -2
  236. package/chunk-wqqjzsjt.js +0 -3983
  237. package/chunk-xef4642x.js +0 -3
  238. package/web/chunk-04drx71p.js +0 -1
  239. package/web/chunk-0mdf1qja.js +0 -1
  240. package/web/chunk-0rdgt4jb.css +0 -1
  241. package/web/chunk-1m0kp0g3.js +0 -8
  242. package/web/chunk-3j2tcphs.js +0 -1
  243. package/web/chunk-3k9h7a73.js +0 -1142
  244. package/web/chunk-3m1bb2fw.js +0 -1
  245. package/web/chunk-55nvm2mj.js +0 -1
  246. package/web/chunk-5dkqfnh7.js +0 -2
  247. package/web/chunk-7ky5nrrr.js +0 -1
  248. package/web/chunk-8sdjgv3k.js +0 -1
  249. package/web/chunk-9bxtzwtc.js +0 -1
  250. package/web/chunk-9jy8nc4r.js +0 -1
  251. package/web/chunk-aebrw6cv.js +0 -39
  252. package/web/chunk-bcjgzwef.js +0 -1
  253. package/web/chunk-bra33pt0.js +0 -2
  254. package/web/chunk-cxpnj495.js +0 -2
  255. package/web/chunk-d94t9z70.js +0 -1
  256. package/web/chunk-de29pe57.js +0 -1
  257. package/web/chunk-e68jw0bg.js +0 -1
  258. package/web/chunk-fr4fft89.js +0 -1
  259. package/web/chunk-gckmcef6.js +0 -1
  260. package/web/chunk-gnb09wmx.js +0 -1
  261. package/web/chunk-gx340asc.js +0 -1
  262. package/web/chunk-hrgqc1vr.js +0 -1
  263. package/web/chunk-j9c8fa82.js +0 -1
  264. package/web/chunk-jz5mmp64.js +0 -1
  265. package/web/chunk-kxeaj44h.js +0 -1
  266. package/web/chunk-m0136xav.js +0 -1
  267. package/web/chunk-m1rdyvb5.js +0 -1
  268. package/web/chunk-m6vyvgm5.js +0 -1
  269. package/web/chunk-mxkbmgcv.js +0 -2
  270. package/web/chunk-my0ec787.js +0 -1
  271. package/web/chunk-mzzaet63.js +0 -1
  272. package/web/chunk-nkpdd9hw.js +0 -1
  273. package/web/chunk-ny436sqg.js +0 -1
  274. package/web/chunk-pbp1p5ex.js +0 -1
  275. package/web/chunk-ph75hddv.js +0 -1
  276. package/web/chunk-phdfyqaa.js +0 -1
  277. package/web/chunk-phxa5krt.js +0 -1
  278. package/web/chunk-r4zbw4zj.js +0 -2
  279. package/web/chunk-ry4ycah9.js +0 -1
  280. package/web/chunk-sqm16fat.js +0 -1
  281. package/web/chunk-tj1fn8v2.js +0 -1
  282. package/web/chunk-v0wtk059.js +0 -34
  283. package/web/chunk-v1qt3gq4.js +0 -1
  284. package/web/chunk-v854w9yn.js +0 -1
  285. package/web/chunk-ve56gxq0.js +0 -1
  286. package/web/chunk-w573ym17.js +0 -1
  287. package/web/chunk-x0mjydtp.js +0 -1
  288. package/web/chunk-zhybh04p.js +0 -1
@@ -1,2 +1,2 @@
1
- var e=Object.freeze(JSON.parse('{"displayName":"SQL","name":"sql","patterns":[{"match":"((?<!@)@)\\\\b(\\\\w+)\\\\b","name":"text.variable"},{"match":"(\\\\[)[^]]*(])","name":"text.bracketed"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"},"5":{"name":"entity.name.function.sql"}},"match":"(?i:^\\\\s*(create(?:\\\\s+or\\\\s+replace)?)\\\\s+(aggregate|conversion|database|domain|function|group|(unique\\\\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)([\\"\'`]?)(\\\\w+)\\\\4","name":"meta.create.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"}},"match":"(?i:^\\\\s*(drop)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"},"3":{"name":"entity.name.function.sql"},"4":{"name":"keyword.other.cascade.sql"}},"match":"(?i:\\\\s*(drop)\\\\s+(table)\\\\s+(\\\\w+)(\\\\s+cascade)?\\\\b)","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"}},"match":"(?i:^\\\\s*(alter)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|proc(edure)?|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)","name":"meta.alter.sql"},{"captures":{"1":{"name":"storage.type.sql"},"2":{"name":"storage.type.sql"},"3":{"name":"constant.numeric.sql"},"4":{"name":"storage.type.sql"},"5":{"name":"constant.numeric.sql"},"6":{"name":"storage.type.sql"},"7":{"name":"constant.numeric.sql"},"8":{"name":"constant.numeric.sql"},"9":{"name":"storage.type.sql"},"10":{"name":"constant.numeric.sql"},"11":{"name":"storage.type.sql"},"12":{"name":"storage.type.sql"},"13":{"name":"storage.type.sql"},"14":{"name":"constant.numeric.sql"},"15":{"name":"storage.type.sql"}},"match":"(?i)\\\\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\\\\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\\\\b|\\\\b(bit\\\\svarying|character\\\\s(?:varying)?|tinyint|var\\\\schar|float|interval)\\\\((\\\\d+)\\\\)|\\\\b(char|number|varchar\\\\d?)\\\\b(?:\\\\((\\\\d+)\\\\))?|\\\\b(numeric|decimal)\\\\b(?:\\\\((\\\\d+),(\\\\d+)\\\\))?|\\\\b(times?)\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\swith(?:out)?\\\\stime\\\\szone\\\\b)?|\\\\b(timestamp)(s|tz)?\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\s(with(?:|out))\\\\stime\\\\szone\\\\b)?"},{"match":"(?i:\\\\b((?:primary|foreign)\\\\s+key|references|on\\\\s+(delete|update)(\\\\s+cascade)?|nocheck|check|constraint|collate|default)\\\\b)","name":"storage.modifier.sql"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.sql"},{"match":"(?i:\\\\b(select(\\\\s+(all|distinct))?|insert\\\\s+(ignore\\\\s+)?into|update|delete|from|set|where|group\\\\s+by|or|like|and|union(\\\\s+all)?|having|order\\\\s+by|limit|cross\\\\s+join|join|straight_join|(inner|(left|right|full)(\\\\s+outer)?)\\\\s+join|natural(\\\\s+(inner|(left|right|full)(\\\\s+outer)?))?\\\\s+join)\\\\b)","name":"keyword.other.DML.sql"},{"match":"(?i:\\\\b(on|off|((is\\\\s+)?not\\\\s+)?null)\\\\b)","name":"keyword.other.DDL.create.II.sql"},{"match":"(?i:\\\\bvalues\\\\b)","name":"keyword.other.DML.II.sql"},{"match":"(?i:\\\\b(begin(\\\\s+work)?|start\\\\s+transaction|commit(\\\\s+work)?|rollback(\\\\s+work)?)\\\\b)","name":"keyword.other.LUW.sql"},{"match":"(?i:\\\\b(grant(\\\\swith\\\\sgrant\\\\soption)?|revoke)\\\\b)","name":"keyword.other.authorization.sql"},{"match":"(?i:\\\\bin\\\\b)","name":"keyword.other.data-integrity.sql"},{"match":"(?i:^\\\\s*(comment\\\\s+on\\\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\\\s+)","name":"keyword.other.object-comments.sql"},{"match":"(?i)\\\\bAS\\\\b","name":"keyword.other.alias.sql"},{"match":"(?i)\\\\b(DESC|ASC)\\\\b","name":"keyword.other.order.sql"},{"match":"\\\\*","name":"keyword.operator.star.sql"},{"match":"[!<>]?=|<>|[<>]","name":"keyword.operator.comparison.sql"},{"match":"[-+/]","name":"keyword.operator.math.sql"},{"match":"\\\\|\\\\|","name":"keyword.operator.concatenator.sql"},{"captures":{"1":{"name":"support.function.aggregate.sql"}},"match":"(?i)\\\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdevp??|varp??)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.analytic.sql"}},"match":"(?i)\\\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.bitmanipulation.sql"}},"match":"(?i)\\\\b((?:bit_coun|get_bi|left_shif|right_shif|set_bi)t)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.conversion.sql"}},"match":"(?i)\\\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.collation.sql"}},"match":"(?i)\\\\b(collationproperty|tertiary_weights)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cryptographic.sql"}},"match":"(?i)\\\\b(asymkey_id|asymkeyproperty|certproperty|cert_id|crypt_gen_random|decryptbyasymkey|decryptbycert|decryptbykey|decryptbykeyautoasymkey|decryptbykeyautocert|decryptbypassphrase|encryptbyasymkey|encryptbycert|encryptbykey|encryptbypassphrase|hashbytes|is_objectsigned|key_guid|key_id|key_name|signbyasymkey|signbycert|symkeyproperty|verifysignedbycert|verifysignedbyasymkey)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cursor.sql"}},"match":"(?i)\\\\b(cursor_status)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datetime.sql"}},"match":"(?i)\\\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datatype.sql"}},"match":"(?i)\\\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.expression.sql"}},"match":"(?i)\\\\b(coalesce|nullif)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.globalvar.sql"}},"match":"(?<!@)@@(?i)\\\\b(cursor_rows|connections|cpu_busy|datefirst|dbts|error|fetch_status|identity|idle|io_busy|langid|language|lock_timeout|max_connections|max_precision|nestlevel|options|packet_errors|pack_received|pack_sent|procid|remserver|rowcount|servername|servicename|spid|textsize|timeticks|total_errors|total_read|total_write|trancount|version)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.json.sql"}},"match":"(?i)\\\\b(json|isjson|json_object|json_array|json_value|json_query|json_modify|json_path_exists)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.logical.sql"}},"match":"(?i)\\\\b(choose|iif|greatest|least)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.mathematical.sql"}},"match":"(?i)\\\\b(abs|acos|asin|atan|atn2|ceiling|cos|cot|degrees|exp|floor|log|log10|pi|power|radians|rand|round|sign|sin|sqrt|square|tan)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.metadata.sql"}},"match":"(?i)\\\\b(app_name|applock_mode|applock_test|assemblyproperty|col_length|col_name|columnproperty|database_principal_id|databasepropertyex|db_id|db_name|file_id|file_idex|file_name|filegroup_id|filegroup_name|filegroupproperty|fileproperty|fulltextcatalogproperty|fulltextserviceproperty|index_col|indexkey_property|indexproperty|object_definition|object_id|object_name|object_schema_name|objectproperty|objectpropertyex|original_db_name|parsename|schema_id|schema_name|scope_identity|serverproperty|stats_date|type_id|type_name|typeproperty)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.ranking.sql"}},"match":"(?i)\\\\b(rank|dense_rank|ntile|row_number)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.rowset.sql"}},"match":"(?i)\\\\b(generate_series|opendatasource|openjson|openrowset|openquery|openxml|predict|string_split)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.security.sql"}},"match":"(?i)\\\\b(certencoded|certprivatekey|current_user|database_principal_id|has_perms_by_name|is_member|is_rolemember|is_srvrolemember|original_login|permissions|pwdcompare|pwdencrypt|schema_id|schema_name|session_user|suser_id|suser_sid|suser_sname|system_user|suser_name|user_id|user_name)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.string.sql"}},"match":"(?i)\\\\b(ascii|char|charindex|concat|difference|format|left|len|lower|ltrim|nchar|nodes|patindex|quotename|replace|replicate|reverse|right|rtrim|soundex|space|str|string_agg|string_escape|string_split|stuff|substring|translate|trim|unicode|upper)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.system.sql"}},"match":"(?i)\\\\b(binary_checksum|checksum|compress|connectionproperty|context_info|current_request_id|current_transaction_id|decompress|error_line|error_message|error_number|error_procedure|error_severity|error_state|formatmessage|get_filestream_transaction_context|getansinull|host_id|host_name|isnull|isnumeric|min_active_rowversion|newid|newsequentialid|rowcount_big|session_context|session_id|xact_state)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.textimage.sql"}},"match":"(?i)\\\\b(patindex|textptr|textvalid)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.vector.sql"}},"match":"(?i)\\\\b(vector_(?:distance|norm|normalize))\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"constant.other.database-name.sql"},"2":{"name":"constant.other.table-name.sql"}},"match":"(\\\\w+?)\\\\.(\\\\w+)"},{"include":"#strings"},{"include":"#regexps"},{"match":"\\\\b(?i)(abort|abort_after_wait|absent|absolute|accent_sensitivity|acceptable_cursopt|acp|action|activation|add|address|admin|aes_128|aes_192|aes_256|affinity|after|aggregate|algorithm|all_constraints|all_errormsgs|all_indexes|all_levels|all_results|allow_connections|allow_dup_row|allow_encrypted_value_modifications|allow_page_locks|allow_row_locks|allow_snapshot_isolation|alter|altercolumn|always|anonymous|ansi_defaults|ansi_null_default|ansi_null_dflt_off|ansi_null_dflt_on|ansi_nulls|ansi_padding|ansi_warnings|appdomain|append|application|apply|arithabort|arithignore|array|assembly|asymmetric|asynchronous_commit|at|atan2|atomic|attach|attach_force_rebuild_log|attach_rebuild_log|audit|auth_realm|authentication|auto|auto_cleanup|auto_close|auto_create_statistics|auto_drop|auto_shrink|auto_update_statistics|auto_update_statistics_async|automated_backup_preference|automatic|autopilot|availability|availability_mode|backup|backup_priority|base64|basic|batches|batchsize|before|between|bigint|binary|binding|bit|block|blockers|blocksize|bmk|both|break|broker|broker_instance|bucket_count|buffer|buffercount|bulk_logged|by|call|caller|card|case|catalog|catch|cert|certificate|change_retention|change_tracking|change_tracking_context|changes|char|character|character_set|check_expiration|check_policy|checkconstraints|checkindex|checkpoint|checksum|cleanup_policy|clear|clear_port|close|clustered|codepage|collection|column_encryption_key|column_master_key|columnstore|columnstore_archive|colv_80_to_100|colv_100_to_80|commit_differential_base|committed|compatibility_level|compress_all_row_groups|compression|compression_delay|concat_null_yields_null|concatenate|configuration|connect|connection|containment|continue|continue_after_error|contract|contract_name|control|conversation|conversation_group_id|conversation_handle|copy|copy_only|count_rows|counter|create(\\\\\\\\s+or\\\\\\\\s+alter)?|credential|cross|cryptographic|cryptographic_provider|cube|cursor|cursor_close_on_commit|cursor_default|data|data_compression|data_flush_interval_seconds|data_mirroring|data_purity|data_source|database|database_name|database_snapshot|datafiletype|date_correlation_optimization|date|datefirst|dateformat|date_format|datetime2??|datetimeoffset|day(s)?|db_chaining|dbid|dbidexec|dbo_only|deadlock_priority|deallocate|dec|decimal|declare|decrypt|decrypt_a|decryption|default_database|default_fulltext_language|default_language|default_logon_domain|default_schema|definition|delay|delayed_durability|delimitedtext|density_vector|dependent|des|description|desired_state|desx|differential|digest|disable|disable_broker|disable_def_cnst_chk|disabled|disk|distinct|distributed|distribution|drop|drop_existing|dts_buffers|dump|durability|dynamic|edition|elements|else|emergency|empty|enable|enable_broker|enabled|encoding|encrypted|encrypted_value|encryption|encryption_type|end|endpoint|endpoint_url|enhancedintegrity|entry|error_broker_conversations|errorfile|estimateonly|event|except|exec|executable|execute|exists|expand|expiredate|expiry_date|explicit|external|external_access|failover|failover_mode|failure_condition_level|fast|fast_forward|fastfirstrow|federated_service_account|fetch|field_terminator|fieldterminator|file|filelistonly|filegroup|filegrowth|filename|filestream|filestream_log|filestream_on|filetable|file_format|filter|first_row|fips_flagger|fire_triggers|first|firstrow|float|flush_interval_seconds|fmtonly|following|for|force|force_failover_allow_data_loss|force_service_allow_data_loss|forced|forceplan|formatfile|format_options|format_type|formsof|forward_only|free_cursors|free_exec_context|fullscan|fulltext|fulltextall|fulltextkey|function|generated|get|geography|geometry|global|go|goto|governor|guid|hadoop|hardening|hash|hashed|header_limit|headeronly|health_check_timeout|hidden|hierarchyid|histogram|histogram_steps|hits_cursors|hits_exec_context|hour(s)?|http|identity|identity_value|if|ifnull|ignore|ignore_constraints|ignore_dup_key|ignore_dup_row|ignore_triggers|image|immediate|implicit_transactions|include|include_null_values|incremental|index|inflectional|init|initiator|insensitive|insert|instead|int|integer|integrated|intersect|intermediate|interval_length_minutes|into|inuse_cursors|inuse_exec_context|io|is|isabout|iso_week|isolation|job_tracker_location|json|keep|keep_nulls|keep_replication|keepdefaults|keepfixed|keepidentity|keepnulls|kerberos|key|key_path|key_source|key_store_provider_name|keyset|kill|kilobytes_per_batch|labelonly|langid|language|last|lastrow|leading|legacy_cardinality_estimation|length|level|lifetime|lineage_80_to_100|lineage_100_to_80|listener_ip|listener_port|load|loadhistory|lob_compaction|local|local_service_name|locate|location|lock_escalation|lock_timeout|lockres|log|login|login_type|loop|manual|mark_in_use_for_removal|masked|master|match|matched|max_queue_readers|max_duration|max_outstanding_io_per_volume|maxdop|maxerrors|maxlength|maxtransfersize|max_plans_per_query|max_storage_size_mb|mediadescription|medianame|mediapassword|memogroup|memory_optimized|merge|message|message_forward_size|message_forwarding|microsecond|millisecond|minute(s)?|mirror_address|misses_cursors|misses_exec_context|mixed|modify|money|month|move|multi_user|must_change|name|namespace|nanosecond|native|native_compilation|nchar|ncharacter|nested_triggers|never|new_account|new_broker|newname|next|no|no_browsetable|no_checksum|no_compression|no_infomsgs|no_triggers|no_truncate|nocount|noexec|noexpand|noformat|noinit|nolock|nonatomic|nonclustered|nondurable|none|norecompute|norecovery|noreset|norewind|noskip|not|notification|nounload|now|nowait|ntext|ntlm|nulls|numeric|numeric_roundabort|nvarchar|object|objid|oem|offline|old_account|online|operation_mode|open|openjson|optimistic|option|orc|out|outer|output|over|override|owner|ownership|pad_index|page|page_checksum|page_verify|pagecount|paglock|param|parameter_sniffing|parameter_type_expansion|parameterization|parquet|parseonly|partial|partition|partner|password|path|pause|percentage|permission_set|persisted|period|physical_only|plan_forcing_mode|policy|pool|population|ports|preceding|precision|predicate|presume_abort|primary|primary_role|print|prior|priority |priority_level|private|proc(edure)?|procedure_name|profile|provider|quarter|query_capture_mode|query_governor_cost_limit|query_optimizer_hotfixes|query_store|queue|quoted_identifier|raiserror|range|raw|rcfile|rc2|rc4|rc4_128|rdbms|read_committed_snapshot|read|read_only|read_write|readcommitted|readcommittedlock|readonly|readpast|readuncommitted|readwrite|real|rebuild|receive|recmodel_70backcomp|recompile|reconfigure|recovery|recursive|recursive_triggers|redo_queue|reject_sample_value|reject_type|reject_value|relative|remote|remote_data_archive|remote_proc_transactions|remote_service_name|remove|removed_cursors|removed_exec_context|reorganize|repeat|repeatable|repeatableread|replace|replica|replicated|replnick_100_to_80|replnickarray_80_to_100|replnickarray_100_to_80|required|required_cursopt|resample|reset|resource|resource_manager_location|respect|restart|restore|restricted_user|resume|retaindays|retention|return|revert|rewind|rewindonly|returns|robust|role|rollup|root|round_robin|route|row|rowdump|rowguidcol|rowlock|row_terminator|rows|rows_per_batch|rowsets_only|rowterminator|rowversion|rsa_1024|rsa_2048|rsa_3072|rsa_4096|rsa_512|safe|safety|sample|save|scalar|schema|schemabinding|scoped|scroll|scroll_locks|sddl|second|secexpr|seconds|secondary|secondary_only|secondary_role|secret|security|securityaudit|selective|self|send|sent|sequence|serde_method|serializable|server|service|service_broker|service_name|service_objective|session_timeout|sessions??|seterror|setopts|sets|shard_map_manager|shard_map_name|sharded|shared_memory|shortest_path|show_statistics|showplan_all|showplan_text|showplan_xml|showplan_xml_with_recompile|shrinkdb|shutdown|sid|signature|simple|single_blob|single_clob|single_nclob|single_user|singleton|site|size|size_based_cleanup_mode|skip|smalldatetime|smallint|smallmoney|snapshot|snapshot_import|snapshotrestorephase|soap|softnuma|sort_in_tempdb|sorted_data|sorted_data_reorg|spatial|sql|sql_bigint|sql_binary|sql_bit|sql_char|sql_date|sql_decimal|sql_double|sql_float|sql_guid|sql_handle|sql_longvarbinary|sql_longvarchar|sql_numeric|sql_real|sql_smallint|sql_time|sql_timestamp|sql_tinyint|sql_tsi_day|sql_tsi_frac_second|sql_tsi_hour|sql_tsi_minute|sql_tsi_month|sql_tsi_quarter|sql_tsi_second|sql_tsi_week|sql_tsi_year|sql_type_date|sql_type_time|sql_type_timestamp|sql_varbinary|sql_varchar|sql_variant|sql_wchar|sql_wlongvarchar|ssl|ssl_port|standard|standby|start|start_date|started|stat_header|state|statement|static|statistics|statistics_incremental|statistics_norecompute|statistics_only|statman|stats|stats_stream|status|stop|stop_on_error|stopat|stopatmark|stopbeforemark|stoplist|stopped|string_delimiter|subject|supplemental_logging|supported|suspend|symmetric|synchronous_commit|synonym|sysname|system|system_time|system_versioning|table|tableresults|tablockx??|take|tape|target|target_index|target_partition|target_recovery_time|tcp|temporal_history_retention|text|textimage_on|then|thesaurus|throw|time|timeout|timestamp|tinyint|top??|torn_page_detection|track_columns_updated|trailing|tran|transaction|transfer|transform_noise_words|triple_des|triple_des_3key|truncate|trustworthy|try|tsql|two_digit_year_cutoff|type|type_desc|type_warning|tzoffset|uid|unbounded|uncommitted|unique|uniqueidentifier|unlimited|unload|unlock|unsafe|updlock|url|use|useplan|useroptions|use_type_default|using|utcdatetime|valid_xml|validation|values??|varbinary|varchar|vector|verbose|verifyonly|version|view_metadata|virtual_device|visiblity|wait_at_low_priority|waitfor|webmethod|week|weekday|weight|well_formed_xml|when|while|widechar|widechar_ansi|widenative|windows??|with|within|within group|witness|without|without_array_wrapper|workload|wsdl|xact_abort|xlock|xml|xmlschema|xquery|xsinil|year|zone)\\\\b","name":"keyword.other.sql"},{"captures":{"1":{"name":"punctuation.section.scope.begin.sql"},"2":{"name":"punctuation.section.scope.end.sql"}},"match":"(\\\\()(\\\\))","name":"meta.block.sql"}],"repository":{"comment-block":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\*/","name":"comment.block","patterns":[{"include":"#comment-block"}]},"comments":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\n","name":"comment.line.double-dash.sql"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[]},{"include":"#comment-block"}]},"regexps":{"patterns":[{"begin":"/(?=\\\\S.*/)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"/","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.sql","patterns":[{"include":"#string_interpolation"},{"match":"\\\\\\\\/","name":"constant.character.escape.slash.sql"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.modr.sql","patterns":[{"include":"#string_interpolation"}]}]},"string_escape":{"match":"\\\\\\\\.","name":"constant.character.escape.sql"},"string_interpolation":{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(#\\\\{)([^}]*)(})","name":"string.interpolated.sql"},"strings":{"patterns":[{"captures":{"2":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(?:(?<![0-9A-Z_a-z])(N))?(\')[^\']*(\')","name":"string.quoted.single.sql"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.single.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(`)[^\\\\\\\\`]*(`)","name":"string.quoted.other.backtick.sql"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.other.backtick.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(\\")[^\\"#]*(\\")","name":"string.quoted.double.sql"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.double.sql","patterns":[{"include":"#string_interpolation"}]},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.other.quoted.brackets.sql","patterns":[{"include":"#string_interpolation"}]}]}},"scopeName":"source.sql"}')),Xn=[e];
2
- export{Xn};
1
+ var e=Object.freeze(JSON.parse('{"displayName":"SQL","name":"sql","patterns":[{"match":"((?<!@)@)\\\\b(\\\\w+)\\\\b","name":"text.variable"},{"match":"(\\\\[)[^]]*(])","name":"text.bracketed"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"},"5":{"name":"entity.name.function.sql"}},"match":"(?i:^\\\\s*(create(?:\\\\s+or\\\\s+replace)?)\\\\s+(aggregate|conversion|database|domain|function|group|(unique\\\\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)([\\"\'`]?)(\\\\w+)\\\\4","name":"meta.create.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"}},"match":"(?i:^\\\\s*(drop)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"},"3":{"name":"entity.name.function.sql"},"4":{"name":"keyword.other.cascade.sql"}},"match":"(?i:\\\\s*(drop)\\\\s+(table)\\\\s+(\\\\w+)(\\\\s+cascade)?\\\\b)","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"}},"match":"(?i:^\\\\s*(alter)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|proc(edure)?|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)","name":"meta.alter.sql"},{"captures":{"1":{"name":"storage.type.sql"},"2":{"name":"storage.type.sql"},"3":{"name":"constant.numeric.sql"},"4":{"name":"storage.type.sql"},"5":{"name":"constant.numeric.sql"},"6":{"name":"storage.type.sql"},"7":{"name":"constant.numeric.sql"},"8":{"name":"constant.numeric.sql"},"9":{"name":"storage.type.sql"},"10":{"name":"constant.numeric.sql"},"11":{"name":"storage.type.sql"},"12":{"name":"storage.type.sql"},"13":{"name":"storage.type.sql"},"14":{"name":"constant.numeric.sql"},"15":{"name":"storage.type.sql"}},"match":"(?i)\\\\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\\\\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\\\\b|\\\\b(bit\\\\svarying|character\\\\s(?:varying)?|tinyint|var\\\\schar|float|interval)\\\\((\\\\d+)\\\\)|\\\\b(char|number|varchar\\\\d?)\\\\b(?:\\\\((\\\\d+)\\\\))?|\\\\b(numeric|decimal)\\\\b(?:\\\\((\\\\d+),(\\\\d+)\\\\))?|\\\\b(times?)\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\swith(?:out)?\\\\stime\\\\szone\\\\b)?|\\\\b(timestamp)(s|tz)?\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\s(with(?:|out))\\\\stime\\\\szone\\\\b)?"},{"match":"(?i:\\\\b((?:primary|foreign)\\\\s+key|references|on\\\\s+(delete|update)(\\\\s+cascade)?|nocheck|check|constraint|collate|default)\\\\b)","name":"storage.modifier.sql"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.sql"},{"match":"(?i:\\\\b(select(\\\\s+(all|distinct))?|insert\\\\s+(ignore\\\\s+)?into|update|delete|from|set|where|group\\\\s+by|or|like|and|union(\\\\s+all)?|having|order\\\\s+by|limit|cross\\\\s+join|join|straight_join|(inner|(left|right|full)(\\\\s+outer)?)\\\\s+join|natural(\\\\s+(inner|(left|right|full)(\\\\s+outer)?))?\\\\s+join)\\\\b)","name":"keyword.other.DML.sql"},{"match":"(?i:\\\\b(on|off|((is\\\\s+)?not\\\\s+)?null)\\\\b)","name":"keyword.other.DDL.create.II.sql"},{"match":"(?i:\\\\bvalues\\\\b)","name":"keyword.other.DML.II.sql"},{"match":"(?i:\\\\b(begin(\\\\s+work)?|start\\\\s+transaction|commit(\\\\s+work)?|rollback(\\\\s+work)?)\\\\b)","name":"keyword.other.LUW.sql"},{"match":"(?i:\\\\b(grant(\\\\swith\\\\sgrant\\\\soption)?|revoke)\\\\b)","name":"keyword.other.authorization.sql"},{"match":"(?i:\\\\bin\\\\b)","name":"keyword.other.data-integrity.sql"},{"match":"(?i:^\\\\s*(comment\\\\s+on\\\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\\\s+)","name":"keyword.other.object-comments.sql"},{"match":"(?i)\\\\bAS\\\\b","name":"keyword.other.alias.sql"},{"match":"(?i)\\\\b(DESC|ASC)\\\\b","name":"keyword.other.order.sql"},{"match":"\\\\*","name":"keyword.operator.star.sql"},{"match":"[!<>]?=|<>|[<>]","name":"keyword.operator.comparison.sql"},{"match":"[-+/]","name":"keyword.operator.math.sql"},{"match":"\\\\|\\\\|","name":"keyword.operator.concatenator.sql"},{"captures":{"1":{"name":"support.function.aggregate.sql"}},"match":"(?i)\\\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdevp??|varp??)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.analytic.sql"}},"match":"(?i)\\\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.bitmanipulation.sql"}},"match":"(?i)\\\\b((?:bit_coun|get_bi|left_shif|right_shif|set_bi)t)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.conversion.sql"}},"match":"(?i)\\\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.collation.sql"}},"match":"(?i)\\\\b(collationproperty|tertiary_weights)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cryptographic.sql"}},"match":"(?i)\\\\b(asymkey_id|asymkeyproperty|certproperty|cert_id|crypt_gen_random|decryptbyasymkey|decryptbycert|decryptbykey|decryptbykeyautoasymkey|decryptbykeyautocert|decryptbypassphrase|encryptbyasymkey|encryptbycert|encryptbykey|encryptbypassphrase|hashbytes|is_objectsigned|key_guid|key_id|key_name|signbyasymkey|signbycert|symkeyproperty|verifysignedbycert|verifysignedbyasymkey)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cursor.sql"}},"match":"(?i)\\\\b(cursor_status)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datetime.sql"}},"match":"(?i)\\\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datatype.sql"}},"match":"(?i)\\\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.expression.sql"}},"match":"(?i)\\\\b(coalesce|nullif)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.globalvar.sql"}},"match":"(?<!@)@@(?i)\\\\b(cursor_rows|connections|cpu_busy|datefirst|dbts|error|fetch_status|identity|idle|io_busy|langid|language|lock_timeout|max_connections|max_precision|nestlevel|options|packet_errors|pack_received|pack_sent|procid|remserver|rowcount|servername|servicename|spid|textsize|timeticks|total_errors|total_read|total_write|trancount|version)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.json.sql"}},"match":"(?i)\\\\b(json|isjson|json_object|json_array|json_value|json_query|json_modify|json_path_exists)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.logical.sql"}},"match":"(?i)\\\\b(choose|iif|greatest|least)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.mathematical.sql"}},"match":"(?i)\\\\b(abs|acos|asin|atan|atn2|ceiling|cos|cot|degrees|exp|floor|log|log10|pi|power|radians|rand|round|sign|sin|sqrt|square|tan)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.metadata.sql"}},"match":"(?i)\\\\b(app_name|applock_mode|applock_test|assemblyproperty|col_length|col_name|columnproperty|database_principal_id|databasepropertyex|db_id|db_name|file_id|file_idex|file_name|filegroup_id|filegroup_name|filegroupproperty|fileproperty|fulltextcatalogproperty|fulltextserviceproperty|index_col|indexkey_property|indexproperty|object_definition|object_id|object_name|object_schema_name|objectproperty|objectpropertyex|original_db_name|parsename|schema_id|schema_name|scope_identity|serverproperty|stats_date|type_id|type_name|typeproperty)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.ranking.sql"}},"match":"(?i)\\\\b(rank|dense_rank|ntile|row_number)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.rowset.sql"}},"match":"(?i)\\\\b(generate_series|opendatasource|openjson|openrowset|openquery|openxml|predict|string_split)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.security.sql"}},"match":"(?i)\\\\b(certencoded|certprivatekey|current_user|database_principal_id|has_perms_by_name|is_member|is_rolemember|is_srvrolemember|original_login|permissions|pwdcompare|pwdencrypt|schema_id|schema_name|session_user|suser_id|suser_sid|suser_sname|system_user|suser_name|user_id|user_name)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.string.sql"}},"match":"(?i)\\\\b(ascii|char|charindex|concat|difference|format|left|len|lower|ltrim|nchar|nodes|patindex|quotename|replace|replicate|reverse|right|rtrim|soundex|space|str|string_agg|string_escape|string_split|stuff|substring|translate|trim|unicode|upper)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.system.sql"}},"match":"(?i)\\\\b(binary_checksum|checksum|compress|connectionproperty|context_info|current_request_id|current_transaction_id|decompress|error_line|error_message|error_number|error_procedure|error_severity|error_state|formatmessage|get_filestream_transaction_context|getansinull|host_id|host_name|isnull|isnumeric|min_active_rowversion|newid|newsequentialid|rowcount_big|session_context|session_id|xact_state)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.textimage.sql"}},"match":"(?i)\\\\b(patindex|textptr|textvalid)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.vector.sql"}},"match":"(?i)\\\\b(vector_(?:distance|norm|normalize))\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"constant.other.database-name.sql"},"2":{"name":"constant.other.table-name.sql"}},"match":"(\\\\w+?)\\\\.(\\\\w+)"},{"include":"#strings"},{"include":"#regexps"},{"match":"\\\\b(?i)(abort|abort_after_wait|absent|absolute|accent_sensitivity|acceptable_cursopt|acp|action|activation|add|address|admin|aes_128|aes_192|aes_256|affinity|after|aggregate|algorithm|all_constraints|all_errormsgs|all_indexes|all_levels|all_results|allow_connections|allow_dup_row|allow_encrypted_value_modifications|allow_page_locks|allow_row_locks|allow_snapshot_isolation|alter|altercolumn|always|anonymous|ansi_defaults|ansi_null_default|ansi_null_dflt_off|ansi_null_dflt_on|ansi_nulls|ansi_padding|ansi_warnings|appdomain|append|application|apply|arithabort|arithignore|array|assembly|asymmetric|asynchronous_commit|at|atan2|atomic|attach|attach_force_rebuild_log|attach_rebuild_log|audit|auth_realm|authentication|auto|auto_cleanup|auto_close|auto_create_statistics|auto_drop|auto_shrink|auto_update_statistics|auto_update_statistics_async|automated_backup_preference|automatic|autopilot|availability|availability_mode|backup|backup_priority|base64|basic|batches|batchsize|before|between|bigint|binary|binding|bit|block|blockers|blocksize|bmk|both|break|broker|broker_instance|bucket_count|buffer|buffercount|bulk_logged|by|call|caller|card|case|catalog|catch|cert|certificate|change_retention|change_tracking|change_tracking_context|changes|char|character|character_set|check_expiration|check_policy|checkconstraints|checkindex|checkpoint|checksum|cleanup_policy|clear|clear_port|close|clustered|codepage|collection|column_encryption_key|column_master_key|columnstore|columnstore_archive|colv_80_to_100|colv_100_to_80|commit_differential_base|committed|compatibility_level|compress_all_row_groups|compression|compression_delay|concat_null_yields_null|concatenate|configuration|connect|connection|containment|continue|continue_after_error|contract|contract_name|control|conversation|conversation_group_id|conversation_handle|copy|copy_only|count_rows|counter|create(\\\\\\\\s+or\\\\\\\\s+alter)?|credential|cross|cryptographic|cryptographic_provider|cube|cursor|cursor_close_on_commit|cursor_default|data|data_compression|data_flush_interval_seconds|data_mirroring|data_purity|data_source|database|database_name|database_snapshot|datafiletype|date_correlation_optimization|date|datefirst|dateformat|date_format|datetime2??|datetimeoffset|day(s)?|db_chaining|dbid|dbidexec|dbo_only|deadlock_priority|deallocate|dec|decimal|declare|decrypt|decrypt_a|decryption|default_database|default_fulltext_language|default_language|default_logon_domain|default_schema|definition|delay|delayed_durability|delimitedtext|density_vector|dependent|des|description|desired_state|desx|differential|digest|disable|disable_broker|disable_def_cnst_chk|disabled|disk|distinct|distributed|distribution|drop|drop_existing|dts_buffers|dump|durability|dynamic|edition|elements|else|emergency|empty|enable|enable_broker|enabled|encoding|encrypted|encrypted_value|encryption|encryption_type|end|endpoint|endpoint_url|enhancedintegrity|entry|error_broker_conversations|errorfile|estimateonly|event|except|exec|executable|execute|exists|expand|expiredate|expiry_date|explicit|external|external_access|failover|failover_mode|failure_condition_level|fast|fast_forward|fastfirstrow|federated_service_account|fetch|field_terminator|fieldterminator|file|filelistonly|filegroup|filegrowth|filename|filestream|filestream_log|filestream_on|filetable|file_format|filter|first_row|fips_flagger|fire_triggers|first|firstrow|float|flush_interval_seconds|fmtonly|following|for|force|force_failover_allow_data_loss|force_service_allow_data_loss|forced|forceplan|formatfile|format_options|format_type|formsof|forward_only|free_cursors|free_exec_context|fullscan|fulltext|fulltextall|fulltextkey|function|generated|get|geography|geometry|global|go|goto|governor|guid|hadoop|hardening|hash|hashed|header_limit|headeronly|health_check_timeout|hidden|hierarchyid|histogram|histogram_steps|hits_cursors|hits_exec_context|hour(s)?|http|identity|identity_value|if|ifnull|ignore|ignore_constraints|ignore_dup_key|ignore_dup_row|ignore_triggers|image|immediate|implicit_transactions|include|include_null_values|incremental|index|inflectional|init|initiator|insensitive|insert|instead|int|integer|integrated|intersect|intermediate|interval_length_minutes|into|inuse_cursors|inuse_exec_context|io|is|isabout|iso_week|isolation|job_tracker_location|json|keep|keep_nulls|keep_replication|keepdefaults|keepfixed|keepidentity|keepnulls|kerberos|key|key_path|key_source|key_store_provider_name|keyset|kill|kilobytes_per_batch|labelonly|langid|language|last|lastrow|leading|legacy_cardinality_estimation|length|level|lifetime|lineage_80_to_100|lineage_100_to_80|listener_ip|listener_port|load|loadhistory|lob_compaction|local|local_service_name|locate|location|lock_escalation|lock_timeout|lockres|log|login|login_type|loop|manual|mark_in_use_for_removal|masked|master|match|matched|max_queue_readers|max_duration|max_outstanding_io_per_volume|maxdop|maxerrors|maxlength|maxtransfersize|max_plans_per_query|max_storage_size_mb|mediadescription|medianame|mediapassword|memogroup|memory_optimized|merge|message|message_forward_size|message_forwarding|microsecond|millisecond|minute(s)?|mirror_address|misses_cursors|misses_exec_context|mixed|modify|money|month|move|multi_user|must_change|name|namespace|nanosecond|native|native_compilation|nchar|ncharacter|nested_triggers|never|new_account|new_broker|newname|next|no|no_browsetable|no_checksum|no_compression|no_infomsgs|no_triggers|no_truncate|nocount|noexec|noexpand|noformat|noinit|nolock|nonatomic|nonclustered|nondurable|none|norecompute|norecovery|noreset|norewind|noskip|not|notification|nounload|now|nowait|ntext|ntlm|nulls|numeric|numeric_roundabort|nvarchar|object|objid|oem|offline|old_account|online|operation_mode|open|openjson|optimistic|option|orc|out|outer|output|over|override|owner|ownership|pad_index|page|page_checksum|page_verify|pagecount|paglock|param|parameter_sniffing|parameter_type_expansion|parameterization|parquet|parseonly|partial|partition|partner|password|path|pause|percentage|permission_set|persisted|period|physical_only|plan_forcing_mode|policy|pool|population|ports|preceding|precision|predicate|presume_abort|primary|primary_role|print|prior|priority |priority_level|private|proc(edure)?|procedure_name|profile|provider|quarter|query_capture_mode|query_governor_cost_limit|query_optimizer_hotfixes|query_store|queue|quoted_identifier|raiserror|range|raw|rcfile|rc2|rc4|rc4_128|rdbms|read_committed_snapshot|read|read_only|read_write|readcommitted|readcommittedlock|readonly|readpast|readuncommitted|readwrite|real|rebuild|receive|recmodel_70backcomp|recompile|reconfigure|recovery|recursive|recursive_triggers|redo_queue|reject_sample_value|reject_type|reject_value|relative|remote|remote_data_archive|remote_proc_transactions|remote_service_name|remove|removed_cursors|removed_exec_context|reorganize|repeat|repeatable|repeatableread|replace|replica|replicated|replnick_100_to_80|replnickarray_80_to_100|replnickarray_100_to_80|required|required_cursopt|resample|reset|resource|resource_manager_location|respect|restart|restore|restricted_user|resume|retaindays|retention|return|revert|rewind|rewindonly|returns|robust|role|rollup|root|round_robin|route|row|rowdump|rowguidcol|rowlock|row_terminator|rows|rows_per_batch|rowsets_only|rowterminator|rowversion|rsa_1024|rsa_2048|rsa_3072|rsa_4096|rsa_512|safe|safety|sample|save|scalar|schema|schemabinding|scoped|scroll|scroll_locks|sddl|second|secexpr|seconds|secondary|secondary_only|secondary_role|secret|security|securityaudit|selective|self|send|sent|sequence|serde_method|serializable|server|service|service_broker|service_name|service_objective|session_timeout|sessions??|seterror|setopts|sets|shard_map_manager|shard_map_name|sharded|shared_memory|shortest_path|show_statistics|showplan_all|showplan_text|showplan_xml|showplan_xml_with_recompile|shrinkdb|shutdown|sid|signature|simple|single_blob|single_clob|single_nclob|single_user|singleton|site|size|size_based_cleanup_mode|skip|smalldatetime|smallint|smallmoney|snapshot|snapshot_import|snapshotrestorephase|soap|softnuma|sort_in_tempdb|sorted_data|sorted_data_reorg|spatial|sql|sql_bigint|sql_binary|sql_bit|sql_char|sql_date|sql_decimal|sql_double|sql_float|sql_guid|sql_handle|sql_longvarbinary|sql_longvarchar|sql_numeric|sql_real|sql_smallint|sql_time|sql_timestamp|sql_tinyint|sql_tsi_day|sql_tsi_frac_second|sql_tsi_hour|sql_tsi_minute|sql_tsi_month|sql_tsi_quarter|sql_tsi_second|sql_tsi_week|sql_tsi_year|sql_type_date|sql_type_time|sql_type_timestamp|sql_varbinary|sql_varchar|sql_variant|sql_wchar|sql_wlongvarchar|ssl|ssl_port|standard|standby|start|start_date|started|stat_header|state|statement|static|statistics|statistics_incremental|statistics_norecompute|statistics_only|statman|stats|stats_stream|status|stop|stop_on_error|stopat|stopatmark|stopbeforemark|stoplist|stopped|string_delimiter|subject|supplemental_logging|supported|suspend|symmetric|synchronous_commit|synonym|sysname|system|system_time|system_versioning|table|tableresults|tablockx??|take|tape|target|target_index|target_partition|target_recovery_time|tcp|temporal_history_retention|text|textimage_on|then|thesaurus|throw|time|timeout|timestamp|tinyint|top??|torn_page_detection|track_columns_updated|trailing|tran|transaction|transfer|transform_noise_words|triple_des|triple_des_3key|truncate|trustworthy|try|tsql|two_digit_year_cutoff|type|type_desc|type_warning|tzoffset|uid|unbounded|uncommitted|unique|uniqueidentifier|unlimited|unload|unlock|unsafe|updlock|url|use|useplan|useroptions|use_type_default|using|utcdatetime|valid_xml|validation|values??|varbinary|varchar|vector|verbose|verifyonly|version|view_metadata|virtual_device|visiblity|wait_at_low_priority|waitfor|webmethod|week|weekday|weight|well_formed_xml|when|while|widechar|widechar_ansi|widenative|windows??|with|within|within group|witness|without|without_array_wrapper|workload|wsdl|xact_abort|xlock|xml|xmlschema|xquery|xsinil|year|zone)\\\\b","name":"keyword.other.sql"},{"captures":{"1":{"name":"punctuation.section.scope.begin.sql"},"2":{"name":"punctuation.section.scope.end.sql"}},"match":"(\\\\()(\\\\))","name":"meta.block.sql"}],"repository":{"comment-block":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\*/","name":"comment.block","patterns":[{"include":"#comment-block"}]},"comments":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\n","name":"comment.line.double-dash.sql"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[]},{"include":"#comment-block"}]},"regexps":{"patterns":[{"begin":"/(?=\\\\S.*/)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"/","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.sql","patterns":[{"include":"#string_interpolation"},{"match":"\\\\\\\\/","name":"constant.character.escape.slash.sql"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.modr.sql","patterns":[{"include":"#string_interpolation"}]}]},"string_escape":{"match":"\\\\\\\\.","name":"constant.character.escape.sql"},"string_interpolation":{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(#\\\\{)([^}]*)(})","name":"string.interpolated.sql"},"strings":{"patterns":[{"captures":{"2":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(?:(?<![0-9A-Z_a-z])(N))?(\')[^\']*(\')","name":"string.quoted.single.sql"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.single.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(`)[^\\\\\\\\`]*(`)","name":"string.quoted.other.backtick.sql"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.other.backtick.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(\\")[^\\"#]*(\\")","name":"string.quoted.double.sql"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.double.sql","patterns":[{"include":"#string_interpolation"}]},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.other.quoted.brackets.sql","patterns":[{"include":"#string_interpolation"}]}]}},"scopeName":"source.sql"}')),Jn=[e];
2
+ export{Jn};
@@ -0,0 +1 @@
1
+ import{sr}from"./chunk-p4pqtybm.js";export{sr as createRailroadAbnfServices};
@@ -0,0 +1 @@
1
+ import{tr}from"./chunk-hbwxtbq3.js";export{tr as default};
@@ -0,0 +1 @@
1
+ import{oo,Mo,so,Po,Oo,lo}from"./chunk-j6wcszxq.js";import"./chunk-2c7kxr4v.js";import"./chunk-tdzh6nsz.js";import"./chunk-zsat72qd.js";export{Mo as applyDagreLayoutResult,oo as getEdgesToRender,Po as measureDagreLayout,so as prepareLayoutForDagre,lo as render,Oo as runDagreLayoutCore};
@@ -0,0 +1 @@
1
+ import{fi}from"./chunk-25sn840r.js";export{fi as default};
@@ -1,9 +1,9 @@
1
- import{t,Ra,a,b,F,C,S,E,T,A,L,R,l,p,En,kr,An,Ui,Ve,ho,ln,Gn,N}from"./chunk-b5zf1hs3.js";import"./chunk-qp3tjhaq.js";import{$n,hn}from"./chunk-y2rzeb4v.js";import{or,Fr,la,zr,wt}from"./chunk-enwfd8d5.js";import{Ot}from"./chunk-h0c42zy3.js";import{Ce,Se}from"./chunk-3k9h7a73.js";var vn=Se(function(rr,nr){(function(e,r){typeof rr=="object"&&typeof nr<"u"?nr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(rr,function(){var e="day";return function(r,n,i){var s=function(M){return M.add(4-M.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),e);var D,B,W,G,O=s(this),z=(D=this.isoWeekYear(),B=this.$u,W=(B?i.utc:i)().year(D).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,e));return O.diff(z,"week")+1},o.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var u=o.startOf;o.startOf=function(M,D){var B=this.$utils(),W=!!B.u(D)||D;return B.p(M)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(M,D)}}})});var xn=Se(function(ir,ar){(function(e,r){typeof ir=="object"&&typeof ar<"u"?ar.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(ir,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},M=function(U){return(U=+U)+(U>68?1900:2000)},D=function(U){return function(Z){this[U]=+Z}},B=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var H=Z.match(/([+-]|\d\d)/g),tt=60*H[1]+(+H[2]||0);return tt===0?0:H[0]==="+"?-tt:tt}(U)}],W=function(U){var Z=u[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(U.indexOf(tt(ft,0,Z))>-1){H=ft>12;break}}else H=U===(Z?"pm":"PM");return H},O={A:[o,function(U){this.afternoon=G(U,!1)}],a:[o,function(U){this.afternoon=G(U,!0)}],Q:[n,function(U){this.month=3*(U-1)+1}],S:[n,function(U){this.milliseconds=100*+U}],SS:[i,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[s,D("seconds")],ss:[s,D("seconds")],m:[s,D("minutes")],mm:[s,D("minutes")],H:[s,D("hours")],h:[s,D("hours")],HH:[s,D("hours")],hh:[s,D("hours")],D:[s,D("day")],DD:[i,D("day")],Do:[o,function(U){var Z=u.ordinal,H=U.match(/\d+/);if(this.day=H[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===U&&(this.day=tt)}],w:[s,D("week")],ww:[i,D("week")],M:[s,D("month")],MM:[i,D("month")],MMM:[o,function(U){var Z=W("months"),H=(W("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(U)+1;if(H<1)throw Error();this.month=H%12||H}],MMMM:[o,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(U){this.year=M(U)}],YYYY:[/\d{4}/,D("year")],Z:B,ZZ:B};function z(U){var Z,H;Z=U,H=u&&u.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,x){var I=x&&x.toUpperCase();return nt||H[x]||e[x]||H[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,V,d){return V||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],_=O[j],f=_&&_[0],P=_&&_[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},x=0,I=0;x<ft;x+=1){var Y=tt[x];if(typeof Y=="string")I+=Y.length;else{var{regex:V,parser:d}=Y,w=rt.slice(I),v=V.exec(w)[0];d.call(nt,v),rt=rt.replace(v,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(M=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:_,args:f}=at;this.$u=_;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,x=rt||nt,I=f[2];nt&&(I=f[2]),u=this.$locale(),!rt&&I&&(u=H.Ls[I]),this.$d=function(w,v,k,Q){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1000:1)*w);var c=z(v)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(Tt){return new Date("")}}(j,P,_,H),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),x&&j!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var Y=P.length,V=1;V<=Y;V+=1){f[1]=P[V-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===Y&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Se(function(sr,cr){(function(e,r){typeof sr=="object"&&typeof cr<"u"?cr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(sr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var M=this.$utils(),D=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(B){switch(B){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return M.s(o.week(),B==="w"?1:2,"0");case"W":case"WW":return M.s(o.isoWeek(),B==="W"?1:2,"0");case"k":case"kk":return M.s(String(o.$H===0?24:o.$H),B==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return B}});return i.bind(this)(D)}}})});var wn=Se(function(ur,lr){(function(e,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ur,function(){var e,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,M=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,B=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:u,months:M,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,_,f){return new ft(j,f,_.$l)},z=function(j){return r.p(j)+"s"},U=function(j){return j<0},Z=function(j){return U(j)?Math.ceil(j):Math.floor(j)},H=function(j){return Math.abs(j)},tt=function(j,_){return j?U(j)?{negative:!0,format:""+H(j)+_}:{negative:!1,format:""+j+_}:{negative:!1,format:""}},ft=function(){function j(f,P,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return O(f*W[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(Y){nt.$d[z(Y)]=f[Y]}),this.calMilliseconds(),this;if(typeof f=="string"){var x=f.match(D);if(x){var I=x.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var _=j.prototype;return _.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*W[rt]},0)},_.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/M),f%=M,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},_.toISOString=function(){var f=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),x=tt(this.$d.hours,"H"),I=tt(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1000,Y=Math.round(1000*Y)/1000);var V=tt(Y,"S"),d=f.negative||P.negative||nt.negative||x.negative||I.negative||V.negative,w=x.format||I.format||V.format?"T":"",v=(d?"-":"")+"P"+f.format+P.format+nt.format+w+x.format+I.format+V.format;return v==="P"||v==="-P"?"P0D":v},_.toJSON=function(){return this.toISOString()},_.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return P.replace(B,function(nt,x){return x||String(rt[nt])})},_.as=function(f){return this.$ms/W[z(f)]},_.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/W[rt]):this.$d[rt],P||0},_.add=function(f,P,rt){var nt;return nt=P?f*W[z(P)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},_.subtract=function(f,P){return this.add(f,P,!0)},_.locale=function(f){var P=this.clone();return P.$l=f,P},_.clone=function(){return O(this.$ms,this)},_.humanize=function(f){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get("milliseconds")},_.asMilliseconds=function(){return this.as("milliseconds")},_.seconds=function(){return this.get("seconds")},_.asSeconds=function(){return this.as("seconds")},_.minutes=function(){return this.get("minutes")},_.asMinutes=function(){return this.as("minutes")},_.hours=function(){return this.get("hours")},_.asHours=function(){return this.as("hours")},_.days=function(){return this.get("days")},_.asDays=function(){return this.as("days")},_.weeks=function(){return this.get("weeks")},_.asWeeks=function(){return this.as("weeks")},_.months=function(){return this.get("months")},_.asMonths=function(){return this.as("months")},_.years=function(){return this.get("years")},_.asYears=function(){return this.as("years")},j}(),at=function(j,_,f){return j.add(_.years()*f,"y").add(_.months()*f,"M").add(_.days()*f,"d").add(_.hours()*f,"h").add(_.minutes()*f,"m").add(_.seconds()*f,"s").add(_.milliseconds()*f,"ms")};return function(j,_,f){e=f,r=f().$utils(),f.duration=function(nt,x){var I=f.locale();return O(nt,{$l:I},x)},f.isDuration=G;var P=_.prototype.add,rt=_.prototype.subtract;_.prototype.add=function(nt,x){return G(nt)?at(this,nt,1):P.bind(this)(nt,x)},_.prototype.subtract=function(nt,x){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,x)}}})});function Ee(e){return e}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Bn(e){return"translate("+e+",0)"}function Zn(e){return"translate(0,"+e+")"}function jn(e){return(r)=>+e(r)}function Xn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function qn(){return!this.__axis}function Yr(e,r){var n=[],i=null,s=null,o=6,u=6,M=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,B=e===ye||e===he?-1:1,W=e===he||e===Ae?"x":"y",G=e===ye||e===Oe?Bn:Zn;function O(z){var U=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,H=Math.max(o,0)+M,tt=r.range(),ft=+tt[0]+D,at=+tt[tt.length-1]+D,j=(r.bandwidth?Xn:jn)(r.copy(),D),_=z.selection?z.selection():z,f=_.selectAll(".domain").data([null]),P=_.selectAll(".tick").data(U,r).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),x=P.select("line"),I=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),x=x.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",B*o)),I=I.merge(nt.append("text").attr("fill","currentColor").attr(W,B*H).attr("dy",e===ye?"0em":e===Oe?"0.71em":"0.32em")),z!==_)f=f.transition(z),P=P.transition(z),x=x.transition(z),I=I.transition(z),rt=rt.transition(z).attr("opacity",_r).attr("transform",function(Y){return isFinite(Y=j(Y))?G(Y+D):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(Y){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(Y))?V:j(Y))+D)});rt.remove(),f.attr("d",e===he||e===Ae?u?"M"+B*u+","+ft+"H"+D+"V"+at+"H"+B*u:"M"+D+","+ft+"V"+at:u?"M"+ft+","+B*u+"V"+D+"H"+at+"V"+B*u:"M"+ft+","+D+"H"+at),P.attr("opacity",1).attr("transform",function(Y){return G(j(Y)+D)}),x.attr(W+"2",B*o),I.attr(W,B*H).text(Z),_.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ae?"start":e===he?"end":"middle"),_.each(function(){this.__axis=j})}return O.scale=function(z){return arguments.length?(r=z,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(z){return arguments.length?(n=z==null?[]:Array.from(z),O):n.slice()},O.tickValues=function(z){return arguments.length?(i=z==null?null:Array.from(z),O):i&&i.slice()},O.tickFormat=function(z){return arguments.length?(s=z,O):s},O.tickSize=function(z){return arguments.length?(o=u=+z,O):o},O.tickSizeInner=function(z){return arguments.length?(o=+z,O):o},O.tickSizeOuter=function(z){return arguments.length?(u=+z,O):u},O.tickPadding=function(z){return arguments.length?(M=+z,O):M},O.offset=function(z){return arguments.length?(D=+z,O):D},O}function $e(e){return Yr(ye,e)}function He(e){return Yr(Oe,e)}var Ir=Math.PI/180,Ur=180/Math.PI;var ge=18,Lr=0.96422,Wr=1,Er=0.82521,Ar=0.13793103448275862,Qt=0.20689655172413793,Or=3*Qt*Qt,Qn=Qt*Qt*Qt;function $r(e){if(e instanceof Ft)return new Ft(e.l,e.a,e.b,e.opacity);if(e instanceof At)return Nr(e);if(!(e instanceof Ve))e=Ui(e);var r=Re(e.r),n=Re(e.g),i=Re(e.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Wr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Lr),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Er);return new Ft(116*s-16,500*(o-s),200*(s-u),e.opacity)}function Hr(e,r,n,i){return arguments.length===1?$r(e):new Ft(e,r,n,i==null?1:i)}function Ft(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}En(Ft,Hr,kr(An,{brighter(e){return new Ft(this.l+ge*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ft(this.l-ge*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Lr*Pe(r),e=Wr*Pe(e),n=Er*Pe(n),new Ve(ze(3.1338561*r-1.6168667*e-0.4906146*n),ze(-0.9787684*r+1.9161415*e+0.033454*n),ze(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function Ne(e){return e>Qn?Math.pow(e,0.3333333333333333):e/Or+Ar}function Pe(e){return e>Qt?e*e*e:Or*(e-Ar)}function ze(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Re(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Jn(e){if(e instanceof At)return new At(e.h,e.c,e.l,e.opacity);if(!(e instanceof Ft))e=$r(e);if(e.a===0&&e.b===0)return new At(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Ur;return new At(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ke(e,r,n,i){return arguments.length===1?Jn(e):new At(e,r,n,i==null?1:i)}function At(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Nr(e){if(isNaN(e.h))return new Ft(e.l,0,0,e.opacity);var r=e.h*Ir;return new Ft(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}En(At,ke,kr(An,{brighter(e){return new At(this.h,this.c,this.l+ge*(e==null?1:e),this.opacity)},darker(e){return new At(this.h,this.c,this.l-ge*(e==null?1:e),this.opacity)},rgb(){return Nr(this).rgb()}}));function Pr(e){return function(r,n){var i=e((r=ke(r)).h,(n=ke(n)).h),s=ln(r.c,n.c),o=ln(r.l,n.l),u=ln(r.opacity,n.opacity);return function(M){return r.h=i(M),r.c=s(M),r.l=o(M),r.opacity=u(M),r+""}}}var Vr=Pr(ho),Ls=Pr(ln);function Be(e,r){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return e[n]=r.floor(s),e[i]=r.ceil(o),e}var Ze=new Date,je=new Date;function dt(e,r,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(e(o=new Date(+o)),o),s.ceil=(o)=>(e(o=new Date(o-1)),r(o,1),e(o),o),s.round=(o)=>{let u=s(o),M=s.ceil(o);return o-u<M-o?u:M},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,M)=>{let D=[];if(o=s.ceil(o),M=M==null?1:Math.floor(M),!(o<u)||!(M>0))return D;let B;do D.push(B=new Date(+o)),r(o,M),e(o);while(B<o&&o<u);return D},s.filter=(o)=>dt((u)=>{if(u>=u)while(e(u),!o(u))u.setTime(u-1)},(u,M)=>{if(u>=u)if(M<0)while(++M<=0)while(r(u,-1),!o(u));else while(--M>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Ze.setTime(+o),je.setTime(+u),e(Ze),e(je),Math.floor(n(Ze,je))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);It.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return It;return dt((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Rr=It.range;var Ct=1000,vt=60000,Ut=3600000,Vt=86400000,se=604800000,Xe=2592000000,pe=31536000000;var xt=dt((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Ct)},(e,r)=>(r-e)/Ct,(e)=>e.getUTCSeconds()),Br=xt.range;var $t=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,r)=>{e.setTime(+e+r*vt)},(e,r)=>(r-e)/vt,(e)=>e.getMinutes()),Kn=$t.range,Te=dt((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*vt)},(e,r)=>(r-e)/vt,(e)=>e.getUTCMinutes()),ti=Te.range;var Ht=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*vt)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getHours()),ei=Ht.range,ve=dt((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getUTCHours()),ri=ve.range;var St=dt((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*vt)/Vt,(e)=>e.getDate()-1),ni=St.range,oe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>e.getUTCDate()-1),ii=oe.range,xe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>Math.floor(e/Vt)),ai=xe.range;function Bt(e){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*vt)/se)}var _t=Bt(0),zt=Bt(1),be=Bt(2),we=Bt(3),Lt=Bt(4),Me=Bt(5),De=Bt(6),Zr=_t.range,si=zt.range,oi=be.range,ci=we.range,ui=Lt.range,li=Me.range,fi=De.range;function Zt(e){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Nt=dt((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),pi=Nt.range,_e=dt((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),Ti=_e.range;var bt=dt((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());bt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var vi=bt.range,Yt=dt((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());Yt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var xi=Yt.range;function Jr(e,r,n,i,s,o){let u=[[xt,1,Ct],[xt,5,5*Ct],[xt,15,15*Ct],[xt,30,30*Ct],[o,1,vt],[o,5,5*vt],[o,15,15*vt],[o,30,30*vt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,Xe],[r,3,3*Xe],[e,1,pe]];function M(B,W,G){let O=W<B;if(O)[B,W]=[W,B];let z=G&&typeof G.range==="function"?G:D(B,W,G),U=z?z.range(B,+W+1):[];return O?U.reverse():U}function D(B,W,G){let O=Math.abs(W-B)/G,z=or(([,,H])=>H).right(u,O);if(z===u.length)return e.every(Fr(B/pe,W/pe,G));if(z===0)return It.every(Math.max(Fr(B,W,G),1));let[U,Z]=u[O/u[z-1][2]<u[z][2]/O?z-1:z];return U.every(Z)}return[M,D]}var[bi,wi]=Jr(Yt,_e,jt,xe,ve,Te),[Ge,qe]=Jr(bt,Nt,_t,St,Ht,$t);function Qe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Je(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ce(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:M,shortMonths:D}=e,B=ue(s),W=le(s),G=ue(o),O=le(o),z=ue(u),U=le(u),Z=ue(M),H=le(M),tt=ue(D),ft=le(D),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:na,G:aa,H:Ri,I:Bi,j:Zi,L:fn,m:Xi,M:Gi,p:h,q:mt,Q:cn,s:un,S:qi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:ra,Y:ia,Z:sa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:xa,G:wa,H:oa,I:ca,j:ua,L:mn,m:da,M:ma,p:lt,q:it,Q:cn,s:un,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},_={a:x,A:I,b:Y,B:V,c:d,d:rn,e:rn,f:Ni,g:en,G:tn,H:nn,I:nn,j:Ai,L:Hi,m:Ei,M:Oi,p:nt,q:Wi,Q:Vi,s:zi,S:$i,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:v,y:en,Y:tn,Z:Li,"%":Pi};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,Tt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(Tt=X[yt])yt=Tt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function P(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=_[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=B.exec(X.slice(et));return y?(g.p=W.get(y[0].toLowerCase()),et+y[0].length):-1}function x(g,X,et){var y=z.exec(X.slice(et));return y?(g.w=U.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=O.get(y[0].toLowerCase()),et+y[0].length):-1}function Y(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function V(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=H.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function v(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return D[g.getMonth()]}function J(g){return M[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return D[g.getUTCMonth()]}function ut(g){return M[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=P(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=P(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},pt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(e,r,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(e){return e.replace(Di,"\\$&")}function ue(e){return new RegExp("^(?:"+e.map(Ci).join("|")+")","i")}function le(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function Si(e,r,n){var i=pt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=pt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function tn(e,r,n){var i=pt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function en(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Li(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Wi(e,r,n){var i=pt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Ei(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function rn(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Ai(e,r,n){var i=pt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function nn(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Oi(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function $i(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Hi(e,r,n){var i=pt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Ni(e,r,n){var i=pt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Pi(e,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Vi(e,r,n){var i=pt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function zi(e,r,n){var i=pt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function an(e,r){return ct(e.getDate(),r,2)}function Ri(e,r){return ct(e.getHours(),r,2)}function Bi(e,r){return ct(e.getHours()%12||12,r,2)}function Zi(e,r){return ct(1+St.count(bt(e),e),r,3)}function fn(e,r){return ct(e.getMilliseconds(),r,3)}function ji(e,r){return fn(e,r)+"000"}function Xi(e,r){return ct(e.getMonth()+1,r,2)}function Gi(e,r){return ct(e.getMinutes(),r,2)}function qi(e,r){return ct(e.getSeconds(),r,2)}function Qi(e){var r=e.getDay();return r===0?7:r}function Ji(e,r){return ct(_t.count(bt(e)-1,e),r,2)}function dn(e){var r=e.getDay();return r>=4||r===0?Lt(e):Lt.ceil(e)}function Ki(e,r){return e=dn(e),ct(Lt.count(bt(e),e)+(bt(e).getDay()===4),r,2)}function ta(e){return e.getDay()}function ea(e,r){return ct(zt.count(bt(e)-1,e),r,2)}function ra(e,r){return ct(e.getFullYear()%100,r,2)}function na(e,r){return e=dn(e),ct(e.getFullYear()%100,r,2)}function ia(e,r){return ct(e.getFullYear()%1e4,r,4)}function aa(e,r){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ct(e.getFullYear()%1e4,r,4)}function sa(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(e,r){return ct(e.getUTCDate(),r,2)}function oa(e,r){return ct(e.getUTCHours(),r,2)}function ca(e,r){return ct(e.getUTCHours()%12||12,r,2)}function ua(e,r){return ct(1+oe.count(Yt(e),e),r,3)}function mn(e,r){return ct(e.getUTCMilliseconds(),r,3)}function fa(e,r){return mn(e,r)+"000"}function da(e,r){return ct(e.getUTCMonth()+1,r,2)}function ma(e,r){return ct(e.getUTCMinutes(),r,2)}function ha(e,r){return ct(e.getUTCSeconds(),r,2)}function ya(e){var r=e.getUTCDay();return r===0?7:r}function ga(e,r){return ct(jt.count(Yt(e)-1,e),r,2)}function yn(e){var r=e.getUTCDay();return r>=4||r===0?Rt(e):Rt.ceil(e)}function ka(e,r){return e=yn(e),ct(Rt.count(Yt(e),e)+(Yt(e).getUTCDay()===4),r,2)}function pa(e){return e.getUTCDay()}function Ta(e,r){return ct(Jt.count(Yt(e)-1,e),r,2)}function va(e,r){return ct(e.getUTCFullYear()%100,r,2)}function xa(e,r){return e=yn(e),ct(e.getUTCFullYear()%100,r,2)}function ba(e,r){return ct(e.getUTCFullYear()%1e4,r,4)}function wa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Rt(e):Rt.ceil(e),ct(e.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function cn(e){return+e}function un(e){return Math.floor(+e/1000)}var Kt,Xt,gn,kn,pn;tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tr(e){return Kt=Ke(e),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(e){return new Date(e)}function Ca(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,r,n,i,s,o,u,M,D,B){var W=zr(),{invert:G,domain:O}=W,z=B(".%L"),U=B(":%S"),Z=B("%I:%M"),H=B("%I %p"),tt=B("%a %d"),ft=B("%b %d"),at=B("%B"),j=B("%Y");function _(f){return(D(f)<f?z:M(f)<f?U:u(f)<f?Z:o(f)<f?H:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return W.invert=function(f){return new Date(G(f))},W.domain=function(f){return arguments.length?O(Array.from(f,Ca)):O().map(Da)},W.ticks=function(f){var P=O();return e(P[0],P[P.length-1],f==null?10:f)},W.tickFormat=function(f,P){return P==null?_:B(P)},W.nice=function(f){var P=O();if(!f||typeof f.range!=="function")f=r(P[0],P[P.length-1],f==null?10:f);return f?O(Be(P,f)):W},W.copy=function(){return la(W,Tn(e,r,n,i,s,o,u,M,D,B))},W}function er(){return Ot.apply(Tn(Ge,qe,bt,Nt,_t,St,Ht,$t,xt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Ce(Gn(),1),Mt=Ce(Ra(),1),_n=Ce(vn(),1),Yn=Ce(xn(),1),Fn=Ce(bn(),1),ee=Ce(Ra(),1),Rn=Ce(wn(),1);var dr=function(){var e=t(function(V,d,w,v){for(w=w||{},v=V.length;v--;w[V[v]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],M=[1,31],D=[1,32],B=[1,33],W=[1,34],G=[1,9],O=[1,10],z=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],_=[1,21],f=[1,22],P=[1,23],rt=[1,25],nt=[1,35],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(d,w,v,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:M,18:D,19:18,20:B,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:M,18:D,19:18,20:B,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(d,w){if(w.recoverable)this.trace(d);else{var v=Error(d);throw v.hash=w,v}},"parseError"),parse:t(function(d){var w=this,v=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){v.length=v.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}t(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}t(st,"lex");var ot,yt,gt,Tt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=v[v.length-1],this.defaultActions[gt])Tt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();Tt=J[gt]&&J[gt][ot]}if(typeof Tt>"u"||!Tt.length||!Tt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
1
+ import{t,Na,a,b,F,C,S,E,T,A,L,R,l,p,Rn,Tr,Ln,Wi,Ve,bo,cn,Zn,M}from"./chunk-zsat72qd.js";import"./chunk-vwv6pqy7.js";import{zn,yn}from"./chunk-pf65cank.js";import{cr,qr,pa,Vr,kt}from"./chunk-7kywe73f.js";import{Ot}from"./chunk-h0c42zy3.js";import{Ce,Se}from"./chunk-ty2rmwda.js";var vn=Se(function(rr,nr){(function(e,r){typeof rr=="object"&&typeof nr<"u"?nr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(rr,function(){var e="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,B,O,G,H=s(this),z=(_=this.isoWeekYear(),B=this.$u,O=(B?i.utc:i)().year(_).startOf("year"),G=4-O.isoWeekday(),O.isoWeekday()>4&&(G+=7),O.add(G,e));return H.diff(z,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var B=this.$utils(),O=!!B.u(_)||_;return B.p(D)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Se(function(ir,ar){(function(e,r){typeof ir=="object"&&typeof ar<"u"?ar.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(ir,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(W){return(W=+W)+(W>68?1900:2000)},_=function(W){return function(Z){this[W]=+Z}},B=[/[+-]\d\d:?(\d\d)?|Z/,function(W){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var N=Z.match(/([+-]|\d\d)/g),tt=60*N[1]+(+N[2]||0);return tt===0?0:N[0]==="+"?-tt:tt}(W)}],O=function(W){var Z=u[W];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(W,Z){var N,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(W.indexOf(tt(ft,0,Z))>-1){N=ft>12;break}}else N=W===(Z?"pm":"PM");return N},H={A:[o,function(W){this.afternoon=G(W,!1)}],a:[o,function(W){this.afternoon=G(W,!0)}],Q:[n,function(W){this.month=3*(W-1)+1}],S:[n,function(W){this.milliseconds=100*+W}],SS:[i,function(W){this.milliseconds=10*+W}],SSS:[/\d{3}/,function(W){this.milliseconds=+W}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(W){var Z=u.ordinal,N=W.match(/\d+/);if(this.day=N[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===W&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(W){var Z=O("months"),N=(O("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(W)+1;if(N<1)throw Error();this.month=N%12||N}],MMMM:[o,function(W){var Z=O("months").indexOf(W)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(W){this.year=D(W)}],YYYY:[/\d{4}/,_("year")],Z:B,ZZ:B};function z(W){var Z,N;Z=W,N=u&&u.formats;for(var tt=(W=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,x){var U=x&&x.toUpperCase();return nt||N[x]||e[x]||N[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,V,d){return V||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=H[j],f=Y&&Y[0],P=Y&&Y[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},x=0,U=0;x<ft;x+=1){var I=tt[x];if(typeof I=="string")U+=I.length;else{var{regex:V,parser:d}=I,w=rt.slice(U),v=V.exec(w)[0];d.call(nt,v),rt=rt.replace(v,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(W,Z,N){N.p.customParseFormat=!0,W&&W.parseTwoDigitYear&&(D=W.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,x=rt||nt,U=f[2];nt&&(U=f[2]),u=this.$locale(),!rt&&U&&(u=N.Ls[U]),this.$d=function(w,v,k,Q){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1000:1)*w);var c=z(v)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(vt){return new Date("")}}(j,P,Y,N),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),x&&j!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var I=P.length,V=1;V<=I;V+=1){f[1]=P[V-1];var d=N.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===I&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Se(function(sr,or){(function(e,r){typeof sr=="object"&&typeof or<"u"?or.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(sr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(B){switch(B){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),B==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),B==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),B==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return B}});return i.bind(this)(_)}}})});var wn=Se(function(ur,lr){(function(e,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ur,function(){var e,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,B=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},H=function(j,Y,f){return new ft(j,f,Y.$l)},z=function(j){return r.p(j)+"s"},W=function(j){return j<0},Z=function(j){return W(j)?Math.ceil(j):Math.floor(j)},N=function(j){return Math.abs(j)},tt=function(j,Y){return j?W(j)?{negative:!0,format:""+N(j)+Y}:{negative:!1,format:""+j+Y}:{negative:!1,format:""}},ft=function(){function j(f,P,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return H(f*O[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(I){nt.$d[z(I)]=f[I]}),this.calMilliseconds(),this;if(typeof f=="string"){var x=f.match(_);if(x){var U=x.slice(2).map(function(I){return I!=null?Number(I):0});return this.$d.years=U[0],this.$d.months=U[1],this.$d.weeks=U[2],this.$d.days=U[3],this.$d.hours=U[4],this.$d.minutes=U[5],this.$d.seconds=U[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*O[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),x=tt(this.$d.hours,"H"),U=tt(this.$d.minutes,"M"),I=this.$d.seconds||0;this.$d.milliseconds&&(I+=this.$d.milliseconds/1000,I=Math.round(1000*I)/1000);var V=tt(I,"S"),d=f.negative||P.negative||nt.negative||x.negative||U.negative||V.negative,w=x.format||U.format||V.format?"T":"",v=(d?"-":"")+"P"+f.format+P.format+nt.format+w+x.format+U.format+V.format;return v==="P"||v==="-P"?"P0D":v},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return P.replace(B,function(nt,x){return x||String(rt[nt])})},Y.as=function(f){return this.$ms/O[z(f)]},Y.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/O[rt]):this.$d[rt],P||0},Y.add=function(f,P,rt){var nt;return nt=P?f*O[z(P)]:G(f)?f.$ms:H(f,this).$ms,H(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,P){return this.add(f,P,!0)},Y.locale=function(f){var P=this.clone();return P.$l=f,P},Y.clone=function(){return H(this.$ms,this)},Y.humanize=function(f){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){e=f,r=f().$utils(),f.duration=function(nt,x){var U=f.locale();return H(nt,{$l:U},x)},f.isDuration=G;var P=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,x){return G(nt)?at(this,nt,1):P.bind(this)(nt,x)},Y.prototype.subtract=function(nt,x){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,x)}}})});function Ee(e){return e}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Bn(e){return"translate("+e+",0)"}function jn(e){return"translate(0,"+e+")"}function Xn(e){return(r)=>+e(r)}function Gn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function qn(){return!this.__axis}function Yr(e,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,B=e===ye||e===he?-1:1,O=e===he||e===Ae?"x":"y",G=e===ye||e===Oe?Bn:jn;function H(z){var W=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,N=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Gn:Xn)(r.copy(),_),Y=z.selection?z.selection():z,f=Y.selectAll(".domain").data([null]),P=Y.selectAll(".tick").data(W,r).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),x=P.select("line"),U=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),x=x.merge(nt.append("line").attr("stroke","currentColor").attr(O+"2",B*o)),U=U.merge(nt.append("text").attr("fill","currentColor").attr(O,B*N).attr("dy",e===ye?"0em":e===Oe?"0.71em":"0.32em")),z!==Y)f=f.transition(z),P=P.transition(z),x=x.transition(z),U=U.transition(z),rt=rt.transition(z).attr("opacity",_r).attr("transform",function(I){return isFinite(I=j(I))?G(I+_):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(I){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(I))?V:j(I))+_)});rt.remove(),f.attr("d",e===he||e===Ae?u?"M"+B*u+","+ft+"H"+_+"V"+at+"H"+B*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+B*u+"V"+_+"H"+at+"V"+B*u:"M"+ft+","+_+"H"+at),P.attr("opacity",1).attr("transform",function(I){return G(j(I)+_)}),x.attr(O+"2",B*o),U.attr(O,B*N).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ae?"start":e===he?"end":"middle"),Y.each(function(){this.__axis=j})}return H.scale=function(z){return arguments.length?(r=z,H):r},H.ticks=function(){return n=Array.from(arguments),H},H.tickArguments=function(z){return arguments.length?(n=z==null?[]:Array.from(z),H):n.slice()},H.tickValues=function(z){return arguments.length?(i=z==null?null:Array.from(z),H):i&&i.slice()},H.tickFormat=function(z){return arguments.length?(s=z,H):s},H.tickSize=function(z){return arguments.length?(o=u=+z,H):o},H.tickSizeInner=function(z){return arguments.length?(o=+z,H):o},H.tickSizeOuter=function(z){return arguments.length?(u=+z,H):u},H.tickPadding=function(z){return arguments.length?(D=+z,H):D},H.offset=function(z){return arguments.length?(_=+z,H):_},H}function $e(e){return Yr(ye,e)}function He(e){return Yr(Oe,e)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Ur=0.96422,Lr=1,Wr=0.82521,Er=0.13793103448275862,Qt=0.20689655172413793,Ar=3*Qt*Qt,Qn=Qt*Qt*Qt;function Or(e){if(e instanceof Ft)return new Ft(e.l,e.a,e.b,e.opacity);if(e instanceof At)return Hr(e);if(!(e instanceof Ve))e=Wi(e);var r=Re(e.r),n=Re(e.g),i=Re(e.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Lr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Ur),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Wr);return new Ft(116*s-16,500*(o-s),200*(s-u),e.opacity)}function $r(e,r,n,i){return arguments.length===1?Or(e):new Ft(e,r,n,i==null?1:i)}function Ft(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Rn(Ft,$r,Tr(Ln,{brighter(e){return new Ft(this.l+ge*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ft(this.l-ge*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Ur*Pe(r),e=Lr*Pe(e),n=Wr*Pe(n),new Ve(ze(3.1338561*r-1.6168667*e-0.4906146*n),ze(-0.9787684*r+1.9161415*e+0.033454*n),ze(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function Ne(e){return e>Qn?Math.pow(e,0.3333333333333333):e/Ar+Er}function Pe(e){return e>Qt?e*e*e:Ar*(e-Er)}function ze(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Re(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Jn(e){if(e instanceof At)return new At(e.h,e.c,e.l,e.opacity);if(!(e instanceof Ft))e=Or(e);if(e.a===0&&e.b===0)return new At(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Ir;return new At(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ke(e,r,n,i){return arguments.length===1?Jn(e):new At(e,r,n,i==null?1:i)}function At(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Hr(e){if(isNaN(e.h))return new Ft(e.l,0,0,e.opacity);var r=e.h*Fr;return new Ft(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Rn(At,ke,Tr(Ln,{brighter(e){return new At(this.h,this.c,this.l+ge*(e==null?1:e),this.opacity)},darker(e){return new At(this.h,this.c,this.l-ge*(e==null?1:e),this.opacity)},rgb(){return Hr(this).rgb()}}));function Nr(e){return function(r,n){var i=e((r=ke(r)).h,(n=ke(n)).h),s=cn(r.c,n.c),o=cn(r.l,n.l),u=cn(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var Pr=Nr(bo),Ls=Nr(cn);function Be(e,r){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return e[n]=r.floor(s),e[i]=r.ceil(o),e}var Ze=new Date,je=new Date;function dt(e,r,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(e(o=new Date(+o)),o),s.ceil=(o)=>(e(o=new Date(o-1)),r(o,1),e(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let B;do _.push(B=new Date(+o)),r(o,D),e(o);while(B<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(e(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Ze.setTime(+o),je.setTime(+u),e(Ze),e(je),Math.floor(n(Ze,je))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);It.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return It;return dt((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var zr=It.range;var Ct=1000,xt=60000,Ut=3600000,Vt=86400000,se=604800000,Xe=2592000000,pe=31536000000;var bt=dt((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Ct)},(e,r)=>(r-e)/Ct,(e)=>e.getUTCSeconds()),Rr=bt.range;var $t=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getMinutes()),Kn=$t.range,Te=dt((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getUTCMinutes()),ti=Te.range;var Ht=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*xt)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getHours()),ei=Ht.range,ve=dt((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getUTCHours()),ri=ve.range;var St=dt((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*xt)/Vt,(e)=>e.getDate()-1),ni=St.range,oe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>e.getUTCDate()-1),ii=oe.range,xe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>Math.floor(e/Vt)),ai=xe.range;function Bt(e){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*xt)/se)}var _t=Bt(0),zt=Bt(1),be=Bt(2),we=Bt(3),Lt=Bt(4),Me=Bt(5),De=Bt(6),Br=_t.range,si=zt.range,oi=be.range,ci=we.range,ui=Lt.range,li=Me.range,fi=De.range;function Zt(e){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),Zr=Zt(2),jr=Zt(3),Rt=Zt(4),Xr=Zt(5),Gr=Zt(6),Qr=jt.range,di=Jt.range,mi=Zr.range,hi=jr.range,yi=Rt.range,gi=Xr.range,ki=Gr.range;var Nt=dt((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),pi=Nt.range,_e=dt((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),Ti=_e.range;var wt=dt((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());wt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var vi=wt.range,Yt=dt((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());Yt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var xi=Yt.range;function Jr(e,r,n,i,s,o){let u=[[bt,1,Ct],[bt,5,5*Ct],[bt,15,15*Ct],[bt,30,30*Ct],[o,1,xt],[o,5,5*xt],[o,15,15*xt],[o,30,30*xt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,Xe],[r,3,3*Xe],[e,1,pe]];function D(B,O,G){let H=O<B;if(H)[B,O]=[O,B];let z=G&&typeof G.range==="function"?G:_(B,O,G),W=z?z.range(B,+O+1):[];return H?W.reverse():W}function _(B,O,G){let H=Math.abs(O-B)/G,z=cr(([,,N])=>N).right(u,H);if(z===u.length)return e.every(qr(B/pe,O/pe,G));if(z===0)return It.every(Math.max(qr(B,O,G),1));let[W,Z]=u[H/u[z-1][2]<u[z][2]/H?z-1:z];return W.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,xe,ve,Te),[Ge,qe]=Jr(wt,Nt,_t,St,Ht,$t);function Qe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Je(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ce(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=e,B=ue(s),O=le(s),G=ue(o),H=le(o),z=ue(u),W=le(u),Z=ue(D),N=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:na,G:aa,H:Ri,I:Bi,j:Zi,L:fn,m:Xi,M:Gi,p:h,q:mt,Q:un,s:ln,S:qi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:ra,Y:ia,Z:sa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:la,g:xa,G:wa,H:oa,I:ca,j:ua,L:mn,m:fa,M:da,p:lt,q:it,Q:un,s:ln,S:ma,u:ha,U:ya,V:ga,w:ka,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},Y={a:x,A:U,b:I,B:V,c:d,d:rn,e:rn,f:Ni,g:en,G:tn,H:nn,I:nn,j:Ai,L:Hi,m:Ei,M:Oi,p:nt,q:Li,Q:Vi,s:zi,S:$i,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:v,y:en,Y:tn,Z:Ui,"%":Pi};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,vt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(vt=X[yt])yt=vt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function P(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=B.exec(X.slice(et));return y?(g.p=O.get(y[0].toLowerCase()),et+y[0].length):-1}function x(g,X,et){var y=z.exec(X.slice(et));return y?(g.w=W.get(y[0].toLowerCase()),et+y[0].length):-1}function U(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=H.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function V(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=N.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function v(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=P(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=P(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},Tt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(e,r,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(e){return e.replace(Di,"\\$&")}function ue(e){return new RegExp("^(?:"+e.map(Ci).join("|")+")","i")}function le(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function Si(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function tn(e,r,n){var i=Tt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function en(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Ei(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function rn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Ai(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function nn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Oi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function $i(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Hi(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Ni(e,r,n){var i=Tt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Pi(e,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Vi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function zi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function an(e,r){return ct(e.getDate(),r,2)}function Ri(e,r){return ct(e.getHours(),r,2)}function Bi(e,r){return ct(e.getHours()%12||12,r,2)}function Zi(e,r){return ct(1+St.count(wt(e),e),r,3)}function fn(e,r){return ct(e.getMilliseconds(),r,3)}function ji(e,r){return fn(e,r)+"000"}function Xi(e,r){return ct(e.getMonth()+1,r,2)}function Gi(e,r){return ct(e.getMinutes(),r,2)}function qi(e,r){return ct(e.getSeconds(),r,2)}function Qi(e){var r=e.getDay();return r===0?7:r}function Ji(e,r){return ct(_t.count(wt(e)-1,e),r,2)}function dn(e){var r=e.getDay();return r>=4||r===0?Lt(e):Lt.ceil(e)}function Ki(e,r){return e=dn(e),ct(Lt.count(wt(e),e)+(wt(e).getDay()===4),r,2)}function ta(e){return e.getDay()}function ea(e,r){return ct(zt.count(wt(e)-1,e),r,2)}function ra(e,r){return ct(e.getFullYear()%100,r,2)}function na(e,r){return e=dn(e),ct(e.getFullYear()%100,r,2)}function ia(e,r){return ct(e.getFullYear()%1e4,r,4)}function aa(e,r){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ct(e.getFullYear()%1e4,r,4)}function sa(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(e,r){return ct(e.getUTCDate(),r,2)}function oa(e,r){return ct(e.getUTCHours(),r,2)}function ca(e,r){return ct(e.getUTCHours()%12||12,r,2)}function ua(e,r){return ct(1+oe.count(Yt(e),e),r,3)}function mn(e,r){return ct(e.getUTCMilliseconds(),r,3)}function la(e,r){return mn(e,r)+"000"}function fa(e,r){return ct(e.getUTCMonth()+1,r,2)}function da(e,r){return ct(e.getUTCMinutes(),r,2)}function ma(e,r){return ct(e.getUTCSeconds(),r,2)}function ha(e){var r=e.getUTCDay();return r===0?7:r}function ya(e,r){return ct(jt.count(Yt(e)-1,e),r,2)}function hn(e){var r=e.getUTCDay();return r>=4||r===0?Rt(e):Rt.ceil(e)}function ga(e,r){return e=hn(e),ct(Rt.count(Yt(e),e)+(Yt(e).getUTCDay()===4),r,2)}function ka(e){return e.getUTCDay()}function Ta(e,r){return ct(Jt.count(Yt(e)-1,e),r,2)}function va(e,r){return ct(e.getUTCFullYear()%100,r,2)}function xa(e,r){return e=hn(e),ct(e.getUTCFullYear()%100,r,2)}function ba(e,r){return ct(e.getUTCFullYear()%1e4,r,4)}function wa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Rt(e):Rt.ceil(e),ct(e.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function un(e){return+e}function ln(e){return Math.floor(+e/1000)}var Kt,Xt,gn,kn,pn;tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tr(e){return Kt=Ke(e),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(e){return new Date(e)}function Ca(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,r,n,i,s,o,u,D,_,B){var O=Vr(),{invert:G,domain:H}=O,z=B(".%L"),W=B(":%S"),Z=B("%I:%M"),N=B("%I %p"),tt=B("%a %d"),ft=B("%b %d"),at=B("%B"),j=B("%Y");function Y(f){return(_(f)<f?z:D(f)<f?W:u(f)<f?Z:o(f)<f?N:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return O.invert=function(f){return new Date(G(f))},O.domain=function(f){return arguments.length?H(Array.from(f,Ca)):H().map(Da)},O.ticks=function(f){var P=H();return e(P[0],P[P.length-1],f==null?10:f)},O.tickFormat=function(f,P){return P==null?Y:B(P)},O.nice=function(f){var P=H();if(!f||typeof f.range!=="function")f=r(P[0],P[P.length-1],f==null?10:f);return f?H(Be(P,f)):O},O.copy=function(){return pa(O,Tn(e,r,n,i,s,o,u,D,_,B))},O}function er(){return Ot.apply(Tn(Ge,qe,wt,Nt,_t,St,Ht,$t,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Ce(Zn(),1),Mt=Ce(Na(),1),_n=Ce(vn(),1),Yn=Ce(xn(),1),Fn=Ce(bn(),1),ee=Ce(Na(),1),Vn=Ce(wn(),1);var dr=function(){var e=t(function(V,d,w,v){for(w=w||{},v=V.length;v--;w[V[v]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],B=[1,33],O=[1,34],G=[1,9],H=[1,10],z=[1,11],W=[1,12],Z=[1,13],N=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],P=[1,23],rt=[1,25],nt=[1,35],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(d,w,v,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(d,w){if(w.recoverable)this.trace(d);else{var v=Error(d);throw v.hash=w,v}},"parseError"),parse:t(function(d){var w=this,v=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){v.length=v.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}t(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}t(st,"lex");var ot,yt,gt,vt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=v[v.length-1],this.defaultActions[gt])vt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();vt=J[gt]&&J[gt][ot]}if(typeof vt>"u"||!vt.length||!vt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
2
2
  `+it.showPosition()+`
3
- Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(Tt[0]instanceof Array&&Tt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(Tt[0]){case 1:if(v.push(ot),Q.push(it.yytext),c.push(it.yylloc),v.push(Tt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[Tt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,Tt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)v=v.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);v.push(this.productions_[Tt[1]][0]),Q.push(qt.$),c.push(qt._$),Sr=J[v[v.length-2]][v[v.length-1]],v.push(Sr);break;case 3:return!0}}return!0},"parse")},I=function(){var V={EOF:1,parseError:t(function(w,v){if(this.yy.parser)this.yy.parser.parseError(w,v);else throw Error(w)},"parseError"),setInput:t(function(d,w){if(this.yy=w||this.yy||{},this._input=d,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 d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.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),d},"input"),unput:t(function(d){var w=d.length,v=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=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),v.length-1)this.yylineno-=v.length-1;var Q=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:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[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).
3
+ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(vt[0]instanceof Array&&vt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(vt[0]){case 1:if(v.push(ot),Q.push(it.yytext),c.push(it.yylloc),v.push(vt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[vt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,vt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)v=v.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);v.push(this.productions_[vt[1]][0]),Q.push(qt.$),c.push(qt._$),Sr=J[v[v.length-2]][v[v.length-1]],v.push(Sr);break;case 3:return!0}}return!0},"parse")},U=function(){var V={EOF:1,parseError:t(function(w,v){if(this.yy.parser)this.yy.parser.parseError(w,v);else throw Error(w)},"parseError"),setInput:t(function(d,w){if(this.yy=w||this.yy||{},this._input=d,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 d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.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),d},"input"),unput:t(function(d){var w=d.length,v=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=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),v.length-1)this.yylineno-=v.length-1;var Q=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:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(d){this.unput(this.match.slice(d))},"less"),pastInput:t(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var d=this.match;if(d.length<20)d+=this._input.substr(0,20-d.length);return(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var d=this.pastInput(),w=Array(d.length+1).join("-");return d+this.upcomingInput()+`
5
5
  `+w+"^"},"showPosition"),test_match:t(function(d,w){var v,k,Q;if(this.options.backtrack_lexer){if(Q={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)Q.yylloc.range=this.yylloc.range.slice(0)}if(k=d[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,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(d[0].length),this.matched+=d[0],v=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(v)return v;else if(this._backtrack){for(var c in Q)this[c]=Q[c];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var d,w,v,k;if(!this._more)this.yytext="",this.match="";var Q=this._currentRules();for(var c=0;c<Q.length;c++)if(v=this._input.match(this.rules[Q[c]]),v&&(!w||v[0].length>w[0].length)){if(w=v,k=c,this.options.backtrack_lexer)if(d=this.test_match(v,Q[c]),d!==!1)return d;else if(this._backtrack){w=!1;continue}else return!1;else if(!this.options.flex)break}if(w){if(d=this.test_match(w,Q[k]),d!==!1)return d;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+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,v,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return V}();x.lexer=I;function Y(){this.yy={}}return t(Y,"Parser"),Y.prototype=x,x.Parser=Y,new Y}();dr.parser=dr;var Sa=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",pr=void 0,Tr="",ne=[],ie=[],vr=new Map,xr=[],Ie=[],ae="",br="",In=["active","done","crit","milestone","vert"],wr=[],te="",fe=!1,Mr=!1,Dr="sunday",Ue="saturday",mr=0,_a=t(function(){xr=[],Ie=[],ae="",wr=[],Ye=0,yr=void 0,Fe=void 0,kt=[],Wt="",gr="",br="",pr=void 0,Tr="",ne=[],ie=[],fe=!1,Mr=!1,mr=0,vr=new Map,te="",C(),Dr="sunday",Ue="saturday"},"clear"),Ya=t(function(e){te=e},"setDiagramId"),Fa=t(function(e){gr=e},"setAxisFormat"),Ia=t(function(){return gr},"getAxisFormat"),Ua=t(function(e){pr=e},"setTickInterval"),La=t(function(){return pr},"getTickInterval"),Wa=t(function(e){Tr=e},"setTodayMarker"),Ea=t(function(){return Tr},"getTodayMarker"),Aa=t(function(e){Wt=e},"setDateFormat"),Oa=t(function(){fe=!0},"enableInclusiveEndDates"),$a=t(function(){return fe},"endDatesAreInclusive"),Ha=t(function(){Mr=!0},"enableTopAxis"),Na=t(function(){return Mr},"topAxisEnabled"),Pa=t(function(e){br=e},"setDisplayMode"),Va=t(function(){return br},"getDisplayMode"),za=t(function(){return Wt},"getDateFormat"),Un=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Ba=t(function(e){ne=Un(ne,e)},"setIncludes"),Za=t(function(){return ne},"getIncludes"),ja=t(function(e){ie=Un(ie,e)},"setExcludes"),Xa=t(function(){return ie},"getExcludes"),Ga=t(function(){return vr},"getLinks"),qa=t(function(e){ae=e,xr.push(e)},"addSection"),Qa=t(function(){return xr},"getSections"),Ja=t(function(){let e=Dn(),r=10,n=0;while(!e&&n<r)e=Dn(),n++;return Ie=kt,Ie},"getTasks"),Ln=t(function(e,r,n,i){let s=e.format(r.trim()),o=e.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(e.isoWeekday()===Mn[Ue]||e.isoWeekday()===Mn[Ue]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=t(function(e){Dr=e},"setWeekday"),ts=t(function(){return Dr},"getWeekday"),es=t(function(e){Ue=e},"setWeekend"),Wn=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let s;if(e.startTime instanceof Date)s=Mt.default(e.startTime);else s=Mt.default(e.startTime,r,!0);s=s.add(1,"d");let o;if(e.endTime instanceof Date)o=Mt.default(e.endTime);else o=Mt.default(e.endTime,r,!0);let[u,M]=rs(s,o,r,n,i);e.endTime=u.toDate(),e.renderEndTime=M},"checkTaskDates"),rs=t(function(e,r,n,i,s){let o=!1,u=null,M=r.add(1e4,"d");while(e<=r){if(!o)u=r.toDate();if(o=Ln(e,n,i,s),o){if(r=r.add(1,"d"),r>M)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,u]},"fixTaskDates"),On=t(function(e,r){a.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=t(function(e,r,n){if(n=n.trim(),t((M)=>{let D=M.trim();return D==="x"||D==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let M=null,D=[],B=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of B){let O=Gt(G);if(O===void 0){D.push(G);continue}if(!M||O.endTime>M.endTime)M=O}if(D.length>0)On("after",D);if(M)return M.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let M=new Date(n);if(M===void 0||isNaN(M.getTime())||M.getFullYear()<-1e4||M.getFullYear()>1e4)throw Error("Invalid date:"+n);return M}},"getStartDate"),Hn=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),Nn=t(function(e,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let W=null,G=[],O=o.groups.ids.split(" ").filter((U)=>U!=="");for(let U of O){let Z=Gt(U);if(Z===void 0){G.push(U);continue}if(!W||Z.startTime<W.startTime)W=Z}if(G.length>0)On("until",G);if(W)return W.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let M=Mt.default(e),[D,B]=Hn(n);if(Number.isNaN(D))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let W=M.add(D,B);if(W.isValid())M=W}return M.toDate()},"getEndDate"),Ye=0,re=t(function(e){if(e===void 0)return Ye=Ye+1,"task"+Ye;return e},"parseId"),ns=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Cr(i,s,In);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=e.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=Nn(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),Wn(s,Wt,ie,ne);return s},"compileData"),is=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Cr(i,s,In);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,kt=[],Pn={},as=t(function(e,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=kt.push(n);Fe=n.id,Pn[n.id]=s-1},"addTask"),Gt=t(function(e){let r=Pn[e];return kt[r]},"findTaskById"),ss=t(function(e,r){let n={section:ae,type:ae,description:e,task:e,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Dn=t(function(){let e=t(function(n){let i=kt[n],s="";switch(kt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,kt[n].raw.startTime.startData),s)kt[n].startTime=s;break}if(kt[n].startTime){if(kt[n].endTime=Nn(kt[n].startTime,Wt,kt[n].raw.endTime.data,fe),kt[n].endTime)kt[n].processed=!0,kt[n].manualEndTime=Mt.default(kt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wn(kt[n],Wt,ie,ne)}return kt[n].processed},"compileTask"),r=!0;for(let[n,i]of kt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),os=t(function(e,r){let n=r;if(l().securityLevel!=="loose")n=Sn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Gt(i)!==void 0)zn(i,()=>{window.open(n,"_self")}),vr.set(i,n)}),Vn(e,"clickable")},"setLink"),Vn=t(function(e,r){e.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=t(function(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(e);if(Gt(e)!==void 0)zn(e,()=>{N.runFunc(r,...i)})},"setClickFun"),zn=t(function(e,r){wr.push(function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=t(function(e,r,n){e.split(",").forEach(function(i){cs(i,r,n)}),Vn(e,"clickable")},"setClickEvent"),ls=t(function(e){wr.forEach(function(r){r(e)})},"bindFunctions"),fs={getConfig:t(()=>l().gantt,"getConfig"),clear:_a,setDateFormat:Aa,getDateFormat:za,enableInclusiveEndDates:Oa,endDatesAreInclusive:$a,enableTopAxis:Ha,topAxisEnabled:Na,setAxisFormat:Fa,getAxisFormat:Ia,setTickInterval:Ua,getTickInterval:La,setTodayMarker:Wa,getTodayMarker:Ea,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,setDiagramId:Ya,setDisplayMode:Pa,getDisplayMode:Va,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:Hn,isInvalidDate:Ln,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Cr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(e[0].match(u))r[s]=!0,e.shift(1),i=!0})}t(Cr,"getTaskTags");ee.default.extend(Rn.default);var ds=t(function(){a.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:be,wednesday:we,thursday:Lt,friday:Me,saturday:De,sunday:_t},ms=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Pt,fr=1e4,hs=t(function(e,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let M=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),D=o==="sandbox"?u.nodes()[0].contentDocument:document,B=D.getElementById(r);if(Pt=B.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(s.useWidth!==void 0)Pt=s.useWidth;let W=i.db.getTasks(),G=W.filter((x)=>!x.vert),O=[];for(let x of G)O.push(x.type);O=nt(O);let z={},U=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let x={};for(let Y of G)if(x[Y.section]===void 0)x[Y.section]=[Y];else x[Y.section].push(Y);let I=0;for(let Y of Object.keys(x)){let V=ms(x[Y],I)+1;I+=V,U+=V*(s.barHeight+s.barGap),z[Y]=V}}else{U+=G.length*(s.barHeight+s.barGap);for(let x of O)z[x]=G.filter((I)=>I.type===x).length}B.setAttribute("viewBox","0 0 "+Pt+" "+U);let Z=M.select(`[id="${r}"]`),H=er().domain([hn(W,function(x){return x.startTime}),$n(W,function(x){return x.endTime})]).rangeRound([0,Pt-s.leftPadding-s.rightPadding]);function tt(x,I){let Y=x.startTime,V=I.startTime,d=0;if(Y>V)d=1;else if(Y<V)d=-1;return d}t(tt,"taskCompare"),W.sort(tt),ft(W,Pt,U),F(Z,U,Pt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Pt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(x,I,Y){let V=s.barHeight,d=V+s.barGap,{topPadding:w,leftPadding:v}=s,k=wt().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(Vr);j(d,w,v,I,Y,x,i.db.getExcludes(),i.db.getIncludes()),f(v,w,I,Y),at(x,d,w,v,V,k,I,Y),P(d,w,v,V,k),rt(v,w,I,Y)}t(ft,"makeGantt");function at(x,I,Y,V,d,w,v){x.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=x.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*I+Y-2}).attr("width",function(){return v-s.rightPadding/2}).attr("height",I).attr("class",function(m){for(let[q,K]of O.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(x).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))-0.5*d;return H(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*I+Y}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return H(m.renderEndTime||m.endTime)-H(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))).toString()+"px "+(q*I+Y+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of O.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=H(m.startTime),K=H(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(H(m.endTime)-H(m.startTime))-0.5*d,K=q+d;if(m.vert)return H(m.startTime)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return q+V-5;else return K+V+5;else return(K-q)/2+q+V}).attr("y",function(m,q){if(m.vert)return s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*I+s.barHeight/2+(s.fontSize/2-2)+Y}).attr("text-height",d).attr("class",function(m){let q=H(m.startTime),K=H(m.endTime);if(m.milestone)K=q+d;let ut=this.getBBox().width,lt="";if(m.classes.length>0)lt=m.classes.join(" ");let it=0;for(let[X,et]of O.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}t(at,"drawRects");function j(x,I,Y,V,d,w,v,k){if(v.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,v,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>H(K.start.startOf("day"))+Y).attr("y",s.gridLineStartPadding).attr("width",(K)=>H(K.end.endOf("day"))-H(K.start.startOf("day"))).attr("height",d-I-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(H(K.start)+Y+0.5*(H(K.end)-H(K.start))).toString()+"px "+(ut*x+0.5*d).toString()+"px"}).attr("class","exclude-range")}t(j,"drawExcludeDays");function _(x,I,Y,V){if(Y<=0||x>I)return 1/0;let d=I-x,w=ee.default.duration({[V??"day"]:Y}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}t(_,"getEstimatedTickCount");function f(x,I,Y,V){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),v;if(w)v=w;else if(d==="D")v="%d";else v=s.axisFormat??"%Y-%m-%d";let k=He(H).tickSize(-V+I+s.gridLineStartPadding).tickFormat(Xt(v)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=H.domain(),q=m[0],K=m[1],ut=_(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(xt.every(J));break;case"minute":k.ticks($t.every(J));break;case"hour":k.ticks(Ht.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(Cn[mt].every(J));break;case"month":k.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+(V-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(H).tickSize(-V+I+s.gridLineStartPadding).tickFormat(Xt(v));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=H.domain(),K=q[0],ut=q[1];if(_(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(xt.every(h));break;case"minute":J.ticks($t.every(h));break;case"hour":J.ticks(Ht.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Nt.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+I+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(f,"makeGrid");function P(x,I){let Y=0,V=Object.keys(z).map((d)=>[d,z[d]]);Z.append("g").selectAll("text").data(V).enter().append(function(d){let w=d[0].split(b.lineBreakRegex),v=-(w.length-1)/2,k=D.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",v+"em");for(let[Q,c]of w.entries()){let J=D.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let v=0;v<w;v++)return Y+=V[w-1][1],d[1]*x/2+Y*x+I;else return d[1]*x/2+I}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,v]of O.entries())if(d[0]===v)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}t(P,"vertLabels");function rt(x,I,Y,V){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),v=new Date,k=w.append("line");if(k.attr("x1",H(v)+x).attr("x2",H(v)+x).attr("y1",s.titleTopMargin).attr("y2",V-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}t(rt,"drawToday");function nt(x){let I={},Y=[];for(let V=0,d=x.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(I,x[V]))I[x[V]]=!0,Y.push(x[V]);return Y}t(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=t((e)=>`
6
+ `+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,v,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return V}();x.lexer=U;function I(){this.yy={}}return t(I,"Parser"),I.prototype=x,x.Parser=I,new I}();dr.parser=dr;var Sa=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",kr=void 0,pr="",ne=[],ie=[],vr=new Map,xr=[],Ie=[],ae="",br="",In=["active","done","crit","milestone","vert"],wr=[],te="",fe=!1,Mr=!1,Dr="sunday",Ue="saturday",mr=0,_a=t(function(){xr=[],Ie=[],ae="",wr=[],Ye=0,yr=void 0,Fe=void 0,pt=[],Wt="",gr="",br="",kr=void 0,pr="",ne=[],ie=[],fe=!1,Mr=!1,mr=0,vr=new Map,te="",C(),Dr="sunday",Ue="saturday"},"clear"),Ya=t(function(e){te=e},"setDiagramId"),Fa=t(function(e){gr=e},"setAxisFormat"),Ia=t(function(){return gr},"getAxisFormat"),Ua=t(function(e){kr=e},"setTickInterval"),La=t(function(){return kr},"getTickInterval"),Wa=t(function(e){pr=e},"setTodayMarker"),Ea=t(function(){return pr},"getTodayMarker"),Aa=t(function(e){Wt=e},"setDateFormat"),Oa=t(function(){fe=!0},"enableInclusiveEndDates"),$a=t(function(){return fe},"endDatesAreInclusive"),Ha=t(function(){Mr=!0},"enableTopAxis"),Pa=t(function(){return Mr},"topAxisEnabled"),Va=t(function(e){br=e},"setDisplayMode"),za=t(function(){return br},"getDisplayMode"),Ra=t(function(){return Wt},"getDateFormat"),Un=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Ba=t(function(e){ne=Un(ne,e)},"setIncludes"),Za=t(function(){return ne},"getIncludes"),ja=t(function(e){ie=Un(ie,e)},"setExcludes"),Xa=t(function(){return ie},"getExcludes"),Ga=t(function(){return vr},"getLinks"),qa=t(function(e){ae=e,xr.push(e)},"addSection"),Qa=t(function(){return xr},"getSections"),Ja=t(function(){let e=Dn(),r=10,n=0;while(!e&&n<r)e=Dn(),n++;return Ie=pt,Ie},"getTasks"),Wn=t(function(e,r,n,i){let s=e.format(r.trim()),o=e.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(e.isoWeekday()===Mn[Ue]||e.isoWeekday()===Mn[Ue]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=t(function(e){Dr=e},"setWeekday"),ts=t(function(){return Dr},"getWeekday"),es=t(function(e){Ue=e},"setWeekend"),En=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let s;if(e.startTime instanceof Date)s=Mt.default(e.startTime);else s=Mt.default(e.startTime,r,!0);s=s.add(1,"d");let o;if(e.endTime instanceof Date)o=Mt.default(e.endTime);else o=Mt.default(e.endTime,r,!0);let[u,D]=rs(s,o,r,n,i);e.endTime=u.toDate(),e.renderEndTime=D},"checkTaskDates"),rs=t(function(e,r,n,i,s){let o=!1,u=null,D=r.add(1e4,"d");while(e<=r){if(!o)u=r.toDate();if(o=Wn(e,n,i,s),o){if(r=r.add(1,"d"),r>D)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,u]},"fixTaskDates"),An=t(function(e,r){a.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=t(function(e,r,n){if(n=n.trim(),t((D)=>{let _=D.trim();return _==="x"||_==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let D=null,_=[],B=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of B){let H=Gt(G);if(H===void 0){_.push(G);continue}if(!D||H.endTime>D.endTime)D=H}if(_.length>0)An("after",_);if(D)return D.endTime;let O=new Date;return O.setHours(0,0,0,0),O}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let D=new Date(n);if(D===void 0||isNaN(D.getTime())||D.getFullYear()<-1e4||D.getFullYear()>1e4)throw Error("Invalid date:"+n);return D}},"getStartDate"),On=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),$n=t(function(e,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let O=null,G=[],H=o.groups.ids.split(" ").filter((W)=>W!=="");for(let W of H){let Z=Gt(W);if(Z===void 0){G.push(W);continue}if(!O||Z.startTime<O.startTime)O=Z}if(G.length>0)An("until",G);if(O)return O.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let D=Mt.default(e),[_,B]=On(n);if(Number.isNaN(_))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let O=D.add(_,B);if(O.isValid())D=O}return D.toDate()},"getEndDate"),Ye=0,re=t(function(e){if(e===void 0)return Ye=Ye+1,"task"+Ye;return e},"parseId"),ns=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Cr(i,s,In);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=e.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=$n(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),En(s,Wt,ie,ne);return s},"compileData"),is=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Cr(i,s,In);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,pt=[],Hn={},as=t(function(e,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=pt.push(n);Fe=n.id,Hn[n.id]=s-1},"addTask"),Gt=t(function(e){let r=Hn[e];return pt[r]},"findTaskById"),ss=t(function(e,r){let n={section:ae,type:ae,description:e,task:e,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Dn=t(function(){let e=t(function(n){let i=pt[n],s="";switch(pt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,pt[n].raw.startTime.startData),s)pt[n].startTime=s;break}if(pt[n].startTime){if(pt[n].endTime=$n(pt[n].startTime,Wt,pt[n].raw.endTime.data,fe),pt[n].endTime)pt[n].processed=!0,pt[n].manualEndTime=Mt.default(pt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),En(pt[n],Wt,ie,ne)}return pt[n].processed},"compileTask"),r=!0;for(let[n,i]of pt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),os=t(function(e,r){let n=r;if(l().securityLevel!=="loose")n=Sn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Gt(i)!==void 0)Pn(i,()=>{window.open(n,"_self")}),vr.set(i,n)}),Nn(e,"clickable")},"setLink"),Nn=t(function(e,r){e.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=t(function(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(e);if(Gt(e)!==void 0)Pn(e,()=>{M.runFunc(r,...i)})},"setClickFun"),Pn=t(function(e,r){wr.push(function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=t(function(e,r,n){e.split(",").forEach(function(i){cs(i,r,n)}),Nn(e,"clickable")},"setClickEvent"),ls=t(function(e){wr.forEach(function(r){r(e)})},"bindFunctions"),fs={getConfig:t(()=>l().gantt,"getConfig"),clear:_a,setDateFormat:Aa,getDateFormat:Ra,enableInclusiveEndDates:Oa,endDatesAreInclusive:$a,enableTopAxis:Ha,topAxisEnabled:Pa,setAxisFormat:Fa,getAxisFormat:Ia,setTickInterval:Ua,getTickInterval:La,setTodayMarker:Wa,getTodayMarker:Ea,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,setDiagramId:Ya,setDisplayMode:Va,getDisplayMode:za,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:On,isInvalidDate:Wn,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Cr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(e[0].match(u))r[s]=!0,e.shift(1),i=!0})}t(Cr,"getTaskTags");ee.default.extend(Vn.default);var ds=t(function(){a.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:be,wednesday:we,thursday:Lt,friday:Me,saturday:De,sunday:_t},ms=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Pt,fr=1e4,hs=t(function(e,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let D=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),_=o==="sandbox"?u.nodes()[0].contentDocument:document,B=_.getElementById(r);if(Pt=B.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(s.useWidth!==void 0)Pt=s.useWidth;let O=i.db.getTasks(),G=O.filter((x)=>!x.vert),H=[];for(let x of G)H.push(x.type);H=nt(H);let z={},W=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let x={};for(let I of G)if(x[I.section]===void 0)x[I.section]=[I];else x[I.section].push(I);let U=0;for(let I of Object.keys(x)){let V=ms(x[I],U)+1;U+=V,W+=V*(s.barHeight+s.barGap),z[I]=V}}else{W+=G.length*(s.barHeight+s.barGap);for(let x of H)z[x]=G.filter((U)=>U.type===x).length}B.setAttribute("viewBox","0 0 "+Pt+" "+W);let Z=D.select(`[id="${r}"]`),N=er().domain([yn(O,function(x){return x.startTime}),zn(O,function(x){return x.endTime})]).rangeRound([0,Pt-s.leftPadding-s.rightPadding]);function tt(x,U){let I=x.startTime,V=U.startTime,d=0;if(I>V)d=1;else if(I<V)d=-1;return d}t(tt,"taskCompare"),O.sort(tt),ft(O,Pt,W),F(Z,W,Pt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Pt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(x,U,I){let V=s.barHeight,d=V+s.barGap,{topPadding:w,leftPadding:v}=s,k=kt().domain([0,H.length]).range(["#00B9FA","#F95002"]).interpolate(Pr);j(d,w,v,U,I,x,i.db.getExcludes(),i.db.getIncludes()),f(v,w,U,I),at(x,d,w,v,V,k,U,I),P(d,w,v,V,k),rt(v,w,U,I)}t(ft,"makeGantt");function at(x,U,I,V,d,w,v){x.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=x.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*U+I-2}).attr("width",function(){return v-s.rightPadding/2}).attr("height",U).attr("class",function(m){for(let[q,K]of H.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(x).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))-0.5*d;return N(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*U+I}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return N(m.renderEndTime||m.endTime)-N(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))).toString()+"px "+(q*U+I+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of H.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=N(m.startTime),K=N(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(N(m.endTime)-N(m.startTime))-0.5*d,K=q+d;if(m.vert)return N(m.startTime)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return q+V-5;else return K+V+5;else return(K-q)/2+q+V}).attr("y",function(m,q){if(m.vert)return s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*U+s.barHeight/2+(s.fontSize/2-2)+I}).attr("text-height",d).attr("class",function(m){let q=N(m.startTime),K=N(m.endTime);if(m.milestone)K=q+d;let ut=this.getBBox().width,lt="";if(m.classes.length>0)lt=m.classes.join(" ");let it=0;for(let[X,et]of H.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}t(at,"drawRects");function j(x,U,I,V,d,w,v,k){if(v.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,v,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>N(K.start.startOf("day"))+I).attr("y",s.gridLineStartPadding).attr("width",(K)=>N(K.end.endOf("day"))-N(K.start.startOf("day"))).attr("height",d-U-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(N(K.start)+I+0.5*(N(K.end)-N(K.start))).toString()+"px "+(ut*x+0.5*d).toString()+"px"}).attr("class","exclude-range")}t(j,"drawExcludeDays");function Y(x,U,I,V){if(I<=0||x>U)return 1/0;let d=U-x,w=ee.default.duration({[V??"day"]:I}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}t(Y,"getEstimatedTickCount");function f(x,U,I,V){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),v;if(w)v=w;else if(d==="D")v="%d";else v=s.axisFormat??"%Y-%m-%d";let k=He(N).tickSize(-V+U+s.gridLineStartPadding).tickFormat(Xt(v)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=N.domain(),q=m[0],K=m[1],ut=Y(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(bt.every(J));break;case"minute":k.ticks($t.every(J));break;case"hour":k.ticks(Ht.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(Cn[mt].every(J));break;case"month":k.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+(V-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(N).tickSize(-V+U+s.gridLineStartPadding).tickFormat(Xt(v));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=N.domain(),K=q[0],ut=q[1];if(Y(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(bt.every(h));break;case"minute":J.ticks($t.every(h));break;case"hour":J.ticks(Ht.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Nt.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+U+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(f,"makeGrid");function P(x,U){let I=0,V=Object.keys(z).map((d)=>[d,z[d]]);Z.append("g").selectAll("text").data(V).enter().append(function(d){let w=d[0].split(b.lineBreakRegex),v=-(w.length-1)/2,k=_.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",v+"em");for(let[Q,c]of w.entries()){let J=_.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let v=0;v<w;v++)return I+=V[w-1][1],d[1]*x/2+I*x+U;else return d[1]*x/2+U}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,v]of H.entries())if(d[0]===v)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}t(P,"vertLabels");function rt(x,U,I,V){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),v=new Date,k=w.append("line");if(k.attr("x1",N(v)+x).attr("x2",N(v)+x).attr("y1",s.titleTopMargin).attr("y2",V-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}t(rt,"drawToday");function nt(x){let U={},I=[];for(let V=0,d=x.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(U,x[V]))U[x[V]]=!0,I.push(x[V]);return I}t(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=t((e)=>`
7
7
  .mermaid-main-font {
8
8
  font-family: ${e.fontFamily};
9
9
  }
@@ -1 +1 @@
1
- import{t,a,p}from"./chunk-b5zf1hs3.js";import{ft,yr}from"./chunk-hn8m1vsg.js";import{Ce,Se}from"./chunk-3k9h7a73.js";var k=Se(function(F,Y){(function(g,r){if(typeof F==="object"&&typeof Y==="object")Y.exports=r(yr());else if(typeof define==="function"&&define.amd)define(["cose-base"],r);else if(typeof F==="object")F.cytoscapeCoseBilkent=r(yr());else g.cytoscapeCoseBilkent=r(g.coseBase)})(F,function(u){return function(g){var r={};function n(o){if(r[o])return r[o].exports;var d=r[o]={i:o,l:!1,exports:{}};return g[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}return n.m=g,n.c=r,n.i=function(o){return o},n.d=function(o,d,l){if(!n.o(o,d))Object.defineProperty(o,d,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(d,"a",d),d},n.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},n.p="",n(n.s=1)}([function(g,r){g.exports=u},function(g,r,n){var o=n(0).layoutBase.LayoutConstants,d=n(0).layoutBase.FDLayoutConstants,l=n(0).CoSEConstants,L=n(0).CoSELayout,b=n(0).CoSENode,H=n(0).layoutBase.PointD,v=n(0).layoutBase.DimensionD,_={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:0.45,nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.5};function D(E,e){var f={};for(var s in E)f[s]=E[s];for(var s in e)f[s]=e[s];return f}function I(E){this.options=D(_,E),U(this.options)}var U=function(e){if(e.nodeRepulsion!=null)l.DEFAULT_REPULSION_STRENGTH=d.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion;if(e.idealEdgeLength!=null)l.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=e.idealEdgeLength;if(e.edgeElasticity!=null)l.DEFAULT_SPRING_STRENGTH=d.DEFAULT_SPRING_STRENGTH=e.edgeElasticity;if(e.nestingFactor!=null)l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor;if(e.gravity!=null)l.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=e.gravity;if(e.numIter!=null)l.MAX_ITERATIONS=d.MAX_ITERATIONS=e.numIter;if(e.gravityRange!=null)l.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange;if(e.gravityCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound;if(e.gravityRangeCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound;if(e.initialEnergyOnIncremental!=null)l.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental;if(e.quality=="draft")o.QUALITY=0;else if(e.quality=="proof")o.QUALITY=2;else o.QUALITY=1;l.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!e.randomize,l.ANIMATE=d.ANIMATE=o.ANIMATE=e.animate,l.TILE=e.tile,l.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==="function"?e.tilingPaddingVertical.call():e.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==="function"?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};I.prototype.run=function(){var E,e,f=this.options,s=this.idToLNode={},c=this.layout=new L,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var y=c.newGraphManager();this.gm=y;var T=this.options.eles.nodes(),m=this.options.eles.edges();this.root=y.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(T),c);for(var h=0;h<m.length;h++){var P=m[h],x=this.idToLNode[P.data("source")],O=this.idToLNode[P.data("target")];if(x!==O&&x.getEdgesBetween(O).length==0){var et=y.add(c.newEdge(),x,O);et.id=P.id()}}var V=function(R,B){if(typeof R==="number")R=B;var C=R.data("id"),G=i.idToLNode[C];return{x:G.getRect().getCenterX(),y:G.getRect().getCenterY()}},nt=function X(){var R=function(){if(f.fit)f.cy.fit(f.eles,f.padding);if(!E)E=!0,i.cy.one("layoutready",f.ready),i.cy.trigger({type:"layoutready",layout:i})},B=i.options.refresh,C;for(var G=0;G<B&&!C;G++)C=i.stopped||i.layout.tick();if(C){if(c.checkLayoutSuccess()&&!c.isSubLayout)c.doPostLayout();if(c.tilingPostLayout)c.tilingPostLayout();if(c.isLayoutFinished=!0,i.options.eles.nodes().positions(V),R(),i.cy.one("layoutstop",i.options.stop),i.cy.trigger({type:"layoutstop",layout:i}),e)cancelAnimationFrame(e);E=!1;return}var M=i.layout.getPositionsData();f.eles.nodes().positions(function(A,it){if(typeof A==="number")A=it;if(!A.isParent()){var j=A.id(),N=M[j],w=A;while(N==null)if(N=M[w.data("parent")]||M["DummyCompound_"+w.data("parent")],M[j]=N,w=w.parent()[0],w==null)break;if(N!=null)return{x:N.x,y:N.y};else return{x:A.position("x"),y:A.position("y")}}}),R(),e=requestAnimationFrame(X)};if(c.addListener("layoutstarted",function(){if(i.options.animate==="during")e=requestAnimationFrame(nt)}),c.runLayout(),this.options.animate!=="during")i.options.eles.nodes().not(":parent").layoutPositions(i,i.options,V),E=!1;return this},I.prototype.getTopMostNodes=function(E){var e={};for(var f=0;f<E.length;f++)e[E[f].id()]=!0;var s=E.filter(function(c,i){if(typeof c==="number")c=i;var y=c.parent()[0];while(y!=null){if(e[y.id()])return!1;y=y.parent()[0]}return!0});return s},I.prototype.processChildrenList=function(E,e,f){var s=e.length;for(var c=0;c<s;c++){var i=e[c],y=i.children(),T,m=i.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(i.outerWidth()!=null&&i.outerHeight()!=null)T=E.add(new b(f.graphManager,new H(i.position("x")-m.w/2,i.position("y")-m.h/2),new v(parseFloat(m.w),parseFloat(m.h))));else T=E.add(new b(this.graphManager));if(T.id=i.data("id"),T.paddingLeft=parseInt(i.css("padding")),T.paddingTop=parseInt(i.css("padding")),T.paddingRight=parseInt(i.css("padding")),T.paddingBottom=parseInt(i.css("padding")),this.options.nodeDimensionsIncludeLabels){if(i.isParent()){var h=i.boundingBox({includeLabels:!0,includeNodes:!1}).w,P=i.boundingBox({includeLabels:!0,includeNodes:!1}).h,x=i.css("text-halign");T.labelWidth=h,T.labelHeight=P,T.labelPos=x}}if(this.idToLNode[i.data("id")]=T,isNaN(T.rect.x))T.rect.x=0;if(isNaN(T.rect.y))T.rect.y=0;if(y!=null&&y.length>0){var O=f.getGraphManager().add(f.newGraph(),T);this.processChildrenList(O,y,f)}}},I.prototype.stop=function(){return this.stopped=!0,this};var S=function(e){e("layout","cose-bilkent",I)};if(typeof cytoscape<"u")S(cytoscape);g.exports=S}])})});var z=Ce(k(),1);ft.use(z.default);function q(u,g){u.forEach((r)=>{let n={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach((o)=>{if(!["id","label","height","width","padding","x","y"].includes(o))n[o]=r[o]}),g.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}t(q,"addNodes");function W(u,g){u.forEach((r)=>{let n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach((o)=>{if(!["id","start","end"].includes(o))n[o]=r[o]}),g.add({group:"edges",data:n})})}t(W,"addEdges");function Q(u){return new Promise((g)=>{let r=p("body").append("div").attr("id","cy").attr("style","display:none"),n=ft({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),q(u.nodes,n),W(u.edges,n),n.nodes().forEach(function(d){d.layoutDimensions=()=>{let l=d.data();return{w:l.width,h:l.height}}});let o={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(o).run(),n.ready((d)=>{a.info("Cytoscape ready",d),g(n)})})}t(Q,"createCytoscapeInstance");function Z(u){return u.nodes().map((g)=>{let r=g.data(),n=g.position(),o={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach((d)=>{if(d!=="id")o[d]=r[d]}),o})}t(Z,"extractPositionedNodes");function J(u){return u.edges().map((g)=>{let r=g.data(),n=g._private.rscratch,o={id:r.id,source:r.source,target:r.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(r).forEach((d)=>{if(!["id","source","target"].includes(d))o[d]=r[d]}),o})}t(J,"extractPositionedEdges");async function K(u,g){a.debug("Starting cose-bilkent layout algorithm");try{tt(u);let r=await Q(u),n=Z(r),o=J(r);return a.debug(`Layout completed: ${n.length} nodes, ${o.length} edges`),{nodes:n,edges:o}}catch(r){throw a.error("Error in cose-bilkent layout algorithm:",r),r}}t(K,"executeCoseBilkentLayout");function tt(u){if(!u)throw Error("Layout data is required");if(!u.config)throw Error("Configuration is required in layout data");if(!u.rootNode)throw Error("Root node is required");if(!u.nodes||!Array.isArray(u.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(u.edges))throw Error("Edges array is required in layout data");return!0}t(tt,"validateLayoutData");var at=t(async(u,g,{insertCluster:r,insertEdge:n,insertEdgeLabel:o,insertMarkers:d,insertNode:l,log:L,positionEdgeLabel:b},{algorithm:H})=>{let v={},_={},D=g.select("g");d(D,u.markers,u.type,u.diagramId);let I=D.insert("g").attr("class","subgraphs"),U=D.insert("g").attr("class","edgePaths"),S=D.insert("g").attr("class","edgeLabels"),E=D.insert("g").attr("class","nodes");L.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(u.nodes.map(async(s)=>{if(s.isGroup){let c={...s};_[s.id]=c,v[s.id]=c,await r(I,s)}else{let c={...s};v[s.id]=c;let i=await l(E,s,{config:u.config,dir:u.direction||"TB"}),y=i.node().getBBox();c.width=y.width,c.height=y.height,c.domId=i,L.debug(`Node ${s.id} dimensions: ${y.width}x${y.height}`)}})),L.debug("Running cose-bilkent layout algorithm");let e={...u,nodes:u.nodes.map((s)=>{let c=v[s.id];return{...s,width:c.width,height:c.height}})},f=await K(e,u.config);L.debug("Positioning nodes based on layout results"),f.nodes.forEach((s)=>{let c=v[s.id];if(c?.domId)c.domId.attr("transform",`translate(${s.x}, ${s.y})`),c.x=s.x,c.y=s.y,L.debug(`Positioned node ${c.id} at center (${s.x}, ${s.y})`)}),f.edges.forEach((s)=>{let c=u.edges.find((i)=>i.id===s.id);if(c)c.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}]}),L.debug("Inserting and positioning edges"),await Promise.all(u.edges.map(async(s)=>{let c=await o(S,s),i=v[s.start??""],y=v[s.end??""];if(i&&y){let T=f.edges.find((m)=>m.id===s.id);if(T){L.debug("APA01 positionedEdge",T);let m={...s},h=n(U,m,_,u.type,i,y,u.diagramId);b(m,h)}else{let m={...s,points:[{x:i.x||0,y:i.y||0},{x:y.x||0,y:y.y||0}]},h=n(U,m,_,u.type,i,y,u.diagramId);b(m,h)}}})),L.debug("Cose-bilkent rendering completed")},"render"),ct=at;export{ct as render};
1
+ import{t,a,p}from"./chunk-zsat72qd.js";import{ht,xr}from"./chunk-3rxhs9qm.js";import{Ce,Se}from"./chunk-ty2rmwda.js";var k=Se(function(F,Y){(function(g,r){if(typeof F==="object"&&typeof Y==="object")Y.exports=r(xr());else if(typeof define==="function"&&define.amd)define(["cose-base"],r);else if(typeof F==="object")F.cytoscapeCoseBilkent=r(xr());else g.cytoscapeCoseBilkent=r(g.coseBase)})(F,function(u){return function(g){var r={};function n(o){if(r[o])return r[o].exports;var d=r[o]={i:o,l:!1,exports:{}};return g[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}return n.m=g,n.c=r,n.i=function(o){return o},n.d=function(o,d,l){if(!n.o(o,d))Object.defineProperty(o,d,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(d,"a",d),d},n.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},n.p="",n(n.s=1)}([function(g,r){g.exports=u},function(g,r,n){var o=n(0).layoutBase.LayoutConstants,d=n(0).layoutBase.FDLayoutConstants,l=n(0).CoSEConstants,L=n(0).CoSELayout,b=n(0).CoSENode,H=n(0).layoutBase.PointD,v=n(0).layoutBase.DimensionD,_={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:0.45,nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.5};function D(E,e){var f={};for(var s in E)f[s]=E[s];for(var s in e)f[s]=e[s];return f}function I(E){this.options=D(_,E),U(this.options)}var U=function(e){if(e.nodeRepulsion!=null)l.DEFAULT_REPULSION_STRENGTH=d.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion;if(e.idealEdgeLength!=null)l.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=e.idealEdgeLength;if(e.edgeElasticity!=null)l.DEFAULT_SPRING_STRENGTH=d.DEFAULT_SPRING_STRENGTH=e.edgeElasticity;if(e.nestingFactor!=null)l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor;if(e.gravity!=null)l.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=e.gravity;if(e.numIter!=null)l.MAX_ITERATIONS=d.MAX_ITERATIONS=e.numIter;if(e.gravityRange!=null)l.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange;if(e.gravityCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound;if(e.gravityRangeCompound!=null)l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound;if(e.initialEnergyOnIncremental!=null)l.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental;if(e.quality=="draft")o.QUALITY=0;else if(e.quality=="proof")o.QUALITY=2;else o.QUALITY=1;l.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!e.randomize,l.ANIMATE=d.ANIMATE=o.ANIMATE=e.animate,l.TILE=e.tile,l.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==="function"?e.tilingPaddingVertical.call():e.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==="function"?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};I.prototype.run=function(){var E,e,f=this.options,s=this.idToLNode={},c=this.layout=new L,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var y=c.newGraphManager();this.gm=y;var T=this.options.eles.nodes(),m=this.options.eles.edges();this.root=y.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(T),c);for(var h=0;h<m.length;h++){var P=m[h],x=this.idToLNode[P.data("source")],O=this.idToLNode[P.data("target")];if(x!==O&&x.getEdgesBetween(O).length==0){var et=y.add(c.newEdge(),x,O);et.id=P.id()}}var V=function(R,B){if(typeof R==="number")R=B;var C=R.data("id"),G=i.idToLNode[C];return{x:G.getRect().getCenterX(),y:G.getRect().getCenterY()}},nt=function X(){var R=function(){if(f.fit)f.cy.fit(f.eles,f.padding);if(!E)E=!0,i.cy.one("layoutready",f.ready),i.cy.trigger({type:"layoutready",layout:i})},B=i.options.refresh,C;for(var G=0;G<B&&!C;G++)C=i.stopped||i.layout.tick();if(C){if(c.checkLayoutSuccess()&&!c.isSubLayout)c.doPostLayout();if(c.tilingPostLayout)c.tilingPostLayout();if(c.isLayoutFinished=!0,i.options.eles.nodes().positions(V),R(),i.cy.one("layoutstop",i.options.stop),i.cy.trigger({type:"layoutstop",layout:i}),e)cancelAnimationFrame(e);E=!1;return}var M=i.layout.getPositionsData();f.eles.nodes().positions(function(A,it){if(typeof A==="number")A=it;if(!A.isParent()){var j=A.id(),N=M[j],w=A;while(N==null)if(N=M[w.data("parent")]||M["DummyCompound_"+w.data("parent")],M[j]=N,w=w.parent()[0],w==null)break;if(N!=null)return{x:N.x,y:N.y};else return{x:A.position("x"),y:A.position("y")}}}),R(),e=requestAnimationFrame(X)};if(c.addListener("layoutstarted",function(){if(i.options.animate==="during")e=requestAnimationFrame(nt)}),c.runLayout(),this.options.animate!=="during")i.options.eles.nodes().not(":parent").layoutPositions(i,i.options,V),E=!1;return this},I.prototype.getTopMostNodes=function(E){var e={};for(var f=0;f<E.length;f++)e[E[f].id()]=!0;var s=E.filter(function(c,i){if(typeof c==="number")c=i;var y=c.parent()[0];while(y!=null){if(e[y.id()])return!1;y=y.parent()[0]}return!0});return s},I.prototype.processChildrenList=function(E,e,f){var s=e.length;for(var c=0;c<s;c++){var i=e[c],y=i.children(),T,m=i.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(i.outerWidth()!=null&&i.outerHeight()!=null)T=E.add(new b(f.graphManager,new H(i.position("x")-m.w/2,i.position("y")-m.h/2),new v(parseFloat(m.w),parseFloat(m.h))));else T=E.add(new b(this.graphManager));if(T.id=i.data("id"),T.paddingLeft=parseInt(i.css("padding")),T.paddingTop=parseInt(i.css("padding")),T.paddingRight=parseInt(i.css("padding")),T.paddingBottom=parseInt(i.css("padding")),this.options.nodeDimensionsIncludeLabels){if(i.isParent()){var h=i.boundingBox({includeLabels:!0,includeNodes:!1}).w,P=i.boundingBox({includeLabels:!0,includeNodes:!1}).h,x=i.css("text-halign");T.labelWidth=h,T.labelHeight=P,T.labelPos=x}}if(this.idToLNode[i.data("id")]=T,isNaN(T.rect.x))T.rect.x=0;if(isNaN(T.rect.y))T.rect.y=0;if(y!=null&&y.length>0){var O=f.getGraphManager().add(f.newGraph(),T);this.processChildrenList(O,y,f)}}},I.prototype.stop=function(){return this.stopped=!0,this};var S=function(e){e("layout","cose-bilkent",I)};if(typeof cytoscape<"u")S(cytoscape);g.exports=S}])})});var z=Ce(k(),1);ht.use(z.default);function q(u,g){u.forEach((r)=>{let n={id:r.id,labelText:r.label,height:r.height,width:r.width,padding:r.padding??0};Object.keys(r).forEach((o)=>{if(!["id","label","height","width","padding","x","y"].includes(o))n[o]=r[o]}),g.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}t(q,"addNodes");function W(u,g){u.forEach((r)=>{let n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach((o)=>{if(!["id","start","end"].includes(o))n[o]=r[o]}),g.add({group:"edges",data:n})})}t(W,"addEdges");function Q(u){return new Promise((g)=>{let r=p("body").append("div").attr("id","cy").attr("style","display:none"),n=ht({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),q(u.nodes,n),W(u.edges,n),n.nodes().forEach(function(d){d.layoutDimensions=()=>{let l=d.data();return{w:l.width,h:l.height}}});let o={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(o).run(),n.ready((d)=>{a.info("Cytoscape ready",d),g(n)})})}t(Q,"createCytoscapeInstance");function Z(u){return u.nodes().map((g)=>{let r=g.data(),n=g.position(),o={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach((d)=>{if(d!=="id")o[d]=r[d]}),o})}t(Z,"extractPositionedNodes");function J(u){return u.edges().map((g)=>{let r=g.data(),n=g._private.rscratch,o={id:r.id,source:r.source,target:r.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(r).forEach((d)=>{if(!["id","source","target"].includes(d))o[d]=r[d]}),o})}t(J,"extractPositionedEdges");async function K(u,g){a.debug("Starting cose-bilkent layout algorithm");try{tt(u);let r=await Q(u),n=Z(r),o=J(r);return a.debug(`Layout completed: ${n.length} nodes, ${o.length} edges`),{nodes:n,edges:o}}catch(r){throw a.error("Error in cose-bilkent layout algorithm:",r),r}}t(K,"executeCoseBilkentLayout");function tt(u){if(!u)throw Error("Layout data is required");if(!u.config)throw Error("Configuration is required in layout data");if(!u.rootNode)throw Error("Root node is required");if(!u.nodes||!Array.isArray(u.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(u.edges))throw Error("Edges array is required in layout data");return!0}t(tt,"validateLayoutData");var at=t(async(u,g,{insertCluster:r,insertEdge:n,insertEdgeLabel:o,insertMarkers:d,insertNode:l,log:L,positionEdgeLabel:b},{algorithm:H})=>{let v={},_={},D=g.select("g");d(D,u.markers,u.type,u.diagramId);let I=D.insert("g").attr("class","subgraphs"),U=D.insert("g").attr("class","edgePaths"),S=D.insert("g").attr("class","edgeLabels"),E=D.insert("g").attr("class","nodes");L.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(u.nodes.map(async(s)=>{if(s.isGroup){let c={...s};_[s.id]=c,v[s.id]=c,await r(I,s)}else{let c={...s};v[s.id]=c;let i=await l(E,s,{config:u.config,dir:u.direction||"TB"}),y=i.node().getBBox();c.width=y.width,c.height=y.height,c.domId=i,L.debug(`Node ${s.id} dimensions: ${y.width}x${y.height}`)}})),L.debug("Running cose-bilkent layout algorithm");let e={...u,nodes:u.nodes.map((s)=>{let c=v[s.id];return{...s,width:c.width,height:c.height}})},f=await K(e,u.config);L.debug("Positioning nodes based on layout results"),f.nodes.forEach((s)=>{let c=v[s.id];if(c?.domId)c.domId.attr("transform",`translate(${s.x}, ${s.y})`),c.x=s.x,c.y=s.y,L.debug(`Positioned node ${c.id} at center (${s.x}, ${s.y})`)}),f.edges.forEach((s)=>{let c=u.edges.find((i)=>i.id===s.id);if(c)c.points=[{x:s.startX,y:s.startY},{x:s.midX,y:s.midY},{x:s.endX,y:s.endY}]}),L.debug("Inserting and positioning edges"),await Promise.all(u.edges.map(async(s)=>{let c=await o(S,s),i=v[s.start??""],y=v[s.end??""];if(i&&y){let T=f.edges.find((m)=>m.id===s.id);if(T){L.debug("APA01 positionedEdge",T);let m={...s},h=n(U,m,_,u.type,i,y,u.diagramId);b(m,h)}else{let m={...s,points:[{x:i.x||0,y:i.y||0},{x:y.x||0,y:y.y||0}]},h=n(U,m,_,u.type,i,y,u.diagramId);b(m,h)}}})),L.debug("Cose-bilkent rendering completed")},"render"),ct=at;export{ct as render};