@surething/cockpit 1.0.244 → 1.0.246

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 (710) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +7 -5
  3. package/.next-prod/build-manifest.json +3 -3
  4. package/.next-prod/prerender-manifest.json +3 -3
  5. package/.next-prod/react-loadable-manifest.json +2 -2
  6. package/.next-prod/routes-manifest.json +18 -4
  7. package/.next-prod/server/app/_global-error/page.js +3 -3
  8. package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
  9. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/.next-prod/server/app/_global-error.html +1 -1
  11. package/.next-prod/server/app/_global-error.rsc +1 -1
  12. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  14. package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  15. package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
  16. package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +1 -1
  17. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/.next-prod/server/app/_not-found/page.js +2 -2
  19. package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
  20. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  21. package/.next-prod/server/app/_not-found.html +2 -2
  22. package/.next-prod/server/app/_not-found.rsc +4 -4
  23. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +4 -4
  24. package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
  25. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
  26. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  27. package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  28. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  29. package/.next-prod/server/app/api/agent/test/route.js +1 -1
  30. package/.next-prod/server/app/api/agent/test/route.js.nft.json +1 -1
  31. package/.next-prod/server/app/api/bash/route.js +1 -1
  32. package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
  33. package/.next-prod/server/app/api/chat/codex/route.js +2 -2
  34. package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
  35. package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
  36. package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
  37. package/.next-prod/server/app/api/chat/kimi/route.js +2 -2
  38. package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
  39. package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
  40. package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
  41. package/.next-prod/server/app/api/chat/pty-input/route.js +1 -1
  42. package/.next-prod/server/app/api/chat/pty-input/route.js.nft.json +1 -1
  43. package/.next-prod/server/app/api/chat/route.js +1 -1
  44. package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
  45. package/.next-prod/server/app/api/chat/stop/route.js +1 -1
  46. package/.next-prod/server/app/api/chat/stop/route.js.nft.json +1 -1
  47. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  48. package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
  49. package/.next-prod/server/app/api/commands/route.js +1 -1
  50. package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
  51. package/.next-prod/server/app/api/comments/route.js +1 -1
  52. package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
  53. package/.next-prod/server/app/api/db/columns/route.js +1 -1
  54. package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
  55. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  56. package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
  57. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  58. package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
  59. package/.next-prod/server/app/api/db/export/route.js +1 -1
  60. package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
  61. package/.next-prod/server/app/api/db/query/route.js +1 -1
  62. package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
  63. package/.next-prod/server/app/api/db/schemas/route.js +1 -1
  64. package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
  65. package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -1
  66. package/.next-prod/server/app/api/deepseek/credentials/route.js.nft.json +1 -1
  67. package/.next-prod/server/app/api/dev/spans/route.js +1 -1
  68. package/.next-prod/server/app/api/dev/spans/route.js.nft.json +1 -1
  69. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  70. package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
  71. package/.next-prod/server/app/api/file/route.js +1 -1
  72. package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
  73. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  74. package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
  75. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  76. package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
  77. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  78. package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
  79. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  80. package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
  81. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  82. package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
  83. package/.next-prod/server/app/api/files/index/route.js +1 -1
  84. package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
  85. package/.next-prod/server/app/api/files/init/route.js +1 -1
  86. package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
  87. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  88. package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
  89. package/.next-prod/server/app/api/files/read/route.js +1 -1
  90. package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
  91. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  92. package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
  93. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  94. package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
  95. package/.next-prod/server/app/api/files/save/route.js +1 -1
  96. package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
  97. package/.next-prod/server/app/api/files/search/route.js +1 -1
  98. package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
  99. package/.next-prod/server/app/api/files/stat/route.js +1 -1
  100. package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
  101. package/.next-prod/server/app/api/files/text/route.js +1 -1
  102. package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
  103. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  104. package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
  105. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  106. package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
  107. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  108. package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
  109. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  110. package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
  111. package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
  112. package/.next-prod/server/app/api/git/current-branch/route.js.nft.json +1 -1
  113. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  114. package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
  115. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  116. package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
  117. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  118. package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
  119. package/.next-prod/server/app/api/git/status/route.js +1 -1
  120. package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
  121. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  122. package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
  123. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  124. package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
  125. package/.next-prod/server/app/api/global-state/route.js +2 -2
  126. package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
  127. package/.next-prod/server/app/api/health/route.js +1 -1
  128. package/.next-prod/server/app/api/health/route.js.nft.json +1 -1
  129. package/.next-prod/server/app/api/html-apps/[id]/route.js +1 -0
  130. package/.next-prod/server/app/api/{preview/[...path] → html-apps/[id]}/route.js.nft.json +1 -1
  131. package/.next-prod/server/app/api/html-apps/[id]/route_client-reference-manifest.js +1 -0
  132. package/.next-prod/server/app/api/html-apps/route.js +1 -0
  133. package/.next-prod/server/app/api/html-apps/route.js.nft.json +1 -0
  134. package/.next-prod/server/app/api/html-apps/route_client-reference-manifest.js +1 -0
  135. package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
  136. package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -1
  137. package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
  138. package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -1
  139. package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
  140. package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -1
  141. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  142. package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
  143. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  144. package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
  145. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  146. package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
  147. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  148. package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
  149. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  150. package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
  151. package/.next-prod/server/app/api/mysql/columns/route.js +1 -1
  152. package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
  153. package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
  154. package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
  155. package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
  156. package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
  157. package/.next-prod/server/app/api/mysql/export/route.js +1 -1
  158. package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
  159. package/.next-prod/server/app/api/mysql/query/route.js +1 -1
  160. package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
  161. package/.next-prod/server/app/api/mysql/schemas/route.js +2 -2
  162. package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
  163. package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
  164. package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
  165. package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
  166. package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
  167. package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
  168. package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
  169. package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
  170. package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
  171. package/.next-prod/server/app/api/note/route.js +1 -1
  172. package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
  173. package/.next-prod/server/app/api/ollama/config/route.js +1 -1
  174. package/.next-prod/server/app/api/ollama/config/route.js.nft.json +1 -1
  175. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  176. package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
  177. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  178. package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
  179. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  180. package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
  181. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  182. package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
  183. package/.next-prod/server/app/api/pick-folder/route.js +1 -1
  184. package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
  185. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  186. package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
  187. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  188. package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
  189. package/.next-prod/server/app/api/project-state/route.js +2 -2
  190. package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
  191. package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
  192. package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
  193. package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
  194. package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
  195. package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
  196. package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
  197. package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
  198. package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
  199. package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
  200. package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
  201. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  202. package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
  203. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  204. package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
  205. package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
  206. package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
  207. package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
  208. package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
  209. package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
  210. package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
  211. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  212. package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
  213. package/.next-prod/server/app/api/projects/route.js +1 -1
  214. package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
  215. package/.next-prod/server/app/api/push/public-key/route.js +1 -1
  216. package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
  217. package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
  218. package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
  219. package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
  220. package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +1 -1
  221. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  222. package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
  223. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  224. package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
  225. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  226. package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
  227. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  228. package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
  229. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  230. package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
  231. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  232. package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
  233. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  234. package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
  235. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  236. package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
  237. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  238. package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
  239. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  240. package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
  241. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  242. package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
  243. package/.next-prod/server/app/api/review/order/route.js +1 -1
  244. package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
  245. package/.next-prod/server/app/api/review/route.js +1 -1
  246. package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
  247. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  248. package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
  249. package/.next-prod/server/app/api/review/users/route.js +1 -1
  250. package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
  251. package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
  252. package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
  253. package/.next-prod/server/app/api/services/config/route.js +1 -1
  254. package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
  255. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  256. package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
  257. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  258. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
  259. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  260. package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
  261. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  262. package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
  263. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  264. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
  265. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  266. package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
  267. package/.next-prod/server/app/api/sessions/route.js +1 -1
  268. package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -1
  269. package/.next-prod/server/app/api/settings/route.js +1 -1
  270. package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
  271. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  272. package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
  273. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  274. package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
  275. package/.next-prod/server/app/api/skills/route.js +1 -1
  276. package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
  277. package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
  278. package/.next-prod/server/app/api/snapshots/diff/route.js.nft.json +1 -1
  279. package/.next-prod/server/app/api/snapshots/route.js +1 -1
  280. package/.next-prod/server/app/api/snapshots/route.js.nft.json +1 -1
  281. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  282. package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
  283. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  284. package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
  285. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  286. package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
  287. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  288. package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
  289. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  290. package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
  291. package/.next-prod/server/app/api/version/route.js +1 -1
  292. package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
  293. package/.next-prod/server/app/apps/[...path]/route.js +1 -0
  294. package/.next-prod/server/app/apps/[...path]/route.js.nft.json +1 -0
  295. package/.next-prod/server/app/apps/[...path]/route_client-reference-manifest.js +1 -0
  296. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  297. package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
  298. package/.next-prod/server/app/favicon.ico.body +0 -0
  299. package/.next-prod/server/app/m/page.js +2 -2
  300. package/.next-prod/server/app/m/page.js.nft.json +1 -1
  301. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  302. package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
  303. package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  304. package/.next-prod/server/app/page.js +2 -2
  305. package/.next-prod/server/app/page.js.nft.json +1 -1
  306. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  307. package/.next-prod/server/app/project/page.js +2 -2
  308. package/.next-prod/server/app/project/page.js.nft.json +1 -1
  309. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  310. package/.next-prod/server/app/review/[id]/page.js +2 -2
  311. package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
  312. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  313. package/.next-prod/server/app-paths-manifest.json +7 -5
  314. package/.next-prod/server/chunks/304.js +1 -1
  315. package/.next-prod/server/chunks/4848.js +291 -3
  316. package/.next-prod/server/chunks/4916.js +368 -0
  317. package/.next-prod/server/chunks/{5674.js → 6023.js} +5 -5
  318. package/.next-prod/server/chunks/6038.js +1 -1
  319. package/.next-prod/server/chunks/9658.js +379 -12
  320. package/.next-prod/server/middleware-build-manifest.js +1 -1
  321. package/.next-prod/server/middleware-react-loadable-manifest.js +1 -1
  322. package/.next-prod/server/pages/404.html +2 -2
  323. package/.next-prod/server/pages/500.html +1 -1
  324. package/.next-prod/server/server-reference-manifest.json +1 -1
  325. package/.next-prod/static/D0hP0hbht20IrPe7xUl96/_buildManifest.js +1 -0
  326. package/.next-prod/static/chunks/{9779.7a4ff1aee2a02f63.js → 2160.e38d781fd5c4cde0.js} +1 -1
  327. package/.next-prod/static/chunks/{1973-5ba02ae354968836.js → 4304-408f5bddd7583676.js} +3 -3
  328. package/.next-prod/static/chunks/{7849-7c580c908fe21e9d.js → 4473-6877df387a4a05a5.js} +2 -2
  329. package/.next-prod/static/chunks/{4523.aaab4b1bd81167d4.js → 4523.3f277a24fbcfde6d.js} +1 -1
  330. package/.next-prod/static/chunks/6784-59c6418d36cf5a13.js +0 -0
  331. package/.next-prod/static/chunks/8010-75928e3e1e85c88e.js +25 -0
  332. package/.next-prod/static/chunks/9530-9a02795e0607577c.js +382 -0
  333. package/.next-prod/static/chunks/app/_global-error/page-51252a3b116b8135.js +1 -0
  334. package/.next-prod/static/chunks/app/api/agent/test/route-51252a3b116b8135.js +1 -0
  335. package/.next-prod/static/chunks/app/api/bash/route-51252a3b116b8135.js +1 -0
  336. package/.next-prod/static/chunks/app/api/chat/codex/route-51252a3b116b8135.js +1 -0
  337. package/.next-prod/static/chunks/app/api/chat/deepseek/route-51252a3b116b8135.js +1 -0
  338. package/.next-prod/static/chunks/app/api/chat/kimi/route-51252a3b116b8135.js +1 -0
  339. package/.next-prod/static/chunks/app/api/chat/ollama/route-51252a3b116b8135.js +1 -0
  340. package/.next-prod/static/chunks/app/api/chat/pty-input/route-51252a3b116b8135.js +1 -0
  341. package/.next-prod/static/chunks/app/api/chat/route-51252a3b116b8135.js +1 -0
  342. package/.next-prod/static/chunks/app/api/chat/stop/route-51252a3b116b8135.js +1 -0
  343. package/.next-prod/static/chunks/app/api/claude-stats/route-51252a3b116b8135.js +1 -0
  344. package/.next-prod/static/chunks/app/api/commands/route-51252a3b116b8135.js +1 -0
  345. package/.next-prod/static/chunks/app/api/comments/route-51252a3b116b8135.js +1 -0
  346. package/.next-prod/static/chunks/app/api/db/columns/route-51252a3b116b8135.js +1 -0
  347. package/.next-prod/static/chunks/app/api/db/connect/route-51252a3b116b8135.js +1 -0
  348. package/.next-prod/static/chunks/app/api/db/disconnect/route-51252a3b116b8135.js +1 -0
  349. package/.next-prod/static/chunks/app/api/db/export/route-51252a3b116b8135.js +1 -0
  350. package/.next-prod/static/chunks/app/api/db/query/route-51252a3b116b8135.js +1 -0
  351. package/.next-prod/static/chunks/app/api/db/schemas/route-51252a3b116b8135.js +1 -0
  352. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-51252a3b116b8135.js +1 -0
  353. package/.next-prod/static/chunks/app/api/dev/spans/route-51252a3b116b8135.js +1 -0
  354. package/.next-prod/static/chunks/app/api/extension/version/route-51252a3b116b8135.js +1 -0
  355. package/.next-prod/static/chunks/app/api/file/route-51252a3b116b8135.js +1 -0
  356. package/.next-prod/static/chunks/app/api/files/blame/route-51252a3b116b8135.js +1 -0
  357. package/.next-prod/static/chunks/app/api/files/clipboard/route-51252a3b116b8135.js +1 -0
  358. package/.next-prod/static/chunks/app/api/files/copy/route-51252a3b116b8135.js +1 -0
  359. package/.next-prod/static/chunks/app/api/files/delete/route-51252a3b116b8135.js +1 -0
  360. package/.next-prod/static/chunks/app/api/files/expanded/route-51252a3b116b8135.js +1 -0
  361. package/.next-prod/static/chunks/app/api/files/index/route-51252a3b116b8135.js +1 -0
  362. package/.next-prod/static/chunks/app/api/files/init/route-51252a3b116b8135.js +1 -0
  363. package/.next-prod/static/chunks/app/api/files/paste/route-51252a3b116b8135.js +1 -0
  364. package/.next-prod/static/chunks/app/api/files/read/route-51252a3b116b8135.js +1 -0
  365. package/.next-prod/static/chunks/app/api/files/readdir/route-51252a3b116b8135.js +1 -0
  366. package/.next-prod/static/chunks/app/api/files/recent/route-51252a3b116b8135.js +1 -0
  367. package/.next-prod/static/chunks/app/api/files/save/route-51252a3b116b8135.js +1 -0
  368. package/.next-prod/static/chunks/app/api/files/search/route-51252a3b116b8135.js +1 -0
  369. package/.next-prod/static/chunks/app/api/files/stat/route-51252a3b116b8135.js +1 -0
  370. package/.next-prod/static/chunks/app/api/files/text/route-51252a3b116b8135.js +1 -0
  371. package/.next-prod/static/chunks/app/api/git/branch-diff/route-51252a3b116b8135.js +1 -0
  372. package/.next-prod/static/chunks/app/api/git/branches/route-51252a3b116b8135.js +1 -0
  373. package/.next-prod/static/chunks/app/api/git/commit-diff/route-51252a3b116b8135.js +1 -0
  374. package/.next-prod/static/chunks/app/api/git/commits/route-51252a3b116b8135.js +1 -0
  375. package/.next-prod/static/chunks/app/api/git/current-branch/route-51252a3b116b8135.js +1 -0
  376. package/.next-prod/static/chunks/app/api/git/diff/route-51252a3b116b8135.js +1 -0
  377. package/.next-prod/static/chunks/app/api/git/discard/route-51252a3b116b8135.js +1 -0
  378. package/.next-prod/static/chunks/app/api/git/stage/route-51252a3b116b8135.js +1 -0
  379. package/.next-prod/static/chunks/app/api/git/status/route-51252a3b116b8135.js +1 -0
  380. package/.next-prod/static/chunks/app/api/git/unstage/route-51252a3b116b8135.js +1 -0
  381. package/.next-prod/static/chunks/app/api/git/worktree/route-51252a3b116b8135.js +1 -0
  382. package/.next-prod/static/chunks/app/api/global-state/route-51252a3b116b8135.js +1 -0
  383. package/.next-prod/static/chunks/app/api/health/route-51252a3b116b8135.js +1 -0
  384. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-51252a3b116b8135.js +1 -0
  385. package/.next-prod/static/chunks/app/api/html-apps/route-51252a3b116b8135.js +1 -0
  386. package/.next-prod/static/chunks/app/api/jupyter/load/route-51252a3b116b8135.js +1 -0
  387. package/.next-prod/static/chunks/app/api/jupyter/save/route-51252a3b116b8135.js +1 -0
  388. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-51252a3b116b8135.js +1 -0
  389. package/.next-prod/static/chunks/app/api/lsp/definition/route-51252a3b116b8135.js +1 -0
  390. package/.next-prod/static/chunks/app/api/lsp/hover/route-51252a3b116b8135.js +1 -0
  391. package/.next-prod/static/chunks/app/api/lsp/references/route-51252a3b116b8135.js +1 -0
  392. package/.next-prod/static/chunks/app/api/lsp/status/route-51252a3b116b8135.js +1 -0
  393. package/.next-prod/static/chunks/app/api/lsp/warmup/route-51252a3b116b8135.js +1 -0
  394. package/.next-prod/static/chunks/app/api/mysql/columns/route-51252a3b116b8135.js +1 -0
  395. package/.next-prod/static/chunks/app/api/mysql/connect/route-51252a3b116b8135.js +1 -0
  396. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-51252a3b116b8135.js +1 -0
  397. package/.next-prod/static/chunks/app/api/mysql/export/route-51252a3b116b8135.js +1 -0
  398. package/.next-prod/static/chunks/app/api/mysql/query/route-51252a3b116b8135.js +1 -0
  399. package/.next-prod/static/chunks/app/api/mysql/schemas/route-51252a3b116b8135.js +1 -0
  400. package/.next-prod/static/chunks/app/api/neo4j/connect/route-51252a3b116b8135.js +1 -0
  401. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-51252a3b116b8135.js +1 -0
  402. package/.next-prod/static/chunks/app/api/neo4j/query/route-51252a3b116b8135.js +1 -0
  403. package/.next-prod/static/chunks/app/api/neo4j/schema/route-51252a3b116b8135.js +1 -0
  404. package/.next-prod/static/chunks/app/api/note/route-51252a3b116b8135.js +1 -0
  405. package/.next-prod/static/chunks/app/api/ollama/config/route-51252a3b116b8135.js +1 -0
  406. package/.next-prod/static/chunks/app/api/ollama/models/route-51252a3b116b8135.js +1 -0
  407. package/.next-prod/static/chunks/app/api/ollama/start/route-51252a3b116b8135.js +1 -0
  408. package/.next-prod/static/chunks/app/api/open-cursor/route-51252a3b116b8135.js +1 -0
  409. package/.next-prod/static/chunks/app/api/open-vscode/route-51252a3b116b8135.js +1 -0
  410. package/.next-prod/static/chunks/app/api/pick-folder/route-51252a3b116b8135.js +1 -0
  411. package/.next-prod/static/chunks/app/api/pinned-sessions/route-51252a3b116b8135.js +1 -0
  412. package/.next-prod/static/chunks/app/api/project-settings/route-51252a3b116b8135.js +1 -0
  413. package/.next-prod/static/chunks/app/api/project-state/route-51252a3b116b8135.js +1 -0
  414. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-51252a3b116b8135.js +1 -0
  415. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-51252a3b116b8135.js +1 -0
  416. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-51252a3b116b8135.js +1 -0
  417. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-51252a3b116b8135.js +1 -0
  418. package/.next-prod/static/chunks/app/api/projectGraph/context/route-51252a3b116b8135.js +1 -0
  419. package/.next-prod/static/chunks/app/api/projectGraph/file/route-51252a3b116b8135.js +1 -0
  420. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-51252a3b116b8135.js +1 -0
  421. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-51252a3b116b8135.js +1 -0
  422. package/.next-prod/static/chunks/app/api/projectGraph/related/route-51252a3b116b8135.js +1 -0
  423. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-51252a3b116b8135.js +1 -0
  424. package/.next-prod/static/chunks/app/api/projectGraph/search/route-51252a3b116b8135.js +1 -0
  425. package/.next-prod/static/chunks/app/api/projects/route-51252a3b116b8135.js +1 -0
  426. package/.next-prod/static/chunks/app/api/push/public-key/route-51252a3b116b8135.js +1 -0
  427. package/.next-prod/static/chunks/app/api/push/subscribe/route-51252a3b116b8135.js +1 -0
  428. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-51252a3b116b8135.js +1 -0
  429. package/.next-prod/static/chunks/app/api/redis/command/route-51252a3b116b8135.js +1 -0
  430. package/.next-prod/static/chunks/app/api/redis/connect/route-51252a3b116b8135.js +1 -0
  431. package/.next-prod/static/chunks/app/api/redis/delete/route-51252a3b116b8135.js +1 -0
  432. package/.next-prod/static/chunks/app/api/redis/disconnect/route-51252a3b116b8135.js +1 -0
  433. package/.next-prod/static/chunks/app/api/redis/get/route-51252a3b116b8135.js +1 -0
  434. package/.next-prod/static/chunks/app/api/redis/keys/route-51252a3b116b8135.js +1 -0
  435. package/.next-prod/static/chunks/app/api/redis/set/route-51252a3b116b8135.js +1 -0
  436. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-51252a3b116b8135.js +1 -0
  437. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-51252a3b116b8135.js +1 -0
  438. package/.next-prod/static/chunks/app/api/review/[id]/route-51252a3b116b8135.js +1 -0
  439. package/.next-prod/static/chunks/app/api/review/identify/route-51252a3b116b8135.js +1 -0
  440. package/.next-prod/static/chunks/app/api/review/order/route-51252a3b116b8135.js +1 -0
  441. package/.next-prod/static/chunks/app/api/review/route-51252a3b116b8135.js +1 -0
  442. package/.next-prod/static/chunks/app/api/review/share-info/route-51252a3b116b8135.js +1 -0
  443. package/.next-prod/static/chunks/app/api/review/users/route-51252a3b116b8135.js +1 -0
  444. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-51252a3b116b8135.js +1 -0
  445. package/.next-prod/static/chunks/app/api/services/config/route-51252a3b116b8135.js +1 -0
  446. package/.next-prod/static/chunks/app/api/services/scripts/route-51252a3b116b8135.js +1 -0
  447. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-51252a3b116b8135.js +1 -0
  448. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-51252a3b116b8135.js +1 -0
  449. package/.next-prod/static/chunks/app/api/session-by-path/route-51252a3b116b8135.js +1 -0
  450. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-51252a3b116b8135.js +1 -0
  451. package/.next-prod/static/chunks/app/api/sessions/projects/route-51252a3b116b8135.js +1 -0
  452. package/.next-prod/static/chunks/app/api/sessions/route-51252a3b116b8135.js +1 -0
  453. package/.next-prod/static/chunks/app/api/settings/route-51252a3b116b8135.js +1 -0
  454. package/.next-prod/static/chunks/app/api/skills/[id]/route-51252a3b116b8135.js +1 -0
  455. package/.next-prod/static/chunks/app/api/skills/content/route-51252a3b116b8135.js +1 -0
  456. package/.next-prod/static/chunks/app/api/skills/route-51252a3b116b8135.js +1 -0
  457. package/.next-prod/static/chunks/app/api/snapshots/diff/route-51252a3b116b8135.js +1 -0
  458. package/.next-prod/static/chunks/app/api/snapshots/route-51252a3b116b8135.js +1 -0
  459. package/.next-prod/static/chunks/app/api/terminal/aliases/route-51252a3b116b8135.js +1 -0
  460. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-51252a3b116b8135.js +1 -0
  461. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-51252a3b116b8135.js +1 -0
  462. package/.next-prod/static/chunks/app/api/terminal/env/route-51252a3b116b8135.js +1 -0
  463. package/.next-prod/static/chunks/app/api/terminal/history/route-51252a3b116b8135.js +1 -0
  464. package/.next-prod/static/chunks/app/api/version/route-51252a3b116b8135.js +1 -0
  465. package/.next-prod/static/chunks/app/apps/[...path]/route-51252a3b116b8135.js +1 -0
  466. package/.next-prod/static/chunks/app/{layout-392444ad665c7748.js → layout-c33e42d8bc9d4b27.js} +1 -1
  467. package/.next-prod/static/chunks/app/m/page-03365a5db8980b50.js +1 -0
  468. package/.next-prod/static/chunks/app/manifest.webmanifest/route-51252a3b116b8135.js +1 -0
  469. package/.next-prod/static/chunks/app/{page-a32d8344284e99cb.js → page-972d36c0519a910e.js} +1 -1
  470. package/.next-prod/static/chunks/app/project/{page-a32d8344284e99cb.js → page-972d36c0519a910e.js} +1 -1
  471. package/.next-prod/static/chunks/app/review/[id]/page-c9716ea0049cc328.js +1 -0
  472. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-51252a3b116b8135.js +1 -0
  473. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-51252a3b116b8135.js +1 -0
  474. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-51252a3b116b8135.js +1 -0
  475. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-51252a3b116b8135.js +1 -0
  476. package/.next-prod/static/chunks/webpack-fb9d282647d95d0a.js +1 -0
  477. package/.next-prod/static/css/546386ec7f3b9978.css +1 -0
  478. package/.next-prod/trace +14 -13
  479. package/.next-prod/trace-build +1 -1
  480. package/.next-prod/types/app/api/{preview/[...path] → html-apps/[id]}/route.ts +3 -3
  481. package/.next-prod/types/app/api/html-apps/route.ts +351 -0
  482. package/.next-prod/types/app/apps/[...path]/route.ts +351 -0
  483. package/.next-prod/types/routes.d.ts +4 -2
  484. package/.next-prod/types/validator.ts +27 -9
  485. package/apps/file-viewer/app.jsx +411 -0
  486. package/apps/file-viewer/index.html +76 -0
  487. package/dist/{chunk-FMJUH423.mjs → chunk-7WPYQYA6.mjs} +44 -2
  488. package/dist/{chunk-BFESJMNO.mjs → chunk-BRW4ZEIC.mjs} +1 -0
  489. package/dist/{chunk-3X4GQZL4.mjs → chunk-RUNUGDPP.mjs} +1 -1
  490. package/dist/httpApi.mjs +2 -2
  491. package/dist/scheduledTasks.mjs +295 -2
  492. package/dist/{server-HKW65PHP.mjs → server-MCN5AIEU.mjs} +4 -2
  493. package/dist/wsServer.mjs +200 -7
  494. package/package.json +6 -3
  495. package/public/html-lib/babel.min.js +2 -0
  496. package/public/html-lib/fonts/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
  497. package/public/html-lib/fonts/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
  498. package/public/html-lib/fonts/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
  499. package/public/html-lib/fonts/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
  500. package/public/html-lib/fonts/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
  501. package/public/html-lib/fonts/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
  502. package/public/html-lib/fonts/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
  503. package/public/html-lib/fonts/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
  504. package/public/html-lib/fonts/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
  505. package/public/html-lib/fonts/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
  506. package/public/html-lib/fonts/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
  507. package/public/html-lib/fonts/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
  508. package/public/html-lib/fonts/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
  509. package/public/html-lib/fonts/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
  510. package/public/html-lib/fonts/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
  511. package/public/html-lib/fonts/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
  512. package/public/html-lib/fonts/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
  513. package/public/html-lib/fonts/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
  514. package/public/html-lib/fonts/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
  515. package/public/html-lib/fonts/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
  516. package/public/html-lib/fonts/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
  517. package/public/html-lib/fonts/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
  518. package/public/html-lib/fonts/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
  519. package/public/html-lib/fonts/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
  520. package/public/html-lib/fonts/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
  521. package/public/html-lib/fonts/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
  522. package/public/html-lib/fonts/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
  523. package/public/html-lib/fonts/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
  524. package/public/html-lib/fonts/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
  525. package/public/html-lib/fonts/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
  526. package/public/html-lib/fonts/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
  527. package/public/html-lib/fonts/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
  528. package/public/html-lib/fonts/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
  529. package/public/html-lib/fonts/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
  530. package/public/html-lib/fonts/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
  531. package/public/html-lib/fonts/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
  532. package/public/html-lib/fonts/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
  533. package/public/html-lib/fonts/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
  534. package/public/html-lib/fonts/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
  535. package/public/html-lib/fonts/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
  536. package/public/html-lib/fonts/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
  537. package/public/html-lib/fonts/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
  538. package/public/html-lib/fonts/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
  539. package/public/html-lib/fonts/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
  540. package/public/html-lib/fonts/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
  541. package/public/html-lib/fonts/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
  542. package/public/html-lib/fonts/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
  543. package/public/html-lib/fonts/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
  544. package/public/html-lib/fonts/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
  545. package/public/html-lib/fonts/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
  546. package/public/html-lib/fonts/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
  547. package/public/html-lib/fonts/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
  548. package/public/html-lib/fonts/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
  549. package/public/html-lib/fonts/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
  550. package/public/html-lib/fonts/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
  551. package/public/html-lib/fonts/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
  552. package/public/html-lib/fonts/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
  553. package/public/html-lib/fonts/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
  554. package/public/html-lib/fonts/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
  555. package/public/html-lib/fonts/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
  556. package/public/html-lib/json-viewer.js +91 -0
  557. package/public/html-lib/markdown.css +419 -0
  558. package/public/html-lib/markdown.js +418 -0
  559. package/public/html-lib/pdf-viewer.css +444 -0
  560. package/public/html-lib/pdf-viewer.js +123 -0
  561. package/public/html-lib/react-dom.production.min.js +267 -0
  562. package/public/html-lib/react.production.min.js +31 -0
  563. package/public/html-lib/theme.css +101 -0
  564. package/.next-prod/server/app/api/preview/[...path]/route.js +0 -1
  565. package/.next-prod/server/app/api/preview/[...path]/route_client-reference-manifest.js +0 -1
  566. package/.next-prod/static/chunks/1871-4468d75ec99d71fc.js +0 -25
  567. package/.next-prod/static/chunks/6784-53d80dc3b480cf9a.js +0 -0
  568. package/.next-prod/static/chunks/9530-08419cb81f88a0e6.js +0 -15
  569. package/.next-prod/static/chunks/app/_global-error/page-6d7aa508d9d8bcc3.js +0 -1
  570. package/.next-prod/static/chunks/app/api/agent/test/route-6d7aa508d9d8bcc3.js +0 -1
  571. package/.next-prod/static/chunks/app/api/bash/route-6d7aa508d9d8bcc3.js +0 -1
  572. package/.next-prod/static/chunks/app/api/chat/codex/route-6d7aa508d9d8bcc3.js +0 -1
  573. package/.next-prod/static/chunks/app/api/chat/deepseek/route-6d7aa508d9d8bcc3.js +0 -1
  574. package/.next-prod/static/chunks/app/api/chat/kimi/route-6d7aa508d9d8bcc3.js +0 -1
  575. package/.next-prod/static/chunks/app/api/chat/ollama/route-6d7aa508d9d8bcc3.js +0 -1
  576. package/.next-prod/static/chunks/app/api/chat/pty-input/route-6d7aa508d9d8bcc3.js +0 -1
  577. package/.next-prod/static/chunks/app/api/chat/route-6d7aa508d9d8bcc3.js +0 -1
  578. package/.next-prod/static/chunks/app/api/chat/stop/route-6d7aa508d9d8bcc3.js +0 -1
  579. package/.next-prod/static/chunks/app/api/claude-stats/route-6d7aa508d9d8bcc3.js +0 -1
  580. package/.next-prod/static/chunks/app/api/commands/route-6d7aa508d9d8bcc3.js +0 -1
  581. package/.next-prod/static/chunks/app/api/comments/route-6d7aa508d9d8bcc3.js +0 -1
  582. package/.next-prod/static/chunks/app/api/db/columns/route-6d7aa508d9d8bcc3.js +0 -1
  583. package/.next-prod/static/chunks/app/api/db/connect/route-6d7aa508d9d8bcc3.js +0 -1
  584. package/.next-prod/static/chunks/app/api/db/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
  585. package/.next-prod/static/chunks/app/api/db/export/route-6d7aa508d9d8bcc3.js +0 -1
  586. package/.next-prod/static/chunks/app/api/db/query/route-6d7aa508d9d8bcc3.js +0 -1
  587. package/.next-prod/static/chunks/app/api/db/schemas/route-6d7aa508d9d8bcc3.js +0 -1
  588. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-6d7aa508d9d8bcc3.js +0 -1
  589. package/.next-prod/static/chunks/app/api/dev/spans/route-6d7aa508d9d8bcc3.js +0 -1
  590. package/.next-prod/static/chunks/app/api/extension/version/route-6d7aa508d9d8bcc3.js +0 -1
  591. package/.next-prod/static/chunks/app/api/file/route-6d7aa508d9d8bcc3.js +0 -1
  592. package/.next-prod/static/chunks/app/api/files/blame/route-6d7aa508d9d8bcc3.js +0 -1
  593. package/.next-prod/static/chunks/app/api/files/clipboard/route-6d7aa508d9d8bcc3.js +0 -1
  594. package/.next-prod/static/chunks/app/api/files/copy/route-6d7aa508d9d8bcc3.js +0 -1
  595. package/.next-prod/static/chunks/app/api/files/delete/route-6d7aa508d9d8bcc3.js +0 -1
  596. package/.next-prod/static/chunks/app/api/files/expanded/route-6d7aa508d9d8bcc3.js +0 -1
  597. package/.next-prod/static/chunks/app/api/files/index/route-6d7aa508d9d8bcc3.js +0 -1
  598. package/.next-prod/static/chunks/app/api/files/init/route-6d7aa508d9d8bcc3.js +0 -1
  599. package/.next-prod/static/chunks/app/api/files/paste/route-6d7aa508d9d8bcc3.js +0 -1
  600. package/.next-prod/static/chunks/app/api/files/read/route-6d7aa508d9d8bcc3.js +0 -1
  601. package/.next-prod/static/chunks/app/api/files/readdir/route-6d7aa508d9d8bcc3.js +0 -1
  602. package/.next-prod/static/chunks/app/api/files/recent/route-6d7aa508d9d8bcc3.js +0 -1
  603. package/.next-prod/static/chunks/app/api/files/save/route-6d7aa508d9d8bcc3.js +0 -1
  604. package/.next-prod/static/chunks/app/api/files/search/route-6d7aa508d9d8bcc3.js +0 -1
  605. package/.next-prod/static/chunks/app/api/files/stat/route-6d7aa508d9d8bcc3.js +0 -1
  606. package/.next-prod/static/chunks/app/api/files/text/route-6d7aa508d9d8bcc3.js +0 -1
  607. package/.next-prod/static/chunks/app/api/git/branch-diff/route-6d7aa508d9d8bcc3.js +0 -1
  608. package/.next-prod/static/chunks/app/api/git/branches/route-6d7aa508d9d8bcc3.js +0 -1
  609. package/.next-prod/static/chunks/app/api/git/commit-diff/route-6d7aa508d9d8bcc3.js +0 -1
  610. package/.next-prod/static/chunks/app/api/git/commits/route-6d7aa508d9d8bcc3.js +0 -1
  611. package/.next-prod/static/chunks/app/api/git/current-branch/route-6d7aa508d9d8bcc3.js +0 -1
  612. package/.next-prod/static/chunks/app/api/git/diff/route-6d7aa508d9d8bcc3.js +0 -1
  613. package/.next-prod/static/chunks/app/api/git/discard/route-6d7aa508d9d8bcc3.js +0 -1
  614. package/.next-prod/static/chunks/app/api/git/stage/route-6d7aa508d9d8bcc3.js +0 -1
  615. package/.next-prod/static/chunks/app/api/git/status/route-6d7aa508d9d8bcc3.js +0 -1
  616. package/.next-prod/static/chunks/app/api/git/unstage/route-6d7aa508d9d8bcc3.js +0 -1
  617. package/.next-prod/static/chunks/app/api/git/worktree/route-6d7aa508d9d8bcc3.js +0 -1
  618. package/.next-prod/static/chunks/app/api/global-state/route-6d7aa508d9d8bcc3.js +0 -1
  619. package/.next-prod/static/chunks/app/api/health/route-6d7aa508d9d8bcc3.js +0 -1
  620. package/.next-prod/static/chunks/app/api/jupyter/load/route-6d7aa508d9d8bcc3.js +0 -1
  621. package/.next-prod/static/chunks/app/api/jupyter/save/route-6d7aa508d9d8bcc3.js +0 -1
  622. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-6d7aa508d9d8bcc3.js +0 -1
  623. package/.next-prod/static/chunks/app/api/lsp/definition/route-6d7aa508d9d8bcc3.js +0 -1
  624. package/.next-prod/static/chunks/app/api/lsp/hover/route-6d7aa508d9d8bcc3.js +0 -1
  625. package/.next-prod/static/chunks/app/api/lsp/references/route-6d7aa508d9d8bcc3.js +0 -1
  626. package/.next-prod/static/chunks/app/api/lsp/status/route-6d7aa508d9d8bcc3.js +0 -1
  627. package/.next-prod/static/chunks/app/api/lsp/warmup/route-6d7aa508d9d8bcc3.js +0 -1
  628. package/.next-prod/static/chunks/app/api/mysql/columns/route-6d7aa508d9d8bcc3.js +0 -1
  629. package/.next-prod/static/chunks/app/api/mysql/connect/route-6d7aa508d9d8bcc3.js +0 -1
  630. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
  631. package/.next-prod/static/chunks/app/api/mysql/export/route-6d7aa508d9d8bcc3.js +0 -1
  632. package/.next-prod/static/chunks/app/api/mysql/query/route-6d7aa508d9d8bcc3.js +0 -1
  633. package/.next-prod/static/chunks/app/api/mysql/schemas/route-6d7aa508d9d8bcc3.js +0 -1
  634. package/.next-prod/static/chunks/app/api/neo4j/connect/route-6d7aa508d9d8bcc3.js +0 -1
  635. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
  636. package/.next-prod/static/chunks/app/api/neo4j/query/route-6d7aa508d9d8bcc3.js +0 -1
  637. package/.next-prod/static/chunks/app/api/neo4j/schema/route-6d7aa508d9d8bcc3.js +0 -1
  638. package/.next-prod/static/chunks/app/api/note/route-6d7aa508d9d8bcc3.js +0 -1
  639. package/.next-prod/static/chunks/app/api/ollama/config/route-6d7aa508d9d8bcc3.js +0 -1
  640. package/.next-prod/static/chunks/app/api/ollama/models/route-6d7aa508d9d8bcc3.js +0 -1
  641. package/.next-prod/static/chunks/app/api/ollama/start/route-6d7aa508d9d8bcc3.js +0 -1
  642. package/.next-prod/static/chunks/app/api/open-cursor/route-6d7aa508d9d8bcc3.js +0 -1
  643. package/.next-prod/static/chunks/app/api/open-vscode/route-6d7aa508d9d8bcc3.js +0 -1
  644. package/.next-prod/static/chunks/app/api/pick-folder/route-6d7aa508d9d8bcc3.js +0 -1
  645. package/.next-prod/static/chunks/app/api/pinned-sessions/route-6d7aa508d9d8bcc3.js +0 -1
  646. package/.next-prod/static/chunks/app/api/preview/[...path]/route-6d7aa508d9d8bcc3.js +0 -1
  647. package/.next-prod/static/chunks/app/api/project-settings/route-6d7aa508d9d8bcc3.js +0 -1
  648. package/.next-prod/static/chunks/app/api/project-state/route-6d7aa508d9d8bcc3.js +0 -1
  649. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-6d7aa508d9d8bcc3.js +0 -1
  650. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-6d7aa508d9d8bcc3.js +0 -1
  651. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-6d7aa508d9d8bcc3.js +0 -1
  652. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-6d7aa508d9d8bcc3.js +0 -1
  653. package/.next-prod/static/chunks/app/api/projectGraph/context/route-6d7aa508d9d8bcc3.js +0 -1
  654. package/.next-prod/static/chunks/app/api/projectGraph/file/route-6d7aa508d9d8bcc3.js +0 -1
  655. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-6d7aa508d9d8bcc3.js +0 -1
  656. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-6d7aa508d9d8bcc3.js +0 -1
  657. package/.next-prod/static/chunks/app/api/projectGraph/related/route-6d7aa508d9d8bcc3.js +0 -1
  658. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-6d7aa508d9d8bcc3.js +0 -1
  659. package/.next-prod/static/chunks/app/api/projectGraph/search/route-6d7aa508d9d8bcc3.js +0 -1
  660. package/.next-prod/static/chunks/app/api/projects/route-6d7aa508d9d8bcc3.js +0 -1
  661. package/.next-prod/static/chunks/app/api/push/public-key/route-6d7aa508d9d8bcc3.js +0 -1
  662. package/.next-prod/static/chunks/app/api/push/subscribe/route-6d7aa508d9d8bcc3.js +0 -1
  663. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-6d7aa508d9d8bcc3.js +0 -1
  664. package/.next-prod/static/chunks/app/api/redis/command/route-6d7aa508d9d8bcc3.js +0 -1
  665. package/.next-prod/static/chunks/app/api/redis/connect/route-6d7aa508d9d8bcc3.js +0 -1
  666. package/.next-prod/static/chunks/app/api/redis/delete/route-6d7aa508d9d8bcc3.js +0 -1
  667. package/.next-prod/static/chunks/app/api/redis/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
  668. package/.next-prod/static/chunks/app/api/redis/get/route-6d7aa508d9d8bcc3.js +0 -1
  669. package/.next-prod/static/chunks/app/api/redis/keys/route-6d7aa508d9d8bcc3.js +0 -1
  670. package/.next-prod/static/chunks/app/api/redis/set/route-6d7aa508d9d8bcc3.js +0 -1
  671. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-6d7aa508d9d8bcc3.js +0 -1
  672. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-6d7aa508d9d8bcc3.js +0 -1
  673. package/.next-prod/static/chunks/app/api/review/[id]/route-6d7aa508d9d8bcc3.js +0 -1
  674. package/.next-prod/static/chunks/app/api/review/identify/route-6d7aa508d9d8bcc3.js +0 -1
  675. package/.next-prod/static/chunks/app/api/review/order/route-6d7aa508d9d8bcc3.js +0 -1
  676. package/.next-prod/static/chunks/app/api/review/route-6d7aa508d9d8bcc3.js +0 -1
  677. package/.next-prod/static/chunks/app/api/review/share-info/route-6d7aa508d9d8bcc3.js +0 -1
  678. package/.next-prod/static/chunks/app/api/review/users/route-6d7aa508d9d8bcc3.js +0 -1
  679. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-6d7aa508d9d8bcc3.js +0 -1
  680. package/.next-prod/static/chunks/app/api/services/config/route-6d7aa508d9d8bcc3.js +0 -1
  681. package/.next-prod/static/chunks/app/api/services/scripts/route-6d7aa508d9d8bcc3.js +0 -1
  682. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-6d7aa508d9d8bcc3.js +0 -1
  683. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-6d7aa508d9d8bcc3.js +0 -1
  684. package/.next-prod/static/chunks/app/api/session-by-path/route-6d7aa508d9d8bcc3.js +0 -1
  685. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-6d7aa508d9d8bcc3.js +0 -1
  686. package/.next-prod/static/chunks/app/api/sessions/projects/route-6d7aa508d9d8bcc3.js +0 -1
  687. package/.next-prod/static/chunks/app/api/sessions/route-6d7aa508d9d8bcc3.js +0 -1
  688. package/.next-prod/static/chunks/app/api/settings/route-6d7aa508d9d8bcc3.js +0 -1
  689. package/.next-prod/static/chunks/app/api/skills/[id]/route-6d7aa508d9d8bcc3.js +0 -1
  690. package/.next-prod/static/chunks/app/api/skills/content/route-6d7aa508d9d8bcc3.js +0 -1
  691. package/.next-prod/static/chunks/app/api/skills/route-6d7aa508d9d8bcc3.js +0 -1
  692. package/.next-prod/static/chunks/app/api/snapshots/diff/route-6d7aa508d9d8bcc3.js +0 -1
  693. package/.next-prod/static/chunks/app/api/snapshots/route-6d7aa508d9d8bcc3.js +0 -1
  694. package/.next-prod/static/chunks/app/api/terminal/aliases/route-6d7aa508d9d8bcc3.js +0 -1
  695. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-6d7aa508d9d8bcc3.js +0 -1
  696. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-6d7aa508d9d8bcc3.js +0 -1
  697. package/.next-prod/static/chunks/app/api/terminal/env/route-6d7aa508d9d8bcc3.js +0 -1
  698. package/.next-prod/static/chunks/app/api/terminal/history/route-6d7aa508d9d8bcc3.js +0 -1
  699. package/.next-prod/static/chunks/app/api/version/route-6d7aa508d9d8bcc3.js +0 -1
  700. package/.next-prod/static/chunks/app/m/page-54053828af79704f.js +0 -1
  701. package/.next-prod/static/chunks/app/manifest.webmanifest/route-6d7aa508d9d8bcc3.js +0 -1
  702. package/.next-prod/static/chunks/app/review/[id]/page-0c5d03d65758c7dc.js +0 -1
  703. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-6d7aa508d9d8bcc3.js +0 -1
  704. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-6d7aa508d9d8bcc3.js +0 -1
  705. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-6d7aa508d9d8bcc3.js +0 -1
  706. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-6d7aa508d9d8bcc3.js +0 -1
  707. package/.next-prod/static/chunks/webpack-01274185cb710e57.js +0 -1
  708. package/.next-prod/static/css/1d52d90207f3b441.css +0 -1
  709. package/.next-prod/static/sMb_F5kg6en8USwL7FYkb/_buildManifest.js +0 -1
  710. /package/.next-prod/static/{sMb_F5kg6en8USwL7FYkb → D0hP0hbht20IrPe7xUl96}/_ssgManifest.js +0 -0
@@ -1,7 +1,7 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1973],{5989:(e,t,r)=>{"use strict";let n,i;r.d(t,{XI:()=>tn,nA:()=>eY,A0:()=>eQ,Hj:()=>e0});var s=r(82159),o=r(76865),l=r(27050),a=r(63197),u=r(12894),c=r(8242);if("u">typeof WeakMap){let e=new WeakMap;n=t=>e.get(t),i=(t,r)=>(e.set(t,r),r)}else{let e=[],t=10,r=0;n=t=>{for(let r=0;r<e.length;r+=2)if(e[r]==t)return e[r+1]},i=(n,i)=>(r==t&&(r=0),e[r++]=n,e[r++]=i)}var h=class{constructor(e,t,r,n){this.width=e,this.height=t,this.map=r,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){let r=this.map[t];if(r!=e)continue;let n=t%this.width,i=t/this.width|0,s=n+1,o=i+1;for(let e=1;s<this.width&&this.map[t+e]==r;e++)s++;for(let e=1;o<this.height&&this.map[t+this.width*e]==r;e++)o++;return{left:n,top:i,right:s,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,r){let{left:n,right:i,top:s,bottom:o}=this.findCell(e);return"horiz"==t?(r<0?0==n:i==this.width)?null:this.map[s*this.width+(r<0?n-1:i)]:(r<0?0==s:o==this.height)?null:this.map[n+this.width*(r<0?s-1:o)]}rectBetween(e,t){let{left:r,right:n,top:i,bottom:s}=this.findCell(e),{left:o,right:l,top:a,bottom:u}=this.findCell(t);return{left:Math.min(r,o),top:Math.min(i,a),right:Math.max(n,l),bottom:Math.max(s,u)}}cellsInRect(e){let t=[],r={};for(let n=e.top;n<e.bottom;n++)for(let i=e.left;i<e.right;i++){let s=n*this.width+i,o=this.map[s];!r[o]&&(r[o]=!0,i==e.left&&i&&this.map[s-1]==o||n==e.top&&n&&this.map[s-this.width]==o||t.push(o))}return t}positionAt(e,t,r){for(let n=0,i=0;;n++){let s=i+r.child(n).nodeSize;if(n==e){let r=t+e*this.width,n=(e+1)*this.width;for(;r<n&&this.map[r]<i;)r++;return r==n?s-1:this.map[r]}i=s}}static get(e){return n(e)||i(e,d(e))}};function d(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=p(e),r=e.childCount,n=[],i=0,s=null,o=[];for(let e=0,i=t*r;e<i;e++)n[e]=0;for(let l=0,a=0;l<r;l++){let u=e.child(l);a++;for(let e=0;;e++){for(;i<n.length&&0!=n[i];)i++;if(e==u.childCount)break;let c=u.child(e),{colspan:h,rowspan:d,colwidth:p}=c.attrs;for(let e=0;e<d;e++){if(e+l>=r){(s||(s=[])).push({type:"overlong_rowspan",pos:a,n:d-e});break}let u=i+e*t;for(let e=0;e<h;e++){0==n[u+e]?n[u+e]=a:(s||(s=[])).push({type:"collision",row:l,pos:a,n:h-e});let r=p&&p[e];if(r){let n=(u+e)%t*2,i=o[n];null==i||i!=r&&1==o[n+1]?(o[n]=r,o[n+1]=1):i==r&&o[n+1]++}}}i+=h,a+=c.nodeSize}let c=(l+1)*t,h=0;for(;i<c;)0==n[i++]&&h++;h&&(s||(s=[])).push({type:"missing",row:l,n:h}),a++}(0===t||0===r)&&(s||(s=[])).push({type:"zero_sized"});let l=new h(t,r,n,s),a=!1;for(let e=0;!a&&e<o.length;e+=2)null!=o[e]&&o[e+1]<r&&(a=!0);return a&&f(l,o,e),l}function p(e){let t=-1,r=!1;for(let n=0;n<e.childCount;n++){let i=e.child(n),s=0;if(r)for(let t=0;t<n;t++){let r=e.child(t);for(let e=0;e<r.childCount;e++){let i=r.child(e);t+i.attrs.rowspan>n&&(s+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);s+=t.attrs.colspan,t.attrs.rowspan>1&&(r=!0)}-1==t?t=s:t!=s&&(t=Math.max(t,s))}return t}function f(e,t,r){e.problems||(e.problems=[]);let n={};for(let i=0;i<e.map.length;i++){let s=e.map[i];if(n[s])continue;n[s]=!0;let o=r.nodeAt(s);if(!o)throw RangeError(`No cell with offset ${s} found`);let l=null,a=o.attrs;for(let r=0;r<a.colspan;r++){let n=t[(i+r)%e.width*2];null==n||a.colwidth&&a.colwidth[r]==n||((l||(l=m(a)))[r]=n)}l&&e.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:l})}}function m(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let r=0;r<e.colspan;r++)t.push(0);return t}function g(e){let t=e.cached.tableNodeTypes;if(!t)for(let r in t=e.cached.tableNodeTypes={},e.nodes){let n=e.nodes[r],i=n.spec.tableRole;i&&(t[i]=n)}return t}let _=new o.hs("selectingCells");function y(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function k(e){for(let t=e.depth;t>0;t--){let r=e.node(t).type.spec.tableRole;if("cell"===r||"header_cell"===r)return e.node(t)}return null}function b(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function w(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let r=y(t.$head)||x(t.$head);if(r)return r;throw RangeError(`No cell found around position ${t.head}`)}function x(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r-t.nodeSize)}}function v(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function C(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function A(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function E(e,t,r){let n=e.node(-1),i=h.get(n),s=e.start(-1),o=i.nextCell(e.pos-s,t,r);return null==o?null:e.node(0).resolve(s+o)}function S(e,t,r=1){let n={...e,colspan:e.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,r),n.colwidth.some(e=>e>0)||(n.colwidth=null)),n}function M(e,t,r=1){let n={...e,colspan:e.colspan+r};if(n.colwidth){n.colwidth=n.colwidth.slice();for(let e=0;e<r;e++)n.colwidth.splice(t,0,0)}return n}function T(e,t,r){let n=g(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[r+i*e.width]).type!=n)return!1;return!0}var D=class e extends o.LN{constructor(e,t=e){const r=e.node(-1),n=h.get(r),i=e.start(-1),s=n.rectBetween(e.pos-i,t.pos-i),l=e.node(0),a=n.cellsInRect(s).filter(e=>e!=t.pos-i);a.unshift(t.pos-i);const u=a.map(e=>{let t=r.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let n=i+e+1;return new o.yn(l.resolve(n),l.resolve(n+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(t,r){let n=t.resolve(r.map(this.$anchorCell.pos)),i=t.resolve(r.map(this.$headCell.pos));if(v(n)&&v(i)&&A(n,i)){let t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,i):t&&this.isColSelection()?e.colSelection(n,i):new e(n,i)}return o.U3.between(n,i)}content(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),i={},s=[];for(let r=n.top;r<n.bottom;r++){let o=[];for(let s=r*t.width+n.left,l=n.left;l<n.right;l++,s++){let r=t.map[s];if(i[r])continue;i[r]=!0;let l=t.findCell(r),a=e.nodeAt(r);if(!a)throw RangeError(`No cell with offset ${r} found`);let u=n.left-l.left,c=l.right-n.right;if(u>0||c>0){let e=a.attrs;if(u>0&&(e=S(e,0,u)),c>0&&(e=S(e,e.colspan-c,c)),l.left<n.left){if(!(a=a.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else a=a.type.create(e,a.content)}if(l.top<n.top||l.bottom>n.bottom){let e={...a.attrs,rowspan:Math.min(l.bottom,n.bottom)-Math.max(l.top,n.top)};a=l.top<n.top?a.type.createAndFill(e):a.type.create(e,a.content)}o.push(a)}s.push(e.child(r).copy(l.FK.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:s;return new l.Ji(l.FK.from(o),1,1)}replace(e,t=l.Ji.empty){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],a=e.mapping.slice(r);e.replace(a.map(s.pos),a.map(o.pos),i?l.Ji.empty:t)}let i=o.LN.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new l.Ji(l.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),r=h.get(t),n=this.$anchorCell.start(-1),i=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let r=0;r<i.length;r++)e(t.nodeAt(i[r]),n+i[r])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.top<=l.top?(o.top>0&&(t=a.resolve(s+i.map[o.left])),l.bottom<i.height&&(r=a.resolve(s+i.map[i.width*(i.height-1)+l.right-1]))):(l.top>0&&(r=a.resolve(s+i.map[l.left])),o.bottom<i.height&&(t=a.resolve(s+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,r)}isRowSelection(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-r),i=t.colCount(this.$headCell.pos-r);return!(Math.min(n,i)>0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.colspan,i+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.left<=l.left?(o.left>0&&(t=a.resolve(s+i.map[o.top*i.width])),l.right<i.width&&(r=a.resolve(s+i.map[i.width*(l.top+1)-1]))):(l.left>0&&(r=a.resolve(s+i.map[l.top*i.width])),o.right<i.width&&(t=a.resolve(s+i.map[i.width*(o.top+1)-1]))),new e(t,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,r){return new e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){return new e(t.resolve(r),t.resolve(n))}getBookmark(){return new F(this.$anchorCell.pos,this.$headCell.pos)}};D.prototype.visible=!1,o.LN.jsonID("cell",D);var F=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),r=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==r.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&A(t,r)?new D(t,r):o.LN.near(r,1)}};function I(e){if(!(e.selection instanceof D))return null;let t=[];return e.selection.forEachCell((e,r)=>{t.push(a.NZ.node(r,r+e.nodeSize,{class:"selectedCell"}))}),a.zF.create(e.doc,t)}function L({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let r=e.pos,n=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,r++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,n--);return r==n&&/row|table/.test(e.node(i).type.spec.tableRole)}function R({$from:e,$to:t}){let r,n;for(let t=e.depth;t>0;t--){let n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}for(let e=t.depth;e>0;e--){let r=t.node(e);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}return r!==n&&0===t.parentOffset}function N(e,t,r){let n,i,s=(t||e).selection,l=(t||e).doc;if(s instanceof o.nh&&(i=s.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)n=D.create(l,s.from);else if("row"==i){let e=l.resolve(s.from+1);n=D.rowSelection(e,e)}else if(!r){let e=h.get(s.node),t=s.from+1,r=t+e.map[e.width*e.height-1];n=D.create(l,t+1,r)}}else s instanceof o.U3&&L(s)?n=o.U3.create(l,s.from):s instanceof o.U3&&R(s)&&(n=o.U3.create(l,s.$from.start(),s.$from.end()));return n&&(t||(t=e.tr)).setSelection(n),t}let O=new o.hs("fix-tables");function z(e,t,r,n){let i=e.childCount,s=t.childCount;e:for(let o=0,l=0;o<s;o++){let s=t.child(o);for(let t=l,n=Math.min(i,o+3);t<n;t++)if(e.child(t)==s){l=t+1,r+=s.nodeSize;continue e}n(s,r),l<i&&e.child(l).sameMarkup(s)?z(e.child(l),s,r+1,n):s.nodesBetween(0,s.content.size,n,r+1),r+=s.nodeSize}}function P(e,t){let r,n=(t,n)=>{"table"==t.type.spec.tableRole&&(r=$(e,t,n,r))};return t?t.doc!=e.doc&&z(t.doc,e.doc,0,n):e.doc.descendants(n),r}function $(e,t,r,n){let i,s,o=h.get(t);if(!o.problems)return n;n||(n=e.tr);let l=[];for(let e=0;e<o.height;e++)l.push(0);for(let e=0;e<o.problems.length;e++){let i=o.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let s=e.attrs;for(let e=0;e<s.rowspan;e++)l[i.row+e]+=i.n;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,S(s,s.colspan-i.n,i.n))}else if("missing"==i.type)l[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=n.mapping.map(r);n.delete(e,e+t.nodeSize)}}for(let e=0;e<l.length;e++)l[e]&&(null==i&&(i=e),s=e);for(let a=0,u=r+1;a<o.height;a++){let r=t.child(a),o=u+r.nodeSize,c=l[a];if(c>0){let t="cell";r.firstChild&&(t=r.firstChild.type.spec.tableRole);let l=[];for(let r=0;r<c;r++){let r=g(e.schema)[t].createAndFill();r&&l.push(r)}let h=(0==a||i==a-1)&&s==a?u+1:o-1;n.insert(n.mapping.map(h),l)}u=o}return n.setMeta(O,{fixTables:!0})}function B(e){let t=e.selection,r=w(e),n=r.node(-1),i=r.start(-1),s=h.get(n);return{...t instanceof D?s.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):s.findCell(r.pos-i),tableStart:i,map:s,table:n}}function q(e,{map:t,tableStart:r,table:n},i){let s=i>0?-1:0;T(t,n,i+s)&&(s=0==i||i==t.width?null:0);for(let o=0;o<t.height;o++){let l=o*t.width+i;if(i>0&&i<t.width&&t.map[l-1]==t.map[l]){let s=t.map[l],a=n.nodeAt(s);e.setNodeMarkup(e.mapping.map(r+s),null,M(a.attrs,i-t.colCount(s))),o+=a.attrs.rowspan-1}else{let a=null==s?g(n.type.schema).cell:n.nodeAt(t.map[l+s]).type,u=t.positionAt(o,i,n);e.insert(e.mapping.map(r+u),a.createAndFill())}}return e}function j(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.left))}return!0}function H(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.right))}return!0}function V(e,{map:t,table:r,tableStart:n},i){let s=e.mapping.maps.length;for(let o=0;o<t.height;){let l=o*t.width+i,a=t.map[l],u=r.nodeAt(a),c=u.attrs;if(i>0&&t.map[l-1]==a||i<t.width-1&&t.map[l+1]==a)e.setNodeMarkup(e.mapping.slice(s).map(n+a),null,S(c,i-t.colCount(a)));else{let t=e.mapping.slice(s).map(n+a);e.delete(t,t+u.nodeSize)}o+=c.rowspan}}function U(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.left&&r.right==r.map.width)return!1;for(let e=r.right-1;V(n,r,e),e!=r.left;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(e)}t(n)}return!0}function W(e,t,r){var n;let i=g(t.type.schema).header_cell;for(let s=0;s<e.width;s++)if((null==(n=t.nodeAt(e.map[s+r*e.width]))?void 0:n.type)!=i)return!1;return!0}function J(e,{map:t,tableStart:r,table:n},i){let s=r;for(let e=0;e<i;e++)s+=n.child(e).nodeSize;let o=[],l=i>0?-1:0;W(t,n,i+l)&&(l=0==i||i==t.height?null:0);for(let s=0,u=t.width*i;s<t.width;s++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){let i=t.map[u],o=n.nodeAt(i).attrs;e.setNodeMarkup(r+i,null,{...o,rowspan:o.rowspan+1}),s+=o.colspan-1}else{var a;let e=null==l?g(n.type.schema).cell:null==(a=n.nodeAt(t.map[u+l*t.width]))?void 0:a.type,r=null==e?void 0:e.createAndFill();r&&o.push(r)}return e.insert(s,g(n.type.schema).row.create(null,o)),e}function K(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.top))}return!0}function G(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.bottom))}return!0}function Z(e,{map:t,table:r,tableStart:n},i){let s=0;for(let e=0;e<i;e++)s+=r.child(e).nodeSize;let o=s+r.child(i).nodeSize,l=e.mapping.maps.length;e.delete(s+n,o+n);let a=new Set;for(let s=0,o=i*t.width;s<t.width;s++,o++){let u=t.map[o];if(!a.has(u)){if(a.add(u),i>0&&u==t.map[o-t.width]){let t=r.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(l).map(u+n),null,{...t,rowspan:t.rowspan-1}),s+=t.colspan-1}else if(i<t.height&&u==t.map[o+t.width]){let o=r.nodeAt(u),a=o.attrs,c=o.type.create({...a,rowspan:o.attrs.rowspan-1},o.content),h=t.positionAt(i+1,s,r);e.insert(e.mapping.slice(l).map(n+h),c),s+=a.colspan-1}}}}function X(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.top&&r.bottom==r.map.height)return!1;for(let e=r.bottom-1;Z(n,r,e),e!=r.top;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(r.table)}t(n)}return!0}function Y(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function Q({width:e,height:t,map:r},n){let i=n.top*e+n.left,s=i,o=(n.bottom-1)*e+n.left,l=i+(n.right-n.left-1);for(let t=n.top;t<n.bottom;t++){if(n.left>0&&r[s]==r[s-1]||n.right<e&&r[l]==r[l+1])return!0;s+=e,l+=e}for(let s=n.left;s<n.right;s++){if(n.top>0&&r[i]==r[i-e]||n.bottom<t&&r[o]==r[o+e])return!0;i++,o++}return!1}function ee(e,t){let r=e.selection;if(!(r instanceof D)||r.$anchorCell.pos==r.$headCell.pos)return!1;let n=B(e),{map:i}=n;if(Q(i,n))return!1;if(t){let r,s,o=e.tr,a={},u=l.FK.empty;for(let e=n.top;e<n.bottom;e++)for(let t=n.left;t<n.right;t++){let l=i.map[e*i.width+t],c=n.table.nodeAt(l);if(!a[l]&&c)if(a[l]=!0,null==r)r=l,s=c;else{Y(c)||(u=u.append(c.content));let e=o.mapping.map(l+n.tableStart);o.delete(e,e+c.nodeSize)}}if(null==r||null==s)return!0;if(o.setNodeMarkup(r+n.tableStart,null,{...M(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),rowspan:n.bottom-n.top}),u.size>0){let e=r+1+s.content.size,t=Y(s)?r+1:e;o.replaceWith(t+n.tableStart,e+n.tableStart,u)}o.setSelection(new D(o.doc.resolve(r+n.tableStart))),t(o)}return!0}function et(e,t){let r=g(e.schema);return er(({node:e})=>r[e.type.spec.tableRole])(e,t)}function er(e){return(t,r)=>{let n,i,s=t.selection;if(s instanceof D){if(s.$anchorCell.pos!=s.$headCell.pos)return!1;n=s.$anchorCell.nodeAfter,i=s.$anchorCell.pos}else{var o;if(!(n=k(s.$from)))return!1;i=null==(o=y(s.$from))?void 0:o.pos}if(null==n||null==i||1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(r){let o,l=n.attrs,a=[],u=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});let c=B(t),h=t.tr;for(let e=0;e<c.right-c.left;e++)a.push(u?{...l,colwidth:u&&u[e]?[u[e]]:null}:l);for(let t=c.top;t<c.bottom;t++){let r=c.map.positionAt(t,c.left,c.table);t==c.top&&(r+=n.nodeSize);for(let i=c.left,s=0;i<c.right;i++,s++)(i!=c.left||t!=c.top)&&h.insert(o=h.mapping.map(r+c.tableStart,1),e({node:n,row:t,col:i}).createAndFill(a[s]))}h.setNodeMarkup(i,e({node:n,row:c.top,col:c.left}),a[0]),s instanceof D&&h.setSelection(new D(h.doc.resolve(s.$anchorCell.pos),o?h.doc.resolve(o):void 0)),r(h)}return!0}}function en(e,t){return function(r,n){if(!b(r))return!1;let i=w(r);if(i.nodeAfter.attrs[e]===t)return!1;if(n){let s=r.tr;r.selection instanceof D?r.selection.forEachCell((r,n)=>{r.attrs[e]!==t&&s.setNodeMarkup(n,null,{...r.attrs,[e]:t})}):s.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),n(s)}return!0}}function ei(e){return function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),l=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)l[e].type==n.header_cell&&s.setNodeMarkup(i.tableStart+o[e],n.cell,l[e].attrs);if(0===s.steps.length)for(let e=0;e<o.length;e++)s.setNodeMarkup(i.tableStart+o[e],n.header_cell,l[e].attrs);r(s)}return!0}}function es(e,t,r){let n=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<n.length;e++){let i=t.table.nodeAt(n[e]);if(i&&i.type!==r.header_cell)return!1}return!0}function eo(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?ei(e):function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=es("row",i,n),l=es("column",i,n),a=+("column"===e?!!o:"row"===e&&!!l),u="column"==e?{left:0,top:a,right:1,bottom:i.map.height}:"row"==e?{left:a,top:0,right:i.map.width,bottom:1}:i,c="column"==e?l?n.cell:n.header_cell:"row"==e?o?n.cell:n.header_cell:n.cell;i.map.cellsInRect(u).forEach(e=>{let t=e+i.tableStart,r=s.doc.nodeAt(t);r&&s.setNodeMarkup(t,c,r.attrs)}),r(s)}return!0}}eo("row",{useDeprecatedLogic:!0}),eo("column",{useDeprecatedLogic:!0});let el=eo("cell",{useDeprecatedLogic:!0});function ea(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,r=e.before();t>=0;t--){let n=e.node(-1).child(t),i=n.lastChild;if(i)return r-1-i.nodeSize;r-=n.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let r=e.indexAfter(-1),n=e.after();r<t.childCount;r++){let e=t.child(r);if(e.childCount)return n+1;n+=e.nodeSize}}return null}function eu(e){return function(t,r){if(!b(t))return!1;let n=ea(w(t),e);if(null==n)return!1;if(r){let e=t.doc.resolve(n);r(t.tr.setSelection(o.U3.between(e,C(e))).scrollIntoView())}return!0}}function ec(e,t){let r=e.selection.$anchor;for(let n=r.depth;n>0;n--)if("table"==r.node(n).type.spec.tableRole)return t&&t(e.tr.delete(r.before(n),r.after(n)).scrollIntoView()),!0;return!1}function eh(e,t){let r=e.selection;if(!(r instanceof D))return!1;if(t){let n=e.tr,i=g(e.schema).cell.createAndFill().content;r.forEachCell((e,t)=>{e.content.eq(i)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new l.Ji(i,0,0))}),n.docChanged&&t(n)}return!0}function ed(e){if(0===e.size)return null;let{content:t,openStart:r,openEnd:n}=e;for(;1==t.childCount&&(r>0&&n>0||"table"==t.child(0).type.spec.tableRole);)r--,n--,t=t.child(0).content;let i=t.child(0),s=i.type.spec.tableRole,o=i.type.schema,a=[];if("row"==s)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,s=e?0:Math.max(0,r-1),u=e<t.childCount-1?0:Math.max(0,n-1);(s||u)&&(i=ef(g(o).row,new l.Ji(i,s,u)).content),a.push(i)}else{if("cell"!=s&&"header_cell"!=s)return null;a.push(r||n?ef(g(o).row,new l.Ji(t,r,n)).content:t)}return ep(o,a)}function ep(e,t){let r=[];for(let e=0;e<t.length;e++){let n=t[e];for(let t=n.childCount-1;t>=0;t--){let{rowspan:i,colspan:s}=n.child(t).attrs;for(let t=e;t<e+i;t++)r[t]=(r[t]||0)+s}}let n=0;for(let e=0;e<r.length;e++)n=Math.max(n,r[e]);for(let i=0;i<r.length;i++)if(i>=t.length&&t.push(l.FK.empty),r[i]<n){let s=g(e).cell.createAndFill(),o=[];for(let e=r[i];e<n;e++)o.push(s);t[i]=t[i].append(l.FK.from(o))}return{height:t.length,width:n,rows:t}}function ef(e,t){let r=e.createAndFill();return new c.dL(r).replace(0,r.content.size,t).doc}function em({width:e,height:t,rows:r},n,i){if(e!=n){let t=[],i=[];for(let e=0;e<r.length;e++){let s=r[e],o=[];for(let r=t[e]||0,i=0;r<n;i++){let l=s.child(i%s.childCount);r+l.attrs.colspan>n&&(l=l.type.createChecked(S(l.attrs,l.attrs.colspan,r+l.attrs.colspan-n),l.content)),o.push(l),r+=l.attrs.colspan;for(let r=1;r<l.attrs.rowspan;r++)t[e+r]=(t[e+r]||0)+l.attrs.colspan}i.push(l.FK.from(o))}r=i,e=n}if(t!=i){let e=[];for(let n=0,s=0;n<i;n++,s++){let o=[],a=r[s%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);n+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),o.push(t)}e.push(l.FK.from(o))}r=e,t=i}return{width:e,height:t,rows:r}}function eg(e,t,r,n,i,s,o){let a,u,c=g(e.doc.type.schema);if(i>t.width)for(let s=0,l=0;s<t.height;s++){let h,d=r.child(s);l+=d.nodeSize;let p=[];h=null==d.lastChild||d.lastChild.type==c.cell?a||(a=c.cell.createAndFill()):u||(u=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)p.push(h);e.insert(e.mapping.slice(o).map(l-1+n),p)}if(s>t.height){let h=[];for(let e=0,n=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&r.nodeAt(t.map[n+e]).type==c.header_cell;h.push(i?u||(u=c.header_cell.createAndFill()):a||(a=c.cell.createAndFill()))}let d=c.row.create(null,l.FK.from(h)),p=[];for(let e=t.height;e<s;e++)p.push(d);e.insert(e.mapping.slice(o).map(n+r.nodeSize-2),p)}return!!(a||u)}function e_(e,t,r,n,i,s,o,l){if(0==o||o==t.height)return!1;let a=!1;for(let u=i;u<s;u++){let i=o*t.width+u,s=t.map[i];if(t.map[i-t.width]==s){a=!0;let i=r.nodeAt(s),{top:c,left:h}=t.findCell(s);e.setNodeMarkup(e.mapping.slice(l).map(s+n),null,{...i.attrs,rowspan:o-c}),e.insert(e.mapping.slice(l).map(t.positionAt(o,h,r)),i.type.createAndFill({...i.attrs,rowspan:c+i.attrs.rowspan-o})),u+=i.attrs.colspan-1}}return a}function ey(e,t,r,n,i,s,o,l){if(0==o||o==t.width)return!1;let a=!1;for(let u=i;u<s;u++){let i=u*t.width+o,s=t.map[i];if(t.map[i-1]==s){a=!0;let i=r.nodeAt(s),c=t.colCount(s),h=e.mapping.slice(l).map(s+n);e.setNodeMarkup(h,null,S(i.attrs,o-c,i.attrs.colspan-(o-c))),e.insert(h+i.nodeSize,i.type.createAndFill(S(i.attrs,0,o-c))),u+=i.attrs.rowspan-1}}return a}function ek(e,t,r,n,i){let s=r?e.doc.nodeAt(r-1):e.doc;if(!s)throw Error("No table found");let o=h.get(s),{top:a,left:u}=n,c=u+i.width,d=a+i.height,p=e.tr,f=0;function m(){if(!(s=r?p.doc.nodeAt(r-1):p.doc))throw Error("No table found");o=h.get(s),f=p.mapping.maps.length}eg(p,o,s,r,c,d,0)&&m(),e_(p,o,s,r,u,c,a,f)&&m(),e_(p,o,s,r,u,c,d,f)&&m(),ey(p,o,s,r,a,d,u,f)&&m(),ey(p,o,s,r,a,d,c,f)&&m();for(let e=a;e<d;e++){let t=o.positionAt(e,u,s),n=o.positionAt(e,c,s);p.replace(p.mapping.slice(f).map(t+r),p.mapping.slice(f).map(n+r),new l.Ji(i.rows[e-a],0,0))}m(),p.setSelection(new D(p.doc.resolve(r+o.positionAt(a,u,s)),p.doc.resolve(r+o.positionAt(d-1,c-1,s)))),t(p)}let eb=(0,u.K)({ArrowLeft:ex("horiz",-1),ArrowRight:ex("horiz",1),ArrowUp:ex("vert",-1),ArrowDown:ex("vert",1),"Shift-ArrowLeft":ev("horiz",-1),"Shift-ArrowRight":ev("horiz",1),"Shift-ArrowUp":ev("vert",-1),"Shift-ArrowDown":ev("vert",1),Backspace:eh,"Mod-Backspace":eh,Delete:eh,"Mod-Delete":eh});function ew(e,t,r){return!r.eq(e.selection)&&(t&&t(e.tr.setSelection(r).scrollIntoView()),!0)}function ex(e,t){return(r,n,i)=>{if(!i)return!1;let s=r.selection;if(s instanceof D)return ew(r,n,o.LN.near(s.$headCell,t));if("horiz"!=e&&!s.empty)return!1;let l=eS(i,e,t);if(null==l)return!1;if("horiz"==e)return ew(r,n,o.LN.near(r.doc.resolve(s.head+t),t));{let i,s=r.doc.resolve(l),a=E(s,e,t);return i=a?o.LN.near(a,1):t<0?o.LN.near(r.doc.resolve(s.before(-1)),-1):o.LN.near(r.doc.resolve(s.after(-1)),1),ew(r,n,i)}}}function ev(e,t){return(r,n,i)=>{let s;if(!i)return!1;let o=r.selection;if(o instanceof D)s=o;else{let n=eS(i,e,t);if(null==n)return!1;s=new D(r.doc.resolve(n))}let l=E(s.$headCell,e,t);return!!l&&ew(r,n,new D(s.$anchorCell,l))}}function eC(e,t){let r=y(e.state.doc.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new D(r))),!0)}function eA(e,t,r){if(!b(e.state))return!1;let n=ed(r),i=e.state.selection;if(i instanceof D){n||(n={width:1,height:1,rows:[l.FK.from(ef(g(e.state.schema).cell,r))]});let t=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),o=h.get(t).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return n=em(n,o.right-o.left,o.bottom-o.top),ek(e.state,e.dispatch,s,o,n),!0}if(!n)return!1;{let t=w(e.state),r=t.start(-1);return ek(e.state,e.dispatch,r,h.get(t.node(-1)).findCell(t.pos-r),n),!0}}function eE(e,t){var r;let n;if(0!=t.button||t.ctrlKey||t.metaKey)return;let i=eM(e,t.target);if(t.shiftKey&&e.state.selection instanceof D)s(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=y(e.state.selection.$anchor))&&(null==(r=eT(e,t))?void 0:r.pos)!=n.pos)s(n,t),t.preventDefault();else if(!i)return;function s(t,r){let n=eT(e,r),i=null==_.getState(e.state);if(!n||!A(t,n))if(!i)return;else n=t;let s=new D(t,n);if(i||!e.state.selection.eq(s)){let r=e.state.tr.setSelection(s);i&&r.setMeta(_,t.pos),e.dispatch(r)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",l),null!=_.getState(e.state)&&e.dispatch(e.state.tr.setMeta(_,-1))}function l(r){let n,l=r,a=_.getState(e.state);if(null!=a)n=e.state.doc.resolve(a);else if(eM(e,l.target)!=i&&!(n=eT(e,t)))return o();n&&s(n,l)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",l)}function eS(e,t,r){if(!(e.state.selection instanceof o.U3))return null;let{$head:n}=e.state.selection;for(let i=n.depth-1;i>=0;i--){let s=n.node(i);if((r<0?n.index(i):n.indexAfter(i))!=(r<0?0:s.childCount))break;if("cell"==s.type.spec.tableRole||"header_cell"==s.type.spec.tableRole){let s=n.before(i),o="vert"==t?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(o)?s:null}}return null}function eM(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function eT(e,t){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return null;let{inside:n,pos:i}=r;return n>=0&&y(e.state.doc.resolve(n))||y(e.state.doc.resolve(i))}var eD=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),eF(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,eF(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function eF(e,t,r,n,i,s){let o=0,l=!0,a=t.firstChild,u=e.firstChild;if(u){for(let e=0,r=0;e<u.childCount;e++){let{colspan:c,colwidth:h}=u.child(e).attrs;for(let e=0;e<c;e++,r++){let u=i==r?s:h&&h[e],c=u?u+"px":"";if(o+=u||n,u||(l=!1),a)a.style.width!=c&&(a.style.width=c),a=a.nextSibling;else{let e=document.createElement("col");e.style.width=c,t.appendChild(e)}}}for(;a;){var c;let e=a.nextSibling;null==(c=a.parentNode)||c.removeChild(a),a=e}l?(r.style.width=o+"px",r.style.minWidth=""):(r.style.width="",r.style.minWidth=o+"px")}}let eI=new o.hs("tableColumnResizing");function eL({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:r=100,View:n=eD,lastColumnResizable:i=!0}={}){let s=new o.k_({key:eI,state:{init(e,t){var i;let o=null==(i=s.spec)||null==(i=i.props)?void 0:i.nodeViews,l=g(t.schema).table.name;return n&&o&&(o[l]=(e,t)=>new n(e,r,t)),new eR(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=eI.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,r)=>{eN(t,r,e,i)},mouseleave:e=>{eO(e)},mousedown:(e,n)=>{ez(e,n,t,r)}},decorations:e=>{let t=eI.getState(e);if(t&&t.activeHandle>-1)return eW(e,t.activeHandle)},nodeViews:{}}});return s}var eR=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let r=this,n=t.getMeta(eI);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(r.activeHandle,n.setDragging);if(r.activeHandle>-1&&t.docChanged){let n=t.mapping.map(r.activeHandle,-1);return v(t.doc.resolve(n))||(n=-1),new e(n,r.dragging)}return r}};function eN(e,t,r,n){if(!e.editable)return;let i=eI.getState(e.state);if(i&&!i.dragging){let s=e$(t.target),o=-1;if(s){let{left:n,right:i}=s.getBoundingClientRect();t.clientX-n<=r?o=eB(e,t,"left",r):i-t.clientX<=r&&(o=eB(e,t,"right",r))}if(o!=i.activeHandle){if(!n&&-1!==o){let t=e.state.doc.resolve(o),r=t.node(-1),n=h.get(r),i=t.start(-1);if(n.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==n.width-1)return}ej(e,o)}}}function eO(e){if(!e.editable)return;let t=eI.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&ej(e,-1)}function ez(e,t,r,n){var i;if(!e.editable)return!1;let s=null!=(i=e.dom.ownerDocument.defaultView)?i:window,o=eI.getState(e.state);if(!o||-1==o.activeHandle||o.dragging)return!1;let l=e.state.doc.nodeAt(o.activeHandle),a=eP(e,o.activeHandle,l.attrs);function u(t){s.removeEventListener("mouseup",u),s.removeEventListener("mousemove",c);let n=eI.getState(e.state);(null==n?void 0:n.dragging)&&(eH(e,n.activeHandle,eq(n.dragging,t,r)),e.dispatch(e.state.tr.setMeta(eI,{setDragging:null})))}function c(t){if(!t.which)return u(t);let i=eI.getState(e.state);if(i&&i.dragging){let s=eq(i.dragging,t,r);eV(e,i.activeHandle,s,n)}}return e.dispatch(e.state.tr.setMeta(eI,{setDragging:{startX:t.clientX,startWidth:a}})),eV(e,o.activeHandle,a,n),s.addEventListener("mouseup",u),s.addEventListener("mousemove",c),t.preventDefault(),!0}function eP(e,t,{colspan:r,colwidth:n}){let i=n&&n[n.length-1];if(i)return i;let s=e.domAtPos(t),o=s.node.childNodes[s.offset].offsetWidth,l=r;if(n)for(let e=0;e<r;e++)n[e]&&(o-=n[e],l--);return o/l}function e$(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function eB(e,t,r,n){let i="right"==r?-n:n,s=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!s)return -1;let{pos:o}=s,l=y(e.state.doc.resolve(o));if(!l)return -1;if("right"==r)return l.pos;let a=h.get(l.node(-1)),u=l.start(-1),c=a.map.indexOf(l.pos-u);return c%a.width==0?-1:u+a.map[c-1]}function eq(e,t,r){let n=t.clientX-e.startX;return Math.max(r,e.startWidth+n)}function ej(e,t){e.dispatch(e.state.tr.setMeta(eI,{setHandle:t}))}function eH(e,t,r){let n=e.state.doc.resolve(t),i=n.node(-1),s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1,a=e.state.tr;for(let e=0;e<s.height;e++){let t=e*s.width+l;if(e&&s.map[t]==s.map[t-s.width])continue;let n=s.map[t],u=i.nodeAt(n).attrs,c=1==u.colspan?0:l-s.colCount(n);if(u.colwidth&&u.colwidth[c]==r)continue;let h=u.colwidth?u.colwidth.slice():eU(u.colspan);h[c]=r,a.setNodeMarkup(o+n,null,{...u,colwidth:h})}a.docChanged&&e.dispatch(a)}function eV(e,t,r,n){let i=e.state.doc.resolve(t),s=i.node(-1),o=i.start(-1),l=h.get(s).colCount(i.pos-o)+i.nodeAfter.attrs.colspan-1,a=e.domAtPos(i.start(-1)).node;for(;a&&"TABLE"!=a.nodeName;)a=a.parentNode;a&&eF(s,a.firstChild,a,n,l,r)}function eU(e){return Array(e).fill(0)}function eW(e,t){let r=[],n=e.doc.resolve(t),i=n.node(-1);if(!i)return a.zF.empty;let s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1;for(let t=0;t<s.height;t++){let n=l+t*s.width;if((l==s.width-1||s.map[n]!=s.map[n+1])&&(0==t||s.map[n]!=s.map[n-s.width])){var u;let t=s.map[n],l=o+t+i.nodeAt(t).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null==(u=eI.getState(e))?void 0:u.dragging)&&r.push(a.NZ.node(o+t,o+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(a.NZ.widget(l,c))}}return a.zF.create(e.doc,r)}function eJ({allowTableNodeSelection:e=!1}={}){return new o.k_({key:_,state:{init:()=>null,apply(e,t){let r=e.getMeta(_);if(null!=r)return -1==r?null:r;if(null==t||!e.docChanged)return t;let{deleted:n,pos:i}=e.mapping.mapResult(t);return n?null:i}},props:{decorations:I,handleDOMEvents:{mousedown:eE},createSelectionBetween:e=>null!=_.getState(e.state)?e.state.selection:null,handleTripleClick:eC,handleKeyDown:eb,handlePaste:eA},appendTransaction:(t,r,n)=>N(n,P(n,r),e)})}function eK(e){return"left"===e||"right"===e||"center"===e?e:null}function eG(e){let t=(e.style.textAlign||"").trim().toLowerCase(),r=(e.getAttribute("align")||"").trim().toLowerCase();return eK(t||r)}function eZ(e){return eK(null==e?void 0:e.align)}function eX(){return{default:null,parseHTML:e=>eG(e),renderHTML:e=>e.align?{style:`text-align: ${e.align}`}:{}}}var eY=s.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{var t,r;let n=e.getAttribute("colwidth"),i=n?n.split(",").map(e=>parseInt(e,10)):null;if(!i){let n=null==(t=e.closest("table"))?void 0:t.querySelectorAll("colgroup > col"),i=Array.from((null==(r=e.parentElement)?void 0:r.children)||[]).indexOf(e);if(i&&i>-1&&n&&n[i]){let e=n[i].getAttribute("width");return e?[parseInt(e,10)]:null}}return i}},align:eX()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),eQ=s.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}},align:eX()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),e0=s.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,s.KV)(this.options.HTMLAttributes,e),0]}});function e1(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function e2(e,t,r,n,i,s){var o;let l=0,a=!0,u=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,r=0;e<c.childCount;e+=1){let{colspan:o,colwidth:h}=c.child(e).attrs;for(let e=0;e<o;e+=1,r+=1){let o=i===r?s:h&&h[e],c=o?`${o}px`:"";if(l+=o||n,o||(a=!1),u){if(u.style.width!==c){let[e,t]=e1(n,o);u.style.setProperty(e,t)}u=u.nextSibling}else{let e=document.createElement("col"),[r,i]=e1(n,o);e.style.setProperty(r,i),t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(o=u.parentNode)||o.removeChild(u),u=e}let h=e.attrs.style&&"string"==typeof e.attrs.style&&/\bwidth\s*:/i.test(e.attrs.style);a&&!h?(r.style.width=`${l}px`,r.style.minWidth=""):(r.style.width="",r.style.minWidth=`${l}px`)}var e3=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),e2(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,e2(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){let t=e.target,r=this.dom.contains(t),n=this.contentDOM.contains(t);return!!r&&!n&&("attributes"===e.type||"childList"===e.type||"characterData"===e.type)}};function e5(e,t,r,n){let i=0,s=!0,o=[],l=e.firstChild;if(!l)return{};for(let e=0,a=0;e<l.childCount;e+=1){let{colspan:u,colwidth:c}=l.child(e).attrs;for(let e=0;e<u;e+=1,a+=1){let l=r===a?n:c&&c[e];i+=l||t,l||(s=!1);let[u,h]=e1(t,l);o.push(["col",{style:`${u}: ${h}`}])}}return{colgroup:["colgroup",{},...o],tableWidth:s?`${i}px`:"",tableMinWidth:s?"":`${i}px`}}function e4(e,t){return t?e.createChecked(null,t):e.createAndFill()}function e6(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(r=>{let n=e.nodes[r];n.spec.tableRole&&(t[n.spec.tableRole]=n)}),e.cached.tableNodeTypes=t,t}function e8(e,t,r,n,i){let s=e6(e),o=[],l=[];for(let e=0;e<r;e+=1){let e=e4(s.cell,i);if(e&&l.push(e),n){let e=e4(s.header_cell,i);e&&o.push(e)}}let a=[];for(let e=0;e<t;e+=1)a.push(s.row.createChecked(null,n&&0===e?o:l));return s.table.createChecked(null,a)}function e9(e){return e instanceof D}var e7=({editor:e})=>{let{selection:t}=e.state;if(!e9(t))return!1;let r=0,n=(0,s.eL)(t.ranges[0].$from,e=>"table"===e.type.name);return null==n||n.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(r+=1)}),r===t.ranges.length&&(e.commands.deleteTable(),!0)},te="\x1f";function tt(e){return(e||"").replace(/\s+/g," ").trim()}var tr=function(e,t,r={}){var n;let i=null!=(n=r.cellLineSeparator)?n:te;if(!e||!e.content||0===e.content.length)return"";let s=[];e.content.forEach(e=>{let r=[];e.content&&e.content.forEach(e=>{let n="",s=tt(n=e.content&&Array.isArray(e.content)&&e.content.length>1?e.content.map(e=>t.renderChildren(e)).join(i):e.content?t.renderChildren(e.content):""),o="tableHeader"===e.type,l=eZ(e.attrs);r.push({text:s,isHeader:o,align:l})}),s.push(r)});let o=s.reduce((e,t)=>Math.max(e,t.length),0);if(0===o)return"";let l=Array(o).fill(0);s.forEach(e=>{var t;for(let r=0;r<o;r+=1){let n=((null==(t=e[r])?void 0:t.text)||"").length;n>l[r]&&(l[r]=n),l[r]<3&&(l[r]=3)}});let a=(e,t)=>e+" ".repeat(Math.max(0,t-e.length)),u=s[0],c=u.some(e=>e.isHeader),h=Array(o).fill(null);s.forEach(e=>{var t;for(let r=0;r<o;r+=1)!h[r]&&(null==(t=e[r])?void 0:t.align)&&(h[r]=e[r].align)});let d="\n",p=Array(o).fill(0).map((e,t)=>c&&u[t]&&u[t].text||"");return d+=`| ${p.map((e,t)=>a(e,l[t])).join(" | ")} |
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4304],{5989:(e,t,r)=>{"use strict";let n,i;r.d(t,{XI:()=>tn,nA:()=>eY,A0:()=>eQ,Hj:()=>e0});var s=r(82159),o=r(76865),l=r(27050),a=r(63197),u=r(12894),c=r(8242);if("u">typeof WeakMap){let e=new WeakMap;n=t=>e.get(t),i=(t,r)=>(e.set(t,r),r)}else{let e=[],t=10,r=0;n=t=>{for(let r=0;r<e.length;r+=2)if(e[r]==t)return e[r+1]},i=(n,i)=>(r==t&&(r=0),e[r++]=n,e[r++]=i)}var h=class{constructor(e,t,r,n){this.width=e,this.height=t,this.map=r,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){let r=this.map[t];if(r!=e)continue;let n=t%this.width,i=t/this.width|0,s=n+1,o=i+1;for(let e=1;s<this.width&&this.map[t+e]==r;e++)s++;for(let e=1;o<this.height&&this.map[t+this.width*e]==r;e++)o++;return{left:n,top:i,right:s,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,r){let{left:n,right:i,top:s,bottom:o}=this.findCell(e);return"horiz"==t?(r<0?0==n:i==this.width)?null:this.map[s*this.width+(r<0?n-1:i)]:(r<0?0==s:o==this.height)?null:this.map[n+this.width*(r<0?s-1:o)]}rectBetween(e,t){let{left:r,right:n,top:i,bottom:s}=this.findCell(e),{left:o,right:l,top:a,bottom:u}=this.findCell(t);return{left:Math.min(r,o),top:Math.min(i,a),right:Math.max(n,l),bottom:Math.max(s,u)}}cellsInRect(e){let t=[],r={};for(let n=e.top;n<e.bottom;n++)for(let i=e.left;i<e.right;i++){let s=n*this.width+i,o=this.map[s];!r[o]&&(r[o]=!0,i==e.left&&i&&this.map[s-1]==o||n==e.top&&n&&this.map[s-this.width]==o||t.push(o))}return t}positionAt(e,t,r){for(let n=0,i=0;;n++){let s=i+r.child(n).nodeSize;if(n==e){let r=t+e*this.width,n=(e+1)*this.width;for(;r<n&&this.map[r]<i;)r++;return r==n?s-1:this.map[r]}i=s}}static get(e){return n(e)||i(e,d(e))}};function d(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=p(e),r=e.childCount,n=[],i=0,s=null,o=[];for(let e=0,i=t*r;e<i;e++)n[e]=0;for(let l=0,a=0;l<r;l++){let u=e.child(l);a++;for(let e=0;;e++){for(;i<n.length&&0!=n[i];)i++;if(e==u.childCount)break;let c=u.child(e),{colspan:h,rowspan:d,colwidth:p}=c.attrs;for(let e=0;e<d;e++){if(e+l>=r){(s||(s=[])).push({type:"overlong_rowspan",pos:a,n:d-e});break}let u=i+e*t;for(let e=0;e<h;e++){0==n[u+e]?n[u+e]=a:(s||(s=[])).push({type:"collision",row:l,pos:a,n:h-e});let r=p&&p[e];if(r){let n=(u+e)%t*2,i=o[n];null==i||i!=r&&1==o[n+1]?(o[n]=r,o[n+1]=1):i==r&&o[n+1]++}}}i+=h,a+=c.nodeSize}let c=(l+1)*t,h=0;for(;i<c;)0==n[i++]&&h++;h&&(s||(s=[])).push({type:"missing",row:l,n:h}),a++}(0===t||0===r)&&(s||(s=[])).push({type:"zero_sized"});let l=new h(t,r,n,s),a=!1;for(let e=0;!a&&e<o.length;e+=2)null!=o[e]&&o[e+1]<r&&(a=!0);return a&&f(l,o,e),l}function p(e){let t=-1,r=!1;for(let n=0;n<e.childCount;n++){let i=e.child(n),s=0;if(r)for(let t=0;t<n;t++){let r=e.child(t);for(let e=0;e<r.childCount;e++){let i=r.child(e);t+i.attrs.rowspan>n&&(s+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);s+=t.attrs.colspan,t.attrs.rowspan>1&&(r=!0)}-1==t?t=s:t!=s&&(t=Math.max(t,s))}return t}function f(e,t,r){e.problems||(e.problems=[]);let n={};for(let i=0;i<e.map.length;i++){let s=e.map[i];if(n[s])continue;n[s]=!0;let o=r.nodeAt(s);if(!o)throw RangeError(`No cell with offset ${s} found`);let l=null,a=o.attrs;for(let r=0;r<a.colspan;r++){let n=t[(i+r)%e.width*2];null==n||a.colwidth&&a.colwidth[r]==n||((l||(l=m(a)))[r]=n)}l&&e.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:l})}}function m(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let r=0;r<e.colspan;r++)t.push(0);return t}function g(e){let t=e.cached.tableNodeTypes;if(!t)for(let r in t=e.cached.tableNodeTypes={},e.nodes){let n=e.nodes[r],i=n.spec.tableRole;i&&(t[i]=n)}return t}let _=new o.hs("selectingCells");function y(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function k(e){for(let t=e.depth;t>0;t--){let r=e.node(t).type.spec.tableRole;if("cell"===r||"header_cell"===r)return e.node(t)}return null}function b(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function w(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let r=y(t.$head)||x(t.$head);if(r)return r;throw RangeError(`No cell found around position ${t.head}`)}function x(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r-t.nodeSize)}}function v(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function C(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function A(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function E(e,t,r){let n=e.node(-1),i=h.get(n),s=e.start(-1),o=i.nextCell(e.pos-s,t,r);return null==o?null:e.node(0).resolve(s+o)}function S(e,t,r=1){let n={...e,colspan:e.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,r),n.colwidth.some(e=>e>0)||(n.colwidth=null)),n}function M(e,t,r=1){let n={...e,colspan:e.colspan+r};if(n.colwidth){n.colwidth=n.colwidth.slice();for(let e=0;e<r;e++)n.colwidth.splice(t,0,0)}return n}function T(e,t,r){let n=g(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[r+i*e.width]).type!=n)return!1;return!0}var D=class e extends o.LN{constructor(e,t=e){const r=e.node(-1),n=h.get(r),i=e.start(-1),s=n.rectBetween(e.pos-i,t.pos-i),l=e.node(0),a=n.cellsInRect(s).filter(e=>e!=t.pos-i);a.unshift(t.pos-i);const u=a.map(e=>{let t=r.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let n=i+e+1;return new o.yn(l.resolve(n),l.resolve(n+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(t,r){let n=t.resolve(r.map(this.$anchorCell.pos)),i=t.resolve(r.map(this.$headCell.pos));if(v(n)&&v(i)&&A(n,i)){let t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,i):t&&this.isColSelection()?e.colSelection(n,i):new e(n,i)}return o.U3.between(n,i)}content(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),i={},s=[];for(let r=n.top;r<n.bottom;r++){let o=[];for(let s=r*t.width+n.left,l=n.left;l<n.right;l++,s++){let r=t.map[s];if(i[r])continue;i[r]=!0;let l=t.findCell(r),a=e.nodeAt(r);if(!a)throw RangeError(`No cell with offset ${r} found`);let u=n.left-l.left,c=l.right-n.right;if(u>0||c>0){let e=a.attrs;if(u>0&&(e=S(e,0,u)),c>0&&(e=S(e,e.colspan-c,c)),l.left<n.left){if(!(a=a.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else a=a.type.create(e,a.content)}if(l.top<n.top||l.bottom>n.bottom){let e={...a.attrs,rowspan:Math.min(l.bottom,n.bottom)-Math.max(l.top,n.top)};a=l.top<n.top?a.type.createAndFill(e):a.type.create(e,a.content)}o.push(a)}s.push(e.child(r).copy(l.FK.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:s;return new l.Ji(l.FK.from(o),1,1)}replace(e,t=l.Ji.empty){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],a=e.mapping.slice(r);e.replace(a.map(s.pos),a.map(o.pos),i?l.Ji.empty:t)}let i=o.LN.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new l.Ji(l.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),r=h.get(t),n=this.$anchorCell.start(-1),i=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let r=0;r<i.length;r++)e(t.nodeAt(i[r]),n+i[r])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.top<=l.top?(o.top>0&&(t=a.resolve(s+i.map[o.left])),l.bottom<i.height&&(r=a.resolve(s+i.map[i.width*(i.height-1)+l.right-1]))):(l.top>0&&(r=a.resolve(s+i.map[l.left])),o.bottom<i.height&&(t=a.resolve(s+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,r)}isRowSelection(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-r),i=t.colCount(this.$headCell.pos-r);return!(Math.min(n,i)>0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.colspan,i+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.left<=l.left?(o.left>0&&(t=a.resolve(s+i.map[o.top*i.width])),l.right<i.width&&(r=a.resolve(s+i.map[i.width*(l.top+1)-1]))):(l.left>0&&(r=a.resolve(s+i.map[l.top*i.width])),o.right<i.width&&(t=a.resolve(s+i.map[i.width*(o.top+1)-1]))),new e(t,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,r){return new e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){return new e(t.resolve(r),t.resolve(n))}getBookmark(){return new F(this.$anchorCell.pos,this.$headCell.pos)}};D.prototype.visible=!1,o.LN.jsonID("cell",D);var F=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),r=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==r.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&A(t,r)?new D(t,r):o.LN.near(r,1)}};function I(e){if(!(e.selection instanceof D))return null;let t=[];return e.selection.forEachCell((e,r)=>{t.push(a.NZ.node(r,r+e.nodeSize,{class:"selectedCell"}))}),a.zF.create(e.doc,t)}function L({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let r=e.pos,n=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,r++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,n--);return r==n&&/row|table/.test(e.node(i).type.spec.tableRole)}function R({$from:e,$to:t}){let r,n;for(let t=e.depth;t>0;t--){let n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}for(let e=t.depth;e>0;e--){let r=t.node(e);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}return r!==n&&0===t.parentOffset}function N(e,t,r){let n,i,s=(t||e).selection,l=(t||e).doc;if(s instanceof o.nh&&(i=s.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)n=D.create(l,s.from);else if("row"==i){let e=l.resolve(s.from+1);n=D.rowSelection(e,e)}else if(!r){let e=h.get(s.node),t=s.from+1,r=t+e.map[e.width*e.height-1];n=D.create(l,t+1,r)}}else s instanceof o.U3&&L(s)?n=o.U3.create(l,s.from):s instanceof o.U3&&R(s)&&(n=o.U3.create(l,s.$from.start(),s.$from.end()));return n&&(t||(t=e.tr)).setSelection(n),t}let O=new o.hs("fix-tables");function z(e,t,r,n){let i=e.childCount,s=t.childCount;e:for(let o=0,l=0;o<s;o++){let s=t.child(o);for(let t=l,n=Math.min(i,o+3);t<n;t++)if(e.child(t)==s){l=t+1,r+=s.nodeSize;continue e}n(s,r),l<i&&e.child(l).sameMarkup(s)?z(e.child(l),s,r+1,n):s.nodesBetween(0,s.content.size,n,r+1),r+=s.nodeSize}}function P(e,t){let r,n=(t,n)=>{"table"==t.type.spec.tableRole&&(r=$(e,t,n,r))};return t?t.doc!=e.doc&&z(t.doc,e.doc,0,n):e.doc.descendants(n),r}function $(e,t,r,n){let i,s,o=h.get(t);if(!o.problems)return n;n||(n=e.tr);let l=[];for(let e=0;e<o.height;e++)l.push(0);for(let e=0;e<o.problems.length;e++){let i=o.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let s=e.attrs;for(let e=0;e<s.rowspan;e++)l[i.row+e]+=i.n;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,S(s,s.colspan-i.n,i.n))}else if("missing"==i.type)l[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=n.mapping.map(r);n.delete(e,e+t.nodeSize)}}for(let e=0;e<l.length;e++)l[e]&&(null==i&&(i=e),s=e);for(let a=0,u=r+1;a<o.height;a++){let r=t.child(a),o=u+r.nodeSize,c=l[a];if(c>0){let t="cell";r.firstChild&&(t=r.firstChild.type.spec.tableRole);let l=[];for(let r=0;r<c;r++){let r=g(e.schema)[t].createAndFill();r&&l.push(r)}let h=(0==a||i==a-1)&&s==a?u+1:o-1;n.insert(n.mapping.map(h),l)}u=o}return n.setMeta(O,{fixTables:!0})}function B(e){let t=e.selection,r=w(e),n=r.node(-1),i=r.start(-1),s=h.get(n);return{...t instanceof D?s.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):s.findCell(r.pos-i),tableStart:i,map:s,table:n}}function q(e,{map:t,tableStart:r,table:n},i){let s=i>0?-1:0;T(t,n,i+s)&&(s=0==i||i==t.width?null:0);for(let o=0;o<t.height;o++){let l=o*t.width+i;if(i>0&&i<t.width&&t.map[l-1]==t.map[l]){let s=t.map[l],a=n.nodeAt(s);e.setNodeMarkup(e.mapping.map(r+s),null,M(a.attrs,i-t.colCount(s))),o+=a.attrs.rowspan-1}else{let a=null==s?g(n.type.schema).cell:n.nodeAt(t.map[l+s]).type,u=t.positionAt(o,i,n);e.insert(e.mapping.map(r+u),a.createAndFill())}}return e}function j(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.left))}return!0}function H(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.right))}return!0}function V(e,{map:t,table:r,tableStart:n},i){let s=e.mapping.maps.length;for(let o=0;o<t.height;){let l=o*t.width+i,a=t.map[l],u=r.nodeAt(a),c=u.attrs;if(i>0&&t.map[l-1]==a||i<t.width-1&&t.map[l+1]==a)e.setNodeMarkup(e.mapping.slice(s).map(n+a),null,S(c,i-t.colCount(a)));else{let t=e.mapping.slice(s).map(n+a);e.delete(t,t+u.nodeSize)}o+=c.rowspan}}function U(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.left&&r.right==r.map.width)return!1;for(let e=r.right-1;V(n,r,e),e!=r.left;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(e)}t(n)}return!0}function W(e,t,r){var n;let i=g(t.type.schema).header_cell;for(let s=0;s<e.width;s++)if((null==(n=t.nodeAt(e.map[s+r*e.width]))?void 0:n.type)!=i)return!1;return!0}function J(e,{map:t,tableStart:r,table:n},i){let s=r;for(let e=0;e<i;e++)s+=n.child(e).nodeSize;let o=[],l=i>0?-1:0;W(t,n,i+l)&&(l=0==i||i==t.height?null:0);for(let s=0,u=t.width*i;s<t.width;s++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){let i=t.map[u],o=n.nodeAt(i).attrs;e.setNodeMarkup(r+i,null,{...o,rowspan:o.rowspan+1}),s+=o.colspan-1}else{var a;let e=null==l?g(n.type.schema).cell:null==(a=n.nodeAt(t.map[u+l*t.width]))?void 0:a.type,r=null==e?void 0:e.createAndFill();r&&o.push(r)}return e.insert(s,g(n.type.schema).row.create(null,o)),e}function K(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.top))}return!0}function G(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.bottom))}return!0}function Z(e,{map:t,table:r,tableStart:n},i){let s=0;for(let e=0;e<i;e++)s+=r.child(e).nodeSize;let o=s+r.child(i).nodeSize,l=e.mapping.maps.length;e.delete(s+n,o+n);let a=new Set;for(let s=0,o=i*t.width;s<t.width;s++,o++){let u=t.map[o];if(!a.has(u)){if(a.add(u),i>0&&u==t.map[o-t.width]){let t=r.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(l).map(u+n),null,{...t,rowspan:t.rowspan-1}),s+=t.colspan-1}else if(i<t.height&&u==t.map[o+t.width]){let o=r.nodeAt(u),a=o.attrs,c=o.type.create({...a,rowspan:o.attrs.rowspan-1},o.content),h=t.positionAt(i+1,s,r);e.insert(e.mapping.slice(l).map(n+h),c),s+=a.colspan-1}}}}function X(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.top&&r.bottom==r.map.height)return!1;for(let e=r.bottom-1;Z(n,r,e),e!=r.top;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(r.table)}t(n)}return!0}function Y(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function Q({width:e,height:t,map:r},n){let i=n.top*e+n.left,s=i,o=(n.bottom-1)*e+n.left,l=i+(n.right-n.left-1);for(let t=n.top;t<n.bottom;t++){if(n.left>0&&r[s]==r[s-1]||n.right<e&&r[l]==r[l+1])return!0;s+=e,l+=e}for(let s=n.left;s<n.right;s++){if(n.top>0&&r[i]==r[i-e]||n.bottom<t&&r[o]==r[o+e])return!0;i++,o++}return!1}function ee(e,t){let r=e.selection;if(!(r instanceof D)||r.$anchorCell.pos==r.$headCell.pos)return!1;let n=B(e),{map:i}=n;if(Q(i,n))return!1;if(t){let r,s,o=e.tr,a={},u=l.FK.empty;for(let e=n.top;e<n.bottom;e++)for(let t=n.left;t<n.right;t++){let l=i.map[e*i.width+t],c=n.table.nodeAt(l);if(!a[l]&&c)if(a[l]=!0,null==r)r=l,s=c;else{Y(c)||(u=u.append(c.content));let e=o.mapping.map(l+n.tableStart);o.delete(e,e+c.nodeSize)}}if(null==r||null==s)return!0;if(o.setNodeMarkup(r+n.tableStart,null,{...M(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),rowspan:n.bottom-n.top}),u.size>0){let e=r+1+s.content.size,t=Y(s)?r+1:e;o.replaceWith(t+n.tableStart,e+n.tableStart,u)}o.setSelection(new D(o.doc.resolve(r+n.tableStart))),t(o)}return!0}function et(e,t){let r=g(e.schema);return er(({node:e})=>r[e.type.spec.tableRole])(e,t)}function er(e){return(t,r)=>{let n,i,s=t.selection;if(s instanceof D){if(s.$anchorCell.pos!=s.$headCell.pos)return!1;n=s.$anchorCell.nodeAfter,i=s.$anchorCell.pos}else{var o;if(!(n=k(s.$from)))return!1;i=null==(o=y(s.$from))?void 0:o.pos}if(null==n||null==i||1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(r){let o,l=n.attrs,a=[],u=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});let c=B(t),h=t.tr;for(let e=0;e<c.right-c.left;e++)a.push(u?{...l,colwidth:u&&u[e]?[u[e]]:null}:l);for(let t=c.top;t<c.bottom;t++){let r=c.map.positionAt(t,c.left,c.table);t==c.top&&(r+=n.nodeSize);for(let i=c.left,s=0;i<c.right;i++,s++)(i!=c.left||t!=c.top)&&h.insert(o=h.mapping.map(r+c.tableStart,1),e({node:n,row:t,col:i}).createAndFill(a[s]))}h.setNodeMarkup(i,e({node:n,row:c.top,col:c.left}),a[0]),s instanceof D&&h.setSelection(new D(h.doc.resolve(s.$anchorCell.pos),o?h.doc.resolve(o):void 0)),r(h)}return!0}}function en(e,t){return function(r,n){if(!b(r))return!1;let i=w(r);if(i.nodeAfter.attrs[e]===t)return!1;if(n){let s=r.tr;r.selection instanceof D?r.selection.forEachCell((r,n)=>{r.attrs[e]!==t&&s.setNodeMarkup(n,null,{...r.attrs,[e]:t})}):s.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),n(s)}return!0}}function ei(e){return function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),l=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)l[e].type==n.header_cell&&s.setNodeMarkup(i.tableStart+o[e],n.cell,l[e].attrs);if(0===s.steps.length)for(let e=0;e<o.length;e++)s.setNodeMarkup(i.tableStart+o[e],n.header_cell,l[e].attrs);r(s)}return!0}}function es(e,t,r){let n=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<n.length;e++){let i=t.table.nodeAt(n[e]);if(i&&i.type!==r.header_cell)return!1}return!0}function eo(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?ei(e):function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=es("row",i,n),l=es("column",i,n),a=+("column"===e?!!o:"row"===e&&!!l),u="column"==e?{left:0,top:a,right:1,bottom:i.map.height}:"row"==e?{left:a,top:0,right:i.map.width,bottom:1}:i,c="column"==e?l?n.cell:n.header_cell:"row"==e?o?n.cell:n.header_cell:n.cell;i.map.cellsInRect(u).forEach(e=>{let t=e+i.tableStart,r=s.doc.nodeAt(t);r&&s.setNodeMarkup(t,c,r.attrs)}),r(s)}return!0}}eo("row",{useDeprecatedLogic:!0}),eo("column",{useDeprecatedLogic:!0});let el=eo("cell",{useDeprecatedLogic:!0});function ea(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,r=e.before();t>=0;t--){let n=e.node(-1).child(t),i=n.lastChild;if(i)return r-1-i.nodeSize;r-=n.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let r=e.indexAfter(-1),n=e.after();r<t.childCount;r++){let e=t.child(r);if(e.childCount)return n+1;n+=e.nodeSize}}return null}function eu(e){return function(t,r){if(!b(t))return!1;let n=ea(w(t),e);if(null==n)return!1;if(r){let e=t.doc.resolve(n);r(t.tr.setSelection(o.U3.between(e,C(e))).scrollIntoView())}return!0}}function ec(e,t){let r=e.selection.$anchor;for(let n=r.depth;n>0;n--)if("table"==r.node(n).type.spec.tableRole)return t&&t(e.tr.delete(r.before(n),r.after(n)).scrollIntoView()),!0;return!1}function eh(e,t){let r=e.selection;if(!(r instanceof D))return!1;if(t){let n=e.tr,i=g(e.schema).cell.createAndFill().content;r.forEachCell((e,t)=>{e.content.eq(i)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new l.Ji(i,0,0))}),n.docChanged&&t(n)}return!0}function ed(e){if(0===e.size)return null;let{content:t,openStart:r,openEnd:n}=e;for(;1==t.childCount&&(r>0&&n>0||"table"==t.child(0).type.spec.tableRole);)r--,n--,t=t.child(0).content;let i=t.child(0),s=i.type.spec.tableRole,o=i.type.schema,a=[];if("row"==s)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,s=e?0:Math.max(0,r-1),u=e<t.childCount-1?0:Math.max(0,n-1);(s||u)&&(i=ef(g(o).row,new l.Ji(i,s,u)).content),a.push(i)}else{if("cell"!=s&&"header_cell"!=s)return null;a.push(r||n?ef(g(o).row,new l.Ji(t,r,n)).content:t)}return ep(o,a)}function ep(e,t){let r=[];for(let e=0;e<t.length;e++){let n=t[e];for(let t=n.childCount-1;t>=0;t--){let{rowspan:i,colspan:s}=n.child(t).attrs;for(let t=e;t<e+i;t++)r[t]=(r[t]||0)+s}}let n=0;for(let e=0;e<r.length;e++)n=Math.max(n,r[e]);for(let i=0;i<r.length;i++)if(i>=t.length&&t.push(l.FK.empty),r[i]<n){let s=g(e).cell.createAndFill(),o=[];for(let e=r[i];e<n;e++)o.push(s);t[i]=t[i].append(l.FK.from(o))}return{height:t.length,width:n,rows:t}}function ef(e,t){let r=e.createAndFill();return new c.dL(r).replace(0,r.content.size,t).doc}function em({width:e,height:t,rows:r},n,i){if(e!=n){let t=[],i=[];for(let e=0;e<r.length;e++){let s=r[e],o=[];for(let r=t[e]||0,i=0;r<n;i++){let l=s.child(i%s.childCount);r+l.attrs.colspan>n&&(l=l.type.createChecked(S(l.attrs,l.attrs.colspan,r+l.attrs.colspan-n),l.content)),o.push(l),r+=l.attrs.colspan;for(let r=1;r<l.attrs.rowspan;r++)t[e+r]=(t[e+r]||0)+l.attrs.colspan}i.push(l.FK.from(o))}r=i,e=n}if(t!=i){let e=[];for(let n=0,s=0;n<i;n++,s++){let o=[],a=r[s%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);n+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),o.push(t)}e.push(l.FK.from(o))}r=e,t=i}return{width:e,height:t,rows:r}}function eg(e,t,r,n,i,s,o){let a,u,c=g(e.doc.type.schema);if(i>t.width)for(let s=0,l=0;s<t.height;s++){let h,d=r.child(s);l+=d.nodeSize;let p=[];h=null==d.lastChild||d.lastChild.type==c.cell?a||(a=c.cell.createAndFill()):u||(u=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)p.push(h);e.insert(e.mapping.slice(o).map(l-1+n),p)}if(s>t.height){let h=[];for(let e=0,n=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&r.nodeAt(t.map[n+e]).type==c.header_cell;h.push(i?u||(u=c.header_cell.createAndFill()):a||(a=c.cell.createAndFill()))}let d=c.row.create(null,l.FK.from(h)),p=[];for(let e=t.height;e<s;e++)p.push(d);e.insert(e.mapping.slice(o).map(n+r.nodeSize-2),p)}return!!(a||u)}function e_(e,t,r,n,i,s,o,l){if(0==o||o==t.height)return!1;let a=!1;for(let u=i;u<s;u++){let i=o*t.width+u,s=t.map[i];if(t.map[i-t.width]==s){a=!0;let i=r.nodeAt(s),{top:c,left:h}=t.findCell(s);e.setNodeMarkup(e.mapping.slice(l).map(s+n),null,{...i.attrs,rowspan:o-c}),e.insert(e.mapping.slice(l).map(t.positionAt(o,h,r)),i.type.createAndFill({...i.attrs,rowspan:c+i.attrs.rowspan-o})),u+=i.attrs.colspan-1}}return a}function ey(e,t,r,n,i,s,o,l){if(0==o||o==t.width)return!1;let a=!1;for(let u=i;u<s;u++){let i=u*t.width+o,s=t.map[i];if(t.map[i-1]==s){a=!0;let i=r.nodeAt(s),c=t.colCount(s),h=e.mapping.slice(l).map(s+n);e.setNodeMarkup(h,null,S(i.attrs,o-c,i.attrs.colspan-(o-c))),e.insert(h+i.nodeSize,i.type.createAndFill(S(i.attrs,0,o-c))),u+=i.attrs.rowspan-1}}return a}function ek(e,t,r,n,i){let s=r?e.doc.nodeAt(r-1):e.doc;if(!s)throw Error("No table found");let o=h.get(s),{top:a,left:u}=n,c=u+i.width,d=a+i.height,p=e.tr,f=0;function m(){if(!(s=r?p.doc.nodeAt(r-1):p.doc))throw Error("No table found");o=h.get(s),f=p.mapping.maps.length}eg(p,o,s,r,c,d,0)&&m(),e_(p,o,s,r,u,c,a,f)&&m(),e_(p,o,s,r,u,c,d,f)&&m(),ey(p,o,s,r,a,d,u,f)&&m(),ey(p,o,s,r,a,d,c,f)&&m();for(let e=a;e<d;e++){let t=o.positionAt(e,u,s),n=o.positionAt(e,c,s);p.replace(p.mapping.slice(f).map(t+r),p.mapping.slice(f).map(n+r),new l.Ji(i.rows[e-a],0,0))}m(),p.setSelection(new D(p.doc.resolve(r+o.positionAt(a,u,s)),p.doc.resolve(r+o.positionAt(d-1,c-1,s)))),t(p)}let eb=(0,u.K)({ArrowLeft:ex("horiz",-1),ArrowRight:ex("horiz",1),ArrowUp:ex("vert",-1),ArrowDown:ex("vert",1),"Shift-ArrowLeft":ev("horiz",-1),"Shift-ArrowRight":ev("horiz",1),"Shift-ArrowUp":ev("vert",-1),"Shift-ArrowDown":ev("vert",1),Backspace:eh,"Mod-Backspace":eh,Delete:eh,"Mod-Delete":eh});function ew(e,t,r){return!r.eq(e.selection)&&(t&&t(e.tr.setSelection(r).scrollIntoView()),!0)}function ex(e,t){return(r,n,i)=>{if(!i)return!1;let s=r.selection;if(s instanceof D)return ew(r,n,o.LN.near(s.$headCell,t));if("horiz"!=e&&!s.empty)return!1;let l=eS(i,e,t);if(null==l)return!1;if("horiz"==e)return ew(r,n,o.LN.near(r.doc.resolve(s.head+t),t));{let i,s=r.doc.resolve(l),a=E(s,e,t);return i=a?o.LN.near(a,1):t<0?o.LN.near(r.doc.resolve(s.before(-1)),-1):o.LN.near(r.doc.resolve(s.after(-1)),1),ew(r,n,i)}}}function ev(e,t){return(r,n,i)=>{let s;if(!i)return!1;let o=r.selection;if(o instanceof D)s=o;else{let n=eS(i,e,t);if(null==n)return!1;s=new D(r.doc.resolve(n))}let l=E(s.$headCell,e,t);return!!l&&ew(r,n,new D(s.$anchorCell,l))}}function eC(e,t){let r=y(e.state.doc.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new D(r))),!0)}function eA(e,t,r){if(!b(e.state))return!1;let n=ed(r),i=e.state.selection;if(i instanceof D){n||(n={width:1,height:1,rows:[l.FK.from(ef(g(e.state.schema).cell,r))]});let t=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),o=h.get(t).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return n=em(n,o.right-o.left,o.bottom-o.top),ek(e.state,e.dispatch,s,o,n),!0}if(!n)return!1;{let t=w(e.state),r=t.start(-1);return ek(e.state,e.dispatch,r,h.get(t.node(-1)).findCell(t.pos-r),n),!0}}function eE(e,t){var r;let n;if(0!=t.button||t.ctrlKey||t.metaKey)return;let i=eM(e,t.target);if(t.shiftKey&&e.state.selection instanceof D)s(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=y(e.state.selection.$anchor))&&(null==(r=eT(e,t))?void 0:r.pos)!=n.pos)s(n,t),t.preventDefault();else if(!i)return;function s(t,r){let n=eT(e,r),i=null==_.getState(e.state);if(!n||!A(t,n))if(!i)return;else n=t;let s=new D(t,n);if(i||!e.state.selection.eq(s)){let r=e.state.tr.setSelection(s);i&&r.setMeta(_,t.pos),e.dispatch(r)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",l),null!=_.getState(e.state)&&e.dispatch(e.state.tr.setMeta(_,-1))}function l(r){let n,l=r,a=_.getState(e.state);if(null!=a)n=e.state.doc.resolve(a);else if(eM(e,l.target)!=i&&!(n=eT(e,t)))return o();n&&s(n,l)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",l)}function eS(e,t,r){if(!(e.state.selection instanceof o.U3))return null;let{$head:n}=e.state.selection;for(let i=n.depth-1;i>=0;i--){let s=n.node(i);if((r<0?n.index(i):n.indexAfter(i))!=(r<0?0:s.childCount))break;if("cell"==s.type.spec.tableRole||"header_cell"==s.type.spec.tableRole){let s=n.before(i),o="vert"==t?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(o)?s:null}}return null}function eM(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function eT(e,t){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return null;let{inside:n,pos:i}=r;return n>=0&&y(e.state.doc.resolve(n))||y(e.state.doc.resolve(i))}var eD=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),eF(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,eF(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function eF(e,t,r,n,i,s){let o=0,l=!0,a=t.firstChild,u=e.firstChild;if(u){for(let e=0,r=0;e<u.childCount;e++){let{colspan:c,colwidth:h}=u.child(e).attrs;for(let e=0;e<c;e++,r++){let u=i==r?s:h&&h[e],c=u?u+"px":"";if(o+=u||n,u||(l=!1),a)a.style.width!=c&&(a.style.width=c),a=a.nextSibling;else{let e=document.createElement("col");e.style.width=c,t.appendChild(e)}}}for(;a;){var c;let e=a.nextSibling;null==(c=a.parentNode)||c.removeChild(a),a=e}l?(r.style.width=o+"px",r.style.minWidth=""):(r.style.width="",r.style.minWidth=o+"px")}}let eI=new o.hs("tableColumnResizing");function eL({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:r=100,View:n=eD,lastColumnResizable:i=!0}={}){let s=new o.k_({key:eI,state:{init(e,t){var i;let o=null==(i=s.spec)||null==(i=i.props)?void 0:i.nodeViews,l=g(t.schema).table.name;return n&&o&&(o[l]=(e,t)=>new n(e,r,t)),new eR(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=eI.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,r)=>{eN(t,r,e,i)},mouseleave:e=>{eO(e)},mousedown:(e,n)=>{ez(e,n,t,r)}},decorations:e=>{let t=eI.getState(e);if(t&&t.activeHandle>-1)return eW(e,t.activeHandle)},nodeViews:{}}});return s}var eR=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let r=this,n=t.getMeta(eI);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(r.activeHandle,n.setDragging);if(r.activeHandle>-1&&t.docChanged){let n=t.mapping.map(r.activeHandle,-1);return v(t.doc.resolve(n))||(n=-1),new e(n,r.dragging)}return r}};function eN(e,t,r,n){if(!e.editable)return;let i=eI.getState(e.state);if(i&&!i.dragging){let s=e$(t.target),o=-1;if(s){let{left:n,right:i}=s.getBoundingClientRect();t.clientX-n<=r?o=eB(e,t,"left",r):i-t.clientX<=r&&(o=eB(e,t,"right",r))}if(o!=i.activeHandle){if(!n&&-1!==o){let t=e.state.doc.resolve(o),r=t.node(-1),n=h.get(r),i=t.start(-1);if(n.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==n.width-1)return}ej(e,o)}}}function eO(e){if(!e.editable)return;let t=eI.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&ej(e,-1)}function ez(e,t,r,n){var i;if(!e.editable)return!1;let s=null!=(i=e.dom.ownerDocument.defaultView)?i:window,o=eI.getState(e.state);if(!o||-1==o.activeHandle||o.dragging)return!1;let l=e.state.doc.nodeAt(o.activeHandle),a=eP(e,o.activeHandle,l.attrs);function u(t){s.removeEventListener("mouseup",u),s.removeEventListener("mousemove",c);let n=eI.getState(e.state);(null==n?void 0:n.dragging)&&(eH(e,n.activeHandle,eq(n.dragging,t,r)),e.dispatch(e.state.tr.setMeta(eI,{setDragging:null})))}function c(t){if(!t.which)return u(t);let i=eI.getState(e.state);if(i&&i.dragging){let s=eq(i.dragging,t,r);eV(e,i.activeHandle,s,n)}}return e.dispatch(e.state.tr.setMeta(eI,{setDragging:{startX:t.clientX,startWidth:a}})),eV(e,o.activeHandle,a,n),s.addEventListener("mouseup",u),s.addEventListener("mousemove",c),t.preventDefault(),!0}function eP(e,t,{colspan:r,colwidth:n}){let i=n&&n[n.length-1];if(i)return i;let s=e.domAtPos(t),o=s.node.childNodes[s.offset].offsetWidth,l=r;if(n)for(let e=0;e<r;e++)n[e]&&(o-=n[e],l--);return o/l}function e$(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function eB(e,t,r,n){let i="right"==r?-n:n,s=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!s)return -1;let{pos:o}=s,l=y(e.state.doc.resolve(o));if(!l)return -1;if("right"==r)return l.pos;let a=h.get(l.node(-1)),u=l.start(-1),c=a.map.indexOf(l.pos-u);return c%a.width==0?-1:u+a.map[c-1]}function eq(e,t,r){let n=t.clientX-e.startX;return Math.max(r,e.startWidth+n)}function ej(e,t){e.dispatch(e.state.tr.setMeta(eI,{setHandle:t}))}function eH(e,t,r){let n=e.state.doc.resolve(t),i=n.node(-1),s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1,a=e.state.tr;for(let e=0;e<s.height;e++){let t=e*s.width+l;if(e&&s.map[t]==s.map[t-s.width])continue;let n=s.map[t],u=i.nodeAt(n).attrs,c=1==u.colspan?0:l-s.colCount(n);if(u.colwidth&&u.colwidth[c]==r)continue;let h=u.colwidth?u.colwidth.slice():eU(u.colspan);h[c]=r,a.setNodeMarkup(o+n,null,{...u,colwidth:h})}a.docChanged&&e.dispatch(a)}function eV(e,t,r,n){let i=e.state.doc.resolve(t),s=i.node(-1),o=i.start(-1),l=h.get(s).colCount(i.pos-o)+i.nodeAfter.attrs.colspan-1,a=e.domAtPos(i.start(-1)).node;for(;a&&"TABLE"!=a.nodeName;)a=a.parentNode;a&&eF(s,a.firstChild,a,n,l,r)}function eU(e){return Array(e).fill(0)}function eW(e,t){let r=[],n=e.doc.resolve(t),i=n.node(-1);if(!i)return a.zF.empty;let s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1;for(let t=0;t<s.height;t++){let n=l+t*s.width;if((l==s.width-1||s.map[n]!=s.map[n+1])&&(0==t||s.map[n]!=s.map[n-s.width])){var u;let t=s.map[n],l=o+t+i.nodeAt(t).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null==(u=eI.getState(e))?void 0:u.dragging)&&r.push(a.NZ.node(o+t,o+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(a.NZ.widget(l,c))}}return a.zF.create(e.doc,r)}function eJ({allowTableNodeSelection:e=!1}={}){return new o.k_({key:_,state:{init:()=>null,apply(e,t){let r=e.getMeta(_);if(null!=r)return -1==r?null:r;if(null==t||!e.docChanged)return t;let{deleted:n,pos:i}=e.mapping.mapResult(t);return n?null:i}},props:{decorations:I,handleDOMEvents:{mousedown:eE},createSelectionBetween:e=>null!=_.getState(e.state)?e.state.selection:null,handleTripleClick:eC,handleKeyDown:eb,handlePaste:eA},appendTransaction:(t,r,n)=>N(n,P(n,r),e)})}function eK(e){return"left"===e||"right"===e||"center"===e?e:null}function eG(e){let t=(e.style.textAlign||"").trim().toLowerCase(),r=(e.getAttribute("align")||"").trim().toLowerCase();return eK(t||r)}function eZ(e){return eK(null==e?void 0:e.align)}function eX(){return{default:null,parseHTML:e=>eG(e),renderHTML:e=>e.align?{style:`text-align: ${e.align}`}:{}}}var eY=s.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{var t,r;let n=e.getAttribute("colwidth"),i=n?n.split(",").map(e=>parseInt(e,10)):null;if(!i){let n=null==(t=e.closest("table"))?void 0:t.querySelectorAll("colgroup > col"),i=Array.from((null==(r=e.parentElement)?void 0:r.children)||[]).indexOf(e);if(i&&i>-1&&n&&n[i]){let e=n[i].getAttribute("width");return e?[parseInt(e,10)]:null}}return i}},align:eX()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),eQ=s.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}},align:eX()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),e0=s.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,s.KV)(this.options.HTMLAttributes,e),0]}});function e1(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function e2(e,t,r,n,i,s){var o;let l=0,a=!0,u=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,r=0;e<c.childCount;e+=1){let{colspan:o,colwidth:h}=c.child(e).attrs;for(let e=0;e<o;e+=1,r+=1){let o=i===r?s:h&&h[e],c=o?`${o}px`:"";if(l+=o||n,o||(a=!1),u){if(u.style.width!==c){let[e,t]=e1(n,o);u.style.setProperty(e,t)}u=u.nextSibling}else{let e=document.createElement("col"),[r,i]=e1(n,o);e.style.setProperty(r,i),t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(o=u.parentNode)||o.removeChild(u),u=e}let h=e.attrs.style&&"string"==typeof e.attrs.style&&/\bwidth\s*:/i.test(e.attrs.style);a&&!h?(r.style.width=`${l}px`,r.style.minWidth=""):(r.style.width="",r.style.minWidth=`${l}px`)}var e3=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),e2(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,e2(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){let t=e.target,r=this.dom.contains(t),n=this.contentDOM.contains(t);return!!r&&!n&&("attributes"===e.type||"childList"===e.type||"characterData"===e.type)}};function e5(e,t,r,n){let i=0,s=!0,o=[],l=e.firstChild;if(!l)return{};for(let e=0,a=0;e<l.childCount;e+=1){let{colspan:u,colwidth:c}=l.child(e).attrs;for(let e=0;e<u;e+=1,a+=1){let l=r===a?n:c&&c[e];i+=l||t,l||(s=!1);let[u,h]=e1(t,l);o.push(["col",{style:`${u}: ${h}`}])}}return{colgroup:["colgroup",{},...o],tableWidth:s?`${i}px`:"",tableMinWidth:s?"":`${i}px`}}function e4(e,t){return t?e.createChecked(null,t):e.createAndFill()}function e6(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(r=>{let n=e.nodes[r];n.spec.tableRole&&(t[n.spec.tableRole]=n)}),e.cached.tableNodeTypes=t,t}function e8(e,t,r,n,i){let s=e6(e),o=[],l=[];for(let e=0;e<r;e+=1){let e=e4(s.cell,i);if(e&&l.push(e),n){let e=e4(s.header_cell,i);e&&o.push(e)}}let a=[];for(let e=0;e<t;e+=1)a.push(s.row.createChecked(null,n&&0===e?o:l));return s.table.createChecked(null,a)}function e9(e){return e instanceof D}var e7=({editor:e})=>{let{selection:t}=e.state;if(!e9(t))return!1;let r=0,n=(0,s.eL)(t.ranges[0].$from,e=>"table"===e.type.name);return null==n||n.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(r+=1)}),r===t.ranges.length&&(e.commands.deleteTable(),!0)},te="\x1f";function tt(e){return(e||"").replace(/\s+/g," ").trim()}var tr=function(e,t,r={}){var n;let i=null!=(n=r.cellLineSeparator)?n:te;if(!e||!e.content||0===e.content.length)return"";let s=[];e.content.forEach(e=>{let r=[];e.content&&e.content.forEach(e=>{let n="",s=tt(n=e.content&&Array.isArray(e.content)&&e.content.length>1?e.content.map(e=>t.renderChildren(e)).join(i):e.content?t.renderChildren(e.content):""),o="tableHeader"===e.type,l=eZ(e.attrs);r.push({text:s,isHeader:o,align:l})}),s.push(r)});let o=s.reduce((e,t)=>Math.max(e,t.length),0);if(0===o)return"";let l=Array(o).fill(0);s.forEach(e=>{var t;for(let r=0;r<o;r+=1){let n=((null==(t=e[r])?void 0:t.text)||"").length;n>l[r]&&(l[r]=n),l[r]<3&&(l[r]=3)}});let a=(e,t)=>e+" ".repeat(Math.max(0,t-e.length)),u=s[0],c=u.some(e=>e.isHeader),h=Array(o).fill(null);s.forEach(e=>{var t;for(let r=0;r<o;r+=1)!h[r]&&(null==(t=e[r])?void 0:t.align)&&(h[r]=e[r].align)});let d="\n",p=Array(o).fill(0).map((e,t)=>c&&u[t]&&u[t].text||"");return d+=`| ${p.map((e,t)=>a(e,l[t])).join(" | ")} |
2
2
  | ${l.map((e,t)=>{let r=Math.max(3,e),n=h[t];return"left"===n?`:${"-".repeat(r)}`:"right"===n?`${"-".repeat(r)}:`:"center"===n?`:${"-".repeat(r)}:`:"-".repeat(r)}).join(" | ")} |
3
3
  `,(c?s.slice(1):s).forEach(e=>{d+=`| ${Array(o).fill(0).map((t,r)=>a(e[r]&&e[r].text||"",l[r])).join(" | ")} |
4
- `}),d},tn=s.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:e3,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:r,tableWidth:n,tableMinWidth:i}=e5(e,this.options.cellMinWidth),o=t.style;function l(){return o||(n?`width: ${n}`:`min-width: ${i}`)}let a=["table",(0,s.KV)(this.options.HTMLAttributes,t,{style:l()}),r,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},a]:a},parseMarkdown:(e,t)=>{let r=[],n=Array.isArray(e.align)?e.align:[];if(e.header){let i=[];e.header.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableHeader",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}return e.rows&&e.rows.forEach(e=>{let i=[];e.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableCell",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}),t.createNode("table",void 0,r)},renderMarkdown:(e,t)=>tr(e,t),addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:r=!0}={})=>({tr:n,dispatch:i,editor:s})=>{let l=e8(s.schema,e,t,r);if(i){let e=n.selection.from+1;n.replaceSelectionWith(l).scrollIntoView().setSelection(o.U3.near(n.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>j(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>H(e,t),deleteColumn:()=>({state:e,dispatch:t})=>U(e,t),addRowBefore:()=>({state:e,dispatch:t})=>K(e,t),addRowAfter:()=>({state:e,dispatch:t})=>G(e,t),deleteRow:()=>({state:e,dispatch:t})=>X(e,t),deleteTable:()=>({state:e,dispatch:t})=>ec(e,t),mergeCells:()=>({state:e,dispatch:t})=>ee(e,t),splitCell:()=>({state:e,dispatch:t})=>et(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>eo("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>eo("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>el(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!ee(e,t)||et(e,t),setCellAttribute:(e,t)=>({state:r,dispatch:n})=>en(e,t)(r,n),goToNextCell:()=>({state:e,dispatch:t})=>eu(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>eu(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&P(e),!0),setCellSelection:e=>({tr:t,dispatch:r})=>{if(r){let r=D.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:e7,"Mod-Backspace":e7,Delete:e7,"Mod-Delete":e7}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[eL({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],eJ({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,s.gk)((0,s.iI)(e,"tableRole",t))}}});s.YY.create({name:"tableKit",addExtensions(){let e=[];return!1!==this.options.table&&e.push(tn.configure(this.options.table)),!1!==this.options.tableCell&&e.push(eY.configure(this.options.tableCell)),!1!==this.options.tableHeader&&e.push(eQ.configure(this.options.tableHeader)),!1!==this.options.tableRow&&e.push(e0.configure(this.options.tableRow)),e}})},6268:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A0});var n=r(5989)},8242:(e,t,r)=>{"use strict";r.d(t,{$L:()=>Y,Ln:()=>C,N0:()=>K,Um:()=>X,Wg:()=>A,X9:()=>m,Ys:()=>w,dL:()=>eg,jP:()=>F,n9:()=>U,oM:()=>L,zy:()=>H});var n=r(27050);let i=65535,s=65536;function o(e,t){return e+t*s}function l(e){return e&i}function a(e){return(e-(e&i))/s}let u=1,c=2,h=4,d=8;class p{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&d)>0}get deletedBefore(){return(this.delInfo&(u|h))>0}get deletedAfter(){return(this.delInfo&(c|h))>0}get deletedAcross(){return(this.delInfo&h)>0}}class f{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&f.empty)return f.empty}recover(e){let t=0,r=l(e);if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+a(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?n:0);if(a>e)break;let f=this.ranges[l+i],m=this.ranges[l+s],g=a+f;if(e<=g){let i=f?e==a?-1:e==g?1:t:t,s=a+n+(i<0?0:m);if(r)return s;let _=e==(t<0?a:g)?null:o(l/3,e-a),y=e==a?c:e==g?u:h;return(t<0?e!=a:e!=g)&&(y|=d),new p(s,y,_)}n+=m-f}return r?e+n:new p(e+n,0,null)}touches(e,t){let r=0,n=l(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?r:0);if(o>e)break;let l=this.ranges[t+i];if(e<=o+l&&t==3*n)return!0;r+=this.ranges[t+s]-l}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),a=this.ranges[n+t],u=this.ranges[n+r];e(o,o+a,l,l+u),i+=u-a}}invert(){return new f(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?f.empty:new f(e<0?[0,-e,0]:[0,0,e])}}f.empty=new f([]);class m{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new m(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new p(e,n,null)}}let g=Object.create(null);class _{getMap(){return f.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=g[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in g)throw RangeError("Duplicate use of step JSON ID "+e);return g[e]=t,t.prototype.jsonID=e,t}}class y{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new y(e,null)}static fail(e){return new y(null,e)}static fromReplace(e,t,r,i){try{return y.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return y.fail(e.message);throw e}}}function k(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let s=e.child(n);s.content.size&&(s=s.copy(k(s.content,t,s))),s.isInline&&(s=t(s,r,n)),i.push(s)}return n.FK.fromArray(i)}class b extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new n.Ji(k(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,s)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new b(t.pos,r.pos,this.mark)}merge(e){return e instanceof b&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new b(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new b(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("addMark",b);class w extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(k(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,r)}invert(){return new b(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new w(t.pos,r.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("removeMark",w);class x extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new x(this.pos,t.marks[r]);return new x(this.pos,this.mark)}}return new v(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new x(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new x(t.pos,e.markFromJSON(t.mark))}}_.jsonID("addNodeMark",x);class v extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new x(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new v(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new v(t.pos,e.markFromJSON(t.mark))}}_.jsonID("removeNodeMark",v);class C extends _{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&E(e,this.from,this.to)?y.fail("Structure replace would overwrite content"):y.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new f([this.from,this.to-this.from,this.slice.size])}invert(e){return new C(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&C.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new C(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof C)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new C(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new C(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new C(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}C.MAP_BIAS=1,_.jsonID("replace",C);class A extends _{constructor(e,t,r,n,i,s,o=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=o}apply(e){if(this.structure&&(E(e,this.from,this.gapFrom)||E(e,this.gapTo,this.to)))return y.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return y.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?y.fromReplace(e,this.from,this.to,r):y.fail("Content does not fit in gap")}getMap(){return new f([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new A(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new A(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new A(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function E(e,t,r){let n=e.resolve(t),i=r-t,s=n.depth;for(;i>0&&s>0&&n.indexAfter(s)==n.node(s).childCount;)s--,i--;if(i>0){let e=n.node(s).maybeChild(n.indexAfter(s));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function S(e,t,r,n){let i,s,o=[],l=[];e.doc.nodesBetween(t,r,(e,a,u)=>{if(!e.isInline)return;let c=e.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(a,t),h=Math.min(a+e.nodeSize,r),d=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(d)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=h:o.push(i=new w(u,h,c[e])));s&&s.to==u?s.to=h:l.push(s=new b(u,h,n))}}),o.forEach(t=>e.step(t)),l.forEach(t=>e.step(t))}function M(e,t,r,i){let s=[],o=0;e.doc.nodesBetween(t,r,(e,l)=>{if(!e.isInline)return;o++;let a=null;if(i instanceof n.sX){let t=e.marks,r;for(;r=i.isInSet(t);)(a||(a=[])).push(r),t=r.removeFromSet(t)}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length){let n=Math.min(l+e.nodeSize,r);for(let e=0;e<a.length;e++){let r=a[e],i;for(let e=0;e<s.length;e++){let t=s[e];t.step==o-1&&r.eq(s[e].style)&&(i=t)}i?(i.to=n,i.step=o):s.push({style:r,from:Math.max(l,t),to:n,step:o})}}}),s.forEach(t=>e.step(new w(t.from,t.to,t.style)))}function T(e,t,r,i=r.contentMatch,s=!0){let o=e.doc.nodeAt(t),l=[],a=t+1;for(let t=0;t<o.childCount;t++){let u=o.child(t),c=a+u.nodeSize,h=i.matchType(u.type);if(h){i=h;for(let t=0;t<u.marks.length;t++)r.allowsMarkType(u.marks[t].type)||e.step(new w(a,c,u.marks[t]));if(s&&u.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),l.push(new C(a+e.index,a+e.index+e[0].length,i))}}else l.push(new C(a,c,n.Ji.empty));a=c}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(a,a,new n.Ji(t,0,0))}for(let t=l.length-1;t>=0;t--)e.step(l[t])}function D(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function F(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let s=e.$from.node(r),o=e.$from.index(r)+n,l=e.$to.indexAfter(r)-i;if(r<e.depth&&s.canReplace(o,l,t))return r;if(0==r||s.type.spec.isolating||!D(s,o,l))break;o&&(n=1),l<s.childCount&&(i=1)}return null}function I(e,t,r){let{$from:i,$to:s,depth:o}=t,l=i.before(o+1),a=s.after(o+1),u=l,c=a,h=n.FK.empty,d=0;for(let e=o,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,h=n.FK.from(i.node(e).copy(h)),d++):u--;let p=n.FK.empty,f=0;for(let e=o,t=!1;e>r;e--)t||s.after(e+1)<s.end(e)?(t=!0,p=n.FK.from(s.node(e).copy(p)),f++):c++;e.step(new A(u,c,l,a,new n.Ji(h.append(p),d,f),h.size-d,!0))}function L(e,t,r=null,n=e){let i=N(e,t),s=i&&O(n,t);return s?i.map(R).concat({type:t,attrs:r}).concat(s.map(R)):null}function R(e){return{type:e,attrs:null}}function N(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.contentMatchAt(n).findWrapping(t);if(!s)return null;let o=s.length?s[0]:t;return r.canReplaceWith(n,i,o)?s:null}function O(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.child(n),o=t.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:t).contentMatch;for(let e=n;l&&e<i;e++)l=l.matchType(r.child(e).type);return l&&l.validEnd?o:null}function z(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let s=t.start,o=t.end;e.step(new A(s,o,s,o,new n.Ji(i,0,0),r.length,!0))}function P(e,t,r,i,s){if(!i.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,r,(t,r)=>{let l="function"==typeof s?s(t):s;if(t.isTextblock&&!t.hasMarkup(i,l)&&q(e.doc,e.mapping.slice(o).map(r),i)){let s=null;if(i.schema.linebreakReplacement){let e="pre"==i.whitespace,t=!!i.contentMatch.matchType(i.schema.linebreakReplacement);e&&!t?s=!1:!e&&t&&(s=!0)}!1===s&&B(e,t,r,o),T(e,e.mapping.slice(o).map(r,1),i,void 0,null===s);let a=e.mapping.slice(o),u=a.map(r,1),c=a.map(r+t.nodeSize,1);return e.step(new A(u,c,u+1,c-1,new n.Ji(n.FK.from(i.create(l,null,t.marks)),0,0),1,!0)),!0===s&&$(e,t,r,o),!1}})}function $(e,t,r,n){t.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let i=e.mapping.slice(n).map(r+1+s+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function B(e,t,r,n){t.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+s);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function q(e,t,r){let n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}function j(e,t,r,i,s){let o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");r||(r=o.type);let l=r.create(i,null,s||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,l);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);e.step(new A(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new n.Ji(n.FK.from(l),0,0),1,!0))}function H(e,t,r=1,n){let i=e.resolve(t),s=i.depth-r,o=n&&n[n.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>s;e--,t--){let r=i.node(e),s=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(s,r.childCount),l=n&&n[t+1];l&&(o=o.replaceChild(0,l.type.create(l.attrs)));let a=n&&n[t]||r;if(!r.canReplace(s+1,r.childCount)||!a.type.validContent(o))return!1}let l=i.indexAfter(s),a=n&&n[0];return i.node(s).canReplaceWith(l,l,a?a.type:i.node(s+1).type)}function V(e,t,r=1,i){let s=e.doc.resolve(t),o=n.FK.empty,l=n.FK.empty;for(let e=s.depth,t=s.depth-r,a=r-1;e>t;e--,a--){o=n.FK.from(s.node(e).copy(o));let t=i&&i[a];l=n.FK.from(t?t.type.create(t.attrs,l):s.node(e).copy(l))}e.step(new C(t,t,new n.Ji(o.append(l),r,r),!0))}function U(e,t){let r=e.resolve(t),n=r.index();return J(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function W(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let s=t.child(i),o=s.type==n?e.type.schema.nodes.text:s.type;if(!(r=r.matchType(o))||!e.type.allowsMarks(s.marks))return!1}return r.validEnd}function J(e,t){return!!(e&&t&&!e.isLeaf&&W(e,t))}function K(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,s,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,s=n.nodeAfter):r>0?(i=n.node(e+1),o++,s=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),s=n.node(e+1)),i&&!i.isTextblock&&J(i,s)&&n.node(e).canReplace(o,o+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function G(e,t,r){let i=null,{linebreakReplacement:s}=e.doc.type.schema,o=e.doc.resolve(t-r),l=o.node().type;if(s&&l.inlineContent){let e="pre"==l.whitespace,t=!!l.contentMatch.matchType(s);e&&!t?i=!1:!e&&t&&(i=!0)}let a=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);B(e,n.node(),n.before(),a)}l.inlineContent&&T(e,t+r-1,l,o.node().contentMatchAt(o.index()),null==i);let u=e.mapping.slice(a),c=u.map(t-r);if(e.step(new C(c,u.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(c);$(e,t.node(),t.before(),e.steps.length)}return e}function Z(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}function X(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,s=n.index(t)+ +(r>0),o=n.node(t),l=!1;if(1==e)l=o.canReplace(s,s,i);else{let e=o.contentMatchAt(s).findWrapping(i.firstChild.type);l=e&&o.canReplaceWith(s,s,e[0])}if(l)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function Y(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let s=e.resolve(t),o=e.resolve(r);return Q(s,o,i)?new C(t,r,i):new ee(s,o,i).fit()}function Q(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}_.jsonID("replaceAround",A);class ee{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,l=i.depth;for(;o&&l&&1==s.childCount;)s=s.firstChild.content,o--,l--;let a=new n.Ji(s,o,l);return e>-1?new A(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new C(r.pos,i.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,i=null,s=(e=r?(i=en(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let e=this.depth;e>=0;e--){let{type:o,match:l}=this.frontier[e],a,u=null;if(1==t&&(s?l.matchType(s.type)||(u=l.fillBefore(n.FK.from(s),!1)):i&&o.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:e,parent:i,inject:u};if(2==t&&s&&(a=l.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:e,parent:i,wrap:a};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);if(i.childCount<=1&&t>0){let s=e.size-t<=t+i.size;this.unplaced=new n.Ji(et(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new n.Ji(et(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let e=0;e<s.length;e++)this.openFrontierNode(s[e]);let o=this.unplaced,l=r?r.content:o.content,a=o.openStart-e,u=0,c=[],{match:h,type:d}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));h=h.matchFragment(i)}let p=l.size+e-(o.content.size-o.openEnd);for(;u<l.childCount;){let e=l.child(u),t=h.matchType(e.type);if(!t)break;(++u>1||0==a||e.content.size)&&(h=t,c.push(ei(e.mark(d.allowedMarks(e.marks)),1==u?a:0,u==l.childCount?p:-1)))}let f=u==l.childCount;f||(p=-1),this.placed=er(this.placed,t,n.FK.from(c)),this.frontier[t].match=h,f&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=l;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?n.Ji.empty:new n.Ji(et(o.content,e-1,1),e-1,p<0?o.openEnd:e-1):new n.Ji(et(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!es(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=es(e,t,n,r,i);if(s){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=es(e,r,n,t,!0);if(!i||i.childCount)continue t}return{depth:t,fit:s,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=er(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=er(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=er(this.placed,this.frontier.length,e))}}function et(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(et(e.firstChild.content,t-1,r)))}function er(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(er(e.lastChild.content,t-1,r)))}function en(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function ei(e,t,r){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,ei(i.firstChild,t-1,1==i.childCount?r-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(n.FK.empty,!0)))),e.copy(i)}function es(e,t,r,n,i){let s=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==s.childCount&&!r.compatibleContent(s.type))return null;let l=n.fillBefore(s.content,!0,o);return l&&!eo(r,s.content,o)?l:null}function eo(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}function el(e){return e.spec.defining||e.spec.definingForContent}function ea(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let s=e.doc.resolve(t),o=e.doc.resolve(r);if(Q(s,o,i))return e.step(new C(t,r,i));let l=ed(s,o);0==l[l.length-1]&&l.pop();let a=-(s.depth+1);l.unshift(a);for(let e=s.depth,t=s.pos-1;e>0;e--,t--){let r=s.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;l.indexOf(e)>-1?a=e:s.before(e)==t&&l.splice(1,0,-e)}let u=l.indexOf(a),c=[],h=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(c.push(r),t==i.openStart)break;e=r.content}for(let e=h-1;e>=0;e--){let t=c[e],r=el(t.type);if(r&&!t.sameMarkup(s.node(Math.abs(a)-1)))h=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let a=(t+h+1)%(i.openStart+1),d=c[a];if(d)for(let t=0;t<l.length;t++){let c=l[(t+u)%l.length],h=!0;c<0&&(h=!1,c=-c);let p=s.node(c-1),f=s.index(c-1);if(p.canReplaceWith(f,f,d.type,d.marks))return e.replace(s.before(c),h?o.after(c):r,new n.Ji(eu(i.content,0,i.openStart,a),a,i.openEnd))}}let d=e.steps.length;for(let n=l.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>d));n--){let e=l[n];e<0||(t=s.before(e),r=o.after(e))}}function eu(e,t,r,i,s){if(t<r){let n=e.firstChild;e=e.replaceChild(0,n.copy(eu(n.content,t+1,r,i,n)))}if(t>i){let t=s.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}function ec(e,t,r,i){if(!i.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let n=Z(e.doc,t,i.type);null!=n&&(t=r=n)}e.replaceRange(t,r,new n.Ji(n.FK.from(i),0,0))}function eh(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let s=n.sharedDepth(r),o=!1;for(let e=n.depth;e>s;e--)n.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>s;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let s=ed(n,i);for(let t=0;t<s.length;t++){let r=s[t],o=t==s.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(o||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let s=1;s<=n.depth&&s<=i.depth;s++)if(t-n.start(s)==n.depth-s&&r>n.end(s)&&i.end(s)-r!=i.depth-s&&n.start(s-1)==i.start(s-1)&&n.node(s-1).canReplace(n.index(s-1),i.index(s-1)))return e.delete(n.before(s),r);e.delete(t,r)}function ed(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class ep extends _{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return f.empty}invert(e){return new ep(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ep(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new ep(t.pos,t.attr,t.value)}}_.jsonID("attr",ep);class ef extends _{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return y.ok(r)}getMap(){return f.empty}invert(e){return new ef(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new ef(t.attr,t.value)}}_.jsonID("docAttr",ef);let em=class extends Error{};(em=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),em.prototype.constructor=em,em.prototype.name="TransformError";class eg{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new em(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,s)=>{e=Math.min(e,i),t=Math.max(t,s)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=Y(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return ea(this,e,t,r),this}replaceRangeWith(e,t,r){return ec(this,e,t,r),this}deleteRange(e,t){return eh(this,e,t),this}lift(e,t){return I(this,e,t),this}join(e,t=1){return G(this,e,t),this}wrap(e,t){return z(this,e,t),this}setBlockType(e,t=e,r,n=null){return P(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return j(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new ep(e,t,r)),this}setDocAttribute(e,t){return this.step(new ef(e,t)),this}addNodeMark(e,t){return this.step(new x(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new v(e,t));else{let n=r.marks,i,s=[];for(;i=t.isInSet(n);)s.push(new v(e,i)),n=i.removeFromSet(n);for(let e=s.length-1;e>=0;e--)this.step(s[e])}return this}split(e,t=1,r){return V(this,e,t,r),this}addMark(e,t,r){return S(this,e,t,r),this}removeMark(e,t,r){return M(this,e,t,r),this}clearIncompatible(e,t,r){return T(this,e,t,r),this}}},9921:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],s=(0,n.A)("chevron-up",i)},10762:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],s=(0,n.A)("terminal",i)},12894:(e,t,r)=>{"use strict";r.d(t,{K:()=>_,w:()=>g});for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="u">typeof navigator&&/Mac/.test(navigator.platform),o="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)n[48+l]=n[96+l]=String(l);for(var l=1;l<=24;l++)n[l+111]="F"+l;for(var l=65;l<=90;l++)n[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var a in n)i.hasOwnProperty(a)||(i[a]=n[a]);function u(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}var c=r(76865);let h="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="u">typeof navigator&&/Win/.test(navigator.platform);function p(e){let t,r,n,i,s=e.split(/-(?!$)/),o=s[s.length-1];"Space"==o&&(o=" ");for(let e=0;e<s.length-1;e++){let o=s[e];if(/^(cmd|meta|m)$/i.test(o))i=!0;else if(/^a(lt)?$/i.test(o))t=!0;else if(/^(c|ctrl|control)$/i.test(o))r=!0;else if(/^s(hift)?$/i.test(o))n=!0;else if(/^mod$/i.test(o))h?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+o)}return t&&(o="Alt-"+o),r&&(o="Ctrl-"+o),i&&(o="Meta-"+o),n&&(o="Shift-"+o),o}function f(e){let t=Object.create(null);for(let r in e)t[p(r)]=e[r];return t}function m(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function g(e){return new c.k_({props:{handleKeyDown:_(e)}})}function _(e){let t=f(e);return function(e,r){let i=u(r),s,o=t[m(i,r)];if(o&&o(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=t[m(i,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(d&&r.ctrlKey&&r.altKey)&&(s=n[r.keyCode])&&s!=i){let n=t[m(s,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},13439:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>eh,hG:()=>ek});var n=r(12115),i=r(47650),s=r(8039),o=r(95155),l=r(82159);let{getOwnPropertyNames:a,getOwnPropertySymbols:u}=Object,{hasOwnProperty:c}=Object.prototype;function h(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function d(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:i}=n,s=i.get(t),o=i.get(r);if(s&&o)return s===r&&o===t;i.set(t,r),i.set(r,t);let l=e(t,r,n);return i.delete(t),i.delete(r),l}}function p(e){return null!=e?e[Symbol.toStringTag]:void 0}function f(e){return a(e).concat(u(e))}let m=Object.hasOwn||((e,t)=>c.call(e,t));function g(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let _="__v",y="__o",k="_owner",{getOwnPropertyDescriptor:b,keys:w}=Object;function x(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e),new Uint8Array(t))}function v(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function C(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function A(e,t){return g(e.getTime(),t.getTime())}function E(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function S(e,t){return e===t}function M(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.entries(),a=0;for(;(n=l.next())&&!n.done;){let s=t.entries(),l=!1,u=0;for(;(i=s.next())&&!i.done;){if(o[u]){u++;continue}let s=n.value,c=i.value;if(r.equals(s[0],c[0],a,u,e,t,r)&&r.equals(s[1],c[1],s[0],c[0],e,t,r)){l=o[u]=!0;break}u++}if(!l)return!1;a++}return!0}let T=g;function D(e,t,r){let n=w(e),i=n.length;if(w(t).length!==i)return!1;for(;i-- >0;)if(!z(e,t,r,n[i]))return!1;return!0}function F(e,t,r){let n,i,s,o=f(e),l=o.length;if(f(t).length!==l)return!1;for(;l-- >0;)if(!z(e,t,r,n=o[l])||(i=b(e,n),s=b(t,n),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function I(e,t){return g(e.valueOf(),t.valueOf())}function L(e,t){return e.source===t.source&&e.flags===t.flags}function R(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.values();for(;(n=l.next())&&!n.done;){let s=t.values(),l=!1,a=0;for(;(i=s.next())&&!i.done;){if(!o[a]&&r.equals(n.value,i.value,n.value,i.value,e,t,r)){l=o[a]=!0;break}a++}if(!l)return!1}return!0}function N(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function O(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function z(e,t,r,n){return(n===k||n===y||n===_)&&(!!e.$$typeof||!!t.$$typeof)||m(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let P="[object ArrayBuffer]",$="[object Arguments]",B="[object Boolean]",q="[object DataView]",j="[object Date]",H="[object Error]",V="[object Map]",U="[object Number]",W="[object Object]",J="[object RegExp]",K="[object Set]",G="[object String]",Z={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},X="[object URL]",Y=Object.prototype.toString;function Q({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:a,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:h,areTypedArraysEqual:d,areUrlsEqual:f,unknownTagComparators:m}){return function(g,_,y){if(g===_)return!0;if(null==g||null==_)return!1;let k=typeof g;if(k!==typeof _)return!1;if("object"!==k)return"number"===k?l(g,_,y):"function"===k&&s(g,_,y);let b=g.constructor;if(b!==_.constructor)return!1;if(b===Object)return a(g,_,y);if(Array.isArray(g))return t(g,_,y);if(b===Date)return n(g,_,y);if(b===RegExp)return c(g,_,y);if(b===Map)return o(g,_,y);if(b===Set)return h(g,_,y);let w=Y.call(g);if(w===j)return n(g,_,y);if(w===J)return c(g,_,y);if(w===V)return o(g,_,y);if(w===K)return h(g,_,y);if(w===W)return"function"!=typeof g.then&&"function"!=typeof _.then&&a(g,_,y);if(w===X)return f(g,_,y);if(w===H)return i(g,_,y);if(w===$)return a(g,_,y);if(Z[w])return d(g,_,y);if(w===P)return e(g,_,y);if(w===q)return r(g,_,y);if(w===B||w===U||w===G)return u(g,_,y);if(m){let e=m[w];if(!e){let t=p(g);t&&(e=m[t])}if(e)return e(g,_,y)}return!1}}function ee({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:x,areArraysEqual:r?F:v,areDataViewsEqual:C,areDatesEqual:A,areErrorsEqual:E,areFunctionsEqual:S,areMapsEqual:r?h(M,F):M,areNumbersEqual:T,areObjectsEqual:r?F:D,arePrimitiveWrappersEqual:I,areRegExpsEqual:L,areSetsEqual:r?h(R,F):R,areTypedArraysEqual:r?h(N,F):N,areUrlsEqual:O,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=d(n.areArraysEqual),t=d(n.areMapsEqual),r=d(n.areObjectsEqual),i=d(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:i})}return n}function et(e){return function(t,r,n,i,s,o,l){return e(t,r,l)}}function er({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,o){let{cache:l=e?new WeakMap:void 0,meta:a}=r();return t(s,o,{cache:l,equals:n,meta:a,strict:i})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};let s={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,r){return t(e,r,s)}}let en=ei();function ei(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,s=Q(ee(e)),o=r?r(s):et(s);return er({circular:t,comparator:s,createState:n,equals:o,strict:i})}ei({strict:!0}),ei({circular:!0}),ei({circular:!0,strict:!0}),ei({createInternalComparator:()=>g}),ei({strict:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g,strict:!0});var es=r(94577),eo=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},el=({contentComponent:e})=>{let t=(0,s.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,o.jsx)(o.Fragment,{children:Object.values(t)})};function ea(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(r,n){t={...t,[r]:i.createPortal(n.reactElement,n.element,r)},e.forEach(e=>e())},removeRenderer(r){let n={...t};delete n[r],t=n,e.forEach(e=>e())}}}var eu=class extends n.Component{constructor(e){super(e),this.editorContentRef=n.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=ea(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;let t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){let{editor:e,innerRef:t,...r}=this.props;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:eo(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&(0,o.jsx)(el,{contentComponent:e.contentComponent})]})}},ec=(0,n.forwardRef)((e,t)=>{let r=n.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return n.createElement(eu,{key:r,innerRef:t,...e})}),eh=n.memo(ec),ed="u">typeof window?n.useLayoutEffect:n.useEffect,ep=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function ef(e){var t;let[r]=(0,n.useState)(()=>new ep(e.editor)),i=(0,es.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:en);return ed(()=>r.watch(e.editor),[e.editor,r]),(0,n.useDebugValue)(i),i}var em=!1,eg="u"<typeof window,e_=eg||!!("u">typeof window&&window.next),ey=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender){if(eg||e_){if(em)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&eg&&em)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBeforeCreate)?void 0:r.call(t,...e)},onBlur:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBlur)?void 0:r.call(t,...e)},onCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onCreate)?void 0:r.call(t,...e)},onDestroy:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDestroy)?void 0:r.call(t,...e)},onFocus:(...e)=>{var t,r;return null==(r=(t=this.options.current).onFocus)?void 0:r.call(t,...e)},onSelectionUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onSelectionUpdate)?void 0:r.call(t,...e)},onTransaction:(...e)=>{var t,r;return null==(r=(t=this.options.current).onTransaction)?void 0:r.call(t,...e)},onUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUpdate)?void 0:r.call(t,...e)},onContentError:(...e)=>{var t,r;return null==(r=(t=this.options.current).onContentError)?void 0:r.call(t,...e)},onDrop:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDrop)?void 0:r.call(t,...e)},onPaste:(...e)=>{var t,r;return null==(r=(t=this.options.current).onPaste)?void 0:r.call(t,...e)},onDelete:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDelete)?void 0:r.call(t,...e)}};return new l.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function ek(e={},t=[]){let r=(0,n.useRef)(e);r.current=e;let[i]=(0,n.useState)(()=>new ey(r)),o=(0,s.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(o),(0,n.useEffect)(i.onRender(t)),ef({editor:o,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),o}var eb=(0,n.createContext)({editor:null});eb.Consumer;var ew=(0,n.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),ex=()=>(0,n.useContext)(ew);n.forwardRef((e,t)=>{let{onDragStart:r}=ex(),n=e.as||"div";return(0,o.jsx)(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})}),n.createContext({markViewContentRef:()=>{}}),l.Db,l.Yv;var ev=(0,n.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});ev.displayName="TiptapContext";var eC=()=>(0,n.useContext)(ev);function eA({editor:e,instance:t,children:r}){let i=null!=e?e:t;if(!i)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let s=(0,n.useMemo)(()=>({editor:i}),[i]),l=(0,n.useMemo)(()=>({editor:i}),[i]);return(0,o.jsx)(eb.Provider,{value:l,children:(0,o.jsx)(ev.Provider,{value:s,children:r})})}function eE({...e}){let{editor:t}=eC();return(0,o.jsx)(eh,{editor:t,...e})}eA.displayName="Tiptap",eE.displayName="Tiptap.Content",Object.assign(eA,{Content:eE})},14066:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var C,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION,process=__webpack_require__(41463),__defProp=Object.defineProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:e,oldEndIndex:t,newEndIndex:r,startPosition:n,oldEndPosition:i,newEndPosition:s}){this.startIndex=e>>>0,this.oldEndIndex=t>>>0,this.newEndIndex=r>>>0,this.startPosition=n,this.oldEndPosition=i,this.newEndPosition=s}editPoint(e,t){let r=t,n={...e};if(t>=this.oldEndIndex){r=this.newEndIndex+(t-this.oldEndIndex);let i=e.row;n.row=this.newEndPosition.row+(e.row-this.oldEndPosition.row),n.column=i===this.oldEndPosition.row?this.newEndPosition.column+(e.column-this.oldEndPosition.column):e.column}else t>this.startIndex&&(r=this.newEndIndex,n.row=this.newEndPosition.row,n.column=this.newEndPosition.column);return{point:n,index:r}}editRange(e){let t={startIndex:e.startIndex,startPosition:{...e.startPosition},endIndex:e.endIndex,endPosition:{...e.endPosition}};return e.endIndex>=this.oldEndIndex?e.endIndex!==Number.MAX_SAFE_INTEGER&&(t.endIndex=this.newEndIndex+(e.endIndex-this.oldEndIndex),t.endPosition={row:this.newEndPosition.row+(e.endPosition.row-this.oldEndPosition.row),column:e.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.endPosition.column-this.oldEndPosition.column):e.endPosition.column},t.endIndex<this.newEndIndex&&(t.endIndex=Number.MAX_SAFE_INTEGER,t.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.endIndex>this.startIndex&&(t.endIndex=this.startIndex,t.endPosition={...this.startPosition}),e.startIndex>=this.oldEndIndex?(t.startIndex=this.newEndIndex+(e.startIndex-this.oldEndIndex),t.startPosition={row:this.newEndPosition.row+(e.startPosition.row-this.oldEndPosition.row),column:e.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.startPosition.column-this.oldEndPosition.column):e.startPosition.column},t.startIndex<this.newEndIndex&&(t.startIndex=Number.MAX_SAFE_INTEGER,t.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.startIndex>this.startIndex&&(t.startIndex=this.startIndex,t.startPosition={...this.startPosition}),t}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL");function assertInternal(e){if(e!==INTERNAL)throw Error("Illegal constructor")}function isPoint(e){return!!e&&"number"==typeof e.row&&"number"==typeof e.column}function setModule(e){C=e}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}resetState(e){return!!C._ts_lookahead_iterator_reset_state(this[0],e)}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(e,t,r,n){let i=r-t,s=e.textCallback(t,n);if(s){for(t+=s.length;t<r;){let r=e.textCallback(t,n);if(r&&r.length>0)t+=r.length,s+=r;else break}t>r&&(s=s.slice(0,i))}return s??""}__name(getText,"getText");var Tree=class _Tree{static{__name(this,"Tree")}0=0;textCallback;language;constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){return new _Tree(INTERNAL,C._ts_tree_copy(this[0]),this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(e){if(!(e instanceof _Tree))throw TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}},TreeCursor=class _TreeCursor{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}copy(){let e=new _TreeCursor(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(e),e}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);let e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);let r=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,e,t,r)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoFirstChildForIndex(e){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");let t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);let t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(e,{id:t,tree:r,startIndex:n,startPosition:i,other:s}){assertInternal(e),this[0]=s,this.id=t,this.tree=r,this.startIndex=n,this.startPosition=i}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(e){return this.tree===e.tree&&this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);let t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}fieldNameForNamedChild(e){marshalNode(this);let t=C._ts_node_field_name_for_named_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}childrenForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t=ZERO_POINT,r=ZERO_POINT){Array.isArray(e)||(e=[e]);let n=[],i=this.tree.language.types;for(let t of e)"ERROR"==t&&n.push(65535);for(let t=0,r=i.length;t<r;t++)e.includes(i[t])&&n.push(t);let s=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)C.setValue(s+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],s,n.length,t.row,t.column,r.row,r.column);let o=C.getValue(TRANSFER_BUFFER,"i32"),l=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=Array(o);if(o>0){let e=l;for(let t=0;t<o;t++)a[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(l),C._free(s),a}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(e){return marshalNode(this),marshalNode(e,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(e){if(this.startIndex>=e.oldEndIndex){let t,r;this.startIndex=e.newEndIndex+(this.startIndex-e.oldEndIndex),this.startPosition.row>e.oldEndPosition.row?(t=this.startPosition.row-e.oldEndPosition.row,r=this.startPosition.column):(t=0,r=this.startPosition.column,this.startPosition.column>=e.oldEndPosition.column&&(r=this.startPosition.column-e.oldEndPosition.column)),t>0?(this.startPosition.row+=t,this.startPosition.column=r):this.startPosition.column+=r}else this.startIndex>e.startIndex&&(this.startIndex=e.newEndIndex,this.startPosition.row=e.newEndPosition.row,this.startPosition.column=e.newEndPosition.column)}toString(){marshalNode(this);let e=C._ts_node_to_string_wasm(this.tree[0]),t=C.AsciiToString(e);return C._free(e),t}};function unmarshalCaptures(e,t,r,n,i){for(let s=0,o=i.length;s<o;s++){let o=C.getValue(r,"i32"),l=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,i[s]={patternIndex:n,name:e.captureNames[o],node:l}}return r}function marshalNode(e,t=0){let r=TRANSFER_BUFFER+t*SIZE_OF_NODE;C.setValue(r,e.id,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startIndex,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.row,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.column,"i32"),r+=SIZE_OF_INT,C.setValue(r,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){let r=C.getValue(t,"i32");if(t+=SIZE_OF_INT,0===r)return null;let n=C.getValue(t,"i32");t+=SIZE_OF_INT;let i=C.getValue(t,"i32");t+=SIZE_OF_INT;let s=C.getValue(t,"i32");return t+=SIZE_OF_INT,new Node(INTERNAL,{id:r,tree:e,startIndex:n,startPosition:{row:i,column:s},other:C.getValue(t,"i32")})}function marshalTreeCursor(e,t=TRANSFER_BUFFER){C.setValue(t+0*SIZE_OF_INT,e[0],"i32"),C.setValue(t+ +SIZE_OF_INT,e[1],"i32"),C.setValue(t+2*SIZE_OF_INT,e[2],"i32"),C.setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=C.getValue(TRANSFER_BUFFER+ +SIZE_OF_INT,"i32"),e[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){C.setValue(e,t.row,"i32"),C.setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:C.getValue(e,"i32")>>>0,column:C.getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),e+=SIZE_OF_POINT,C.setValue(e,t.startIndex,"i32"),e+=SIZE_OF_INT,C.setValue(e,t.endIndex,"i32")}function unmarshalRange(e){let t={};return t.startPosition=unmarshalPoint(e),t.endPosition=unmarshalPoint(e+=SIZE_OF_POINT),e+=SIZE_OF_POINT,t.startIndex=C.getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=C.getValue(e,"i32")>>>0,t}function marshalEdit(e,t=TRANSFER_BUFFER){marshalPoint(t,e.startPosition),marshalPoint(t+=SIZE_OF_POINT,e.oldEndPosition),marshalPoint(t+=SIZE_OF_POINT,e.newEndPosition),t+=SIZE_OF_POINT,C.setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.newEndIndex,"i32")}function unmarshalLanguageMetadata(e){let t=C.getValue(e,"i32");return{major_version:t,minor_version:C.getValue(e+=SIZE_OF_INT,"i32"),patch_version:C.getValue(e+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class _Language{static{__name(this,"Language")}0=0;types;fields;constructor(e,t){assertInternal(e),this[0]=t,this.types=Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)2>C._ts_language_symbol_type(this[0],e)&&(this.types[e]=C.UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);0!==t?this.fields[e]=C.UTF8ToString(t):this.fields[e]=null}}get name(){let e=C._ts_language_name(this[0]);return 0===e?null:C.UTF8ToString(e)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){return(C._ts_language_metadata_wasm(this[0]),0===C.getValue(TRANSFER_BUFFER,"i32"))?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){let t=this.fields.indexOf(e);return -1!==t?t:null}fieldNameForId(e){return this.fields[e]??null}idForNodeType(e,t){let r=C.lengthBytesUTF8(e),n=C._malloc(r+1);C.stringToUTF8(e,n,r+1);let i=C._ts_language_symbol_for_name(this[0],n,r,+!!t);return C._free(n),i||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){let t=C._ts_language_symbol_name(this[0],e);return t?C.UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=C.getValue(n,"i16"),n+=SIZE_OF_SHORT}return r}subtypes(e){C._ts_language_subtypes_wasm(this[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=C.getValue(e,"i16"),e+=SIZE_OF_SHORT}return n}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){let t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterator(INTERNAL,t,this):null}static async load(e){let t;if(e instanceof Uint8Array)t=e;else if(globalThis.process?.versions.node){let r=await __webpack_require__.e(480).then(__webpack_require__.t.bind(__webpack_require__,80480,19));t=await r.readFile(e)}else{let r=await fetch(e);if(!r.ok){let e=await r.text();throw Error(`Language.load failed with status ${r.status}.
4
+ `}),d},tn=s.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:e3,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:r,tableWidth:n,tableMinWidth:i}=e5(e,this.options.cellMinWidth),o=t.style;function l(){return o||(n?`width: ${n}`:`min-width: ${i}`)}let a=["table",(0,s.KV)(this.options.HTMLAttributes,t,{style:l()}),r,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},a]:a},parseMarkdown:(e,t)=>{let r=[],n=Array.isArray(e.align)?e.align:[];if(e.header){let i=[];e.header.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableHeader",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}return e.rows&&e.rows.forEach(e=>{let i=[];e.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableCell",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}),t.createNode("table",void 0,r)},renderMarkdown:(e,t)=>tr(e,t),addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:r=!0}={})=>({tr:n,dispatch:i,editor:s})=>{let l=e8(s.schema,e,t,r);if(i){let e=n.selection.from+1;n.replaceSelectionWith(l).scrollIntoView().setSelection(o.U3.near(n.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>j(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>H(e,t),deleteColumn:()=>({state:e,dispatch:t})=>U(e,t),addRowBefore:()=>({state:e,dispatch:t})=>K(e,t),addRowAfter:()=>({state:e,dispatch:t})=>G(e,t),deleteRow:()=>({state:e,dispatch:t})=>X(e,t),deleteTable:()=>({state:e,dispatch:t})=>ec(e,t),mergeCells:()=>({state:e,dispatch:t})=>ee(e,t),splitCell:()=>({state:e,dispatch:t})=>et(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>eo("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>eo("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>el(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!ee(e,t)||et(e,t),setCellAttribute:(e,t)=>({state:r,dispatch:n})=>en(e,t)(r,n),goToNextCell:()=>({state:e,dispatch:t})=>eu(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>eu(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&P(e),!0),setCellSelection:e=>({tr:t,dispatch:r})=>{if(r){let r=D.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:e7,"Mod-Backspace":e7,Delete:e7,"Mod-Delete":e7}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[eL({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],eJ({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,s.gk)((0,s.iI)(e,"tableRole",t))}}});s.YY.create({name:"tableKit",addExtensions(){let e=[];return!1!==this.options.table&&e.push(tn.configure(this.options.table)),!1!==this.options.tableCell&&e.push(eY.configure(this.options.tableCell)),!1!==this.options.tableHeader&&e.push(eQ.configure(this.options.tableHeader)),!1!==this.options.tableRow&&e.push(e0.configure(this.options.tableRow)),e}})},6268:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A0});var n=r(5989)},7915:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],s=(0,n.A)("eye",i)},8242:(e,t,r)=>{"use strict";r.d(t,{$L:()=>Y,Ln:()=>C,N0:()=>K,Um:()=>X,Wg:()=>A,X9:()=>m,Ys:()=>w,dL:()=>eg,jP:()=>F,n9:()=>U,oM:()=>L,zy:()=>H});var n=r(27050);let i=65535,s=65536;function o(e,t){return e+t*s}function l(e){return e&i}function a(e){return(e-(e&i))/s}let u=1,c=2,h=4,d=8;class p{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&d)>0}get deletedBefore(){return(this.delInfo&(u|h))>0}get deletedAfter(){return(this.delInfo&(c|h))>0}get deletedAcross(){return(this.delInfo&h)>0}}class f{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&f.empty)return f.empty}recover(e){let t=0,r=l(e);if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+a(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?n:0);if(a>e)break;let f=this.ranges[l+i],m=this.ranges[l+s],g=a+f;if(e<=g){let i=f?e==a?-1:e==g?1:t:t,s=a+n+(i<0?0:m);if(r)return s;let _=e==(t<0?a:g)?null:o(l/3,e-a),y=e==a?c:e==g?u:h;return(t<0?e!=a:e!=g)&&(y|=d),new p(s,y,_)}n+=m-f}return r?e+n:new p(e+n,0,null)}touches(e,t){let r=0,n=l(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?r:0);if(o>e)break;let l=this.ranges[t+i];if(e<=o+l&&t==3*n)return!0;r+=this.ranges[t+s]-l}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),a=this.ranges[n+t],u=this.ranges[n+r];e(o,o+a,l,l+u),i+=u-a}}invert(){return new f(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?f.empty:new f(e<0?[0,-e,0]:[0,0,e])}}f.empty=new f([]);class m{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new m(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new p(e,n,null)}}let g=Object.create(null);class _{getMap(){return f.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=g[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in g)throw RangeError("Duplicate use of step JSON ID "+e);return g[e]=t,t.prototype.jsonID=e,t}}class y{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new y(e,null)}static fail(e){return new y(null,e)}static fromReplace(e,t,r,i){try{return y.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return y.fail(e.message);throw e}}}function k(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let s=e.child(n);s.content.size&&(s=s.copy(k(s.content,t,s))),s.isInline&&(s=t(s,r,n)),i.push(s)}return n.FK.fromArray(i)}class b extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new n.Ji(k(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,s)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new b(t.pos,r.pos,this.mark)}merge(e){return e instanceof b&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new b(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new b(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("addMark",b);class w extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(k(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,r)}invert(){return new b(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new w(t.pos,r.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("removeMark",w);class x extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new x(this.pos,t.marks[r]);return new x(this.pos,this.mark)}}return new v(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new x(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new x(t.pos,e.markFromJSON(t.mark))}}_.jsonID("addNodeMark",x);class v extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new x(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new v(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new v(t.pos,e.markFromJSON(t.mark))}}_.jsonID("removeNodeMark",v);class C extends _{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&E(e,this.from,this.to)?y.fail("Structure replace would overwrite content"):y.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new f([this.from,this.to-this.from,this.slice.size])}invert(e){return new C(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&C.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new C(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof C)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new C(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new C(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new C(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}C.MAP_BIAS=1,_.jsonID("replace",C);class A extends _{constructor(e,t,r,n,i,s,o=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=o}apply(e){if(this.structure&&(E(e,this.from,this.gapFrom)||E(e,this.gapTo,this.to)))return y.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return y.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?y.fromReplace(e,this.from,this.to,r):y.fail("Content does not fit in gap")}getMap(){return new f([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new A(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new A(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new A(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function E(e,t,r){let n=e.resolve(t),i=r-t,s=n.depth;for(;i>0&&s>0&&n.indexAfter(s)==n.node(s).childCount;)s--,i--;if(i>0){let e=n.node(s).maybeChild(n.indexAfter(s));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function S(e,t,r,n){let i,s,o=[],l=[];e.doc.nodesBetween(t,r,(e,a,u)=>{if(!e.isInline)return;let c=e.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(a,t),h=Math.min(a+e.nodeSize,r),d=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(d)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=h:o.push(i=new w(u,h,c[e])));s&&s.to==u?s.to=h:l.push(s=new b(u,h,n))}}),o.forEach(t=>e.step(t)),l.forEach(t=>e.step(t))}function M(e,t,r,i){let s=[],o=0;e.doc.nodesBetween(t,r,(e,l)=>{if(!e.isInline)return;o++;let a=null;if(i instanceof n.sX){let t=e.marks,r;for(;r=i.isInSet(t);)(a||(a=[])).push(r),t=r.removeFromSet(t)}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length){let n=Math.min(l+e.nodeSize,r);for(let e=0;e<a.length;e++){let r=a[e],i;for(let e=0;e<s.length;e++){let t=s[e];t.step==o-1&&r.eq(s[e].style)&&(i=t)}i?(i.to=n,i.step=o):s.push({style:r,from:Math.max(l,t),to:n,step:o})}}}),s.forEach(t=>e.step(new w(t.from,t.to,t.style)))}function T(e,t,r,i=r.contentMatch,s=!0){let o=e.doc.nodeAt(t),l=[],a=t+1;for(let t=0;t<o.childCount;t++){let u=o.child(t),c=a+u.nodeSize,h=i.matchType(u.type);if(h){i=h;for(let t=0;t<u.marks.length;t++)r.allowsMarkType(u.marks[t].type)||e.step(new w(a,c,u.marks[t]));if(s&&u.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),l.push(new C(a+e.index,a+e.index+e[0].length,i))}}else l.push(new C(a,c,n.Ji.empty));a=c}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(a,a,new n.Ji(t,0,0))}for(let t=l.length-1;t>=0;t--)e.step(l[t])}function D(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function F(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let s=e.$from.node(r),o=e.$from.index(r)+n,l=e.$to.indexAfter(r)-i;if(r<e.depth&&s.canReplace(o,l,t))return r;if(0==r||s.type.spec.isolating||!D(s,o,l))break;o&&(n=1),l<s.childCount&&(i=1)}return null}function I(e,t,r){let{$from:i,$to:s,depth:o}=t,l=i.before(o+1),a=s.after(o+1),u=l,c=a,h=n.FK.empty,d=0;for(let e=o,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,h=n.FK.from(i.node(e).copy(h)),d++):u--;let p=n.FK.empty,f=0;for(let e=o,t=!1;e>r;e--)t||s.after(e+1)<s.end(e)?(t=!0,p=n.FK.from(s.node(e).copy(p)),f++):c++;e.step(new A(u,c,l,a,new n.Ji(h.append(p),d,f),h.size-d,!0))}function L(e,t,r=null,n=e){let i=N(e,t),s=i&&O(n,t);return s?i.map(R).concat({type:t,attrs:r}).concat(s.map(R)):null}function R(e){return{type:e,attrs:null}}function N(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.contentMatchAt(n).findWrapping(t);if(!s)return null;let o=s.length?s[0]:t;return r.canReplaceWith(n,i,o)?s:null}function O(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.child(n),o=t.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:t).contentMatch;for(let e=n;l&&e<i;e++)l=l.matchType(r.child(e).type);return l&&l.validEnd?o:null}function z(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let s=t.start,o=t.end;e.step(new A(s,o,s,o,new n.Ji(i,0,0),r.length,!0))}function P(e,t,r,i,s){if(!i.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,r,(t,r)=>{let l="function"==typeof s?s(t):s;if(t.isTextblock&&!t.hasMarkup(i,l)&&q(e.doc,e.mapping.slice(o).map(r),i)){let s=null;if(i.schema.linebreakReplacement){let e="pre"==i.whitespace,t=!!i.contentMatch.matchType(i.schema.linebreakReplacement);e&&!t?s=!1:!e&&t&&(s=!0)}!1===s&&B(e,t,r,o),T(e,e.mapping.slice(o).map(r,1),i,void 0,null===s);let a=e.mapping.slice(o),u=a.map(r,1),c=a.map(r+t.nodeSize,1);return e.step(new A(u,c,u+1,c-1,new n.Ji(n.FK.from(i.create(l,null,t.marks)),0,0),1,!0)),!0===s&&$(e,t,r,o),!1}})}function $(e,t,r,n){t.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let i=e.mapping.slice(n).map(r+1+s+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function B(e,t,r,n){t.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+s);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function q(e,t,r){let n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}function j(e,t,r,i,s){let o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");r||(r=o.type);let l=r.create(i,null,s||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,l);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);e.step(new A(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new n.Ji(n.FK.from(l),0,0),1,!0))}function H(e,t,r=1,n){let i=e.resolve(t),s=i.depth-r,o=n&&n[n.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>s;e--,t--){let r=i.node(e),s=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(s,r.childCount),l=n&&n[t+1];l&&(o=o.replaceChild(0,l.type.create(l.attrs)));let a=n&&n[t]||r;if(!r.canReplace(s+1,r.childCount)||!a.type.validContent(o))return!1}let l=i.indexAfter(s),a=n&&n[0];return i.node(s).canReplaceWith(l,l,a?a.type:i.node(s+1).type)}function V(e,t,r=1,i){let s=e.doc.resolve(t),o=n.FK.empty,l=n.FK.empty;for(let e=s.depth,t=s.depth-r,a=r-1;e>t;e--,a--){o=n.FK.from(s.node(e).copy(o));let t=i&&i[a];l=n.FK.from(t?t.type.create(t.attrs,l):s.node(e).copy(l))}e.step(new C(t,t,new n.Ji(o.append(l),r,r),!0))}function U(e,t){let r=e.resolve(t),n=r.index();return J(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function W(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let s=t.child(i),o=s.type==n?e.type.schema.nodes.text:s.type;if(!(r=r.matchType(o))||!e.type.allowsMarks(s.marks))return!1}return r.validEnd}function J(e,t){return!!(e&&t&&!e.isLeaf&&W(e,t))}function K(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,s,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,s=n.nodeAfter):r>0?(i=n.node(e+1),o++,s=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),s=n.node(e+1)),i&&!i.isTextblock&&J(i,s)&&n.node(e).canReplace(o,o+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function G(e,t,r){let i=null,{linebreakReplacement:s}=e.doc.type.schema,o=e.doc.resolve(t-r),l=o.node().type;if(s&&l.inlineContent){let e="pre"==l.whitespace,t=!!l.contentMatch.matchType(s);e&&!t?i=!1:!e&&t&&(i=!0)}let a=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);B(e,n.node(),n.before(),a)}l.inlineContent&&T(e,t+r-1,l,o.node().contentMatchAt(o.index()),null==i);let u=e.mapping.slice(a),c=u.map(t-r);if(e.step(new C(c,u.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(c);$(e,t.node(),t.before(),e.steps.length)}return e}function Z(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}function X(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,s=n.index(t)+ +(r>0),o=n.node(t),l=!1;if(1==e)l=o.canReplace(s,s,i);else{let e=o.contentMatchAt(s).findWrapping(i.firstChild.type);l=e&&o.canReplaceWith(s,s,e[0])}if(l)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function Y(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let s=e.resolve(t),o=e.resolve(r);return Q(s,o,i)?new C(t,r,i):new ee(s,o,i).fit()}function Q(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}_.jsonID("replaceAround",A);class ee{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,l=i.depth;for(;o&&l&&1==s.childCount;)s=s.firstChild.content,o--,l--;let a=new n.Ji(s,o,l);return e>-1?new A(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new C(r.pos,i.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,i=null,s=(e=r?(i=en(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let e=this.depth;e>=0;e--){let{type:o,match:l}=this.frontier[e],a,u=null;if(1==t&&(s?l.matchType(s.type)||(u=l.fillBefore(n.FK.from(s),!1)):i&&o.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:e,parent:i,inject:u};if(2==t&&s&&(a=l.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:e,parent:i,wrap:a};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);if(i.childCount<=1&&t>0){let s=e.size-t<=t+i.size;this.unplaced=new n.Ji(et(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new n.Ji(et(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let e=0;e<s.length;e++)this.openFrontierNode(s[e]);let o=this.unplaced,l=r?r.content:o.content,a=o.openStart-e,u=0,c=[],{match:h,type:d}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));h=h.matchFragment(i)}let p=l.size+e-(o.content.size-o.openEnd);for(;u<l.childCount;){let e=l.child(u),t=h.matchType(e.type);if(!t)break;(++u>1||0==a||e.content.size)&&(h=t,c.push(ei(e.mark(d.allowedMarks(e.marks)),1==u?a:0,u==l.childCount?p:-1)))}let f=u==l.childCount;f||(p=-1),this.placed=er(this.placed,t,n.FK.from(c)),this.frontier[t].match=h,f&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=l;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?n.Ji.empty:new n.Ji(et(o.content,e-1,1),e-1,p<0?o.openEnd:e-1):new n.Ji(et(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!es(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=es(e,t,n,r,i);if(s){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=es(e,r,n,t,!0);if(!i||i.childCount)continue t}return{depth:t,fit:s,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=er(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=er(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=er(this.placed,this.frontier.length,e))}}function et(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(et(e.firstChild.content,t-1,r)))}function er(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(er(e.lastChild.content,t-1,r)))}function en(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function ei(e,t,r){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,ei(i.firstChild,t-1,1==i.childCount?r-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(n.FK.empty,!0)))),e.copy(i)}function es(e,t,r,n,i){let s=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==s.childCount&&!r.compatibleContent(s.type))return null;let l=n.fillBefore(s.content,!0,o);return l&&!eo(r,s.content,o)?l:null}function eo(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}function el(e){return e.spec.defining||e.spec.definingForContent}function ea(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let s=e.doc.resolve(t),o=e.doc.resolve(r);if(Q(s,o,i))return e.step(new C(t,r,i));let l=ed(s,o);0==l[l.length-1]&&l.pop();let a=-(s.depth+1);l.unshift(a);for(let e=s.depth,t=s.pos-1;e>0;e--,t--){let r=s.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;l.indexOf(e)>-1?a=e:s.before(e)==t&&l.splice(1,0,-e)}let u=l.indexOf(a),c=[],h=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(c.push(r),t==i.openStart)break;e=r.content}for(let e=h-1;e>=0;e--){let t=c[e],r=el(t.type);if(r&&!t.sameMarkup(s.node(Math.abs(a)-1)))h=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let a=(t+h+1)%(i.openStart+1),d=c[a];if(d)for(let t=0;t<l.length;t++){let c=l[(t+u)%l.length],h=!0;c<0&&(h=!1,c=-c);let p=s.node(c-1),f=s.index(c-1);if(p.canReplaceWith(f,f,d.type,d.marks))return e.replace(s.before(c),h?o.after(c):r,new n.Ji(eu(i.content,0,i.openStart,a),a,i.openEnd))}}let d=e.steps.length;for(let n=l.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>d));n--){let e=l[n];e<0||(t=s.before(e),r=o.after(e))}}function eu(e,t,r,i,s){if(t<r){let n=e.firstChild;e=e.replaceChild(0,n.copy(eu(n.content,t+1,r,i,n)))}if(t>i){let t=s.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}function ec(e,t,r,i){if(!i.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let n=Z(e.doc,t,i.type);null!=n&&(t=r=n)}e.replaceRange(t,r,new n.Ji(n.FK.from(i),0,0))}function eh(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let s=n.sharedDepth(r),o=!1;for(let e=n.depth;e>s;e--)n.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>s;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let s=ed(n,i);for(let t=0;t<s.length;t++){let r=s[t],o=t==s.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(o||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let s=1;s<=n.depth&&s<=i.depth;s++)if(t-n.start(s)==n.depth-s&&r>n.end(s)&&i.end(s)-r!=i.depth-s&&n.start(s-1)==i.start(s-1)&&n.node(s-1).canReplace(n.index(s-1),i.index(s-1)))return e.delete(n.before(s),r);e.delete(t,r)}function ed(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class ep extends _{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return f.empty}invert(e){return new ep(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ep(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new ep(t.pos,t.attr,t.value)}}_.jsonID("attr",ep);class ef extends _{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return y.ok(r)}getMap(){return f.empty}invert(e){return new ef(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new ef(t.attr,t.value)}}_.jsonID("docAttr",ef);let em=class extends Error{};(em=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),em.prototype.constructor=em,em.prototype.name="TransformError";class eg{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new em(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,s)=>{e=Math.min(e,i),t=Math.max(t,s)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=Y(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return ea(this,e,t,r),this}replaceRangeWith(e,t,r){return ec(this,e,t,r),this}deleteRange(e,t){return eh(this,e,t),this}lift(e,t){return I(this,e,t),this}join(e,t=1){return G(this,e,t),this}wrap(e,t){return z(this,e,t),this}setBlockType(e,t=e,r,n=null){return P(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return j(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new ep(e,t,r)),this}setDocAttribute(e,t){return this.step(new ef(e,t)),this}addNodeMark(e,t){return this.step(new x(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new v(e,t));else{let n=r.marks,i,s=[];for(;i=t.isInSet(n);)s.push(new v(e,i)),n=i.removeFromSet(n);for(let e=s.length-1;e>=0;e--)this.step(s[e])}return this}split(e,t=1,r){return V(this,e,t,r),this}addMark(e,t,r){return S(this,e,t,r),this}removeMark(e,t,r){return M(this,e,t,r),this}clearIncompatible(e,t,r){return T(this,e,t,r),this}}},9921:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],s=(0,n.A)("chevron-up",i)},10762:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],s=(0,n.A)("terminal",i)},12894:(e,t,r)=>{"use strict";r.d(t,{K:()=>_,w:()=>g});for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="u">typeof navigator&&/Mac/.test(navigator.platform),o="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)n[48+l]=n[96+l]=String(l);for(var l=1;l<=24;l++)n[l+111]="F"+l;for(var l=65;l<=90;l++)n[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var a in n)i.hasOwnProperty(a)||(i[a]=n[a]);function u(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}var c=r(76865);let h="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="u">typeof navigator&&/Win/.test(navigator.platform);function p(e){let t,r,n,i,s=e.split(/-(?!$)/),o=s[s.length-1];"Space"==o&&(o=" ");for(let e=0;e<s.length-1;e++){let o=s[e];if(/^(cmd|meta|m)$/i.test(o))i=!0;else if(/^a(lt)?$/i.test(o))t=!0;else if(/^(c|ctrl|control)$/i.test(o))r=!0;else if(/^s(hift)?$/i.test(o))n=!0;else if(/^mod$/i.test(o))h?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+o)}return t&&(o="Alt-"+o),r&&(o="Ctrl-"+o),i&&(o="Meta-"+o),n&&(o="Shift-"+o),o}function f(e){let t=Object.create(null);for(let r in e)t[p(r)]=e[r];return t}function m(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function g(e){return new c.k_({props:{handleKeyDown:_(e)}})}function _(e){let t=f(e);return function(e,r){let i=u(r),s,o=t[m(i,r)];if(o&&o(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=t[m(i,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(d&&r.ctrlKey&&r.altKey)&&(s=n[r.keyCode])&&s!=i){let n=t[m(s,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},13439:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>eh,hG:()=>ek});var n=r(12115),i=r(47650),s=r(8039),o=r(95155),l=r(82159);let{getOwnPropertyNames:a,getOwnPropertySymbols:u}=Object,{hasOwnProperty:c}=Object.prototype;function h(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function d(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:i}=n,s=i.get(t),o=i.get(r);if(s&&o)return s===r&&o===t;i.set(t,r),i.set(r,t);let l=e(t,r,n);return i.delete(t),i.delete(r),l}}function p(e){return null!=e?e[Symbol.toStringTag]:void 0}function f(e){return a(e).concat(u(e))}let m=Object.hasOwn||((e,t)=>c.call(e,t));function g(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let _="__v",y="__o",k="_owner",{getOwnPropertyDescriptor:b,keys:w}=Object;function x(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e),new Uint8Array(t))}function v(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function C(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function A(e,t){return g(e.getTime(),t.getTime())}function E(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function S(e,t){return e===t}function M(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.entries(),a=0;for(;(n=l.next())&&!n.done;){let s=t.entries(),l=!1,u=0;for(;(i=s.next())&&!i.done;){if(o[u]){u++;continue}let s=n.value,c=i.value;if(r.equals(s[0],c[0],a,u,e,t,r)&&r.equals(s[1],c[1],s[0],c[0],e,t,r)){l=o[u]=!0;break}u++}if(!l)return!1;a++}return!0}let T=g;function D(e,t,r){let n=w(e),i=n.length;if(w(t).length!==i)return!1;for(;i-- >0;)if(!z(e,t,r,n[i]))return!1;return!0}function F(e,t,r){let n,i,s,o=f(e),l=o.length;if(f(t).length!==l)return!1;for(;l-- >0;)if(!z(e,t,r,n=o[l])||(i=b(e,n),s=b(t,n),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function I(e,t){return g(e.valueOf(),t.valueOf())}function L(e,t){return e.source===t.source&&e.flags===t.flags}function R(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.values();for(;(n=l.next())&&!n.done;){let s=t.values(),l=!1,a=0;for(;(i=s.next())&&!i.done;){if(!o[a]&&r.equals(n.value,i.value,n.value,i.value,e,t,r)){l=o[a]=!0;break}a++}if(!l)return!1}return!0}function N(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function O(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function z(e,t,r,n){return(n===k||n===y||n===_)&&(!!e.$$typeof||!!t.$$typeof)||m(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let P="[object ArrayBuffer]",$="[object Arguments]",B="[object Boolean]",q="[object DataView]",j="[object Date]",H="[object Error]",V="[object Map]",U="[object Number]",W="[object Object]",J="[object RegExp]",K="[object Set]",G="[object String]",Z={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},X="[object URL]",Y=Object.prototype.toString;function Q({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:a,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:h,areTypedArraysEqual:d,areUrlsEqual:f,unknownTagComparators:m}){return function(g,_,y){if(g===_)return!0;if(null==g||null==_)return!1;let k=typeof g;if(k!==typeof _)return!1;if("object"!==k)return"number"===k?l(g,_,y):"function"===k&&s(g,_,y);let b=g.constructor;if(b!==_.constructor)return!1;if(b===Object)return a(g,_,y);if(Array.isArray(g))return t(g,_,y);if(b===Date)return n(g,_,y);if(b===RegExp)return c(g,_,y);if(b===Map)return o(g,_,y);if(b===Set)return h(g,_,y);let w=Y.call(g);if(w===j)return n(g,_,y);if(w===J)return c(g,_,y);if(w===V)return o(g,_,y);if(w===K)return h(g,_,y);if(w===W)return"function"!=typeof g.then&&"function"!=typeof _.then&&a(g,_,y);if(w===X)return f(g,_,y);if(w===H)return i(g,_,y);if(w===$)return a(g,_,y);if(Z[w])return d(g,_,y);if(w===P)return e(g,_,y);if(w===q)return r(g,_,y);if(w===B||w===U||w===G)return u(g,_,y);if(m){let e=m[w];if(!e){let t=p(g);t&&(e=m[t])}if(e)return e(g,_,y)}return!1}}function ee({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:x,areArraysEqual:r?F:v,areDataViewsEqual:C,areDatesEqual:A,areErrorsEqual:E,areFunctionsEqual:S,areMapsEqual:r?h(M,F):M,areNumbersEqual:T,areObjectsEqual:r?F:D,arePrimitiveWrappersEqual:I,areRegExpsEqual:L,areSetsEqual:r?h(R,F):R,areTypedArraysEqual:r?h(N,F):N,areUrlsEqual:O,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=d(n.areArraysEqual),t=d(n.areMapsEqual),r=d(n.areObjectsEqual),i=d(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:i})}return n}function et(e){return function(t,r,n,i,s,o,l){return e(t,r,l)}}function er({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,o){let{cache:l=e?new WeakMap:void 0,meta:a}=r();return t(s,o,{cache:l,equals:n,meta:a,strict:i})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};let s={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,r){return t(e,r,s)}}let en=ei();function ei(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,s=Q(ee(e)),o=r?r(s):et(s);return er({circular:t,comparator:s,createState:n,equals:o,strict:i})}ei({strict:!0}),ei({circular:!0}),ei({circular:!0,strict:!0}),ei({createInternalComparator:()=>g}),ei({strict:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g,strict:!0});var es=r(94577),eo=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},el=({contentComponent:e})=>{let t=(0,s.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,o.jsx)(o.Fragment,{children:Object.values(t)})};function ea(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(r,n){t={...t,[r]:i.createPortal(n.reactElement,n.element,r)},e.forEach(e=>e())},removeRenderer(r){let n={...t};delete n[r],t=n,e.forEach(e=>e())}}}var eu=class extends n.Component{constructor(e){super(e),this.editorContentRef=n.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=ea(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;let t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){let{editor:e,innerRef:t,...r}=this.props;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:eo(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&(0,o.jsx)(el,{contentComponent:e.contentComponent})]})}},ec=(0,n.forwardRef)((e,t)=>{let r=n.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return n.createElement(eu,{key:r,innerRef:t,...e})}),eh=n.memo(ec),ed="u">typeof window?n.useLayoutEffect:n.useEffect,ep=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function ef(e){var t;let[r]=(0,n.useState)(()=>new ep(e.editor)),i=(0,es.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:en);return ed(()=>r.watch(e.editor),[e.editor,r]),(0,n.useDebugValue)(i),i}var em=!1,eg="u"<typeof window,e_=eg||!!("u">typeof window&&window.next),ey=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender){if(eg||e_){if(em)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&eg&&em)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBeforeCreate)?void 0:r.call(t,...e)},onBlur:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBlur)?void 0:r.call(t,...e)},onCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onCreate)?void 0:r.call(t,...e)},onDestroy:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDestroy)?void 0:r.call(t,...e)},onFocus:(...e)=>{var t,r;return null==(r=(t=this.options.current).onFocus)?void 0:r.call(t,...e)},onSelectionUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onSelectionUpdate)?void 0:r.call(t,...e)},onTransaction:(...e)=>{var t,r;return null==(r=(t=this.options.current).onTransaction)?void 0:r.call(t,...e)},onUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUpdate)?void 0:r.call(t,...e)},onContentError:(...e)=>{var t,r;return null==(r=(t=this.options.current).onContentError)?void 0:r.call(t,...e)},onDrop:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDrop)?void 0:r.call(t,...e)},onPaste:(...e)=>{var t,r;return null==(r=(t=this.options.current).onPaste)?void 0:r.call(t,...e)},onDelete:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDelete)?void 0:r.call(t,...e)}};return new l.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function ek(e={},t=[]){let r=(0,n.useRef)(e);r.current=e;let[i]=(0,n.useState)(()=>new ey(r)),o=(0,s.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(o),(0,n.useEffect)(i.onRender(t)),ef({editor:o,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),o}var eb=(0,n.createContext)({editor:null});eb.Consumer;var ew=(0,n.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),ex=()=>(0,n.useContext)(ew);n.forwardRef((e,t)=>{let{onDragStart:r}=ex(),n=e.as||"div";return(0,o.jsx)(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})}),n.createContext({markViewContentRef:()=>{}}),l.Db,l.Yv;var ev=(0,n.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});ev.displayName="TiptapContext";var eC=()=>(0,n.useContext)(ev);function eA({editor:e,instance:t,children:r}){let i=null!=e?e:t;if(!i)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let s=(0,n.useMemo)(()=>({editor:i}),[i]),l=(0,n.useMemo)(()=>({editor:i}),[i]);return(0,o.jsx)(eb.Provider,{value:l,children:(0,o.jsx)(ev.Provider,{value:s,children:r})})}function eE({...e}){let{editor:t}=eC();return(0,o.jsx)(eh,{editor:t,...e})}eA.displayName="Tiptap",eE.displayName="Tiptap.Content",Object.assign(eA,{Content:eE})},14066:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var C,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION,process=__webpack_require__(41463),__defProp=Object.defineProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:e,oldEndIndex:t,newEndIndex:r,startPosition:n,oldEndPosition:i,newEndPosition:s}){this.startIndex=e>>>0,this.oldEndIndex=t>>>0,this.newEndIndex=r>>>0,this.startPosition=n,this.oldEndPosition=i,this.newEndPosition=s}editPoint(e,t){let r=t,n={...e};if(t>=this.oldEndIndex){r=this.newEndIndex+(t-this.oldEndIndex);let i=e.row;n.row=this.newEndPosition.row+(e.row-this.oldEndPosition.row),n.column=i===this.oldEndPosition.row?this.newEndPosition.column+(e.column-this.oldEndPosition.column):e.column}else t>this.startIndex&&(r=this.newEndIndex,n.row=this.newEndPosition.row,n.column=this.newEndPosition.column);return{point:n,index:r}}editRange(e){let t={startIndex:e.startIndex,startPosition:{...e.startPosition},endIndex:e.endIndex,endPosition:{...e.endPosition}};return e.endIndex>=this.oldEndIndex?e.endIndex!==Number.MAX_SAFE_INTEGER&&(t.endIndex=this.newEndIndex+(e.endIndex-this.oldEndIndex),t.endPosition={row:this.newEndPosition.row+(e.endPosition.row-this.oldEndPosition.row),column:e.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.endPosition.column-this.oldEndPosition.column):e.endPosition.column},t.endIndex<this.newEndIndex&&(t.endIndex=Number.MAX_SAFE_INTEGER,t.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.endIndex>this.startIndex&&(t.endIndex=this.startIndex,t.endPosition={...this.startPosition}),e.startIndex>=this.oldEndIndex?(t.startIndex=this.newEndIndex+(e.startIndex-this.oldEndIndex),t.startPosition={row:this.newEndPosition.row+(e.startPosition.row-this.oldEndPosition.row),column:e.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.startPosition.column-this.oldEndPosition.column):e.startPosition.column},t.startIndex<this.newEndIndex&&(t.startIndex=Number.MAX_SAFE_INTEGER,t.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.startIndex>this.startIndex&&(t.startIndex=this.startIndex,t.startPosition={...this.startPosition}),t}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL");function assertInternal(e){if(e!==INTERNAL)throw Error("Illegal constructor")}function isPoint(e){return!!e&&"number"==typeof e.row&&"number"==typeof e.column}function setModule(e){C=e}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}resetState(e){return!!C._ts_lookahead_iterator_reset_state(this[0],e)}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(e,t,r,n){let i=r-t,s=e.textCallback(t,n);if(s){for(t+=s.length;t<r;){let r=e.textCallback(t,n);if(r&&r.length>0)t+=r.length,s+=r;else break}t>r&&(s=s.slice(0,i))}return s??""}__name(getText,"getText");var Tree=class _Tree{static{__name(this,"Tree")}0=0;textCallback;language;constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){return new _Tree(INTERNAL,C._ts_tree_copy(this[0]),this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(e){if(!(e instanceof _Tree))throw TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}},TreeCursor=class _TreeCursor{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}copy(){let e=new _TreeCursor(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(e),e}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);let e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);let r=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,e,t,r)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoFirstChildForIndex(e){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");let t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);let t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(e,{id:t,tree:r,startIndex:n,startPosition:i,other:s}){assertInternal(e),this[0]=s,this.id=t,this.tree=r,this.startIndex=n,this.startPosition=i}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(e){return this.tree===e.tree&&this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);let t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}fieldNameForNamedChild(e){marshalNode(this);let t=C._ts_node_field_name_for_named_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}childrenForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t=ZERO_POINT,r=ZERO_POINT){Array.isArray(e)||(e=[e]);let n=[],i=this.tree.language.types;for(let t of e)"ERROR"==t&&n.push(65535);for(let t=0,r=i.length;t<r;t++)e.includes(i[t])&&n.push(t);let s=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)C.setValue(s+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],s,n.length,t.row,t.column,r.row,r.column);let o=C.getValue(TRANSFER_BUFFER,"i32"),l=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=Array(o);if(o>0){let e=l;for(let t=0;t<o;t++)a[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(l),C._free(s),a}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(e){return marshalNode(this),marshalNode(e,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(e){if(this.startIndex>=e.oldEndIndex){let t,r;this.startIndex=e.newEndIndex+(this.startIndex-e.oldEndIndex),this.startPosition.row>e.oldEndPosition.row?(t=this.startPosition.row-e.oldEndPosition.row,r=this.startPosition.column):(t=0,r=this.startPosition.column,this.startPosition.column>=e.oldEndPosition.column&&(r=this.startPosition.column-e.oldEndPosition.column)),t>0?(this.startPosition.row+=t,this.startPosition.column=r):this.startPosition.column+=r}else this.startIndex>e.startIndex&&(this.startIndex=e.newEndIndex,this.startPosition.row=e.newEndPosition.row,this.startPosition.column=e.newEndPosition.column)}toString(){marshalNode(this);let e=C._ts_node_to_string_wasm(this.tree[0]),t=C.AsciiToString(e);return C._free(e),t}};function unmarshalCaptures(e,t,r,n,i){for(let s=0,o=i.length;s<o;s++){let o=C.getValue(r,"i32"),l=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,i[s]={patternIndex:n,name:e.captureNames[o],node:l}}return r}function marshalNode(e,t=0){let r=TRANSFER_BUFFER+t*SIZE_OF_NODE;C.setValue(r,e.id,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startIndex,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.row,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.column,"i32"),r+=SIZE_OF_INT,C.setValue(r,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){let r=C.getValue(t,"i32");if(t+=SIZE_OF_INT,0===r)return null;let n=C.getValue(t,"i32");t+=SIZE_OF_INT;let i=C.getValue(t,"i32");t+=SIZE_OF_INT;let s=C.getValue(t,"i32");return t+=SIZE_OF_INT,new Node(INTERNAL,{id:r,tree:e,startIndex:n,startPosition:{row:i,column:s},other:C.getValue(t,"i32")})}function marshalTreeCursor(e,t=TRANSFER_BUFFER){C.setValue(t+0*SIZE_OF_INT,e[0],"i32"),C.setValue(t+ +SIZE_OF_INT,e[1],"i32"),C.setValue(t+2*SIZE_OF_INT,e[2],"i32"),C.setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=C.getValue(TRANSFER_BUFFER+ +SIZE_OF_INT,"i32"),e[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){C.setValue(e,t.row,"i32"),C.setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:C.getValue(e,"i32")>>>0,column:C.getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),e+=SIZE_OF_POINT,C.setValue(e,t.startIndex,"i32"),e+=SIZE_OF_INT,C.setValue(e,t.endIndex,"i32")}function unmarshalRange(e){let t={};return t.startPosition=unmarshalPoint(e),t.endPosition=unmarshalPoint(e+=SIZE_OF_POINT),e+=SIZE_OF_POINT,t.startIndex=C.getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=C.getValue(e,"i32")>>>0,t}function marshalEdit(e,t=TRANSFER_BUFFER){marshalPoint(t,e.startPosition),marshalPoint(t+=SIZE_OF_POINT,e.oldEndPosition),marshalPoint(t+=SIZE_OF_POINT,e.newEndPosition),t+=SIZE_OF_POINT,C.setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.newEndIndex,"i32")}function unmarshalLanguageMetadata(e){let t=C.getValue(e,"i32");return{major_version:t,minor_version:C.getValue(e+=SIZE_OF_INT,"i32"),patch_version:C.getValue(e+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class _Language{static{__name(this,"Language")}0=0;types;fields;constructor(e,t){assertInternal(e),this[0]=t,this.types=Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)2>C._ts_language_symbol_type(this[0],e)&&(this.types[e]=C.UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);0!==t?this.fields[e]=C.UTF8ToString(t):this.fields[e]=null}}get name(){let e=C._ts_language_name(this[0]);return 0===e?null:C.UTF8ToString(e)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){return(C._ts_language_metadata_wasm(this[0]),0===C.getValue(TRANSFER_BUFFER,"i32"))?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){let t=this.fields.indexOf(e);return -1!==t?t:null}fieldNameForId(e){return this.fields[e]??null}idForNodeType(e,t){let r=C.lengthBytesUTF8(e),n=C._malloc(r+1);C.stringToUTF8(e,n,r+1);let i=C._ts_language_symbol_for_name(this[0],n,r,+!!t);return C._free(n),i||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){let t=C._ts_language_symbol_name(this[0],e);return t?C.UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=C.getValue(n,"i16"),n+=SIZE_OF_SHORT}return r}subtypes(e){C._ts_language_subtypes_wasm(this[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=C.getValue(e,"i16"),e+=SIZE_OF_SHORT}return n}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){let t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterator(INTERNAL,t,this):null}static async load(e){let t;if(e instanceof Uint8Array)t=e;else if(globalThis.process?.versions.node){let r=await __webpack_require__.e(480).then(__webpack_require__.t.bind(__webpack_require__,80480,19));t=await r.readFile(e)}else{let r=await fetch(e);if(!r.ok){let e=await r.text();throw Error(`Language.load failed with status ${r.status}.
5
5
 
6
6
  ${e}`)}let n=r.clone();try{t=await WebAssembly.compileStreaming(r)}catch(e){console.error("wasm streaming compile failed:",e),console.error("falling back to ArrayBuffer instantiation"),t=new Uint8Array(await n.arrayBuffer())}}let r=await C.loadWebAssemblyModule(t,{loadAsync:!0}),n=Object.keys(r),i=n.find(e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_"));if(!i)throw console.log(`Couldn't find language function in Wasm file. Symbols:
7
7
  ${JSON.stringify(n,null,2)}`),Error("Language.load failed: no language function found in Wasm file");return new _Language(INTERNAL,r[i]())}};async function Module2(moduleArg={}){var moduleRtn,readAsync,readBinary,wasmBinary,EXITSTATUS,readyPromiseResolve,readyPromiseReject,wasmMemory,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP64,HEAPU64,HEAP_DATA_VIEW,wasmBinaryFile,functionsInTableMap,_malloc,_calloc,_realloc,_free,_ts_range_edit,_memcmp,_ts_language_symbol_count,_ts_language_state_count,_ts_language_abi_version,_ts_language_name,_ts_language_field_count,_ts_language_next_state,_ts_language_symbol_name,_ts_language_symbol_for_name,_strncmp,_ts_language_symbol_type,_ts_language_field_name_for_id,_ts_lookahead_iterator_new,_ts_lookahead_iterator_delete,_ts_lookahead_iterator_reset_state,_ts_lookahead_iterator_reset,_ts_lookahead_iterator_next,_ts_lookahead_iterator_current_symbol,_ts_point_edit,_ts_parser_delete,_ts_parser_reset,_ts_parser_set_language,_ts_parser_set_included_ranges,_ts_query_new,_ts_query_delete,_iswspace,_iswalnum,_ts_query_pattern_count,_ts_query_capture_count,_ts_query_string_count,_ts_query_capture_name_for_id,_ts_query_capture_quantifier_for_id,_ts_query_string_value_for_id,_ts_query_predicates_for_pattern,_ts_query_start_byte_for_pattern,_ts_query_end_byte_for_pattern,_ts_query_is_pattern_rooted,_ts_query_is_pattern_non_local,_ts_query_is_pattern_guaranteed_at_step,_ts_query_disable_capture,_ts_query_disable_pattern,_ts_tree_copy,_ts_tree_delete,_ts_init,_ts_parser_new_wasm,_ts_parser_enable_logger_wasm,_ts_parser_parse_wasm,_ts_parser_included_ranges_wasm,_ts_language_type_is_named_wasm,_ts_language_type_is_visible_wasm,_ts_language_metadata_wasm,_ts_language_supertypes_wasm,_ts_language_subtypes_wasm,_ts_tree_root_node_wasm,_ts_tree_root_node_with_offset_wasm,_ts_tree_edit_wasm,_ts_tree_included_ranges_wasm,_ts_tree_get_changed_ranges_wasm,_ts_tree_cursor_new_wasm,_ts_tree_cursor_copy_wasm,_ts_tree_cursor_delete_wasm,_ts_tree_cursor_reset_wasm,_ts_tree_cursor_reset_to_wasm,_ts_tree_cursor_goto_first_child_wasm,_ts_tree_cursor_goto_last_child_wasm,_ts_tree_cursor_goto_first_child_for_index_wasm,_ts_tree_cursor_goto_first_child_for_position_wasm,_ts_tree_cursor_goto_next_sibling_wasm,_ts_tree_cursor_goto_previous_sibling_wasm,_ts_tree_cursor_goto_descendant_wasm,_ts_tree_cursor_goto_parent_wasm,_ts_tree_cursor_current_node_type_id_wasm,_ts_tree_cursor_current_node_state_id_wasm,_ts_tree_cursor_current_node_is_named_wasm,_ts_tree_cursor_current_node_is_missing_wasm,_ts_tree_cursor_current_node_id_wasm,_ts_tree_cursor_start_position_wasm,_ts_tree_cursor_end_position_wasm,_ts_tree_cursor_start_index_wasm,_ts_tree_cursor_end_index_wasm,_ts_tree_cursor_current_field_id_wasm,_ts_tree_cursor_current_depth_wasm,_ts_tree_cursor_current_descendant_index_wasm,_ts_tree_cursor_current_node_wasm,_ts_node_symbol_wasm,_ts_node_field_name_for_child_wasm,_ts_node_field_name_for_named_child_wasm,_ts_node_children_by_field_id_wasm,_ts_node_first_child_for_byte_wasm,_ts_node_first_named_child_for_byte_wasm,_ts_node_grammar_symbol_wasm,_ts_node_child_count_wasm,_ts_node_named_child_count_wasm,_ts_node_child_wasm,_ts_node_named_child_wasm,_ts_node_child_by_field_id_wasm,_ts_node_next_sibling_wasm,_ts_node_prev_sibling_wasm,_ts_node_next_named_sibling_wasm,_ts_node_prev_named_sibling_wasm,_ts_node_descendant_count_wasm,_ts_node_parent_wasm,_ts_node_child_with_descendant_wasm,_ts_node_descendant_for_index_wasm,_ts_node_named_descendant_for_index_wasm,_ts_node_descendant_for_position_wasm,_ts_node_named_descendant_for_position_wasm,_ts_node_start_point_wasm,_ts_node_end_point_wasm,_ts_node_start_index_wasm,_ts_node_end_index_wasm,_ts_node_to_string_wasm,_ts_node_children_wasm,_ts_node_named_children_wasm,_ts_node_descendants_of_type_wasm,_ts_node_is_named_wasm,_ts_node_has_changes_wasm,_ts_node_has_error_wasm,_ts_node_is_error_wasm,_ts_node_is_missing_wasm,_ts_node_is_extra_wasm,_ts_node_parse_state_wasm,_ts_node_next_parse_state_wasm,_ts_query_matches_wasm,_ts_query_captures_wasm,_memset,_memcpy,_memmove,_iswalpha,_iswblank,_iswdigit,_iswlower,_iswupper,_iswxdigit,_memchr,_strlen,_strcmp,_strncat,_strncpy,_towlower,_towupper,_setThrew,__emscripten_stack_restore,__emscripten_stack_alloc,_emscripten_stack_get_current,___wasm_apply_data_relocs,wasmExports,Module=moduleArg,ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="u">typeof WorkerGlobalScope,ENVIRONMENT_IS_NODE="object"==typeof process&&void 0;if(ENVIRONMENT_IS_NODE){let{createRequire}=await __webpack_require__.e(6358).then(__webpack_require__.t.bind(__webpack_require__,86358,19));var require=createRequire("file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js")}Module.currentQueryProgressCallback=null,Module.currentProgressCallback=null,Module.currentLogCallback=null,Module.currentParseCallback=null;var arguments_=[],thisProgram="./this.program",quit_=__name((e,t)=>{throw t},"quit_"),_scriptName="file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js",scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(__name(locateFile,"locateFile"),ENVIRONMENT_IS_NODE){var fs=require("fs");_scriptName.startsWith("file:")&&(scriptDirectory=require("path").dirname(require("url").fileURLToPath(_scriptName))+"/"),readBinary=__name(e=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e)),"readBinary"),readAsync=__name(async(e,t=!0)=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e,t?void 0:"utf8")),"readAsync"),process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=__name((e,t)=>{throw process.exitCode=e,t},"quit_")}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}ENVIRONMENT_IS_WORKER&&(readBinary=__name(e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)},"readBinary")),readAsync=__name(async e=>{if(isFileURI(e))return new Promise((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r(n.status)},n.onerror=r,n.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)},"readAsync")}var out=console.log.bind(console),err=console.error.bind(console),dynamicLibraries=[],ABORT=!1,isFileURI=__name(e=>e.startsWith("file://"),"isFileURI"),runtimeInitialized=!1;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e),Module.HEAP64=HEAP64=new BigInt64Array(e),Module.HEAPU64=HEAPU64=new BigUint64Array(e),Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),LE_HEAP_UPDATE()}function initMemory(){if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var e=Module.INITIAL_MEMORY||0x2000000;wasmMemory=new WebAssembly.Memory({initial:e/65536,maximum:32768})}updateMemoryViews()}__name(updateMemoryViews,"updateMemoryViews"),__name(initMemory,"initMemory");var __RELOC_FUNCS__=[];function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),wasmExports.__wasm_call_ctors(),callRuntimeCallbacks(onPostCtors)}function preMain(){}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(onPostRuns)}function abort(e){Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw readyPromiseReject?.(t),t}function findWasmBinary(){return Module.locateFile?locateFile("web-tree-sitter.wasm"):new __webpack_require__.U(__webpack_require__(76022)).href}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(e){if(!wasmBinary)try{var t=await readAsync(e);return new Uint8Array(t)}catch{}return getBinarySync(e)}async function instantiateArrayBuffer(e,t){try{var r=await getWasmBinary(e);return await WebAssembly.instantiate(r,t)}catch(e){err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}}async function instantiateAsync(e,t,r){if(!e&&!isFileURI(t)&&!ENVIRONMENT_IS_NODE)try{var n=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,r)}catch(e){err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation")}return instantiateArrayBuffer(t,r)}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}async function createWasm(){function e(e,t){wasmExports=relocateExports(wasmExports=e.exports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),assignWasmExports(wasmExports),wasmExports}function t(t){return e(t.instance,t.module)}__name(e,"receiveInstance"),__name(t,"receiveInstantiationResult");var r=getWasmImports();return Module.instantiateWasm?new Promise((t,n)=>{Module.instantiateWasm(r,(r,n)=>{t(e(r,n))})}):(wasmBinaryFile??=findWasmBinary(),t(await instantiateAsync(wasmBinary,wasmBinaryFile,r)))}__name(preRun,"preRun"),__name(initRuntime,"initRuntime"),__name(preMain,"preMain"),__name(postRun,"postRun"),__name(abort,"abort"),__name(findWasmBinary,"findWasmBinary"),__name(getBinarySync,"getBinarySync"),__name(getWasmBinary,"getWasmBinary"),__name(instantiateArrayBuffer,"instantiateArrayBuffer"),__name(instantiateAsync,"instantiateAsync"),__name(getWasmImports,"getWasmImports"),__name(createWasm,"createWasm");class ExitStatus{static{__name(this,"ExitStatus")}name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_ATOMICS_NATIVE_BYTE_ORDER=[],LE_HEAP_LOAD_F32=__name(e=>HEAP_DATA_VIEW.getFloat32(e,!0),"LE_HEAP_LOAD_F32"),LE_HEAP_LOAD_F64=__name(e=>HEAP_DATA_VIEW.getFloat64(e,!0),"LE_HEAP_LOAD_F64"),LE_HEAP_LOAD_I16=__name(e=>HEAP_DATA_VIEW.getInt16(e,!0),"LE_HEAP_LOAD_I16"),LE_HEAP_LOAD_I32=__name(e=>HEAP_DATA_VIEW.getInt32(e,!0),"LE_HEAP_LOAD_I32"),LE_HEAP_LOAD_I64=__name(e=>HEAP_DATA_VIEW.getBigInt64(e,!0),"LE_HEAP_LOAD_I64"),LE_HEAP_LOAD_U32=__name(e=>HEAP_DATA_VIEW.getUint32(e,!0),"LE_HEAP_LOAD_U32"),LE_HEAP_STORE_F32=__name((e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),"LE_HEAP_STORE_F32"),LE_HEAP_STORE_F64=__name((e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),"LE_HEAP_STORE_F64"),LE_HEAP_STORE_I16=__name((e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),"LE_HEAP_STORE_I16"),LE_HEAP_STORE_I32=__name((e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),"LE_HEAP_STORE_I32"),LE_HEAP_STORE_I64=__name((e,t)=>HEAP_DATA_VIEW.setBigInt64(e,t,!0),"LE_HEAP_STORE_I64"),LE_HEAP_STORE_U32=__name((e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),"LE_HEAP_STORE_U32"),callRuntimeCallbacks=__name(e=>{for(;e.length>0;)e.shift()(Module)},"callRuntimeCallbacks"),onPostRuns=[],addOnPostRun=__name(e=>onPostRuns.push(e),"addOnPostRun"),onPreRuns=[],addOnPreRun=__name(e=>onPreRuns.push(e),"addOnPreRun"),UTF8Decoder="u">typeof TextDecoder?new TextDecoder:void 0,findStringEnd=__name((e,t,r,n)=>{var i=t+r;if(n)return i;for(;e[t]&&!(t>=i);)++t;return t},"findStringEnd"),UTF8ArrayToString=__name((e,t=0,r,n)=>{var i=findStringEnd(e,t,r,n);if(i-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,i));for(var s="";t<i;){var o=e[t++];if(!(128&o)){s+=String.fromCharCode(o);continue}var l=63&e[t++];if((224&o)==192){s+=String.fromCharCode((31&o)<<6|l);continue}var a=63&e[t++];if((o=(240&o)==224?(15&o)<<12|l<<6|a:(7&o)<<18|l<<12|a<<6|63&e[t++])<65536)s+=String.fromCharCode(o);else{var u=o-65536;s+=String.fromCharCode(55296|u>>10,56320|1023&u)}}return s},"UTF8ArrayToString"),getDylinkMetadata=__name(e=>{var t=0,r=0;function n(){return e[t++]}function i(){for(var r=0,n=1;;){var i=e[t++];if(r+=(127&i)*n,n*=128,!(128&i))break}return r}function s(){var r=i();return t+=r,UTF8ArrayToString(e,t-r,r)}function o(){for(var e=i(),t=[];e--;)t.push(s());return t}function l(e,t){if(e)throw Error(t)}if(__name(n,"getU8"),__name(i,"getLEB"),__name(s,"getString"),__name(o,"getStringList"),__name(l,"failIf"),e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,"dylink.0");l(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{var u=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);l(0x6d736100!=u[0]&&6386541!=u[0],"need to see wasm magic number"),l(0!==e[8],"need the dylink section to be first"),t=9;var c=i();r=t+c,l("dylink.0"!==s())}for(var h={neededDynlibs:[],tlsExports:new Set,weakImports:new Set,runtimePaths:[]},d=1,p=2,f=3,m=4,g=5,_=256,y=3,k=1;t<r;){var b=n(),w=i();if(b===d)h.memorySize=i(),h.memoryAlign=i(),h.tableSize=i(),h.tableAlign=i();else if(b===p)h.neededDynlibs=o();else if(b===f)for(var x=i();x--;){var v=s(),C=i();C&_&&h.tlsExports.add(v)}else if(b===m)for(var x=i();x--;){s();var v=s(),C=i();(C&y)==k&&h.weakImports.add(v)}else b===g?h.runtimePaths=o():t+=w}return h},"getDylinkMetadata");function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16((e>>1)*2);case"i32":return LE_HEAP_LOAD_I32((e>>2)*4);case"i64":return LE_HEAP_LOAD_I64((e>>3)*8);case"float":return LE_HEAP_LOAD_F32((e>>2)*4);case"double":return LE_HEAP_LOAD_F64((e>>3)*8);case"*":return LE_HEAP_LOAD_U32((e>>2)*4);default:abort(`invalid type for getValue: ${t}`)}}__name(getValue,"getValue");var newDSO=__name((e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,void 0!=t&&(LDSO.loadedLibsByHandle[t]=n),n},"newDSO"),LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78240,alignMemory=__name((e,t)=>Math.ceil(e/t)*t,"alignMemory"),getMemory=__name(e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},"getMemory"),isInternalSym=__name(e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),"isInternalSym"),uleb128EncodeWithLen=__name(e=>{let t=e.length;return[t%128|128,t>>7,...e]},"uleb128EncodeWithLen"),wasmTypeCodes={i:127,p:127,j:126,f:125,d:124,e:111},generateTypePack=__name(e=>uleb128EncodeWithLen(Array.from(e,e=>wasmTypeCodes[e])),"generateTypePack"),convertJsFunctionToWasm=__name((e,t)=>{var r=Uint8Array.of(0,97,115,109,1,0,0,0,1,...uleb128EncodeWithLen([1,96,...generateTypePack(t.slice(1)),...generateTypePack("v"===t[0]?"":t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),n=new WebAssembly.Module(r);return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},"convertJsFunctionToWasm"),wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:31,element:"anyfunc"}),getWasmTableEntry=__name(e=>{var t=wasmTableMirror[e];return t||(wasmTableMirror[e]=t=wasmTable.get(e)),t},"getWasmTableEntry"),updateTableMap=__name((e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},"updateTableMap"),getFunctionAddress=__name(e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),"getFunctionAddress"),freeTableIndexes=[],getEmptyTableSlot=__name(()=>freeTableIndexes.length?freeTableIndexes.pop():wasmTable.grow(1),"getEmptyTableSlot"),setWasmTableEntry=__name((e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},"setWasmTableEntry"),addFunction=__name((e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;setWasmTableEntry(n,convertJsFunctionToWasm(e,t))}return functionsInTableMap.set(e,n),n},"addFunction"),updateGOT=__name((e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},"updateGOT"),relocateExports=__name((e,t,r)=>{var n={};for(var i in e){var s=e[i];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[i]=s}return updateGOT(n,r),n},"relocateExports"),isSymbolDefined=__name(e=>{var t=wasmImports[e];return!!t&&!t.stub},"isSymbolDefined"),dynCall=__name((e,t,r=[],n=!1)=>{var i=getWasmTableEntry(t)(...r);function s(e){return e}return __name(s,"convert"),s(i)},"dynCall"),stackSave=__name(()=>_emscripten_stack_get_current(),"stackSave"),stackRestore=__name(e=>__emscripten_stack_restore(e),"stackRestore"),createInvokeFunction=__name(e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(t){if(stackRestore(n),t!==t+0)throw t;if(_setThrew(1,0),"j"==e[0])return 0n}},"createInvokeFunction"),resolveGlobalSymbol=__name((e,t=!1)=>{var r;return isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},"resolveGlobalSymbol"),onPostCtors=[],addOnPostCtor=__name(e=>onPostCtors.push(e),"addOnPostCtor"),UTF8ToString=__name((e,t,r)=>e?UTF8ArrayToString(HEAPU8,e,t,r):"","UTF8ToString"),loadWebAssemblyModule=__name((binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var moduleExports,memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32((handle+12>>2)*4,memoryBase),LE_HEAP_STORE_I32((handle+16>>2)*4,metadata.memorySize),LE_HEAP_STORE_U32((handle+20>>2)*4,tableBase),LE_HEAP_STORE_I32((handle+24>>2)*4,metadata.tableSize)),metadata.tableSize&&wasmTable.grow(metadata.tableSize),__name(resolveSymbol,"resolveSymbol");var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub){var r;return wasmImports[t]}return t in e||(e[t]=(...e)=>(r||=resolveSymbol(t))(...e)),e[t]}},proxy=new Proxy({},proxyHandler);currentModuleWeakSymbols=metadata.weakImports;var info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16;arity++)if(-1!=body.indexOf("$"+arity))args.push("$"+arity);else break;args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),__name(addEmAsm,"addEmAsm"),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(",")){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in __name(addEmJs,"addEmJs"),moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():addOnPostCtor(init)),moduleExports}if(__name(postInstantiation,"postInstantiation"),flags.loadAsync)return(async()=>{var e;return binary instanceof WebAssembly.Module?e=new WebAssembly.Instance(binary,info):{module:binary,instance:e}=await WebAssembly.instantiate(binary,info),postInstantiation(binary,e)})();var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return(__name(loadModule,"loadModule"),flags={...flags,rpath:{parentLibPath:libName,paths:metadata.runtimePaths}},flags.loadAsync)?metadata.neededDynlibs.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(e=>loadDynamicLibrary(e,flags,localScope)),loadModule())},"loadWebAssemblyModule"),mergeLibSymbols=__name((e,t)=>{for(var[r,n]of Object.entries(e)){let e=__name(e=>{isSymbolDefined(e)||(wasmImports[e]=n)},"setImport");e(r);let t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main")}},"mergeLibSymbols"),asyncLoad=__name(async e=>new Uint8Array(await readAsync(e)),"asyncLoad");function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var i=LDSO.loadedLibsByName[e];if(i)return t.global?i.global||(i.global=!0,mergeLibSymbols(i.exports,e)):r&&Object.assign(r,i.exports),t.nodelete&&i.refcount!==1/0&&(i.refcount=1/0),i.refcount++,n&&(LDSO.loadedLibsByHandle[n]=i),!t.loadAsync||Promise.resolve(!0);function s(){if(n){var r=LE_HEAP_LOAD_U32((n+28>>2)*4),i=LE_HEAP_LOAD_U32((n+32>>2)*4);if(r&&i){var s=HEAP8.slice(r,r+i);return t.loadAsync?Promise.resolve(s):s}}var o=locateFile(e);if(t.loadAsync)return asyncLoad(o);if(!readBinary)throw Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?s().then(i=>loadWebAssemblyModule(i,t,e,r,n)):loadWebAssemblyModule(s(),t,e,r,n)}function l(t){i.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),i.exports=t}return((i=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,i.global=t.global,__name(s,"loadLibData"),__name(o,"getExports"),__name(l,"moduleLoaded"),t.loadAsync)?o().then(e=>(l(e),!0)):(l(o()),!0)}__name(loadDynamicLibrary,"loadDynamicLibrary");var reportUndefinedSymbols=__name(()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else if("number"==typeof r)t.value=r;else throw Error(`bad export type for '${e}': ${typeof r}`)}},"reportUndefinedSymbols"),runDependencies=0,dependenciesFulfilled=null,removeRunDependency=__name(e=>{if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}},"removeRunDependency"),addRunDependency=__name(e=>{runDependencies++,Module.monitorRunDependencies?.(runDependencies)},"addRunDependency"),loadDylibs=__name(async()=>{if(!dynamicLibraries.length)return void reportUndefinedSymbols();for(var e of(addRunDependency("loadDylibs"),dynamicLibraries))await loadDynamicLibrary(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0});reportUndefinedSymbols(),removeRunDependency("loadDylibs")},"loadDylibs"),noExitRuntime=!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16((e>>1)*2,t);break;case"i32":LE_HEAP_STORE_I32((e>>2)*4,t);break;case"i64":LE_HEAP_STORE_I64((e>>3)*8,BigInt(t));break;case"float":LE_HEAP_STORE_F32((e>>2)*4,t);break;case"double":LE_HEAP_STORE_F64((e>>3)*8,t);break;case"*":LE_HEAP_STORE_U32((e>>2)*4,t);break;default:abort(`invalid type for setValue: ${r}`)}}__name(setValue,"setValue");var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_high=78240,___stack_low=12704,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78240),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=__name(()=>abort(""),"__abort_js");__abort_js.sig="v";var getHeapMax=__name(()=>0x80000000,"getHeapMax"),growMemory=__name(e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536|0;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},"growMemory"),_emscripten_resize_heap=__name(e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n=1;n<=4;n*=2){var i=t*(1+.2/n);if(i=Math.min(i,e+0x6000000),growMemory(Math.min(r,alignMemory(Math.max(e,i),65536))))return!0}return!1},"_emscripten_resize_heap");_emscripten_resize_heap.sig="ip";var _fd_close=__name(e=>52,"_fd_close");_fd_close.sig="ii";var INT53_MAX=0x20000000000000,INT53_MIN=-0x20000000000000,bigintToI53Checked=__name(e=>e<INT53_MIN||e>INT53_MAX?NaN:Number(e),"bigintToI53Checked");function _fd_seek(e,t,r,n){return t=bigintToI53Checked(t),70}__name(_fd_seek,"_fd_seek"),_fd_seek.sig="iijip";var printCharBuffers=[null,[],[]],printChar=__name((e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r)),r.length=0):r.push(t)},"printChar"),_fd_write=__name((e,t,r,n)=>{for(var i=0,s=0;s<r;s++){var o=LE_HEAP_LOAD_U32((t>>2)*4),l=LE_HEAP_LOAD_U32((t+4>>2)*4);t+=8;for(var a=0;a<l;a++)printChar(e,HEAPU8[o+a]);i+=l}return LE_HEAP_STORE_U32((n>>2)*4,i),0},"_fd_write");function _tree_sitter_log_callback(e,t){if(Module.currentLogCallback){let r=UTF8ToString(t);Module.currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,i){let s=10240,o=Module.currentParseCallback(t,{row:r,column:n});"string"==typeof o?(setValue(i,o.length,"i32"),stringToUTF16(o,e,s)):setValue(i,0,"i32")}function _tree_sitter_progress_callback(e,t){return!!Module.currentProgressCallback&&Module.currentProgressCallback({currentOffset:e,hasError:t})}function _tree_sitter_query_progress_callback(e){return!!Module.currentQueryProgressCallback&&Module.currentQueryProgressCallback({currentOffset:e})}_fd_write.sig="iippp",__name(_tree_sitter_log_callback,"_tree_sitter_log_callback"),__name(_tree_sitter_parse_callback,"_tree_sitter_parse_callback"),__name(_tree_sitter_progress_callback,"_tree_sitter_progress_callback"),__name(_tree_sitter_query_progress_callback,"_tree_sitter_query_progress_callback");var runtimeKeepaliveCounter=0,keepRuntimeAlive=__name(()=>noExitRuntime||runtimeKeepaliveCounter>0,"keepRuntimeAlive"),_proc_exit=__name(e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))},"_proc_exit");_proc_exit.sig="vi";var exitJS=__name((e,t)=>{EXITSTATUS=e,_proc_exit(e)},"exitJS"),handleException=__name(e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},"handleException"),lengthBytesUTF8=__name(e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},"lengthBytesUTF8"),stringToUTF8Array=__name((e,t,r,n)=>{if(!(n>0))return 0;for(var i=r,s=r+n-1,o=0;o<e.length;++o){var l=e.codePointAt(o);if(l<=127){if(r>=s)break;t[r++]=l}else if(l<=2047){if(r+1>=s)break;t[r++]=192|l>>6,t[r++]=128|63&l}else if(l<=65535){if(r+2>=s)break;t[r++]=224|l>>12,t[r++]=128|l>>6&63,t[r++]=128|63&l}else{if(r+3>=s)break;t[r++]=240|l>>18,t[r++]=128|l>>12&63,t[r++]=128|l>>6&63,t[r++]=128|63&l,o++}}return t[r]=0,r-i},"stringToUTF8Array"),stringToUTF8=__name((e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),"stringToUTF8"),stackAlloc=__name(e=>__emscripten_stack_alloc(e),"stackAlloc"),stringToUTF8OnStack=__name(e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},"stringToUTF8OnStack"),AsciiToString=__name(e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},"AsciiToString"),stringToUTF16=__name((e,t,r)=>{if((r??=0x7fffffff)<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,s=0;s<i;++s)LE_HEAP_STORE_I16((t>>1)*2,e.charCodeAt(s)),t+=2;return LE_HEAP_STORE_I16((t>>1)*2,0),t-n},"stringToUTF16");function LE_HEAP_UPDATE(){HEAPU16.unsigned=e=>65535&e,HEAPU32.unsigned=e=>e>>>0}if(LE_ATOMICS_NATIVE_BYTE_ORDER=1===new Int8Array(new Int16Array([1]).buffer)[0]?[e=>e,e=>e,void 0,e=>e]:[e=>e,e=>((65280&e)<<8|(255&e)<<24)>>16,void 0,e=>e>>24&255|e>>8&65280|(65280&e)<<8|(255&e)<<24],__name(LE_HEAP_UPDATE,"LE_HEAP_UPDATE"),initMemory(),Module.noExitRuntime&&(noExitRuntime=Module.noExitRuntime),Module.print&&(out=Module.print),Module.printErr&&(err=Module.printErr),Module.dynamicLibraries&&(dynamicLibraries=Module.dynamicLibraries),Module.wasmBinary&&(wasmBinary=Module.wasmBinary),Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.shift()();Module.setValue=setValue,Module.getValue=getValue,Module.UTF8ToString=UTF8ToString,Module.stringToUTF8=stringToUTF8,Module.lengthBytesUTF8=lengthBytesUTF8,Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,Module.loadWebAssemblyModule=loadWebAssemblyModule,Module.LE_HEAP_STORE_I64=LE_HEAP_STORE_I64;var ASM_CONSTS={};function assignWasmExports(e){Module._malloc=_malloc=e.malloc,Module._calloc=_calloc=e.calloc,Module._realloc=_realloc=e.realloc,Module._free=_free=e.free,Module._ts_range_edit=_ts_range_edit=e.ts_range_edit,Module._memcmp=_memcmp=e.memcmp,Module._ts_language_symbol_count=_ts_language_symbol_count=e.ts_language_symbol_count,Module._ts_language_state_count=_ts_language_state_count=e.ts_language_state_count,Module._ts_language_abi_version=_ts_language_abi_version=e.ts_language_abi_version,Module._ts_language_name=_ts_language_name=e.ts_language_name,Module._ts_language_field_count=_ts_language_field_count=e.ts_language_field_count,Module._ts_language_next_state=_ts_language_next_state=e.ts_language_next_state,Module._ts_language_symbol_name=_ts_language_symbol_name=e.ts_language_symbol_name,Module._ts_language_symbol_for_name=_ts_language_symbol_for_name=e.ts_language_symbol_for_name,Module._strncmp=_strncmp=e.strncmp,Module._ts_language_symbol_type=_ts_language_symbol_type=e.ts_language_symbol_type,Module._ts_language_field_name_for_id=_ts_language_field_name_for_id=e.ts_language_field_name_for_id,Module._ts_lookahead_iterator_new=_ts_lookahead_iterator_new=e.ts_lookahead_iterator_new,Module._ts_lookahead_iterator_delete=_ts_lookahead_iterator_delete=e.ts_lookahead_iterator_delete,Module._ts_lookahead_iterator_reset_state=_ts_lookahead_iterator_reset_state=e.ts_lookahead_iterator_reset_state,Module._ts_lookahead_iterator_reset=_ts_lookahead_iterator_reset=e.ts_lookahead_iterator_reset,Module._ts_lookahead_iterator_next=_ts_lookahead_iterator_next=e.ts_lookahead_iterator_next,Module._ts_lookahead_iterator_current_symbol=_ts_lookahead_iterator_current_symbol=e.ts_lookahead_iterator_current_symbol,Module._ts_point_edit=_ts_point_edit=e.ts_point_edit,Module._ts_parser_delete=_ts_parser_delete=e.ts_parser_delete,Module._ts_parser_reset=_ts_parser_reset=e.ts_parser_reset,Module._ts_parser_set_language=_ts_parser_set_language=e.ts_parser_set_language,Module._ts_parser_set_included_ranges=_ts_parser_set_included_ranges=e.ts_parser_set_included_ranges,Module._ts_query_new=_ts_query_new=e.ts_query_new,Module._ts_query_delete=_ts_query_delete=e.ts_query_delete,Module._iswspace=_iswspace=e.iswspace,Module._iswalnum=_iswalnum=e.iswalnum,Module._ts_query_pattern_count=_ts_query_pattern_count=e.ts_query_pattern_count,Module._ts_query_capture_count=_ts_query_capture_count=e.ts_query_capture_count,Module._ts_query_string_count=_ts_query_string_count=e.ts_query_string_count,Module._ts_query_capture_name_for_id=_ts_query_capture_name_for_id=e.ts_query_capture_name_for_id,Module._ts_query_capture_quantifier_for_id=_ts_query_capture_quantifier_for_id=e.ts_query_capture_quantifier_for_id,Module._ts_query_string_value_for_id=_ts_query_string_value_for_id=e.ts_query_string_value_for_id,Module._ts_query_predicates_for_pattern=_ts_query_predicates_for_pattern=e.ts_query_predicates_for_pattern,Module._ts_query_start_byte_for_pattern=_ts_query_start_byte_for_pattern=e.ts_query_start_byte_for_pattern,Module._ts_query_end_byte_for_pattern=_ts_query_end_byte_for_pattern=e.ts_query_end_byte_for_pattern,Module._ts_query_is_pattern_rooted=_ts_query_is_pattern_rooted=e.ts_query_is_pattern_rooted,Module._ts_query_is_pattern_non_local=_ts_query_is_pattern_non_local=e.ts_query_is_pattern_non_local,Module._ts_query_is_pattern_guaranteed_at_step=_ts_query_is_pattern_guaranteed_at_step=e.ts_query_is_pattern_guaranteed_at_step,Module._ts_query_disable_capture=_ts_query_disable_capture=e.ts_query_disable_capture,Module._ts_query_disable_pattern=_ts_query_disable_pattern=e.ts_query_disable_pattern,Module._ts_tree_copy=_ts_tree_copy=e.ts_tree_copy,Module._ts_tree_delete=_ts_tree_delete=e.ts_tree_delete,Module._ts_init=_ts_init=e.ts_init,Module._ts_parser_new_wasm=_ts_parser_new_wasm=e.ts_parser_new_wasm,Module._ts_parser_enable_logger_wasm=_ts_parser_enable_logger_wasm=e.ts_parser_enable_logger_wasm,Module._ts_parser_parse_wasm=_ts_parser_parse_wasm=e.ts_parser_parse_wasm,Module._ts_parser_included_ranges_wasm=_ts_parser_included_ranges_wasm=e.ts_parser_included_ranges_wasm,Module._ts_language_type_is_named_wasm=_ts_language_type_is_named_wasm=e.ts_language_type_is_named_wasm,Module._ts_language_type_is_visible_wasm=_ts_language_type_is_visible_wasm=e.ts_language_type_is_visible_wasm,Module._ts_language_metadata_wasm=_ts_language_metadata_wasm=e.ts_language_metadata_wasm,Module._ts_language_supertypes_wasm=_ts_language_supertypes_wasm=e.ts_language_supertypes_wasm,Module._ts_language_subtypes_wasm=_ts_language_subtypes_wasm=e.ts_language_subtypes_wasm,Module._ts_tree_root_node_wasm=_ts_tree_root_node_wasm=e.ts_tree_root_node_wasm,Module._ts_tree_root_node_with_offset_wasm=_ts_tree_root_node_with_offset_wasm=e.ts_tree_root_node_with_offset_wasm,Module._ts_tree_edit_wasm=_ts_tree_edit_wasm=e.ts_tree_edit_wasm,Module._ts_tree_included_ranges_wasm=_ts_tree_included_ranges_wasm=e.ts_tree_included_ranges_wasm,Module._ts_tree_get_changed_ranges_wasm=_ts_tree_get_changed_ranges_wasm=e.ts_tree_get_changed_ranges_wasm,Module._ts_tree_cursor_new_wasm=_ts_tree_cursor_new_wasm=e.ts_tree_cursor_new_wasm,Module._ts_tree_cursor_copy_wasm=_ts_tree_cursor_copy_wasm=e.ts_tree_cursor_copy_wasm,Module._ts_tree_cursor_delete_wasm=_ts_tree_cursor_delete_wasm=e.ts_tree_cursor_delete_wasm,Module._ts_tree_cursor_reset_wasm=_ts_tree_cursor_reset_wasm=e.ts_tree_cursor_reset_wasm,Module._ts_tree_cursor_reset_to_wasm=_ts_tree_cursor_reset_to_wasm=e.ts_tree_cursor_reset_to_wasm,Module._ts_tree_cursor_goto_first_child_wasm=_ts_tree_cursor_goto_first_child_wasm=e.ts_tree_cursor_goto_first_child_wasm,Module._ts_tree_cursor_goto_last_child_wasm=_ts_tree_cursor_goto_last_child_wasm=e.ts_tree_cursor_goto_last_child_wasm,Module._ts_tree_cursor_goto_first_child_for_index_wasm=_ts_tree_cursor_goto_first_child_for_index_wasm=e.ts_tree_cursor_goto_first_child_for_index_wasm,Module._ts_tree_cursor_goto_first_child_for_position_wasm=_ts_tree_cursor_goto_first_child_for_position_wasm=e.ts_tree_cursor_goto_first_child_for_position_wasm,Module._ts_tree_cursor_goto_next_sibling_wasm=_ts_tree_cursor_goto_next_sibling_wasm=e.ts_tree_cursor_goto_next_sibling_wasm,Module._ts_tree_cursor_goto_previous_sibling_wasm=_ts_tree_cursor_goto_previous_sibling_wasm=e.ts_tree_cursor_goto_previous_sibling_wasm,Module._ts_tree_cursor_goto_descendant_wasm=_ts_tree_cursor_goto_descendant_wasm=e.ts_tree_cursor_goto_descendant_wasm,Module._ts_tree_cursor_goto_parent_wasm=_ts_tree_cursor_goto_parent_wasm=e.ts_tree_cursor_goto_parent_wasm,Module._ts_tree_cursor_current_node_type_id_wasm=_ts_tree_cursor_current_node_type_id_wasm=e.ts_tree_cursor_current_node_type_id_wasm,Module._ts_tree_cursor_current_node_state_id_wasm=_ts_tree_cursor_current_node_state_id_wasm=e.ts_tree_cursor_current_node_state_id_wasm,Module._ts_tree_cursor_current_node_is_named_wasm=_ts_tree_cursor_current_node_is_named_wasm=e.ts_tree_cursor_current_node_is_named_wasm,Module._ts_tree_cursor_current_node_is_missing_wasm=_ts_tree_cursor_current_node_is_missing_wasm=e.ts_tree_cursor_current_node_is_missing_wasm,Module._ts_tree_cursor_current_node_id_wasm=_ts_tree_cursor_current_node_id_wasm=e.ts_tree_cursor_current_node_id_wasm,Module._ts_tree_cursor_start_position_wasm=_ts_tree_cursor_start_position_wasm=e.ts_tree_cursor_start_position_wasm,Module._ts_tree_cursor_end_position_wasm=_ts_tree_cursor_end_position_wasm=e.ts_tree_cursor_end_position_wasm,Module._ts_tree_cursor_start_index_wasm=_ts_tree_cursor_start_index_wasm=e.ts_tree_cursor_start_index_wasm,Module._ts_tree_cursor_end_index_wasm=_ts_tree_cursor_end_index_wasm=e.ts_tree_cursor_end_index_wasm,Module._ts_tree_cursor_current_field_id_wasm=_ts_tree_cursor_current_field_id_wasm=e.ts_tree_cursor_current_field_id_wasm,Module._ts_tree_cursor_current_depth_wasm=_ts_tree_cursor_current_depth_wasm=e.ts_tree_cursor_current_depth_wasm,Module._ts_tree_cursor_current_descendant_index_wasm=_ts_tree_cursor_current_descendant_index_wasm=e.ts_tree_cursor_current_descendant_index_wasm,Module._ts_tree_cursor_current_node_wasm=_ts_tree_cursor_current_node_wasm=e.ts_tree_cursor_current_node_wasm,Module._ts_node_symbol_wasm=_ts_node_symbol_wasm=e.ts_node_symbol_wasm,Module._ts_node_field_name_for_child_wasm=_ts_node_field_name_for_child_wasm=e.ts_node_field_name_for_child_wasm,Module._ts_node_field_name_for_named_child_wasm=_ts_node_field_name_for_named_child_wasm=e.ts_node_field_name_for_named_child_wasm,Module._ts_node_children_by_field_id_wasm=_ts_node_children_by_field_id_wasm=e.ts_node_children_by_field_id_wasm,Module._ts_node_first_child_for_byte_wasm=_ts_node_first_child_for_byte_wasm=e.ts_node_first_child_for_byte_wasm,Module._ts_node_first_named_child_for_byte_wasm=_ts_node_first_named_child_for_byte_wasm=e.ts_node_first_named_child_for_byte_wasm,Module._ts_node_grammar_symbol_wasm=_ts_node_grammar_symbol_wasm=e.ts_node_grammar_symbol_wasm,Module._ts_node_child_count_wasm=_ts_node_child_count_wasm=e.ts_node_child_count_wasm,Module._ts_node_named_child_count_wasm=_ts_node_named_child_count_wasm=e.ts_node_named_child_count_wasm,Module._ts_node_child_wasm=_ts_node_child_wasm=e.ts_node_child_wasm,Module._ts_node_named_child_wasm=_ts_node_named_child_wasm=e.ts_node_named_child_wasm,Module._ts_node_child_by_field_id_wasm=_ts_node_child_by_field_id_wasm=e.ts_node_child_by_field_id_wasm,Module._ts_node_next_sibling_wasm=_ts_node_next_sibling_wasm=e.ts_node_next_sibling_wasm,Module._ts_node_prev_sibling_wasm=_ts_node_prev_sibling_wasm=e.ts_node_prev_sibling_wasm,Module._ts_node_next_named_sibling_wasm=_ts_node_next_named_sibling_wasm=e.ts_node_next_named_sibling_wasm,Module._ts_node_prev_named_sibling_wasm=_ts_node_prev_named_sibling_wasm=e.ts_node_prev_named_sibling_wasm,Module._ts_node_descendant_count_wasm=_ts_node_descendant_count_wasm=e.ts_node_descendant_count_wasm,Module._ts_node_parent_wasm=_ts_node_parent_wasm=e.ts_node_parent_wasm,Module._ts_node_child_with_descendant_wasm=_ts_node_child_with_descendant_wasm=e.ts_node_child_with_descendant_wasm,Module._ts_node_descendant_for_index_wasm=_ts_node_descendant_for_index_wasm=e.ts_node_descendant_for_index_wasm,Module._ts_node_named_descendant_for_index_wasm=_ts_node_named_descendant_for_index_wasm=e.ts_node_named_descendant_for_index_wasm,Module._ts_node_descendant_for_position_wasm=_ts_node_descendant_for_position_wasm=e.ts_node_descendant_for_position_wasm,Module._ts_node_named_descendant_for_position_wasm=_ts_node_named_descendant_for_position_wasm=e.ts_node_named_descendant_for_position_wasm,Module._ts_node_start_point_wasm=_ts_node_start_point_wasm=e.ts_node_start_point_wasm,Module._ts_node_end_point_wasm=_ts_node_end_point_wasm=e.ts_node_end_point_wasm,Module._ts_node_start_index_wasm=_ts_node_start_index_wasm=e.ts_node_start_index_wasm,Module._ts_node_end_index_wasm=_ts_node_end_index_wasm=e.ts_node_end_index_wasm,Module._ts_node_to_string_wasm=_ts_node_to_string_wasm=e.ts_node_to_string_wasm,Module._ts_node_children_wasm=_ts_node_children_wasm=e.ts_node_children_wasm,Module._ts_node_named_children_wasm=_ts_node_named_children_wasm=e.ts_node_named_children_wasm,Module._ts_node_descendants_of_type_wasm=_ts_node_descendants_of_type_wasm=e.ts_node_descendants_of_type_wasm,Module._ts_node_is_named_wasm=_ts_node_is_named_wasm=e.ts_node_is_named_wasm,Module._ts_node_has_changes_wasm=_ts_node_has_changes_wasm=e.ts_node_has_changes_wasm,Module._ts_node_has_error_wasm=_ts_node_has_error_wasm=e.ts_node_has_error_wasm,Module._ts_node_is_error_wasm=_ts_node_is_error_wasm=e.ts_node_is_error_wasm,Module._ts_node_is_missing_wasm=_ts_node_is_missing_wasm=e.ts_node_is_missing_wasm,Module._ts_node_is_extra_wasm=_ts_node_is_extra_wasm=e.ts_node_is_extra_wasm,Module._ts_node_parse_state_wasm=_ts_node_parse_state_wasm=e.ts_node_parse_state_wasm,Module._ts_node_next_parse_state_wasm=_ts_node_next_parse_state_wasm=e.ts_node_next_parse_state_wasm,Module._ts_query_matches_wasm=_ts_query_matches_wasm=e.ts_query_matches_wasm,Module._ts_query_captures_wasm=_ts_query_captures_wasm=e.ts_query_captures_wasm,Module._memset=_memset=e.memset,Module._memcpy=_memcpy=e.memcpy,Module._memmove=_memmove=e.memmove,Module._iswalpha=_iswalpha=e.iswalpha,Module._iswblank=_iswblank=e.iswblank,Module._iswdigit=_iswdigit=e.iswdigit,Module._iswlower=_iswlower=e.iswlower,Module._iswupper=_iswupper=e.iswupper,Module._iswxdigit=_iswxdigit=e.iswxdigit,Module._memchr=_memchr=e.memchr,Module._strlen=_strlen=e.strlen,Module._strcmp=_strcmp=e.strcmp,Module._strncat=_strncat=e.strncat,Module._strncpy=_strncpy=e.strncpy,Module._towlower=_towlower=e.towlower,Module._towupper=_towupper=e.towupper,_setThrew=e.setThrew,__emscripten_stack_restore=e._emscripten_stack_restore,__emscripten_stack_alloc=e._emscripten_stack_alloc,_emscripten_stack_get_current=e.emscripten_stack_get_current,___wasm_apply_data_relocs=e.__wasm_apply_data_relocs}__name(assignWasmExports,"assignWasmExports");var wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback,tree_sitter_progress_callback:_tree_sitter_progress_callback,tree_sitter_query_progress_callback:_tree_sitter_query_progress_callback};function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc((r+1)*4),i=n;e.forEach(e=>{LE_HEAP_STORE_U32((i>>2)*4,stringToUTF8OnStack(e)),i+=4}),LE_HEAP_STORE_U32((i>>2)*4,0);try{var s=t(r,n);return exitJS(s,!0),s}catch(e){return handleException(e)}}}function run(e=arguments_){if(runDependencies>0||(preRun(),runDependencies>0)){dependenciesFulfilled=run;return}function t(){if(Module.calledRun=!0,!ABORT){initRuntime(),readyPromiseResolve?.(Module),Module.onRuntimeInitialized?.();var t=Module.noInitialRun||!1;t||callMain(e),postRun()}}__name(t,"doRun"),Module.setStatus?(Module.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>Module.setStatus(""),1),t()},1)):t()}return __name(callMain,"callMain"),__name(run,"run"),wasmExports=await createWasm(),run(),moduleRtn=runtimeInitialized?Module:new Promise((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t})}__name(Module2,"Module");var web_tree_sitter_default=Module2,Module3=null;async function initializeBinding(e){return Module3??=await web_tree_sitter_default(e)}function checkModule(){return!!Module3}__name(initializeBinding,"initializeBinding"),__name(checkModule,"checkModule");var Parser=class{static{__name(this,"Parser")}0=0;1=0;logCallback=null;language=null;static async init(e){setModule(await initializeBinding(e)),TRANSFER_BUFFER=C._ts_init(),LANGUAGE_VERSION=C.getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}constructor(){this.initialize()}initialize(){if(!checkModule())throw Error("cannot construct a Parser before calling `init()`");C._ts_parser_new_wasm(),this[0]=C.getValue(TRANSFER_BUFFER,"i32"),this[1]=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e)if(e.constructor===Language){t=e[0];let r=C._ts_language_abi_version(t);if(r<MIN_COMPATIBLE_VERSION||LANGUAGE_VERSION<r)throw Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${LANGUAGE_VERSION}.`);this.language=e}else throw Error("Argument must be a Language");else t=0,this.language=null;return C._ts_parser_set_language(this[0],t),this}parse(e,t,r){if("string"==typeof e)C.currentParseCallback=t=>e.slice(t);else if("function"==typeof e)C.currentParseCallback=e;else throw Error("Argument must be a string or a function");r?.progressCallback?C.currentProgressCallback=r.progressCallback:C.currentProgressCallback=null,this.logCallback?(C.currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(C.currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,i=0;if(r?.includedRanges){n=r.includedRanges.length;let e=i=C._calloc(n,SIZE_OF_RANGE);for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}let s=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,i,n);if(!s)return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,null;if(!this.language)throw Error("Parser must have a language to parse");let o=new Tree(INTERNAL,s,this.language,C.currentParseCallback);return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,o}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}setLogger(e){if(e)if("function"!=typeof e)throw Error("Logger callback must be a function");else this.logCallback=e;else this.logCallback=null;return this}getLogger(){return this.logCallback}},PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,QUERY_WORD_REGEX=/[\w-]+/g,CaptureQuantifier={},isCaptureStep=__name(e=>"capture"===e.type,"isCaptureStep"),isStringStep=__name(e=>"string"===e.type,"isStringStep"),QueryErrorKind={Syntax:1,NodeName:2,FieldName:3,CaptureName:4,PatternStructure:5},QueryError=class _QueryError extends Error{constructor(e,t,r,n){super(_QueryError.formatMessage(e,t)),this.kind=e,this.info=t,this.index=r,this.length=n,this.name="QueryError"}static{__name(this,"QueryError")}static formatMessage(e,t){switch(e){case QueryErrorKind.NodeName:return`Bad node name '${t.word}'`;case QueryErrorKind.FieldName:return`Bad field name '${t.word}'`;case QueryErrorKind.CaptureName:return`Bad capture name @${t.word}`;case QueryErrorKind.PatternStructure:return`Bad pattern structure at offset ${t.suffix}`;case QueryErrorKind.Syntax:return`Bad syntax at offset ${t.suffix}`}}};function parseAnyPredicate(e,t,r,n){if(3!==e.length)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 2, got ${e.length-1}`);if(!isCaptureStep(e[1]))throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}"`);let i="eq?"===r||"any-eq?"===r,s=!r.startsWith("any-");if(isCaptureStep(e[2])){let r=e[1].name,o=e[2].name;n[t].push(e=>{let t=[],n=[];for(let i of e)i.name===r&&t.push(i.node),i.name===o&&n.push(i.node);let l=__name((e,t,r)=>r?e.text===t.text:e.text!==t.text,"compare");return s?t.every(e=>n.some(t=>l(e,t,i))):t.some(e=>n.some(t=>l(e,t,i)))})}else{let r=e[1].name,o=e[2].value,l=__name(e=>e.text===o,"matches"),a=__name(e=>e.text!==o,"doesNotMatch");n[t].push(e=>{let t=[];for(let n of e)n.name===r&&t.push(n.node);let n=i?l:a;return s?t.every(n):t.some(n)})}}function parseMatchPredicate(e,t,r,n){if(3!==e.length)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 2, got ${e.length-1}.`);if("capture"!==e[1].type)throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}".`);if("string"!==e[2].type)throw Error(`Second argument of \`#${r}\` predicate must be a string. Got @${e[2].name}.`);let i="match?"===r||"any-match?"===r,s=!r.startsWith("any-"),o=e[1].name,l=new RegExp(e[2].value);n[t].push(e=>{let t=[];for(let r of e)r.name===o&&t.push(r.node.text);let r=__name((e,t)=>t?l.test(e):!l.test(e),"test");return 0===t.length?!i:s?t.every(e=>r(e,i)):t.some(e=>r(e,i))})}function parseAnyOfPredicate(e,t,r,n){if(e.length<2)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected at least 1. Got ${e.length-1}.`);if("capture"!==e[1].type)throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}".`);let i="any-of?"===r,s=e[1].name,o=e.slice(2);if(!o.every(isStringStep))throw Error(`Arguments to \`#${r}\` predicate must be strings.".`);let l=o.map(e=>e.value);n[t].push(e=>{let t=[];for(let r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!i:t.every(e=>l.includes(e))===i})}function parseIsPredicate(e,t,r,n,i){if(e.length<2||e.length>3)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw Error(`Arguments to \`#${r}\` predicate must be strings.".`);let s="is?"===r?n:i;s[t]||(s[t]={}),s[t][e[1].value]=e[2]?.value??null}function parseSetDirective(e,t,r){if(e.length<2||e.length>3)throw Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw Error('Arguments to `#set!` predicate must be strings.".');r[t]||(r[t]={}),r[t][e[1].value]=e[2]?.value??null}function parsePattern(e,t,r,n,i,s,o,l,a,u,c){if(t===PREDICATE_STEP_TYPE_CAPTURE){let e=n[r];s.push({type:"capture",name:e})}else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:i[r]});else if(s.length>0){if("string"!==s[0].type)throw Error("Predicates must begin with a literal value");let t=s[0].value;switch(t){case"any-not-eq?":case"not-eq?":case"any-eq?":case"eq?":parseAnyPredicate(s,e,t,o);break;case"any-not-match?":case"not-match?":case"any-match?":case"match?":parseMatchPredicate(s,e,t,o);break;case"not-any-of?":case"any-of?":parseAnyOfPredicate(s,e,t,o);break;case"is?":case"is-not?":parseIsPredicate(s,e,t,u,c);break;case"set!":parseSetDirective(s,e,a);break;default:l[e].push({operator:t,operands:s.slice(1)})}s.length=0}}__name(parseAnyPredicate,"parseAnyPredicate"),__name(parseMatchPredicate,"parseMatchPredicate"),__name(parseAnyOfPredicate,"parseAnyOfPredicate"),__name(parseIsPredicate,"parseIsPredicate"),__name(parseSetDirective,"parseSetDirective"),__name(parsePattern,"parsePattern");var Query=class{static{__name(this,"Query")}0=0;exceededMatchLimit;textPredicates;captureNames;captureQuantifiers;predicates;setProperties;assertedProperties;refutedProperties;matchLimit;constructor(e,t){const r=C.lengthBytesUTF8(t),n=C._malloc(r+1);C.stringToUTF8(t,n,r+1);const i=C._ts_query_new(e[0],n,r,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!i){const e=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=C.getValue(TRANSFER_BUFFER,"i32"),i=C.UTF8ToString(n,r).length,s=t.slice(i,i+100).split("\n")[0],o=s.match(QUERY_WORD_REGEX)?.[0]??"";switch(C._free(n),e){case QueryErrorKind.Syntax:throw new QueryError(QueryErrorKind.Syntax,{suffix:`${i}: '${s}'...`},i,0);case QueryErrorKind.NodeName:case QueryErrorKind.FieldName:case QueryErrorKind.CaptureName:throw new QueryError(e,{word:o},i,o.length);case QueryErrorKind.PatternStructure:throw new QueryError(e,{suffix:`${i}: '${s}'...`},i,0)}}const s=C._ts_query_string_count(i),o=C._ts_query_capture_count(i),l=C._ts_query_pattern_count(i),a=Array(o),u=Array(l),c=Array(s);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");a[e]=C.UTF8ToString(t,r)}for(let e=0;e<l;e++){const t=Array(o);for(let r=0;r<o;r++){const n=C._ts_query_capture_quantifier_for_id(i,e,r);t[r]=n}u[e]=t}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");c[e]=C.UTF8ToString(t,r)}const h=Array(l),d=Array(l),p=Array(l),f=Array(l),m=Array(l);for(let e=0;e<l;e++){const t=C._ts_query_predicates_for_pattern(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");f[e]=[],m[e]=[];const n=[];let s=t;for(let t=0;t<r;t++){const t=C.getValue(s,"i32");s+=SIZE_OF_INT;const r=C.getValue(s,"i32");s+=SIZE_OF_INT,parsePattern(e,t,r,a,c,n,m,f,h,d,p)}Object.freeze(m[e]),Object.freeze(f[e]),Object.freeze(h[e]),Object.freeze(d[e]),Object.freeze(p[e])}C._free(n),this[0]=i,this.captureNames=a,this.captureQuantifiers=u,this.textPredicates=m,this.predicates=f,this.setProperties=h,this.assertedProperties=d,this.refutedProperties=p,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t={}){let r=t.startPosition??ZERO_POINT,n=t.endPosition??ZERO_POINT,i=t.startIndex??0,s=t.endIndex??0,o=t.startContainingPosition??ZERO_POINT,l=t.endContainingPosition??ZERO_POINT,a=t.startContainingIndex??0,u=t.endContainingIndex??0,c=t.matchLimit??0xffffffff,h=t.maxStartDepth??0xffffffff,d=t.progressCallback;if("number"!=typeof c)throw Error("Arguments must be numbers");if(this.matchLimit=c,0!==s&&i>s)throw Error("`startIndex` cannot be greater than `endIndex`");if(n!==ZERO_POINT&&(r.row>n.row||r.row===n.row&&r.column>n.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==u&&a>u)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(l!==ZERO_POINT&&(o.row>l.row||o.row===l.row&&o.column>l.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],r.row,r.column,n.row,n.column,i,s,o.row,o.column,l.row,l.column,a,u,c,h);let p=C.getValue(TRANSFER_BUFFER,"i32"),f=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),m=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=Array(p);this.exceededMatchLimit=!!m;let _=0,y=f;for(let t=0;t<p;t++){let t=C.getValue(y,"i32");y+=SIZE_OF_INT;let r=C.getValue(y,"i32");y+=SIZE_OF_INT;let n=Array(r);if(y=unmarshalCaptures(this,e.tree,y,t,n),this.textPredicates[t].every(e=>e(n))){g[_]={patternIndex:t,captures:n};let e=this.setProperties[t];g[_].setProperties=e;let r=this.assertedProperties[t];g[_].assertedProperties=r;let i=this.refutedProperties[t];g[_].refutedProperties=i,_++}}return g.length=_,C._free(f),C.currentQueryProgressCallback=null,g}captures(e,t={}){let r=t.startPosition??ZERO_POINT,n=t.endPosition??ZERO_POINT,i=t.startIndex??0,s=t.endIndex??0,o=t.startContainingPosition??ZERO_POINT,l=t.endContainingPosition??ZERO_POINT,a=t.startContainingIndex??0,u=t.endContainingIndex??0,c=t.matchLimit??0xffffffff,h=t.maxStartDepth??0xffffffff,d=t.progressCallback;if("number"!=typeof c)throw Error("Arguments must be numbers");if(this.matchLimit=c,0!==s&&i>s)throw Error("`startIndex` cannot be greater than `endIndex`");if(n!==ZERO_POINT&&(r.row>n.row||r.row===n.row&&r.column>n.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==u&&a>u)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(l!==ZERO_POINT&&(o.row>l.row||o.row===l.row&&o.column>l.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],r.row,r.column,n.row,n.column,i,s,o.row,o.column,l.row,l.column,a,u,c,h);let p=C.getValue(TRANSFER_BUFFER,"i32"),f=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),m=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=[];this.exceededMatchLimit=!!m;let _=[],y=f;for(let t=0;t<p;t++){let t=C.getValue(y,"i32");y+=SIZE_OF_INT;let r=C.getValue(y,"i32");y+=SIZE_OF_INT;let n=C.getValue(y,"i32");if(y+=SIZE_OF_INT,_.length=r,y=unmarshalCaptures(this,e.tree,y,t,_),this.textPredicates[t].every(e=>e(_))){let e=_[n];e.setProperties=this.setProperties[t],e.assertedProperties=this.assertedProperties[t],e.refutedProperties=this.refutedProperties[t],g.push(e)}}return C._free(f),C.currentQueryProgressCallback=null,g}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){let t=C.lengthBytesUTF8(e),r=C._malloc(t+1);C.stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}disablePattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);C._ts_query_disable_pattern(this[0],e)}didExceedMatchLimit(){return this.exceededMatchLimit}startIndexForPattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_start_byte_for_pattern(this[0],e)}endIndexForPattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_end_byte_for_pattern(this[0],e)}patternCount(){return C._ts_query_pattern_count(this[0])}captureIndexForName(e){return this.captureNames.indexOf(e)}isPatternRooted(e){return 1===C._ts_query_is_pattern_rooted(this[0],e)}isPatternNonLocal(e){return 1===C._ts_query_is_pattern_non_local(this[0],e)}isPatternGuaranteedAtStep(e){return 1===C._ts_query_is_pattern_guaranteed_at_step(this[0],e)}}},15813:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],s=(0,n.A)("list",i)},20232:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],s=(0,n.A)("play",i)},20986:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],s=(0,n.A)("rotate-cw",i)},26932:(e,t,r)=>{"use strict";r.d(t,{o:()=>nB});var n,i,s,o,l,a,u,c={};r.r(c),r.d(c,{decode:()=>k,encode:()=>v,format:()=>C,parse:()=>z});var h={};r.r(h),r.d(h,{Any:()=>B,Cc:()=>q,Cf:()=>j,P:()=>P,S:()=>$,Z:()=>H});var d={};r.r(d),r.d(d,{arrayReplaceAt:()=>ep,asciiTrim:()=>ez,assign:()=>ed,escapeHtml:()=>eS,escapeRE:()=>eT,fromCodePoint:()=>em,has:()=>eh,isMdAsciiPunct:()=>eR,isPunctChar:()=>eI,isPunctCharCode:()=>eL,isSpace:()=>eD,isString:()=>eu,isValidEntityCode:()=>ef,isWhiteSpace:()=>eF,lib:()=>eP,normalizeReference:()=>eN,unescapeAll:()=>ex,unescapeMd:()=>ew});var p={};r.r(p),r.d(p,{parseLinkDestination:()=>eB,parseLinkLabel:()=>e$,parseLinkTitle:()=>eq});var f=r(82159),m=r(27050);let g={};function _(e){let t=g[e];if(t)return t;t=g[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);t.push(r)}for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function y(e,t){"string"!=typeof t&&(t=y.defaultChars);let r=_(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let n=0,i=e.length;n<i;n+=3){let s=parseInt(e.slice(n+1,n+3),16);if(s<128){t+=r[s];continue}if((224&s)==192&&n+3<i){let r=parseInt(e.slice(n+4,n+6),16);if((192&r)==128){let e=s<<6&1984|63&r;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&s)==224&&n+6<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if((192&r)==128&&(192&i)==128){let e=s<<12&61440|r<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&s)==240&&n+9<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),o=parseInt(e.slice(n+10,n+12),16);if((192&r)==128&&(192&i)==128&&(192&o)==128){let e=s<<18&1835008|r<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}y.defaultChars=";/?:@&=+$,#",y.componentChars="";let k=y,b={};function w(e){let t=b[e];if(t)return t;t=b[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function x(e,t,r){"string"!=typeof t&&(r=t,t=x.defaultChars),void 0===r&&(r=!0);let n=w(t),i="";for(let t=0,s=e.length;t<s;t++){let o=e.charCodeAt(t);if(r&&37===o&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<s){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}x.defaultChars=";/?:@&=+$,-_.!~*'()#",x.componentChars="-_.!~*'()";let v=x;function C(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function A(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let E=/^([a-z0-9.+-]+:)/i,S=/:[0-9]*$/,M=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,T=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),D=["/","?","#"],F=255,I=/^[+a-z0-9A-Z_-]{0,63}$/,L=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,R={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function O(e,t){if(e&&e instanceof A)return e;let r=new A;return r.parse(e,t),r}A.prototype.parse=function(e,t){let r,n,i,s=e;if(s=s.trim(),!t&&1===e.split("#").length){let e=M.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=E.exec(s);if(o&&(r=(o=o[0]).toLowerCase(),this.protocol=o,s=s.substr(o.length)),(t||o||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===s.substr(0,2))&&!(o&&R[o])&&(s=s.substr(2),this.slashes=!0),!R[o]&&(i||o&&!N[o])){let e,t,r=-1;for(let e=0;e<D.length;e++)-1!==(n=s.indexOf(D[e]))&&(-1===r||n<r)&&(r=n);-1!==(t=-1===r?s.lastIndexOf("@"):s.lastIndexOf("@",r))&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),r=-1;for(let e=0;e<T.length;e++)-1!==(n=s.indexOf(T[e]))&&(-1===r||n<r)&&(r=n);-1===r&&(r=s.length),":"===s[r-1]&&r--;let i=s.slice(0,r);s=s.slice(r),this.parseHost(i),this.hostname=this.hostname||"";let o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){let e=this.hostname.split(/\./);for(let t=0,r=e.length;t<r;t++){let r=e[t];if(r&&!r.match(I)){let n="";for(let e=0,t=r.length;e<t;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(I)){let n=e.slice(0,t),i=e.slice(t+1),o=r.match(L);o&&(n.push(o[1]),i.unshift(o[2])),i.length&&(s=i.join(".")+s),this.hostname=n.join(".");break}}}}this.hostname.length>F&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let l=s.indexOf("#");-1!==l&&(this.hash=s.substr(l),s=s.slice(0,l));let a=s.indexOf("?");return -1!==a&&(this.search=s.substr(a),s=s.slice(0,a)),s&&(this.pathname=s),N[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},A.prototype.parseHost=function(e){let t=S.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};let z=O,P=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,B=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q=/[\0-\x1F\x7F-\x9F]/,j=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,H=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,V=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCAC؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\uD835\uDD2BȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\uD835\uDD2Cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),U=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),W=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),J=null!=(n=String.fromCodePoint)?n:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function K(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!=(t=W.get(e))?t:e}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(i||(i={}));let G=32;function Z(e){return e>=i.ZERO&&e<=i.NINE}function X(e){return e>=i.UPPER_A&&e<=i.UPPER_F||e>=i.LOWER_A&&e<=i.LOWER_F}function Y(e){return e>=i.UPPER_A&&e<=i.UPPER_Z||e>=i.LOWER_A&&e<=i.LOWER_Z||Z(e)}function Q(e){return e===i.EQUALS||Y(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(s||(s={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(o||(o={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(l||(l={}));class ee{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=o.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l.Strict}startEntity(e){this.decodeMode=e,this.state=o.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case o.EntityStart:if(e.charCodeAt(t)===i.NUM)return this.state=o.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=o.NamedEntity,this.stateNamedEntity(e,t);case o.NumericStart:return this.stateNumericStart(e,t);case o.NumericDecimal:return this.stateNumericDecimal(e,t);case o.NumericHex:return this.stateNumericHex(e,t);case o.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|G)===i.LOWER_X?(this.state=o.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=o.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!(Z(n)||X(n)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!Z(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===i.SEMI)this.consumed+=1;else if(this.decodeMode===l.Strict)return 0;return this.emitCodePoint(K(this.result),this.consumed),this.errors&&(e!==i.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],o=(n&s.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=er(r,n,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return 0===this.result||this.decodeMode===l.Attribute&&(0===o||Q(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(o=((n=r[this.treeIndex])&s.VALUE_LENGTH)>>14)){if(a===i.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==l.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&s.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~s.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case o.NamedEntity:return 0!==this.result&&(this.decodeMode!==l.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case o.NumericDecimal:return this.emitNumericEntity(0,2);case o.NumericHex:return this.emitNumericEntity(0,3);case o.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case o.EntityStart:return 0}}}function et(e){let t="",r=new ee(e,e=>t+=J(e));return function(e,n){let i=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(i,s),r.startEntity(n);let o=r.write(e,s+1);if(o<0){i=s+r.end();break}i=s+o,s=0===o?i+1:i}let o=t+e.slice(i);return t="",o}}function er(e,t,r,n){let i=(t&s.BRANCH_LENGTH)>>7,o=t&s.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let t=n-o;return t<0||t>=i?-1:e[r+t]-1}let l=r,a=l+i-1;for(;l<=a;){let t=l+a>>>1,r=e[t];if(r<n)l=t+1;else{if(!(r>n))return e[t+i];a=t-1}}return -1}let en=et(V);function ei(e,t=l.Legacy){return en(e,t)}function es(e){return en(e,l.Strict)}et(U);let eo=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function el(e,t){return function(r){let n,i=0,s="";for(;n=e.exec(r);)i!==n.index&&(s+=r.substring(i,n.index)),s+=t.get(n[0].charCodeAt(0)),i=n.index+1;return s+r.substring(i)}}function ea(e){return Object.prototype.toString.call(e)}function eu(e){return"[object String]"===ea(e)}String.prototype.codePointAt,el(/[&<>'"]/g,eo),el(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),el(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(a||(a={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(u||(u={}));let ec=Object.prototype.hasOwnProperty;function eh(e,t){return ec.call(e,t)}function ed(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(r){e[r]=t[r]})}}),e}function ep(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function ef(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function em(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let eg=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,e_=/&([a-z#][a-z0-9]{1,31});/gi,ey=RegExp(eg.source+"|"+e_.source,"gi"),ek=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function eb(e,t){if(35===t.charCodeAt(0)&&ek.test(t)){let r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ef(r)?em(r):e}let r=ei(e);return r!==e?r:e}function ew(e){return 0>e.indexOf("\\")?e:e.replace(eg,"$1")}function ex(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(ey,function(e,t,r){return t||eb(e,r)})}let ev=/[&<>"]/,eC=/[&<>"]/g,eA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function eE(e){return eA[e]}function eS(e){return ev.test(e)?e.replace(eC,eE):e}let eM=/[.?*+^$[\]\\(){}|-]/g;function eT(e){return e.replace(eM,"\\$&")}function eD(e){switch(e){case 9:case 32:return!0}return!1}function eF(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function eI(e){return P.test(e)||$.test(e)}function eL(e){return eI(em(e))}function eR(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function eN(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}function eO(e){return 32===e||9===e||10===e||13===e}function ez(e){let t=0;for(;t<e.length&&eO(e.charCodeAt(t));t++);let r=e.length-1;for(;r>=t&&eO(e.charCodeAt(r));r--);return e.slice(t,r+1)}let eP={mdurl:c,ucmicro:h};function e$(e,t,r){let n,i,s,o,l=e.posMax,a=e.pos;for(e.pos=t+1,n=1;e.pos<l;){if(93===(s=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===s){if(o===e.pos-1)n++;else if(r)return e.pos=a,-1}}let u=-1;return i&&(u=e.pos),e.pos=a,u}function eB(e,t,r){let n,i=t,s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r&&10!==(n=e.charCodeAt(i))&&60!==n;){if(62===n){s.pos=i+1,s.str=ex(e.slice(t+1,i)),s.ok=!0;break}if(92===n&&i+1<r){i+=2;continue}i++}return s}let o=0;for(;i<r&&32!==(n=e.charCodeAt(i))&&!(n<32)&&127!==n;){if(92===n&&i+1<r){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===n&&++o>32)return s;if(41===n){if(0===o)break;o--}i++}return t===i||0!==o||(s.str=ex(e.slice(t,i)),s.pos=i,s.ok=!0),s}function eq(e,t,r,n){let i,s=t,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(s>=r)return o;let n=e.charCodeAt(s);if(34!==n&&39!==n&&40!==n)return o;t++,s++,40===n&&(n=41),o.marker=n}for(;s<r;){if((i=e.charCodeAt(s))===o.marker)return o.pos=s+1,o.str+=ex(e.slice(t,s)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&s+1<r&&s++,s++}return o.can_continue=!0,o.str+=ex(e.slice(t,s)),o}let ej={};function eH(){this.rules=ed({},ej)}ej.code_inline=function(e,t,r,n,i){let s=e[t];return"<code"+i.renderAttrs(s)+">"+eS(s.content)+"</code>"},ej.code_block=function(e,t,r,n,i){let s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+eS(e[t].content)+"</code></pre>\n"},ej.fence=function(e,t,r,n,i){let s,o=e[t],l=o.info?ex(o.info).trim():"",a="",u="";if(l){let e=l.split(/(\s+)/g);a=e[0],u=e.slice(2).join("")}if(0===(s=r.highlight&&r.highlight(o.content,a,u)||eS(o.content)).indexOf("<pre"))return s+"\n";if(l){let e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];e<0?t.push(["class",r.langPrefix+a]):(t[e]=t[e].slice(),t[e][1]+=" "+r.langPrefix+a);let n={attrs:t};return`<pre><code${i.renderAttrs(n)}>${s}</code></pre>
@@ -17,4 +17,4 @@ ${r}
17
17
  `,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:r,editor:n})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=r;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:s}=this.options,{splittableMarks:o}=n.extensionManager,l=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&l&&s){let t=l.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),x=r(52740),v=n.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,n.KV)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,n.AB)(t,t.schema.nodes[this.name]))return!1;let{selection:r}=t,{$to:i}=r,s=e();return(0,n.BQ)(r)?s.insertContentAt(i.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({state:e,tr:t,dispatch:r})=>{if(r){let{$to:r}=t.selection,n=r.end();if(r.nodeAfter)r.nodeAfter.isTextblock?t.setSelection(m.U3.create(t.doc,r.pos+1)):r.nodeAfter.isBlock?t.setSelection(m.nh.create(t.doc,r.pos)):t.setSelection(m.U3.create(t.doc,r.pos));else{let i=e.schema.nodes[this.options.nextNodeType]||r.parent.type.contentMatch.defaultType,s=null==i?void 0:i.create();s&&(t.insert(n,s),t.setSelection(m.U3.create(t.doc,n+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,n.Ce)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),C=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,A=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,E=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,S=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,M=n.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,n.OX)({find:C,type:this.type}),(0,n.OX)({find:E,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:A,type:this.type}),(0,n.Zc)({find:S,type:this.type})]}}),T=r(59265),D=r(82150),F="&nbsp;",I="\xa0",L=n.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let r=e.tokens||[];if(1===r.length&&"image"===r[0].type)return t.parseChildren([r[0]]);let n=t.parseInline(r);return 1===r.length&&"text"===r[0].type&&(r[0].raw===F||r[0].text===F||r[0].raw===I||r[0].text===I)&&1===n.length&&"text"===n[0].type&&(n[0].text===F||n[0].text===I)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,n)},renderMarkdown:(e,t,r)=>{var n,i;if(!e)return"";let s=Array.isArray(e.content)?e.content:[];if(0===s.length){let e=Array.isArray(null==(n=null==r?void 0:r.previousNode)?void 0:n.content)?r.previousNode.content:[];return(null==(i=null==r?void 0:r.previousNode)?void 0:i.type)==="paragraph"&&0===e.length?F:""}return t.renderChildren(s)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),R=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,N=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,O=n.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,n.OX)({find:R,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:N,type:this.type})]}}),z=n.bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),P=n.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,r){let n=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!n)return;let i=n[2].trim();return{type:"underline",raw:n[0],text:i,tokens:r.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),$=r(62678),B=n.YY.create({name:"starterKit",addExtensions(){var e,t,r,n;let i=[];return!1!==this.options.bold&&i.push(h.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(o.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(D.Rg.configure(this.options.bulletList)),!1!==this.options.code&&i.push(f.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(k.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(b.configure(this.options.document)),!1!==this.options.dropcursor&&i.push($.QO.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push($.vR.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(w.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(x.D.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push($.lb.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(v.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(M.configure(this.options.italic)),!1!==this.options.listItem&&i.push(D.ck.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(D.it.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(T.N_.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(D._J.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(L.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(O.configure(this.options.strike)),!1!==this.options.text&&i.push(z.configure(this.options.text)),!1!==this.options.underline&&i.push(P.configure(null==(r=this.options)?void 0:r.underline)),!1!==this.options.trailingNode&&i.push($.JU.configure(null==(n=this.options)?void 0:n.trailingNode)),i}})},59265:(e,t,r)=>{"use strict";r.d(t,{N_:()=>tc,Ay:()=>th});var n=r(82159);let i="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",s="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",o="numeric",l="ascii",a="alpha",u="asciinumeric",c="alphanumeric",h="domain",d="emoji",p="scheme",f="slashscheme",m="whitespace";function g(e,t){return e in t||(t[e]=[]),t[e]}function _(e,t,r){for(let n in t[o]&&(t[u]=!0,t[c]=!0),t[l]&&(t[u]=!0,t[a]=!0),t[u]&&(t[c]=!0),t[a]&&(t[c]=!0),t[c]&&(t[h]=!0),t[d]&&(t[h]=!0),t){let t=g(n,r);0>t.indexOf(e)&&t.push(e)}}function y(e,t){let r={};for(let n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}function k(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}k.groups={},k.prototype={accepts(){return!!this.t},go(e){let t=this,r=t.j[e];if(r)return r;for(let r=0;r<t.jr.length;r++){let n=t.jr[r][0],i=t.jr[r][1];if(i&&n.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let i=0;i<e.length;i++)this.tt(e[i],t,r,n)},tr(e,t,r,n){let i;return n=n||k.groups,t&&t.j?i=t:(i=new k(t),r&&n&&_(t,r,n)),this.jr.push([e,i]),i},ts(e,t,r,n){let i=this,s=e.length;if(!s)return i;for(let t=0;t<s-1;t++)i=i.tt(e[t]);return i.tt(e[s-1],t,r,n)},tt(e,t,r,n){n=n||k.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let s=t,o,l=i.go(e);return l?(Object.assign((o=new k).j,l.j),o.jr.push.apply(o.jr,l.jr),o.jd=l.jd,o.t=l.t):o=new k,s&&(n&&(o.t&&"string"==typeof o.t?_(s,Object.assign(y(o.t,n),r),n):r&&_(s,r,n)),o.t=s),i.j[e]=o,o}};let b=(e,t,r,n,i)=>e.ta(t,r,n,i),w=(e,t,r,n,i)=>e.tr(t,r,n,i),x=(e,t,r,n,i)=>e.ts(t,r,n,i),v=(e,t,r,n,i)=>e.tt(t,r,n,i),C="WORD",A="UWORD",E="ASCIINUMERICAL",S="ALPHANUMERICAL",M="LOCALHOST",T="TLD",D="UTLD",F="SCHEME",I="SLASH_SCHEME",L="NUM",R="WS",N="NL",O="OPENBRACE",z="CLOSEBRACE",P="OPENBRACKET",$="CLOSEBRACKET",B="OPENPAREN",q="CLOSEPAREN",j="OPENANGLEBRACKET",H="CLOSEANGLEBRACKET",V="FULLWIDTHLEFTPAREN",U="FULLWIDTHRIGHTPAREN",W="LEFTCORNERBRACKET",J="RIGHTCORNERBRACKET",K="LEFTWHITECORNERBRACKET",G="RIGHTWHITECORNERBRACKET",Z="FULLWIDTHLESSTHAN",X="FULLWIDTHGREATERTHAN",Y="AMPERSAND",Q="APOSTROPHE",ee="ASTERISK",et="AT",er="BACKSLASH",en="BACKTICK",ei="CARET",es="COLON",eo="COMMA",el="DOLLAR",ea="DOT",eu="EQUALS",ec="EXCLAMATION",eh="HYPHEN",ed="PERCENT",ep="PIPE",ef="PLUS",em="POUND",eg="QUERY",e_="QUOTE",ey="FULLWIDTHMIDDLEDOT",ek="SEMI",eb="SLASH",ew="TILDE",ex="UNDERSCORE",ev="EMOJI",eC="SYM";var eA=Object.freeze({__proto__:null,ALPHANUMERICAL:S,AMPERSAND:Y,APOSTROPHE:Q,ASCIINUMERICAL:E,ASTERISK:ee,AT:et,BACKSLASH:er,BACKTICK:en,CARET:ei,CLOSEANGLEBRACKET:H,CLOSEBRACE:z,CLOSEBRACKET:$,CLOSEPAREN:q,COLON:es,COMMA:eo,DOLLAR:el,DOT:ea,EMOJI:ev,EQUALS:eu,EXCLAMATION:ec,FULLWIDTHGREATERTHAN:X,FULLWIDTHLEFTPAREN:V,FULLWIDTHLESSTHAN:Z,FULLWIDTHMIDDLEDOT:ey,FULLWIDTHRIGHTPAREN:U,HYPHEN:eh,LEFTCORNERBRACKET:W,LEFTWHITECORNERBRACKET:K,LOCALHOST:M,NL:N,NUM:L,OPENANGLEBRACKET:j,OPENBRACE:O,OPENBRACKET:P,OPENPAREN:B,PERCENT:ed,PIPE:ep,PLUS:ef,POUND:em,QUERY:eg,QUOTE:e_,RIGHTCORNERBRACKET:J,RIGHTWHITECORNERBRACKET:G,SCHEME:F,SEMI:ek,SLASH:eb,SLASH_SCHEME:I,SYM:eC,TILDE:ew,TLD:T,UNDERSCORE:ex,UTLD:D,UWORD:A,WORD:C,WS:R});let eE=/[a-z]/,eS=/\p{L}/u,eM=/\p{Emoji}/u,eT=/\d/,eD=/\s/,eF="\r",eI="\n",eL="️",eR="‍",eN="",eO=null,ez=null;function eP(e=[]){let t={};k.groups=t;let r=new k;null==eO&&(eO=ej(i)),null==ez&&(ez=ej(s)),v(r,"'",Q),v(r,"{",O),v(r,"}",z),v(r,"[",P),v(r,"]",$),v(r,"(",B),v(r,")",q),v(r,"<",j),v(r,">",H),v(r,"(",V),v(r,")",U),v(r,"「",W),v(r,"」",J),v(r,"『",K),v(r,"』",G),v(r,"<",Z),v(r,">",X),v(r,"&",Y),v(r,"*",ee),v(r,"@",et),v(r,"`",en),v(r,"^",ei),v(r,":",es),v(r,",",eo),v(r,"$",el),v(r,".",ea),v(r,"=",eu),v(r,"!",ec),v(r,"-",eh),v(r,"%",ed),v(r,"|",ep),v(r,"+",ef),v(r,"#",em),v(r,"?",eg),v(r,'"',e_),v(r,"/",eb),v(r,";",ek),v(r,"~",ew),v(r,"_",ex),v(r,"\\",er),v(r,"・",ey);let n=w(r,eT,L,{[o]:!0});w(n,eT,n);let g=w(n,eE,E,{[u]:!0}),y=w(n,eS,S,{[c]:!0}),b=w(r,eE,C,{[l]:!0});w(b,eT,g),w(b,eE,b),w(g,eT,g),w(g,eE,g);let e$=w(r,eS,A,{[a]:!0});w(e$,eE),w(e$,eT,y),w(e$,eS,e$),w(y,eT,y),w(y,eE),w(y,eS,y);let eB=v(r,eI,N,{[m]:!0}),eH=v(r,eF,R,{[m]:!0}),eV=w(r,eD,R,{[m]:!0});v(r,eN,eV),v(eH,eI,eB),v(eH,eN,eV),w(eH,eD,eV),v(eV,eF),v(eV,eI),w(eV,eD,eV),v(eV,eN,eV);let eU=w(r,eM,ev,{[d]:!0});v(eU,"#"),w(eU,eM,eU),v(eU,eL,eU);let eW=v(eU,eR);v(eW,"#"),w(eW,eM,eU);let eJ=[[eE,b],[eT,g]],eK=[[eE,null],[eS,e$],[eT,y]];for(let e=0;e<eO.length;e++)eq(r,eO[e],T,C,eJ);for(let e=0;e<ez.length;e++)eq(r,ez[e],D,A,eK);_(T,{tld:!0,ascii:!0},t),_(D,{utld:!0,alpha:!0},t),eq(r,"file",F,C,eJ),eq(r,"mailto",F,C,eJ),eq(r,"http",I,C,eJ),eq(r,"https",I,C,eJ),eq(r,"ftp",I,C,eJ),eq(r,"ftps",I,C,eJ),_(F,{scheme:!0,ascii:!0},t),_(I,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let n=e[t][0],i=e[t][1]?{[p]:!0}:{[f]:!0};n.indexOf("-")>=0?i[h]=!0:eE.test(n)?eT.test(n)?i[u]=!0:i[l]=!0:i[o]=!0,x(r,n,n,i)}return x(r,"localhost",M,{ascii:!0}),r.jd=new k(eC),{start:r,tokens:Object.assign({groups:t},eA)}}function e$(e,t){let r=eB(t.replace(/[A-Z]/g,e=>e.toLowerCase())),n=r.length,i=[],s=0,o=0;for(;o<n;){let l=e,a=null,u=0,c=null,h=-1,d=-1;for(;o<n&&(a=l.go(r[o]));)(l=a).accepts()?(h=0,d=0,c=l):h>=0&&(h+=r[o].length,d++),u+=r[o].length,s+=r[o].length,o++;s-=h,o-=d,u-=h,i.push({t:c.t,v:t.slice(s-u,s),s:s-u,e:s})}return i}function eB(e){let t=[],r=e.length,n=0;for(;n<r;){let i,s=e.charCodeAt(n),o=s<55296||s>56319||n+1===r||(i=e.charCodeAt(n+1))<56320||i>57343?e[n]:e.slice(n,n+2);t.push(o),n+=o.length}return t}function eq(e,t,r,n,i){let s,o=t.length;for(let r=0;r<o-1;r++){let o=t[r];e.j[o]?s=e.j[o]:((s=new k(n)).jr=i.slice(),e.j[o]=s),e=s}return(s=new k(r)).jr=i.slice(),e.j[t[o-1]]=s,s}function ej(e){let t=[],r=[],n=0,i="0123456789";for(;n<e.length;){let s=0;for(;i.indexOf(e[n+s])>=0;)s++;if(s>0){t.push(r.join(""));for(let t=parseInt(e.substring(n,n+s),10);t>0;t--)r.pop();n+=s}else r.push(e[n]),n++}return t}let eH={defaultProtocol:"http",events:null,format:eU,formatHref:eU,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function eV(e,t=null){let r=Object.assign({},eH);e&&(r=Object.assign(r,e instanceof eV?e.o:e));let n=r.ignoreTags,i=[];for(let e=0;e<n.length;e++)i.push(n[e].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=i}function eU(e){return e}function eW(e,t){this.t="token",this.v=e,this.tk=t}function eJ(e,t){class r extends eW{constructor(t,r){super(t,r),this.t=e}}for(let e in t)r.prototype[e]=t[e];return r.t=e,r}eV.prototype={o:eH,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,r){let n=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=r.t in i?i[r.t]:eH[e])&&n&&(i=i(t,r)):"function"==typeof i&&n&&(i=i(t,r.t,r))),i},getObj(e,t,r){let n=this.o[e];return"function"==typeof n&&null!=t&&(n=n(t,r.t,r)),n},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eW.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=eH.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this,r=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",r,this),i=e.get("tagName",r,t),s=this.toFormattedString(e),o={},l=e.get("className",r,t),a=e.get("target",r,t),u=e.get("rel",r,t),c=e.getObj("attributes",r,t),h=e.getObj("events",r,t);return o.href=n,l&&(o.class=l),a&&(o.target=a),u&&(o.rel=u),c&&Object.assign(o,c),{tagName:i,attributes:o,content:s,eventListeners:h}}};let eK=eJ("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eG=eJ("text"),eZ=eJ("nl"),eX=eJ("url",{isLink:!0,toHref(e=eH.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==M&&e[1].t===es}}),eY=e=>new k(e);function eQ({groups:e}){let t=e.domain.concat([Y,ee,et,er,en,ei,el,eu,eh,L,ed,ep,ef,em,eb,eC,ew,ex]),r=[Q,es,eo,ea,ec,ed,eg,e_,ek,j,H,O,z,$,P,B,q,V,U,W,J,K,G,Z,X],n=[Y,Q,ee,er,en,ei,el,eu,eh,O,z,ed,ep,ef,em,eg,eb,eC,ew,ex],i=eY(),s=v(i,ew);b(s,n,s),b(s,e.domain,s);let o=eY(),l=eY(),a=eY();b(i,e.domain,o),b(i,e.scheme,l),b(i,e.slashscheme,a),b(o,n,s),b(o,e.domain,o);let u=v(o,et);v(s,et,u),v(l,et,u),v(a,et,u);let c=v(s,ea);b(c,n,s),b(c,e.domain,s);let h=eY();b(u,e.domain,h),b(h,e.domain,h);let d=v(h,ea);b(d,e.domain,h);let p=eY(eK);b(d,e.tld,p),b(d,e.utld,p),v(u,M,p);let f=v(h,eh);v(f,eh,f),b(f,e.domain,h),b(p,e.domain,h),v(p,ea,d),v(p,eh,f),b(v(p,es),e.numeric,eK);let m=v(o,eh),g=v(o,ea);v(m,eh,m),b(m,e.domain,o),b(g,n,s),b(g,e.domain,o);let _=eY(eX);b(g,e.tld,_),b(g,e.utld,_),b(_,e.domain,o),b(_,n,s),v(_,ea,g),v(_,eh,m),v(_,et,u);let y=v(_,es),k=eY(eX);b(y,e.numeric,k);let w=eY(eX),x=eY();b(w,t,w),b(w,r,x),b(x,t,w),b(x,r,x),v(_,eb,w),v(k,eb,w);let C=v(l,es),A=v(a,es),E=v(A,eb),S=v(E,eb);b(l,e.domain,o),v(l,ea,g),v(l,eh,m),b(a,e.domain,o),v(a,ea,g),v(a,eh,m),b(C,e.domain,w),v(C,eb,w),v(C,eg,w),b(S,e.domain,w),b(S,t,w),v(S,eb,w);let T=[[O,z],[P,$],[B,q],[j,H],[V,U],[W,J],[K,G],[Z,X]];for(let e=0;e<T.length;e++){let[n,i]=T[e],s=v(w,n);v(x,n,s),v(s,i,w);let o=eY(eX);b(s,t,o);let l=eY();b(s,r),b(o,t,o),b(o,r,l),b(l,t,o),b(l,r,l),v(o,i,w),v(l,i,w)}return v(i,M,_),v(i,N,eZ),{start:i,tokens:eA}}function e0(e,t,r){let n=r.length,i=0,s=[],o=[];for(;i<n;){let l=e,a=null,u=null,c=0,h=null,d=-1;for(;i<n&&!(a=l.go(r[i].t));)o.push(r[i++]);for(;i<n&&(u=a||l.go(r[i].t));)a=null,(l=u).accepts()?(d=0,h=l):d>=0&&d++,i++,c++;if(d<0)(i-=c)<n&&(o.push(r[i]),i++);else{o.length>0&&(s.push(e1(eG,t,o)),o=[]),i-=d,c-=d;let e=h.t,n=r.slice(i-c,i);s.push(e1(e,t,n))}}return o.length>0&&s.push(e1(eG,t,o)),s}function e1(e,t,r){let n=r[0].s,i=r[r.length-1].e;return new e(t.slice(n,i),r)}let e2="u">typeof console&&console&&console.warn||(()=>{}),e3="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",e5={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function e4(){return k.groups={},e5.scanner=null,e5.parser=null,e5.tokenQueue=[],e5.pluginQueue=[],e5.customSchemes=[],e5.initialized=!1,e5}function e6(e,t=!1){if(e5.initialized&&e2(`linkifyjs: already initialized - will not register custom scheme "${e}" ${e3}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
18
18
  1. Must only contain digits, lowercase ASCII letters or "-"
19
19
  2. Cannot start or end with "-"
20
- 3. "-" cannot repeat`);e5.customSchemes.push([e,t])}function e8(){e5.scanner=eP(e5.customSchemes);for(let e=0;e<e5.tokenQueue.length;e++)e5.tokenQueue[e][1]({scanner:e5.scanner});e5.parser=eQ(e5.scanner.tokens);for(let e=0;e<e5.pluginQueue.length;e++)e5.pluginQueue[e][1]({scanner:e5.scanner,parser:e5.parser});return e5.initialized=!0,e5}function e9(e){return e5.initialized||e8(),e0(e5.parser.start,e,e$(e5.scanner.start,e))}function e7(e,t=null,r=null){if(t&&"object"==typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}let n=new eV(r),i=e9(e),s=[];for(let e=0;e<i.length;e++){let r=i[e];r.isLink&&(!t||r.t===t)&&n.check(r)&&s.push(r.toFormattedObject(n))}return s}e9.scan=e$;var te=r(76865),tt="[\0- \xa0 ᠎ -\u2029  ]",tr=new RegExp(tt),tn=RegExp(`${tt}$`),ti=RegExp(tt,"g");function ts(e){return 1===e.length?e[0].isLink:3===e.length&&!!e[1].isLink&&["()","[]"].includes(e[0].value+e[2].value)}function to(e){return new te.k_({key:new te.hs("autolink"),appendTransaction:(t,r,i)=>{let s=t.some(e=>e.docChanged)&&!r.doc.eq(i.doc),o=t.some(e=>e.getMeta("preventAutolink"));if(!s||o)return;let{tr:l}=i,a=(0,n.T7)(r.doc,[...t]);if((0,n.FF)(a).forEach(({newRange:t})=>{let r,s,o=(0,n.Nx)(i.doc,t,e=>e.isTextblock);if(o.length>1)r=o[0],s=i.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ");else if(o.length){let e=i.doc.textBetween(t.from,t.to," "," ");if(!tn.test(e))return;r=o[0],s=i.doc.textBetween(r.pos,t.to,void 0," ")}if(r&&s){let t=s.split(tr).filter(Boolean);if(t.length<=0)return!1;let o=t[t.length-1],a=r.pos+s.lastIndexOf(o);if(!o)return!1;let u=e9(o).map(t=>t.toObject(e.defaultProtocol));if(!ts(u))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:a+e.start+1,to:a+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,n.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||l.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),l.steps.length)return l}})}function tl(e){return new te.k_({key:new te.hs("handleClickLink"),props:{handleClick:(t,r,i)=>{var s,o;if(0!==i.button||!t.editable)return!1;let l=null;if(i.target instanceof HTMLAnchorElement)l=i.target;else{let t=i.target;if(!t)return!1;let r=e.editor.view.dom;(l=t.closest("a"))&&!r.contains(l)&&(l=null)}if(!l)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let r=(0,n.gu)(t.state,e.type.name),i=null!=(s=l.href)?s:r.href,u=null!=(o=l.target)?o:r.target;i&&(window.open(i,u),a=!0)}return a}}})}function ta(e){return new te.k_({key:new te.hs("handlePasteLink"),props:{handlePaste:(t,r,n)=>{let{shouldAutoLink:i}=e,{state:s}=t,{selection:o}=s,{empty:l}=o;if(l)return!1;let a="";n.content.forEach(e=>{a+=e.textContent});let u=e7(a,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===a);return!!a&&!!u&&(void 0===i||!!i(u.value))&&e.editor.commands.setMark(e.type,{href:u.href})}}})}function tu(e,t){let r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&r.push(t)}),!e||e.replace(ti,"").match(RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var tc=n.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{"string"==typeof e?e6(e):e6(e.scheme,e.optionalSlashes)})},onDestroy(){e4()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!tu(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),r=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||r&&!e.includes("@"))return!0;let n=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(n)&&!!/\./.test(n)}}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,n.KV)(this.options.HTMLAttributes,e),0]:["a",(0,n.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var r,n,i,s;let o=null!=(n=null==(r=e.attrs)?void 0:r.href)?n:"",l=null!=(s=null==(i=e.attrs)?void 0:i.title)?s:"",a=t.renderChildren(e);return l?`[${a}](${o} "${l}")`:`[${a}](${o})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:r}=e||{};return(!r||!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,n.Zc)({find:e=>{let t=[];if(e){let{protocols:r,defaultProtocol:n}=this.options,i=e7(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!tu(e,r),protocols:r,defaultProtocol:n}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t},type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:r}=this.options;return this.options.autolink&&e.push(to({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!tu(e,t),protocols:t,defaultProtocol:r}),shouldAutoLink:this.options.shouldAutoLink})),e.push(tl({type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(ta({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),th=tc},61878:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],s=(0,n.A)("search",i)},62678:(e,t,r)=>{"use strict";r.d(t,{QO:()=>J,vR:()=>K,Or:()=>X,JU:()=>ee,lb:()=>et});var n=r(82159),i=r(76865),s=r(8242);function o(e={}){return new i.k_({view:t=>new l(t,e)})}class l{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(r=t.width)?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,s=this.editorView.dom,o=s.getBoundingClientRect(),l=o.width/s.offsetWidth,a=o.height/s.offsetHeight;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),s=e?n.bottom:n.top;e&&t&&(s=(s+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let o=this.width/2*a;i={left:n.left,right:n.right,top:s-o,bottom:s+o}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*l;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let u=this.editorView.dom.offsetParent;if(!this.element&&(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let r=u.getBoundingClientRect(),n=r.width/u.offsetWidth,i=r.height/u.offsetHeight;e=r.left-u.scrollLeft*n,t=r.top-u.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/l+"px",this.element.style.top=(i.top-t)/a+"px",this.element.style.width=(i.right-i.left)/l+"px",this.element.style.height=(i.bottom-i.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,i="function"==typeof n?n(this.editorView,t,e):n;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,s.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var a=r(63197),u=r(12894),c=r(27050);class h extends i.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return h.valid(r)?new h(r):i.LN.near(r)}content(){return c.Ji.empty}eq(e){return e instanceof h&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new h(e.resolve(t.pos))}getBookmark(){return new d(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!f(e)||!m(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,r=!1){i:for(;;){if(!r&&h.valid(e))return e;let n=e.pos,s=null;for(let r=e.depth;;r--){let i=e.node(r);if(t>0?e.indexAfter(r)<i.childCount:e.index(r)>0){s=i.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let o=e.doc.resolve(n);if(h.valid(o))return o}for(;;){let o=t>0?s.firstChild:s.lastChild;if(!o){if(s.isAtom&&!s.isText&&!i.nh.isSelectable(s)){e=e.doc.resolve(n+s.nodeSize*t),r=!1;continue i}break}s=o,n+=t;let l=e.doc.resolve(n);if(h.valid(l))return l}return null}}}h.prototype.visible=!1,h.findFrom=h.findGapCursorFrom,i.LN.jsonID("gapcursor",h);class d{constructor(e){this.pos=e}map(e){return new d(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return h.valid(t)?new h(t):i.LN.near(t)}}function p(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function f(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||p(e.type))return!0;if(e.inlineContent)return!1}}return!0}function m(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||p(e.type))return!0;if(e.inlineContent)return!1}}return!0}function g(){return new i.k_({props:{decorations:w,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&h.valid(r)?new h(r):null,handleClick:k,handleKeyDown:_,handleDOMEvents:{beforeinput:b}}})}let _=(0,u.K)({ArrowLeft:y("horiz",-1),ArrowRight:y("horiz",1),ArrowUp:y("vert",-1),ArrowDown:y("vert",1)});function y(e,t){let r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,s){let o=e.selection,l=t>0?o.$to:o.$from,a=o.empty;if(o instanceof i.U3){if(!s.endOfTextblock(r)||0==l.depth)return!1;a=!1,l=e.doc.resolve(t>0?l.after():l.before())}let u=h.findGapCursorFrom(l,t,a);return!!u&&(n&&n(e.tr.setSelection(new h(u))),!0)}}function k(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!h.valid(n))return!1;let s=e.posAtCoords({left:r.clientX,top:r.clientY});return!(s&&s.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(s.inside)))&&(e.dispatch(e.state.tr.setSelection(new h(n))),!0)}function b(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof h))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let s=c.FK.empty;for(let e=n.length-1;e>=0;e--)s=c.FK.from(n[e].createAndFill(null,s));let o=e.state.tr.replace(r.pos,r.pos,new c.Ji(s,0,0));return o.setSelection(i.U3.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function w(e){if(!(e.selection instanceof h))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",a.zF.create(e.doc,[a.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var x=200,v=function(){};v.prototype.append=function(e){return e.length?(e=v.from(e),!this.length&&e||e.length<x&&this.leafAppend(e)||this.length<x&&e.leafPrepend(this)||this.appendInner(e)):this},v.prototype.prepend=function(e){return e.length?v.from(e).append(this):this},v.prototype.appendInner=function(e){return new A(this,e)},v.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?v.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},v.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},v.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},v.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},v.from=function(e){return e instanceof v?e:e&&e.length?new C(e):v.empty};var C=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=x)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=x)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(v);v.empty=new C([]);var A=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(v);let E=v,S=500;class M{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,s;if(0==this.eventCount)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}t&&(n=(r=this.remapping(o,this.items.length)).maps.length);let l=e.tr,a=[],u=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(o,t+1)).maps.length),n--,u.push(e);return}if(r){u.push(new D(e.map));let t=e.step.map(r.slice(n)),i;t&&l.maybeStep(t).doc&&(i=l.mapping.maps[l.mapping.maps.length-1],a.push(new D(i,void 0,void 0,a.length+u.length))),n--,i&&r.appendMap(i,n)}else l.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,s=new M(this.items.slice(0,o).append(u.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:s,transform:l,selection:i}}addTransform(e,t,r,n){let i=[],s=this.eventCount,o=this.items,l=!n&&o.length?o.get(o.length-1):null;for(let r=0;r<e.steps.length;r++){let a=e.steps[r].invert(e.docs[r]),u=new D(e.mapping.maps[r],a,t),c;(c=l&&l.merge(u))&&(u=c,r?i.pop():o=o.slice(0,o.length-1)),i.push(u),t&&(s++,t=void 0),n||(l=u)}let a=s-r.depth;return a>I&&(o=T(o,a),s-=a),new M(o.append(i),s)}remapping(e,t){let r=new s.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new M(this.items.append(e.map(e=>new D(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(e=>{e.selection&&o--},n);let l=t;this.items.forEach(t=>{let n=i.getMirror(--l);if(null==n)return;s=Math.min(s,n);let a=i.maps[n];if(t.step){let s=e.steps[n].invert(e.docs[n]),u=t.selection&&t.selection.map(i.slice(l+1,n));u&&o++,r.push(new D(a,s,u))}else r.push(new D(a))},n);let a=[];for(let e=t;e<s;e++)a.push(new D(i.maps[e]));let u=new M(this.items.slice(0,n).append(a).append(r),o);return u.emptyItemCount()>S&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,n=[],i=0;return this.items.forEach((s,o)=>{if(o>=e)n.push(s),s.selection&&i++;else if(s.step){let e=s.step.map(t.slice(r)),o=e&&e.getMap();if(r--,o&&t.appendMap(o,r),e){let l=s.selection&&s.selection.map(t.slice(r));l&&i++;let a=new D(o.invert(),e,l),u,c=n.length-1;(u=n.length&&n[c].merge(a))?n[c]=u:n.push(a)}}else s.map&&r--},this.items.length,0),new M(E.from(n.reverse()),i)}}function T(e,t){let r;return e.forEach((e,n)=>{if(e.selection&&0==t--)return r=n,!1}),e.slice(r)}M.empty=new M(E.empty,0);class D{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new D(t.getMap().invert(),t,this.selection)}}}class F{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let I=20;function L(e,t,r,n){let i=r.getMeta(q),s;if(i)return i.historyState;r.getMeta(j)&&(e=new F(e.done,e.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(o&&o.getMeta(q))if(o.getMeta(q).redo)return new F(e.done.addTransform(r,void 0,n,B(t)),e.undone,N(r.mapping.maps),e.prevTime,e.prevComposition);else return new F(e.done,e.undone.addTransform(r,void 0,n,B(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(s=r.getMeta("rebased"))return new F(e.done.rebased(r,s),e.undone.rebased(r,s),O(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new F(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),O(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),s=0==e.prevTime||!o&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!R(r,e.prevRanges)),l=o?O(e.prevRanges,r.mapping):N(r.mapping.maps);return new F(e.done.addTransform(r,s?t.selection.getBookmark():void 0,n,B(t)),M.empty,l,r.time,null==i?e.prevComposition:i)}}function R(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}function N(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function O(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),s=t.map(e[n+1],-1);i<=s&&r.push(i,s)}return r}function z(e,t,r){let n=B(t),i=q.get(t).spec.config,s=(r?e.undone:e.done).popEvent(t,n);if(!s)return null;let o=s.selection.resolve(s.transform.doc),l=(r?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),i,n),a=new F(r?l:s.remaining,r?s.remaining:l,null,0,-1);return s.transform.setSelection(o).setMeta(q,{redo:r,historyState:a})}let P=!1,$=null;function B(e){let t=e.plugins;if($!=t){P=!1,$=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){P=!0;break}}return P}let q=new i.hs("history"),j=new i.hs("closeHistory");function H(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new i.k_({key:q,state:{init:()=>new F(M.empty,M.empty,null,0,-1),apply:(t,r,n)=>L(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?U:"historyRedo"==r?W:null;return!!n&&!!e.editable&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}function V(e,t){return(r,n)=>{let i=q.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let s=z(i,r,e);s&&n(t?s.scrollIntoView():s)}return!0}}let U=V(!1,!0),W=V(!0,!0);V(!1,!1),V(!0,!1),n.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,r=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(r)}},addProseMirrorPlugins(){let e=!1;return[new i.k_({key:new i.hs("characterCount"),appendTransaction:(t,r,n)=>{if(e)return;let i=this.options.limit;if(null==i||0===i){e=!0;return}let s=this.storage.characters({node:n.doc});if(s>i){let t=0,r=s-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let o=n.tr.deleteRange(t,r);return e=!0,o}e=!0},filterTransaction:(e,t)=>{let r=this.options.limit;if(!e.docChanged||0===r||null==r)return!0;let n=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=r||n>r&&i>r&&i<=n)return!0;if(n>r&&i>r&&i>n||!e.getMeta("paste"))return!1;let s=e.selection.$head.pos,o=s-(i-r),l=s;return e.deleteRange(o,l),!(this.storage.characters({node:e.doc})>r)}})]}});var J=n.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[o(this.options)]}});n.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:r,isFocused:n}=this.editor,{anchor:i}=t,s=[];if(!r||!n)return a.zF.create(e,[]);let o=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let l=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((l+=1,"deepest"===this.options.mode&&o-l>0||"shallowest"===this.options.mode&&l>1)?"deepest"===this.options.mode:void s.push(a.NZ.node(t,t+e.nodeSize,{class:this.options.className})))),a.zF.create(e,s)}}})]}});var K=n.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[g()],extendNodeSchema(e){var t;let r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,n.gk)((0,n.iI)(e,"allowGapCursor",r)))?t:null}}}),G="placeholder";function Z(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var X=n.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:G,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){let e=this.options.dataAttribute?`data-${Z(this.options.dataAttribute)}`:`data-${G}`;return[new i.k_({key:new i.hs("placeholder"),props:{decorations:({doc:t,selection:r})=>{let i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:s}=r,o=[];if(!i)return null;let l=this.editor.isEmpty;return t.descendants((t,r)=>{let i=s>=r&&s<=r+t.nodeSize,u=!t.isLeaf&&(0,n.Op)(t);if(!t.type.isTextblock)return this.options.includeChildren;if((i||!this.options.showOnlyCurrent)&&u){let n=[this.options.emptyNodeClass];l&&n.push(this.options.emptyEditorClass);let s=a.NZ.node(r,r+t.nodeSize,{class:n.join(" "),[e]:"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:r,hasAnchor:i}):this.options.placeholder});o.push(s)}return this.options.includeChildren}),a.zF.create(t,o)}}})]}});n.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new i.k_({key:new i.hs("selection"),props:{decorations:r=>r.selection.empty||e.isFocused||!e.isEditable||(0,n.BQ)(r.selection)||e.view.dragging?null:a.zF.create(r.doc,[a.NZ.inline(r.selection.from,r.selection.to,{class:t.className})])}})]}});var Y="skipTrailingNode";function Q({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}var ee=n.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new i.hs(this.name),r=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(r).includes(e.name));return[new i.k_({key:t,appendTransaction:(e,n,i)=>{let{doc:s,tr:o,schema:l}=i,a=t.getState(i),u=s.content.size,c=l.nodes[r];if(!e.some(e=>e.getMeta(Y))&&a)return o.insert(u,c.create())},state:{init:(e,t)=>!Q({node:t.tr.doc.lastChild,types:n}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!Q({node:e.doc.lastChild,types:n})}})]}}),et=n.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>U(e,t),redo:()=>({state:e,dispatch:t})=>W(e,t)}),addProseMirrorPlugins(){return[H(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},65915:e=>{var t=!0,r=!1,n=!1;function i(e,t,r){var n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):e.attrs[n]=i}function s(e,t){for(var r=e[t].level-1,n=t-1;n>=0;n--)if(e[n].level===r)return n;return -1}function o(e,t){return d(e[t])&&p(e[t-1])&&f(e[t-2])&&m(e[t])}function l(e,t){if(e.children.unshift(a(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r)if(n){e.children.pop();var i="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+i+'">',e.children.push(h(e.content,i,t))}else e.children.unshift(u(t)),e.children.push(c(t))}function a(e,r){var n=new r("html_inline","",0),i=t?' disabled="" ':"";return 0===e.content.indexOf("[ ] ")?n.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] "))&&(n.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),n}function u(e){var t=new e("html_inline","",0);return t.content="<label>",t}function c(e){var t=new e("html_inline","",0);return t.content="</label>",t}function h(e,t,r){var n=new r("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",n.attrs=[{for:t}],n}function d(e){return"inline"===e.type}function p(e){return"paragraph_open"===e.type}function f(e){return"list_item_open"===e.type}function m(e){return 0===e.content.indexOf("[ ] ")||0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] ")}e.exports=function(e,a){a&&(t=!a.enabled,r=!!a.label,n=!!a.labelAfter),e.core.ruler.after("inline","github-task-lists",function(e){for(var r=e.tokens,n=2;n<r.length;n++)o(r,n)&&(l(r[n],e.Token),i(r[n-2],"class","task-list-item"+(t?"":" enabled")),i(r[s(r,n-2)],"class","contains-task-list"))})}},66088:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],s=(0,n.A)("chevron-down",i)},68459:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],s=(0,n.A)("trash-2",i)},68806:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],s=(0,n.A)("plug",i)},69048:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],s=(0,n.A)("square-function",i)},73300:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],s=(0,n.A)("clipboard",i)},76022:(e,t,r)=>{"use strict";e.exports=r.p+"static/media/web-tree-sitter.f7f7244f.wasm"},76065:(e,t,r)=>{"use strict";r.d(t,{H:()=>n.Hj});var n=r(5989)},76865:(e,t,r)=>{"use strict";r.d(t,{$t:()=>E,LN:()=>o,U3:()=>c,hs:()=>F,i5:()=>f,k_:()=>M,nh:()=>d,yn:()=>l});var n=r(27050),i=r(8242);let s=Object.create(null);class o{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new l(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=n.Ji.empty){let r=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=r,r=r.lastChild;let s=e.steps.length,o=this.ranges;for(let l=0;l<o.length;l++){let{$from:a,$to:u}=o[l],c=e.mapping.slice(s);e.replaceRange(c.map(a.pos),c.map(u.pos),l?n.Ji.empty:t),0==l&&_(e,s,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],l=e.mapping.slice(r),a=l.map(s.pos),u=l.map(o.pos);i?e.deleteRange(a,u):(e.replaceRangeWith(a,u,t),_(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new c(e):g(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=t<0?g(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):g(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new f(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let r=s[t.type];if(!r)throw RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in s)throw RangeError("Duplicate use of selection JSON ID "+e);return s[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()}}o.prototype.visible=!0;class l{constructor(e,t){this.$from=e,this.$to=t}}let a=!1;function u(e){a||e.parent.inlineContent||(a=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends o{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return o.near(r);let n=e.resolve(t.map(this.anchor));return new c(n.parent.inlineContent?n:r,r)}replace(e,t=n.Ji.empty){if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if((!r||n)&&(r=n>=0?1:-1),!t.parent.inlineContent){let e=o.findFrom(t,r,!0)||o.findFrom(t,-r,!0);if(!e)return o.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n?e=t:(e=(o.findFrom(e,-r,!0)||o.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0&&(e=t)),new c(e,t)}}o.jsonID("text",c);class h{constructor(e,t){this.anchor=e,this.head=t}map(e){return new h(e.map(this.anchor),e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class d extends o{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?o.near(i):new d(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof d&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new p(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new d(e.resolve(t.anchor))}static create(e,t){return new d(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}d.prototype.visible=!1,o.jsonID("node",d);class p{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new h(r,r):new p(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&d.isSelectable(r)?new d(t):o.near(t)}}class f extends o{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=n.Ji.empty){if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=o.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return m}}o.jsonID("all",f);let m={map(){return this},resolve:e=>new f(e)};function g(e,t,r,n,i,s=!1){if(t.inlineContent)return c.create(e,r);for(let o=n-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let n=t.child(o);if(n.isAtom){if(!s&&d.isSelectable(n))return d.create(e,r-(i<0?n.nodeSize:0))}else{let t=g(e,n,r+i,i<0?n.childCount:0,i,s);if(t)return t}r+=n.nodeSize*i}return null}function _(e,t,r){let n,s=e.steps.length-1;if(s<t)return;let l=e.steps[s];(l instanceof i.Ln||l instanceof i.Wg)&&(e.mapping.maps[s].forEach((e,t,r,i)=>{null==n&&(n=i)}),e.setSelection(o.near(e.doc.resolve(n),r)))}let y=1,k=2,b=4;class w extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|y)&~k,this.storedMarks=null,this}get selectionSet(){return(this.updated&y)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=k,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&k)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~k,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(o.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=b,this}get scrolledIntoView(){return(this.updated&b)>0}}function x(e,t){return t&&e?e.bind(t):e}class v{constructor(e,t,r){this.name=e,this.init=x(t.init,r),this.apply=x(t.apply,r)}}let C=[new v("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new v("selection",{init:(e,t)=>e.selection||o.atStart(t.doc),apply:e=>e.selection}),new v("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new v("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class A{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new v(e.key,e.spec.state,e))})}}class E{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let o=this.config.plugins[s];if(o.spec.appendTransaction){let l=n?n[s].n:0,a=n?n[s].state:this,u=l<t.length&&o.spec.appendTransaction.call(o,l?t.slice(l):t,a,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<s?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),i=!0}n&&(n[s]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new E(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new w(this)}static create(e){let t=new A(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new E(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new A(this.schema,e.plugins),r=t.fields,n=new E(t);for(let t=0;t<r.length;t++){let i=r[t].name;n[i]=this.hasOwnProperty(i)?this[i]:r[t].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new A(e.schema,e.plugins),s=new E(i);return i.fields.forEach(i=>{if("doc"==i.name)s.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)s.selection=o.fromJSON(s.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(s.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let o=r[n],l=o.spec.state;if(o.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){s[i.name]=l.fromJSON.call(o,e,t[n],s);return}}s[i.name]=i.init(e,s)}}),s}}function S(e,t,r){for(let n in e){let i=e[n];i instanceof Function?i=i.bind(t):"handleDOMEvents"==n&&(i=S(i,t,{})),r[n]=i}return r}class M{constructor(e){this.spec=e,this.props={},e.props&&S(e.props,this,this.props),this.key=e.key?e.key.key:D("plugin")}getState(e){return e[this.key]}}let T=Object.create(null);function D(e){return e in T?e+"$"+ ++T[e]:(T[e]=0,e+"$")}class F{constructor(e="key"){this.key=D(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},82150:(e,t,r)=>{"use strict";r.d(t,{L2:()=>R,Rg:()=>u,_0:()=>N,_J:()=>I,ck:()=>c,it:()=>w});var n=r(82159),i=Object.defineProperty,s=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},o="listItem",l="textStyle",a=/^\s*([-+*])\s$/,u=n.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o,this.editor.getAttributes(l)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,n.tG)({find:a,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:a,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(l),editor:this.editor})),[e]}}),c=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var r;if("list_item"!==e.type)return[];let n=null!=(r=t.parseBlockChildren)?r:t.parseChildren,i=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>"paragraph"===e.type))i=n(e.tokens);else{let r=e.tokens[0];if(r&&"text"===r.type&&r.tokens&&r.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(r.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));i.push(...t)}}else i=n(e.tokens)}return 0===i.length&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,r)=>(0,n.kj)(e,t,e=>{var t,r;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){let n=(null==(r=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:r.start)||1;return`${n+e.index}. `}return"- "},r),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});s({},{findListItemPos:()=>h,getNextListDepth:()=>d,handleBackspace:()=>g,handleDelete:()=>k,hasListBefore:()=>p,hasListItemAfter:()=>b,hasListItemBefore:()=>f,listItemHasSubList:()=>m,nextListIsDeeper:()=>_,nextListIsHigher:()=>y});var h=(e,t)=>{let{$from:r}=t.selection,i=(0,n.Pg)(e,t.schema),s=null,o=r.depth,l=r.pos,a=null;for(;o>0&&null===a;)(s=r.node(o)).type===i?a=o:(o-=1,l-=1);return null===a?null:{$pos:t.doc.resolve(l),depth:a}},d=(e,t)=>{let r=h(e,t);if(!r)return!1;let[,i]=(0,n.fl)(t,e,r.$pos.pos+4);return i},p=(e,t,r)=>{let{$anchor:n}=e.selection,i=Math.max(0,n.pos-2),s=e.doc.resolve(i).node();return!!s&&!!r.includes(s.type.name)},f=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-2);return 0!==i.index()&&(null==(r=i.nodeBefore)?void 0:r.type.name)===e},m=(e,t,r)=>{if(!r)return!1;let i=(0,n.Pg)(e,t.schema),s=!1;return r.descendants(e=>{e.type===i&&(s=!0)}),s},g=(e,t,r)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,n.rU)(e.state,t)&&p(e.state,t,r)){let{$anchor:r}=e.state.selection,n=e.state.doc.resolve(r.before()-1),i=[];n.node().descendants((e,r)=>{e.type.name===t&&i.push({node:e,pos:r})});let s=i.at(-1);if(!s)return!1;let o=e.state.doc.resolve(n.start()+s.pos+1);return e.chain().cut({from:r.start()-1,to:r.end()+1},o.end()).joinForward().run()}if(!(0,n.rU)(e.state,t)||!(0,n.J_)(e.state))return!1;let i=h(t,e.state);if(!i)return!1;let s=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),o=m(t,e.state,s);return f(t,e.state)&&!o?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},_=(e,t)=>{let r=d(e,t),n=h(e,t);return!!n&&!!r&&r>n.depth},y=(e,t)=>{let r=d(e,t),n=h(e,t);return!!n&&!!r&&r<n.depth},k=(e,t)=>{if(!(0,n.rU)(e.state,t)||!(0,n.QN)(e.state,t))return!1;let{selection:r}=e.state,{$from:i,$to:s}=r;return!(!r.empty&&i.sameParent(s))&&(_(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():y(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},b=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-n.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(r=i.nodeAfter)?void 0:r.type.name)===e},w=n.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&k(e,r)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&k(e,r)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&g(e,r,n)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&g(e,r,n)&&(t=!0)}),t}}}}),x=/^(\s*)(\d+)\.\s+(.*)$/,v=/^\s/;function C(e){let t=e.trimStart();return/^[-+*]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^>\s?/.test(t)||/^```/.test(t)||/^~~~/.test(t)}function A(e){let t=[],r=[],n=!1;return e.forEach(e=>{if(n)return void r.push(e);if(""===e.trim()||t.length>0&&C(e)){n=!0,r.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:r}}function E(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r],s=i.match(x);if(!s)break;let[,o,l,a]=s,u=o.length,c=[a],h=r+1,d=[i],p=!1;for(;h<e.length;){let t=e[h];if(t.match(x))break;if(""===t.trim())d.push(t),c.push(""),p=!0,h+=1;else if(t.match(v))d.push(t),c.push(t.slice(u+2)),h+=1;else{if(p)break;d.push(t),c.push(t),h+=1}}t.push({indent:u,number:parseInt(l,10),content:c.join("\n").trim(),contentLines:c,raw:d.join("\n")}),n=h,r=h}return[t,n]}function S(e,t,r){let n=[],i=0;for(;i<e.length;){let s=e[i];if(s.indent===t){let{paragraphLines:o,blockLines:l}=A(s.contentLines),a=o.join("\n").trim(),u=[];a&&u.push({type:"paragraph",raw:a,tokens:r.inlineTokens(a)});let c=l.join("\n").trim();if(c){let e=r.blockTokens(c);u.push(...e)}let h=i+1,d=[];for(;h<e.length&&e[h].indent>t;)d.push(e[h]),h+=1;if(d.length>0){let e=Math.min(...d.map(e=>e.indent)),t=S(d,e,r);u.push({type:"list",ordered:!0,start:d[0].number,items:t,raw:d.map(e=>e.raw).join("\n")})}n.push({type:"list_item",raw:s.raw,tokens:u}),i=h}else i+=1}return n}function M(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let r=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)r.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let n=t.parseChildren([e]);r.push({type:"paragraph",content:n})}else{let n=t.parseChildren([e]);n.length>0&&r.push(...n)}}),{type:"listItem",content:r}})}var T="listItem",D="textStyle",F=/^(\d+)\.\s$/,I=n.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...r}=e;return 1===t?["ol",(0,n.KV)(this.options.HTMLAttributes,r),0]:["ol",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let r=e.start||1,n=e.items?M(e.items,t):[];return 1!==r?{type:"orderedList",attrs:{start:r},content:n}:{type:"orderedList",content:n}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/),r=null==t?void 0:t.index;return void 0!==r?r:-1},tokenize:(e,t,r)=>{var n;let i=e.split("\n"),[s,o]=E(i);if(0===s.length)return;let l=S(s,0,r);if(0!==l.length)return{type:"list",ordered:!0,start:(null==(n=s[0])?void 0:n.number)||1,items:l,raw:i.slice(0,o).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(T,this.editor.getAttributes(D)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,n.tG)({find:F,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:F,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(D)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),L=/^\s*(\[([( |x])?\])\s$/,R=n.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,n.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let r=[];if(e.tokens&&e.tokens.length>0?r.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?r.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):r.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let n=t.parseChildren(e.nestedTokens);r.push(...n)}return t.createNode("taskItem",{checked:e.checked||!1},r)},renderMarkdown:(e,t)=>{var r;let i=(null==(r=e.attrs)?void 0:r.checked)?"x":" ",s=`- [${i}] `;return(0,n.kj)(e,t,s)},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:r,editor:i})=>{let s=document.createElement("li"),o=document.createElement("label"),l=document.createElement("span"),a=document.createElement("input"),u=document.createElement("div"),c=e=>{var t,r;a.ariaLabel=(null==(r=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:r.call(t,e,a.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};c(e),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",e=>e.preventDefault()),a.addEventListener("change",t=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}let{checked:n}=t.target;i.isEditable&&"function"==typeof r&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=r();if("number"!=typeof t)return!1;let i=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==i?void 0:i.attrs,checked:n}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,n)||(a.checked=!a.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{s.setAttribute(e,t)}),s.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,l),s.append(o,u),Object.entries(t).forEach(([e,t])=>{s.setAttribute(e,t)});let h=new Set(Object.keys(t));return{dom:s,contentDOM:u,update:e=>{if(e.type!==this.type)return!1;s.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,c(e);let t=i.extensionManager.attributes,r=(0,n.zU)(e,t),o=new Set(Object.keys(r)),l=this.options.HTMLAttributes;return h.forEach(e=>{o.has(e)||(e in l?s.setAttribute(e,l[e]):s.removeAttribute(e))}),Object.entries(r).forEach(([e,t])=>{null==t?e in l?s.setAttribute(e,l[e]):s.removeAttribute(e):s.setAttribute(e,t)}),h=o,!0}}}},addInputRules(){return[(0,n.tG)({find:L,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),N=n.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let r=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,t,r){let i=e=>{let t=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);return t?[{type:"taskList",raw:t.raw,items:t.items}]:r.blockTokens(e)},s=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);if(s)return{type:"taskList",raw:s.raw,items:s.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});n.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(u.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(c.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(w.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(I.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(R.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(N.configure(this.options.taskList)),e}})},91958:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],s=(0,n.A)("refresh-cw",i)},94577:(e,t,r)=>{"use strict";e.exports=r(99617)},96035:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],s=(0,n.A)("message-square",i)},97144:(e,t,r)=>{"use strict";r.d(t,{$f:()=>L,G2:()=>k,I$:()=>C,Im:()=>N,Qv:()=>a,Sd:()=>_,Z1:()=>A,_G:()=>c,_e:()=>p,bh:()=>b,eB:()=>u,eT:()=>g,ec:()=>R,hy:()=>M,ic:()=>o,iz:()=>E,pC:()=>x,yY:()=>w,y_:()=>O});var n=r(8242),i=r(27050),s=r(76865);let o=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function l(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}let a=(e,t,r)=>{let o=l(e,r);if(!o)return!1;let a=f(o);if(!a){let r=o.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let u=a.nodeBefore;if(F(e,a,t,-1))return!0;if(0==o.parent.content.size&&(d(u,"end")||s.nh.isSelectable(u)))for(let r=o.depth;;r--){let l=(0,n.$L)(e.doc,o.before(r),o.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let r=e.tr.step(l);r.setSelection(d(u,"end")?s.LN.findFrom(r.doc.resolve(r.mapping.map(a.pos,-1)),-1):s.nh.create(r.doc,a.pos-u.nodeSize)),t(r.scrollIntoView())}return!0}if(1==r||o.node(r-1).childCount>1)break}return!!u.isAtom&&a.depth==o.depth-1&&(t&&t(e.tr.delete(a.pos-u.nodeSize,a.pos).scrollIntoView()),!0)},u=(e,t,r)=>{let n=l(e,r);if(!n)return!1;let i=f(n);return!!i&&h(e,i,t)},c=(e,t,r)=>{let n=m(e,r);if(!n)return!1;let i=y(n);return!!i&&h(e,i,t)};function h(e,t,r){let o=t.nodeBefore,l=t.pos-1;for(;!o.isTextblock;l--){if(o.type.spec.isolating)return!1;let e=o.lastChild;if(!e)return!1;o=e}let a=t.nodeAfter,u=t.pos+1;for(;!a.isTextblock;u++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let c=(0,n.$L)(e.doc,l,u,i.Ji.empty);if(!c||c.from!=l||c instanceof n.Ln&&c.slice.size>=u-l)return!1;if(r){let t=e.tr.step(c);t.setSelection(s.U3.create(t.doc,l)),r(t.scrollIntoView())}return!0}function d(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}let p=(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;o=f(n)}let l=o&&o.nodeBefore;return!!l&&!!s.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(s.nh.create(e.doc,o.pos-l.nodeSize)).scrollIntoView()),!0)};function f(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function m(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset<r.parent.content.size))?r:null}let g=(e,t,r)=>{let o=m(e,r);if(!o)return!1;let l=y(o);if(!l)return!1;let a=l.nodeAfter;if(F(e,l,t,1))return!0;if(0==o.parent.content.size&&(d(a,"start")||s.nh.isSelectable(a))){let r=(0,n.$L)(e.doc,o.before(),o.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(d(a,"start")?s.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos)),1):s.nh.create(n.doc,n.mapping.map(l.pos))),t(n.scrollIntoView())}return!0}}return!!a.isAtom&&l.depth==o.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+a.nodeSize).scrollIntoView()),!0)},_=(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;o=y(n)}let l=o&&o.nodeAfter;return!!l&&!!s.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(s.nh.create(e.doc,o.pos)).scrollIntoView()),!0)};function y(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}let k=(e,t)=>{let r=e.selection,i=r instanceof s.nh,o;if(i){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.from))return!1;o=r.from}else if(null==(o=(0,n.N0)(e.doc,r.from,-1)))return!1;if(t){let r=e.tr.join(o);i&&r.setSelection(s.nh.create(r.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},b=(e,t)=>{let r=e.selection,i;if(r instanceof s.nh){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},w=(e,t)=>{let{$from:r,$to:i}=e.selection,s=r.blockRange(i),o=s&&(0,n.jP)(s);return null!=o&&(t&&t(e.tr.lift(s,o).scrollIntoView()),!0)},x=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function v(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let C=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),o=r.indexAfter(-1),l=v(i.contentMatchAt(o));if(!l||!i.canReplaceWith(o,o,l))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,l.createAndFill());i.setSelection(s.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},A=(e,t)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof s.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let o=v(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,l=e.tr.insert(r,o.createAndFill());l.setSelection(s.U3.create(l.doc,r+1)),t(l.scrollIntoView())}return!0},E=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),s=i&&(0,n.jP)(i);return null!=s&&(t&&t(e.tr.lift(i,s).scrollIntoView()),!0)},S=function(){return(e,t)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof s.nh&&e.selection.node.isBlock)return!!r.parentOffset&&!!(0,n.zy)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],l,a,u=!1,c=!1;for(let e=r.depth;;e--){if(r.node(e).isBlock){u=r.end(e)==r.pos+(r.depth-e),c=r.start(e)==r.pos-(r.depth-e),a=v(r.node(e-1).contentMatchAt(r.indexAfter(e-1)));let t=void 0;o.unshift(t||(u&&a?{type:a}:null)),l=e;break}if(1==e)return!1;o.unshift(null)}let h=e.tr;(e.selection instanceof s.U3||e.selection instanceof s.i5)&&h.deleteSelection();let d=h.mapping.map(r.pos),p=(0,n.zy)(h.doc,d,o.length,o);if(p||(o[0]=a?{type:a}:null,p=(0,n.zy)(h.doc,d,o.length,o)),!p)return!1;if(h.split(d,o.length,o),!u&&c&&r.node(l).type!=a){let e=h.mapping.map(r.before(l)),t=h.doc.resolve(e);a&&r.node(l-1).canReplaceWith(t.index(),t.index()+1,a)&&h.setNodeMarkup(h.mapping.map(r.before(l)),a)}return t&&t(h.scrollIntoView()),!0}}(),M=(e,t)=>{let{$from:r,to:n}=e.selection,i,o=r.sharedDepth(n);return 0!=o&&(i=r.before(o),t&&t(e.tr.setSelection(s.nh.create(e.doc,i))),!0)},T=(e,t)=>(t&&t(e.tr.setSelection(new s.i5(e.doc))),!0);function D(e,t,r){let i=t.nodeBefore,s=t.nodeAfter,o=t.index();return!!i&&!!s&&!!i.type.compatibleContent(s.type)&&(!i.content.size&&t.parent.canReplace(o-1,o)?(r&&r(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(o,o+1)&&!!(s.isTextblock||(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))}function F(e,t,r,o){let l=t.nodeBefore,a=t.nodeAfter,u,c,h=l.type.spec.isolating||a.type.spec.isolating;if(!h&&D(e,t,r))return!0;let p=!h&&t.parent.canReplace(t.index(),t.index()+1);if(p&&(u=(c=l.contentMatchAt(l.childCount)).findWrapping(a.type))&&c.matchType(u[0]||a.type).validEnd){if(r){let s=t.pos+a.nodeSize,o=i.FK.empty;for(let e=u.length-1;e>=0;e--)o=i.FK.from(u[e].create(null,o));o=i.FK.from(l.copy(o));let c=e.tr.step(new n.Wg(t.pos-1,s,t.pos,s,new i.Ji(o,1,0),u.length,!0)),h=c.doc.resolve(s+2*u.length);h.nodeAfter&&h.nodeAfter.type==l.type&&(0,n.n9)(c.doc,h.pos)&&c.join(h.pos),r(c.scrollIntoView())}return!0}let f=a.type.spec.isolating||o>0&&h?null:s.LN.findFrom(t,1),m=f&&f.$from.blockRange(f.$to),g=m&&(0,n.jP)(m);if(null!=g&&g>=t.depth)return r&&r(e.tr.lift(m,g).scrollIntoView()),!0;if(p&&d(a,"start",!0)&&d(l,"end")){let s=l,o=[];for(;o.push(s),!s.isTextblock;)s=s.lastChild;let u=a,c=1;for(;!u.isTextblock;u=u.firstChild)c++;if(s.canReplace(s.childCount,s.childCount,u.content)){if(r){let s=i.FK.empty;for(let e=o.length-1;e>=0;e--)s=i.FK.from(o[e].copy(s));r(e.tr.step(new n.Wg(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new i.Ji(s,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function I(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(r&&r(t.tr.setSelection(s.U3.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}let L=I(-1),R=I(1);function N(e,t=null){return function(r,i){let{$from:s,$to:o}=r.selection,l=s.blockRange(o),a=l&&(0,n.oM)(l,e,t);return!!a&&(i&&i(r.tr.wrap(l,a).scrollIntoView()),!0)}}function O(e,t=null){return function(r,n){let i=!1;for(let n=0;n<r.selection.ranges.length&&!i;n++){let{$from:{pos:s},$to:{pos:o}}=r.selection.ranges[n];r.doc.nodesBetween(s,o,(n,s)=>{if(i)return!1;if(!(!n.isTextblock||n.hasMarkup(e,t)))if(n.type==e)i=!0;else{let t=r.doc.resolve(s),n=t.index();i=t.parent.canReplaceWith(n,n+1,e)}})}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:s},$to:{pos:o}}=r.selection.ranges[n];i.setBlockType(s,o,e,t)}n(i.scrollIntoView())}return!0}}function z(...e){return function(t,r,n){for(let i=0;i<e.length;i++)if(e[i](t,r,n))return!0;return!1}}let P=z(o,a,p),$=z(o,g,_),B={Enter:z(x,A,E,S),"Mod-Enter":C,Backspace:P,"Mod-Backspace":P,"Shift-Backspace":P,Delete:$,"Mod-Delete":$,"Mod-a":T},q={"Ctrl-h":B.Backspace,"Alt-Backspace":B["Mod-Backspace"],"Ctrl-d":B.Delete,"Ctrl-Alt-Backspace":B["Mod-Delete"],"Alt-Delete":B["Mod-Delete"],"Alt-d":B["Mod-Delete"],"Ctrl-a":L,"Ctrl-e":R};for(let e in B)q[e]=B[e];"u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&os.platform&&os.platform()},97567:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],s=(0,n.A)("box",i)},98307:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],s=(0,n.A)("clipboard-list",i)},99617:(e,t,r)=>{"use strict";var n=r(12115),i=r(8039);function s(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var o="function"==typeof Object.is?Object.is:s,l=i.useSyncExternalStore,a=n.useRef,u=n.useEffect,c=n.useMemo,h=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var s=a(null);if(null===s.current){var d={hasValue:!1,value:null};s.current=d}else d=s.current;var p=l(e,(s=c(function(){function e(e){if(!a){if(a=!0,s=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,o(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,l=r)}var s,l,a=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],s[1]);return u(function(){d.hasValue=!0,d.value=p},[p]),h(p),p}}}]);
20
+ 3. "-" cannot repeat`);e5.customSchemes.push([e,t])}function e8(){e5.scanner=eP(e5.customSchemes);for(let e=0;e<e5.tokenQueue.length;e++)e5.tokenQueue[e][1]({scanner:e5.scanner});e5.parser=eQ(e5.scanner.tokens);for(let e=0;e<e5.pluginQueue.length;e++)e5.pluginQueue[e][1]({scanner:e5.scanner,parser:e5.parser});return e5.initialized=!0,e5}function e9(e){return e5.initialized||e8(),e0(e5.parser.start,e,e$(e5.scanner.start,e))}function e7(e,t=null,r=null){if(t&&"object"==typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}let n=new eV(r),i=e9(e),s=[];for(let e=0;e<i.length;e++){let r=i[e];r.isLink&&(!t||r.t===t)&&n.check(r)&&s.push(r.toFormattedObject(n))}return s}e9.scan=e$;var te=r(76865),tt="[\0- \xa0 ᠎ -\u2029  ]",tr=new RegExp(tt),tn=RegExp(`${tt}$`),ti=RegExp(tt,"g");function ts(e){return 1===e.length?e[0].isLink:3===e.length&&!!e[1].isLink&&["()","[]"].includes(e[0].value+e[2].value)}function to(e){return new te.k_({key:new te.hs("autolink"),appendTransaction:(t,r,i)=>{let s=t.some(e=>e.docChanged)&&!r.doc.eq(i.doc),o=t.some(e=>e.getMeta("preventAutolink"));if(!s||o)return;let{tr:l}=i,a=(0,n.T7)(r.doc,[...t]);if((0,n.FF)(a).forEach(({newRange:t})=>{let r,s,o=(0,n.Nx)(i.doc,t,e=>e.isTextblock);if(o.length>1)r=o[0],s=i.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ");else if(o.length){let e=i.doc.textBetween(t.from,t.to," "," ");if(!tn.test(e))return;r=o[0],s=i.doc.textBetween(r.pos,t.to,void 0," ")}if(r&&s){let t=s.split(tr).filter(Boolean);if(t.length<=0)return!1;let o=t[t.length-1],a=r.pos+s.lastIndexOf(o);if(!o)return!1;let u=e9(o).map(t=>t.toObject(e.defaultProtocol));if(!ts(u))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:a+e.start+1,to:a+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,n.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||l.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),l.steps.length)return l}})}function tl(e){return new te.k_({key:new te.hs("handleClickLink"),props:{handleClick:(t,r,i)=>{var s,o;if(0!==i.button||!t.editable)return!1;let l=null;if(i.target instanceof HTMLAnchorElement)l=i.target;else{let t=i.target;if(!t)return!1;let r=e.editor.view.dom;(l=t.closest("a"))&&!r.contains(l)&&(l=null)}if(!l)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let r=(0,n.gu)(t.state,e.type.name),i=null!=(s=l.href)?s:r.href,u=null!=(o=l.target)?o:r.target;i&&(window.open(i,u),a=!0)}return a}}})}function ta(e){return new te.k_({key:new te.hs("handlePasteLink"),props:{handlePaste:(t,r,n)=>{let{shouldAutoLink:i}=e,{state:s}=t,{selection:o}=s,{empty:l}=o;if(l)return!1;let a="";n.content.forEach(e=>{a+=e.textContent});let u=e7(a,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===a);return!!a&&!!u&&(void 0===i||!!i(u.value))&&e.editor.commands.setMark(e.type,{href:u.href})}}})}function tu(e,t){let r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&r.push(t)}),!e||e.replace(ti,"").match(RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var tc=n.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{"string"==typeof e?e6(e):e6(e.scheme,e.optionalSlashes)})},onDestroy(){e4()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!tu(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),r=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||r&&!e.includes("@"))return!0;let n=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(n)&&!!/\./.test(n)}}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,n.KV)(this.options.HTMLAttributes,e),0]:["a",(0,n.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var r,n,i,s;let o=null!=(n=null==(r=e.attrs)?void 0:r.href)?n:"",l=null!=(s=null==(i=e.attrs)?void 0:i.title)?s:"",a=t.renderChildren(e);return l?`[${a}](${o} "${l}")`:`[${a}](${o})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:r}=e||{};return(!r||!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tu(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,n.Zc)({find:e=>{let t=[];if(e){let{protocols:r,defaultProtocol:n}=this.options,i=e7(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!tu(e,r),protocols:r,defaultProtocol:n}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t},type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:r}=this.options;return this.options.autolink&&e.push(to({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!tu(e,t),protocols:t,defaultProtocol:r}),shouldAutoLink:this.options.shouldAutoLink})),e.push(tl({type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(ta({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),th=tc},61878:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],s=(0,n.A)("search",i)},62678:(e,t,r)=>{"use strict";r.d(t,{QO:()=>J,vR:()=>K,Or:()=>X,JU:()=>ee,lb:()=>et});var n=r(82159),i=r(76865),s=r(8242);function o(e={}){return new i.k_({view:t=>new l(t,e)})}class l{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(r=t.width)?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,s=this.editorView.dom,o=s.getBoundingClientRect(),l=o.width/s.offsetWidth,a=o.height/s.offsetHeight;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),s=e?n.bottom:n.top;e&&t&&(s=(s+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let o=this.width/2*a;i={left:n.left,right:n.right,top:s-o,bottom:s+o}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*l;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let u=this.editorView.dom.offsetParent;if(!this.element&&(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let r=u.getBoundingClientRect(),n=r.width/u.offsetWidth,i=r.height/u.offsetHeight;e=r.left-u.scrollLeft*n,t=r.top-u.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/l+"px",this.element.style.top=(i.top-t)/a+"px",this.element.style.width=(i.right-i.left)/l+"px",this.element.style.height=(i.bottom-i.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,i="function"==typeof n?n(this.editorView,t,e):n;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,s.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var a=r(63197),u=r(12894),c=r(27050);class h extends i.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return h.valid(r)?new h(r):i.LN.near(r)}content(){return c.Ji.empty}eq(e){return e instanceof h&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new h(e.resolve(t.pos))}getBookmark(){return new d(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!f(e)||!m(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,r=!1){i:for(;;){if(!r&&h.valid(e))return e;let n=e.pos,s=null;for(let r=e.depth;;r--){let i=e.node(r);if(t>0?e.indexAfter(r)<i.childCount:e.index(r)>0){s=i.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let o=e.doc.resolve(n);if(h.valid(o))return o}for(;;){let o=t>0?s.firstChild:s.lastChild;if(!o){if(s.isAtom&&!s.isText&&!i.nh.isSelectable(s)){e=e.doc.resolve(n+s.nodeSize*t),r=!1;continue i}break}s=o,n+=t;let l=e.doc.resolve(n);if(h.valid(l))return l}return null}}}h.prototype.visible=!1,h.findFrom=h.findGapCursorFrom,i.LN.jsonID("gapcursor",h);class d{constructor(e){this.pos=e}map(e){return new d(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return h.valid(t)?new h(t):i.LN.near(t)}}function p(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function f(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||p(e.type))return!0;if(e.inlineContent)return!1}}return!0}function m(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||p(e.type))return!0;if(e.inlineContent)return!1}}return!0}function g(){return new i.k_({props:{decorations:w,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&h.valid(r)?new h(r):null,handleClick:k,handleKeyDown:_,handleDOMEvents:{beforeinput:b}}})}let _=(0,u.K)({ArrowLeft:y("horiz",-1),ArrowRight:y("horiz",1),ArrowUp:y("vert",-1),ArrowDown:y("vert",1)});function y(e,t){let r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,s){let o=e.selection,l=t>0?o.$to:o.$from,a=o.empty;if(o instanceof i.U3){if(!s.endOfTextblock(r)||0==l.depth)return!1;a=!1,l=e.doc.resolve(t>0?l.after():l.before())}let u=h.findGapCursorFrom(l,t,a);return!!u&&(n&&n(e.tr.setSelection(new h(u))),!0)}}function k(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!h.valid(n))return!1;let s=e.posAtCoords({left:r.clientX,top:r.clientY});return!(s&&s.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(s.inside)))&&(e.dispatch(e.state.tr.setSelection(new h(n))),!0)}function b(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof h))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let s=c.FK.empty;for(let e=n.length-1;e>=0;e--)s=c.FK.from(n[e].createAndFill(null,s));let o=e.state.tr.replace(r.pos,r.pos,new c.Ji(s,0,0));return o.setSelection(i.U3.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function w(e){if(!(e.selection instanceof h))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",a.zF.create(e.doc,[a.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var x=200,v=function(){};v.prototype.append=function(e){return e.length?(e=v.from(e),!this.length&&e||e.length<x&&this.leafAppend(e)||this.length<x&&e.leafPrepend(this)||this.appendInner(e)):this},v.prototype.prepend=function(e){return e.length?v.from(e).append(this):this},v.prototype.appendInner=function(e){return new A(this,e)},v.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?v.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},v.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},v.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},v.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},v.from=function(e){return e instanceof v?e:e&&e.length?new C(e):v.empty};var C=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=x)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=x)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(v);v.empty=new C([]);var A=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(v);let E=v,S=500;class M{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,s;if(0==this.eventCount)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}t&&(n=(r=this.remapping(o,this.items.length)).maps.length);let l=e.tr,a=[],u=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(o,t+1)).maps.length),n--,u.push(e);return}if(r){u.push(new D(e.map));let t=e.step.map(r.slice(n)),i;t&&l.maybeStep(t).doc&&(i=l.mapping.maps[l.mapping.maps.length-1],a.push(new D(i,void 0,void 0,a.length+u.length))),n--,i&&r.appendMap(i,n)}else l.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,s=new M(this.items.slice(0,o).append(u.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:s,transform:l,selection:i}}addTransform(e,t,r,n){let i=[],s=this.eventCount,o=this.items,l=!n&&o.length?o.get(o.length-1):null;for(let r=0;r<e.steps.length;r++){let a=e.steps[r].invert(e.docs[r]),u=new D(e.mapping.maps[r],a,t),c;(c=l&&l.merge(u))&&(u=c,r?i.pop():o=o.slice(0,o.length-1)),i.push(u),t&&(s++,t=void 0),n||(l=u)}let a=s-r.depth;return a>I&&(o=T(o,a),s-=a),new M(o.append(i),s)}remapping(e,t){let r=new s.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new M(this.items.append(e.map(e=>new D(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(e=>{e.selection&&o--},n);let l=t;this.items.forEach(t=>{let n=i.getMirror(--l);if(null==n)return;s=Math.min(s,n);let a=i.maps[n];if(t.step){let s=e.steps[n].invert(e.docs[n]),u=t.selection&&t.selection.map(i.slice(l+1,n));u&&o++,r.push(new D(a,s,u))}else r.push(new D(a))},n);let a=[];for(let e=t;e<s;e++)a.push(new D(i.maps[e]));let u=new M(this.items.slice(0,n).append(a).append(r),o);return u.emptyItemCount()>S&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,n=[],i=0;return this.items.forEach((s,o)=>{if(o>=e)n.push(s),s.selection&&i++;else if(s.step){let e=s.step.map(t.slice(r)),o=e&&e.getMap();if(r--,o&&t.appendMap(o,r),e){let l=s.selection&&s.selection.map(t.slice(r));l&&i++;let a=new D(o.invert(),e,l),u,c=n.length-1;(u=n.length&&n[c].merge(a))?n[c]=u:n.push(a)}}else s.map&&r--},this.items.length,0),new M(E.from(n.reverse()),i)}}function T(e,t){let r;return e.forEach((e,n)=>{if(e.selection&&0==t--)return r=n,!1}),e.slice(r)}M.empty=new M(E.empty,0);class D{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new D(t.getMap().invert(),t,this.selection)}}}class F{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let I=20;function L(e,t,r,n){let i=r.getMeta(q),s;if(i)return i.historyState;r.getMeta(j)&&(e=new F(e.done,e.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(o&&o.getMeta(q))if(o.getMeta(q).redo)return new F(e.done.addTransform(r,void 0,n,B(t)),e.undone,N(r.mapping.maps),e.prevTime,e.prevComposition);else return new F(e.done,e.undone.addTransform(r,void 0,n,B(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(s=r.getMeta("rebased"))return new F(e.done.rebased(r,s),e.undone.rebased(r,s),O(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new F(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),O(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),s=0==e.prevTime||!o&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!R(r,e.prevRanges)),l=o?O(e.prevRanges,r.mapping):N(r.mapping.maps);return new F(e.done.addTransform(r,s?t.selection.getBookmark():void 0,n,B(t)),M.empty,l,r.time,null==i?e.prevComposition:i)}}function R(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}function N(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function O(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),s=t.map(e[n+1],-1);i<=s&&r.push(i,s)}return r}function z(e,t,r){let n=B(t),i=q.get(t).spec.config,s=(r?e.undone:e.done).popEvent(t,n);if(!s)return null;let o=s.selection.resolve(s.transform.doc),l=(r?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),i,n),a=new F(r?l:s.remaining,r?s.remaining:l,null,0,-1);return s.transform.setSelection(o).setMeta(q,{redo:r,historyState:a})}let P=!1,$=null;function B(e){let t=e.plugins;if($!=t){P=!1,$=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){P=!0;break}}return P}let q=new i.hs("history"),j=new i.hs("closeHistory");function H(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new i.k_({key:q,state:{init:()=>new F(M.empty,M.empty,null,0,-1),apply:(t,r,n)=>L(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?U:"historyRedo"==r?W:null;return!!n&&!!e.editable&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}function V(e,t){return(r,n)=>{let i=q.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let s=z(i,r,e);s&&n(t?s.scrollIntoView():s)}return!0}}let U=V(!1,!0),W=V(!0,!0);V(!1,!1),V(!0,!1),n.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,r=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(r)}},addProseMirrorPlugins(){let e=!1;return[new i.k_({key:new i.hs("characterCount"),appendTransaction:(t,r,n)=>{if(e)return;let i=this.options.limit;if(null==i||0===i){e=!0;return}let s=this.storage.characters({node:n.doc});if(s>i){let t=0,r=s-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let o=n.tr.deleteRange(t,r);return e=!0,o}e=!0},filterTransaction:(e,t)=>{let r=this.options.limit;if(!e.docChanged||0===r||null==r)return!0;let n=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=r||n>r&&i>r&&i<=n)return!0;if(n>r&&i>r&&i>n||!e.getMeta("paste"))return!1;let s=e.selection.$head.pos,o=s-(i-r),l=s;return e.deleteRange(o,l),!(this.storage.characters({node:e.doc})>r)}})]}});var J=n.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[o(this.options)]}});n.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:r,isFocused:n}=this.editor,{anchor:i}=t,s=[];if(!r||!n)return a.zF.create(e,[]);let o=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let l=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((l+=1,"deepest"===this.options.mode&&o-l>0||"shallowest"===this.options.mode&&l>1)?"deepest"===this.options.mode:void s.push(a.NZ.node(t,t+e.nodeSize,{class:this.options.className})))),a.zF.create(e,s)}}})]}});var K=n.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[g()],extendNodeSchema(e){var t;let r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,n.gk)((0,n.iI)(e,"allowGapCursor",r)))?t:null}}}),G="placeholder";function Z(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var X=n.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:G,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){let e=this.options.dataAttribute?`data-${Z(this.options.dataAttribute)}`:`data-${G}`;return[new i.k_({key:new i.hs("placeholder"),props:{decorations:({doc:t,selection:r})=>{let i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:s}=r,o=[];if(!i)return null;let l=this.editor.isEmpty;return t.descendants((t,r)=>{let i=s>=r&&s<=r+t.nodeSize,u=!t.isLeaf&&(0,n.Op)(t);if(!t.type.isTextblock)return this.options.includeChildren;if((i||!this.options.showOnlyCurrent)&&u){let n=[this.options.emptyNodeClass];l&&n.push(this.options.emptyEditorClass);let s=a.NZ.node(r,r+t.nodeSize,{class:n.join(" "),[e]:"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:r,hasAnchor:i}):this.options.placeholder});o.push(s)}return this.options.includeChildren}),a.zF.create(t,o)}}})]}});n.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new i.k_({key:new i.hs("selection"),props:{decorations:r=>r.selection.empty||e.isFocused||!e.isEditable||(0,n.BQ)(r.selection)||e.view.dragging?null:a.zF.create(r.doc,[a.NZ.inline(r.selection.from,r.selection.to,{class:t.className})])}})]}});var Y="skipTrailingNode";function Q({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}var ee=n.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new i.hs(this.name),r=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(r).includes(e.name));return[new i.k_({key:t,appendTransaction:(e,n,i)=>{let{doc:s,tr:o,schema:l}=i,a=t.getState(i),u=s.content.size,c=l.nodes[r];if(!e.some(e=>e.getMeta(Y))&&a)return o.insert(u,c.create())},state:{init:(e,t)=>!Q({node:t.tr.doc.lastChild,types:n}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!Q({node:e.doc.lastChild,types:n})}})]}}),et=n.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>U(e,t),redo:()=>({state:e,dispatch:t})=>W(e,t)}),addProseMirrorPlugins(){return[H(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},65915:e=>{var t=!0,r=!1,n=!1;function i(e,t,r){var n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):e.attrs[n]=i}function s(e,t){for(var r=e[t].level-1,n=t-1;n>=0;n--)if(e[n].level===r)return n;return -1}function o(e,t){return d(e[t])&&p(e[t-1])&&f(e[t-2])&&m(e[t])}function l(e,t){if(e.children.unshift(a(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r)if(n){e.children.pop();var i="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+i+'">',e.children.push(h(e.content,i,t))}else e.children.unshift(u(t)),e.children.push(c(t))}function a(e,r){var n=new r("html_inline","",0),i=t?' disabled="" ':"";return 0===e.content.indexOf("[ ] ")?n.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] "))&&(n.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),n}function u(e){var t=new e("html_inline","",0);return t.content="<label>",t}function c(e){var t=new e("html_inline","",0);return t.content="</label>",t}function h(e,t,r){var n=new r("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",n.attrs=[{for:t}],n}function d(e){return"inline"===e.type}function p(e){return"paragraph_open"===e.type}function f(e){return"list_item_open"===e.type}function m(e){return 0===e.content.indexOf("[ ] ")||0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] ")}e.exports=function(e,a){a&&(t=!a.enabled,r=!!a.label,n=!!a.labelAfter),e.core.ruler.after("inline","github-task-lists",function(e){for(var r=e.tokens,n=2;n<r.length;n++)o(r,n)&&(l(r[n],e.Token),i(r[n-2],"class","task-list-item"+(t?"":" enabled")),i(r[s(r,n-2)],"class","contains-task-list"))})}},66088:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],s=(0,n.A)("chevron-down",i)},68459:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],s=(0,n.A)("trash-2",i)},68806:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],s=(0,n.A)("plug",i)},69048:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],s=(0,n.A)("square-function",i)},73300:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],s=(0,n.A)("clipboard",i)},76022:(e,t,r)=>{"use strict";e.exports=r.p+"static/media/web-tree-sitter.f7f7244f.wasm"},76065:(e,t,r)=>{"use strict";r.d(t,{H:()=>n.Hj});var n=r(5989)},76865:(e,t,r)=>{"use strict";r.d(t,{$t:()=>E,LN:()=>o,U3:()=>c,hs:()=>F,i5:()=>f,k_:()=>M,nh:()=>d,yn:()=>l});var n=r(27050),i=r(8242);let s=Object.create(null);class o{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new l(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=n.Ji.empty){let r=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=r,r=r.lastChild;let s=e.steps.length,o=this.ranges;for(let l=0;l<o.length;l++){let{$from:a,$to:u}=o[l],c=e.mapping.slice(s);e.replaceRange(c.map(a.pos),c.map(u.pos),l?n.Ji.empty:t),0==l&&_(e,s,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],l=e.mapping.slice(r),a=l.map(s.pos),u=l.map(o.pos);i?e.deleteRange(a,u):(e.replaceRangeWith(a,u,t),_(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new c(e):g(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=t<0?g(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):g(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new f(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let r=s[t.type];if(!r)throw RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in s)throw RangeError("Duplicate use of selection JSON ID "+e);return s[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()}}o.prototype.visible=!0;class l{constructor(e,t){this.$from=e,this.$to=t}}let a=!1;function u(e){a||e.parent.inlineContent||(a=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends o{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return o.near(r);let n=e.resolve(t.map(this.anchor));return new c(n.parent.inlineContent?n:r,r)}replace(e,t=n.Ji.empty){if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if((!r||n)&&(r=n>=0?1:-1),!t.parent.inlineContent){let e=o.findFrom(t,r,!0)||o.findFrom(t,-r,!0);if(!e)return o.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n?e=t:(e=(o.findFrom(e,-r,!0)||o.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0&&(e=t)),new c(e,t)}}o.jsonID("text",c);class h{constructor(e,t){this.anchor=e,this.head=t}map(e){return new h(e.map(this.anchor),e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class d extends o{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?o.near(i):new d(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof d&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new p(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new d(e.resolve(t.anchor))}static create(e,t){return new d(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}d.prototype.visible=!1,o.jsonID("node",d);class p{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new h(r,r):new p(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&d.isSelectable(r)?new d(t):o.near(t)}}class f extends o{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=n.Ji.empty){if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=o.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return m}}o.jsonID("all",f);let m={map(){return this},resolve:e=>new f(e)};function g(e,t,r,n,i,s=!1){if(t.inlineContent)return c.create(e,r);for(let o=n-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let n=t.child(o);if(n.isAtom){if(!s&&d.isSelectable(n))return d.create(e,r-(i<0?n.nodeSize:0))}else{let t=g(e,n,r+i,i<0?n.childCount:0,i,s);if(t)return t}r+=n.nodeSize*i}return null}function _(e,t,r){let n,s=e.steps.length-1;if(s<t)return;let l=e.steps[s];(l instanceof i.Ln||l instanceof i.Wg)&&(e.mapping.maps[s].forEach((e,t,r,i)=>{null==n&&(n=i)}),e.setSelection(o.near(e.doc.resolve(n),r)))}let y=1,k=2,b=4;class w extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|y)&~k,this.storedMarks=null,this}get selectionSet(){return(this.updated&y)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=k,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&k)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~k,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(o.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=b,this}get scrolledIntoView(){return(this.updated&b)>0}}function x(e,t){return t&&e?e.bind(t):e}class v{constructor(e,t,r){this.name=e,this.init=x(t.init,r),this.apply=x(t.apply,r)}}let C=[new v("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new v("selection",{init:(e,t)=>e.selection||o.atStart(t.doc),apply:e=>e.selection}),new v("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new v("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class A{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new v(e.key,e.spec.state,e))})}}class E{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let o=this.config.plugins[s];if(o.spec.appendTransaction){let l=n?n[s].n:0,a=n?n[s].state:this,u=l<t.length&&o.spec.appendTransaction.call(o,l?t.slice(l):t,a,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<s?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),i=!0}n&&(n[s]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new E(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new w(this)}static create(e){let t=new A(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new E(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new A(this.schema,e.plugins),r=t.fields,n=new E(t);for(let t=0;t<r.length;t++){let i=r[t].name;n[i]=this.hasOwnProperty(i)?this[i]:r[t].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new A(e.schema,e.plugins),s=new E(i);return i.fields.forEach(i=>{if("doc"==i.name)s.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)s.selection=o.fromJSON(s.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(s.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let o=r[n],l=o.spec.state;if(o.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){s[i.name]=l.fromJSON.call(o,e,t[n],s);return}}s[i.name]=i.init(e,s)}}),s}}function S(e,t,r){for(let n in e){let i=e[n];i instanceof Function?i=i.bind(t):"handleDOMEvents"==n&&(i=S(i,t,{})),r[n]=i}return r}class M{constructor(e){this.spec=e,this.props={},e.props&&S(e.props,this,this.props),this.key=e.key?e.key.key:D("plugin")}getState(e){return e[this.key]}}let T=Object.create(null);function D(e){return e in T?e+"$"+ ++T[e]:(T[e]=0,e+"$")}class F{constructor(e="key"){this.key=D(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},82150:(e,t,r)=>{"use strict";r.d(t,{L2:()=>R,Rg:()=>u,_0:()=>N,_J:()=>I,ck:()=>c,it:()=>w});var n=r(82159),i=Object.defineProperty,s=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},o="listItem",l="textStyle",a=/^\s*([-+*])\s$/,u=n.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o,this.editor.getAttributes(l)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,n.tG)({find:a,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:a,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(l),editor:this.editor})),[e]}}),c=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var r;if("list_item"!==e.type)return[];let n=null!=(r=t.parseBlockChildren)?r:t.parseChildren,i=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>"paragraph"===e.type))i=n(e.tokens);else{let r=e.tokens[0];if(r&&"text"===r.type&&r.tokens&&r.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(r.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));i.push(...t)}}else i=n(e.tokens)}return 0===i.length&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,r)=>(0,n.kj)(e,t,e=>{var t,r;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){let n=(null==(r=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:r.start)||1;return`${n+e.index}. `}return"- "},r),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});s({},{findListItemPos:()=>h,getNextListDepth:()=>d,handleBackspace:()=>g,handleDelete:()=>k,hasListBefore:()=>p,hasListItemAfter:()=>b,hasListItemBefore:()=>f,listItemHasSubList:()=>m,nextListIsDeeper:()=>_,nextListIsHigher:()=>y});var h=(e,t)=>{let{$from:r}=t.selection,i=(0,n.Pg)(e,t.schema),s=null,o=r.depth,l=r.pos,a=null;for(;o>0&&null===a;)(s=r.node(o)).type===i?a=o:(o-=1,l-=1);return null===a?null:{$pos:t.doc.resolve(l),depth:a}},d=(e,t)=>{let r=h(e,t);if(!r)return!1;let[,i]=(0,n.fl)(t,e,r.$pos.pos+4);return i},p=(e,t,r)=>{let{$anchor:n}=e.selection,i=Math.max(0,n.pos-2),s=e.doc.resolve(i).node();return!!s&&!!r.includes(s.type.name)},f=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-2);return 0!==i.index()&&(null==(r=i.nodeBefore)?void 0:r.type.name)===e},m=(e,t,r)=>{if(!r)return!1;let i=(0,n.Pg)(e,t.schema),s=!1;return r.descendants(e=>{e.type===i&&(s=!0)}),s},g=(e,t,r)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,n.rU)(e.state,t)&&p(e.state,t,r)){let{$anchor:r}=e.state.selection,n=e.state.doc.resolve(r.before()-1),i=[];n.node().descendants((e,r)=>{e.type.name===t&&i.push({node:e,pos:r})});let s=i.at(-1);if(!s)return!1;let o=e.state.doc.resolve(n.start()+s.pos+1);return e.chain().cut({from:r.start()-1,to:r.end()+1},o.end()).joinForward().run()}if(!(0,n.rU)(e.state,t)||!(0,n.J_)(e.state))return!1;let i=h(t,e.state);if(!i)return!1;let s=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),o=m(t,e.state,s);return f(t,e.state)&&!o?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},_=(e,t)=>{let r=d(e,t),n=h(e,t);return!!n&&!!r&&r>n.depth},y=(e,t)=>{let r=d(e,t),n=h(e,t);return!!n&&!!r&&r<n.depth},k=(e,t)=>{if(!(0,n.rU)(e.state,t)||!(0,n.QN)(e.state,t))return!1;let{selection:r}=e.state,{$from:i,$to:s}=r;return!(!r.empty&&i.sameParent(s))&&(_(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():y(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},b=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-n.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(r=i.nodeAfter)?void 0:r.type.name)===e},w=n.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&k(e,r)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&k(e,r)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&g(e,r,n)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&g(e,r,n)&&(t=!0)}),t}}}}),x=/^(\s*)(\d+)\.\s+(.*)$/,v=/^\s/;function C(e){let t=e.trimStart();return/^[-+*]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^>\s?/.test(t)||/^```/.test(t)||/^~~~/.test(t)}function A(e){let t=[],r=[],n=!1;return e.forEach(e=>{if(n)return void r.push(e);if(""===e.trim()||t.length>0&&C(e)){n=!0,r.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:r}}function E(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r],s=i.match(x);if(!s)break;let[,o,l,a]=s,u=o.length,c=[a],h=r+1,d=[i],p=!1;for(;h<e.length;){let t=e[h];if(t.match(x))break;if(""===t.trim())d.push(t),c.push(""),p=!0,h+=1;else if(t.match(v))d.push(t),c.push(t.slice(u+2)),h+=1;else{if(p)break;d.push(t),c.push(t),h+=1}}t.push({indent:u,number:parseInt(l,10),content:c.join("\n").trim(),contentLines:c,raw:d.join("\n")}),n=h,r=h}return[t,n]}function S(e,t,r){let n=[],i=0;for(;i<e.length;){let s=e[i];if(s.indent===t){let{paragraphLines:o,blockLines:l}=A(s.contentLines),a=o.join("\n").trim(),u=[];a&&u.push({type:"paragraph",raw:a,tokens:r.inlineTokens(a)});let c=l.join("\n").trim();if(c){let e=r.blockTokens(c);u.push(...e)}let h=i+1,d=[];for(;h<e.length&&e[h].indent>t;)d.push(e[h]),h+=1;if(d.length>0){let e=Math.min(...d.map(e=>e.indent)),t=S(d,e,r);u.push({type:"list",ordered:!0,start:d[0].number,items:t,raw:d.map(e=>e.raw).join("\n")})}n.push({type:"list_item",raw:s.raw,tokens:u}),i=h}else i+=1}return n}function M(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let r=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)r.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let n=t.parseChildren([e]);r.push({type:"paragraph",content:n})}else{let n=t.parseChildren([e]);n.length>0&&r.push(...n)}}),{type:"listItem",content:r}})}var T="listItem",D="textStyle",F=/^(\d+)\.\s$/,I=n.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...r}=e;return 1===t?["ol",(0,n.KV)(this.options.HTMLAttributes,r),0]:["ol",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let r=e.start||1,n=e.items?M(e.items,t):[];return 1!==r?{type:"orderedList",attrs:{start:r},content:n}:{type:"orderedList",content:n}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/),r=null==t?void 0:t.index;return void 0!==r?r:-1},tokenize:(e,t,r)=>{var n;let i=e.split("\n"),[s,o]=E(i);if(0===s.length)return;let l=S(s,0,r);if(0!==l.length)return{type:"list",ordered:!0,start:(null==(n=s[0])?void 0:n.number)||1,items:l,raw:i.slice(0,o).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(T,this.editor.getAttributes(D)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,n.tG)({find:F,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:F,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(D)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),L=/^\s*(\[([( |x])?\])\s$/,R=n.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,n.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let r=[];if(e.tokens&&e.tokens.length>0?r.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?r.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):r.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let n=t.parseChildren(e.nestedTokens);r.push(...n)}return t.createNode("taskItem",{checked:e.checked||!1},r)},renderMarkdown:(e,t)=>{var r;let i=(null==(r=e.attrs)?void 0:r.checked)?"x":" ",s=`- [${i}] `;return(0,n.kj)(e,t,s)},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:r,editor:i})=>{let s=document.createElement("li"),o=document.createElement("label"),l=document.createElement("span"),a=document.createElement("input"),u=document.createElement("div"),c=e=>{var t,r;a.ariaLabel=(null==(r=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:r.call(t,e,a.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};c(e),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",e=>e.preventDefault()),a.addEventListener("change",t=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}let{checked:n}=t.target;i.isEditable&&"function"==typeof r&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=r();if("number"!=typeof t)return!1;let i=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==i?void 0:i.attrs,checked:n}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,n)||(a.checked=!a.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{s.setAttribute(e,t)}),s.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,l),s.append(o,u),Object.entries(t).forEach(([e,t])=>{s.setAttribute(e,t)});let h=new Set(Object.keys(t));return{dom:s,contentDOM:u,update:e=>{if(e.type!==this.type)return!1;s.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,c(e);let t=i.extensionManager.attributes,r=(0,n.zU)(e,t),o=new Set(Object.keys(r)),l=this.options.HTMLAttributes;return h.forEach(e=>{o.has(e)||(e in l?s.setAttribute(e,l[e]):s.removeAttribute(e))}),Object.entries(r).forEach(([e,t])=>{null==t?e in l?s.setAttribute(e,l[e]):s.removeAttribute(e):s.setAttribute(e,t)}),h=o,!0}}}},addInputRules(){return[(0,n.tG)({find:L,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),N=n.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let r=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,t,r){let i=e=>{let t=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);return t?[{type:"taskList",raw:t.raw,items:t.items}]:r.blockTokens(e)},s=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);if(s)return{type:"taskList",raw:s.raw,items:s.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});n.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(u.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(c.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(w.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(I.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(R.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(N.configure(this.options.taskList)),e}})},91958:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],s=(0,n.A)("refresh-cw",i)},94577:(e,t,r)=>{"use strict";e.exports=r(99617)},94852:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],s=(0,n.A)("app-window",i)},96035:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],s=(0,n.A)("message-square",i)},97144:(e,t,r)=>{"use strict";r.d(t,{$f:()=>L,G2:()=>k,I$:()=>C,Im:()=>N,Qv:()=>a,Sd:()=>_,Z1:()=>A,_G:()=>c,_e:()=>p,bh:()=>b,eB:()=>u,eT:()=>g,ec:()=>R,hy:()=>M,ic:()=>o,iz:()=>E,pC:()=>x,yY:()=>w,y_:()=>O});var n=r(8242),i=r(27050),s=r(76865);let o=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function l(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}let a=(e,t,r)=>{let o=l(e,r);if(!o)return!1;let a=f(o);if(!a){let r=o.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let u=a.nodeBefore;if(F(e,a,t,-1))return!0;if(0==o.parent.content.size&&(d(u,"end")||s.nh.isSelectable(u)))for(let r=o.depth;;r--){let l=(0,n.$L)(e.doc,o.before(r),o.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let r=e.tr.step(l);r.setSelection(d(u,"end")?s.LN.findFrom(r.doc.resolve(r.mapping.map(a.pos,-1)),-1):s.nh.create(r.doc,a.pos-u.nodeSize)),t(r.scrollIntoView())}return!0}if(1==r||o.node(r-1).childCount>1)break}return!!u.isAtom&&a.depth==o.depth-1&&(t&&t(e.tr.delete(a.pos-u.nodeSize,a.pos).scrollIntoView()),!0)},u=(e,t,r)=>{let n=l(e,r);if(!n)return!1;let i=f(n);return!!i&&h(e,i,t)},c=(e,t,r)=>{let n=m(e,r);if(!n)return!1;let i=y(n);return!!i&&h(e,i,t)};function h(e,t,r){let o=t.nodeBefore,l=t.pos-1;for(;!o.isTextblock;l--){if(o.type.spec.isolating)return!1;let e=o.lastChild;if(!e)return!1;o=e}let a=t.nodeAfter,u=t.pos+1;for(;!a.isTextblock;u++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let c=(0,n.$L)(e.doc,l,u,i.Ji.empty);if(!c||c.from!=l||c instanceof n.Ln&&c.slice.size>=u-l)return!1;if(r){let t=e.tr.step(c);t.setSelection(s.U3.create(t.doc,l)),r(t.scrollIntoView())}return!0}function d(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}let p=(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;o=f(n)}let l=o&&o.nodeBefore;return!!l&&!!s.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(s.nh.create(e.doc,o.pos-l.nodeSize)).scrollIntoView()),!0)};function f(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function m(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset<r.parent.content.size))?r:null}let g=(e,t,r)=>{let o=m(e,r);if(!o)return!1;let l=y(o);if(!l)return!1;let a=l.nodeAfter;if(F(e,l,t,1))return!0;if(0==o.parent.content.size&&(d(a,"start")||s.nh.isSelectable(a))){let r=(0,n.$L)(e.doc,o.before(),o.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(d(a,"start")?s.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos)),1):s.nh.create(n.doc,n.mapping.map(l.pos))),t(n.scrollIntoView())}return!0}}return!!a.isAtom&&l.depth==o.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+a.nodeSize).scrollIntoView()),!0)},_=(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;o=y(n)}let l=o&&o.nodeAfter;return!!l&&!!s.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(s.nh.create(e.doc,o.pos)).scrollIntoView()),!0)};function y(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}let k=(e,t)=>{let r=e.selection,i=r instanceof s.nh,o;if(i){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.from))return!1;o=r.from}else if(null==(o=(0,n.N0)(e.doc,r.from,-1)))return!1;if(t){let r=e.tr.join(o);i&&r.setSelection(s.nh.create(r.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},b=(e,t)=>{let r=e.selection,i;if(r instanceof s.nh){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},w=(e,t)=>{let{$from:r,$to:i}=e.selection,s=r.blockRange(i),o=s&&(0,n.jP)(s);return null!=o&&(t&&t(e.tr.lift(s,o).scrollIntoView()),!0)},x=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function v(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let C=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),o=r.indexAfter(-1),l=v(i.contentMatchAt(o));if(!l||!i.canReplaceWith(o,o,l))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,l.createAndFill());i.setSelection(s.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},A=(e,t)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof s.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let o=v(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,l=e.tr.insert(r,o.createAndFill());l.setSelection(s.U3.create(l.doc,r+1)),t(l.scrollIntoView())}return!0},E=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),s=i&&(0,n.jP)(i);return null!=s&&(t&&t(e.tr.lift(i,s).scrollIntoView()),!0)},S=function(){return(e,t)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof s.nh&&e.selection.node.isBlock)return!!r.parentOffset&&!!(0,n.zy)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],l,a,u=!1,c=!1;for(let e=r.depth;;e--){if(r.node(e).isBlock){u=r.end(e)==r.pos+(r.depth-e),c=r.start(e)==r.pos-(r.depth-e),a=v(r.node(e-1).contentMatchAt(r.indexAfter(e-1)));let t=void 0;o.unshift(t||(u&&a?{type:a}:null)),l=e;break}if(1==e)return!1;o.unshift(null)}let h=e.tr;(e.selection instanceof s.U3||e.selection instanceof s.i5)&&h.deleteSelection();let d=h.mapping.map(r.pos),p=(0,n.zy)(h.doc,d,o.length,o);if(p||(o[0]=a?{type:a}:null,p=(0,n.zy)(h.doc,d,o.length,o)),!p)return!1;if(h.split(d,o.length,o),!u&&c&&r.node(l).type!=a){let e=h.mapping.map(r.before(l)),t=h.doc.resolve(e);a&&r.node(l-1).canReplaceWith(t.index(),t.index()+1,a)&&h.setNodeMarkup(h.mapping.map(r.before(l)),a)}return t&&t(h.scrollIntoView()),!0}}(),M=(e,t)=>{let{$from:r,to:n}=e.selection,i,o=r.sharedDepth(n);return 0!=o&&(i=r.before(o),t&&t(e.tr.setSelection(s.nh.create(e.doc,i))),!0)},T=(e,t)=>(t&&t(e.tr.setSelection(new s.i5(e.doc))),!0);function D(e,t,r){let i=t.nodeBefore,s=t.nodeAfter,o=t.index();return!!i&&!!s&&!!i.type.compatibleContent(s.type)&&(!i.content.size&&t.parent.canReplace(o-1,o)?(r&&r(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(o,o+1)&&!!(s.isTextblock||(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))}function F(e,t,r,o){let l=t.nodeBefore,a=t.nodeAfter,u,c,h=l.type.spec.isolating||a.type.spec.isolating;if(!h&&D(e,t,r))return!0;let p=!h&&t.parent.canReplace(t.index(),t.index()+1);if(p&&(u=(c=l.contentMatchAt(l.childCount)).findWrapping(a.type))&&c.matchType(u[0]||a.type).validEnd){if(r){let s=t.pos+a.nodeSize,o=i.FK.empty;for(let e=u.length-1;e>=0;e--)o=i.FK.from(u[e].create(null,o));o=i.FK.from(l.copy(o));let c=e.tr.step(new n.Wg(t.pos-1,s,t.pos,s,new i.Ji(o,1,0),u.length,!0)),h=c.doc.resolve(s+2*u.length);h.nodeAfter&&h.nodeAfter.type==l.type&&(0,n.n9)(c.doc,h.pos)&&c.join(h.pos),r(c.scrollIntoView())}return!0}let f=a.type.spec.isolating||o>0&&h?null:s.LN.findFrom(t,1),m=f&&f.$from.blockRange(f.$to),g=m&&(0,n.jP)(m);if(null!=g&&g>=t.depth)return r&&r(e.tr.lift(m,g).scrollIntoView()),!0;if(p&&d(a,"start",!0)&&d(l,"end")){let s=l,o=[];for(;o.push(s),!s.isTextblock;)s=s.lastChild;let u=a,c=1;for(;!u.isTextblock;u=u.firstChild)c++;if(s.canReplace(s.childCount,s.childCount,u.content)){if(r){let s=i.FK.empty;for(let e=o.length-1;e>=0;e--)s=i.FK.from(o[e].copy(s));r(e.tr.step(new n.Wg(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new i.Ji(s,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function I(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(r&&r(t.tr.setSelection(s.U3.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}let L=I(-1),R=I(1);function N(e,t=null){return function(r,i){let{$from:s,$to:o}=r.selection,l=s.blockRange(o),a=l&&(0,n.oM)(l,e,t);return!!a&&(i&&i(r.tr.wrap(l,a).scrollIntoView()),!0)}}function O(e,t=null){return function(r,n){let i=!1;for(let n=0;n<r.selection.ranges.length&&!i;n++){let{$from:{pos:s},$to:{pos:o}}=r.selection.ranges[n];r.doc.nodesBetween(s,o,(n,s)=>{if(i)return!1;if(!(!n.isTextblock||n.hasMarkup(e,t)))if(n.type==e)i=!0;else{let t=r.doc.resolve(s),n=t.index();i=t.parent.canReplaceWith(n,n+1,e)}})}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:s},$to:{pos:o}}=r.selection.ranges[n];i.setBlockType(s,o,e,t)}n(i.scrollIntoView())}return!0}}function z(...e){return function(t,r,n){for(let i=0;i<e.length;i++)if(e[i](t,r,n))return!0;return!1}}let P=z(o,a,p),$=z(o,g,_),B={Enter:z(x,A,E,S),"Mod-Enter":C,Backspace:P,"Mod-Backspace":P,"Shift-Backspace":P,Delete:$,"Mod-Delete":$,"Mod-a":T},q={"Ctrl-h":B.Backspace,"Alt-Backspace":B["Mod-Backspace"],"Ctrl-d":B.Delete,"Ctrl-Alt-Backspace":B["Mod-Delete"],"Alt-Delete":B["Mod-Delete"],"Alt-d":B["Mod-Delete"],"Ctrl-a":L,"Ctrl-e":R};for(let e in B)q[e]=B[e];"u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&os.platform&&os.platform()},97567:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],s=(0,n.A)("box",i)},98307:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],s=(0,n.A)("clipboard-list",i)},99617:(e,t,r)=>{"use strict";var n=r(12115),i=r(8039);function s(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var o="function"==typeof Object.is?Object.is:s,l=i.useSyncExternalStore,a=n.useRef,u=n.useEffect,c=n.useMemo,h=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var s=a(null);if(null===s.current){var d={hasValue:!1,value:null};s.current=d}else d=s.current;var p=l(e,(s=c(function(){function e(e){if(!a){if(a=!0,s=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,o(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,l=r)}var s,l,a=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],s[1]);return u(function(){d.hasValue=!0,d.value=p},[p]),h(p),p}}}]);