nolo-cli 0.108.0-alpha.2 → 0.108.1

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 (606) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-BY3P5LBB.js → _executeModel-T7PIVJIW.js} +128 -83
  3. package/action-RHUT4OHH.js +23 -0
  4. package/{addContentAction-MB2HHMDZ.js → addContentAction-BQ3LJLUW.js} +19 -13
  5. package/{addDialogAgentAction-MCEABSBA.js → addDialogAgentAction-B6X7BXR4.js} +24 -20
  6. package/{agentDeleteCommand-66KXCSRR.js → agentDeleteCommand-VIDCZAFG.js} +154 -68
  7. package/{agentEmailCommands-63UTONDK.js → agentEmailCommands-PCHDY4ZP.js} +125 -105
  8. package/{agentGrantCommands-M3XFO6EN.js → agentGrantCommands-HOJ3JBBQ.js} +3 -3
  9. package/agentListCommands-QNUAN3YH.js +800 -0
  10. package/{agentMachineCommands-Z6RGPZSG.js → agentMachineCommands-C2TMTQNU.js} +54 -58
  11. package/{agentProviderCommands-X3UNW77C.js → agentProviderCommands-7PCGR77I.js} +97 -2
  12. package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-7GCDM4BK.js} +7 -7
  13. package/agentRecordCommands-T4XAUFF5.js +149 -0
  14. package/agentRunCommand-T3AW43I6.js +179 -0
  15. package/{agentRunControl-AVJR4JW4.js → agentRunControl-2CDZNHXV.js} +10 -2
  16. package/{agentRuntimeLocal-E67CTV45.js → agentRuntimeLocal-SQUDRZWE.js} +41 -46
  17. package/{agentSlice-DG5TIQHE.js → agentSlice-HBGFNXUG.js} +22 -16
  18. package/{appDeleteCommands-Z36CLGUK.js → appDeleteCommands-CLLYGEBC.js} +55 -56
  19. package/{appDeployCommands-ECMUWG6S.js → appDeployCommands-HY2NBNDQ.js} +64 -60
  20. package/{appDeployStatusCommands-CL24TDMA.js → appDeployStatusCommands-SGO5GEXH.js} +53 -53
  21. package/{appGetCommands-ITHGOYGJ.js → appGetCommands-ZPYK2N5D.js} +53 -53
  22. package/{appListCommands-EEOSI6RC.js → appListCommands-O2BHIMKS.js} +54 -56
  23. package/{authCommand-HGP2XTKC.js → authCommand-GUIREPHK.js} +132 -83
  24. package/{authCommands-RGOGCPP6.js → authCommands-K3BDSTJ4.js} +10 -7
  25. package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-MUOUTRNJ.js} +13 -10
  26. package/{chromeCommands-FZYAU75D.js → chromeCommands-Z2WRJB7O.js} +290 -38
  27. package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-YWYXZTIR.js} +157 -23
  28. package/{chunk-2F7RJC6L.js → chunk-2C47W7IJ.js} +1 -1
  29. package/chunk-2DRYS3G3.js +13941 -0
  30. package/{chunk-VLTIYV3X.js → chunk-2ECUZDEL.js} +37 -11
  31. package/{chunk-LPIYPEME.js → chunk-2FY3GHBV.js} +1449 -1094
  32. package/{chunk-ALXHV7NK.js → chunk-2GGXHQIW.js} +43 -4
  33. package/{chunk-AHAHBQMU.js → chunk-2OMUAIKR.js} +2 -2
  34. package/{chunk-DHDMC6FO.js → chunk-3CZM6HGQ.js} +53 -23
  35. package/{chunk-BNGW5ASC.js → chunk-3LI5UCTU.js} +23 -3
  36. package/{chunk-FDTR4QJ6.js → chunk-3MZAGMYY.js} +48 -1
  37. package/chunk-3PVYUPXK.js +40 -0
  38. package/{chunk-FV3JEYR3.js → chunk-3SK3J3IF.js} +69 -10
  39. package/chunk-4LCOCOR5.js +50 -0
  40. package/{chunk-V7E4PXQD.js → chunk-4MSYSHZD.js} +15 -7
  41. package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
  42. package/{chunk-MP64VFGD.js → chunk-4XEYAFLY.js} +60 -18
  43. package/chunk-4YRTZIVN.js +871 -0
  44. package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
  45. package/{chunk-N7J63Q6C.js → chunk-56GBUMO5.js} +10 -1
  46. package/chunk-5MMAK75Q.js +15 -0
  47. package/{chunk-KZJP33ZK.js → chunk-5WLADF62.js} +90 -36
  48. package/chunk-5XN3OSCT.js +164 -0
  49. package/{chunk-T3GEOSRJ.js → chunk-5YJWHTKD.js} +69 -57
  50. package/chunk-6CCAXGFK.js +1712 -0
  51. package/{chunk-42V6BK2E.js → chunk-6MXDOUMH.js} +18 -36
  52. package/{chunk-QOKAKDPE.js → chunk-6Q7UTJKR.js} +6 -94
  53. package/{chunk-J4MOO56S.js → chunk-6VRWNU5J.js} +10 -2
  54. package/{chunk-IQPFGYO3.js → chunk-726TCFLQ.js} +5 -5
  55. package/{chunk-CW67PN7L.js → chunk-7B3BVGU3.js} +61 -11
  56. package/chunk-7DPNBQSV.js +9 -0
  57. package/{chunk-LWKP7AWH.js → chunk-A337PRRR.js} +41 -17
  58. package/chunk-AGIM7IMJ.js +147 -0
  59. package/chunk-AI7XJMMQ.js +1858 -0
  60. package/{chunk-ABQYVJBJ.js → chunk-AIZE5TDM.js} +3 -3
  61. package/{chunk-LJ5VW2UJ.js → chunk-ALKCVCA5.js} +4 -4
  62. package/{chunk-5UTFL4QJ.js → chunk-APO5TOXO.js} +1 -1
  63. package/{chunk-E4MARS3Q.js → chunk-AU7AXHUL.js} +1 -1
  64. package/{chunk-DOTZ5GTO.js → chunk-AWYWIWTU.js} +310 -95
  65. package/chunk-B77W7P7J.js +95 -0
  66. package/{chunk-PBA4UJBK.js → chunk-BFYDNHYW.js} +12 -12
  67. package/{chunk-QTGQ2LTL.js → chunk-BIAETTOB.js} +5 -9
  68. package/{chunk-OIVSQH2O.js → chunk-CGEK73JN.js} +311 -12
  69. package/chunk-CHOZJMJS.js +78 -0
  70. package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
  71. package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
  72. package/chunk-EYLGAEB4.js +784 -0
  73. package/{chunk-3BMYXEUW.js → chunk-F2UJW3EK.js} +1 -1
  74. package/{chunk-RVE4DCV3.js → chunk-FBLRSLZH.js} +26 -31
  75. package/{chunk-P5EVSOPA.js → chunk-FWY6BHIJ.js} +363 -248
  76. package/{chunk-4MK3I7Y4.js → chunk-G23MQWLJ.js} +7 -128
  77. package/chunk-G6OOUQWJ.js +417 -0
  78. package/{chunk-WV42OMV7.js → chunk-GHZ2H2HJ.js} +11 -15
  79. package/chunk-I42VC5KR.js +15 -0
  80. package/{chunk-H4AHY5BU.js → chunk-IFALJPEX.js} +69 -20
  81. package/{chunk-O6OSWFZQ.js → chunk-IHPDK6UD.js} +6 -0
  82. package/{chunk-UKWGR5SS.js → chunk-IJERIUXS.js} +242 -1146
  83. package/chunk-IN5UVHHP.js +843 -0
  84. package/{chunk-QDSINZM3.js → chunk-IXH3HKY2.js} +1 -22
  85. package/{chunk-SYXOBWOC.js → chunk-JGLKZGGZ.js} +124 -703
  86. package/chunk-JJM3WS6W.js +132 -0
  87. package/{chunk-TR22GEUU.js → chunk-JKDL7BRF.js} +20 -11
  88. package/chunk-JONVI6DK.js +593 -0
  89. package/{chunk-SH43IESU.js → chunk-KQ7DAEZ7.js} +202 -32
  90. package/chunk-KWEDNOZZ.js +7546 -0
  91. package/{chunk-6OZ36FXI.js → chunk-KY6GPQ7O.js} +36 -12
  92. package/{chunk-RZGLXO2B.js → chunk-L5YKEQLD.js} +1715 -451
  93. package/{chunk-MRIHM22T.js → chunk-LAVSW2C2.js} +77 -144
  94. package/{chunk-HSSRGGXJ.js → chunk-LNEKN523.js} +10 -7
  95. package/chunk-LWLNLZC5.js +265 -0
  96. package/{chunk-YTLRHRH3.js → chunk-MDOZSLDE.js} +17 -15
  97. package/{chunk-I3TQJXQ7.js → chunk-MHD5JBSS.js} +131 -10
  98. package/{chunk-QU7KDSZX.js → chunk-MW533QT3.js} +190 -8
  99. package/{chunk-4NNTATRH.js → chunk-NLEJWKF5.js} +10394 -8549
  100. package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
  101. package/{chunk-GQBOR3G6.js → chunk-NN4UUYGB.js} +18 -4
  102. package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
  103. package/chunk-OKARGYFT.js +15 -0
  104. package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
  105. package/{chunk-Z5625XML.js → chunk-OYBAT7RT.js} +113 -17
  106. package/chunk-P3SFAHIL.js +134 -0
  107. package/{chunk-XD2MJFUG.js → chunk-PBGO5AFD.js} +1 -1
  108. package/{chunk-EYAQT56M.js → chunk-PFEK4SA2.js} +13 -10
  109. package/{chunk-Z77CRGTW.js → chunk-PHHFVGOJ.js} +1 -1
  110. package/{chunk-3VNWWVKB.js → chunk-PJNFNEJE.js} +114 -28
  111. package/{chunk-HVURBGF3.js → chunk-PWRS2SU2.js} +27 -9
  112. package/chunk-QFEW2ULV.js +42 -0
  113. package/{chunk-IIVGDG4I.js → chunk-QLQ573SU.js} +124 -77
  114. package/chunk-QQ56R7KS.js +88 -0
  115. package/{chunk-PWBDVI4R.js → chunk-QRFI5NHO.js} +269 -141
  116. package/chunk-QYPE3TS3.js +43 -0
  117. package/{chunk-VMFTFOWF.js → chunk-RLRYVSCD.js} +31 -14
  118. package/{chunk-VRTTFDBM.js → chunk-RNNWTMKT.js} +56 -63
  119. package/{chunk-JRQFUXY7.js → chunk-RRQQAG7W.js} +93 -24
  120. package/chunk-SJ3QFSQS.js +1147 -0
  121. package/{chunk-Q67DOFOO.js → chunk-SZC4REES.js} +212 -105
  122. package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
  123. package/{chunk-GNCCNNZD.js → chunk-TSBCYK5F.js} +7 -7
  124. package/chunk-TY3TIUJK.js +89 -0
  125. package/chunk-U4STABYN.js +81 -0
  126. package/chunk-UEILX4EV.js +15 -0
  127. package/{chunk-AODJ7WSF.js → chunk-UIYVU3S4.js} +90 -79
  128. package/{chunk-YYLHWIW6.js → chunk-UKZX3NHN.js} +1 -1
  129. package/{chunk-7S4YWN7P.js → chunk-V2UPLOXT.js} +4 -4
  130. package/{chunk-LS2ZANRJ.js → chunk-V6WXGTUJ.js} +1 -1
  131. package/{chunk-6YTOJY35.js → chunk-VBG7GWWR.js} +253 -8
  132. package/{chunk-DVINR3PL.js → chunk-VEA7H5FG.js} +3 -3
  133. package/chunk-VIWDGTDA.js +8 -0
  134. package/chunk-VJVNU77E.js +83 -0
  135. package/{chunk-EADNWBAZ.js → chunk-VP3BINY7.js} +13 -0
  136. package/{chunk-HKNXJGEC.js → chunk-VSPO4S33.js} +47 -192
  137. package/{chunk-PHXD6JTX.js → chunk-W2N3ZC4P.js} +7 -7
  138. package/{chunk-EOARMOVD.js → chunk-W4S6OTSC.js} +6 -3
  139. package/{chunk-6Z7MY3V7.js → chunk-WCQNEMXG.js} +3 -3
  140. package/chunk-WJZOQR2J.js +151 -0
  141. package/{chunk-BFDFRLLQ.js → chunk-WW2USJ3C.js} +3 -3
  142. package/chunk-X5BIY654.js +29 -0
  143. package/{chunk-Q554LLSI.js → chunk-XETG4RIX.js} +5 -5
  144. package/{chunk-3L2WKC3W.js → chunk-XPWGOTBQ.js} +8 -1
  145. package/{chunk-2OASQKU2.js → chunk-XRXYRHE5.js} +187 -16
  146. package/{chunk-JEDZAO7L.js → chunk-YBNHPX4S.js} +257 -37
  147. package/{chunk-JPGCXHNM.js → chunk-YLMMECCH.js} +1 -1
  148. package/{chunk-6D6VBVEW.js → chunk-YVTZMLXZ.js} +96 -25
  149. package/{chunk-G4VIHCGJ.js → chunk-ZR5RAAVI.js} +35 -30
  150. package/chunk-ZRAU6T47.js +56 -0
  151. package/{chunk-ONXOABJR.js → chunk-ZWQUWF6W.js} +36 -1
  152. package/{cliExecutor-HG3S345O.js → cliExecutor-AWYR3T33.js} +1 -1
  153. package/commandRegistry-3XWUYELA.js +839 -0
  154. package/contentThunks-ALRPUDRE.js +83 -0
  155. package/{cooldownCommands-REAWYVTY.js → cooldownCommands-JFKTYS2D.js} +2 -2
  156. package/{createAgentAutomationAction-7HX7KBES.js → createAgentAutomationAction-XXRXCDFJ.js} +51 -43
  157. package/createDialogAction-FVSAW7WZ.js +75 -0
  158. package/{createPageAction-QWNMGO3O.js → createPageAction-RT6DPYP5.js} +60 -51
  159. package/{chunk-UDIIVXKA.js → cursorProvider-YGGNMVWX.js} +2822 -10269
  160. package/{dbSlice-A6C6H32X.js → dbSlice-JQFBMJ55.js} +18 -12
  161. package/{deleteFile-YG6QMJLU.js → deleteFile-6JWDDRVP.js} +9 -5
  162. package/dialogCommands-K734RXEQ.js +108 -0
  163. package/{dialogSlice-P2K47T3P.js → dialogSlice-GFCT74GI.js} +66 -41
  164. package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
  165. package/{docCreateCommands-43JKQEIH.js → docCreateCommands-N3KPGP4A.js} +51 -54
  166. package/{docDeleteCommands-RL6D46XE.js → docDeleteCommands-4CR4TXZ7.js} +53 -55
  167. package/{docReadCommands-TOEUEQDG.js → docReadCommands-62XK57VS.js} +50 -53
  168. package/{docStore-3AHKTJRI.js → docStore-Z7KBPFXX.js} +24 -15
  169. package/{docUpdateCommands-FWU5G2XB.js → docUpdateCommands-DRAAWIDC.js} +51 -54
  170. package/{fetchMessages-EIU7UFFK.js → fetchMessages-LM6OMMQQ.js} +5 -4
  171. package/{getPricing-LUSEABA6.js → getPricing-XDF4OLTC.js} +6 -6
  172. package/handleSendMessageAction-NRKUSHK2.js +1849 -0
  173. package/index.js +91 -884
  174. package/{lib-FRRS27KN.js → lib-PU2G2MSO.js} +523 -191
  175. package/{localDialogRead-BTFJ4V2I.js → localDialogRead-BOETO2TD.js} +2 -2
  176. package/localRuntimeAdapter-S6UEEOSA.js +239 -0
  177. package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-YSE6NH7B.js} +12 -9
  178. package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-7FBKDEQY.js} +1 -1
  179. package/{machineCommands-TTKK4F7C.js → machineCommands-IQYHOOVH.js} +493 -152
  180. package/machineWsRunDispatch-3ZUMZUGP.js +164 -0
  181. package/{memberThunks-P2ECUJ56.js → memberThunks-Y3Q7GZTG.js} +24 -17
  182. package/{models-T3SG6MJ5.js → models-6V4ZCHEE.js} +2 -2
  183. package/node_modules/abstract-level/CHANGELOG.md +150 -0
  184. package/node_modules/abstract-level/LICENSE +21 -0
  185. package/node_modules/abstract-level/README.md +1957 -0
  186. package/node_modules/abstract-level/UPGRADING.md +669 -0
  187. package/node_modules/abstract-level/abstract-chained-batch.js +397 -0
  188. package/node_modules/abstract-level/abstract-iterator.js +404 -0
  189. package/node_modules/abstract-level/abstract-level.js +1127 -0
  190. package/node_modules/abstract-level/abstract-snapshot.js +84 -0
  191. package/node_modules/abstract-level/index.d.ts +52 -0
  192. package/node_modules/abstract-level/index.js +9 -0
  193. package/node_modules/abstract-level/lib/abstract-sublevel-iterator.js +141 -0
  194. package/node_modules/abstract-level/lib/abstract-sublevel.js +290 -0
  195. package/node_modules/abstract-level/lib/common.js +33 -0
  196. package/node_modules/abstract-level/lib/default-chained-batch.js +29 -0
  197. package/node_modules/abstract-level/lib/default-kv-iterator.js +74 -0
  198. package/node_modules/abstract-level/lib/deferred-iterator.js +110 -0
  199. package/node_modules/abstract-level/lib/deferred-queue.js +84 -0
  200. package/node_modules/abstract-level/lib/errors.js +21 -0
  201. package/node_modules/abstract-level/lib/event-monitor.js +30 -0
  202. package/node_modules/abstract-level/lib/hooks.js +78 -0
  203. package/node_modules/abstract-level/lib/prefixes.js +21 -0
  204. package/node_modules/abstract-level/lib/prewrite-batch.js +96 -0
  205. package/node_modules/abstract-level/lib/range-options.js +26 -0
  206. package/node_modules/abstract-level/package.json +66 -0
  207. package/node_modules/abstract-level/test/async-iterator-test.js +132 -0
  208. package/node_modules/abstract-level/test/batch-test.js +214 -0
  209. package/node_modules/abstract-level/test/chained-batch-test.js +315 -0
  210. package/node_modules/abstract-level/test/clear-range-test.js +262 -0
  211. package/node_modules/abstract-level/test/clear-test.js +110 -0
  212. package/node_modules/abstract-level/test/common.js +90 -0
  213. package/node_modules/abstract-level/test/deferred-open-test.js +209 -0
  214. package/node_modules/abstract-level/test/del-test.js +65 -0
  215. package/node_modules/abstract-level/test/encoding-buffer-test.js +336 -0
  216. package/node_modules/abstract-level/test/encoding-custom-test.js +92 -0
  217. package/node_modules/abstract-level/test/encoding-decode-error-test.js +85 -0
  218. package/node_modules/abstract-level/test/encoding-json-test.js +75 -0
  219. package/node_modules/abstract-level/test/encoding-test.js +130 -0
  220. package/node_modules/abstract-level/test/events/write.js +132 -0
  221. package/node_modules/abstract-level/test/factory-test.js +36 -0
  222. package/node_modules/abstract-level/test/get-many-test.js +157 -0
  223. package/node_modules/abstract-level/test/get-sync-test.js +61 -0
  224. package/node_modules/abstract-level/test/get-test.js +83 -0
  225. package/node_modules/abstract-level/test/has-many-test.js +144 -0
  226. package/node_modules/abstract-level/test/has-test.js +81 -0
  227. package/node_modules/abstract-level/test/hooks/newsub.js +57 -0
  228. package/node_modules/abstract-level/test/hooks/postopen.js +229 -0
  229. package/node_modules/abstract-level/test/hooks/prewrite.js +816 -0
  230. package/node_modules/abstract-level/test/hooks/shared.js +38 -0
  231. package/node_modules/abstract-level/test/index.js +86 -0
  232. package/node_modules/abstract-level/test/iterator-explicit-snapshot-test.js +393 -0
  233. package/node_modules/abstract-level/test/iterator-no-snapshot-test.js +49 -0
  234. package/node_modules/abstract-level/test/iterator-range-test.js +277 -0
  235. package/node_modules/abstract-level/test/iterator-seek-test.js +335 -0
  236. package/node_modules/abstract-level/test/iterator-snapshot-test.js +56 -0
  237. package/node_modules/abstract-level/test/iterator-test.js +621 -0
  238. package/node_modules/abstract-level/test/manifest-test.js +21 -0
  239. package/node_modules/abstract-level/test/open-create-if-missing-test.js +39 -0
  240. package/node_modules/abstract-level/test/open-error-if-exists-test.js +25 -0
  241. package/node_modules/abstract-level/test/open-test.js +263 -0
  242. package/node_modules/abstract-level/test/put-get-del-test.js +97 -0
  243. package/node_modules/abstract-level/test/put-test.js +70 -0
  244. package/node_modules/abstract-level/test/self/abstract-iterator-test.js +182 -0
  245. package/node_modules/abstract-level/test/self/async-iterator-test.js +242 -0
  246. package/node_modules/abstract-level/test/self/attach-resource-test.js +74 -0
  247. package/node_modules/abstract-level/test/self/defer-test.js +140 -0
  248. package/node_modules/abstract-level/test/self/deferred-iterator-test.js +314 -0
  249. package/node_modules/abstract-level/test/self/deferred-operations-test.js +86 -0
  250. package/node_modules/abstract-level/test/self/deferred-queue-test.js +93 -0
  251. package/node_modules/abstract-level/test/self/encoding-test.js +391 -0
  252. package/node_modules/abstract-level/test/self/errors-test.js +11 -0
  253. package/node_modules/abstract-level/test/self/iterator-test.js +1050 -0
  254. package/node_modules/abstract-level/test/self/sublevel-test.js +1039 -0
  255. package/node_modules/abstract-level/test/self.js +905 -0
  256. package/node_modules/abstract-level/test/sublevel-test.js +209 -0
  257. package/node_modules/abstract-level/test/traits/closed.js +42 -0
  258. package/node_modules/abstract-level/test/traits/index.js +4 -0
  259. package/node_modules/abstract-level/test/traits/open.js +62 -0
  260. package/node_modules/abstract-level/test/util.js +275 -0
  261. package/node_modules/abstract-level/types/abstract-chained-batch.d.ts +124 -0
  262. package/node_modules/abstract-level/types/abstract-iterator.d.ts +241 -0
  263. package/node_modules/abstract-level/types/abstract-level.d.ts +636 -0
  264. package/node_modules/abstract-level/types/abstract-snapshot.d.ts +30 -0
  265. package/node_modules/abstract-level/types/abstract-sublevel.d.ts +76 -0
  266. package/node_modules/abstract-level/types/interfaces.d.ts +43 -0
  267. package/node_modules/base64-js/LICENSE +21 -0
  268. package/node_modules/base64-js/README.md +34 -0
  269. package/node_modules/base64-js/base64js.min.js +1 -0
  270. package/node_modules/base64-js/index.d.ts +3 -0
  271. package/node_modules/base64-js/index.js +150 -0
  272. package/node_modules/base64-js/package.json +47 -0
  273. package/node_modules/browser-level/CHANGELOG.md +44 -0
  274. package/node_modules/browser-level/LICENSE +21 -0
  275. package/node_modules/browser-level/README.md +124 -0
  276. package/node_modules/browser-level/UPGRADING.md +143 -0
  277. package/node_modules/browser-level/index.d.ts +108 -0
  278. package/node_modules/browser-level/index.js +323 -0
  279. package/node_modules/browser-level/iterator.js +239 -0
  280. package/node_modules/browser-level/package.json +48 -0
  281. package/node_modules/browser-level/util/clear.js +38 -0
  282. package/node_modules/browser-level/util/deserialize.js +17 -0
  283. package/node_modules/browser-level/util/key-range.js +20 -0
  284. package/node_modules/buffer/AUTHORS.md +73 -0
  285. package/node_modules/buffer/LICENSE +21 -0
  286. package/node_modules/buffer/README.md +410 -0
  287. package/node_modules/buffer/index.d.ts +194 -0
  288. package/node_modules/buffer/index.js +2106 -0
  289. package/node_modules/buffer/package.json +93 -0
  290. package/node_modules/classic-level/CHANGELOG.md +115 -0
  291. package/node_modules/classic-level/LICENSE +21 -0
  292. package/node_modules/classic-level/README.md +274 -0
  293. package/node_modules/classic-level/UPGRADING.md +131 -0
  294. package/node_modules/classic-level/binding.cc +2652 -0
  295. package/node_modules/classic-level/binding.gyp +71 -0
  296. package/node_modules/classic-level/binding.js +1 -0
  297. package/node_modules/classic-level/chained-batch.js +35 -0
  298. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/LICENSE +27 -0
  299. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/Makefile +424 -0
  300. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/build_detect_platform +256 -0
  301. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/autocompact_test.cc +118 -0
  302. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/builder.cc +88 -0
  303. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/builder.h +34 -0
  304. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/c.cc +595 -0
  305. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/c_test.c +390 -0
  306. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/corruption_test.cc +374 -0
  307. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_bench.cc +1020 -0
  308. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_impl.cc +1568 -0
  309. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_impl.h +212 -0
  310. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_iter.cc +317 -0
  311. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_iter.h +28 -0
  312. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_test.cc +2158 -0
  313. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat.cc +140 -0
  314. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat.h +230 -0
  315. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat_test.cc +112 -0
  316. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dumpfile.cc +225 -0
  317. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/fault_injection_test.cc +554 -0
  318. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename.cc +144 -0
  319. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename.h +85 -0
  320. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename_test.cc +123 -0
  321. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/leveldbutil.cc +64 -0
  322. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_format.h +35 -0
  323. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_reader.cc +284 -0
  324. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_reader.h +113 -0
  325. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_test.cc +591 -0
  326. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_writer.cc +112 -0
  327. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_writer.h +54 -0
  328. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/memtable.cc +145 -0
  329. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/memtable.h +89 -0
  330. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/recovery_test.cc +324 -0
  331. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/repair.cc +461 -0
  332. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/skiplist.h +384 -0
  333. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/skiplist_test.cc +378 -0
  334. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/snapshot.h +67 -0
  335. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/table_cache.cc +127 -0
  336. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/table_cache.h +61 -0
  337. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit.cc +266 -0
  338. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit.h +107 -0
  339. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit_test.cc +46 -0
  340. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set.cc +1535 -0
  341. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set.h +399 -0
  342. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set_test.cc +179 -0
  343. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch.cc +147 -0
  344. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch_internal.h +50 -0
  345. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch_test.cc +120 -0
  346. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.cc +398 -0
  347. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.h +20 -0
  348. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv_test.cc +241 -0
  349. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/c.h +290 -0
  350. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/cache.h +110 -0
  351. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/comparator.h +63 -0
  352. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/db.h +164 -0
  353. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/dumpfile.h +25 -0
  354. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/env.h +351 -0
  355. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/filter_policy.h +70 -0
  356. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/iterator.h +100 -0
  357. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/options.h +213 -0
  358. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/slice.h +109 -0
  359. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/status.h +112 -0
  360. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/table.h +85 -0
  361. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/table_builder.h +92 -0
  362. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/value_sink.h +26 -0
  363. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/write_batch.h +64 -0
  364. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/issues/issue178_test.cc +92 -0
  365. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/issues/issue200_test.cc +59 -0
  366. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/atomic_pointer.h +242 -0
  367. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port.h +21 -0
  368. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_example.h +141 -0
  369. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix.cc +53 -0
  370. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix.h +156 -0
  371. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix_sse.cc +129 -0
  372. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/thread_annotations.h +60 -0
  373. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/win/stdint.h +24 -0
  374. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block.cc +268 -0
  375. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block.h +44 -0
  376. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block_builder.cc +109 -0
  377. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block_builder.h +57 -0
  378. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block.cc +111 -0
  379. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block.h +68 -0
  380. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block_test.cc +128 -0
  381. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/format.cc +144 -0
  382. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/format.h +108 -0
  383. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/iterator.cc +67 -0
  384. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/iterator_wrapper.h +66 -0
  385. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/merger.cc +197 -0
  386. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/merger.h +26 -0
  387. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table.cc +285 -0
  388. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table_builder.cc +270 -0
  389. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table_test.cc +876 -0
  390. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/two_level_iterator.cc +182 -0
  391. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/two_level_iterator.h +34 -0
  392. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena.cc +68 -0
  393. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena.h +68 -0
  394. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena_test.cc +68 -0
  395. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/bloom.cc +95 -0
  396. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/bloom_test.cc +162 -0
  397. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/cache.cc +405 -0
  398. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/cache_test.cc +226 -0
  399. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding.cc +194 -0
  400. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding.h +104 -0
  401. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding_test.cc +196 -0
  402. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/comparator.cc +81 -0
  403. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c.cc +350 -0
  404. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c.h +45 -0
  405. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c_test.cc +72 -0
  406. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env.cc +100 -0
  407. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix.cc +695 -0
  408. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix_test.cc +66 -0
  409. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix_test_helper.h +28 -0
  410. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_test.cc +106 -0
  411. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/filter_policy.cc +11 -0
  412. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash.cc +52 -0
  413. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash.h +19 -0
  414. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash_test.cc +54 -0
  415. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/histogram.cc +139 -0
  416. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/histogram.h +42 -0
  417. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/logging.cc +72 -0
  418. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/logging.h +43 -0
  419. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/mutexlock.h +41 -0
  420. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/options.cc +30 -0
  421. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/posix_logger.h +98 -0
  422. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/random.h +64 -0
  423. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/status.cc +75 -0
  424. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testharness.cc +77 -0
  425. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testharness.h +138 -0
  426. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testutil.cc +51 -0
  427. package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testutil.h +63 -0
  428. package/node_modules/classic-level/deps/leveldb/leveldb.gyp +282 -0
  429. package/node_modules/classic-level/deps/leveldb/patches/001-value-sink.patch +164 -0
  430. package/node_modules/classic-level/deps/leveldb/port-libuv/atomic_pointer_win.h +48 -0
  431. package/node_modules/classic-level/deps/leveldb/port-libuv/env_win.cc +692 -0
  432. package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.cc +36 -0
  433. package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.h +157 -0
  434. package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.h.bak +153 -0
  435. package/node_modules/classic-level/deps/leveldb/port-libuv/stdint-msvc2008.h +247 -0
  436. package/node_modules/classic-level/deps/leveldb/port-libuv/uv_condvar.h +45 -0
  437. package/node_modules/classic-level/deps/leveldb/port-libuv/uv_condvar_posix.cc +139 -0
  438. package/node_modules/classic-level/deps/leveldb/port-libuv/win_logger.cc +79 -0
  439. package/node_modules/classic-level/deps/leveldb/port-libuv/win_logger.h +28 -0
  440. package/node_modules/classic-level/deps/snappy/freebsd/config.h +135 -0
  441. package/node_modules/classic-level/deps/snappy/freebsd/snappy-stubs-public.h +100 -0
  442. package/node_modules/classic-level/deps/snappy/linux/config.h +135 -0
  443. package/node_modules/classic-level/deps/snappy/linux/snappy-stubs-public.h +100 -0
  444. package/node_modules/classic-level/deps/snappy/mac/config.h +137 -0
  445. package/node_modules/classic-level/deps/snappy/mac/snappy-stubs-public.h +100 -0
  446. package/node_modules/classic-level/deps/snappy/openbsd/config.h +135 -0
  447. package/node_modules/classic-level/deps/snappy/openbsd/snappy-stubs-public.h +100 -0
  448. package/node_modules/classic-level/deps/snappy/snappy/COPYING +54 -0
  449. package/node_modules/classic-level/deps/snappy/snappy/cmake/SnappyConfig.cmake +1 -0
  450. package/node_modules/classic-level/deps/snappy/snappy/cmake/config.h.in +62 -0
  451. package/node_modules/classic-level/deps/snappy/snappy/snappy-c.cc +90 -0
  452. package/node_modules/classic-level/deps/snappy/snappy/snappy-c.h +138 -0
  453. package/node_modules/classic-level/deps/snappy/snappy/snappy-internal.h +224 -0
  454. package/node_modules/classic-level/deps/snappy/snappy/snappy-sinksource.cc +104 -0
  455. package/node_modules/classic-level/deps/snappy/snappy/snappy-sinksource.h +182 -0
  456. package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-internal.cc +42 -0
  457. package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-internal.h +561 -0
  458. package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-public.h.in +94 -0
  459. package/node_modules/classic-level/deps/snappy/snappy/snappy-test.cc +612 -0
  460. package/node_modules/classic-level/deps/snappy/snappy/snappy-test.h +573 -0
  461. package/node_modules/classic-level/deps/snappy/snappy/snappy.cc +1515 -0
  462. package/node_modules/classic-level/deps/snappy/snappy/snappy.h +203 -0
  463. package/node_modules/classic-level/deps/snappy/snappy/snappy_unittest.cc +1410 -0
  464. package/node_modules/classic-level/deps/snappy/snappy.gyp +119 -0
  465. package/node_modules/classic-level/deps/snappy/solaris/config.h +135 -0
  466. package/node_modules/classic-level/deps/snappy/solaris/snappy-stubs-public.h +100 -0
  467. package/node_modules/classic-level/deps/snappy/win32/config.h +29 -0
  468. package/node_modules/classic-level/deps/snappy/win32/snappy-stubs-public.h +100 -0
  469. package/node_modules/classic-level/index.d.ts +343 -0
  470. package/node_modules/classic-level/index.js +311 -0
  471. package/node_modules/classic-level/iterator.js +122 -0
  472. package/node_modules/classic-level/package.json +70 -0
  473. package/node_modules/classic-level/prebuilds/android-arm/classic-level.armv7.node +0 -0
  474. package/node_modules/classic-level/prebuilds/android-arm64/classic-level.armv8.node +0 -0
  475. package/node_modules/classic-level/prebuilds/darwin-x64+arm64/classic-level.node +0 -0
  476. package/node_modules/classic-level/prebuilds/linux-arm/classic-level.armv6.node +0 -0
  477. package/node_modules/classic-level/prebuilds/linux-arm/classic-level.armv7.node +0 -0
  478. package/node_modules/classic-level/prebuilds/linux-arm64/classic-level.armv8.node +0 -0
  479. package/node_modules/classic-level/prebuilds/linux-x64/classic-level.musl.node +0 -0
  480. package/node_modules/classic-level/prebuilds/linux-x64/classic-level.node +0 -0
  481. package/node_modules/classic-level/prebuilds/win32-ia32/classic-level.node +0 -0
  482. package/node_modules/classic-level/prebuilds/win32-x64/classic-level.node +0 -0
  483. package/node_modules/ieee754/LICENSE +11 -0
  484. package/node_modules/ieee754/README.md +51 -0
  485. package/node_modules/ieee754/index.d.ts +10 -0
  486. package/node_modules/ieee754/index.js +85 -0
  487. package/node_modules/ieee754/package.json +52 -0
  488. package/node_modules/is-buffer/LICENSE +21 -0
  489. package/node_modules/is-buffer/README.md +54 -0
  490. package/node_modules/is-buffer/index.d.ts +2 -0
  491. package/node_modules/is-buffer/index.js +11 -0
  492. package/node_modules/is-buffer/package.json +65 -0
  493. package/node_modules/level/CHANGELOG.md +532 -0
  494. package/node_modules/level/LICENSE +21 -0
  495. package/node_modules/level/README.md +107 -0
  496. package/node_modules/level/UPGRADING.md +413 -0
  497. package/node_modules/level/browser.js +1 -0
  498. package/node_modules/level/index.d.ts +75 -0
  499. package/node_modules/level/index.js +1 -0
  500. package/node_modules/level/package.json +62 -0
  501. package/node_modules/level-supports/CHANGELOG.md +140 -0
  502. package/node_modules/level-supports/LICENSE +21 -0
  503. package/node_modules/level-supports/README.md +276 -0
  504. package/node_modules/level-supports/index.d.ts +137 -0
  505. package/node_modules/level-supports/index.js +26 -0
  506. package/node_modules/level-supports/package.json +46 -0
  507. package/node_modules/level-supports/test/cloneable.js +26 -0
  508. package/node_modules/level-supports/test/index.js +24 -0
  509. package/node_modules/level-supports/test/self.js +86 -0
  510. package/node_modules/level-supports/test/shape.js +23 -0
  511. package/node_modules/level-transcoder/CHANGELOG.md +15 -0
  512. package/node_modules/level-transcoder/LICENSE +21 -0
  513. package/node_modules/level-transcoder/README.md +214 -0
  514. package/node_modules/level-transcoder/UPGRADING.md +13 -0
  515. package/node_modules/level-transcoder/index.d.ts +27 -0
  516. package/node_modules/level-transcoder/index.js +158 -0
  517. package/node_modules/level-transcoder/lib/encoding.d.ts +158 -0
  518. package/node_modules/level-transcoder/lib/encoding.js +105 -0
  519. package/node_modules/level-transcoder/lib/encodings.d.ts +9 -0
  520. package/node_modules/level-transcoder/lib/encodings.js +135 -0
  521. package/node_modules/level-transcoder/lib/formats.d.ts +13 -0
  522. package/node_modules/level-transcoder/lib/formats.js +111 -0
  523. package/node_modules/level-transcoder/lib/text-endec.d.ts +6 -0
  524. package/node_modules/level-transcoder/lib/text-endec.js +19 -0
  525. package/node_modules/level-transcoder/package.json +46 -0
  526. package/node_modules/maybe-combine-errors/LICENSE.md +21 -0
  527. package/node_modules/maybe-combine-errors/README.md +94 -0
  528. package/node_modules/maybe-combine-errors/index.js +60 -0
  529. package/node_modules/maybe-combine-errors/package.json +33 -0
  530. package/node_modules/module-error/CHANGELOG.md +23 -0
  531. package/node_modules/module-error/LICENSE +21 -0
  532. package/node_modules/module-error/README.md +89 -0
  533. package/node_modules/module-error/index.d.ts +18 -0
  534. package/node_modules/module-error/index.js +22 -0
  535. package/node_modules/module-error/package.json +36 -0
  536. package/node_modules/napi-macros/LICENSE +21 -0
  537. package/node_modules/napi-macros/README.md +277 -0
  538. package/node_modules/napi-macros/index.js +1 -0
  539. package/node_modules/napi-macros/napi-macros.h +255 -0
  540. package/node_modules/napi-macros/package.json +22 -0
  541. package/node_modules/node-gyp-build/LICENSE +21 -0
  542. package/node_modules/node-gyp-build/README.md +58 -0
  543. package/node_modules/node-gyp-build/SECURITY.md +5 -0
  544. package/node_modules/node-gyp-build/bin.js +84 -0
  545. package/node_modules/node-gyp-build/build-test.js +19 -0
  546. package/node_modules/node-gyp-build/index.js +6 -0
  547. package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
  548. package/node_modules/node-gyp-build/optional.js +7 -0
  549. package/node_modules/node-gyp-build/package.json +43 -0
  550. package/oauthTokenStore-PADKLNOC.js +23 -0
  551. package/package.json +6 -3
  552. package/processSpawn-SOAV3FEV.js +11 -0
  553. package/profileConfig-ZGOFORWV.js +43 -0
  554. package/{providerPresetApply-XI3WUPTI.js → providerPresetApply-HIPK67DU.js} +9 -9
  555. package/{providerRegistry-KEPWWGXD.js → providerRegistry-AI4U2FNM.js} +13 -9
  556. package/{read-COE3ZYR6.js → read-RNUQ7F34.js} +11 -7
  557. package/{readDocTool-5USN4A6V.js → readDocTool-6WIZHE6O.js} +5 -3
  558. package/{readlineWorkspace-KIMUDPPV.js → readlineWorkspace-BCDVMOR5.js} +6947 -3879
  559. package/{removeDialogAgentAction-J6X5QMTA.js → removeDialogAgentAction-EFQ4O2IQ.js} +27 -26
  560. package/{runAgentClientLoop-AN4WIRPQ.js → runAgentClientLoop-5RBD3DE6.js} +150 -90
  561. package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-5CIWJEZ3.js} +36 -8
  562. package/runtimeModeArgs-2Y7BALTO.js +31 -0
  563. package/setDialogExtraReferencesAction-MXAH2KPV.js +37 -0
  564. package/{setPrimaryDialogAgentAction-FN22THHT.js → setPrimaryDialogAgentAction-7OPVNK4M.js} +28 -27
  565. package/{chunk-GP5LKBUZ.js → settingThunks-GHVLHABJ.js} +240 -945
  566. package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-QC35EQY4.js} +3 -3
  567. package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
  568. package/{spaceCommands-NA4JMIGT.js → spaceCommands-WZCLRGBO.js} +56 -56
  569. package/{streamAgentChatTurn-3TYTHZPJ.js → streamAgentChatTurn-YJTEHUH7.js} +371 -1556
  570. package/{switchDialogAgentAction-LVTEV3FR.js → switchDialogAgentAction-4PANDG3L.js} +24 -20
  571. package/{tableCommands-O6NWHFKV.js → tableCommands-U3QDY4L6.js} +19 -17
  572. package/{toolApiClient-QVJ6HDNN.js → toolApiClient-54CXTU7C.js} +5 -4
  573. package/tools-ZT4GXXDQ.js +122 -0
  574. package/{tuiSummaryLlmCaller-UFGFOIIW.js → tuiSummaryLlmCaller-ISODIW2O.js} +14 -29
  575. package/{updateCommands-2M74UL7P.js → updateCommands-NQXAGFM7.js} +3 -3
  576. package/{updateDialogTitleAction-RDHNT265.js → updateDialogTitleAction-2PQTFUUV.js} +101 -57
  577. package/action-P4TNFGAD.js +0 -31
  578. package/agentListCommands-NXCOTTZL.js +0 -411
  579. package/agentRecordCommands-JP54ZWND.js +0 -129
  580. package/agentRunCommand-RMQWWSHF.js +0 -157
  581. package/browser-image-compression-MFDTD7K6.js +0 -1763
  582. package/chatQueueReduxAdapter-DKLWTT3G.js +0 -186
  583. package/chunk-ACTMNVHM.js +0 -93
  584. package/chunk-CQ3WA2NE.js +0 -299
  585. package/chunk-M76ECQRD.js +0 -13658
  586. package/chunk-MEYIRKDN.js +0 -8967
  587. package/chunk-N4G4PKQ6.js +0 -23
  588. package/chunk-P3GYTNDF.js +0 -34
  589. package/chunk-PUOC4YRO.js +0 -394
  590. package/chunk-S7Z2HMCN.js +0 -25
  591. package/chunk-Y5GCAMGP.js +0 -9
  592. package/chunk-YPREESF4.js +0 -225
  593. package/chunk-YWIEQS6H.js +0 -21409
  594. package/contentThunks-JHK6X2KU.js +0 -73
  595. package/createDialogAction-VUUUZL54.js +0 -65
  596. package/dialogCommands-EN7TYD3I.js +0 -100
  597. package/handleSendMessageAction-ID5IKXUE.js +0 -633
  598. package/machineWsRunDispatch-RX64L3ET.js +0 -145
  599. package/setDialogExtraReferencesAction-WX5VTY6O.js +0 -30
  600. package/settingSlice-P4ZW7K5X.js +0 -204
  601. package/syncMapping-N6RGXGBW.js +0 -437
  602. package/tools-34SEJSLQ.js +0 -110
  603. package/{chunk-SV5IJK6K.js → chunk-NBTY7YJF.js} +3 -3
  604. package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
  605. package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
  606. package/{offlineMarxistsAgentCommand-HGXZV4XJ.js → offlineMarxistsAgentCommand-2QTHJCHV.js} +4 -4
@@ -2308,7 +2308,7 @@ function regexCheck(regex) {
2308
2308
 
2309
2309
  // node_modules/micromark-factory-space/index.js
2310
2310
  function factorySpace(effects, ok3, type, max) {
2311
- const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
2311
+ const limit = max ? max - 1 : Infinity;
2312
2312
  let size = 0;
2313
2313
  return start;
2314
2314
  function start(code2) {
@@ -2327,6 +2327,29 @@ function factorySpace(effects, ok3, type, max) {
2327
2327
  return ok3(code2);
2328
2328
  }
2329
2329
  }
2330
+ function factorySpaceMinMax(effects, ok3, nok, type, min, max) {
2331
+ let size = 0;
2332
+ return start;
2333
+ function start(code2) {
2334
+ if (max > 0 && markdownSpace(code2)) {
2335
+ effects.enter(type);
2336
+ return prefix(code2);
2337
+ }
2338
+ return after(code2);
2339
+ }
2340
+ function prefix(code2) {
2341
+ if (markdownSpace(code2) && size < max) {
2342
+ effects.consume(code2);
2343
+ size++;
2344
+ return prefix;
2345
+ }
2346
+ effects.exit(type);
2347
+ return after(code2);
2348
+ }
2349
+ function after(code2) {
2350
+ return size >= min ? ok3(code2) : nok(code2);
2351
+ }
2352
+ }
2330
2353
 
2331
2354
  // node_modules/micromark/lib/initialize/content.js
2332
2355
  var content = {
@@ -2378,6 +2401,104 @@ function initializeContent(effects) {
2378
2401
  }
2379
2402
  }
2380
2403
 
2404
+ // node_modules/micromark-util-edit-map/index.js
2405
+ var EditMap = class {
2406
+ /**
2407
+ * Create a new edit map.
2408
+ *
2409
+ * @returns
2410
+ * New instance.
2411
+ */
2412
+ constructor() {
2413
+ this.index = /* @__PURE__ */ new Map();
2414
+ this.map = [];
2415
+ }
2416
+ /**
2417
+ * Create an edit: a remove and/or add at a certain place.
2418
+ *
2419
+ * @param {number} index
2420
+ * Index at which to apply the edit.
2421
+ * @param {number} remove
2422
+ * Count of items to remove at the index.
2423
+ * @param {Array<Event>} add
2424
+ * Items to add at the index.
2425
+ * @returns {undefined}
2426
+ * Nothing.
2427
+ */
2428
+ add(index2, remove, add) {
2429
+ addImplementation(this, index2, remove, add, false);
2430
+ }
2431
+ /**
2432
+ * Create an edit: but insert `add` before existing additions, instead of
2433
+ * after them.
2434
+ *
2435
+ * @param {number} index
2436
+ * Index at which to apply the edit.
2437
+ * @param {number} remove
2438
+ * Count of items to remove at the index.
2439
+ * @param {Array<Event>} add
2440
+ * Items to add at the index.
2441
+ * @returns {undefined}
2442
+ * Nothing.
2443
+ */
2444
+ addBefore(index2, remove, add) {
2445
+ addImplementation(this, index2, remove, add, true);
2446
+ }
2447
+ /**
2448
+ * Done, change the events.
2449
+ *
2450
+ * @param {Array<Event>} events
2451
+ * List of events to apply the edits to.
2452
+ * @returns {undefined}
2453
+ * Nothing.
2454
+ */
2455
+ consume(events) {
2456
+ this.map.sort(function(a, b) {
2457
+ return a[0] - b[0];
2458
+ });
2459
+ if (this.map.length === 0) {
2460
+ return;
2461
+ }
2462
+ let index2 = this.map.length;
2463
+ const vecs = [];
2464
+ while (index2 > 0) {
2465
+ index2 -= 1;
2466
+ vecs.push(events.slice(this.map[index2][0] + this.map[index2][1]), this.map[index2][2]);
2467
+ events.length = this.map[index2][0];
2468
+ }
2469
+ vecs.push(events.slice());
2470
+ events.length = 0;
2471
+ let slice = vecs.pop();
2472
+ while (slice) {
2473
+ for (const element of slice) {
2474
+ events.push(element);
2475
+ }
2476
+ slice = vecs.pop();
2477
+ }
2478
+ this.map.length = 0;
2479
+ this.index.clear();
2480
+ }
2481
+ };
2482
+ function addImplementation(editMap, at, remove, add, before) {
2483
+ if (remove === 0 && add.length === 0) {
2484
+ return;
2485
+ }
2486
+ const existing = editMap.index.get(at);
2487
+ if (existing) {
2488
+ existing[1] += remove;
2489
+ if (before) {
2490
+ add.push(...existing[2]);
2491
+ existing[2] = add;
2492
+ } else {
2493
+ existing[2].push(...add);
2494
+ }
2495
+ return;
2496
+ }
2497
+ const change = [at, remove, add];
2498
+ editMap.map.push(change);
2499
+ editMap.index.set(at, change);
2500
+ }
2501
+
2381
2502
  // node_modules/micromark/lib/initialize/document.js
2382
2503
  var document = {
2383
2504
  tokenize: initializeDocument
@@ -2425,8 +2546,10 @@ function initializeDocument(effects) {
2425
2546
  };
2426
2547
  index2++;
2427
2548
  }
2428
- splice(self.events, indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));
2429
- self.events.length = index2;
2549
+ const editMap = new EditMap();
2550
+ editMap.add(indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));
2551
+ editMap.add(indexBeforeExits, index2 - indexBeforeExits, []);
2552
+ editMap.consume(self.events);
2430
2553
  return checkNewContainers(code2);
2431
2554
  }
2432
2555
  return start(code2);
@@ -2445,7 +2568,9 @@ function initializeDocument(effects) {
2445
2568
  return effects.check(containerConstruct, thereIsANewContainer, thereIsNoNewContainer)(code2);
2446
2569
  }
2447
2570
  function thereIsANewContainer(code2) {
2448
- if (childFlow) closeFlow();
2571
+ if (childFlow) {
2572
+ closeFlow();
2573
+ }
2449
2574
  exitContainers(continued);
2450
2575
  return documentContinued(code2);
2451
2576
  }
@@ -2465,7 +2590,9 @@ function initializeDocument(effects) {
2465
2590
  }
2466
2591
  function flowStart(code2) {
2467
2592
  if (code2 === null) {
2468
- if (childFlow) closeFlow();
2593
+ if (childFlow) {
2594
+ closeFlow();
2595
+ }
2469
2596
  exitContainers(0);
2470
2597
  effects.consume(code2);
2471
2598
  return;
@@ -2497,9 +2624,13 @@ function initializeDocument(effects) {
2497
2624
  }
2498
2625
  function writeToChild(token, endOfFile) {
2499
2626
  const stream = self.sliceStream(token);
2500
- if (endOfFile) stream.push(null);
2627
+ if (endOfFile) {
2628
+ stream.push(null);
2629
+ }
2501
2630
  token.previous = childToken;
2502
- if (childToken) childToken.next = token;
2631
+ if (childToken) {
2632
+ childToken.next = token;
2633
+ }
2503
2634
  childToken = token;
2504
2635
  childFlow.defineSkip(token.start);
2505
2636
  childFlow.write(stream);
@@ -2536,8 +2667,10 @@ function initializeDocument(effects) {
2536
2667
  };
2537
2668
  index2++;
2538
2669
  }
2539
- splice(self.events, indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));
2540
- self.events.length = index2;
2670
+ const editMap = new EditMap();
2671
+ editMap.add(indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));
2672
+ editMap.add(indexBeforeExits, index2 - indexBeforeExits, []);
2673
+ editMap.consume(self.events);
2541
2674
  }
2542
2675
  }
2543
2676
  function exitContainers(size) {
@@ -2592,24 +2725,17 @@ var attention = {
2592
2725
  };
2593
2726
  function resolveAllAttention(events, context) {
2594
2727
  let index2 = -1;
2595
- let open;
2596
- let group;
2597
- let text4;
2598
- let openingSequence;
2599
- let closingSequence;
2600
- let use;
2601
2728
  let nextEvents;
2602
- let offset;
2603
2729
  while (++index2 < events.length) {
2604
2730
  if (events[index2][0] === "enter" && events[index2][1].type === "attentionSequence" && events[index2][1]._close) {
2605
- open = index2;
2731
+ let open = index2;
2606
2732
  while (open--) {
2607
2733
  if (events[open][0] === "exit" && events[open][1].type === "attentionSequence" && events[open][1]._open && // If the markers are the same:
2608
2734
  context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[index2][1]).charCodeAt(0)) {
2609
2735
  if ((events[open][1]._close || events[index2][1]._open) && (events[index2][1].end.offset - events[index2][1].start.offset) % 3 && !((events[open][1].end.offset - events[open][1].start.offset + events[index2][1].end.offset - events[index2][1].start.offset) % 3)) {
2610
2736
  continue;
2611
2737
  }
2612
- use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index2][1].end.offset - events[index2][1].start.offset > 1 ? 2 : 1;
2738
+ const use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index2][1].end.offset - events[index2][1].start.offset > 1 ? 2 : 1;
2613
2739
  const start = {
2614
2740
  ...events[open][1].end
2615
2741
  };
@@ -2618,21 +2744,21 @@ function resolveAllAttention(events, context) {
2618
2744
  };
2619
2745
  movePoint(start, -use);
2620
2746
  movePoint(end, use);
2621
- openingSequence = {
2747
+ const openingSequence = {
2622
2748
  type: use > 1 ? "strongSequence" : "emphasisSequence",
2623
2749
  start,
2624
2750
  end: {
2625
2751
  ...events[open][1].end
2626
2752
  }
2627
2753
  };
2628
- closingSequence = {
2754
+ const closingSequence = {
2629
2755
  type: use > 1 ? "strongSequence" : "emphasisSequence",
2630
2756
  start: {
2631
2757
  ...events[index2][1].start
2632
2758
  },
2633
2759
  end
2634
2760
  };
2635
- text4 = {
2761
+ const text4 = {
2636
2762
  type: use > 1 ? "strongText" : "emphasisText",
2637
2763
  start: {
2638
2764
  ...events[open][1].end
@@ -2641,7 +2767,7 @@ function resolveAllAttention(events, context) {
2641
2767
  ...events[index2][1].start
2642
2768
  }
2643
2769
  };
2644
- group = {
2770
+ const group = {
2645
2771
  type: use > 1 ? "strong" : "emphasis",
2646
2772
  start: {
2647
2773
  ...openingSequence.start
@@ -2663,11 +2789,10 @@ function resolveAllAttention(events, context) {
2663
2789
  nextEvents = push(nextEvents, [["enter", group, context], ["enter", openingSequence, context], ["exit", openingSequence, context], ["enter", text4, context]]);
2664
2790
  nextEvents = push(nextEvents, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + 1, index2), context));
2665
2791
  nextEvents = push(nextEvents, [["exit", text4, context], ["enter", closingSequence, context], ["exit", closingSequence, context], ["exit", group, context]]);
2792
+ let offset = 0;
2666
2793
  if (events[index2][1].end.offset - events[index2][1].start.offset) {
2667
2794
  offset = 2;
2668
2795
  nextEvents = push(nextEvents, [["enter", events[index2][1], context], ["exit", events[index2][1], context]]);
2669
- } else {
2670
- offset = 0;
2671
2796
  }
2672
2797
  splice(events, open - 1, index2 - open + 3, nextEvents);
2673
2798
  index2 = open + nextEvents.length - offset - 2;
@@ -2702,8 +2827,8 @@ function tokenizeAttention(effects, ok3) {
2702
2827
  }
2703
2828
  const token = effects.exit("attentionSequence");
2704
2829
  const after = classifyCharacter(code2);
2705
- const open = !after || after === 2 && before || attentionMarkers2.includes(code2);
2706
- const close = !before || before === 2 && after || attentionMarkers2.includes(previous3);
2830
+ const open = !after || after === 2 && before || attentionMarkers2.includes(code2) && code2 !== 42 && code2 !== 95;
2831
+ const close = !before || before === 2 && after || attentionMarkers2.includes(previous3) && previous3 !== 42 && previous3 !== 95;
2707
2832
  token._open = Boolean(marker === 42 ? open : open && (before || !close));
2708
2833
  token._close = Boolean(marker === 42 ? close : close && (after || !open));
2709
2834
  return ok3(code2);
@@ -2980,11 +3105,29 @@ function tokenizeCharacterReference(effects, ok3, nok) {
2980
3105
  }
2981
3106
  }
2982
3107
 
2983
- // node_modules/micromark-core-commonmark/lib/code-fenced.js
3108
+ // node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js
2984
3109
  var nonLazyContinuation = {
2985
3110
  partial: true,
2986
3111
  tokenize: tokenizeNonLazyContinuation
2987
3112
  };
3113
+ function tokenizeNonLazyContinuation(effects, ok3, nok) {
3114
+ const self = this;
3115
+ return start;
3116
+ function start(code2) {
3117
+ if (code2 === null) {
3118
+ return nok(code2);
3119
+ }
3120
+ effects.enter("lineEnding");
3121
+ effects.consume(code2);
3122
+ effects.exit("lineEnding");
3123
+ return after;
3124
+ }
3125
+ function after(code2) {
3126
+ return self.parser.lazy[self.now().line] ? nok(code2) : ok3(code2);
3127
+ }
3128
+ }
3129
+
3130
+ // node_modules/micromark-core-commonmark/lib/code-fenced.js
2988
3131
  var codeFenced = {
2989
3132
  concrete: true,
2990
3133
  name: "codeFenced",
@@ -3146,22 +3289,6 @@ function tokenizeCodeFenced(effects, ok3, nok) {
3146
3289
  }
3147
3290
  }
3148
3291
  }
3149
- function tokenizeNonLazyContinuation(effects, ok3, nok) {
3150
- const self = this;
3151
- return start;
3152
- function start(code2) {
3153
- if (code2 === null) {
3154
- return nok(code2);
3155
- }
3156
- effects.enter("lineEnding");
3157
- effects.consume(code2);
3158
- effects.exit("lineEnding");
3159
- return lineStart;
3160
- }
3161
- function lineStart(code2) {
3162
- return self.parser.lazy[self.now().line] ? nok(code2) : ok3(code2);
3163
- }
3164
- }
3165
3292
 
3166
3293
  // node_modules/micromark-core-commonmark/lib/code-indented.js
3167
3294
  var codeIndented = {
@@ -3173,15 +3300,10 @@ var furtherStart = {
3173
3300
  tokenize: tokenizeFurtherStart
3174
3301
  };
3175
3302
  function tokenizeCodeIndented(effects, ok3, nok) {
3176
- const self = this;
3177
3303
  return start;
3178
3304
  function start(code2) {
3179
3305
  effects.enter("codeIndented");
3180
- return factorySpace(effects, afterPrefix, "linePrefix", 4 + 1)(code2);
3181
- }
3182
- function afterPrefix(code2) {
3183
- const tail = self.events[self.events.length - 1];
3184
- return tail && tail[1].type === "linePrefix" && tail[2].sliceSerialize(tail[1], true).length >= 4 ? atBreak(code2) : nok(code2);
3306
+ return factorySpaceMinMax(effects, atBreak, nok, "linePrefix", 4, 4)(code2);
3185
3307
  }
3186
3308
  function atBreak(code2) {
3187
3309
  if (code2 === null) {
@@ -3219,11 +3341,10 @@ function tokenizeFurtherStart(effects, ok3, nok) {
3219
3341
  effects.exit("lineEnding");
3220
3342
  return furtherStart2;
3221
3343
  }
3222
- return factorySpace(effects, afterPrefix, "linePrefix", 4 + 1)(code2);
3344
+ return factorySpaceMinMax(effects, ok3, onNotEnoughPrefix, "linePrefix", 4, 4)(code2);
3223
3345
  }
3224
- function afterPrefix(code2) {
3225
- const tail = self.events[self.events.length - 1];
3226
- return tail && tail[1].type === "linePrefix" && tail[2].sliceSerialize(tail[1], true).length >= 4 ? ok3(code2) : markdownLineEnding(code2) ? furtherStart2(code2) : nok(code2);
3346
+ function onNotEnoughPrefix(code2) {
3347
+ return markdownLineEnding(code2) ? furtherStart2(code2) : nok(code2);
3227
3348
  }
3228
3349
  }
3229
3350
 
@@ -4109,8 +4230,6 @@ var headingAtx = {
4109
4230
  function resolveHeadingAtx(events, context) {
4110
4231
  let contentEnd = events.length - 2;
4111
4232
  let contentStart = 3;
4112
- let content3;
4113
- let text4;
4114
4233
  if (events[contentStart][1].type === "whitespace") {
4115
4234
  contentStart += 2;
4116
4235
  }
@@ -4121,12 +4240,12 @@ function resolveHeadingAtx(events, context) {
4121
4240
  contentEnd -= contentStart + 1 === contentEnd ? 2 : 4;
4122
4241
  }
4123
4242
  if (contentEnd > contentStart) {
4124
- content3 = {
4243
+ const content3 = {
4125
4244
  type: "atxHeadingText",
4126
4245
  start: events[contentStart][1].start,
4127
4246
  end: events[contentEnd][1].end
4128
4247
  };
4129
- text4 = {
4248
+ const text4 = {
4130
4249
  type: "chunkText",
4131
4250
  start: events[contentStart][1].start,
4132
4251
  end: events[contentEnd][1].end,
@@ -4269,10 +4388,6 @@ var blankLineBefore = {
4269
4388
  partial: true,
4270
4389
  tokenize: tokenizeBlankLineBefore
4271
4390
  };
4272
- var nonLazyContinuationStart = {
4273
- partial: true,
4274
- tokenize: tokenizeNonLazyContinuationStart
4275
- };
4276
4391
  function resolveToHtmlFlow(events) {
4277
4392
  let index2 = events.length;
4278
4393
  while (index2--) {
@@ -4534,7 +4649,7 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
4534
4649
  return continuation;
4535
4650
  }
4536
4651
  function continuationStart(code2) {
4537
- return effects.check(nonLazyContinuationStart, continuationStartNonLazy, continuationAfter)(code2);
4652
+ return effects.check(nonLazyContinuation, continuationStartNonLazy, continuationAfter)(code2);
4538
4653
  }
4539
4654
  function continuationStartNonLazy(code2) {
4540
4655
  effects.enter("lineEnding");
@@ -4611,22 +4726,6 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
4611
4726
  return ok3(code2);
4612
4727
  }
4613
4728
  }
4614
- function tokenizeNonLazyContinuationStart(effects, ok3, nok) {
4615
- const self = this;
4616
- return start;
4617
- function start(code2) {
4618
- if (markdownLineEnding(code2)) {
4619
- effects.enter("lineEnding");
4620
- effects.consume(code2);
4621
- effects.exit("lineEnding");
4622
- return after;
4623
- }
4624
- return nok(code2);
4625
- }
4626
- function after(code2) {
4627
- return self.parser.lazy[self.now().line] ? nok(code2) : ok3(code2);
4628
- }
4629
- }
4630
4729
  function tokenizeBlankLineBefore(effects, ok3, nok) {
4631
4730
  return start;
4632
4731
  function start(code2) {
@@ -4979,12 +5078,11 @@ function resolveAllLabelEnd(events) {
4979
5078
  function resolveToLabelEnd(events, context) {
4980
5079
  let index2 = events.length;
4981
5080
  let offset = 0;
4982
- let token;
4983
5081
  let open;
4984
5082
  let close;
4985
5083
  let media;
4986
5084
  while (index2--) {
4987
- token = events[index2][1];
5085
+ const token = events[index2][1];
4988
5086
  if (open) {
4989
5087
  if (token.type === "link" || token.type === "labelLink" && token._inactive) {
4990
5088
  break;
@@ -5043,14 +5141,14 @@ function resolveToLabelEnd(events, context) {
5043
5141
  }
5044
5142
  function tokenizeLabelEnd(effects, ok3, nok) {
5045
5143
  const self = this;
5046
- let index2 = self.events.length;
5144
+ const labelStarts = self._labelStarts;
5047
5145
  let labelStart;
5048
5146
  let defined;
5049
- while (index2--) {
5050
- if ((self.events[index2][1].type === "labelImage" || self.events[index2][1].type === "labelLink") && !self.events[index2][1]._balanced) {
5051
- labelStart = self.events[index2][1];
5052
- break;
5147
+ if (labelStarts) {
5148
+ while (labelStarts.length > 0 && labelStarts[labelStarts.length - 1]._balanced) {
5149
+ labelStarts.pop();
5053
5150
  }
5151
+ labelStart = labelStarts[labelStarts.length - 1];
5054
5152
  }
5055
5153
  return start;
5056
5154
  function start(code2) {
@@ -5084,6 +5182,7 @@ function tokenizeLabelEnd(effects, ok3, nok) {
5084
5182
  return effects.attempt(referenceCollapsedConstruct, labelEndOk, labelEndNok)(code2);
5085
5183
  }
5086
5184
  function labelEndOk(code2) {
5185
+ labelStarts.pop();
5087
5186
  return ok3(code2);
5088
5187
  }
5089
5188
  function labelEndNok(code2) {
@@ -5177,6 +5276,7 @@ var labelStartImage = {
5177
5276
  };
5178
5277
  function tokenizeLabelStartImage(effects, ok3, nok) {
5179
5278
  const self = this;
5279
+ let labelImage;
5180
5280
  return start;
5181
5281
  function start(code2) {
5182
5282
  effects.enter("labelImage");
@@ -5190,13 +5290,18 @@ function tokenizeLabelStartImage(effects, ok3, nok) {
5190
5290
  effects.enter("labelMarker");
5191
5291
  effects.consume(code2);
5192
5292
  effects.exit("labelMarker");
5193
- effects.exit("labelImage");
5293
+ labelImage = effects.exit("labelImage");
5194
5294
  return after;
5195
5295
  }
5196
5296
  return nok(code2);
5197
5297
  }
5198
5298
  function after(code2) {
5199
- return code2 === 94 && "_hiddenFootnoteSupport" in self.parser.constructs ? nok(code2) : ok3(code2);
5299
+ if (code2 === 94 && "_hiddenFootnoteSupport" in self.parser.constructs) {
5300
+ return nok(code2);
5301
+ }
5302
+ self._labelStarts = self._labelStarts || [];
5303
+ self._labelStarts.push(labelImage);
5304
+ return ok3(code2);
5200
5305
  }
5201
5306
  }
5202
5307
 
@@ -5208,17 +5313,23 @@ var labelStartLink = {
5208
5313
  };
5209
5314
  function tokenizeLabelStartLink(effects, ok3, nok) {
5210
5315
  const self = this;
5316
+ let labelLink;
5211
5317
  return start;
5212
5318
  function start(code2) {
5213
5319
  effects.enter("labelLink");
5214
5320
  effects.enter("labelMarker");
5215
5321
  effects.consume(code2);
5216
5322
  effects.exit("labelMarker");
5217
- effects.exit("labelLink");
5323
+ labelLink = effects.exit("labelLink");
5218
5324
  return after;
5219
5325
  }
5220
5326
  function after(code2) {
5221
- return code2 === 94 && "_hiddenFootnoteSupport" in self.parser.constructs ? nok(code2) : ok3(code2);
5327
+ if (code2 === 94 && "_hiddenFootnoteSupport" in self.parser.constructs) {
5328
+ return nok(code2);
5329
+ }
5330
+ self._labelStarts = self._labelStarts || [];
5331
+ self._labelStarts.push(labelLink);
5332
+ return ok3(code2);
5222
5333
  }
5223
5334
  }
5224
5335
 
@@ -5413,6 +5524,7 @@ var setextUnderline = {
5413
5524
  tokenize: tokenizeSetextUnderline
5414
5525
  };
5415
5526
  function resolveToSetextUnderline(events, context) {
5527
+ const editMap = new EditMap();
5416
5528
  let index2 = events.length;
5417
5529
  let content3;
5418
5530
  let text4;
@@ -5428,7 +5540,7 @@ function resolveToSetextUnderline(events, context) {
5428
5540
  }
5429
5541
  } else {
5430
5542
  if (events[index2][1].type === "content") {
5431
- events.splice(index2, 1);
5543
+ editMap.add(index2, 1, []);
5432
5544
  }
5433
5545
  if (!definition2 && events[index2][1].type === "definition") {
5434
5546
  definition2 = index2;
@@ -5446,15 +5558,16 @@ function resolveToSetextUnderline(events, context) {
5446
5558
  };
5447
5559
  events[text4][1].type = "setextHeadingText";
5448
5560
  if (definition2) {
5449
- events.splice(text4, 0, ["enter", heading, context]);
5450
- events.splice(definition2 + 1, 0, ["exit", events[content3][1], context]);
5561
+ editMap.add(text4, 0, [["enter", heading, context]]);
5562
+ editMap.add(definition2 + 1, 0, [["exit", events[content3][1], context]]);
5451
5563
  events[content3][1].end = {
5452
5564
  ...events[definition2][1].end
5453
5565
  };
5454
5566
  } else {
5455
5567
  events[content3][1] = heading;
5456
5568
  }
5457
- events.push(["exit", heading, context]);
5569
+ editMap.add(events.length, 0, [["exit", heading, context]]);
5570
+ editMap.consume(events);
5458
5571
  return events;
5459
5572
  }
5460
5573
  function tokenizeSetextUnderline(effects, ok3, nok) {
@@ -5614,6 +5727,7 @@ function createResolver(extraResolver) {
5614
5727
  }
5615
5728
  }
5616
5729
  function resolveAllLineSuffixes(events, context) {
5730
+ const editMap = new EditMap();
5617
5731
  let eventIndex = 0;
5618
5732
  while (++eventIndex <= events.length) {
5619
5733
  if ((eventIndex === events.length || events[eventIndex][1].type === "lineEnding") && events[eventIndex - 1][1].type === "data") {
@@ -5631,7 +5745,9 @@ function resolveAllLineSuffixes(events, context) {
5631
5745
  size++;
5632
5746
  bufferIndex--;
5633
5747
  }
5634
- if (bufferIndex) break;
5748
+ if (bufferIndex) {
5749
+ break;
5750
+ }
5635
5751
  bufferIndex = -1;
5636
5752
  } else if (chunk === -2) {
5637
5753
  tabs = true;
@@ -5665,13 +5781,13 @@ function resolveAllLineSuffixes(events, context) {
5665
5781
  if (data.start.offset === data.end.offset) {
5666
5782
  Object.assign(data, token);
5667
5783
  } else {
5668
- events.splice(eventIndex, 0, ["enter", token, context], ["exit", token, context]);
5669
- eventIndex += 2;
5784
+ editMap.add(eventIndex, 0, [["enter", token, context], ["exit", token, context]]);
5670
5785
  }
5671
5786
  }
5672
5787
  eventIndex++;
5673
5788
  }
5674
5789
  }
5790
+ editMap.consume(events);
5675
5791
  return events;
5676
5792
  }
5677
5793
 
@@ -5829,11 +5945,10 @@ function createTokenizer(parser, initialize, from) {
5829
5945
  accountForPotentialSkip();
5830
5946
  }
5831
5947
  function main() {
5832
- let chunkIndex;
5833
5948
  while (point3._index < chunks.length) {
5834
5949
  const chunk = chunks[point3._index];
5835
5950
  if (typeof chunk === "string") {
5836
- chunkIndex = point3._index;
5951
+ const chunkIndex = point3._index;
5837
5952
  if (point3._bufferIndex < 0) {
5838
5953
  point3._bufferIndex = 0;
5839
5954
  }
@@ -6041,30 +6156,34 @@ function serializeChunks(chunks, expandTabs) {
6041
6156
  let value;
6042
6157
  if (typeof chunk === "string") {
6043
6158
  value = chunk;
6044
- } else switch (chunk) {
6045
- case -5: {
6046
- value = "\r";
6047
- break;
6048
- }
6049
- case -4: {
6050
- value = "\n";
6051
- break;
6052
- }
6053
- case -3: {
6054
- value = "\r\n";
6055
- break;
6056
- }
6057
- case -2: {
6058
- value = expandTabs ? " " : " ";
6059
- break;
6060
- }
6061
- case -1: {
6062
- if (!expandTabs && atTab) continue;
6063
- value = " ";
6064
- break;
6065
- }
6066
- default: {
6067
- value = String.fromCharCode(chunk);
6159
+ } else {
6160
+ switch (chunk) {
6161
+ case -5: {
6162
+ value = "\r";
6163
+ break;
6164
+ }
6165
+ case -4: {
6166
+ value = "\n";
6167
+ break;
6168
+ }
6169
+ case -3: {
6170
+ value = "\r\n";
6171
+ break;
6172
+ }
6173
+ case -2: {
6174
+ value = expandTabs ? " " : " ";
6175
+ break;
6176
+ }
6177
+ case -1: {
6178
+ if (!expandTabs && atTab) {
6179
+ continue;
6180
+ }
6181
+ value = " ";
6182
+ break;
6183
+ }
6184
+ default: {
6185
+ value = String.fromCharCode(chunk);
6186
+ }
6068
6187
  }
6069
6188
  }
6070
6189
  atTab = chunk === -2;
@@ -6115,14 +6234,9 @@ function preprocess() {
6115
6234
  let atCarriageReturn;
6116
6235
  return preprocessor;
6117
6236
  function preprocessor(value, encoding, end) {
6118
- const chunks = [];
6119
- let match;
6120
- let next;
6121
- let startPosition;
6122
- let endPosition;
6123
- let code2;
6124
6237
  value = buffer + (typeof value === "string" ? value.toString() : new TextDecoder(encoding || void 0).decode(value));
6125
- startPosition = 0;
6238
+ const chunks = [];
6239
+ let startPosition = 0;
6126
6240
  buffer = "";
6127
6241
  if (start) {
6128
6242
  if (value.charCodeAt(0) === 65279) {
@@ -6132,9 +6246,9 @@ function preprocess() {
6132
6246
  }
6133
6247
  while (startPosition < value.length) {
6134
6248
  search.lastIndex = startPosition;
6135
- match = search.exec(value);
6136
- endPosition = match && match.index !== void 0 ? match.index : value.length;
6137
- code2 = value.charCodeAt(endPosition);
6249
+ const match = search.exec(value);
6250
+ const endPosition = match && match.index !== void 0 ? match.index : value.length;
6251
+ const code2 = value.charCodeAt(endPosition);
6138
6252
  if (!match) {
6139
6253
  buffer = value.slice(startPosition);
6140
6254
  break;
@@ -6158,9 +6272,11 @@ function preprocess() {
6158
6272
  break;
6159
6273
  }
6160
6274
  case 9: {
6161
- next = Math.ceil(column / 4) * 4;
6275
+ const next = Math.ceil(column / 4) * 4;
6162
6276
  chunks.push(-2);
6163
- while (column++ < next) chunks.push(-1);
6277
+ while (column++ < next) {
6278
+ chunks.push(-1);
6279
+ }
6164
6280
  break;
6165
6281
  }
6166
6282
  case 10: {
@@ -6177,8 +6293,12 @@ function preprocess() {
6177
6293
  startPosition = endPosition + 1;
6178
6294
  }
6179
6295
  if (end) {
6180
- if (atCarriageReturn) chunks.push(-5);
6181
- if (buffer) chunks.push(buffer);
6296
+ if (atCarriageReturn) {
6297
+ chunks.push(-5);
6298
+ }
6299
+ if (buffer) {
6300
+ chunks.push(buffer);
6301
+ }
6182
6302
  chunks.push(null);
6183
6303
  }
6184
6304
  return chunks;
@@ -6240,6 +6360,8 @@ function fromMarkdown(value, encoding, options) {
6240
6360
  }
6241
6361
  function compiler(options) {
6242
6362
  const config = {
6363
+ afterExit: [],
6364
+ beforeEnter: [],
6243
6365
  transforms: [],
6244
6366
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
6245
6367
  enter: {
@@ -6343,7 +6465,8 @@ function compiler(options) {
6343
6465
  function compile(events) {
6344
6466
  let tree = {
6345
6467
  type: "root",
6346
- children: []
6468
+ children: [],
6469
+ position: void 0
6347
6470
  };
6348
6471
  const context = {
6349
6472
  stack: [tree],
@@ -6356,24 +6479,40 @@ function compiler(options) {
6356
6479
  data
6357
6480
  };
6358
6481
  const listStack = [];
6482
+ const prepared = [];
6359
6483
  let index2 = -1;
6360
6484
  while (++index2 < events.length) {
6485
+ prepared.push(events[index2]);
6361
6486
  if (events[index2][1].type === "listOrdered" || events[index2][1].type === "listUnordered") {
6362
6487
  if (events[index2][0] === "enter") {
6363
- listStack.push(index2);
6488
+ listStack.push(prepared.length - 1);
6364
6489
  } else {
6365
6490
  const tail = listStack.pop();
6366
- index2 = prepareList(events, tail, index2);
6491
+ prepareList(prepared, tail);
6367
6492
  }
6368
6493
  }
6369
6494
  }
6495
+ events = prepared;
6370
6496
  index2 = -1;
6371
6497
  while (++index2 < events.length) {
6372
6498
  const handler = config[events[index2][0]];
6499
+ if (events[index2][0] === "enter" && config.beforeEnter.length > 0) {
6500
+ callListeners(config.beforeEnter, {
6501
+ ...context,
6502
+ sliceSerialize: events[index2][2].sliceSerialize
6503
+ }, events[index2][1]);
6504
+ }
6373
6505
  if (own2.call(handler, events[index2][1].type)) {
6374
- handler[events[index2][1].type].call(Object.assign({
6506
+ handler[events[index2][1].type].call({
6507
+ ...context,
6508
+ sliceSerialize: events[index2][2].sliceSerialize
6509
+ }, events[index2][1]);
6510
+ }
6511
+ if (events[index2][0] === "exit" && config.afterExit.length > 0) {
6512
+ callListeners(config.afterExit, {
6513
+ ...context,
6375
6514
  sliceSerialize: events[index2][2].sliceSerialize
6376
- }, context), events[index2][1]);
6515
+ }, events[index2][1]);
6377
6516
  }
6378
6517
  }
6379
6518
  if (context.tokenStack.length > 0) {
@@ -6399,7 +6538,14 @@ function compiler(options) {
6399
6538
  }
6400
6539
  return tree;
6401
6540
  }
6402
- function prepareList(events, start, length) {
6541
+ function callListeners(listeners, context, token) {
6542
+ let index2 = -1;
6543
+ while (++index2 < listeners.length) {
6544
+ listeners[index2].call(context, token);
6545
+ }
6546
+ }
6547
+ function prepareList(events, start) {
6548
+ const end = events.length - 1;
6403
6549
  let index2 = start - 1;
6404
6550
  let containerBalance = -1;
6405
6551
  let listSpread = false;
@@ -6407,7 +6553,8 @@ function compiler(options) {
6407
6553
  let lineIndex;
6408
6554
  let firstBlankLineIndex;
6409
6555
  let atMarker;
6410
- while (++index2 <= length) {
6556
+ const insertions = [];
6557
+ while (++index2 <= end) {
6411
6558
  const event = events[index2];
6412
6559
  switch (event[1].type) {
6413
6560
  case "listUnordered":
@@ -6464,9 +6611,10 @@ function compiler(options) {
6464
6611
  listItem2._spread = true;
6465
6612
  }
6466
6613
  listItem2.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end);
6467
- events.splice(lineIndex || index2, 0, ["exit", listItem2, event[2]]);
6468
- index2++;
6469
- length++;
6614
+ insertions.push({
6615
+ at: lineIndex || index2,
6616
+ event: ["exit", listItem2, event[2]]
6617
+ });
6470
6618
  }
6471
6619
  if (event[1].type === "listItemPrefix") {
6472
6620
  const item = {
@@ -6477,16 +6625,25 @@ function compiler(options) {
6477
6625
  end: void 0
6478
6626
  };
6479
6627
  listItem2 = item;
6480
- events.splice(index2, 0, ["enter", item, event[2]]);
6481
- index2++;
6482
- length++;
6628
+ insertions.push({
6629
+ at: index2,
6630
+ event: ["enter", item, event[2]]
6631
+ });
6483
6632
  firstBlankLineIndex = void 0;
6484
6633
  atMarker = true;
6485
6634
  }
6486
6635
  }
6487
6636
  }
6637
+ const listEvents = events.splice(start);
6638
+ let insertion = 0;
6639
+ index2 = -1;
6640
+ while (++index2 < listEvents.length) {
6641
+ while (insertion < insertions.length && insertions[insertion].at === start + index2) {
6642
+ events.push(insertions[insertion++].event);
6643
+ }
6644
+ events.push(listEvents[index2]);
6645
+ }
6488
6646
  events[start][1]._spread = listSpread;
6489
- return length;
6490
6647
  }
6491
6648
  function opener(create, and) {
6492
6649
  return open;
@@ -6528,7 +6685,8 @@ function compiler(options) {
6528
6685
  start: token.start,
6529
6686
  end: token.end
6530
6687
  }) + "): it\u2019s not open");
6531
- } else if (open[0].type !== token.type) {
6688
+ }
6689
+ if (open[0].type !== token.type) {
6532
6690
  if (onExitError) {
6533
6691
  onExitError.call(this, token, open[0]);
6534
6692
  } else {
@@ -6764,7 +6922,8 @@ function compiler(options) {
6764
6922
  function blockQuote2() {
6765
6923
  return {
6766
6924
  type: "blockquote",
6767
- children: []
6925
+ children: [],
6926
+ position: void 0
6768
6927
  };
6769
6928
  }
6770
6929
  function codeFlow() {
@@ -6772,13 +6931,15 @@ function compiler(options) {
6772
6931
  type: "code",
6773
6932
  lang: null,
6774
6933
  meta: null,
6775
- value: ""
6934
+ value: "",
6935
+ position: void 0
6776
6936
  };
6777
6937
  }
6778
6938
  function codeText2() {
6779
6939
  return {
6780
6940
  type: "inlineCode",
6781
- value: ""
6941
+ value: "",
6942
+ position: void 0
6782
6943
  };
6783
6944
  }
6784
6945
  function definition2() {
@@ -6787,13 +6948,15 @@ function compiler(options) {
6787
6948
  identifier: "",
6788
6949
  label: null,
6789
6950
  title: null,
6790
- url: ""
6951
+ url: "",
6952
+ position: void 0
6791
6953
  };
6792
6954
  }
6793
6955
  function emphasis() {
6794
6956
  return {
6795
6957
  type: "emphasis",
6796
- children: []
6958
+ children: [],
6959
+ position: void 0
6797
6960
  };
6798
6961
  }
6799
6962
  function heading() {
@@ -6801,18 +6964,21 @@ function compiler(options) {
6801
6964
  type: "heading",
6802
6965
  // @ts-expect-error `depth` will be set later.
6803
6966
  depth: 0,
6804
- children: []
6967
+ children: [],
6968
+ position: void 0
6805
6969
  };
6806
6970
  }
6807
6971
  function hardBreak() {
6808
6972
  return {
6809
- type: "break"
6973
+ type: "break",
6974
+ position: void 0
6810
6975
  };
6811
6976
  }
6812
6977
  function html() {
6813
6978
  return {
6814
6979
  type: "html",
6815
- value: ""
6980
+ value: "",
6981
+ position: void 0
6816
6982
  };
6817
6983
  }
6818
6984
  function image() {
@@ -6820,7 +6986,8 @@ function compiler(options) {
6820
6986
  type: "image",
6821
6987
  title: null,
6822
6988
  url: "",
6823
- alt: null
6989
+ alt: null,
6990
+ position: void 0
6824
6991
  };
6825
6992
  }
6826
6993
  function link() {
@@ -6828,7 +6995,8 @@ function compiler(options) {
6828
6995
  type: "link",
6829
6996
  title: null,
6830
6997
  url: "",
6831
- children: []
6998
+ children: [],
6999
+ position: void 0
6832
7000
  };
6833
7001
  }
6834
7002
  function list2(token) {
@@ -6837,7 +7005,8 @@ function compiler(options) {
6837
7005
  ordered: token.type === "listOrdered",
6838
7006
  start: null,
6839
7007
  spread: token._spread,
6840
- children: []
7008
+ children: [],
7009
+ position: void 0
6841
7010
  };
6842
7011
  }
6843
7012
  function listItem(token) {
@@ -6845,30 +7014,35 @@ function compiler(options) {
6845
7014
  type: "listItem",
6846
7015
  spread: token._spread,
6847
7016
  checked: null,
6848
- children: []
7017
+ children: [],
7018
+ position: void 0
6849
7019
  };
6850
7020
  }
6851
7021
  function paragraph() {
6852
7022
  return {
6853
7023
  type: "paragraph",
6854
- children: []
7024
+ children: [],
7025
+ position: void 0
6855
7026
  };
6856
7027
  }
6857
7028
  function strong() {
6858
7029
  return {
6859
7030
  type: "strong",
6860
- children: []
7031
+ children: [],
7032
+ position: void 0
6861
7033
  };
6862
7034
  }
6863
7035
  function text4() {
6864
7036
  return {
6865
7037
  type: "text",
6866
- value: ""
7038
+ value: "",
7039
+ position: void 0
6867
7040
  };
6868
7041
  }
6869
7042
  function thematicBreak2() {
6870
7043
  return {
6871
- type: "thematicBreak"
7044
+ type: "thematicBreak",
7045
+ position: void 0
6872
7046
  };
6873
7047
  }
6874
7048
  }
@@ -6909,6 +7083,14 @@ function extension(combined, extension2) {
6909
7083
  }
6910
7084
  break;
6911
7085
  }
7086
+ case "afterExit":
7087
+ case "beforeEnter": {
7088
+ const right = extension2[key];
7089
+ if (right) {
7090
+ combined[key].push(right);
7091
+ }
7092
+ break;
7093
+ }
6912
7094
  case "enter":
6913
7095
  case "exit": {
6914
7096
  const right = extension2[key];
@@ -6930,12 +7112,11 @@ function defaultOnError(left, right) {
6930
7112
  start: right.start,
6931
7113
  end: right.end
6932
7114
  }) + ") is open");
6933
- } else {
6934
- throw new Error("Cannot close document, a token (`" + right.type + "`, " + stringifyPosition({
6935
- start: right.start,
6936
- end: right.end
6937
- }) + ") is still open");
6938
7115
  }
7116
+ throw new Error("Cannot close document, a token (`" + right.type + "`, " + stringifyPosition({
7117
+ start: right.start,
7118
+ end: right.end
7119
+ }) + ") is still open");
6939
7120
  }
6940
7121
 
6941
7122
  // node_modules/ccount/index.js
@@ -7200,15 +7381,12 @@ function findAndReplace(tree, list2, options) {
7200
7381
  find.lastIndex = position2 + 1;
7201
7382
  } else {
7202
7383
  if (start !== position2) {
7203
- nodes.push({
7204
- type: "text",
7205
- value: node2.value.slice(start, position2)
7206
- });
7384
+ add({ type: "text", value: node2.value.slice(start, position2) });
7207
7385
  }
7208
7386
  if (Array.isArray(value)) {
7209
- nodes.push(...value);
7387
+ for (const child of value) add(child);
7210
7388
  } else if (value) {
7211
- nodes.push(value);
7389
+ add(value);
7212
7390
  }
7213
7391
  start = position2 + match[0].length;
7214
7392
  change = true;
@@ -7220,20 +7398,28 @@ function findAndReplace(tree, list2, options) {
7220
7398
  }
7221
7399
  if (change) {
7222
7400
  if (start < node2.value.length) {
7223
- nodes.push({ type: "text", value: node2.value.slice(start) });
7401
+ add({ type: "text", value: node2.value.slice(start) });
7224
7402
  }
7225
7403
  parent.children.splice(index2, 1, ...nodes);
7226
7404
  } else {
7227
7405
  nodes = [node2];
7228
7406
  }
7229
7407
  return index2 + nodes.length;
7408
+ function add(child) {
7409
+ const previous3 = nodes[nodes.length - 1];
7410
+ if (previous3 && previous3.type === "text" && child.type === "text") {
7411
+ previous3.value += child.value;
7412
+ } else {
7413
+ nodes.push(child);
7414
+ }
7415
+ }
7230
7416
  }
7231
7417
  }
7232
7418
  function toPairs(tupleOrList) {
7233
- const result = [];
7234
7419
  if (!Array.isArray(tupleOrList)) {
7235
7420
  throw new TypeError("Expected find and replace tuple or list of tuples");
7236
7421
  }
7422
+ const result = [];
7237
7423
  const list2 = !tupleOrList[0] || Array.isArray(tupleOrList[0]) ? tupleOrList : [tupleOrList];
7238
7424
  let index2 = -1;
7239
7425
  while (++index2 < list2.length) {
@@ -7447,6 +7633,7 @@ function gfmFootnoteFromMarkdown() {
7447
7633
  }
7448
7634
 
7449
7635
  // node_modules/mdast-util-gfm-strikethrough/lib/index.js
7636
+ handleDelete.attention = attentionDelete;
7450
7637
  handleDelete.peek = peekDelete;
7451
7638
  function gfmStrikethroughFromMarkdown() {
7452
7639
  return {
@@ -7456,24 +7643,28 @@ function gfmStrikethroughFromMarkdown() {
7456
7643
  };
7457
7644
  }
7458
7645
  function enterStrikethrough(token) {
7459
- this.enter({ type: "delete", children: [] }, token);
7646
+ this.enter({ type: "delete", children: [], position: void 0 }, token);
7460
7647
  }
7461
7648
  function exitStrikethrough(token) {
7462
7649
  this.exit(token);
7463
7650
  }
7464
7651
  function handleDelete(node2, _, state, info) {
7465
7652
  const tracker = state.createTracker(info);
7653
+ const sequence = state.stack.includes("strikethrough") ? "~" : "~~";
7466
7654
  const exit3 = state.enter("strikethrough");
7467
- let value = tracker.move("~~");
7655
+ let value = tracker.move(sequence);
7468
7656
  value += state.containerPhrasing(node2, {
7469
7657
  ...tracker.current(),
7470
7658
  before: value,
7471
7659
  after: "~"
7472
7660
  });
7473
- value += tracker.move("~~");
7661
+ value += tracker.move(sequence);
7474
7662
  exit3();
7475
7663
  return value;
7476
7664
  }
7665
+ function attentionDelete() {
7666
+ return { construct: "strikethrough", markers: ["~"], sizes: [2, 1] };
7667
+ }
7477
7668
  function peekDelete() {
7478
7669
  return "~";
7479
7670
  }
@@ -8308,7 +8499,7 @@ function gfmStrikethrough(options) {
8308
8499
  }
8309
8500
 
8310
8501
  // node_modules/micromark-extension-gfm-table/lib/edit-map.js
8311
- var EditMap = class {
8502
+ var EditMap2 = class {
8312
8503
  /**
8313
8504
  * Create a new edit map.
8314
8505
  */
@@ -8329,7 +8520,7 @@ var EditMap = class {
8329
8520
  * Nothing.
8330
8521
  */
8331
8522
  add(index2, remove, add) {
8332
- addImplementation(this, index2, remove, add);
8523
+ addImplementation2(this, index2, remove, add);
8333
8524
  }
8334
8525
  // To do: add this when moving to `micromark`.
8335
8526
  // /**
@@ -8378,7 +8569,7 @@ var EditMap = class {
8378
8569
  this.index.clear();
8379
8570
  }
8380
8571
  };
8381
- function addImplementation(editMap, at, remove, add) {
8572
+ function addImplementation2(editMap, at, remove, add) {
8382
8573
  if (remove === 0 && add.length === 0) {
8383
8574
  return;
8384
8575
  }
@@ -8663,7 +8854,7 @@ function resolveTable(events, context) {
8663
8854
  let currentTable;
8664
8855
  let currentBody;
8665
8856
  let currentCell;
8666
- const map = new EditMap();
8857
+ const map = new EditMap2();
8667
8858
  while (++index2 < events.length) {
8668
8859
  const event = events[index2];
8669
8860
  const token = event[1];