@arcgis/coding-components 5.1.0-next.98 → 5.2.0-next.0

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 (445) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/{B3UMUBOI.js → 257WOXQH.js} +2 -2
  3. package/dist/cdn/{GLWP6FOO.js → 25XWPF4V.js} +2 -2
  4. package/dist/cdn/{4ECQPUXH.js → 267L2FIN.js} +2 -2
  5. package/dist/cdn/{WL2QW4SI.js → 2DNHMHBF.js} +2 -2
  6. package/dist/cdn/{FQOKQQ47.js → 2LN4LREF.js} +2 -2
  7. package/dist/cdn/{GLJQQLP2.js → 2WB7S5TQ.js} +1 -1
  8. package/dist/cdn/2WVAYBDV.js +2 -0
  9. package/dist/cdn/{4I4KQI2I.js → 33O3TZY2.js} +2 -2
  10. package/dist/cdn/{6H3VYBU7.js → 37RZTFII.js} +2 -2
  11. package/dist/cdn/{7Z4V2ZOD.js → 3CHKFCKR.js} +2 -2
  12. package/dist/cdn/{P7I5ATMN.js → 3PBQ47BB.js} +2 -2
  13. package/dist/cdn/{4B64NBIM.js → 3UD4JSPW.js} +1 -1
  14. package/dist/cdn/{XR32WULA.js → 3XHQ4HYV.js} +2 -2
  15. package/dist/cdn/{DZQHQ6AF.js → 442YUXXE.js} +2 -2
  16. package/dist/cdn/{T2JZE2LL.js → 4CE57DHP.js} +2 -2
  17. package/dist/cdn/{363GMMQ6.js → 4G3EYLJY.js} +2 -2
  18. package/dist/cdn/{SMAQD57G.js → 5A4VZ22T.js} +2 -2
  19. package/dist/cdn/{TXV6B5CA.js → 5C2TCLBT.js} +2 -2
  20. package/dist/cdn/{HPZZVB4X.js → 5HKDO4SX.js} +1 -1
  21. package/dist/cdn/{6QSGABXH.js → 5SPAJJAA.js} +2 -2
  22. package/dist/cdn/{2V54WMOX.js → 5YZOQXRI.js} +2 -2
  23. package/dist/cdn/{4VQ6C3Z4.js → 63PN7BQK.js} +2 -2
  24. package/dist/cdn/{QNDINFSC.js → 66DXKY4C.js} +2 -2
  25. package/dist/cdn/{TSZHSRGH.js → 6OWNNQBP.js} +2 -2
  26. package/dist/cdn/{YE7HDVYS.js → 6QMGBWXM.js} +2 -2
  27. package/dist/cdn/{4UNXLJD5.js → 6THVQ4HN.js} +2 -2
  28. package/dist/cdn/{JKJYW4J3.js → 722KNYBS.js} +2 -2
  29. package/dist/cdn/{TNA5F36E.js → 72E5GBWN.js} +2 -2
  30. package/dist/cdn/{GHTOL7NB.js → 72FRBPVT.js} +2 -2
  31. package/dist/cdn/{YGSRHDYU.js → 7AHGAMRQ.js} +2 -2
  32. package/dist/cdn/{EQMF5QRO.js → 7BIL6A5K.js} +2 -2
  33. package/dist/cdn/{Q4BZLQFI.js → 7C5VBID2.js} +2 -2
  34. package/dist/cdn/{3I5A7NBV.js → 7ICO3COW.js} +2 -2
  35. package/dist/cdn/{DMRPNWLI.js → ADDFKW6J.js} +2 -2
  36. package/dist/cdn/{FZ65ADOD.js → AG3WMNOC.js} +2 -2
  37. package/dist/cdn/{T6UJRNFS.js → AP6RN35Q.js} +2 -2
  38. package/dist/cdn/{P6TDJOVA.js → ATJTQ7GN.js} +2 -2
  39. package/dist/cdn/{EYE2OWAP.js → AUNCNTKD.js} +2 -2
  40. package/dist/cdn/{3MWL5V3K.js → AXHKLI4A.js} +2 -2
  41. package/dist/cdn/{WN4UL6U4.js → B5A6XU2C.js} +2 -2
  42. package/dist/cdn/{U6XFMQXE.js → BMUIGEIE.js} +2 -2
  43. package/dist/cdn/{NWLOXWV6.js → BXEZA6TW.js} +2 -2
  44. package/dist/cdn/{KCU2C44H.js → CC4XBW6V.js} +2 -2
  45. package/dist/cdn/{DREPIRPG.js → CO2X2FUW.js} +2 -2
  46. package/dist/cdn/CPITVSFM.js +2 -0
  47. package/dist/cdn/{7EYL5FJX.js → CWUUQMOE.js} +2 -2
  48. package/dist/cdn/{FRD2R665.js → D2ZUVVU5.js} +2 -2
  49. package/dist/cdn/{RI743CW6.js → D4NVM63W.js} +2 -2
  50. package/dist/cdn/{MMQ24TAN.js → DELXZ5DE.js} +2 -2
  51. package/dist/cdn/DLQLQG5S.js +2 -0
  52. package/dist/cdn/{75FV3IS2.js → DO4UEYNF.js} +2 -2
  53. package/dist/cdn/{TIO3FAL4.js → DUIN5JKL.js} +2 -2
  54. package/dist/cdn/{PPCYQ5YP.js → DX3M5RXS.js} +2 -2
  55. package/dist/cdn/{SE5RBBZY.js → E65FJVHN.js} +2 -2
  56. package/dist/cdn/{MP6Z45SA.js → ECNI2A4K.js} +1 -1
  57. package/dist/cdn/{GVMVHGSK.js → F56EV53Z.js} +2 -2
  58. package/dist/cdn/{IXTG7RUG.js → G3ABGU2U.js} +2 -2
  59. package/dist/cdn/{UCX6WHKQ.js → G5IXPOCO.js} +2 -2
  60. package/dist/cdn/{SATQDL5P.js → G6KE4E7U.js} +2 -2
  61. package/dist/cdn/{55IOKSZ5.js → GIDYEJXN.js} +2 -2
  62. package/dist/cdn/{3TTFCHAA.js → H6RQVSYM.js} +1 -1
  63. package/dist/cdn/{TSLKULMC.js → HGG6U6BV.js} +2 -2
  64. package/dist/cdn/{T6BNIUX2.js → HI3QANZI.js} +2 -2
  65. package/dist/cdn/{DDXNXEA4.js → HKTF6UKG.js} +2 -2
  66. package/dist/cdn/{NXMTAW45.js → IFXLLRGY.js} +2 -2
  67. package/dist/cdn/{JEQBTQ75.js → J3NBIAE4.js} +2 -2
  68. package/dist/cdn/{3L5P44KB.js → JOGSMBUP.js} +2 -2
  69. package/dist/cdn/{SSYR2CIC.js → JPXIGF6O.js} +2 -2
  70. package/dist/cdn/{CTUDXLNL.js → JQDZS2Q6.js} +2 -2
  71. package/dist/cdn/{ORGLDPFO.js → JTAMX62X.js} +2 -2
  72. package/dist/cdn/{YWHJ2CEL.js → K3HE4IUQ.js} +2 -2
  73. package/dist/cdn/{FGTIA6RL.js → LEL33EVL.js} +2 -2
  74. package/dist/cdn/{GZ6HZKQZ.js → LEYGUX3H.js} +2 -2
  75. package/dist/cdn/LHGSLNP7.js +4 -0
  76. package/dist/cdn/{ZSBUOR75.js → LTGHOVKA.js} +2 -2
  77. package/dist/cdn/{PPV6RAZ3.js → LUJKYDO7.js} +2 -2
  78. package/dist/cdn/{7XEE5TVG.js → LV6XEQG6.js} +2 -2
  79. package/dist/cdn/{64X4ILDM.js → LZ2JU5WD.js} +2 -2
  80. package/dist/cdn/{E3RU2YPF.js → M6D7N2YL.js} +2 -2
  81. package/dist/cdn/M6KDQQ4U.js +2 -0
  82. package/dist/cdn/{QEFRIJA4.js → MCPE3COG.js} +2 -2
  83. package/dist/cdn/{W62PYZIH.js → MFO5UW67.js} +2 -2
  84. package/dist/cdn/{YKKYDYDK.js → MGCFGR73.js} +2 -2
  85. package/dist/cdn/{MFRVUG5W.js → MGZFIKWR.js} +2 -2
  86. package/dist/cdn/{W65YQBTQ.js → MJDFEFIM.js} +2 -2
  87. package/dist/cdn/MJLQA6PP.js +2 -0
  88. package/dist/cdn/{GPIFJKPY.js → MTHHH7GS.js} +2 -2
  89. package/dist/cdn/{CYAKD2Q6.js → MUHTIL2W.js} +2 -2
  90. package/dist/cdn/{V4GG7I2P.js → N6MX4KBY.js} +2 -2
  91. package/dist/cdn/{WGLVUCW2.js → NXZNB527.js} +2 -2
  92. package/dist/cdn/{OGS4AWC2.js → O4MTFN46.js} +2 -2
  93. package/dist/cdn/O5XRLNCX.js +2 -0
  94. package/dist/cdn/{G56LJGLK.js → OLNYBWUC.js} +2 -2
  95. package/dist/cdn/{BBHVKMAY.js → OOTGOHTU.js} +2 -2
  96. package/dist/cdn/{ER2MKLVA.js → P37AQWGL.js} +3 -3
  97. package/dist/cdn/{7NI24N24.js → P3LG4UGD.js} +2 -2
  98. package/dist/cdn/{ZVOZKXAZ.js → P7DT3QEI.js} +2 -2
  99. package/dist/cdn/PPCC4HZ7.js +2 -0
  100. package/dist/cdn/{XFWXP3YH.js → PS3F65MR.js} +2 -2
  101. package/dist/cdn/PUY5G6AF.js +65 -0
  102. package/dist/cdn/PZOZWSDW.js +2 -0
  103. package/dist/cdn/{NOHSS7JG.js → Q2EZ6DGG.js} +2 -2
  104. package/dist/cdn/{CEKEOYFU.js → Q7PVSOI4.js} +2 -2
  105. package/dist/cdn/{GOSZCVIB.js → QDB52Q4O.js} +2 -2
  106. package/dist/cdn/{Z5ZZ36DQ.js → QTLHVR4Y.js} +2 -2
  107. package/dist/cdn/{QUDMZ32G.js → QUYIQYT5.js} +2 -2
  108. package/dist/cdn/{CF3TERM3.js → R2XZZWNP.js} +2 -2
  109. package/dist/cdn/{3TELAYHA.js → RNQFFOHI.js} +2 -2
  110. package/dist/cdn/{OEQZWVAS.js → ROGDRNFE.js} +2 -2
  111. package/dist/cdn/{QH2SNKMT.js → RPAMEY6O.js} +2 -2
  112. package/dist/cdn/{K6G75VO2.js → RPTU5IBK.js} +2 -2
  113. package/dist/cdn/{GBLZMUJF.js → S2MXH4E7.js} +2 -2
  114. package/dist/cdn/{S53Z5RNI.js → SC7HHXFD.js} +2 -2
  115. package/dist/cdn/{M3LR2Q5I.js → SRMSUAM7.js} +2 -2
  116. package/dist/cdn/{ZHZFKZA7.js → STN3LSQR.js} +1 -1
  117. package/dist/cdn/{7ON2OP3Y.js → SXMQVGA2.js} +2 -2
  118. package/dist/cdn/{JLF32ABD.js → T5PTHYE5.js} +2 -2
  119. package/dist/cdn/{LLPQEURF.js → TEXAGKBD.js} +2 -2
  120. package/dist/cdn/{QSENSSQH.js → TFJWWMFX.js} +2 -2
  121. package/dist/cdn/{FP73TORW.js → TLS5MY7V.js} +2 -2
  122. package/dist/cdn/{LGNS6ZOO.js → TOOLCNAR.js} +2 -2
  123. package/dist/cdn/{GS2ISVXJ.js → TQDN6SR5.js} +2 -2
  124. package/dist/cdn/{GWCARBFY.js → TY277PW2.js} +2 -2
  125. package/dist/cdn/{VPP77CFW.js → U2T7AGOO.js} +2 -2
  126. package/dist/cdn/{3RBDIRGM.js → U6PKQWR4.js} +2 -2
  127. package/dist/cdn/{NUA2KNEU.js → UCHMLPCN.js} +2 -2
  128. package/dist/cdn/{DGFH2WPL.js → UZD32YRD.js} +2 -2
  129. package/dist/cdn/{RAMTJLOK.js → VA2OTU3Y.js} +2 -2
  130. package/dist/cdn/{Y3KOWWO5.js → VGOFAQ7A.js} +1 -1
  131. package/dist/cdn/{HAN6WQSM.js → VLMDZO2H.js} +2 -2
  132. package/dist/cdn/{IM7MYTMK.js → VSZR2MLK.js} +2 -2
  133. package/dist/cdn/{UM25J54F.js → WCOZA2Y3.js} +2 -2
  134. package/dist/cdn/{TCLNQ7Z6.js → WILWBQKD.js} +2 -2
  135. package/dist/cdn/{FLNLMLTL.js → XG3S7JQW.js} +2 -2
  136. package/dist/cdn/XRUKVCVF.js +2 -0
  137. package/dist/cdn/{6G5URSC7.js → XSKI5PRU.js} +1 -1
  138. package/dist/cdn/{KXYK3MLK.js → XSNX4HQ7.js} +2 -2
  139. package/dist/cdn/{REL6OK2I.js → XU7YAUUX.js} +3 -3
  140. package/dist/cdn/{RG4I3UBE.js → XYW3B4KO.js} +2 -2
  141. package/dist/cdn/{CHTL74L2.js → YTAZKQZQ.js} +2 -2
  142. package/dist/cdn/{NCQEI2VP.js → YUX35RAW.js} +2 -2
  143. package/dist/cdn/{XHU4X2ZF.js → ZIDKLYOI.js} +2 -2
  144. package/dist/cdn/{IFNCCZ7O.js → ZTCCL565.js} +1 -1
  145. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ar.json +1 -1
  146. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.bg.json +1 -1
  147. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.bs.json +1 -1
  148. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ca.json +1 -1
  149. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.cs.json +1 -1
  150. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.da.json +1 -1
  151. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.de.json +1 -1
  152. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.el.json +1 -1
  153. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.es.json +1 -1
  154. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.et.json +1 -1
  155. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.fi.json +1 -1
  156. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.fr.json +1 -1
  157. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.he.json +1 -1
  158. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.hr.json +1 -1
  159. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.hu.json +1 -1
  160. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.id.json +1 -1
  161. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.it.json +1 -1
  162. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ja.json +1 -1
  163. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ko.json +1 -1
  164. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.lt.json +1 -1
  165. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.lv.json +1 -1
  166. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.nl.json +1 -1
  167. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.no.json +1 -1
  168. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.pl.json +1 -1
  169. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.pt-BR.json +1 -1
  170. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.pt-PT.json +1 -1
  171. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ro.json +1 -1
  172. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.ru.json +1 -1
  173. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.sk.json +1 -1
  174. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.sl.json +1 -1
  175. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.sr.json +1 -1
  176. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.sv.json +1 -1
  177. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.th.json +1 -1
  178. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.tr.json +1 -1
  179. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.uk.json +1 -1
  180. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.vi.json +1 -1
  181. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.zh-CN.json +1 -1
  182. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.zh-HK.json +1 -1
  183. package/dist/cdn/assets/arcade-debugger-console/t9n/messages.zh-TW.json +1 -1
  184. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ar.json +1 -1
  185. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.bg.json +1 -1
  186. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.bs.json +1 -1
  187. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ca.json +1 -1
  188. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.cs.json +1 -1
  189. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.da.json +1 -1
  190. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.de.json +1 -1
  191. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.el.json +1 -1
  192. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.es.json +1 -1
  193. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.et.json +1 -1
  194. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.fi.json +1 -1
  195. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.fr.json +1 -1
  196. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.he.json +1 -1
  197. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.hr.json +1 -1
  198. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.hu.json +1 -1
  199. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.id.json +1 -1
  200. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.it.json +1 -1
  201. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ja.json +1 -1
  202. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ko.json +1 -1
  203. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.lt.json +1 -1
  204. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.lv.json +1 -1
  205. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.nl.json +1 -1
  206. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.no.json +1 -1
  207. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.pl.json +1 -1
  208. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.pt-BR.json +1 -1
  209. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.pt-PT.json +1 -1
  210. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ro.json +1 -1
  211. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ru.json +1 -1
  212. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sk.json +1 -1
  213. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sl.json +1 -1
  214. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sr.json +1 -1
  215. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sv.json +1 -1
  216. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.th.json +1 -1
  217. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.tr.json +1 -1
  218. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.uk.json +1 -1
  219. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.vi.json +1 -1
  220. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.zh-CN.json +1 -1
  221. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.zh-HK.json +1 -1
  222. package/dist/cdn/assets/arcade-debugger-output/t9n/messages.zh-TW.json +1 -1
  223. package/dist/cdn/assets/arcade-editor/t9n/messages.ar.json +1 -1
  224. package/dist/cdn/assets/arcade-editor/t9n/messages.bg.json +1 -1
  225. package/dist/cdn/assets/arcade-editor/t9n/messages.bs.json +1 -1
  226. package/dist/cdn/assets/arcade-editor/t9n/messages.ca.json +1 -1
  227. package/dist/cdn/assets/arcade-editor/t9n/messages.cs.json +1 -1
  228. package/dist/cdn/assets/arcade-editor/t9n/messages.da.json +1 -1
  229. package/dist/cdn/assets/arcade-editor/t9n/messages.de.json +1 -1
  230. package/dist/cdn/assets/arcade-editor/t9n/messages.el.json +1 -1
  231. package/dist/cdn/assets/arcade-editor/t9n/messages.en.json +1 -1
  232. package/dist/cdn/assets/arcade-editor/t9n/messages.es.json +1 -1
  233. package/dist/cdn/assets/arcade-editor/t9n/messages.et.json +1 -1
  234. package/dist/cdn/assets/arcade-editor/t9n/messages.fi.json +1 -1
  235. package/dist/cdn/assets/arcade-editor/t9n/messages.fr.json +1 -1
  236. package/dist/cdn/assets/arcade-editor/t9n/messages.he.json +1 -1
  237. package/dist/cdn/assets/arcade-editor/t9n/messages.hr.json +1 -1
  238. package/dist/cdn/assets/arcade-editor/t9n/messages.hu.json +1 -1
  239. package/dist/cdn/assets/arcade-editor/t9n/messages.id.json +1 -1
  240. package/dist/cdn/assets/arcade-editor/t9n/messages.it.json +1 -1
  241. package/dist/cdn/assets/arcade-editor/t9n/messages.ja.json +1 -1
  242. package/dist/cdn/assets/arcade-editor/t9n/messages.ko.json +1 -1
  243. package/dist/cdn/assets/arcade-editor/t9n/messages.lt.json +1 -1
  244. package/dist/cdn/assets/arcade-editor/t9n/messages.lv.json +1 -1
  245. package/dist/cdn/assets/arcade-editor/t9n/messages.nl.json +1 -1
  246. package/dist/cdn/assets/arcade-editor/t9n/messages.no.json +1 -1
  247. package/dist/cdn/assets/arcade-editor/t9n/messages.pl.json +1 -1
  248. package/dist/cdn/assets/arcade-editor/t9n/messages.pt-BR.json +1 -1
  249. package/dist/cdn/assets/arcade-editor/t9n/messages.pt-PT.json +1 -1
  250. package/dist/cdn/assets/arcade-editor/t9n/messages.ro.json +1 -1
  251. package/dist/cdn/assets/arcade-editor/t9n/messages.ru.json +1 -1
  252. package/dist/cdn/assets/arcade-editor/t9n/messages.sk.json +1 -1
  253. package/dist/cdn/assets/arcade-editor/t9n/messages.sl.json +1 -1
  254. package/dist/cdn/assets/arcade-editor/t9n/messages.sr.json +1 -1
  255. package/dist/cdn/assets/arcade-editor/t9n/messages.sv.json +1 -1
  256. package/dist/cdn/assets/arcade-editor/t9n/messages.th.json +1 -1
  257. package/dist/cdn/assets/arcade-editor/t9n/messages.tr.json +1 -1
  258. package/dist/cdn/assets/arcade-editor/t9n/messages.uk.json +1 -1
  259. package/dist/cdn/assets/arcade-editor/t9n/messages.vi.json +1 -1
  260. package/dist/cdn/assets/arcade-editor/t9n/messages.zh-CN.json +1 -1
  261. package/dist/cdn/assets/arcade-editor/t9n/messages.zh-HK.json +1 -1
  262. package/dist/cdn/assets/arcade-editor/t9n/messages.zh-TW.json +1 -1
  263. package/dist/cdn/assets/code-editor/arcade.worker.js +2 -5
  264. package/dist/cdn/assets/code-editor/sql-expr.worker.js +4250 -4214
  265. package/dist/cdn/assets/editor-variables/t9n/messages.ar.json +1 -1
  266. package/dist/cdn/assets/editor-variables/t9n/messages.bg.json +1 -1
  267. package/dist/cdn/assets/editor-variables/t9n/messages.bs.json +1 -1
  268. package/dist/cdn/assets/editor-variables/t9n/messages.ca.json +1 -1
  269. package/dist/cdn/assets/editor-variables/t9n/messages.cs.json +1 -1
  270. package/dist/cdn/assets/editor-variables/t9n/messages.da.json +1 -1
  271. package/dist/cdn/assets/editor-variables/t9n/messages.de.json +1 -1
  272. package/dist/cdn/assets/editor-variables/t9n/messages.el.json +1 -1
  273. package/dist/cdn/assets/editor-variables/t9n/messages.es.json +1 -1
  274. package/dist/cdn/assets/editor-variables/t9n/messages.et.json +1 -1
  275. package/dist/cdn/assets/editor-variables/t9n/messages.fi.json +1 -1
  276. package/dist/cdn/assets/editor-variables/t9n/messages.fr.json +1 -1
  277. package/dist/cdn/assets/editor-variables/t9n/messages.he.json +1 -1
  278. package/dist/cdn/assets/editor-variables/t9n/messages.hr.json +1 -1
  279. package/dist/cdn/assets/editor-variables/t9n/messages.hu.json +1 -1
  280. package/dist/cdn/assets/editor-variables/t9n/messages.id.json +1 -1
  281. package/dist/cdn/assets/editor-variables/t9n/messages.it.json +1 -1
  282. package/dist/cdn/assets/editor-variables/t9n/messages.ja.json +1 -1
  283. package/dist/cdn/assets/editor-variables/t9n/messages.ko.json +1 -1
  284. package/dist/cdn/assets/editor-variables/t9n/messages.lt.json +1 -1
  285. package/dist/cdn/assets/editor-variables/t9n/messages.lv.json +1 -1
  286. package/dist/cdn/assets/editor-variables/t9n/messages.nl.json +1 -1
  287. package/dist/cdn/assets/editor-variables/t9n/messages.no.json +1 -1
  288. package/dist/cdn/assets/editor-variables/t9n/messages.pl.json +1 -1
  289. package/dist/cdn/assets/editor-variables/t9n/messages.pt-BR.json +1 -1
  290. package/dist/cdn/assets/editor-variables/t9n/messages.pt-PT.json +1 -1
  291. package/dist/cdn/assets/editor-variables/t9n/messages.ro.json +1 -1
  292. package/dist/cdn/assets/editor-variables/t9n/messages.ru.json +1 -1
  293. package/dist/cdn/assets/editor-variables/t9n/messages.sk.json +1 -1
  294. package/dist/cdn/assets/editor-variables/t9n/messages.sl.json +1 -1
  295. package/dist/cdn/assets/editor-variables/t9n/messages.sr.json +1 -1
  296. package/dist/cdn/assets/editor-variables/t9n/messages.sv.json +1 -1
  297. package/dist/cdn/assets/editor-variables/t9n/messages.th.json +1 -1
  298. package/dist/cdn/assets/editor-variables/t9n/messages.tr.json +1 -1
  299. package/dist/cdn/assets/editor-variables/t9n/messages.uk.json +1 -1
  300. package/dist/cdn/assets/editor-variables/t9n/messages.vi.json +1 -1
  301. package/dist/cdn/assets/editor-variables/t9n/messages.zh-CN.json +1 -1
  302. package/dist/cdn/assets/editor-variables/t9n/messages.zh-HK.json +1 -1
  303. package/dist/cdn/assets/editor-variables/t9n/messages.zh-TW.json +1 -1
  304. package/dist/cdn/assets/sql-expression-editor/t9n/messages.ar.json +1 -1
  305. package/dist/cdn/assets/sql-expression-editor/t9n/messages.bg.json +1 -1
  306. package/dist/cdn/assets/sql-expression-editor/t9n/messages.bs.json +1 -1
  307. package/dist/cdn/assets/sql-expression-editor/t9n/messages.ca.json +1 -1
  308. package/dist/cdn/assets/sql-expression-editor/t9n/messages.cs.json +1 -1
  309. package/dist/cdn/assets/sql-expression-editor/t9n/messages.da.json +1 -1
  310. package/dist/cdn/assets/sql-expression-editor/t9n/messages.de.json +1 -1
  311. package/dist/cdn/assets/sql-expression-editor/t9n/messages.el.json +1 -1
  312. package/dist/cdn/assets/sql-expression-editor/t9n/messages.es.json +1 -1
  313. package/dist/cdn/assets/sql-expression-editor/t9n/messages.et.json +1 -1
  314. package/dist/cdn/assets/sql-expression-editor/t9n/messages.fi.json +1 -1
  315. package/dist/cdn/assets/sql-expression-editor/t9n/messages.fr.json +1 -1
  316. package/dist/cdn/assets/sql-expression-editor/t9n/messages.he.json +1 -1
  317. package/dist/cdn/assets/sql-expression-editor/t9n/messages.hr.json +1 -1
  318. package/dist/cdn/assets/sql-expression-editor/t9n/messages.hu.json +1 -1
  319. package/dist/cdn/assets/sql-expression-editor/t9n/messages.id.json +1 -1
  320. package/dist/cdn/assets/sql-expression-editor/t9n/messages.it.json +1 -1
  321. package/dist/cdn/assets/sql-expression-editor/t9n/messages.ja.json +1 -1
  322. package/dist/cdn/assets/sql-expression-editor/t9n/messages.ko.json +1 -1
  323. package/dist/cdn/assets/sql-expression-editor/t9n/messages.lt.json +1 -1
  324. package/dist/cdn/assets/sql-expression-editor/t9n/messages.lv.json +1 -1
  325. package/dist/cdn/assets/sql-expression-editor/t9n/messages.nl.json +1 -1
  326. package/dist/cdn/assets/sql-expression-editor/t9n/messages.no.json +1 -1
  327. package/dist/cdn/assets/sql-expression-editor/t9n/messages.pl.json +1 -1
  328. package/dist/cdn/assets/sql-expression-editor/t9n/messages.pt-BR.json +1 -1
  329. package/dist/cdn/assets/sql-expression-editor/t9n/messages.pt-PT.json +1 -1
  330. package/dist/cdn/assets/sql-expression-editor/t9n/messages.ro.json +1 -1
  331. package/dist/cdn/assets/sql-expression-editor/t9n/messages.ru.json +1 -1
  332. package/dist/cdn/assets/sql-expression-editor/t9n/messages.sk.json +1 -1
  333. package/dist/cdn/assets/sql-expression-editor/t9n/messages.sl.json +1 -1
  334. package/dist/cdn/assets/sql-expression-editor/t9n/messages.sr.json +1 -1
  335. package/dist/cdn/assets/sql-expression-editor/t9n/messages.sv.json +1 -1
  336. package/dist/cdn/assets/sql-expression-editor/t9n/messages.th.json +1 -1
  337. package/dist/cdn/assets/sql-expression-editor/t9n/messages.tr.json +1 -1
  338. package/dist/cdn/assets/sql-expression-editor/t9n/messages.uk.json +1 -1
  339. package/dist/cdn/assets/sql-expression-editor/t9n/messages.vi.json +1 -1
  340. package/dist/cdn/assets/sql-expression-editor/t9n/messages.zh-CN.json +1 -1
  341. package/dist/cdn/assets/sql-expression-editor/t9n/messages.zh-HK.json +1 -1
  342. package/dist/cdn/assets/sql-expression-editor/t9n/messages.zh-TW.json +1 -1
  343. package/dist/cdn/assets/sql-layer-editor/t9n/messages.ar.json +1 -1
  344. package/dist/cdn/assets/sql-layer-editor/t9n/messages.bg.json +1 -1
  345. package/dist/cdn/assets/sql-layer-editor/t9n/messages.bs.json +1 -1
  346. package/dist/cdn/assets/sql-layer-editor/t9n/messages.ca.json +1 -1
  347. package/dist/cdn/assets/sql-layer-editor/t9n/messages.cs.json +1 -1
  348. package/dist/cdn/assets/sql-layer-editor/t9n/messages.da.json +1 -1
  349. package/dist/cdn/assets/sql-layer-editor/t9n/messages.de.json +1 -1
  350. package/dist/cdn/assets/sql-layer-editor/t9n/messages.el.json +1 -1
  351. package/dist/cdn/assets/sql-layer-editor/t9n/messages.es.json +1 -1
  352. package/dist/cdn/assets/sql-layer-editor/t9n/messages.et.json +1 -1
  353. package/dist/cdn/assets/sql-layer-editor/t9n/messages.fi.json +1 -1
  354. package/dist/cdn/assets/sql-layer-editor/t9n/messages.fr.json +1 -1
  355. package/dist/cdn/assets/sql-layer-editor/t9n/messages.he.json +1 -1
  356. package/dist/cdn/assets/sql-layer-editor/t9n/messages.hr.json +1 -1
  357. package/dist/cdn/assets/sql-layer-editor/t9n/messages.hu.json +1 -1
  358. package/dist/cdn/assets/sql-layer-editor/t9n/messages.id.json +1 -1
  359. package/dist/cdn/assets/sql-layer-editor/t9n/messages.it.json +1 -1
  360. package/dist/cdn/assets/sql-layer-editor/t9n/messages.ja.json +1 -1
  361. package/dist/cdn/assets/sql-layer-editor/t9n/messages.ko.json +1 -1
  362. package/dist/cdn/assets/sql-layer-editor/t9n/messages.lt.json +1 -1
  363. package/dist/cdn/assets/sql-layer-editor/t9n/messages.lv.json +1 -1
  364. package/dist/cdn/assets/sql-layer-editor/t9n/messages.nl.json +1 -1
  365. package/dist/cdn/assets/sql-layer-editor/t9n/messages.no.json +1 -1
  366. package/dist/cdn/assets/sql-layer-editor/t9n/messages.pl.json +1 -1
  367. package/dist/cdn/assets/sql-layer-editor/t9n/messages.pt-BR.json +1 -1
  368. package/dist/cdn/assets/sql-layer-editor/t9n/messages.pt-PT.json +1 -1
  369. package/dist/cdn/assets/sql-layer-editor/t9n/messages.ro.json +1 -1
  370. package/dist/cdn/assets/sql-layer-editor/t9n/messages.ru.json +1 -1
  371. package/dist/cdn/assets/sql-layer-editor/t9n/messages.sk.json +1 -1
  372. package/dist/cdn/assets/sql-layer-editor/t9n/messages.sl.json +1 -1
  373. package/dist/cdn/assets/sql-layer-editor/t9n/messages.sr.json +1 -1
  374. package/dist/cdn/assets/sql-layer-editor/t9n/messages.sv.json +1 -1
  375. package/dist/cdn/assets/sql-layer-editor/t9n/messages.th.json +1 -1
  376. package/dist/cdn/assets/sql-layer-editor/t9n/messages.tr.json +1 -1
  377. package/dist/cdn/assets/sql-layer-editor/t9n/messages.uk.json +1 -1
  378. package/dist/cdn/assets/sql-layer-editor/t9n/messages.vi.json +1 -1
  379. package/dist/cdn/assets/sql-layer-editor/t9n/messages.zh-CN.json +1 -1
  380. package/dist/cdn/assets/sql-layer-editor/t9n/messages.zh-HK.json +1 -1
  381. package/dist/cdn/assets/sql-layer-editor/t9n/messages.zh-TW.json +1 -1
  382. package/dist/cdn/index.js +2 -2
  383. package/dist/chunks/ArcadeDebuggerPreviewTabsState.js +1 -1
  384. package/dist/chunks/arcade-defaults.js +1 -1
  385. package/dist/chunks/arcade-executor.js +1 -1
  386. package/dist/chunks/arcade-mode.js +175 -143
  387. package/dist/chunks/arcade-service-accessors.js +1 -1
  388. package/dist/chunks/bigquery.js +1 -1
  389. package/dist/chunks/colorize.js +1 -1
  390. package/dist/chunks/debugger-value-components.js +1 -1
  391. package/dist/chunks/debugger-value-styles.js +1 -1
  392. package/dist/chunks/fields.js +1 -1
  393. package/dist/chunks/functional.js +1 -1
  394. package/dist/chunks/language-defaults-base.js +1 -1
  395. package/dist/chunks/markdown.js +11 -1163
  396. package/dist/chunks/monaco-importer.js +1 -1
  397. package/dist/chunks/monaco-theme.js +1 -1
  398. package/dist/chunks/postgres.js +1 -1
  399. package/dist/chunks/runtime.js +2 -2
  400. package/dist/chunks/setup-monaco-theme.js +1 -1
  401. package/dist/chunks/sql-expr-defaults.js +98 -76
  402. package/dist/chunks/sql-expr-mode.js +1 -1
  403. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  404. package/dist/chunks/sql-layer-defaults.js +1 -1
  405. package/dist/chunks/sql-layer-mode.js +1 -1
  406. package/dist/chunks/sqlServer.js +1 -1
  407. package/dist/chunks/useT9n.js +1 -1
  408. package/dist/chunks/utilities.js +1 -1
  409. package/dist/chunks/utils.js +1 -1
  410. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +25 -14
  411. package/dist/components/arcgis-arcade-debugger-console/customElement.js +1 -1
  412. package/dist/components/arcgis-arcade-debugger-output/customElement.js +1 -1
  413. package/dist/components/arcgis-arcade-editor/customElement.d.ts +33 -1
  414. package/dist/components/arcgis-arcade-editor/customElement.js +312 -185
  415. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  416. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  417. package/dist/components/arcgis-code-editor/customElement.js +2 -2
  418. package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
  419. package/dist/components/arcgis-code-viewer/customElement.js +1 -1
  420. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  421. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  422. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  423. package/dist/components/arcgis-sql-layer-editor/customElement.js +1 -1
  424. package/dist/docs/api.json +1 -1
  425. package/dist/docs/docs.json +1 -1
  426. package/dist/docs/vscode.html-custom-data.json +1 -1
  427. package/dist/docs/web-types.json +1 -1
  428. package/dist/index.js +1 -1
  429. package/dist/loader.js +5 -5
  430. package/dist/types/lumina.d.ts +1 -1
  431. package/dist/types/preact.d.ts +1 -1
  432. package/dist/types/react.d.ts +1 -1
  433. package/dist/types/stencil.d.ts +1 -1
  434. package/dist/utils/arcade-executor.d.ts +44 -1
  435. package/package.json +11 -14
  436. package/dist/cdn/2JVBS55M.js +0 -2
  437. package/dist/cdn/6C52UOYL.js +0 -2
  438. package/dist/cdn/6TBGTZVD.js +0 -65
  439. package/dist/cdn/BWQEBSSL.js +0 -4
  440. package/dist/cdn/JQQBQXPD.js +0 -2
  441. package/dist/cdn/N33AALGQ.js +0 -2
  442. package/dist/cdn/SB3MM5EM.js +0 -2
  443. package/dist/cdn/SKTKTWIV.js +0 -2
  444. package/dist/cdn/WP6BSOSW.js +0 -2
  445. package/dist/cdn/YJW6NUWX.js +0 -2
@@ -1,1174 +1,22 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- function H() {
3
- return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
4
- }
5
- var T = H();
6
- function le(r) {
7
- T = r;
8
- }
9
- var S = { exec: () => null };
10
- function u(r, e = "") {
11
- let t = typeof r == "string" ? r : r.source, s = { replace: (n, i) => {
12
- let l = typeof i == "string" ? i : i.source;
13
- return l = l.replace(x.caret, "$1"), t = t.replace(n, l), s;
14
- }, getRegex: () => new RegExp(t, e) };
15
- return s;
16
- }
17
- var be = ((r = "") => {
18
- try {
19
- return !!new RegExp("(?<=1)(?<!1)" + r);
20
- } catch {
21
- return !1;
22
- }
23
- })(), x = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), htmlBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}>`) }, we = /^(?:[ \t]*(?:\n|$))+/, me = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ye = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, L = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, $e = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ae = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = u(ae).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Se = u(ae).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), N = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Re = /^[^\n]+/, O = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Te = u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", O).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ze = u(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), B = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", G = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ae = u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", G).replace("tag", B).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ce = u(N).replace("hr", L).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", B).getRegex(), _e = u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ce).getRegex(), X = { blockquote: _e, code: me, def: Te, fences: ye, heading: $e, hr: L, html: Ae, lheading: oe, list: ze, newline: we, paragraph: ce, table: S, text: Re }, Y = u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", L).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", B).getRegex(), Pe = { ...X, lheading: Se, table: Y, paragraph: u(N).replace("hr", L).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Y).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", B).getRegex() }, Le = { ...X, html: u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", G).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: S, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: u(N).replace("hr", L).replace("heading", ` *#{1,6} *[^
24
- ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ie = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ee = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, he = /^( {2,}|\\)\n(?!\s*$)/, Ce = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, z = /[\p{P}\p{S}]/u, v = /[\s\p{P}\p{S}]/u, W = /[^\s\p{P}\p{S}]/u, qe = u(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, v).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, ve = /(?:[^\s\p{P}\p{S}]|~)/u, Ze = u(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ue = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, De = u(ue, "u").replace(/punct/g, z).getRegex(), Me = u(ue, "u").replace(/punct/g, pe).getRegex(), ge = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Qe = u(ge, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, v).replace(/punct/g, z).getRegex(), He = u(ge, "gu").replace(/notPunctSpace/g, ve).replace(/punctSpace/g, Be).replace(/punct/g, pe).getRegex(), je = u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, v).replace(/punct/g, z).getRegex(), Ne = u(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex(), Oe = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Ge = u(Oe, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, v).replace(/punct/g, z).getRegex(), Xe = u(/\\(punct)/, "gu").replace(/punct/g, z).getRegex(), We = u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Fe = u(G).replace("(?:-->|$)", "-->").getRegex(), Ue = u("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Fe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), E = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Je = u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", E).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ke = u(/^!?\[(label)\]\[(ref)\]/).replace("label", E).replace("ref", O).getRegex(), fe = u(/^!?\[(ref)\](?:\[\])?/).replace("ref", O).getRegex(), Ke = u("reflink|nolink(?!\\()", "g").replace("reflink", ke).replace("nolink", fe).getRegex(), ee = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, F = { _backpedal: S, anyPunctuation: Xe, autolink: We, blockSkip: Ze, br: he, code: Ee, del: S, delLDelim: S, delRDelim: S, emStrongLDelim: De, emStrongRDelimAst: Qe, emStrongRDelimUnd: je, escape: Ie, link: Je, nolink: fe, punctuation: qe, reflink: ke, reflinkSearch: Ke, tag: Ue, text: Ce, url: S }, Ve = { ...F, link: u(/^!?\[(label)\]\((.*?)\)/).replace("label", E).getRegex(), reflink: u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", E).getRegex() }, D = { ...F, emStrongRDelimAst: He, emStrongLDelim: Me, delLDelim: Ne, delRDelim: Ge, url: u(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ee).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: u(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ee).getRegex() }, Ye = { ...D, br: u(he).replace("{2,}", "*").getRegex(), text: u(D.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: X, gfm: Pe, pedantic: Le }, _ = { normal: F, gfm: D, breaks: Ye, pedantic: Ve }, et = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, te = (r) => et[r];
25
- function m(r, e) {
26
- if (e) {
27
- if (x.escapeTest.test(r)) return r.replace(x.escapeReplace, te);
28
- } else if (x.escapeTestNoEncode.test(r)) return r.replace(x.escapeReplaceNoEncode, te);
29
- return r;
30
- }
31
- function re(r) {
32
- try {
33
- r = encodeURI(r).replace(x.percentDecode, "%");
34
- } catch {
35
- return null;
36
- }
37
- return r;
38
- }
39
- function ne(r, e) {
40
- let t = r.replace(x.findPipe, (i, l, a) => {
41
- let c = !1, o = l;
42
- for (; --o >= 0 && a[o] === "\\"; ) c = !c;
43
- return c ? "|" : " |";
44
- }), s = t.split(x.splitPipe), n = 0;
45
- if (s[0].trim() || s.shift(), s.length > 0 && !s.at(-1)?.trim() && s.pop(), e) if (s.length > e) s.splice(e);
46
- else for (; s.length < e; ) s.push("");
47
- for (; n < s.length; n++) s[n] = s[n].trim().replace(x.slashPipe, "|");
48
- return s;
49
- }
50
- function $(r, e, t) {
51
- let s = r.length;
52
- if (s === 0) return "";
53
- let n = 0;
54
- for (; n < s && r.charAt(s - n - 1) === e; )
55
- n++;
56
- return r.slice(0, s - n);
57
- }
58
- function se(r) {
59
- let e = r.split(`
60
- `), t = e.length - 1;
61
- for (; t >= 0 && x.blankLine.test(e[t]); ) t--;
62
- return e.length - t <= 2 ? r : e.slice(0, t + 1).join(`
63
- `);
64
- }
65
- function tt(r, e) {
66
- if (r.indexOf(e[1]) === -1) return -1;
67
- let t = 0;
68
- for (let s = 0; s < r.length; s++) if (r[s] === "\\") s++;
69
- else if (r[s] === e[0]) t++;
70
- else if (r[s] === e[1] && (t--, t < 0)) return s;
71
- return t > 0 ? -2 : -1;
72
- }
73
- function rt(r, e = 0) {
74
- let t = e, s = "";
75
- for (let n of r) if (n === " ") {
76
- let i = 4 - t % 4;
77
- s += " ".repeat(i), t += i;
78
- } else s += n, t++;
79
- return s;
80
- }
81
- function ie(r, e, t, s, n) {
82
- let i = e.href, l = e.title || null, a = r[1].replace(n.other.outputLinkReplace, "$1");
83
- s.state.inLink = !0;
84
- let c = { type: r[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: l, text: a, tokens: s.inlineTokens(a) };
85
- return s.state.inLink = !1, c;
86
- }
87
- function nt(r, e, t) {
88
- let s = r.match(t.other.indentCodeCompensation);
89
- if (s === null) return e;
90
- let n = s[1];
91
- return e.split(`
92
- `).map((i) => {
93
- let l = i.match(t.other.beginningSpace);
94
- if (l === null) return i;
95
- let [a] = l;
96
- return a.length >= n.length ? i.slice(n.length) : i;
97
- }).join(`
98
- `);
99
- }
100
- var C = class {
101
- options;
102
- rules;
103
- lexer;
104
- constructor(r) {
105
- this.options = r || T;
106
- }
107
- space(r) {
108
- let e = this.rules.block.newline.exec(r);
109
- if (e && e[0].length > 0) return { type: "space", raw: e[0] };
110
- }
111
- code(r) {
112
- let e = this.rules.block.code.exec(r);
113
- if (e) {
114
- let t = this.options.pedantic ? e[0] : se(e[0]), s = t.replace(this.rules.other.codeRemoveIndent, "");
115
- return { type: "code", raw: t, codeBlockStyle: "indented", text: s };
116
- }
117
- }
118
- fences(r) {
119
- let e = this.rules.block.fences.exec(r);
120
- if (e) {
121
- let t = e[0], s = nt(t, e[3] || "", this.rules);
122
- return { type: "code", raw: t, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: s };
123
- }
124
- }
125
- heading(r) {
126
- let e = this.rules.block.heading.exec(r);
127
- if (e) {
128
- let t = e[2].trim();
129
- if (this.rules.other.endingHash.test(t)) {
130
- let s = $(t, "#");
131
- (this.options.pedantic || !s || this.rules.other.endingSpaceChar.test(s)) && (t = s.trim());
132
- }
133
- return { type: "heading", raw: $(e[0], `
134
- `), depth: e[1].length, text: t, tokens: this.lexer.inline(t) };
135
- }
136
- }
137
- hr(r) {
138
- let e = this.rules.block.hr.exec(r);
139
- if (e) return { type: "hr", raw: $(e[0], `
140
- `) };
141
- }
142
- blockquote(r) {
143
- let e = this.rules.block.blockquote.exec(r);
144
- if (e) {
145
- let t = $(e[0], `
146
- `).split(`
147
- `), s = "", n = "", i = [];
148
- for (; t.length > 0; ) {
149
- let l = !1, a = [], c;
150
- for (c = 0; c < t.length; c++) if (this.rules.other.blockquoteStart.test(t[c])) a.push(t[c]), l = !0;
151
- else if (!l) a.push(t[c]);
152
- else break;
153
- t = t.slice(c);
154
- let o = a.join(`
155
- `), p = o.replace(this.rules.other.blockquoteSetextReplace, `
156
- $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
157
- s = s ? `${s}
158
- ${o}` : o, n = n ? `${n}
159
- ${p}` : p;
160
- let h = this.lexer.state.top;
161
- if (this.lexer.state.top = !0, this.lexer.blockTokens(p, i, !0), this.lexer.state.top = h, t.length === 0) break;
162
- let g = i.at(-1);
163
- if (g?.type === "code") break;
164
- if (g?.type === "blockquote") {
165
- let d = g, f = d.raw + `
166
- ` + t.join(`
167
- `), y = this.blockquote(f);
168
- i[i.length - 1] = y, s = s.substring(0, s.length - d.raw.length) + y.raw, n = n.substring(0, n.length - d.text.length) + y.text;
169
- break;
170
- } else if (g?.type === "list") {
171
- let d = g, f = d.raw + `
172
- ` + t.join(`
173
- `), y = this.list(f);
174
- i[i.length - 1] = y, s = s.substring(0, s.length - g.raw.length) + y.raw, n = n.substring(0, n.length - d.raw.length) + y.raw, t = f.substring(i.at(-1).raw.length).split(`
175
- `);
176
- continue;
177
- }
178
- }
179
- return { type: "blockquote", raw: s, tokens: i, text: n };
180
- }
181
- }
182
- list(r) {
183
- let e = this.rules.block.list.exec(r);
184
- if (e) {
185
- let t = e[1].trim(), s = t.length > 1, n = { type: "list", raw: "", ordered: s, start: s ? +t.slice(0, -1) : "", loose: !1, items: [] };
186
- t = s ? `\\d{1,9}\\${t.slice(-1)}` : `\\${t}`, this.options.pedantic && (t = s ? t : "[*+-]");
187
- let i = this.rules.other.listItemRegex(t), l = !1;
188
- for (; r; ) {
189
- let c = !1, o = "", p = "";
190
- if (!(e = i.exec(r)) || this.rules.block.hr.test(r)) break;
191
- o = e[0], r = r.substring(o.length);
192
- let h = rt(e[2].split(`
193
- `, 1)[0], e[1].length), g = r.split(`
194
- `, 1)[0], d = !h.trim(), f = 0;
195
- if (this.options.pedantic ? (f = 2, p = h.trimStart()) : d ? f = e[1].length + 1 : (f = h.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, p = h.slice(f), f += e[1].length), d && this.rules.other.blankLine.test(g) && (o += g + `
196
- `, r = r.substring(g.length + 1), c = !0), !c) {
197
- let y = this.rules.other.nextBulletRegex(f), J = this.rules.other.hrRegex(f), K = this.rules.other.fencesBeginRegex(f), V = this.rules.other.headingBeginRegex(f), de = this.rules.other.htmlBeginRegex(f), xe = this.rules.other.blockquoteBeginRegex(f);
198
- for (; r; ) {
199
- let Z = r.split(`
200
- `, 1)[0], A;
201
- if (g = Z, this.options.pedantic ? (g = g.replace(this.rules.other.listReplaceNesting, " "), A = g) : A = g.replace(this.rules.other.tabCharGlobal, " "), K.test(g) || V.test(g) || de.test(g) || xe.test(g) || y.test(g) || J.test(g)) break;
202
- if (A.search(this.rules.other.nonSpaceChar) >= f || !g.trim()) p += `
203
- ` + A.slice(f);
204
- else {
205
- if (d || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || K.test(h) || V.test(h) || J.test(h)) break;
206
- p += `
207
- ` + g;
208
- }
209
- d = !g.trim(), o += Z + `
210
- `, r = r.substring(Z.length + 1), h = A.slice(f);
211
- }
212
- }
213
- n.loose || (l ? n.loose = !0 : this.rules.other.doubleBlankLine.test(o) && (l = !0)), n.items.push({ type: "list_item", raw: o, task: !!this.options.gfm && this.rules.other.listIsTask.test(p), loose: !1, text: p, tokens: [] }), n.raw += o;
214
- }
215
- let a = n.items.at(-1);
216
- if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
217
- else return;
218
- n.raw = n.raw.trimEnd();
219
- for (let c of n.items) {
220
- this.lexer.state.top = !1, c.tokens = this.lexer.blockTokens(c.text, []);
221
- let o = c.tokens[0];
222
- if (c.task && (o?.type === "text" || o?.type === "paragraph")) {
223
- c.text = c.text.replace(this.rules.other.listReplaceTask, ""), o.raw = o.raw.replace(this.rules.other.listReplaceTask, ""), o.text = o.text.replace(this.rules.other.listReplaceTask, "");
224
- for (let h = this.lexer.inlineQueue.length - 1; h >= 0; h--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)) {
225
- this.lexer.inlineQueue[h].src = this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask, "");
226
- break;
227
- }
228
- let p = this.rules.other.listTaskCheckbox.exec(c.raw);
229
- if (p) {
230
- let h = { type: "checkbox", raw: p[0] + " ", checked: p[0] !== "[ ]" };
231
- c.checked = h.checked, n.loose ? c.tokens[0] && ["paragraph", "text"].includes(c.tokens[0].type) && "tokens" in c.tokens[0] && c.tokens[0].tokens ? (c.tokens[0].raw = h.raw + c.tokens[0].raw, c.tokens[0].text = h.raw + c.tokens[0].text, c.tokens[0].tokens.unshift(h)) : c.tokens.unshift({ type: "paragraph", raw: h.raw, text: h.raw, tokens: [h] }) : c.tokens.unshift(h);
232
- }
233
- } else c.task && (c.task = !1);
234
- if (!n.loose) {
235
- let p = c.tokens.filter((g) => g.type === "space"), h = p.length > 0 && p.some((g) => this.rules.other.anyLine.test(g.raw));
236
- n.loose = h;
237
- }
238
- }
239
- if (n.loose) for (let c of n.items) {
240
- c.loose = !0;
241
- for (let o of c.tokens) o.type === "text" && (o.type = "paragraph");
242
- }
243
- return n;
244
- }
245
- }
246
- html(r) {
247
- let e = this.rules.block.html.exec(r);
248
- if (e) {
249
- let t = se(e[0]);
250
- return { type: "html", block: !0, raw: t, pre: e[1] === "pre" || e[1] === "script" || e[1] === "style", text: t };
251
- }
252
- }
253
- def(r) {
254
- let e = this.rules.block.def.exec(r);
255
- if (e) {
256
- let t = e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), s = e[2] ? e[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", n = e[3] ? e[3].substring(1, e[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : e[3];
257
- return { type: "def", tag: t, raw: $(e[0], `
258
- `), href: s, title: n };
259
- }
260
- }
261
- table(r) {
262
- let e = this.rules.block.table.exec(r);
263
- if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
264
- let t = ne(e[1]), s = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), n = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
265
- `) : [], i = { type: "table", raw: $(e[0], `
266
- `), header: [], align: [], rows: [] };
267
- if (t.length === s.length) {
268
- for (let l of s) this.rules.other.tableAlignRight.test(l) ? i.align.push("right") : this.rules.other.tableAlignCenter.test(l) ? i.align.push("center") : this.rules.other.tableAlignLeft.test(l) ? i.align.push("left") : i.align.push(null);
269
- for (let l = 0; l < t.length; l++) i.header.push({ text: t[l], tokens: this.lexer.inline(t[l]), header: !0, align: i.align[l] });
270
- for (let l of n) i.rows.push(ne(l, i.header.length).map((a, c) => ({ text: a, tokens: this.lexer.inline(a), header: !1, align: i.align[c] })));
271
- return i;
272
- }
273
- }
274
- lheading(r) {
275
- let e = this.rules.block.lheading.exec(r);
276
- if (e) {
277
- let t = e[1].trim();
278
- return { type: "heading", raw: $(e[0], `
279
- `), depth: e[2].charAt(0) === "=" ? 1 : 2, text: t, tokens: this.lexer.inline(t) };
280
- }
281
- }
282
- paragraph(r) {
283
- let e = this.rules.block.paragraph.exec(r);
284
- if (e) {
285
- let t = e[1].charAt(e[1].length - 1) === `
286
- ` ? e[1].slice(0, -1) : e[1];
287
- return { type: "paragraph", raw: e[0], text: t, tokens: this.lexer.inline(t) };
288
- }
289
- }
290
- text(r) {
291
- let e = this.rules.block.text.exec(r);
292
- if (e) return { type: "text", raw: e[0], text: e[0], tokens: this.lexer.inline(e[0]) };
293
- }
294
- escape(r) {
295
- let e = this.rules.inline.escape.exec(r);
296
- if (e) return { type: "escape", raw: e[0], text: e[1] };
297
- }
298
- tag(r) {
299
- let e = this.rules.inline.tag.exec(r);
300
- if (e) return !this.lexer.state.inLink && this.rules.other.startATag.test(e[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(e[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(e[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(e[0]) && (this.lexer.state.inRawBlock = !1), { type: "html", raw: e[0], inLink: this.lexer.state.inLink, inRawBlock: this.lexer.state.inRawBlock, block: !1, text: e[0] };
301
- }
302
- link(r) {
303
- let e = this.rules.inline.link.exec(r);
304
- if (e) {
305
- let t = e[2].trim();
306
- if (!this.options.pedantic && this.rules.other.startAngleBracket.test(t)) {
307
- if (!this.rules.other.endAngleBracket.test(t)) return;
308
- let i = $(t.slice(0, -1), "\\");
309
- if ((t.length - i.length) % 2 === 0) return;
310
- } else {
311
- let i = tt(e[2], "()");
312
- if (i === -2) return;
313
- if (i > -1) {
314
- let l = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + i;
315
- e[2] = e[2].substring(0, i), e[0] = e[0].substring(0, l).trim(), e[3] = "";
316
- }
317
- }
318
- let s = e[2], n = "";
319
- if (this.options.pedantic) {
320
- let i = this.rules.other.pedanticHrefTitle.exec(s);
321
- i && (s = i[1], n = i[3]);
322
- } else n = e[3] ? e[3].slice(1, -1) : "";
323
- return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(t) ? s = s.slice(1) : s = s.slice(1, -1)), ie(e, { href: s && s.replace(this.rules.inline.anyPunctuation, "$1"), title: n && n.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
324
- }
325
- }
326
- reflink(r, e) {
327
- let t;
328
- if ((t = this.rules.inline.reflink.exec(r)) || (t = this.rules.inline.nolink.exec(r))) {
329
- let s = (t[2] || t[1]).replace(this.rules.other.multipleSpaceGlobal, " "), n = e[s.toLowerCase()];
330
- if (!n) {
331
- let i = t[0].charAt(0);
332
- return { type: "text", raw: i, text: i };
333
- }
334
- return ie(t, n, t[0], this.lexer, this.rules);
335
- }
336
- }
337
- emStrong(r, e, t = "") {
338
- let s = this.rules.inline.emStrongLDelim.exec(r);
339
- if (!(!s || !s[1] && !s[2] && !s[3] && !s[4] || s[4] && t.match(this.rules.other.unicodeAlphaNumeric)) && (!(s[1] || s[3]) || !t || this.rules.inline.punctuation.exec(t))) {
340
- let n = [...s[0]].length - 1, i, l, a = n, c = 0, o = s[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
341
- for (o.lastIndex = 0, e = e.slice(-1 * r.length + n); (s = o.exec(e)) !== null; ) {
342
- if (i = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !i) continue;
343
- if (l = [...i].length, s[3] || s[4]) {
344
- a += l;
345
- continue;
346
- } else if ((s[5] || s[6]) && n % 3 && !((n + l) % 3)) {
347
- c += l;
348
- continue;
349
- }
350
- if (a -= l, a > 0) continue;
351
- l = Math.min(l, l + a + c);
352
- let p = [...s[0]][0].length, h = r.slice(0, n + s.index + p + l);
353
- if (Math.min(n, l) % 2) {
354
- let d = h.slice(1, -1);
355
- return { type: "em", raw: h, text: d, tokens: this.lexer.inlineTokens(d) };
356
- }
357
- let g = h.slice(2, -2);
358
- return { type: "strong", raw: h, text: g, tokens: this.lexer.inlineTokens(g) };
359
- }
360
- }
361
- }
362
- codespan(r) {
363
- let e = this.rules.inline.code.exec(r);
364
- if (e) {
365
- let t = e[2].replace(this.rules.other.newLineCharGlobal, " "), s = this.rules.other.nonSpaceChar.test(t), n = this.rules.other.startingSpaceChar.test(t) && this.rules.other.endingSpaceChar.test(t);
366
- return s && n && (t = t.substring(1, t.length - 1)), { type: "codespan", raw: e[0], text: t };
367
- }
368
- }
369
- br(r) {
370
- let e = this.rules.inline.br.exec(r);
371
- if (e) return { type: "br", raw: e[0] };
372
- }
373
- del(r, e, t = "") {
374
- let s = this.rules.inline.delLDelim.exec(r);
375
- if (s && (!s[1] || !t || this.rules.inline.punctuation.exec(t))) {
376
- let n = [...s[0]].length - 1, i, l, a = n, c = this.rules.inline.delRDelim;
377
- for (c.lastIndex = 0, e = e.slice(-1 * r.length + n); (s = c.exec(e)) !== null; ) {
378
- if (i = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !i || (l = [...i].length, l !== n)) continue;
379
- if (s[3] || s[4]) {
380
- a += l;
381
- continue;
382
- }
383
- if (a -= l, a > 0) continue;
384
- l = Math.min(l, l + a);
385
- let o = [...s[0]][0].length, p = r.slice(0, n + s.index + o + l), h = p.slice(n, -n);
386
- return { type: "del", raw: p, text: h, tokens: this.lexer.inlineTokens(h) };
387
- }
388
- }
389
- }
390
- autolink(r) {
391
- let e = this.rules.inline.autolink.exec(r);
392
- if (e) {
393
- let t, s;
394
- return e[2] === "@" ? (t = e[1], s = "mailto:" + t) : (t = e[1], s = t), { type: "link", raw: e[0], text: t, href: s, tokens: [{ type: "text", raw: t, text: t }] };
395
- }
396
- }
397
- url(r) {
398
- let e;
399
- if (e = this.rules.inline.url.exec(r)) {
400
- let t, s;
401
- if (e[2] === "@") t = e[0], s = "mailto:" + t;
402
- else {
403
- let n;
404
- do
405
- n = e[0], e[0] = this.rules.inline._backpedal.exec(e[0])?.[0] ?? "";
406
- while (n !== e[0]);
407
- t = e[0], e[1] === "www." ? s = "http://" + e[0] : s = e[0];
408
- }
409
- return { type: "link", raw: e[0], text: t, href: s, tokens: [{ type: "text", raw: t, text: t }] };
410
- }
411
- }
412
- inlineText(r) {
413
- let e = this.rules.inline.text.exec(r);
414
- if (e) {
415
- let t = this.lexer.state.inRawBlock;
416
- return { type: "text", raw: e[0], text: e[0], escaped: t };
417
- }
418
- }
419
- }, b = class M {
420
- tokens;
421
- options;
422
- state;
423
- inlineQueue;
424
- tokenizer;
425
- constructor(e) {
426
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new C(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
427
- let t = { other: x, block: I.normal, inline: _.normal };
428
- this.options.pedantic ? (t.block = I.pedantic, t.inline = _.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = _.breaks : t.inline = _.gfm), this.tokenizer.rules = t;
429
- }
430
- static get rules() {
431
- return { block: I, inline: _ };
432
- }
433
- static lex(e, t) {
434
- return new M(t).lex(e);
435
- }
436
- static lexInline(e, t) {
437
- return new M(t).inlineTokens(e);
438
- }
439
- lex(e) {
440
- e = e.replace(x.carriageReturn, `
441
- `), this.blockTokens(e, this.tokens);
442
- for (let t = 0; t < this.inlineQueue.length; t++) {
443
- let s = this.inlineQueue[t];
444
- this.inlineTokens(s.src, s.tokens);
445
- }
446
- return this.inlineQueue = [], this.tokens;
447
- }
448
- blockTokens(e, t = [], s = !1) {
449
- this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(x.tabCharGlobal, " ").replace(x.spaceLine, ""));
450
- let n = 1 / 0;
451
- for (; e; ) {
452
- if (e.length < n) n = e.length;
453
- else {
454
- this.infiniteLoopError(e.charCodeAt(0));
455
- break;
456
- }
457
- let i;
458
- if (this.options.extensions?.block?.some((a) => (i = a.call({ lexer: this }, e, t)) ? (e = e.substring(i.raw.length), t.push(i), !0) : !1)) continue;
459
- if (i = this.tokenizer.space(e)) {
460
- e = e.substring(i.raw.length);
461
- let a = t.at(-1);
462
- i.raw.length === 1 && a !== void 0 ? a.raw += `
463
- ` : t.push(i);
464
- continue;
465
- }
466
- if (i = this.tokenizer.code(e)) {
467
- e = e.substring(i.raw.length);
468
- let a = t.at(-1);
469
- a?.type === "paragraph" || a?.type === "text" ? (a.raw += (a.raw.endsWith(`
470
- `) ? "" : `
471
- `) + i.raw, a.text += `
472
- ` + i.text, this.inlineQueue.at(-1).src = a.text) : t.push(i);
473
- continue;
474
- }
475
- if (i = this.tokenizer.fences(e)) {
476
- e = e.substring(i.raw.length), t.push(i);
477
- continue;
478
- }
479
- if (i = this.tokenizer.heading(e)) {
480
- e = e.substring(i.raw.length), t.push(i);
481
- continue;
482
- }
483
- if (i = this.tokenizer.hr(e)) {
484
- e = e.substring(i.raw.length), t.push(i);
485
- continue;
486
- }
487
- if (i = this.tokenizer.blockquote(e)) {
488
- e = e.substring(i.raw.length), t.push(i);
489
- continue;
490
- }
491
- if (i = this.tokenizer.list(e)) {
492
- e = e.substring(i.raw.length), t.push(i);
493
- continue;
494
- }
495
- if (i = this.tokenizer.html(e)) {
496
- e = e.substring(i.raw.length), t.push(i);
497
- continue;
498
- }
499
- if (i = this.tokenizer.def(e)) {
500
- e = e.substring(i.raw.length);
501
- let a = t.at(-1);
502
- a?.type === "paragraph" || a?.type === "text" ? (a.raw += (a.raw.endsWith(`
503
- `) ? "" : `
504
- `) + i.raw, a.text += `
505
- ` + i.raw, this.inlineQueue.at(-1).src = a.text) : this.tokens.links[i.tag] || (this.tokens.links[i.tag] = { href: i.href, title: i.title }, t.push(i));
506
- continue;
507
- }
508
- if (i = this.tokenizer.table(e)) {
509
- e = e.substring(i.raw.length), t.push(i);
510
- continue;
511
- }
512
- if (i = this.tokenizer.lheading(e)) {
513
- e = e.substring(i.raw.length), t.push(i);
514
- continue;
515
- }
516
- let l = e;
517
- if (this.options.extensions?.startBlock) {
518
- let a = 1 / 0, c = e.slice(1), o;
519
- this.options.extensions.startBlock.forEach((p) => {
520
- o = p.call({ lexer: this }, c), typeof o == "number" && o >= 0 && (a = Math.min(a, o));
521
- }), a < 1 / 0 && a >= 0 && (l = e.substring(0, a + 1));
522
- }
523
- if (this.state.top && (i = this.tokenizer.paragraph(l))) {
524
- let a = t.at(-1);
525
- s && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith(`
526
- `) ? "" : `
527
- `) + i.raw, a.text += `
528
- ` + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(i), s = l.length !== e.length, e = e.substring(i.raw.length);
529
- continue;
530
- }
531
- if (i = this.tokenizer.text(e)) {
532
- e = e.substring(i.raw.length);
533
- let a = t.at(-1);
534
- a?.type === "text" ? (a.raw += (a.raw.endsWith(`
535
- `) ? "" : `
536
- `) + i.raw, a.text += `
537
- ` + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(i);
538
- continue;
539
- }
540
- if (e) {
541
- this.infiniteLoopError(e.charCodeAt(0));
542
- break;
543
- }
544
- }
545
- return this.state.top = !0, t;
546
- }
547
- inline(e, t = []) {
548
- return this.inlineQueue.push({ src: e, tokens: t }), t;
549
- }
550
- inlineTokens(e, t = []) {
551
- this.tokenizer.lexer = this;
552
- let s = e, n = null;
553
- if (this.tokens.links) {
554
- let o = Object.keys(this.tokens.links);
555
- if (o.length > 0) for (; (n = this.tokenizer.rules.inline.reflinkSearch.exec(s)) !== null; ) o.includes(n[0].slice(n[0].lastIndexOf("[") + 1, -1)) && (s = s.slice(0, n.index) + "[" + "a".repeat(n[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
556
- }
557
- for (; (n = this.tokenizer.rules.inline.anyPunctuation.exec(s)) !== null; ) s = s.slice(0, n.index) + "++" + s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
558
- let i;
559
- for (; (n = this.tokenizer.rules.inline.blockSkip.exec(s)) !== null; ) i = n[2] ? n[2].length : 0, s = s.slice(0, n.index + i) + "[" + "a".repeat(n[0].length - i - 2) + "]" + s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
560
- s = this.options.hooks?.emStrongMask?.call({ lexer: this }, s) ?? s;
561
- let l = !1, a = "", c = 1 / 0;
562
- for (; e; ) {
563
- if (e.length < c) c = e.length;
564
- else {
565
- this.infiniteLoopError(e.charCodeAt(0));
566
- break;
567
- }
568
- l || (a = ""), l = !1;
569
- let o;
570
- if (this.options.extensions?.inline?.some((h) => (o = h.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), !0) : !1)) continue;
571
- if (o = this.tokenizer.escape(e)) {
572
- e = e.substring(o.raw.length), t.push(o);
573
- continue;
574
- }
575
- if (o = this.tokenizer.tag(e)) {
576
- e = e.substring(o.raw.length), t.push(o);
577
- continue;
578
- }
579
- if (o = this.tokenizer.link(e)) {
580
- e = e.substring(o.raw.length), t.push(o);
581
- continue;
582
- }
583
- if (o = this.tokenizer.reflink(e, this.tokens.links)) {
584
- e = e.substring(o.raw.length);
585
- let h = t.at(-1);
586
- o.type === "text" && h?.type === "text" ? (h.raw += o.raw, h.text += o.text) : t.push(o);
587
- continue;
588
- }
589
- if (o = this.tokenizer.emStrong(e, s, a)) {
590
- e = e.substring(o.raw.length), t.push(o);
591
- continue;
592
- }
593
- if (o = this.tokenizer.codespan(e)) {
594
- e = e.substring(o.raw.length), t.push(o);
595
- continue;
596
- }
597
- if (o = this.tokenizer.br(e)) {
598
- e = e.substring(o.raw.length), t.push(o);
599
- continue;
600
- }
601
- if (o = this.tokenizer.del(e, s, a)) {
602
- e = e.substring(o.raw.length), t.push(o);
603
- continue;
604
- }
605
- if (o = this.tokenizer.autolink(e)) {
606
- e = e.substring(o.raw.length), t.push(o);
607
- continue;
608
- }
609
- if (!this.state.inLink && (o = this.tokenizer.url(e))) {
610
- e = e.substring(o.raw.length), t.push(o);
611
- continue;
612
- }
613
- let p = e;
614
- if (this.options.extensions?.startInline) {
615
- let h = 1 / 0, g = e.slice(1), d;
616
- this.options.extensions.startInline.forEach((f) => {
617
- d = f.call({ lexer: this }, g), typeof d == "number" && d >= 0 && (h = Math.min(h, d));
618
- }), h < 1 / 0 && h >= 0 && (p = e.substring(0, h + 1));
619
- }
620
- if (o = this.tokenizer.inlineText(p)) {
621
- e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (a = o.raw.slice(-1)), l = !0;
622
- let h = t.at(-1);
623
- h?.type === "text" ? (h.raw += o.raw, h.text += o.text) : t.push(o);
624
- continue;
625
- }
626
- if (e) {
627
- this.infiniteLoopError(e.charCodeAt(0));
628
- break;
629
- }
630
- }
631
- return t;
632
- }
633
- infiniteLoopError(e) {
634
- let t = "Infinite loop on byte: " + e;
635
- if (this.options.silent) console.error(t);
636
- else throw new Error(t);
637
- }
638
- }, q = class {
639
- options;
640
- parser;
641
- constructor(r) {
642
- this.options = r || T;
643
- }
644
- space(r) {
645
- return "";
646
- }
647
- code({ text: r, lang: e, escaped: t }) {
648
- let s = (e || "").match(x.notSpaceStart)?.[0], n = r.replace(x.endingNewline, "") + `
649
- `;
650
- return s ? '<pre><code class="language-' + m(s) + '">' + (t ? n : m(n, !0)) + `</code></pre>
651
- ` : "<pre><code>" + (t ? n : m(n, !0)) + `</code></pre>
652
- `;
653
- }
654
- blockquote({ tokens: r }) {
655
- return `<blockquote>
656
- ${this.parser.parse(r)}</blockquote>
657
- `;
658
- }
659
- html({ text: r }) {
660
- return r;
661
- }
662
- def(r) {
663
- return "";
664
- }
665
- heading({ tokens: r, depth: e }) {
666
- return `<h${e}>${this.parser.parseInline(r)}</h${e}>
667
- `;
668
- }
669
- hr(r) {
670
- return `<hr>
671
- `;
672
- }
673
- list(r) {
674
- let e = r.ordered, t = r.start, s = "";
675
- for (let l = 0; l < r.items.length; l++) {
676
- let a = r.items[l];
677
- s += this.listitem(a);
678
- }
679
- let n = e ? "ol" : "ul", i = e && t !== 1 ? ' start="' + t + '"' : "";
680
- return "<" + n + i + `>
681
- ` + s + "</" + n + `>
682
- `;
683
- }
684
- listitem(r) {
685
- return `<li>${this.parser.parse(r.tokens)}</li>
686
- `;
687
- }
688
- checkbox({ checked: r }) {
689
- return "<input " + (r ? 'checked="" ' : "") + 'disabled="" type="checkbox"> ';
690
- }
691
- paragraph({ tokens: r }) {
692
- return `<p>${this.parser.parseInline(r)}</p>
693
- `;
694
- }
695
- table(r) {
696
- let e = "", t = "";
697
- for (let n = 0; n < r.header.length; n++) t += this.tablecell(r.header[n]);
698
- e += this.tablerow({ text: t });
699
- let s = "";
700
- for (let n = 0; n < r.rows.length; n++) {
701
- let i = r.rows[n];
702
- t = "";
703
- for (let l = 0; l < i.length; l++) t += this.tablecell(i[l]);
704
- s += this.tablerow({ text: t });
705
- }
706
- return s && (s = `<tbody>${s}</tbody>`), `<table>
707
- <thead>
708
- ` + e + `</thead>
709
- ` + s + `</table>
710
- `;
711
- }
712
- tablerow({ text: r }) {
713
- return `<tr>
714
- ${r}</tr>
715
- `;
716
- }
717
- tablecell(r) {
718
- let e = this.parser.parseInline(r.tokens), t = r.header ? "th" : "td";
719
- return (r.align ? `<${t} align="${r.align}">` : `<${t}>`) + e + `</${t}>
720
- `;
721
- }
722
- strong({ tokens: r }) {
723
- return `<strong>${this.parser.parseInline(r)}</strong>`;
724
- }
725
- em({ tokens: r }) {
726
- return `<em>${this.parser.parseInline(r)}</em>`;
727
- }
728
- codespan({ text: r }) {
729
- return `<code>${m(r, !0)}</code>`;
730
- }
731
- br(r) {
732
- return "<br>";
733
- }
734
- del({ tokens: r }) {
735
- return `<del>${this.parser.parseInline(r)}</del>`;
736
- }
737
- link({ href: r, title: e, tokens: t }) {
738
- let s = this.parser.parseInline(t), n = re(r);
739
- if (n === null) return s;
740
- r = n;
741
- let i = '<a href="' + r + '"';
742
- return e && (i += ' title="' + m(e) + '"'), i += ">" + s + "</a>", i;
743
- }
744
- image({ href: r, title: e, text: t, tokens: s }) {
745
- s && (t = this.parser.parseInline(s, this.parser.textRenderer));
746
- let n = re(r);
747
- if (n === null) return m(t);
748
- r = n;
749
- let i = `<img src="${r}" alt="${m(t)}"`;
750
- return e && (i += ` title="${m(e)}"`), i += ">", i;
751
- }
752
- text(r) {
753
- return "tokens" in r && r.tokens ? this.parser.parseInline(r.tokens) : "escaped" in r && r.escaped ? r.text : m(r.text);
754
- }
755
- }, U = class {
756
- strong({ text: r }) {
757
- return r;
758
- }
759
- em({ text: r }) {
760
- return r;
761
- }
762
- codespan({ text: r }) {
763
- return r;
764
- }
765
- del({ text: r }) {
766
- return r;
767
- }
768
- html({ text: r }) {
769
- return r;
770
- }
771
- text({ text: r }) {
772
- return r;
773
- }
774
- link({ text: r }) {
775
- return "" + r;
776
- }
777
- image({ text: r }) {
778
- return "" + r;
779
- }
780
- br() {
781
- return "";
782
- }
783
- checkbox({ raw: r }) {
784
- return r;
785
- }
786
- }, w = class Q {
787
- options;
788
- renderer;
789
- textRenderer;
790
- constructor(e) {
791
- this.options = e || T, this.options.renderer = this.options.renderer || new q(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new U();
792
- }
793
- static parse(e, t) {
794
- return new Q(t).parse(e);
795
- }
796
- static parseInline(e, t) {
797
- return new Q(t).parseInline(e);
798
- }
799
- parse(e) {
800
- this.renderer.parser = this;
801
- let t = "";
802
- for (let s = 0; s < e.length; s++) {
803
- let n = e[s];
804
- if (this.options.extensions?.renderers?.[n.type]) {
805
- let l = n, a = this.options.extensions.renderers[l.type].call({ parser: this }, l);
806
- if (a !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(l.type)) {
807
- t += a || "";
808
- continue;
809
- }
810
- }
811
- let i = n;
812
- switch (i.type) {
813
- case "space": {
814
- t += this.renderer.space(i);
815
- break;
816
- }
817
- case "hr": {
818
- t += this.renderer.hr(i);
819
- break;
820
- }
821
- case "heading": {
822
- t += this.renderer.heading(i);
823
- break;
824
- }
825
- case "code": {
826
- t += this.renderer.code(i);
827
- break;
828
- }
829
- case "table": {
830
- t += this.renderer.table(i);
831
- break;
832
- }
833
- case "blockquote": {
834
- t += this.renderer.blockquote(i);
835
- break;
836
- }
837
- case "list": {
838
- t += this.renderer.list(i);
839
- break;
840
- }
841
- case "checkbox": {
842
- t += this.renderer.checkbox(i);
843
- break;
844
- }
845
- case "html": {
846
- t += this.renderer.html(i);
847
- break;
848
- }
849
- case "def": {
850
- t += this.renderer.def(i);
851
- break;
852
- }
853
- case "paragraph": {
854
- t += this.renderer.paragraph(i);
855
- break;
856
- }
857
- case "text": {
858
- t += this.renderer.text(i);
859
- break;
860
- }
861
- default: {
862
- let l = 'Token with "' + i.type + '" type was not found.';
863
- if (this.options.silent) return console.error(l), "";
864
- throw new Error(l);
865
- }
866
- }
867
- }
868
- return t;
869
- }
870
- parseInline(e, t = this.renderer) {
871
- this.renderer.parser = this;
872
- let s = "";
873
- for (let n = 0; n < e.length; n++) {
874
- let i = e[n];
875
- if (this.options.extensions?.renderers?.[i.type]) {
876
- let a = this.options.extensions.renderers[i.type].call({ parser: this }, i);
877
- if (a !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
878
- s += a || "";
879
- continue;
880
- }
881
- }
882
- let l = i;
883
- switch (l.type) {
884
- case "escape": {
885
- s += t.text(l);
886
- break;
887
- }
888
- case "html": {
889
- s += t.html(l);
890
- break;
891
- }
892
- case "link": {
893
- s += t.link(l);
894
- break;
895
- }
896
- case "image": {
897
- s += t.image(l);
898
- break;
899
- }
900
- case "checkbox": {
901
- s += t.checkbox(l);
902
- break;
903
- }
904
- case "strong": {
905
- s += t.strong(l);
906
- break;
907
- }
908
- case "em": {
909
- s += t.em(l);
910
- break;
911
- }
912
- case "codespan": {
913
- s += t.codespan(l);
914
- break;
915
- }
916
- case "br": {
917
- s += t.br(l);
918
- break;
919
- }
920
- case "del": {
921
- s += t.del(l);
922
- break;
923
- }
924
- case "text": {
925
- s += t.text(l);
926
- break;
927
- }
928
- default: {
929
- let a = 'Token with "' + l.type + '" type was not found.';
930
- if (this.options.silent) return console.error(a), "";
931
- throw new Error(a);
932
- }
933
- }
934
- }
935
- return s;
936
- }
937
- }, P = class {
938
- options;
939
- block;
940
- constructor(r) {
941
- this.options = r || T;
942
- }
943
- static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
944
- static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
945
- preprocess(r) {
946
- return r;
947
- }
948
- postprocess(r) {
949
- return r;
950
- }
951
- processAllTokens(r) {
952
- return r;
953
- }
954
- emStrongMask(r) {
955
- return r;
956
- }
957
- provideLexer(r = this.block) {
958
- return r ? b.lex : b.lexInline;
959
- }
960
- provideParser(r = this.block) {
961
- return r ? w.parse : w.parseInline;
962
- }
963
- }, st = class {
964
- defaults = H();
965
- options = this.setOptions;
966
- parse = this.parseMarkdown(!0);
967
- parseInline = this.parseMarkdown(!1);
968
- Parser = w;
969
- Renderer = q;
970
- TextRenderer = U;
971
- Lexer = b;
972
- Tokenizer = C;
973
- Hooks = P;
974
- constructor(...r) {
975
- this.use(...r);
976
- }
977
- walkTokens(r, e) {
978
- let t = [];
979
- for (let s of r) switch (t = t.concat(e.call(this, s)), s.type) {
980
- case "table": {
981
- let n = s;
982
- for (let i of n.header) t = t.concat(this.walkTokens(i.tokens, e));
983
- for (let i of n.rows) for (let l of i) t = t.concat(this.walkTokens(l.tokens, e));
984
- break;
985
- }
986
- case "list": {
987
- let n = s;
988
- t = t.concat(this.walkTokens(n.items, e));
989
- break;
990
- }
991
- default: {
992
- let n = s;
993
- this.defaults.extensions?.childTokens?.[n.type] ? this.defaults.extensions.childTokens[n.type].forEach((i) => {
994
- let l = n[i].flat(1 / 0);
995
- t = t.concat(this.walkTokens(l, e));
996
- }) : n.tokens && (t = t.concat(this.walkTokens(n.tokens, e)));
997
- }
998
- }
999
- return t;
1000
- }
1001
- use(...r) {
1002
- let e = this.defaults.extensions || { renderers: {}, childTokens: {} };
1003
- return r.forEach((t) => {
1004
- let s = { ...t };
1005
- if (s.async = this.defaults.async || s.async || !1, t.extensions && (t.extensions.forEach((n) => {
1006
- if (!n.name) throw new Error("extension name required");
1007
- if ("renderer" in n) {
1008
- let i = e.renderers[n.name];
1009
- i ? e.renderers[n.name] = function(...l) {
1010
- let a = n.renderer.apply(this, l);
1011
- return a === !1 && (a = i.apply(this, l)), a;
1012
- } : e.renderers[n.name] = n.renderer;
1013
- }
1014
- if ("tokenizer" in n) {
1015
- if (!n.level || n.level !== "block" && n.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
1016
- let i = e[n.level];
1017
- i ? i.unshift(n.tokenizer) : e[n.level] = [n.tokenizer], n.start && (n.level === "block" ? e.startBlock ? e.startBlock.push(n.start) : e.startBlock = [n.start] : n.level === "inline" && (e.startInline ? e.startInline.push(n.start) : e.startInline = [n.start]));
1018
- }
1019
- "childTokens" in n && n.childTokens && (e.childTokens[n.name] = n.childTokens);
1020
- }), s.extensions = e), t.renderer) {
1021
- let n = this.defaults.renderer || new q(this.defaults);
1022
- for (let i in t.renderer) {
1023
- if (!(i in n)) throw new Error(`renderer '${i}' does not exist`);
1024
- if (["options", "parser"].includes(i)) continue;
1025
- let l = i, a = t.renderer[l], c = n[l];
1026
- n[l] = (...o) => {
1027
- let p = a.apply(n, o);
1028
- return p === !1 && (p = c.apply(n, o)), p || "";
1029
- };
1030
- }
1031
- s.renderer = n;
1032
- }
1033
- if (t.tokenizer) {
1034
- let n = this.defaults.tokenizer || new C(this.defaults);
1035
- for (let i in t.tokenizer) {
1036
- if (!(i in n)) throw new Error(`tokenizer '${i}' does not exist`);
1037
- if (["options", "rules", "lexer"].includes(i)) continue;
1038
- let l = i, a = t.tokenizer[l], c = n[l];
1039
- n[l] = (...o) => {
1040
- let p = a.apply(n, o);
1041
- return p === !1 && (p = c.apply(n, o)), p;
1042
- };
1043
- }
1044
- s.tokenizer = n;
1045
- }
1046
- if (t.hooks) {
1047
- let n = this.defaults.hooks || new P();
1048
- for (let i in t.hooks) {
1049
- if (!(i in n)) throw new Error(`hook '${i}' does not exist`);
1050
- if (["options", "block"].includes(i)) continue;
1051
- let l = i, a = t.hooks[l], c = n[l];
1052
- P.passThroughHooks.has(i) ? n[l] = (o) => {
1053
- if (this.defaults.async && P.passThroughHooksRespectAsync.has(i)) return (async () => {
1054
- let h = await a.call(n, o);
1055
- return c.call(n, h);
1056
- })();
1057
- let p = a.call(n, o);
1058
- return c.call(n, p);
1059
- } : n[l] = (...o) => {
1060
- if (this.defaults.async) return (async () => {
1061
- let h = await a.apply(n, o);
1062
- return h === !1 && (h = await c.apply(n, o)), h;
1063
- })();
1064
- let p = a.apply(n, o);
1065
- return p === !1 && (p = c.apply(n, o)), p;
1066
- };
1067
- }
1068
- s.hooks = n;
1069
- }
1070
- if (t.walkTokens) {
1071
- let n = this.defaults.walkTokens, i = t.walkTokens;
1072
- s.walkTokens = function(l) {
1073
- let a = [];
1074
- return a.push(i.call(this, l)), n && (a = a.concat(n.call(this, l))), a;
1075
- };
1076
- }
1077
- this.defaults = { ...this.defaults, ...s };
1078
- }), this;
1079
- }
1080
- setOptions(r) {
1081
- return this.defaults = { ...this.defaults, ...r }, this;
1082
- }
1083
- lexer(r, e) {
1084
- return b.lex(r, e ?? this.defaults);
1085
- }
1086
- parser(r, e) {
1087
- return w.parse(r, e ?? this.defaults);
1088
- }
1089
- parseMarkdown(r) {
1090
- return (e, t) => {
1091
- let s = { ...t }, n = { ...this.defaults, ...s }, i = this.onError(!!n.silent, !!n.async);
1092
- if (this.defaults.async === !0 && s.async === !1) return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1093
- if (typeof e > "u" || e === null) return i(new Error("marked(): input parameter is undefined or null"));
1094
- if (typeof e != "string") return i(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
1095
- if (n.hooks && (n.hooks.options = n, n.hooks.block = r), n.async) return (async () => {
1096
- let l = n.hooks ? await n.hooks.preprocess(e) : e, a = await (n.hooks ? await n.hooks.provideLexer(r) : r ? b.lex : b.lexInline)(l, n), c = n.hooks ? await n.hooks.processAllTokens(a) : a;
1097
- n.walkTokens && await Promise.all(this.walkTokens(c, n.walkTokens));
1098
- let o = await (n.hooks ? await n.hooks.provideParser(r) : r ? w.parse : w.parseInline)(c, n);
1099
- return n.hooks ? await n.hooks.postprocess(o) : o;
1100
- })().catch(i);
1101
- try {
1102
- n.hooks && (e = n.hooks.preprocess(e));
1103
- let l = (n.hooks ? n.hooks.provideLexer(r) : r ? b.lex : b.lexInline)(e, n);
1104
- n.hooks && (l = n.hooks.processAllTokens(l)), n.walkTokens && this.walkTokens(l, n.walkTokens);
1105
- let a = (n.hooks ? n.hooks.provideParser(r) : r ? w.parse : w.parseInline)(l, n);
1106
- return n.hooks && (a = n.hooks.postprocess(a)), a;
1107
- } catch (l) {
1108
- return i(l);
1109
- }
1110
- };
1111
- }
1112
- onError(r, e) {
1113
- return (t) => {
1114
- if (t.message += `
1115
- Please report this to https://github.com/markedjs/marked.`, r) {
1116
- let s = "<p>An error occurred:</p><pre>" + m(t.message + "", !0) + "</pre>";
1117
- return e ? Promise.resolve(s) : s;
1118
- }
1119
- if (e) return Promise.reject(t);
1120
- throw t;
1121
- };
1122
- }
1123
- }, R = new st();
1124
- function k(r, e) {
1125
- return R.parse(r, e);
1126
- }
1127
- k.options = k.setOptions = function(r) {
1128
- return R.setOptions(r), k.defaults = R.defaults, le(k.defaults), k;
1129
- };
1130
- k.getDefaults = H;
1131
- k.defaults = T;
1132
- k.use = function(...r) {
1133
- return R.use(...r), k.defaults = R.defaults, le(k.defaults), k;
1134
- };
1135
- k.walkTokens = function(r, e) {
1136
- return R.walkTokens(r, e);
1137
- };
1138
- k.parseInline = R.parseInline;
1139
- k.Parser = w;
1140
- k.parser = w.parse;
1141
- k.Renderer = q;
1142
- k.TextRenderer = U;
1143
- k.Lexer = b;
1144
- k.lexer = b.lex;
1145
- k.Tokenizer = C;
1146
- k.Hooks = P;
1147
- k.parse = k;
1148
- k.options;
1149
- k.setOptions;
1150
- k.use;
1151
- k.walkTokens;
1152
- k.parseInline;
1153
- w.parse;
1154
- b.lex;
1155
- k.use({
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { marked as n } from "marked";
3
+ n.use({
1156
4
  gfm: !0,
1157
5
  breaks: !0,
1158
6
  async: !1,
1159
7
  renderer: {
1160
- link({ href: r, title: e, tokens: t }) {
1161
- const s = this.parser.parseInline(t);
1162
- return `<calcite-link href="${r}" title="${e ?? s}" target="Arcade Help">${s}</calcite-link>`;
8
+ link({ href: e, title: r, tokens: i }) {
9
+ const t = this.parser.parseInline(i);
10
+ return `<calcite-link href="${e}" title="${r ?? t}" target="Arcade Help">${t}</calcite-link>`;
1163
11
  },
1164
- code({ lang: r, text: e }) {
1165
- return `<arcgis-code-viewer language="${r === "sql" ? "arcgis-sql-expression" : r}">${e}</arcgis-code-viewer>`;
12
+ code({ lang: e, text: r }) {
13
+ return `<arcgis-code-viewer language="${e === "sql" ? "arcgis-sql-expression" : e}">${r}</arcgis-code-viewer>`;
1166
14
  }
1167
15
  }
1168
16
  });
1169
- function it(r) {
1170
- return r == null ? "" : k.parse(typeof r == "string" ? r : r.value, { async: !1 });
17
+ function c(e) {
18
+ return e == null ? "" : n.parse(typeof e == "string" ? e : e.value, { async: !1 });
1171
19
  }
1172
20
  export {
1173
- it as c
21
+ c
1174
22
  };