@winspan/claude-forge 8.54.4 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (880) hide show
  1. package/DEVELOPMENT.md +649 -33
  2. package/README.md +154 -16
  3. package/dist/catalogs/agents.json +72 -0
  4. package/dist/catalogs/skills.json +194 -0
  5. package/dist/claudemd/claudemd-generator.d.ts +45 -45
  6. package/dist/claudemd/claudemd-generator.d.ts.map +1 -1
  7. package/dist/claudemd/claudemd-generator.js +128 -449
  8. package/dist/claudemd/claudemd-generator.js.map +1 -1
  9. package/dist/claudemd/index.d.ts +14 -4
  10. package/dist/claudemd/index.d.ts.map +1 -1
  11. package/dist/claudemd/index.js +15 -4
  12. package/dist/claudemd/index.js.map +1 -1
  13. package/dist/claudemd/resume-manager.d.ts.map +1 -1
  14. package/dist/claudemd/resume-manager.js +37 -9
  15. package/dist/claudemd/resume-manager.js.map +1 -1
  16. package/dist/claudemd/templates/swarm-protocol.md +35 -186
  17. package/dist/claudemd/violations-manager.d.ts +40 -0
  18. package/dist/claudemd/violations-manager.d.ts.map +1 -0
  19. package/dist/claudemd/violations-manager.js +106 -0
  20. package/dist/claudemd/violations-manager.js.map +1 -0
  21. package/dist/cli/commands/admin.d.ts +15 -0
  22. package/dist/cli/commands/admin.d.ts.map +1 -0
  23. package/dist/cli/commands/admin.js +177 -0
  24. package/dist/cli/commands/admin.js.map +1 -0
  25. package/dist/cli/commands/agents.d.ts +18 -0
  26. package/dist/cli/commands/agents.d.ts.map +1 -0
  27. package/dist/cli/commands/agents.js +160 -0
  28. package/dist/cli/commands/agents.js.map +1 -0
  29. package/dist/cli/commands/bypass.d.ts +18 -0
  30. package/dist/cli/commands/bypass.d.ts.map +1 -0
  31. package/dist/cli/commands/bypass.js +87 -0
  32. package/dist/cli/commands/bypass.js.map +1 -0
  33. package/dist/cli/commands/claudemd.d.ts +60 -0
  34. package/dist/cli/commands/claudemd.d.ts.map +1 -1
  35. package/dist/cli/commands/claudemd.js +174 -37
  36. package/dist/cli/commands/claudemd.js.map +1 -1
  37. package/dist/cli/commands/config.d.ts.map +1 -1
  38. package/dist/cli/commands/config.js +94 -1
  39. package/dist/cli/commands/config.js.map +1 -1
  40. package/dist/cli/commands/daemon.d.ts +39 -0
  41. package/dist/cli/commands/daemon.d.ts.map +1 -1
  42. package/dist/cli/commands/daemon.js +167 -20
  43. package/dist/cli/commands/daemon.js.map +1 -1
  44. package/dist/cli/commands/decisions.d.ts +129 -0
  45. package/dist/cli/commands/decisions.d.ts.map +1 -0
  46. package/dist/cli/commands/decisions.js +669 -0
  47. package/dist/cli/commands/decisions.js.map +1 -0
  48. package/dist/cli/commands/doctor.d.ts +29 -0
  49. package/dist/cli/commands/doctor.d.ts.map +1 -0
  50. package/dist/cli/commands/doctor.js +124 -0
  51. package/dist/cli/commands/doctor.js.map +1 -0
  52. package/dist/cli/commands/entropy.d.ts +35 -0
  53. package/dist/cli/commands/entropy.d.ts.map +1 -0
  54. package/dist/cli/commands/entropy.js +121 -0
  55. package/dist/cli/commands/entropy.js.map +1 -0
  56. package/dist/cli/commands/executions.d.ts +1 -0
  57. package/dist/cli/commands/executions.d.ts.map +1 -1
  58. package/dist/cli/commands/executions.js +10 -1
  59. package/dist/cli/commands/executions.js.map +1 -1
  60. package/dist/cli/commands/fix.d.ts +31 -0
  61. package/dist/cli/commands/fix.d.ts.map +1 -0
  62. package/dist/cli/commands/fix.js +108 -0
  63. package/dist/cli/commands/fix.js.map +1 -0
  64. package/dist/cli/commands/governance.d.ts +21 -0
  65. package/dist/cli/commands/governance.d.ts.map +1 -0
  66. package/dist/cli/commands/governance.js +60 -0
  67. package/dist/cli/commands/governance.js.map +1 -0
  68. package/dist/cli/commands/init.d.ts +27 -0
  69. package/dist/cli/commands/init.d.ts.map +1 -1
  70. package/dist/cli/commands/init.js +158 -146
  71. package/dist/cli/commands/init.js.map +1 -1
  72. package/dist/cli/commands/insights-goal-check.d.ts +50 -0
  73. package/dist/cli/commands/insights-goal-check.d.ts.map +1 -0
  74. package/dist/cli/commands/insights-goal-check.js +318 -0
  75. package/dist/cli/commands/insights-goal-check.js.map +1 -0
  76. package/dist/cli/commands/insights.d.ts +15 -0
  77. package/dist/cli/commands/insights.d.ts.map +1 -0
  78. package/dist/cli/commands/insights.js +127 -0
  79. package/dist/cli/commands/insights.js.map +1 -0
  80. package/dist/cli/commands/knowledge.d.ts +66 -0
  81. package/dist/cli/commands/knowledge.d.ts.map +1 -0
  82. package/dist/cli/commands/knowledge.js +897 -0
  83. package/dist/cli/commands/knowledge.js.map +1 -0
  84. package/dist/cli/commands/mcp.d.ts +0 -12
  85. package/dist/cli/commands/mcp.d.ts.map +1 -1
  86. package/dist/cli/commands/mcp.js +11 -5
  87. package/dist/cli/commands/mcp.js.map +1 -1
  88. package/dist/cli/commands/menu.d.ts.map +1 -1
  89. package/dist/cli/commands/menu.js +10 -184
  90. package/dist/cli/commands/menu.js.map +1 -1
  91. package/dist/cli/commands/project.d.ts +98 -0
  92. package/dist/cli/commands/project.d.ts.map +1 -0
  93. package/dist/cli/commands/project.js +382 -0
  94. package/dist/cli/commands/project.js.map +1 -0
  95. package/dist/cli/commands/skills.d.ts.map +1 -1
  96. package/dist/cli/commands/skills.js +14 -128
  97. package/dist/cli/commands/skills.js.map +1 -1
  98. package/dist/cli/commands/spec.d.ts +40 -0
  99. package/dist/cli/commands/spec.d.ts.map +1 -0
  100. package/dist/cli/commands/spec.js +49 -0
  101. package/dist/cli/commands/spec.js.map +1 -0
  102. package/dist/cli/commands/stats.d.ts.map +1 -1
  103. package/dist/cli/commands/stats.js +3 -2
  104. package/dist/cli/commands/stats.js.map +1 -1
  105. package/dist/cli/commands/status.d.ts.map +1 -1
  106. package/dist/cli/commands/status.js +17 -2
  107. package/dist/cli/commands/status.js.map +1 -1
  108. package/dist/cli/commands/trace.d.ts.map +1 -1
  109. package/dist/cli/commands/trace.js +4 -9
  110. package/dist/cli/commands/trace.js.map +1 -1
  111. package/dist/cli/commands/violations.d.ts +14 -0
  112. package/dist/cli/commands/violations.d.ts.map +1 -0
  113. package/dist/cli/commands/violations.js +43 -0
  114. package/dist/cli/commands/violations.js.map +1 -0
  115. package/dist/cli/index.js +26 -0
  116. package/dist/cli/index.js.map +1 -1
  117. package/dist/cli/init/hook-manager.d.ts +1 -1
  118. package/dist/cli/init/hook-manager.d.ts.map +1 -1
  119. package/dist/cli/init/hook-manager.js +6 -0
  120. package/dist/cli/init/hook-manager.js.map +1 -1
  121. package/dist/cli/utils/resolve-session.d.ts +32 -0
  122. package/dist/cli/utils/resolve-session.d.ts.map +1 -0
  123. package/dist/cli/utils/resolve-session.js +39 -0
  124. package/dist/cli/utils/resolve-session.js.map +1 -0
  125. package/dist/core/config.d.ts +4 -1
  126. package/dist/core/config.d.ts.map +1 -1
  127. package/dist/core/config.js +11 -23
  128. package/dist/core/config.js.map +1 -1
  129. package/dist/core/constants.d.ts +14 -13
  130. package/dist/core/constants.d.ts.map +1 -1
  131. package/dist/core/constants.js +20 -13
  132. package/dist/core/constants.js.map +1 -1
  133. package/dist/core/diagnostics/checks.d.ts +151 -0
  134. package/dist/core/diagnostics/checks.d.ts.map +1 -0
  135. package/dist/core/diagnostics/checks.js +765 -0
  136. package/dist/core/diagnostics/checks.js.map +1 -0
  137. package/dist/core/diagnostics/daemon-status.d.ts +77 -0
  138. package/dist/core/diagnostics/daemon-status.d.ts.map +1 -0
  139. package/dist/core/diagnostics/daemon-status.js +113 -0
  140. package/dist/core/diagnostics/daemon-status.js.map +1 -0
  141. package/dist/core/diagnostics/entropy-checks.d.ts +82 -0
  142. package/dist/core/diagnostics/entropy-checks.d.ts.map +1 -0
  143. package/dist/core/diagnostics/entropy-checks.js +395 -0
  144. package/dist/core/diagnostics/entropy-checks.js.map +1 -0
  145. package/dist/core/diagnostics/fix-runner.d.ts +54 -0
  146. package/dist/core/diagnostics/fix-runner.d.ts.map +1 -0
  147. package/dist/core/diagnostics/fix-runner.js +90 -0
  148. package/dist/core/diagnostics/fix-runner.js.map +1 -0
  149. package/dist/core/diagnostics/knip-runner.d.ts +49 -0
  150. package/dist/core/diagnostics/knip-runner.d.ts.map +1 -0
  151. package/dist/core/diagnostics/knip-runner.js +100 -0
  152. package/dist/core/diagnostics/knip-runner.js.map +1 -0
  153. package/dist/core/diagnostics/markers.d.ts +96 -0
  154. package/dist/core/diagnostics/markers.d.ts.map +1 -0
  155. package/dist/core/diagnostics/markers.js +153 -0
  156. package/dist/core/diagnostics/markers.js.map +1 -0
  157. package/dist/core/governance/global-inject.d.ts +60 -0
  158. package/dist/core/governance/global-inject.d.ts.map +1 -0
  159. package/dist/core/governance/global-inject.js +129 -0
  160. package/dist/core/governance/global-inject.js.map +1 -0
  161. package/dist/core/queue/index.d.ts +16 -3
  162. package/dist/core/queue/index.d.ts.map +1 -1
  163. package/dist/core/queue/index.js +14 -3
  164. package/dist/core/queue/index.js.map +1 -1
  165. package/dist/core/storage/base.d.ts +158 -0
  166. package/dist/core/storage/base.d.ts.map +1 -1
  167. package/dist/core/storage/base.js +570 -0
  168. package/dist/core/storage/base.js.map +1 -1
  169. package/dist/core/storage/codec/tool-input-codec.d.ts +93 -0
  170. package/dist/core/storage/codec/tool-input-codec.d.ts.map +1 -0
  171. package/dist/core/storage/codec/tool-input-codec.js +159 -0
  172. package/dist/core/storage/codec/tool-input-codec.js.map +1 -0
  173. package/dist/core/storage/decisions.d.ts +362 -0
  174. package/dist/core/storage/decisions.d.ts.map +1 -0
  175. package/dist/core/storage/decisions.js +502 -0
  176. package/dist/core/storage/decisions.js.map +1 -0
  177. package/dist/core/storage/events.d.ts +112 -8
  178. package/dist/core/storage/events.d.ts.map +1 -1
  179. package/dist/core/storage/events.js +390 -39
  180. package/dist/core/storage/events.js.map +1 -1
  181. package/dist/core/storage/feedback.d.ts +131 -0
  182. package/dist/core/storage/feedback.d.ts.map +1 -0
  183. package/dist/core/storage/feedback.js +187 -0
  184. package/dist/core/storage/feedback.js.map +1 -0
  185. package/dist/core/storage/forge-config.d.ts +40 -0
  186. package/dist/core/storage/forge-config.d.ts.map +1 -0
  187. package/dist/core/storage/forge-config.js +65 -0
  188. package/dist/core/storage/forge-config.js.map +1 -0
  189. package/dist/core/storage/injections.d.ts +28 -0
  190. package/dist/core/storage/injections.d.ts.map +1 -1
  191. package/dist/core/storage/injections.js +62 -5
  192. package/dist/core/storage/injections.js.map +1 -1
  193. package/dist/core/storage/knowledge.d.ts +106 -0
  194. package/dist/core/storage/knowledge.d.ts.map +1 -0
  195. package/dist/core/storage/knowledge.js +202 -0
  196. package/dist/core/storage/knowledge.js.map +1 -0
  197. package/dist/core/storage/maintenance.d.ts +36 -9
  198. package/dist/core/storage/maintenance.d.ts.map +1 -1
  199. package/dist/core/storage/maintenance.js +56 -24
  200. package/dist/core/storage/maintenance.js.map +1 -1
  201. package/dist/core/storage/pipeline-rollup.d.ts +117 -0
  202. package/dist/core/storage/pipeline-rollup.d.ts.map +1 -0
  203. package/dist/core/storage/pipeline-rollup.js +471 -0
  204. package/dist/core/storage/pipeline-rollup.js.map +1 -0
  205. package/dist/core/storage/routing.d.ts +16 -3
  206. package/dist/core/storage/routing.d.ts.map +1 -1
  207. package/dist/core/storage/routing.js +39 -8
  208. package/dist/core/storage/routing.js.map +1 -1
  209. package/dist/core/storage/rows.d.ts +50 -7
  210. package/dist/core/storage/rows.d.ts.map +1 -1
  211. package/dist/core/storage/schema.sql +302 -23
  212. package/dist/core/storage/sessions.d.ts +136 -0
  213. package/dist/core/storage/sessions.d.ts.map +1 -1
  214. package/dist/core/storage/sessions.js +351 -15
  215. package/dist/core/storage/sessions.js.map +1 -1
  216. package/dist/core/storage/skills.d.ts +1 -0
  217. package/dist/core/storage/skills.d.ts.map +1 -1
  218. package/dist/core/storage/skills.js +21 -6
  219. package/dist/core/storage/skills.js.map +1 -1
  220. package/dist/core/storage/sqlite.d.ts +253 -20
  221. package/dist/core/storage/sqlite.d.ts.map +1 -1
  222. package/dist/core/storage/sqlite.js +425 -16
  223. package/dist/core/storage/sqlite.js.map +1 -1
  224. package/dist/core/storage/tasks.d.ts +474 -2
  225. package/dist/core/storage/tasks.d.ts.map +1 -1
  226. package/dist/core/storage/tasks.js +1213 -18
  227. package/dist/core/storage/tasks.js.map +1 -1
  228. package/dist/core/storage/tool-intercepts.d.ts +69 -0
  229. package/dist/core/storage/tool-intercepts.d.ts.map +1 -0
  230. package/dist/core/storage/tool-intercepts.js +116 -0
  231. package/dist/core/storage/tool-intercepts.js.map +1 -0
  232. package/dist/core/storage/workflow-recommendations.d.ts +124 -0
  233. package/dist/core/storage/workflow-recommendations.d.ts.map +1 -0
  234. package/dist/core/storage/workflow-recommendations.js +274 -0
  235. package/dist/core/storage/workflow-recommendations.js.map +1 -0
  236. package/dist/core/types.d.ts +112 -17
  237. package/dist/core/types.d.ts.map +1 -1
  238. package/dist/core/types.js +12 -0
  239. package/dist/core/types.js.map +1 -1
  240. package/dist/core/utils/backup.d.ts +81 -0
  241. package/dist/core/utils/backup.d.ts.map +1 -0
  242. package/dist/core/utils/backup.js +98 -0
  243. package/dist/core/utils/backup.js.map +1 -0
  244. package/dist/core/utils/binary-paths.d.ts +92 -0
  245. package/dist/core/utils/binary-paths.d.ts.map +1 -0
  246. package/dist/core/utils/binary-paths.js +166 -0
  247. package/dist/core/utils/binary-paths.js.map +1 -0
  248. package/dist/core/utils/bypass-token.d.ts +75 -0
  249. package/dist/core/utils/bypass-token.d.ts.map +1 -0
  250. package/dist/core/utils/bypass-token.js +133 -0
  251. package/dist/core/utils/bypass-token.js.map +1 -0
  252. package/dist/core/utils/cc-builtin-agents.d.ts +3 -0
  253. package/dist/core/utils/cc-builtin-agents.d.ts.map +1 -0
  254. package/dist/core/utils/cc-builtin-agents.js +29 -0
  255. package/dist/core/utils/cc-builtin-agents.js.map +1 -0
  256. package/dist/core/utils/claude-cli-spawn.d.ts +106 -0
  257. package/dist/core/utils/claude-cli-spawn.d.ts.map +1 -0
  258. package/dist/core/utils/claude-cli-spawn.js +219 -0
  259. package/dist/core/utils/claude-cli-spawn.js.map +1 -0
  260. package/dist/core/utils/forge-resume-block.d.ts.map +1 -1
  261. package/dist/core/utils/forge-resume-block.js +3 -2
  262. package/dist/core/utils/forge-resume-block.js.map +1 -1
  263. package/dist/core/utils/logger.d.ts +15 -3
  264. package/dist/core/utils/logger.d.ts.map +1 -1
  265. package/dist/core/utils/logger.js +20 -2
  266. package/dist/core/utils/logger.js.map +1 -1
  267. package/dist/core/utils/noise-prompt.d.ts +97 -0
  268. package/dist/core/utils/noise-prompt.d.ts.map +1 -0
  269. package/dist/core/utils/noise-prompt.js +127 -0
  270. package/dist/core/utils/noise-prompt.js.map +1 -0
  271. package/dist/core/utils/path.d.ts +0 -4
  272. package/dist/core/utils/path.d.ts.map +1 -1
  273. package/dist/core/utils/path.js +0 -7
  274. package/dist/core/utils/path.js.map +1 -1
  275. package/dist/core/utils/time.d.ts +41 -0
  276. package/dist/core/utils/time.d.ts.map +1 -1
  277. package/dist/core/utils/time.js +114 -0
  278. package/dist/core/utils/time.js.map +1 -1
  279. package/dist/daemon/agent-sync.d.ts +24 -0
  280. package/dist/daemon/agent-sync.d.ts.map +1 -0
  281. package/dist/daemon/agent-sync.js +114 -0
  282. package/dist/daemon/agent-sync.js.map +1 -0
  283. package/dist/daemon/config-store.d.ts +55 -0
  284. package/dist/daemon/config-store.d.ts.map +1 -0
  285. package/dist/daemon/config-store.js +137 -0
  286. package/dist/daemon/config-store.js.map +1 -0
  287. package/dist/daemon/event-parser.d.ts +22 -0
  288. package/dist/daemon/event-parser.d.ts.map +1 -1
  289. package/dist/daemon/event-parser.js +49 -3
  290. package/dist/daemon/event-parser.js.map +1 -1
  291. package/dist/daemon/handlers/history-exporter.d.ts.map +1 -1
  292. package/dist/daemon/handlers/history-exporter.js +9 -8
  293. package/dist/daemon/handlers/history-exporter.js.map +1 -1
  294. package/dist/daemon/handlers/post-tool-use.d.ts +58 -4
  295. package/dist/daemon/handlers/post-tool-use.d.ts.map +1 -1
  296. package/dist/daemon/handlers/post-tool-use.js +261 -8
  297. package/dist/daemon/handlers/post-tool-use.js.map +1 -1
  298. package/dist/daemon/handlers/pre-tool-use.d.ts +156 -0
  299. package/dist/daemon/handlers/pre-tool-use.d.ts.map +1 -0
  300. package/dist/daemon/handlers/pre-tool-use.js +585 -0
  301. package/dist/daemon/handlers/pre-tool-use.js.map +1 -0
  302. package/dist/daemon/handlers/stop.d.ts +35 -7
  303. package/dist/daemon/handlers/stop.d.ts.map +1 -1
  304. package/dist/daemon/handlers/stop.js +157 -8
  305. package/dist/daemon/handlers/stop.js.map +1 -1
  306. package/dist/daemon/handlers/user-prompt.d.ts +36 -14
  307. package/dist/daemon/handlers/user-prompt.d.ts.map +1 -1
  308. package/dist/daemon/handlers/user-prompt.js +135 -48
  309. package/dist/daemon/handlers/user-prompt.js.map +1 -1
  310. package/dist/daemon/hook-sync.d.ts.map +1 -1
  311. package/dist/daemon/hook-sync.js +2 -1
  312. package/dist/daemon/hook-sync.js.map +1 -1
  313. package/dist/daemon/index.d.ts.map +1 -1
  314. package/dist/daemon/index.js +471 -43
  315. package/dist/daemon/index.js.map +1 -1
  316. package/dist/daemon/lifecycle.d.ts +48 -1
  317. package/dist/daemon/lifecycle.d.ts.map +1 -1
  318. package/dist/daemon/lifecycle.js +98 -2
  319. package/dist/daemon/lifecycle.js.map +1 -1
  320. package/dist/daemon/router.d.ts +4 -1
  321. package/dist/daemon/router.d.ts.map +1 -1
  322. package/dist/daemon/router.js +4 -2
  323. package/dist/daemon/router.js.map +1 -1
  324. package/dist/daemon/rules/defaults.d.ts +20 -0
  325. package/dist/daemon/rules/defaults.d.ts.map +1 -0
  326. package/dist/daemon/rules/defaults.js +692 -0
  327. package/dist/daemon/rules/defaults.js.map +1 -0
  328. package/dist/daemon/rules/registry.d.ts +47 -0
  329. package/dist/daemon/rules/registry.d.ts.map +1 -0
  330. package/dist/daemon/rules/registry.js +84 -0
  331. package/dist/daemon/rules/registry.js.map +1 -0
  332. package/dist/daemon/rules/types.d.ts +170 -0
  333. package/dist/daemon/rules/types.d.ts.map +1 -0
  334. package/dist/daemon/rules/types.js +15 -0
  335. package/dist/daemon/rules/types.js.map +1 -0
  336. package/dist/daemon/rules/whitelist.d.ts +101 -0
  337. package/dist/daemon/rules/whitelist.d.ts.map +1 -0
  338. package/dist/daemon/rules/whitelist.js +210 -0
  339. package/dist/daemon/rules/whitelist.js.map +1 -0
  340. package/dist/daemon/rules/workflow-defaults.d.ts +52 -0
  341. package/dist/daemon/rules/workflow-defaults.d.ts.map +1 -0
  342. package/dist/daemon/rules/workflow-defaults.js +521 -0
  343. package/dist/daemon/rules/workflow-defaults.js.map +1 -0
  344. package/dist/daemon/server.d.ts +11 -1
  345. package/dist/daemon/server.d.ts.map +1 -1
  346. package/dist/daemon/server.js +7 -1
  347. package/dist/daemon/server.js.map +1 -1
  348. package/dist/daemon/services/context-injector.d.ts +34 -0
  349. package/dist/daemon/services/context-injector.d.ts.map +1 -0
  350. package/dist/daemon/services/context-injector.js +61 -0
  351. package/dist/daemon/services/context-injector.js.map +1 -0
  352. package/dist/daemon/services/decision-hint.d.ts +203 -0
  353. package/dist/daemon/services/decision-hint.d.ts.map +1 -0
  354. package/dist/daemon/services/decision-hint.js +487 -0
  355. package/dist/daemon/services/decision-hint.js.map +1 -0
  356. package/dist/daemon/services/event-ttl-sweep.d.ts +86 -0
  357. package/dist/daemon/services/event-ttl-sweep.d.ts.map +1 -0
  358. package/dist/daemon/services/event-ttl-sweep.js +123 -0
  359. package/dist/daemon/services/event-ttl-sweep.js.map +1 -0
  360. package/dist/daemon/services/experience-extractor.d.ts +67 -0
  361. package/dist/daemon/services/experience-extractor.d.ts.map +1 -0
  362. package/dist/daemon/services/experience-extractor.js +323 -0
  363. package/dist/daemon/services/experience-extractor.js.map +1 -0
  364. package/dist/daemon/services/feedback-aggregator.d.ts +179 -0
  365. package/dist/daemon/services/feedback-aggregator.d.ts.map +1 -0
  366. package/dist/daemon/services/feedback-aggregator.js +455 -0
  367. package/dist/daemon/services/feedback-aggregator.js.map +1 -0
  368. package/dist/daemon/services/heartbeat-writer.d.ts +55 -0
  369. package/dist/daemon/services/heartbeat-writer.d.ts.map +1 -0
  370. package/dist/daemon/services/heartbeat-writer.js +111 -0
  371. package/dist/daemon/services/heartbeat-writer.js.map +1 -0
  372. package/dist/daemon/services/idle-session-sweeper.d.ts +61 -0
  373. package/dist/daemon/services/idle-session-sweeper.d.ts.map +1 -0
  374. package/dist/daemon/services/idle-session-sweeper.js +94 -0
  375. package/dist/daemon/services/idle-session-sweeper.js.map +1 -0
  376. package/dist/daemon/services/idle-task-budget.d.ts +50 -0
  377. package/dist/daemon/services/idle-task-budget.d.ts.map +1 -0
  378. package/dist/daemon/services/idle-task-budget.js +72 -0
  379. package/dist/daemon/services/idle-task-budget.js.map +1 -0
  380. package/dist/daemon/services/intercept-revive.d.ts +60 -0
  381. package/dist/daemon/services/intercept-revive.d.ts.map +1 -0
  382. package/dist/daemon/services/intercept-revive.js +86 -0
  383. package/dist/daemon/services/intercept-revive.js.map +1 -0
  384. package/dist/daemon/services/intercept-rollback-guard.d.ts +105 -0
  385. package/dist/daemon/services/intercept-rollback-guard.d.ts.map +1 -0
  386. package/dist/daemon/services/intercept-rollback-guard.js +152 -0
  387. package/dist/daemon/services/intercept-rollback-guard.js.map +1 -0
  388. package/dist/daemon/services/intercept-timeout-sweeper.d.ts +58 -0
  389. package/dist/daemon/services/intercept-timeout-sweeper.d.ts.map +1 -0
  390. package/dist/daemon/services/intercept-timeout-sweeper.js +83 -0
  391. package/dist/daemon/services/intercept-timeout-sweeper.js.map +1 -0
  392. package/dist/daemon/services/kb-injector.d.ts +57 -0
  393. package/dist/daemon/services/kb-injector.d.ts.map +1 -0
  394. package/dist/daemon/services/kb-injector.js +140 -0
  395. package/dist/daemon/services/kb-injector.js.map +1 -0
  396. package/dist/daemon/services/outcome-classification-service.d.ts +49 -0
  397. package/dist/daemon/services/outcome-classification-service.d.ts.map +1 -0
  398. package/dist/daemon/services/outcome-classification-service.js +214 -0
  399. package/dist/daemon/services/outcome-classification-service.js.map +1 -0
  400. package/dist/daemon/services/outcome-classifier.d.ts +136 -0
  401. package/dist/daemon/services/outcome-classifier.d.ts.map +1 -0
  402. package/dist/daemon/services/outcome-classifier.js +178 -0
  403. package/dist/daemon/services/outcome-classifier.js.map +1 -0
  404. package/dist/daemon/services/outcome-nudge.d.ts +107 -0
  405. package/dist/daemon/services/outcome-nudge.d.ts.map +1 -0
  406. package/dist/daemon/services/outcome-nudge.js +242 -0
  407. package/dist/daemon/services/outcome-nudge.js.map +1 -0
  408. package/dist/daemon/services/spec-approval.d.ts +127 -0
  409. package/dist/daemon/services/spec-approval.d.ts.map +1 -0
  410. package/dist/daemon/services/spec-approval.js +216 -0
  411. package/dist/daemon/services/spec-approval.js.map +1 -0
  412. package/dist/daemon/services/spec-gate.d.ts +54 -0
  413. package/dist/daemon/services/spec-gate.d.ts.map +1 -0
  414. package/dist/daemon/services/spec-gate.js +113 -0
  415. package/dist/daemon/services/spec-gate.js.map +1 -0
  416. package/dist/daemon/services/task-boundary-classifier.d.ts +78 -0
  417. package/dist/daemon/services/task-boundary-classifier.d.ts.map +1 -0
  418. package/dist/daemon/services/task-boundary-classifier.js +202 -0
  419. package/dist/daemon/services/task-boundary-classifier.js.map +1 -0
  420. package/dist/daemon/services/task-segmenter.d.ts +219 -1
  421. package/dist/daemon/services/task-segmenter.d.ts.map +1 -1
  422. package/dist/daemon/services/task-segmenter.js +481 -17
  423. package/dist/daemon/services/task-segmenter.js.map +1 -1
  424. package/dist/daemon/services/violation-reporter.d.ts +130 -0
  425. package/dist/daemon/services/violation-reporter.d.ts.map +1 -0
  426. package/dist/daemon/services/violation-reporter.js +339 -0
  427. package/dist/daemon/services/violation-reporter.js.map +1 -0
  428. package/dist/daemon/skill-sync.d.ts +7 -2
  429. package/dist/daemon/skill-sync.d.ts.map +1 -1
  430. package/dist/daemon/skill-sync.js +114 -9
  431. package/dist/daemon/skill-sync.js.map +1 -1
  432. package/dist/daemon/templates/agents/claudemd-writer.md +101 -0
  433. package/dist/daemon/templates/agents/coder.md +105 -0
  434. package/dist/daemon/templates/agents/decision-maker.md +460 -0
  435. package/dist/daemon/templates/agents/doc-reviewer.md +115 -0
  436. package/dist/daemon/templates/agents/harness-debug-full.md +114 -0
  437. package/dist/daemon/templates/agents/harness-hotfix.md +99 -0
  438. package/dist/daemon/templates/agents/hybrid-feature-with-safety.md +104 -0
  439. package/dist/daemon/templates/agents/knowledge-builder.md +119 -0
  440. package/dist/daemon/templates/agents/patch-applier.md +144 -0
  441. package/dist/daemon/templates/agents/planner.md +165 -0
  442. package/dist/daemon/templates/agents/refactor-specialist.md +98 -0
  443. package/dist/daemon/templates/agents/skill-distiller.md +113 -0
  444. package/dist/daemon/templates/agents/task-boundary-classifier.md +64 -0
  445. package/dist/daemon/templates/agents/verify-agent.md +136 -0
  446. package/dist/daemon/utils/inject-block.d.ts +39 -0
  447. package/dist/daemon/utils/inject-block.d.ts.map +1 -0
  448. package/dist/daemon/utils/inject-block.js +25 -0
  449. package/dist/daemon/utils/inject-block.js.map +1 -0
  450. package/dist/hooks/hook-lib.sh +8 -0
  451. package/dist/hooks/notification.sh +19 -8
  452. package/dist/hooks/post-tool-use.sh +41 -23
  453. package/dist/hooks/pre-tool-use.sh +54 -23
  454. package/dist/hooks/session-start.sh +68 -0
  455. package/dist/hooks/stop.sh +24 -10
  456. package/dist/hooks/user-prompt-submit.sh +37 -21
  457. package/dist/knowledge/adapters/go-adapter.d.ts +65 -0
  458. package/dist/knowledge/adapters/go-adapter.d.ts.map +1 -0
  459. package/dist/knowledge/adapters/go-adapter.js +294 -0
  460. package/dist/knowledge/adapters/go-adapter.js.map +1 -0
  461. package/dist/knowledge/adapters/index.d.ts +41 -0
  462. package/dist/knowledge/adapters/index.d.ts.map +1 -0
  463. package/dist/knowledge/adapters/index.js +71 -0
  464. package/dist/knowledge/adapters/index.js.map +1 -0
  465. package/dist/knowledge/adapters/java-adapter.d.ts +66 -0
  466. package/dist/knowledge/adapters/java-adapter.d.ts.map +1 -0
  467. package/dist/knowledge/adapters/java-adapter.js +260 -0
  468. package/dist/knowledge/adapters/java-adapter.js.map +1 -0
  469. package/dist/knowledge/adapters/js-vue-adapter.d.ts +56 -0
  470. package/dist/knowledge/adapters/js-vue-adapter.d.ts.map +1 -0
  471. package/dist/knowledge/adapters/js-vue-adapter.js +203 -0
  472. package/dist/knowledge/adapters/js-vue-adapter.js.map +1 -0
  473. package/dist/knowledge/adapters/kotlin-adapter.d.ts +55 -0
  474. package/dist/knowledge/adapters/kotlin-adapter.d.ts.map +1 -0
  475. package/dist/knowledge/adapters/kotlin-adapter.js +209 -0
  476. package/dist/knowledge/adapters/kotlin-adapter.js.map +1 -0
  477. package/dist/knowledge/adapters/monorepo-adapter.d.ts +77 -0
  478. package/dist/knowledge/adapters/monorepo-adapter.d.ts.map +1 -0
  479. package/dist/knowledge/adapters/monorepo-adapter.js +170 -0
  480. package/dist/knowledge/adapters/monorepo-adapter.js.map +1 -0
  481. package/dist/knowledge/adapters/python-adapter.d.ts +89 -0
  482. package/dist/knowledge/adapters/python-adapter.d.ts.map +1 -0
  483. package/dist/knowledge/adapters/python-adapter.js +358 -0
  484. package/dist/knowledge/adapters/python-adapter.js.map +1 -0
  485. package/dist/knowledge/adapters/rust-adapter.d.ts +73 -0
  486. package/dist/knowledge/adapters/rust-adapter.d.ts.map +1 -0
  487. package/dist/knowledge/adapters/rust-adapter.js +329 -0
  488. package/dist/knowledge/adapters/rust-adapter.js.map +1 -0
  489. package/dist/knowledge/adapters/types.d.ts +99 -0
  490. package/dist/knowledge/adapters/types.d.ts.map +1 -0
  491. package/dist/knowledge/adapters/types.js +17 -0
  492. package/dist/knowledge/adapters/types.js.map +1 -0
  493. package/dist/knowledge/adapters/typescript-adapter.d.ts +57 -0
  494. package/dist/knowledge/adapters/typescript-adapter.d.ts.map +1 -0
  495. package/dist/knowledge/adapters/typescript-adapter.js +171 -0
  496. package/dist/knowledge/adapters/typescript-adapter.js.map +1 -0
  497. package/dist/knowledge/audit-applier.d.ts +70 -0
  498. package/dist/knowledge/audit-applier.d.ts.map +1 -0
  499. package/dist/knowledge/audit-applier.js +251 -0
  500. package/dist/knowledge/audit-applier.js.map +1 -0
  501. package/dist/knowledge/builder.d.ts +261 -0
  502. package/dist/knowledge/builder.d.ts.map +1 -0
  503. package/dist/knowledge/builder.js +937 -0
  504. package/dist/knowledge/builder.js.map +1 -0
  505. package/dist/knowledge/cli-provider.d.ts +151 -0
  506. package/dist/knowledge/cli-provider.d.ts.map +1 -0
  507. package/dist/knowledge/cli-provider.js +313 -0
  508. package/dist/knowledge/cli-provider.js.map +1 -0
  509. package/dist/knowledge/constants.d.ts +73 -0
  510. package/dist/knowledge/constants.d.ts.map +1 -0
  511. package/dist/knowledge/constants.js +93 -0
  512. package/dist/knowledge/constants.js.map +1 -0
  513. package/dist/knowledge/cross-module.d.ts +139 -0
  514. package/dist/knowledge/cross-module.d.ts.map +1 -0
  515. package/dist/knowledge/cross-module.js +370 -0
  516. package/dist/knowledge/cross-module.js.map +1 -0
  517. package/dist/knowledge/git-hooks.d.ts +67 -0
  518. package/dist/knowledge/git-hooks.d.ts.map +1 -0
  519. package/dist/knowledge/git-hooks.js +258 -0
  520. package/dist/knowledge/git-hooks.js.map +1 -0
  521. package/dist/knowledge/module-hash.d.ts +88 -0
  522. package/dist/knowledge/module-hash.d.ts.map +1 -0
  523. package/dist/knowledge/module-hash.js +162 -0
  524. package/dist/knowledge/module-hash.js.map +1 -0
  525. package/dist/knowledge/project-detector.d.ts +101 -0
  526. package/dist/knowledge/project-detector.d.ts.map +1 -0
  527. package/dist/knowledge/project-detector.js +223 -0
  528. package/dist/knowledge/project-detector.js.map +1 -0
  529. package/dist/knowledge/prompt.d.ts +228 -0
  530. package/dist/knowledge/prompt.d.ts.map +1 -0
  531. package/dist/knowledge/prompt.js +404 -0
  532. package/dist/knowledge/prompt.js.map +1 -0
  533. package/dist/knowledge/query.d.ts +105 -0
  534. package/dist/knowledge/query.d.ts.map +1 -0
  535. package/dist/knowledge/query.js +341 -0
  536. package/dist/knowledge/query.js.map +1 -0
  537. package/dist/knowledge/repo-map.d.ts +91 -0
  538. package/dist/knowledge/repo-map.d.ts.map +1 -0
  539. package/dist/knowledge/repo-map.js +408 -0
  540. package/dist/knowledge/repo-map.js.map +1 -0
  541. package/dist/knowledge/tools/index.d.ts +14 -0
  542. package/dist/knowledge/tools/index.d.ts.map +1 -0
  543. package/dist/knowledge/tools/index.js +11 -0
  544. package/dist/knowledge/tools/index.js.map +1 -0
  545. package/dist/knowledge/tools/knowledge-get-page.d.ts +46 -0
  546. package/dist/knowledge/tools/knowledge-get-page.d.ts.map +1 -0
  547. package/dist/knowledge/tools/knowledge-get-page.js +101 -0
  548. package/dist/knowledge/tools/knowledge-get-page.js.map +1 -0
  549. package/dist/knowledge/tools/knowledge-query.d.ts +77 -0
  550. package/dist/knowledge/tools/knowledge-query.d.ts.map +1 -0
  551. package/dist/knowledge/tools/knowledge-query.js +104 -0
  552. package/dist/knowledge/tools/knowledge-query.js.map +1 -0
  553. package/dist/knowledge/tools/repo-map-lookup.d.ts +45 -0
  554. package/dist/knowledge/tools/repo-map-lookup.d.ts.map +1 -0
  555. package/dist/knowledge/tools/repo-map-lookup.js +82 -0
  556. package/dist/knowledge/tools/repo-map-lookup.js.map +1 -0
  557. package/dist/knowledge/types.d.ts +269 -0
  558. package/dist/knowledge/types.d.ts.map +1 -0
  559. package/dist/knowledge/types.js +10 -0
  560. package/dist/knowledge/types.js.map +1 -0
  561. package/dist/knowledge/validator.d.ts +90 -0
  562. package/dist/knowledge/validator.d.ts.map +1 -0
  563. package/dist/knowledge/validator.js +288 -0
  564. package/dist/knowledge/validator.js.map +1 -0
  565. package/dist/mcp/server.d.ts.map +1 -1
  566. package/dist/mcp/server.js +222 -1
  567. package/dist/mcp/server.js.map +1 -1
  568. package/dist/skills/builtin-skills.d.ts +35 -0
  569. package/dist/skills/builtin-skills.d.ts.map +1 -0
  570. package/dist/skills/builtin-skills.js +68 -0
  571. package/dist/skills/builtin-skills.js.map +1 -0
  572. package/dist/skills/distill/attribution.d.ts +59 -0
  573. package/dist/skills/distill/attribution.d.ts.map +1 -0
  574. package/dist/skills/distill/attribution.js +101 -0
  575. package/dist/skills/distill/attribution.js.map +1 -0
  576. package/dist/skills/distill/claude-cli-resolver.d.ts +26 -0
  577. package/dist/skills/distill/claude-cli-resolver.d.ts.map +1 -0
  578. package/dist/skills/distill/claude-cli-resolver.js +115 -0
  579. package/dist/skills/distill/claude-cli-resolver.js.map +1 -0
  580. package/dist/skills/distill/distiller.d.ts +161 -0
  581. package/dist/skills/distill/distiller.d.ts.map +1 -0
  582. package/dist/skills/distill/distiller.js +461 -0
  583. package/dist/skills/distill/distiller.js.map +1 -0
  584. package/dist/skills/distill/index.d.ts +223 -0
  585. package/dist/skills/distill/index.d.ts.map +1 -0
  586. package/dist/skills/distill/index.js +466 -0
  587. package/dist/skills/distill/index.js.map +1 -0
  588. package/dist/skills/distill/project-anchor-guard.d.ts +116 -0
  589. package/dist/skills/distill/project-anchor-guard.d.ts.map +1 -0
  590. package/dist/skills/distill/project-anchor-guard.js +334 -0
  591. package/dist/skills/distill/project-anchor-guard.js.map +1 -0
  592. package/dist/skills/distill/topic-deduper.d.ts +77 -0
  593. package/dist/skills/distill/topic-deduper.d.ts.map +1 -0
  594. package/dist/skills/distill/topic-deduper.js +119 -0
  595. package/dist/skills/distill/topic-deduper.js.map +1 -0
  596. package/dist/skills/distill/upstream-fetcher.d.ts +71 -0
  597. package/dist/skills/distill/upstream-fetcher.d.ts.map +1 -0
  598. package/dist/skills/distill/upstream-fetcher.js +202 -0
  599. package/dist/skills/distill/upstream-fetcher.js.map +1 -0
  600. package/dist/skills/distilled/distilled-api-design.md +491 -0
  601. package/dist/skills/distilled/distilled-architecture-decision.md +173 -0
  602. package/dist/skills/distilled/distilled-creator.md +178 -0
  603. package/dist/skills/distilled/distilled-db-schema-design.md +245 -0
  604. package/dist/skills/distilled/distilled-defi-amm-security.md +293 -0
  605. package/dist/skills/distilled/distilled-executing-plans.md +113 -0
  606. package/dist/skills/distilled/distilled-harness-engineering.md +242 -0
  607. package/dist/skills/distilled/distilled-karpathy-guidelines.md +104 -0
  608. package/dist/skills/distilled/distilled-performance-optimization.md +175 -0
  609. package/dist/skills/distilled/distilled-spec-driven-design.md +193 -0
  610. package/dist/skills/distilled/distilled-systematic-debugging.md +306 -0
  611. package/dist/skills/distilled/distilled-verification-before-completion.md +203 -0
  612. package/dist/skills/keyword-score.d.ts +29 -0
  613. package/dist/skills/keyword-score.d.ts.map +1 -0
  614. package/dist/skills/keyword-score.js +54 -0
  615. package/dist/skills/keyword-score.js.map +1 -0
  616. package/dist/skills/registry.d.ts +64 -20
  617. package/dist/skills/registry.d.ts.map +1 -1
  618. package/dist/skills/registry.js +102 -105
  619. package/dist/skills/registry.js.map +1 -1
  620. package/dist/skills/tools/pipeline-suggest.js +14 -14
  621. package/dist/skills/tools/skill-invoke.d.ts +1 -1
  622. package/dist/skills/tools/skill-invoke.js +1 -1
  623. package/dist/web/routes/agent-content.d.ts +30 -0
  624. package/dist/web/routes/agent-content.d.ts.map +1 -0
  625. package/dist/web/routes/agent-content.js +139 -0
  626. package/dist/web/routes/agent-content.js.map +1 -0
  627. package/dist/web/routes/decisions.d.ts +15 -0
  628. package/dist/web/routes/decisions.d.ts.map +1 -0
  629. package/dist/web/routes/decisions.js +181 -0
  630. package/dist/web/routes/decisions.js.map +1 -0
  631. package/dist/web/routes/diagnostics.d.ts +61 -0
  632. package/dist/web/routes/diagnostics.d.ts.map +1 -0
  633. package/dist/web/routes/diagnostics.js +203 -0
  634. package/dist/web/routes/diagnostics.js.map +1 -0
  635. package/dist/web/routes/events.d.ts.map +1 -1
  636. package/dist/web/routes/events.js +24 -0
  637. package/dist/web/routes/events.js.map +1 -1
  638. package/dist/web/routes/health.d.ts +33 -0
  639. package/dist/web/routes/health.d.ts.map +1 -0
  640. package/dist/web/routes/health.js +37 -0
  641. package/dist/web/routes/health.js.map +1 -0
  642. package/dist/web/routes/insights.d.ts +0 -5
  643. package/dist/web/routes/insights.d.ts.map +1 -1
  644. package/dist/web/routes/insights.js +783 -2
  645. package/dist/web/routes/insights.js.map +1 -1
  646. package/dist/web/routes/knowledge.d.ts +16 -0
  647. package/dist/web/routes/knowledge.d.ts.map +1 -0
  648. package/dist/web/routes/knowledge.js +661 -0
  649. package/dist/web/routes/knowledge.js.map +1 -0
  650. package/dist/web/routes/patch.d.ts +60 -1
  651. package/dist/web/routes/patch.d.ts.map +1 -1
  652. package/dist/web/routes/patch.js +170 -64
  653. package/dist/web/routes/patch.js.map +1 -1
  654. package/dist/web/routes/pipeline.d.ts +37 -0
  655. package/dist/web/routes/pipeline.d.ts.map +1 -0
  656. package/dist/web/routes/pipeline.js +149 -0
  657. package/dist/web/routes/pipeline.js.map +1 -0
  658. package/dist/web/routes/rules.d.ts.map +1 -1
  659. package/dist/web/routes/rules.js +6 -1
  660. package/dist/web/routes/rules.js.map +1 -1
  661. package/dist/web/routes/sessions.d.ts.map +1 -1
  662. package/dist/web/routes/sessions.js +9 -1
  663. package/dist/web/routes/sessions.js.map +1 -1
  664. package/dist/web/routes/skill-content.d.ts +30 -0
  665. package/dist/web/routes/skill-content.d.ts.map +1 -0
  666. package/dist/web/routes/skill-content.js +117 -0
  667. package/dist/web/routes/skill-content.js.map +1 -0
  668. package/dist/web/routes/skills-distill.d.ts +29 -0
  669. package/dist/web/routes/skills-distill.d.ts.map +1 -0
  670. package/dist/web/routes/skills-distill.js +552 -0
  671. package/dist/web/routes/skills-distill.js.map +1 -0
  672. package/dist/web/routes/skills.js +7 -7
  673. package/dist/web/routes/skills.js.map +1 -1
  674. package/dist/web/routes/task-timeline.d.ts +102 -0
  675. package/dist/web/routes/task-timeline.d.ts.map +1 -0
  676. package/dist/web/routes/task-timeline.js +274 -0
  677. package/dist/web/routes/task-timeline.js.map +1 -0
  678. package/dist/web/routes/tasks.d.ts.map +1 -1
  679. package/dist/web/routes/tasks.js +355 -8
  680. package/dist/web/routes/tasks.js.map +1 -1
  681. package/dist/web/routes/trace.d.ts.map +1 -1
  682. package/dist/web/routes/trace.js +3 -2
  683. package/dist/web/routes/trace.js.map +1 -1
  684. package/dist/web/routes/types.d.ts +0 -4
  685. package/dist/web/routes/types.d.ts.map +1 -1
  686. package/dist/web/routes/types.js +1 -1
  687. package/dist/web/routes/types.js.map +1 -1
  688. package/dist/web/routes/violations.d.ts +14 -0
  689. package/dist/web/routes/violations.d.ts.map +1 -0
  690. package/dist/web/routes/violations.js +111 -0
  691. package/dist/web/routes/violations.js.map +1 -0
  692. package/dist/web/server.d.ts.map +1 -1
  693. package/dist/web/server.js +79 -19
  694. package/dist/web/server.js.map +1 -1
  695. package/dist/web/services/build-manager.d.ts +72 -0
  696. package/dist/web/services/build-manager.d.ts.map +1 -0
  697. package/dist/web/services/build-manager.js +189 -0
  698. package/dist/web/services/build-manager.js.map +1 -0
  699. package/dist/web/services/distill-manager.d.ts +125 -0
  700. package/dist/web/services/distill-manager.d.ts.map +1 -0
  701. package/dist/web/services/distill-manager.js +308 -0
  702. package/dist/web/services/distill-manager.js.map +1 -0
  703. package/dist/web/static/assets/AgentContentPage-DkeRNxok.js +2 -0
  704. package/dist/web/static/assets/AgentContentPage-DkeRNxok.js.map +1 -0
  705. package/dist/web/static/assets/AgentDelegationTable-ByBa0x1l.js +2 -0
  706. package/dist/web/static/assets/AgentDelegationTable-ByBa0x1l.js.map +1 -0
  707. package/dist/web/static/assets/ContextInsightsPage-oUk7_I8u.js +3 -0
  708. package/dist/web/static/assets/ContextInsightsPage-oUk7_I8u.js.map +1 -0
  709. package/dist/web/static/assets/DaemonHealthPage-DG2fyOP7.js +2 -0
  710. package/dist/web/static/assets/DaemonHealthPage-DG2fyOP7.js.map +1 -0
  711. package/dist/web/static/assets/DecisionsPage-CMAPEnKb.js +2 -0
  712. package/dist/web/static/assets/DecisionsPage-CMAPEnKb.js.map +1 -0
  713. package/dist/web/static/assets/DiagnosticsPage-DQd-Zm4r.js +2 -0
  714. package/dist/web/static/assets/DiagnosticsPage-DQd-Zm4r.js.map +1 -0
  715. package/dist/web/static/assets/DriftTab-DqpepOhI.js +2 -0
  716. package/dist/web/static/assets/DriftTab-DqpepOhI.js.map +1 -0
  717. package/dist/web/static/assets/HealthHomePage-CN6zNIie.js +3 -0
  718. package/dist/web/static/assets/HealthHomePage-CN6zNIie.js.map +1 -0
  719. package/dist/web/static/assets/KbHitRateTable-ByEIWujF.js +2 -0
  720. package/dist/web/static/assets/KbHitRateTable-ByEIWujF.js.map +1 -0
  721. package/dist/web/static/assets/MarkdownRenderer-DZmTl-8J.js +3 -0
  722. package/dist/web/static/assets/MarkdownRenderer-DZmTl-8J.js.map +1 -0
  723. package/dist/web/static/assets/NotFound-BQPh0vaF.js +2 -0
  724. package/dist/web/static/assets/NotFound-BQPh0vaF.js.map +1 -0
  725. package/dist/web/static/assets/ProjectSwitcher-D3lZMFd3.js +2 -0
  726. package/dist/web/static/assets/ProjectSwitcher-D3lZMFd3.js.map +1 -0
  727. package/dist/web/static/assets/SettingsPage-oLJBNzQj.js +2 -0
  728. package/dist/web/static/assets/SettingsPage-oLJBNzQj.js.map +1 -0
  729. package/dist/web/static/assets/SkillContentPage-DK5rgfgw.js +2 -0
  730. package/dist/web/static/assets/SkillContentPage-DK5rgfgw.js.map +1 -0
  731. package/dist/web/static/assets/SkillStatsTable-DYMzjEUV.js +2 -0
  732. package/dist/web/static/assets/SkillStatsTable-DYMzjEUV.js.map +1 -0
  733. package/dist/web/static/assets/SkillsDistillTab-C7qaG8q3.js +2 -0
  734. package/dist/web/static/assets/SkillsDistillTab-C7qaG8q3.js.map +1 -0
  735. package/dist/web/static/assets/TasksHubPage-03wsRRsJ.js +6 -0
  736. package/dist/web/static/assets/TasksHubPage-03wsRRsJ.js.map +1 -0
  737. package/dist/web/static/assets/ViolationsPage-DSiLr-9O.js +3 -0
  738. package/dist/web/static/assets/ViolationsPage-DSiLr-9O.js.map +1 -0
  739. package/dist/web/static/assets/arco-Bhi3a6Qp.js +14 -0
  740. package/dist/web/static/assets/arco-Bhi3a6Qp.js.map +1 -0
  741. package/dist/web/static/assets/arco-DFQA6dO_.css +1 -0
  742. package/dist/web/static/assets/charts-BuHQWDbQ.js +37 -0
  743. package/dist/web/static/assets/charts-BuHQWDbQ.js.map +1 -0
  744. package/dist/web/static/assets/date-fns-sbWH3_uq.js +2 -0
  745. package/dist/web/static/assets/date-fns-sbWH3_uq.js.map +1 -0
  746. package/dist/web/static/assets/index-7bl3kbcx.css +1 -0
  747. package/dist/web/static/assets/index-BIYnq1Dx.js +4 -0
  748. package/dist/web/static/assets/index-BIYnq1Dx.js.map +1 -0
  749. package/dist/web/static/assets/lucide-CnlPQoG8.js +72 -0
  750. package/dist/web/static/assets/lucide-CnlPQoG8.js.map +1 -0
  751. package/dist/web/static/assets/outcome-DUn1NjlC.js +2 -0
  752. package/dist/web/static/assets/outcome-DUn1NjlC.js.map +1 -0
  753. package/dist/web/static/assets/query-S6X1S7K9.js +2 -0
  754. package/dist/web/static/assets/{query-C99w429o.js.map → query-S6X1S7K9.js.map} +1 -1
  755. package/dist/web/static/assets/{react-router-r79dBVy4.js → react-router-JVUrkhdd.js} +3 -3
  756. package/dist/web/static/assets/{react-router-r79dBVy4.js.map → react-router-JVUrkhdd.js.map} +1 -1
  757. package/dist/web/static/assets/react-vendor-tkvCrao7.js +57 -0
  758. package/dist/web/static/assets/react-vendor-tkvCrao7.js.map +1 -0
  759. package/dist/web/static/assets/syntax-highlighter-BkZfCDsz.js +6 -0
  760. package/dist/web/static/assets/syntax-highlighter-BkZfCDsz.js.map +1 -0
  761. package/dist/web/static/assets/useTabsParam-k8qte_0C.js +2 -0
  762. package/dist/web/static/assets/useTabsParam-k8qte_0C.js.map +1 -0
  763. package/dist/web/static/assets/vendor-DWgdB1eY.js +65 -0
  764. package/dist/web/static/assets/vendor-DWgdB1eY.js.map +1 -0
  765. package/dist/web/static/index.html +12 -8
  766. package/package.json +14 -3
  767. package/dist/core/ai/provider.d.ts +0 -63
  768. package/dist/core/ai/provider.d.ts.map +0 -1
  769. package/dist/core/ai/provider.js +0 -241
  770. package/dist/core/ai/provider.js.map +0 -1
  771. package/dist/core/ai/types.d.ts +0 -43
  772. package/dist/core/ai/types.d.ts.map +0 -1
  773. package/dist/core/ai/types.js +0 -5
  774. package/dist/core/ai/types.js.map +0 -1
  775. package/dist/core/storage/token-usage.d.ts +0 -36
  776. package/dist/core/storage/token-usage.d.ts.map +0 -1
  777. package/dist/core/storage/token-usage.js +0 -59
  778. package/dist/core/storage/token-usage.js.map +0 -1
  779. package/dist/core/utils/token-tracker.d.ts +0 -39
  780. package/dist/core/utils/token-tracker.d.ts.map +0 -1
  781. package/dist/core/utils/token-tracker.js +0 -69
  782. package/dist/core/utils/token-tracker.js.map +0 -1
  783. package/dist/skills/index.d.ts +0 -3
  784. package/dist/skills/index.d.ts.map +0 -1
  785. package/dist/skills/index.js +0 -3
  786. package/dist/skills/index.js.map +0 -1
  787. package/dist/skills/matcher.d.ts +0 -26
  788. package/dist/skills/matcher.d.ts.map +0 -1
  789. package/dist/skills/matcher.js +0 -113
  790. package/dist/skills/matcher.js.map +0 -1
  791. package/dist/skills/official/code-simplifier.md +0 -52
  792. package/dist/skills/official/find-skills.md +0 -142
  793. package/dist/skills/official/official-api-design.md +0 -30
  794. package/dist/skills/official/official-architecture-decision.md +0 -41
  795. package/dist/skills/official/official-bmad.md +0 -118
  796. package/dist/skills/official/official-db-schema-design.md +0 -34
  797. package/dist/skills/official/official-debug.md +0 -25
  798. package/dist/skills/official/official-doc-driven.md +0 -31
  799. package/dist/skills/official/official-harness-engineering.md +0 -108
  800. package/dist/skills/official/official-openspec.md +0 -89
  801. package/dist/skills/official/official-performance-optimization.md +0 -30
  802. package/dist/skills/official/official-pr-review.md +0 -35
  803. package/dist/skills/official/official-release-checklist.md +0 -30
  804. package/dist/skills/official/official-security-hardening.md +0 -32
  805. package/dist/skills/official/official-spec-driven-design.md +0 -31
  806. package/dist/skills/official/planning-with-files.md +0 -241
  807. package/dist/skills/official/ui-ux-pro-max.md +0 -105
  808. package/dist/skills/official/webapp-testing.md +0 -96
  809. package/dist/skills/official-skills.d.ts +0 -26
  810. package/dist/skills/official-skills.d.ts.map +0 -1
  811. package/dist/skills/official-skills.js +0 -74
  812. package/dist/skills/official-skills.js.map +0 -1
  813. package/dist/skills/semantic-matcher.d.ts +0 -60
  814. package/dist/skills/semantic-matcher.d.ts.map +0 -1
  815. package/dist/skills/semantic-matcher.js +0 -192
  816. package/dist/skills/semantic-matcher.js.map +0 -1
  817. package/dist/skills/upgrade-engine.d.ts +0 -93
  818. package/dist/skills/upgrade-engine.d.ts.map +0 -1
  819. package/dist/skills/upgrade-engine.js +0 -447
  820. package/dist/skills/upgrade-engine.js.map +0 -1
  821. package/dist/skills/upgrade-prompt.d.ts +0 -20
  822. package/dist/skills/upgrade-prompt.d.ts.map +0 -1
  823. package/dist/skills/upgrade-prompt.js +0 -75
  824. package/dist/skills/upgrade-prompt.js.map +0 -1
  825. package/dist/web/routes/ai.d.ts +0 -10
  826. package/dist/web/routes/ai.d.ts.map +0 -1
  827. package/dist/web/routes/ai.js +0 -186
  828. package/dist/web/routes/ai.js.map +0 -1
  829. package/dist/web/routes/token-usage.d.ts +0 -7
  830. package/dist/web/routes/token-usage.d.ts.map +0 -1
  831. package/dist/web/routes/token-usage.js +0 -18
  832. package/dist/web/routes/token-usage.js.map +0 -1
  833. package/dist/web/ssrf-guard.d.ts +0 -35
  834. package/dist/web/ssrf-guard.d.ts.map +0 -1
  835. package/dist/web/ssrf-guard.js +0 -93
  836. package/dist/web/ssrf-guard.js.map +0 -1
  837. package/dist/web/static/assets/AIConfig-CdDWzJyO.js +0 -2
  838. package/dist/web/static/assets/AIConfig-CdDWzJyO.js.map +0 -1
  839. package/dist/web/static/assets/Dashboard-CoEmmIDt.js +0 -2
  840. package/dist/web/static/assets/Dashboard-CoEmmIDt.js.map +0 -1
  841. package/dist/web/static/assets/Drawer-DdRTzlLB.js +0 -2
  842. package/dist/web/static/assets/Drawer-DdRTzlLB.js.map +0 -1
  843. package/dist/web/static/assets/Events-DrIq1SUS.js +0 -2
  844. package/dist/web/static/assets/Events-DrIq1SUS.js.map +0 -1
  845. package/dist/web/static/assets/Reports-DFBM3MDK.js +0 -2
  846. package/dist/web/static/assets/Reports-DFBM3MDK.js.map +0 -1
  847. package/dist/web/static/assets/SearchInput-qCj_jAcf.js +0 -2
  848. package/dist/web/static/assets/SearchInput-qCj_jAcf.js.map +0 -1
  849. package/dist/web/static/assets/SessionDetail-CCzwdoT7.js +0 -2
  850. package/dist/web/static/assets/SessionDetail-CCzwdoT7.js.map +0 -1
  851. package/dist/web/static/assets/Sessions-FfLYkAw9.js +0 -2
  852. package/dist/web/static/assets/Sessions-FfLYkAw9.js.map +0 -1
  853. package/dist/web/static/assets/Skills-C8Gvs3Qa.js +0 -2
  854. package/dist/web/static/assets/Skills-C8Gvs3Qa.js.map +0 -1
  855. package/dist/web/static/assets/TaskDetail-BS8pYhaR.js +0 -2
  856. package/dist/web/static/assets/TaskDetail-BS8pYhaR.js.map +0 -1
  857. package/dist/web/static/assets/Tasks-CyuhizG8.js +0 -2
  858. package/dist/web/static/assets/Tasks-CyuhizG8.js.map +0 -1
  859. package/dist/web/static/assets/charts-CLrM0_uM.js +0 -37
  860. package/dist/web/static/assets/charts-CLrM0_uM.js.map +0 -1
  861. package/dist/web/static/assets/date-fns-CZ_bHujz.js +0 -2
  862. package/dist/web/static/assets/date-fns-CZ_bHujz.js.map +0 -1
  863. package/dist/web/static/assets/export-L_VBD2p1.js +0 -4
  864. package/dist/web/static/assets/export-L_VBD2p1.js.map +0 -1
  865. package/dist/web/static/assets/index-CBX47X8l.js +0 -3
  866. package/dist/web/static/assets/index-CBX47X8l.js.map +0 -1
  867. package/dist/web/static/assets/index-DjIoMdoR.css +0 -1
  868. package/dist/web/static/assets/lucide-Bs_edTLa.js +0 -232
  869. package/dist/web/static/assets/lucide-Bs_edTLa.js.map +0 -1
  870. package/dist/web/static/assets/query-C99w429o.js +0 -2
  871. package/dist/web/static/assets/react-vendor-CSp-GLFF.js +0 -49
  872. package/dist/web/static/assets/react-vendor-CSp-GLFF.js.map +0 -1
  873. package/dist/web/static/assets/syntax-highlighter-44FakypI.js +0 -9
  874. package/dist/web/static/assets/syntax-highlighter-44FakypI.js.map +0 -1
  875. package/dist/web/static/assets/task-title-BhOcemuR.js +0 -2
  876. package/dist/web/static/assets/task-title-BhOcemuR.js.map +0 -1
  877. package/dist/web/static/assets/time-Bxuk0M-C.js +0 -2
  878. package/dist/web/static/assets/time-Bxuk0M-C.js.map +0 -1
  879. package/dist/web/static/assets/vendor-CMMjVdZs.js +0 -64
  880. package/dist/web/static/assets/vendor-CMMjVdZs.js.map +0 -1
@@ -0,0 +1,65 @@
1
+ var zh=Object.defineProperty;var jh=(e,t,n)=>t in e?zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qr=(e,t,n)=>jh(e,typeof t!="symbol"?t+"":t,n);import{c as Ie,g as ee,r as oe,R as Bh,j as Hr}from"./react-vendor-tkvCrao7.js";/**
2
+ * @remix-run/router v1.23.2
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zt.apply(this,arguments)}var kt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(kt||(kt={}));const va="popstate";function BI(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:l}=r.location;return _i("",{pathname:o,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Qu(i)}return qh(t,n,null,e)}function St(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ho(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Uh(){return Math.random().toString(36).substr(2,8)}function wa(e,t){return{usr:e.state,key:e.key,idx:t}}function _i(e,t,n,r){return n===void 0&&(n=null),Zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sr(t):t,{state:n,key:t&&t.key||r||Uh()})}function Qu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function sr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function qh(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=kt.Pop,u=null,c=f();c==null&&(c=0,a.replaceState(Zt({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function s(){l=kt.Pop;let y=f(),m=y==null?null:y-c;c=y,u&&u({action:l,location:g.location,delta:m})}function p(y,m){l=kt.Push;let w=_i(g.location,y,m);c=f()+1;let k=wa(w,c),S=g.createHref(w);try{a.pushState(k,"",S)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(S)}o&&u&&u({action:l,location:g.location,delta:1})}function h(y,m){l=kt.Replace;let w=_i(g.location,y,m);c=f();let k=wa(w,c),S=g.createHref(w);a.replaceState(k,"",S),o&&u&&u({action:l,location:g.location,delta:0})}function d(y){let m=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof y=="string"?y:Qu(y);return w=w.replace(/ $/,"%20"),St(m,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,m)}let g={get action(){return l},get location(){return e(i,a)},listen(y){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(va,s),u=y,()=>{i.removeEventListener(va,s),u=null}},createHref(y){return t(i,y)},createURL:d,encodeLocation(y){let m=d(y);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:h,go(y){return a.go(y)}};return g}var xa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xa||(xa={}));function UI(e,t,n){return n===void 0&&(n="/"),Hh(e,t,n)}function Hh(e,t,n,r){let i=typeof t=="string"?sr(t):t,o=ip(i.pathname||"/",n);if(o==null)return null;let a=Ju(e);Wh(a);let l=null;for(let u=0;l==null&&u<a.length;++u){let c=rp(o);l=ep(a[u],c)}return l}function Ju(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,l)=>{let u={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};u.relativePath.startsWith("/")&&(St(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=Dn([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(St(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ju(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:Jh(c,o.index),routesMeta:f})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let u of Zu(o.path))i(o,a,u)}),t}function Zu(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=Zu(r.join("/")),l=[];return l.push(...a.map(u=>u===""?o:[o,u].join("/"))),i&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function Wh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Zh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Vh=/^:[\w-]+$/,Gh=3,Kh=2,Xh=1,Yh=10,Qh=-2,ka=e=>e==="*";function Jh(e,t){let n=e.split("/"),r=n.length;return n.some(ka)&&(r+=Qh),t&&(r+=Kh),n.filter(i=>!ka(i)).reduce((i,o)=>i+(Vh.test(o)?Gh:o===""?Xh:Yh),r)}function Zh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ep(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l<r.length;++l){let u=r[l],c=l===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",s=tp({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},f),p=u.route;if(!s)return null;Object.assign(i,s.params),a.push({params:i,pathname:Dn([o,s.pathname]),pathnameBase:sp(Dn([o,s.pathnameBase])),route:p}),s.pathnameBase!=="/"&&(o=Dn([o,s.pathnameBase]))}return a}function tp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=np(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((c,f,s)=>{let{paramName:p,isOptional:h}=f;if(p==="*"){let g=l[s]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const d=l[s];return h&&!d?c[p]=void 0:c[p]=(d||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function np(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ho(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function rp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ho(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ip(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const op=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ap=e=>op.test(e);function lp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?sr(e):e,o;if(n)if(ap(n))o=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),ho(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=Sa(n.substring(1),"/"):o=Sa(n,t)}else o=t;return{pathname:o,search:cp(r),hash:fp(i)}}function Sa(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Wr(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function up(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qI(e,t){let n=up(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function HI(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=sr(e):(i=Zt({},e),St(!i.pathname||!i.pathname.includes("?"),Wr("?","pathname","search",i)),St(!i.pathname||!i.pathname.includes("#"),Wr("#","pathname","hash",i)),St(!i.search||!i.search.includes("#"),Wr("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let s=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),s-=1;i.pathname=p.join("/")}l=s>=0?t[s]:"/"}let u=lp(i,l),c=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const Dn=e=>e.join("/").replace(/\/\/+/g,"/"),sp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function WI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const es=["post","put","patch","delete"];new Set(es);const hp=["get",...es];new Set(hp);function _a(){return _a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_a.apply(null,arguments)}function en(e){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(e)}function pp(e,t){if(en(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(en(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dp(e){var t=pp(e,"string");return en(t)=="symbol"?t:t+""}function gp(e,t,n){return(t=dp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mp(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ai(e,t){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ai(e,t)}function yp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ai(e,t)}function bp(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function VI(e,t){e.classList?e.classList.add(t):bp(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Aa(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function GI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Aa(e.className,t):e.setAttribute("class",Aa(e.className&&e.className.baseVal||"",t))}function KI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var De=vp,wp=typeof Ie=="object"&&Ie&&Ie.Object===Object&&Ie,ts=wp,xp=ts,kp=typeof self=="object"&&self&&self.Object===Object&&self,Sp=xp||kp||Function("return this")(),Pe=Sp,_p=Pe,Ap=function(){return _p.Date.now()},Ep=Ap,Cp=/\s/;function Op(e){for(var t=e.length;t--&&Cp.test(e.charAt(t)););return t}var Pp=Op,Tp=Pp,Ip=/^\s+/;function $p(e){return e&&e.slice(0,Tp(e)+1).replace(Ip,"")}var Mp=$p,Dp=Pe,Lp=Dp.Symbol,cr=Lp,Ea=cr,ns=Object.prototype,Rp=ns.hasOwnProperty,Fp=ns.toString,Wt=Ea?Ea.toStringTag:void 0;function Np(e){var t=Rp.call(e,Wt),n=e[Wt];try{e[Wt]=void 0;var r=!0}catch{}var i=Fp.call(e);return r&&(t?e[Wt]=n:delete e[Wt]),i}var zp=Np,jp=Object.prototype,Bp=jp.toString;function Up(e){return Bp.call(e)}var qp=Up,Ca=cr,Hp=zp,Wp=qp,Vp="[object Null]",Gp="[object Undefined]",Oa=Ca?Ca.toStringTag:void 0;function Kp(e){return e==null?e===void 0?Gp:Vp:Oa&&Oa in Object(e)?Hp(e):Wp(e)}var $t=Kp;function Xp(e){return e!=null&&typeof e=="object"}var ht=Xp,Yp=$t,Qp=ht,Jp="[object Symbol]";function Zp(e){return typeof e=="symbol"||Qp(e)&&Yp(e)==Jp}var fr=Zp,ed=Mp,Pa=De,td=fr,Ta=NaN,nd=/^[-+]0x[0-9a-f]+$/i,rd=/^0b[01]+$/i,id=/^0o[0-7]+$/i,od=parseInt;function ad(e){if(typeof e=="number")return e;if(td(e))return Ta;if(Pa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ed(e);var n=rd.test(e);return n||id.test(e)?od(e.slice(2),n?2:8):nd.test(e)?Ta:+e}var ld=ad,ud=De,Vr=Ep,Ia=ld,sd="Expected a function",cd=Math.max,fd=Math.min;function hd(e,t,n){var r,i,o,a,l,u,c=0,f=!1,s=!1,p=!0;if(typeof e!="function")throw new TypeError(sd);t=Ia(t)||0,ud(n)&&(f=!!n.leading,s="maxWait"in n,o=s?cd(Ia(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function h(x){var P=r,$=i;return r=i=void 0,c=x,a=e.apply($,P),a}function d(x){return c=x,l=setTimeout(m,t),f?h(x):a}function g(x){var P=x-u,$=x-c,D=t-P;return s?fd(D,o-$):D}function y(x){var P=x-u,$=x-c;return u===void 0||P>=t||P<0||s&&$>=o}function m(){var x=Vr();if(y(x))return w(x);l=setTimeout(m,g(x))}function w(x){return l=void 0,p&&r?h(x):(r=i=void 0,a)}function k(){l!==void 0&&clearTimeout(l),c=0,r=u=i=l=void 0}function S(){return l===void 0?a:w(Vr())}function A(){var x=Vr(),P=y(x);if(r=arguments,i=this,u=x,P){if(l===void 0)return d(u);if(s)return clearTimeout(l),l=setTimeout(m,t),h(u)}return l===void 0&&(l=setTimeout(m,t)),a}return A.cancel=k,A.flush=S,A}var rs=hd;const XI=ee(rs);var pd=rs,dd=De,gd="Expected a function";function md(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(gd);return dd(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pd(e,t,{leading:r,maxWait:t,trailing:i})}var yd=md;const YI=ee(yd);var bd=Array.isArray,pt=bd,vd=pt,wd=fr,xd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kd=/^\w*$/;function Sd(e,t){if(vd(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wd(e)?!0:kd.test(e)||!xd.test(e)||t!=null&&e in Object(t)}var _d=Sd,Ad=$t,Ed=De,Cd="[object AsyncFunction]",Od="[object Function]",Pd="[object GeneratorFunction]",Td="[object Proxy]";function Id(e){if(!Ed(e))return!1;var t=Ad(e);return t==Od||t==Pd||t==Cd||t==Td}var po=Id,$d=Pe,Md=$d["__core-js_shared__"],Dd=Md,Gr=Dd,$a=function(){var e=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ld(e){return!!$a&&$a in e}var Rd=Ld,Fd=Function.prototype,Nd=Fd.toString;function zd(e){if(e!=null){try{return Nd.call(e)}catch{}try{return e+""}catch{}}return""}var is=zd,jd=po,Bd=Rd,Ud=De,qd=is,Hd=/[\\^$.*+?()[\]{}|]/g,Wd=/^\[object .+?Constructor\]$/,Vd=Function.prototype,Gd=Object.prototype,Kd=Vd.toString,Xd=Gd.hasOwnProperty,Yd=RegExp("^"+Kd.call(Xd).replace(Hd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qd(e){if(!Ud(e)||Bd(e))return!1;var t=jd(e)?Yd:Wd;return t.test(qd(e))}var Jd=Qd;function Zd(e,t){return e==null?void 0:e[t]}var eg=Zd,tg=Jd,ng=eg;function rg(e,t){var n=ng(e,t);return tg(n)?n:void 0}var dt=rg,ig=dt,og=ig(Object,"create"),hr=og,Ma=hr;function ag(){this.__data__=Ma?Ma(null):{},this.size=0}var lg=ag;function ug(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sg=ug,cg=hr,fg="__lodash_hash_undefined__",hg=Object.prototype,pg=hg.hasOwnProperty;function dg(e){var t=this.__data__;if(cg){var n=t[e];return n===fg?void 0:n}return pg.call(t,e)?t[e]:void 0}var gg=dg,mg=hr,yg=Object.prototype,bg=yg.hasOwnProperty;function vg(e){var t=this.__data__;return mg?t[e]!==void 0:bg.call(t,e)}var wg=vg,xg=hr,kg="__lodash_hash_undefined__";function Sg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xg&&t===void 0?kg:t,this}var _g=Sg,Ag=lg,Eg=sg,Cg=gg,Og=wg,Pg=_g;function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mt.prototype.clear=Ag;Mt.prototype.delete=Eg;Mt.prototype.get=Cg;Mt.prototype.has=Og;Mt.prototype.set=Pg;var Tg=Mt;function Ig(){this.__data__=[],this.size=0}var $g=Ig;function Mg(e,t){return e===t||e!==e&&t!==t}var gn=Mg,Dg=gn;function Lg(e,t){for(var n=e.length;n--;)if(Dg(e[n][0],t))return n;return-1}var pr=Lg,Rg=pr,Fg=Array.prototype,Ng=Fg.splice;function zg(e){var t=this.__data__,n=Rg(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ng.call(t,n,1),--this.size,!0}var jg=zg,Bg=pr;function Ug(e){var t=this.__data__,n=Bg(t,e);return n<0?void 0:t[n][1]}var qg=Ug,Hg=pr;function Wg(e){return Hg(this.__data__,e)>-1}var Vg=Wg,Gg=pr;function Kg(e,t){var n=this.__data__,r=Gg(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Xg=Kg,Yg=$g,Qg=jg,Jg=qg,Zg=Vg,em=Xg;function Dt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dt.prototype.clear=Yg;Dt.prototype.delete=Qg;Dt.prototype.get=Jg;Dt.prototype.has=Zg;Dt.prototype.set=em;var dr=Dt,tm=dt,nm=Pe,rm=tm(nm,"Map"),go=rm,Da=Tg,im=dr,om=go;function am(){this.size=0,this.__data__={hash:new Da,map:new(om||im),string:new Da}}var lm=am;function um(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var sm=um,cm=sm;function fm(e,t){var n=e.__data__;return cm(t)?n[typeof t=="string"?"string":"hash"]:n.map}var gr=fm,hm=gr;function pm(e){var t=hm(this,e).delete(e);return this.size-=t?1:0,t}var dm=pm,gm=gr;function mm(e){return gm(this,e).get(e)}var ym=mm,bm=gr;function vm(e){return bm(this,e).has(e)}var wm=vm,xm=gr;function km(e,t){var n=xm(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Sm=km,_m=lm,Am=dm,Em=ym,Cm=wm,Om=Sm;function Lt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Lt.prototype.clear=_m;Lt.prototype.delete=Am;Lt.prototype.get=Em;Lt.prototype.has=Cm;Lt.prototype.set=Om;var mo=Lt,os=mo,Pm="Expected a function";function yo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Pm);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(yo.Cache||os),n}yo.Cache=os;var Tm=yo,Im=Tm,$m=500;function Mm(e){var t=Im(e,function(r){return n.size===$m&&n.clear(),r}),n=t.cache;return t}var Dm=Mm,Lm=Dm,Rm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fm=/\\(\\)?/g,Nm=Lm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rm,function(n,r,i,o){t.push(i?o.replace(Fm,"$1"):r||n)}),t}),zm=Nm;function jm(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Bm=jm,La=cr,Um=Bm,qm=pt,Hm=fr,Ra=La?La.prototype:void 0,Fa=Ra?Ra.toString:void 0;function as(e){if(typeof e=="string")return e;if(qm(e))return Um(e,as)+"";if(Hm(e))return Fa?Fa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Wm=as,Vm=Wm;function Gm(e){return e==null?"":Vm(e)}var ls=Gm,Km=pt,Xm=_d,Ym=zm,Qm=ls;function Jm(e,t){return Km(e)?e:Xm(e,t)?[e]:Ym(Qm(e))}var Zm=Jm,ey=fr;function ty(e){if(typeof e=="string"||ey(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ny=ty,ry=Zm,iy=ny;function oy(e,t){t=ry(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[iy(t[n++])];return n&&n==r?e:void 0}var ay=oy,ly=ay;function uy(e,t,n){var r=e==null?void 0:ly(e,t);return r===void 0?n:r}var sy=uy;const QI=ee(sy);var cy=ls,us=/[\\^$.*+?()[\]{}|]/g,fy=RegExp(us.source);function hy(e){return e=cy(e),e&&fy.test(e)?e.replace(us,"\\$&"):e}var py=hy;const JI=ee(py);var dy=dr;function gy(){this.__data__=new dy,this.size=0}var my=gy;function yy(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var by=yy;function vy(e){return this.__data__.get(e)}var wy=vy;function xy(e){return this.__data__.has(e)}var ky=xy,Sy=dr,_y=go,Ay=mo,Ey=200;function Cy(e,t){var n=this.__data__;if(n instanceof Sy){var r=n.__data__;if(!_y||r.length<Ey-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ay(r)}return n.set(e,t),this.size=n.size,this}var Oy=Cy,Py=dr,Ty=my,Iy=by,$y=wy,My=ky,Dy=Oy;function Rt(e){var t=this.__data__=new Py(e);this.size=t.size}Rt.prototype.clear=Ty;Rt.prototype.delete=Iy;Rt.prototype.get=$y;Rt.prototype.has=My;Rt.prototype.set=Dy;var ss=Rt,Ly=dt,Ry=function(){try{var e=Ly(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cs=Ry,Na=cs;function Fy(e,t,n){t=="__proto__"&&Na?Na(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var bo=Fy,Ny=bo,zy=gn;function jy(e,t,n){(n!==void 0&&!zy(e[t],n)||n===void 0&&!(t in e))&&Ny(e,t,n)}var fs=jy;function By(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++i];if(n(o[u],u,o)===!1)break}return t}}var Uy=By,qy=Uy,Hy=qy(),Wy=Hy,jn={exports:{}};jn.exports;(function(e,t){var n=Pe,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,l=a?a.allocUnsafe:void 0;function u(c,f){if(f)return c.slice();var s=c.length,p=l?l(s):new c.constructor(s);return c.copy(p),p}e.exports=u})(jn,jn.exports);var Vy=jn.exports,Gy=Pe,Ky=Gy.Uint8Array,hs=Ky,za=hs;function Xy(e){var t=new e.constructor(e.byteLength);return new za(t).set(new za(e)),t}var Yy=Xy,Qy=Yy;function Jy(e,t){var n=t?Qy(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Zy=Jy;function eb(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var tb=eb,nb=De,ja=Object.create,rb=function(){function e(){}return function(t){if(!nb(t))return{};if(ja)return ja(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ib=rb;function ob(e,t){return function(n){return e(t(n))}}var ps=ob,ab=ps,lb=ab(Object.getPrototypeOf,Object),ds=lb,ub=Object.prototype;function sb(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ub;return e===n}var vo=sb,cb=ib,fb=ds,hb=vo;function pb(e){return typeof e.constructor=="function"&&!hb(e)?cb(fb(e)):{}}var db=pb,gb=$t,mb=ht,yb="[object Arguments]";function bb(e){return mb(e)&&gb(e)==yb}var vb=bb,Ba=vb,wb=ht,gs=Object.prototype,xb=gs.hasOwnProperty,kb=gs.propertyIsEnumerable,Sb=Ba(function(){return arguments}())?Ba:function(e){return wb(e)&&xb.call(e,"callee")&&!kb.call(e,"callee")},ms=Sb,_b=9007199254740991;function Ab(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_b}var ys=Ab,Eb=po,Cb=ys;function Ob(e){return e!=null&&Cb(e.length)&&!Eb(e)}var mr=Ob,Pb=mr,Tb=ht;function Ib(e){return Tb(e)&&Pb(e)}var $b=Ib,Bn={exports:{}};function Mb(){return!1}var Db=Mb;Bn.exports;(function(e,t){var n=Pe,r=Db,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,l=a?n.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||r;e.exports=c})(Bn,Bn.exports);var wo=Bn.exports,Lb=$t,Rb=ds,Fb=ht,Nb="[object Object]",zb=Function.prototype,jb=Object.prototype,bs=zb.toString,Bb=jb.hasOwnProperty,Ub=bs.call(Object);function qb(e){if(!Fb(e)||Lb(e)!=Nb)return!1;var t=Rb(e);if(t===null)return!0;var n=Bb.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&bs.call(n)==Ub}var Hb=qb,Wb=$t,Vb=ys,Gb=ht,Kb="[object Arguments]",Xb="[object Array]",Yb="[object Boolean]",Qb="[object Date]",Jb="[object Error]",Zb="[object Function]",e1="[object Map]",t1="[object Number]",n1="[object Object]",r1="[object RegExp]",i1="[object Set]",o1="[object String]",a1="[object WeakMap]",l1="[object ArrayBuffer]",u1="[object DataView]",s1="[object Float32Array]",c1="[object Float64Array]",f1="[object Int8Array]",h1="[object Int16Array]",p1="[object Int32Array]",d1="[object Uint8Array]",g1="[object Uint8ClampedArray]",m1="[object Uint16Array]",y1="[object Uint32Array]",K={};K[s1]=K[c1]=K[f1]=K[h1]=K[p1]=K[d1]=K[g1]=K[m1]=K[y1]=!0;K[Kb]=K[Xb]=K[l1]=K[Yb]=K[u1]=K[Qb]=K[Jb]=K[Zb]=K[e1]=K[t1]=K[n1]=K[r1]=K[i1]=K[o1]=K[a1]=!1;function b1(e){return Gb(e)&&Vb(e.length)&&!!K[Wb(e)]}var v1=b1;function w1(e){return function(t){return e(t)}}var x1=w1,Un={exports:{}};Un.exports;(function(e,t){var n=ts,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=l})(Un,Un.exports);var k1=Un.exports,S1=v1,_1=x1,Ua=k1,qa=Ua&&Ua.isTypedArray,A1=qa?_1(qa):S1,xo=A1;function E1(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var vs=E1,C1=bo,O1=gn,P1=Object.prototype,T1=P1.hasOwnProperty;function I1(e,t,n){var r=e[t];(!(T1.call(e,t)&&O1(r,n))||n===void 0&&!(t in e))&&C1(e,t,n)}var $1=I1,M1=$1,D1=bo;function L1(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var l=t[o],u=r?r(n[l],e[l],l,n,e):void 0;u===void 0&&(u=e[l]),i?D1(n,l,u):M1(n,l,u)}return n}var R1=L1;function F1(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var N1=F1,z1=9007199254740991,j1=/^(?:0|[1-9]\d*)$/;function B1(e,t){var n=typeof e;return t=t??z1,!!t&&(n=="number"||n!="symbol"&&j1.test(e))&&e>-1&&e%1==0&&e<t}var ws=B1,U1=N1,q1=ms,H1=pt,W1=wo,V1=ws,G1=xo,K1=Object.prototype,X1=K1.hasOwnProperty;function Y1(e,t){var n=H1(e),r=!n&&q1(e),i=!n&&!r&&W1(e),o=!n&&!r&&!i&&G1(e),a=n||r||i||o,l=a?U1(e.length,String):[],u=l.length;for(var c in e)(t||X1.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||V1(c,u)))&&l.push(c);return l}var xs=Y1;function Q1(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var J1=Q1,Z1=De,ev=vo,tv=J1,nv=Object.prototype,rv=nv.hasOwnProperty;function iv(e){if(!Z1(e))return tv(e);var t=ev(e),n=[];for(var r in e)r=="constructor"&&(t||!rv.call(e,r))||n.push(r);return n}var ov=iv,av=xs,lv=ov,uv=mr;function sv(e){return uv(e)?av(e,!0):lv(e)}var ks=sv,cv=R1,fv=ks;function hv(e){return cv(e,fv(e))}var pv=hv,Ha=fs,dv=Vy,gv=Zy,mv=tb,yv=db,Wa=ms,Va=pt,bv=$b,vv=wo,wv=po,xv=De,kv=Hb,Sv=xo,Ga=vs,_v=pv;function Av(e,t,n,r,i,o,a){var l=Ga(e,n),u=Ga(t,n),c=a.get(u);if(c){Ha(e,n,c);return}var f=o?o(l,u,n+"",e,t,a):void 0,s=f===void 0;if(s){var p=Va(u),h=!p&&vv(u),d=!p&&!h&&Sv(u);f=u,p||h||d?Va(l)?f=l:bv(l)?f=mv(l):h?(s=!1,f=dv(u,!0)):d?(s=!1,f=gv(u,!0)):f=[]:kv(u)||Wa(u)?(f=l,Wa(l)?f=_v(l):(!xv(l)||wv(l))&&(f=yv(u))):s=!1}s&&(a.set(u,f),i(f,u,r,o,a),a.delete(u)),Ha(e,n,f)}var Ev=Av,Cv=ss,Ov=fs,Pv=Wy,Tv=Ev,Iv=De,$v=ks,Mv=vs;function Ss(e,t,n,r,i){e!==t&&Pv(t,function(o,a){if(i||(i=new Cv),Iv(o))Tv(e,t,a,n,Ss,r,i);else{var l=r?r(Mv(e,a),o,a+"",e,t,i):void 0;l===void 0&&(l=o),Ov(e,a,l)}},$v)}var Dv=Ss;function Lv(e){return e}var _s=Lv;function Rv(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Fv=Rv,Nv=Fv,Ka=Math.max;function zv(e,t,n){return t=Ka(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Ka(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(a),Nv(e,this,l)}}var jv=zv;function Bv(e){return function(){return e}}var Uv=Bv,qv=Uv,Xa=cs,Hv=_s,Wv=Xa?function(e,t){return Xa(e,"toString",{configurable:!0,enumerable:!1,value:qv(t),writable:!0})}:Hv,Vv=Wv,Gv=800,Kv=16,Xv=Date.now;function Yv(e){var t=0,n=0;return function(){var r=Xv(),i=Kv-(r-n);if(n=r,i>0){if(++t>=Gv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Qv=Yv,Jv=Vv,Zv=Qv,ew=Zv(Jv),tw=ew,nw=_s,rw=jv,iw=tw;function ow(e,t){return iw(rw(e,t,nw),e+"")}var aw=ow,lw=gn,uw=mr,sw=ws,cw=De;function fw(e,t,n){if(!cw(n))return!1;var r=typeof t;return(r=="number"?uw(n)&&sw(t,n.length):r=="string"&&t in n)?lw(n[t],e):!1}var hw=fw,pw=aw,dw=hw;function gw(e){return pw(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&dw(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t})}var mw=gw,yw=Dv,bw=mw,vw=bw(function(e,t,n){yw(e,t,n)}),ww=vw;const ZI=ee(ww);var xw="__lodash_hash_undefined__";function kw(e){return this.__data__.set(e,xw),this}var Sw=kw;function _w(e){return this.__data__.has(e)}var Aw=_w,Ew=mo,Cw=Sw,Ow=Aw;function qn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ew;++t<n;)this.add(e[t])}qn.prototype.add=qn.prototype.push=Cw;qn.prototype.has=Ow;var Pw=qn;function Tw(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Iw=Tw;function $w(e,t){return e.has(t)}var Mw=$w,Dw=Pw,Lw=Iw,Rw=Mw,Fw=1,Nw=2;function zw(e,t,n,r,i,o){var a=n&Fw,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var s=-1,p=!0,h=n&Nw?new Dw:void 0;for(o.set(e,t),o.set(t,e);++s<l;){var d=e[s],g=t[s];if(r)var y=a?r(g,d,s,t,e,o):r(d,g,s,e,t,o);if(y!==void 0){if(y)continue;p=!1;break}if(h){if(!Lw(t,function(m,w){if(!Rw(h,w)&&(d===m||i(d,m,n,r,o)))return h.push(w)})){p=!1;break}}else if(!(d===g||i(d,g,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var As=zw;function jw(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Bw=jw;function Uw(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var qw=Uw,Ya=cr,Qa=hs,Hw=gn,Ww=As,Vw=Bw,Gw=qw,Kw=1,Xw=2,Yw="[object Boolean]",Qw="[object Date]",Jw="[object Error]",Zw="[object Map]",ex="[object Number]",tx="[object RegExp]",nx="[object Set]",rx="[object String]",ix="[object Symbol]",ox="[object ArrayBuffer]",ax="[object DataView]",Ja=Ya?Ya.prototype:void 0,Kr=Ja?Ja.valueOf:void 0;function lx(e,t,n,r,i,o,a){switch(n){case ax:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ox:return!(e.byteLength!=t.byteLength||!o(new Qa(e),new Qa(t)));case Yw:case Qw:case ex:return Hw(+e,+t);case Jw:return e.name==t.name&&e.message==t.message;case tx:case rx:return e==t+"";case Zw:var l=Vw;case nx:var u=r&Kw;if(l||(l=Gw),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=Xw,a.set(e,t);var f=Ww(l(e),l(t),r,i,o,a);return a.delete(e),f;case ix:if(Kr)return Kr.call(e)==Kr.call(t)}return!1}var ux=lx;function sx(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var cx=sx,fx=cx,hx=pt;function px(e,t,n){var r=t(e);return hx(e)?r:fx(r,n(e))}var dx=px;function gx(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var mx=gx;function yx(){return[]}var bx=yx,vx=mx,wx=bx,xx=Object.prototype,kx=xx.propertyIsEnumerable,Za=Object.getOwnPropertySymbols,Sx=Za?function(e){return e==null?[]:(e=Object(e),vx(Za(e),function(t){return kx.call(e,t)}))}:wx,_x=Sx,Ax=ps,Ex=Ax(Object.keys,Object),Cx=Ex,Ox=vo,Px=Cx,Tx=Object.prototype,Ix=Tx.hasOwnProperty;function $x(e){if(!Ox(e))return Px(e);var t=[];for(var n in Object(e))Ix.call(e,n)&&n!="constructor"&&t.push(n);return t}var Mx=$x,Dx=xs,Lx=Mx,Rx=mr;function Fx(e){return Rx(e)?Dx(e):Lx(e)}var Nx=Fx,zx=dx,jx=_x,Bx=Nx;function Ux(e){return zx(e,Bx,jx)}var qx=Ux,el=qx,Hx=1,Wx=Object.prototype,Vx=Wx.hasOwnProperty;function Gx(e,t,n,r,i,o){var a=n&Hx,l=el(e),u=l.length,c=el(t),f=c.length;if(u!=f&&!a)return!1;for(var s=u;s--;){var p=l[s];if(!(a?p in t:Vx.call(t,p)))return!1}var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var g=!0;o.set(e,t),o.set(t,e);for(var y=a;++s<u;){p=l[s];var m=e[p],w=t[p];if(r)var k=a?r(w,m,p,t,e,o):r(m,w,p,e,t,o);if(!(k===void 0?m===w||i(m,w,n,r,o):k)){g=!1;break}y||(y=p=="constructor")}if(g&&!y){var S=e.constructor,A=t.constructor;S!=A&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof A=="function"&&A instanceof A)&&(g=!1)}return o.delete(e),o.delete(t),g}var Kx=Gx,Xx=dt,Yx=Pe,Qx=Xx(Yx,"DataView"),Jx=Qx,Zx=dt,e0=Pe,t0=Zx(e0,"Promise"),n0=t0,r0=dt,i0=Pe,o0=r0(i0,"Set"),a0=o0,l0=dt,u0=Pe,s0=l0(u0,"WeakMap"),c0=s0,Ei=Jx,Ci=go,Oi=n0,Pi=a0,Ti=c0,Es=$t,Ft=is,tl="[object Map]",f0="[object Object]",nl="[object Promise]",rl="[object Set]",il="[object WeakMap]",ol="[object DataView]",h0=Ft(Ei),p0=Ft(Ci),d0=Ft(Oi),g0=Ft(Pi),m0=Ft(Ti),Ze=Es;(Ei&&Ze(new Ei(new ArrayBuffer(1)))!=ol||Ci&&Ze(new Ci)!=tl||Oi&&Ze(Oi.resolve())!=nl||Pi&&Ze(new Pi)!=rl||Ti&&Ze(new Ti)!=il)&&(Ze=function(e){var t=Es(e),n=t==f0?e.constructor:void 0,r=n?Ft(n):"";if(r)switch(r){case h0:return ol;case p0:return tl;case d0:return nl;case g0:return rl;case m0:return il}return t});var y0=Ze,Xr=ss,b0=As,v0=ux,w0=Kx,al=y0,ll=pt,ul=wo,x0=xo,k0=1,sl="[object Arguments]",cl="[object Array]",_n="[object Object]",S0=Object.prototype,fl=S0.hasOwnProperty;function _0(e,t,n,r,i,o){var a=ll(e),l=ll(t),u=a?cl:al(e),c=l?cl:al(t);u=u==sl?_n:u,c=c==sl?_n:c;var f=u==_n,s=c==_n,p=u==c;if(p&&ul(e)){if(!ul(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new Xr),a||x0(e)?b0(e,t,n,r,i,o):v0(e,t,u,n,r,i,o);if(!(n&k0)){var h=f&&fl.call(e,"__wrapped__"),d=s&&fl.call(t,"__wrapped__");if(h||d){var g=h?e.value():e,y=d?t.value():t;return o||(o=new Xr),i(g,y,n,r,o)}}return p?(o||(o=new Xr),w0(e,t,n,r,i,o)):!1}var A0=_0,E0=A0,hl=ht;function Cs(e,t,n,r,i){return e===t?!0:e==null||t==null||!hl(e)&&!hl(t)?e!==e&&t!==t:E0(e,t,n,r,Cs,i)}var C0=Cs,O0=C0;function P0(e,t,n){n=typeof n=="function"?n:void 0;var r=n?n(e,t):void 0;return r===void 0?O0(e,t,void 0,n):!!r}var T0=P0;const e$=ee(T0);var pl="data-focus-lock",I0="data-focus-lock-disabled",$0="data-no-focus-lock",M0="data-autofocus-inside",D0="data-no-autofocus";function Yr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function L0(e,t){var n=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var R0=typeof window<"u"?oe.useLayoutEffect:oe.useEffect,dl=new WeakMap;function t$(e,t){var n=L0(null,function(r){return e.forEach(function(i){return Yr(i,r)})});return R0(function(){var r=dl.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||Yr(l,null)}),o.forEach(function(l){i.has(l)||Yr(l,a)})}dl.set(n,e)},[e]),n}var Ii=function(){return Ii=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ii.apply(this,arguments)};function Os(e){return e}function Ps(e,t){t===void 0&&(t=Os);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(o),a=n}var u=function(){var f=a;a=[],f.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(f){a.push(f),c()},filter:function(f){return a=a.filter(f),n}}}};return i}function n$(e,t){return t===void 0&&(t=Os),Ps(e,t)}function r$(e){e===void 0&&(e={});var t=Ps(null);return t.options=Ii({async:!0,ssr:!1},e),t}function i$(e,t){function n(r){return r.displayName||r.name||"Component"}return function(i){var o=[],a;function l(){a=e(o.map(function(c){return c.props})),t(a)}var u=function(c){yp(f,c);function f(){return c.apply(this,arguments)||this}f.peek=function(){return a};var s=f.prototype;return s.componentDidMount=function(){o.push(this),l()},s.componentDidUpdate=function(){l()},s.componentWillUnmount=function(){var h=o.indexOf(this);o.splice(h,1),l()},s.render=function(){return Bh.createElement(i,this.props)},f}(oe.PureComponent);return gp(u,"displayName","SideEffect("+n(i)+")"),u}}var Le=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},at=function(e){return Array.isArray(e)?e:[e]},Ts=function(e){return Array.isArray(e)?e[0]:e},F0=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},Is=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},$s=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},N0=function(e){return e.hasAttribute("inert")},z0=function(e,t){return!e||$s(e)||!F0(e)&&!N0(e)&&t(Is(e))},Ms=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=z0(t,Ms.bind(void 0,e));return e.set(t,r),r},j0=function(e,t){return e&&!$s(e)?q0(e)?t(Is(e)):!1:!0},Ds=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=j0(t,Ds.bind(void 0,e));return e.set(t,r),r},Ls=function(e){return e.dataset},B0=function(e){return e.tagName==="BUTTON"},Rs=function(e){return e.tagName==="INPUT"},Fs=function(e){return Rs(e)&&e.type==="radio"},U0=function(e){return!((Rs(e)||B0(e))&&(e.type==="hidden"||e.disabled))},q0=function(e){var t=e.getAttribute(D0);return![!0,"true",""].includes(t)},ko=function(e){var t;return!!(e&&(!((t=Ls(e))===null||t===void 0)&&t.focusGuard))},$i=function(e){return!ko(e)},H0=function(e){return!!e},W0=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,o=e.index-t.index;if(i){if(!n)return 1;if(!r)return-1}return i||o},V0=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},So=function(e,t,n){return Le(e).map(function(r,i){var o=V0(r);return{node:r,index:i,tabIndex:n&&o===-1?(r.dataset||{}).focusGuard?0:-1:o}}).filter(function(r){return!t||r.tabIndex>=0}).sort(W0)},G0=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],_o=G0.join(","),K0="".concat(_o,", [data-focus-guard]"),Ns=function(e,t){return Le((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?K0:_o)?[r]:[],Ns(r))},[])},X0=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Et([e.contentDocument.body],t):[e]},Et=function(e,t){return e.reduce(function(n,r){var i,o=Ns(r,t),a=(i=[]).concat.apply(i,o.map(function(l){return X0(l,t)}));return n.concat(a,r.parentNode?Le(r.parentNode.querySelectorAll(_o)).filter(function(l){return l===r}):[])},[])},Y0=function(e){var t=e.querySelectorAll("[".concat(M0,"]"));return Le(t).map(function(n){return Et([n])}).reduce(function(n,r){return n.concat(r)},[])},Ao=function(e,t){return Le(e).filter(function(n){return Ms(t,n)}).filter(function(n){return U0(n)})},gl=function(e,t){return t===void 0&&(t=new Map),Le(e).filter(function(n){return Ds(t,n)})},Eo=function(e,t,n){return So(Ao(Et(e,n),t),!0,n)},Hn=function(e,t){return So(Ao(Et(e),t),!1)},Q0=function(e,t){return Ao(Y0(e),t)},rt=function(e,t){return e.shadowRoot?rt(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Le(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?rt(i,t):!1}return rt(n,t)})},J0=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,l){return!t.has(l)})},zs=function(e){return e.parentNode?zs(e.parentNode):e},Co=function(e){var t=at(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(pl);return n.push.apply(n,i?J0(Le(zs(r).querySelectorAll("[".concat(pl,'="').concat(i,'"]:not([').concat(I0,'="disabled"])')))):[r]),n},[])},Z0=function(e){try{return e()}catch{return}},tn=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?tn(t.shadowRoot):t instanceof HTMLIFrameElement&&Z0(function(){return t.contentWindow.document})?tn(t.contentWindow.document):t}},ek=function(e,t){return e===t},tk=function(e,t){return!!Le(e.querySelectorAll("iframe")).some(function(n){return ek(n,t)})},o$=function(e,t){return t===void 0&&(t=tn(Ts(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Co(e).some(function(n){return rt(n,t)||tk(n,t)})},a$=function(e){e===void 0&&(e=document);var t=tn(e);return t?Le(e.querySelectorAll("[".concat($0,"]"))).some(function(n){return rt(n,t)}):!1},nk=function(e,t){return t.filter(Fs).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Oo=function(e,t){return Fs(e)&&e.name?nk(e,t):e},rk=function(e){var t=new Set;return e.forEach(function(n){return t.add(Oo(n,e))}),e.filter(function(n){return t.has(n)})},ml=function(e){return e[0]&&e.length>1?Oo(e[0],e):e[0]},yl=function(e,t){return e.indexOf(Oo(t,e))},Mi="NEW_FOCUS",ik=function(e,t,n,r,i){var o=e.length,a=e[0],l=e[o-1],u=ko(r);if(!(r&&e.indexOf(r)>=0)){var c=r!==void 0?n.indexOf(r):-1,f=i?n.indexOf(i):c,s=i?e.indexOf(i):-1;if(c===-1)return s!==-1?s:Mi;if(s===-1)return Mi;var p=c-f,h=n.indexOf(a),d=n.indexOf(l),g=rk(n),y=r!==void 0?g.indexOf(r):-1,m=i?g.indexOf(i):y,w=g.filter(function($){return $.tabIndex>=0}),k=r!==void 0?w.indexOf(r):-1,S=i?w.indexOf(i):k,A=k>=0&&S>=0?S-k:m-y;if(!p&&s>=0||t.length===0)return s;var x=yl(e,t[0]),P=yl(e,t[t.length-1]);if(c<=h&&u&&Math.abs(p)>1)return P;if(c>=d&&u&&Math.abs(p)>1)return x;if(p&&Math.abs(A)>1)return s;if(c<=h)return P;if(c>d)return x;if(p)return Math.abs(p)>1?s:(o+s+p)%o}},ok=function(e){return function(t){var n,r=(n=Ls(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},bl=function(e,t,n){var r=e.map(function(o){var a=o.node;return a}),i=gl(r.filter(ok(n)));return i&&i.length?ml(i):ml(gl(t))},Di=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Di(e.parentNode.host||e.parentNode,t),t},Qr=function(e,t){for(var n=Di(e),r=Di(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},js=function(e,t,n){var r=at(e),i=at(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(l){a=Qr(a||l,l)||a,n.filter(Boolean).forEach(function(u){var c=Qr(o,u);c&&(!a||rt(c,a)?a=c:a=Qr(c,a))})}),a},vl=function(e,t){return e.reduce(function(n,r){return n.concat(Q0(r,t))},[])},ak=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(H0)},lk=function(e,t){var n=tn(at(e).length>0?document:Ts(e).ownerDocument),r=Co(e).filter($i),i=js(n||e,e,r),o=new Map,a=Hn(r,o),l=a.filter(function(d){var g=d.node;return $i(g)});if(l[0]){var u=Hn([i],o).map(function(d){var g=d.node;return g}),c=ak(u,l),f=c.map(function(d){var g=d.node;return g}),s=c.filter(function(d){var g=d.tabIndex;return g>=0}).map(function(d){var g=d.node;return g}),p=ik(f,s,u,n,t);if(p===Mi){var h=bl(a,s,vl(r,o))||bl(a,f,vl(r,o));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:c[p]}},l$=function(e){var t=Co(e).filter($i),n=js(e,e,t),r=So(Et([n],!0),!0,!0),i=Et(t,!1);return r.map(function(o){var a=o.node,l=o.index;return{node:a,index:l,lockItem:i.indexOf(a)>=0,guard:ko(a)}})},Po=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Jr=0,Zr=!1,u$=function(e,t,n){n===void 0&&(n={});var r=lk(e,t);if(!Zr&&r){if(Jr>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Zr=!0,setTimeout(function(){Zr=!1},1);return}Jr++,Po(r.node,n.focusOptions),Jr--}};function Vt(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var uk=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Vt(n),parent:Vt(n.parentElement),left:Vt(n.previousElementSibling),right:Vt(n.nextElementSibling)}),n=n.parentElement;return{element:Vt(e),stack:t,ownerDocument:e.ownerDocument}},sk=function(e){var t,n,r,i,o;if(e)for(var a=e.stack,l=e.ownerDocument,u=new Map,c=0,f=a;c<f.length;c++){var s=f[c],p=(t=s.parent)===null||t===void 0?void 0:t.call(s);if(p&&l.contains(p)){for(var h=(n=s.left)===null||n===void 0?void 0:n.call(s),d=s.current(),g=p.contains(d)?d:void 0,y=(r=s.right)===null||r===void 0?void 0:r.call(s),m=Eo([p],u),w=(o=(i=g??(h==null?void 0:h.nextElementSibling))!==null&&i!==void 0?i:y)!==null&&o!==void 0?o:h;w;){for(var k=0,S=m;k<S.length;k++){var A=S[k];if(w!=null&&w.contains(A.node))return A.node}w=w.nextElementSibling}if(m.length)return m[0].node}}},s$=function(e){var t=uk(e);return function(){return sk(t)}},ck=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=at(t);if(r.every(function(a){return!rt(a,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?Eo(r,new Map):Hn(r,new Map),o=i.findIndex(function(a){var l=a.node;return l===e});if(o!==-1)return{prev:i[o-1],next:i[o+1],first:i[0],last:i[i.length-1]}},fk=function(e,t){var n=t?Eo(at(e),new Map):Hn(at(e),new Map);return{first:n[0],last:n[n.length-1]}},hk=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},Bs=function(e,t,n){t===void 0&&(t={});var r=hk(t),i=ck(e,r.scope,r.onlyTabbable);if(i){var o=n(i,r.cycle);o&&Po(o.node,r.focusOptions)}},c$=function(e,t){t===void 0&&(t={}),Bs(e,t,function(n,r){var i=n.next,o=n.first;return i||r&&o})},f$=function(e,t){t===void 0&&(t={}),Bs(e,t,function(n,r){var i=n.prev,o=n.last;return i||r&&o})},Us=function(e,t,n){var r,i=fk(e,(r=t.onlyTabbable)!==null&&r!==void 0?r:!0),o=i[n];o&&Po(o.node,t.focusOptions)},h$=function(e,t){t===void 0&&(t={}),Us(e,t,"first")},p$=function(e,t){t===void 0&&(t={}),Us(e,t,"last")};function qs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=qs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function d$(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qs(e))&&(r&&(r+=" "),r+=t);return r}var yr={},Hs={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Hs);var To={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(To);var br={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(br);var vr={},Ws={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(Ws);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ws,n=br;function r(i){if(Array.isArray(i))return i.map(n.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const o=[],a=i.length;if(a===0)return o;let l=0,u="",c="",f=!1;for(i.charCodeAt(0)===46&&(o.push(""),l++);l<a;){const s=i[l];c?s==="\\"&&l+1<a?(l++,u+=i[l]):s===c?c="":u+=s:f?s==='"'||s==="'"?c=s:s==="]"?(f=!1,o.push(u),u=""):u+=s:s==="["?(f=!0,u&&(o.push(u),u="")):s==="."?u&&(o.push(u),u=""):u+=s,l++}return u&&o.push(u),o}e.toPath=r})(vr);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hs,n=To,r=br,i=vr;function o(l,u,c){if(l==null)return c;switch(typeof u){case"string":{if(t.isUnsafeProperty(u))return c;const f=l[u];return f===void 0?n.isDeepKey(u)?o(l,i.toPath(u),c):c:f}case"number":case"symbol":{typeof u=="number"&&(u=r.toKey(u));const f=l[u];return f===void 0?c:f}default:{if(Array.isArray(u))return a(l,u,c);if(Object.is(u==null?void 0:u.valueOf(),-0)?u="-0":u=String(u),t.isUnsafeProperty(u))return c;const f=l[u];return f===void 0?c:f}}}function a(l,u,c){if(u.length===0)return c;let f=l;for(let s=0;s<u.length;s++){if(f==null||t.isUnsafeProperty(u[s]))return c;f=f[u[s]]}return f===void 0?c:f}e.get=o})(yr);var pk=yr.get;const g$=ee(pk);var Vs={},Gs={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const a=n[o],l=r(a,o,n);i.has(l)||i.set(l,a)}return Array.from(i.values())}e.uniqBy=t})(Gs);var Ks={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...i){return n.apply(this,i.slice(0,r))}}e.ary=t})(Ks);var mn={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(mn);var Xs={},wr={},Ys={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(Ys);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ys;function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(wr);var Qs={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(Qs);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wr,n=Qs;function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(Xs);var xr={},Js={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yr;function n(r){return function(i){return t.get(i,r)}}e.property=n})(Js);var Zs={},Io={},ec={},$o={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})($o);var Mo={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(Mo);var Do={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(Do);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$o,n=Mo,r=Do;function i(f,s,p){return typeof p!="function"?i(f,s,()=>{}):o(f,s,function h(d,g,y,m,w,k){const S=p(d,g,y,m,w,k);return S!==void 0?!!S:o(d,g,h,k)},new Map)}function o(f,s,p,h){if(s===f)return!0;switch(typeof s){case"object":return a(f,s,p,h);case"function":return Object.keys(s).length>0?o(f,{...s},p,h):r.isEqualsSameValueZero(f,s);default:return t.isObject(f)?typeof s=="string"?s==="":!0:r.isEqualsSameValueZero(f,s)}}function a(f,s,p,h){if(s==null)return!0;if(Array.isArray(s))return u(f,s,p,h);if(s instanceof Map)return l(f,s,p,h);if(s instanceof Set)return c(f,s,p,h);const d=Object.keys(s);if(f==null||n.isPrimitive(f))return d.length===0;if(d.length===0)return!0;if(h!=null&&h.has(s))return h.get(s)===f;h==null||h.set(s,f);try{for(let g=0;g<d.length;g++){const y=d[g];if(!n.isPrimitive(f)&&!(y in f)||s[y]===void 0&&f[y]!==void 0||s[y]===null&&f[y]!==null||!p(f[y],s[y],y,f,s,h))return!1}return!0}finally{h==null||h.delete(s)}}function l(f,s,p,h){if(s.size===0)return!0;if(!(f instanceof Map))return!1;for(const[d,g]of s.entries()){const y=f.get(d);if(p(y,g,d,f,s,h)===!1)return!1}return!0}function u(f,s,p,h){if(s.length===0)return!0;if(!Array.isArray(f))return!1;const d=new Set;for(let g=0;g<s.length;g++){const y=s[g];let m=!1;for(let w=0;w<f.length;w++){if(d.has(w))continue;const k=f[w];let S=!1;if(p(k,y,g,f,s,h)&&(S=!0),S){d.add(w),m=!0;break}}if(!m)return!1}return!0}function c(f,s,p,h){return s.size===0?!0:f instanceof Set?u([...f],[...s],p,h):!1}e.isMatchWith=i,e.isSetMatch=c})(ec);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ec;function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(Io);var tc={},Lo={},nc={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(nc);var kr={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(kr);var Ro={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",a="[object Symbol]",l="[object Date]",u="[object Map]",c="[object Set]",f="[object Array]",s="[object Function]",p="[object ArrayBuffer]",h="[object Object]",d="[object Error]",g="[object DataView]",y="[object Uint8Array]",m="[object Uint8ClampedArray]",w="[object Uint16Array]",k="[object Uint32Array]",S="[object BigUint64Array]",A="[object Int8Array]",x="[object Int16Array]",P="[object Int32Array]",$="[object BigInt64Array]",D="[object Float32Array]",_="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=p,e.arrayTag=f,e.bigInt64ArrayTag=$,e.bigUint64ArrayTag=S,e.booleanTag=i,e.dataViewTag=g,e.dateTag=l,e.errorTag=d,e.float32ArrayTag=D,e.float64ArrayTag=_,e.functionTag=s,e.int16ArrayTag=x,e.int32ArrayTag=P,e.int8ArrayTag=A,e.mapTag=u,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=w,e.uint32ArrayTag=k,e.uint8ArrayTag=y,e.uint8ClampedArrayTag=m})(Ro);var rc={},ic={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof Ie=="object"&&Ie||function(){return this}()||Function("return this")();e.globalThis=t})(ic);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ic;function n(r){return typeof t.globalThis.Buffer<"u"&&t.globalThis.Buffer.isBuffer(r)}e.isBuffer=n})(rc);var oc={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(oc);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nc,n=kr,r=Ro,i=rc,o=Mo,a=oc;function l(s,p){return u(s,void 0,s,new Map,p)}function u(s,p,h,d=new Map,g=void 0){const y=g==null?void 0:g(s,p,h,d);if(y!==void 0)return y;if(o.isPrimitive(s))return s;if(d.has(s))return d.get(s);if(Array.isArray(s)){const m=new Array(s.length);d.set(s,m);for(let w=0;w<s.length;w++)m[w]=u(s[w],w,h,d,g);return Object.hasOwn(s,"index")&&(m.index=s.index),Object.hasOwn(s,"input")&&(m.input=s.input),m}if(s instanceof Date)return new Date(s.getTime());if(s instanceof RegExp){const m=new RegExp(s.source,s.flags);return m.lastIndex=s.lastIndex,m}if(s instanceof Map){const m=new Map;d.set(s,m);for(const[w,k]of s)m.set(w,u(k,w,h,d,g));return m}if(s instanceof Set){const m=new Set;d.set(s,m);for(const w of s)m.add(u(w,void 0,h,d,g));return m}if(i.isBuffer(s))return s.subarray();if(a.isTypedArray(s)){const m=new(Object.getPrototypeOf(s)).constructor(s.length);d.set(s,m);for(let w=0;w<s.length;w++)m[w]=u(s[w],w,h,d,g);return m}if(s instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&s instanceof SharedArrayBuffer)return s.slice(0);if(s instanceof DataView){const m=new DataView(s.buffer.slice(0),s.byteOffset,s.byteLength);return d.set(s,m),c(m,s,h,d,g),m}if(typeof File<"u"&&s instanceof File){const m=new File([s],s.name,{type:s.type});return d.set(s,m),c(m,s,h,d,g),m}if(typeof Blob<"u"&&s instanceof Blob){const m=new Blob([s],{type:s.type});return d.set(s,m),c(m,s,h,d,g),m}if(s instanceof Error){const m=structuredClone(s);return d.set(s,m),m.message=s.message,m.name=s.name,m.stack=s.stack,m.cause=s.cause,m.constructor=s.constructor,c(m,s,h,d,g),m}if(s instanceof Boolean){const m=new Boolean(s.valueOf());return d.set(s,m),c(m,s,h,d,g),m}if(s instanceof Number){const m=new Number(s.valueOf());return d.set(s,m),c(m,s,h,d,g),m}if(s instanceof String){const m=new String(s.valueOf());return d.set(s,m),c(m,s,h,d,g),m}if(typeof s=="object"&&f(s)){const m=Object.create(Object.getPrototypeOf(s));return d.set(s,m),c(m,s,h,d,g),m}return s}function c(s,p,h=s,d,g){const y=[...Object.keys(p),...t.getSymbols(p)];for(let m=0;m<y.length;m++){const w=y[m],k=Object.getOwnPropertyDescriptor(s,w);(k==null||k.writable)&&(s[w]=u(p[w],w,h,d,g))}}function f(s){switch(n.getTag(s)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=l,e.cloneDeepWithImpl=u,e.copyProperties=c})(Lo);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Lo;function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(tc);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Io,n=tc;function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(Zs);var ac={},lc={},uc={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Lo,n=kr,r=Ro;function i(o,a){return t.cloneDeepWith(o,(l,u,c,f)=>{const s=a==null?void 0:a(l,u,c,f);if(s!==void 0)return s;if(typeof o=="object"){if(n.getTag(o)===r.objectTag&&typeof o.constructor!="function"){const p={};return f.set(o,p),t.copyProperties(p,o,c,f),p}switch(Object.prototype.toString.call(o)){case r.numberTag:case r.stringTag:case r.booleanTag:{const p=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(p,o),p}case r.argumentsTag:{const p={};return t.copyProperties(p,o),p.length=o.length,p[Symbol.iterator]=o[Symbol.iterator],p}default:return}}})}e.cloneDeepWith=i})(uc);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uc;function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(lc);var sc={},Fo={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Fo);var cc={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kr;function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(cc);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=To,n=Fo,r=cc,i=vr;function o(a,l){let u;if(Array.isArray(l)?u=l:typeof l=="string"&&t.isDeepKey(l)&&(a==null?void 0:a[l])==null?u=i.toPath(l):u=[l],u.length===0)return!1;let c=a;for(let f=0;f<u.length;f++){const s=u[f];if((c==null||!Object.hasOwn(c,s))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(s)&&s<c.length))return!1;c=c[s]}return!0}e.has=o})(sc);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Io,n=br,r=lc,i=yr,o=sc;function a(l,u){switch(typeof l){case"object":{Object.is(l==null?void 0:l.valueOf(),-0)&&(l="-0");break}case"number":{l=n.toKey(l);break}}return u=r.cloneDeep(u),function(c){const f=i.get(c,l);return f===void 0?o.has(c,l):u===void 0?f===void 0:t.isMatch(f,u)}}e.matchesProperty=a})(ac);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mn,n=Js,r=Zs,i=ac;function o(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?i.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=o})(xr);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gs,n=Ks,r=mn,i=Xs,o=xr;function a(l,u=r.identity){return i.isArrayLikeObject(l)?t.uniqBy(Array.from(l),n.ary(o.iteratee(u),1)):[]}e.uniqBy=a})(Vs);var dk=Vs.uniqBy;const m$=ee(dk);var fc={exports:{}},hc={},pc={exports:{}},dc={};/**
11
+ * @license React
12
+ * use-sync-external-store-shim.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Ct=oe;function gk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mk=typeof Object.is=="function"?Object.is:gk,yk=Ct.useState,bk=Ct.useEffect,vk=Ct.useLayoutEffect,wk=Ct.useDebugValue;function xk(e,t){var n=t(),r=yk({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return vk(function(){i.value=n,i.getSnapshot=t,ei(i)&&o({inst:i})},[e,n,t]),bk(function(){return ei(i)&&o({inst:i}),e(function(){ei(i)&&o({inst:i})})},[e]),wk(n),n}function ei(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mk(e,n)}catch{return!0}}function kk(e,t){return t()}var Sk=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kk:xk;dc.useSyncExternalStore=Ct.useSyncExternalStore!==void 0?Ct.useSyncExternalStore:Sk;pc.exports=dc;var _k=pc.exports;/**
19
+ * @license React
20
+ * use-sync-external-store-shim/with-selector.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var Sr=oe,Ak=_k;function Ek(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ck=typeof Object.is=="function"?Object.is:Ek,Ok=Ak.useSyncExternalStore,Pk=Sr.useRef,Tk=Sr.useEffect,Ik=Sr.useMemo,$k=Sr.useDebugValue;hc.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Pk(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Ik(function(){function u(h){if(!c){if(c=!0,f=h,h=r(h),i!==void 0&&a.hasValue){var d=a.value;if(i(d,h))return s=d}return s=h}if(d=s,Ck(f,h))return d;var g=r(h);return i!==void 0&&i(d,g)?(f=h,d):(f=h,s=g)}var c=!1,f,s,p=n===void 0?null:n;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,n,r,i]);var l=Ok(e,o[0],o[1]);return Tk(function(){a.hasValue=!0,a.value=l},[l]),$k(l),l};fc.exports=hc;var y$=fc.exports;function Mk(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Dk(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Lk(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var wl=e=>Array.isArray(e)?e:[e];function Rk(e){const t=Array.isArray(e[0])?e[0]:e;return Lk(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Fk(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Nk=class{constructor(e){this.value=e}deref(){return this.value}},zk=typeof WeakRef<"u"?WeakRef:Nk,jk=0,xl=1;function An(){return{s:jk,v:void 0,o:null,p:null}}function gc(e,t={}){let n=An();const{resultEqualityCheck:r}=t;let i,o=0;function a(){var s;let l=n;const{length:u}=arguments;for(let p=0,h=u;p<h;p++){const d=arguments[p];if(typeof d=="function"||typeof d=="object"&&d!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const y=g.get(d);y===void 0?(l=An(),g.set(d,l)):l=y}else{let g=l.p;g===null&&(l.p=g=new Map);const y=g.get(d);y===void 0?(l=An(),g.set(d,l)):l=y}}const c=l;let f;if(l.s===xl)f=l.v;else if(f=e.apply(null,arguments),o++,r){const p=((s=i==null?void 0:i.deref)==null?void 0:s.call(i))??i;p!=null&&r(p,f)&&(f=p,o!==0&&o--),i=typeof f=="object"&&f!==null||typeof f=="function"?new zk(f):f}return c.s=xl,c.v=f,f}return a.clearCache=()=>{n=An(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Bk(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,l,u={},c=i.pop();typeof c=="object"&&(u=c,c=i.pop()),Mk(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...n,...u},{memoize:s,memoizeOptions:p=[],argsMemoize:h=gc,argsMemoizeOptions:d=[]}=f,g=wl(p),y=wl(d),m=Rk(i),w=s(function(){return o++,c.apply(null,arguments)},...g),k=h(function(){a++;const A=Fk(m,arguments);return l=w.apply(null,A),l},...y);return Object.assign(k,{resultFunc:c,memoizedResultFunc:w,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:s,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var Uk=Bk(gc),qk=Object.assign((e,t=Uk)=>{Dk(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,l,u)=>(a[n[u]]=l,a),{}))},{withTypes:()=>qk}),mc={},yc={},bc={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const a=t(r),l=t(i);if(a===l&&a===0){if(r<i)return o==="desc"?1:-1;if(r>i)return o==="desc"?-1:1}return o==="desc"?l-a:a-l}return 0};e.compareValues=n})(bc);var vc={},No={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(No);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=No,n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||a!=null&&Object.hasOwn(a,o)}e.isKey=i})(vc);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bc,n=vc,r=vr;function i(o,a,l,u){if(o==null)return[];l=u?void 0:l,Array.isArray(o)||(o=Object.values(o)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(l)||(l=l==null?[]:[l]),l=l.map(h=>String(h));const c=(h,d)=>{let g=h;for(let y=0;y<d.length&&g!=null;++y)g=g[d[y]];return g},f=(h,d)=>d==null||h==null?d:typeof h=="object"&&"key"in h?Object.hasOwn(d,h.key)?d[h.key]:c(d,h.path):typeof h=="function"?h(d):Array.isArray(h)?c(d,h):typeof d=="object"?d[h]:d,s=a.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||n.isKey(h)?h:{key:h,path:r.toPath(h)}));return o.map(h=>({original:h,criteria:s.map(d=>f(d,h))})).slice().sort((h,d)=>{for(let g=0;g<s.length;g++){const y=t.compareValues(h.criteria[g],d.criteria[g],l[g]);if(y!==0)return y}return 0}).map(h=>h.original)}e.orderBy=i})(yc);var wc={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),a=(l,u)=>{for(let c=0;c<l.length;c++){const f=l[c];Array.isArray(f)&&u<o?a(f,u+1):i.push(f)}};return a(n,0),i}e.flatten=t})(wc);var zo={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fo,n=wr,r=$o,i=Do;function o(a,l,u){return r.isObject(u)&&(typeof l=="number"&&n.isArrayLike(u)&&t.isIndex(l)&&l<u.length||typeof l=="string"&&l in u)?i.isEqualsSameValueZero(u[l],a):!1}e.isIterateeCall=o})(zo);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yc,n=wc,r=zo;function i(o,...a){const l=a.length;return l>1&&r.isIterateeCall(o,a[0],a[1])?a=[]:l>2&&r.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(o,n.flatten(a),["asc"])}e.sortBy=i})(mc);var Hk=mc.sortBy;const b$=ee(Hk);function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Wk=typeof Symbol=="function"&&Symbol.observable||"@@observable",kl=Wk,ti=()=>Math.random().toString(36).substring(7).split("").join("."),Vk={INIT:`@@redux/INIT${ti()}`,REPLACE:`@@redux/REPLACE${ti()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ti()}`},Wn=Vk;function jo(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function xc(e,t,n){if(typeof e!="function")throw new Error(re(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(re(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(re(1));return n(xc)(e,t)}let r=e,i=t,o=new Map,a=o,l=0,u=!1;function c(){a===o&&(a=new Map,o.forEach((y,m)=>{a.set(m,y)}))}function f(){if(u)throw new Error(re(3));return i}function s(y){if(typeof y!="function")throw new Error(re(4));if(u)throw new Error(re(5));let m=!0;c();const w=l++;return a.set(w,y),function(){if(m){if(u)throw new Error(re(6));m=!1,c(),a.delete(w),o=null}}}function p(y){if(!jo(y))throw new Error(re(7));if(typeof y.type>"u")throw new Error(re(8));if(typeof y.type!="string")throw new Error(re(17));if(u)throw new Error(re(9));try{u=!0,i=r(i,y)}finally{u=!1}return(o=a).forEach(w=>{w()}),y}function h(y){if(typeof y!="function")throw new Error(re(10));r=y,p({type:Wn.REPLACE})}function d(){const y=s;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(re(11));function w(){const S=m;S.next&&S.next(f())}return w(),{unsubscribe:y(w)}},[kl](){return this}}}return p({type:Wn.INIT}),{dispatch:p,subscribe:s,getState:f,replaceReducer:h,[kl]:d}}function Gk(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Wn.INIT})>"u")throw new Error(re(12));if(typeof n(void 0,{type:Wn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(re(13))})}function Kk(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let i;try{Gk(n)}catch(o){i=o}return function(a={},l){if(i)throw i;let u=!1;const c={};for(let f=0;f<r.length;f++){const s=r[f],p=n[s],h=a[s],d=p(h,l);if(typeof d>"u")throw l&&l.type,new Error(re(14));c[s]=d,u=u||d!==h}return u=u||r.length!==Object.keys(a).length,u?c:a}}function Vn(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Xk(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(re(15))};const a={getState:i.getState,dispatch:(u,...c)=>o(u,...c)},l=e.map(u=>u(a));return o=Vn(...l)(i.dispatch),{...i,dispatch:o}}}function kc(e){return jo(e)&&"type"in e&&typeof e.type=="string"}var Sc=Symbol.for("immer-nothing"),Sl=Symbol.for("immer-draftable"),se=Symbol.for("immer-state");function Ae(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ge=Object,Ot=ge.getPrototypeOf,Gn="constructor",_r="prototype",Li="configurable",Kn="enumerable",Ln="writable",nn="value",qe=e=>!!e&&!!e[se];function Oe(e){var t;return e?_c(e)||Er(e)||!!e[Sl]||!!((t=e[Gn])!=null&&t[Sl])||Cr(e)||Or(e):!1}var Yk=ge[_r][Gn].toString(),_l=new WeakMap;function _c(e){if(!e||!Bo(e))return!1;const t=Ot(e);if(t===null||t===ge[_r])return!0;const n=ge.hasOwnProperty.call(t,Gn)&&t[Gn];if(n===Object)return!0;if(!wt(n))return!1;let r=_l.get(n);return r===void 0&&(r=Function.toString.call(n),_l.set(n,r)),r===Yk}function Ar(e,t,n=!0){yn(e)===0?(n?Reflect.ownKeys(e):ge.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function yn(e){const t=e[se];return t?t.type_:Er(e)?1:Cr(e)?2:Or(e)?3:0}var Al=(e,t,n=yn(e))=>n===2?e.has(t):ge[_r].hasOwnProperty.call(e,t),Ri=(e,t,n=yn(e))=>n===2?e.get(t):e[t],Xn=(e,t,n,r=yn(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Qk(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Er=Array.isArray,Cr=e=>e instanceof Map,Or=e=>e instanceof Set,Bo=e=>typeof e=="object",wt=e=>typeof e=="function",ni=e=>typeof e=="boolean";function Jk(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Be=e=>e.copy_||e.base_,Uo=e=>e.modified_?e.copy_:e.base_;function Fi(e,t){if(Cr(e))return new Map(e);if(Or(e))return new Set(e);if(Er(e))return Array[_r].slice.call(e);const n=_c(e);if(t===!0||t==="class_only"&&!n){const r=ge.getOwnPropertyDescriptors(e);delete r[se];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const a=i[o],l=r[a];l[Ln]===!1&&(l[Ln]=!0,l[Li]=!0),(l.get||l.set)&&(r[a]={[Li]:!0,[Ln]:!0,[Kn]:l[Kn],[nn]:e[a]})}return ge.create(Ot(e),r)}else{const r=Ot(e);if(r!==null&&n)return{...e};const i=ge.create(r);return ge.assign(i,e)}}function qo(e,t=!1){return Pr(e)||qe(e)||!Oe(e)||(yn(e)>1&&ge.defineProperties(e,{set:En,add:En,clear:En,delete:En}),ge.freeze(e),t&&Ar(e,(n,r)=>{qo(r,!0)},!1)),e}function Zk(){Ae(2)}var En={[nn]:Zk};function Pr(e){return e===null||!Bo(e)?!0:ge.isFrozen(e)}var Yn="MapSet",Ni="Patches",El="ArrayMethods",Ac={};function lt(e){const t=Ac[e];return t||Ae(0,e),t}var Cl=e=>!!Ac[e],rn,Ec=()=>rn,eS=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Cl(Yn)?lt(Yn):void 0,arrayMethodsPlugin_:Cl(El)?lt(El):void 0});function Ol(e,t){t&&(e.patchPlugin_=lt(Ni),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zi(e){ji(e),e.drafts_.forEach(tS),e.drafts_=null}function ji(e){e===rn&&(rn=e.parent_)}var Pl=e=>rn=eS(rn,e);function tS(e){const t=e[se];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Tl(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[se].modified_&&(zi(t),Ae(4)),Oe(e)&&(e=Il(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[se].base_,e,t)}else e=Il(t,n);return nS(t,e,!0),zi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Sc?e:void 0}function Il(e,t){if(Pr(t))return t;const n=t[se];if(!n)return Qn(t,e.handledSet_,e);if(!Tr(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Pc(n,e)}return n.copy_}function nS(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qo(t,n)}function Cc(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Tr=(e,t)=>e.scope_===t,rS=[];function Oc(e,t,n,r){const i=Be(e),o=e.type_;if(r!==void 0&&Ri(i,r,o)===t){Xn(i,r,n,o);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Ar(i,(u,c)=>{if(qe(c)){const f=l.get(c)||[];f.push(u),l.set(c,f)}})}const a=e.draftLocations_.get(t)??rS;for(const l of a)Xn(i,l,n,o)}function iS(e,t,n){e.callbacks_.push(function(i){var l;const o=t;if(!o||!Tr(o,i))return;(l=i.mapSetPlugin_)==null||l.fixSetContents(o);const a=Uo(o);Oc(e,o.draft_??o,a,n),Pc(o,i)})}function Pc(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const o=i.getPath(e);o&&i.generatePatches_(e,o,t)}Cc(e)}}function oS(e,t,n){const{scope_:r}=e;if(qe(n)){const i=n[se];Tr(i,r)&&i.callbacks_.push(function(){Rn(e);const a=Uo(i);Oc(e,n,a,t)})}else Oe(n)&&e.callbacks_.push(function(){const o=Be(e);e.type_===3?o.has(n)&&Qn(n,r.handledSet_,r):Ri(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Qn(Ri(e.copy_,t,e.type_),r.handledSet_,r)})}function Qn(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||qe(e)||t.has(e)||!Oe(e)||Pr(e)||(t.add(e),Ar(e,(r,i)=>{if(qe(i)){const o=i[se];if(Tr(o,n)){const a=Uo(o);Xn(e,r,a,e.type_),Cc(o)}}else Oe(i)&&Qn(i,t,n)})),e}function aS(e,t){const n=Er(e),r={type_:n?1:0,scope_:t?t.scope_:Ec(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=Jn;n&&(i=[r],o=on);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return r.draft_=l,r.revoke_=a,[l,r]}var Jn={get(e,t){if(t===se)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Be(e);if(!Al(i,t,e.type_))return lS(e,i,t);const o=i[t];if(e.finalized_||!Oe(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&Jk(t))return o;if(o===ri(e.base_,t)){Rn(e);const a=e.type_===1?+t:t,l=Ui(e.scope_,o,e,a);return e.copy_[a]=l}return o},has(e,t){return t in Be(e)},ownKeys(e){return Reflect.ownKeys(Be(e))},set(e,t,n){const r=Tc(Be(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=ri(Be(e),t),o=i==null?void 0:i[se];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Qk(n,i)&&(n!==void 0||Al(e.base_,t,e.type_)))return!0;Rn(e),Bi(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),oS(e,t,n)),!0},deleteProperty(e,t){return Rn(e),ri(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Bi(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Be(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ln]:!0,[Li]:e.type_!==1||t!=="length",[Kn]:r[Kn],[nn]:n[t]}},defineProperty(){Ae(11)},getPrototypeOf(e){return Ot(e.base_)},setPrototypeOf(){Ae(12)}},on={};for(let e in Jn){let t=Jn[e];on[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}on.deleteProperty=function(e,t){return on.set.call(this,e,t,void 0)};on.set=function(e,t,n){return Jn.set.call(this,e[0],t,n,e[0])};function ri(e,t){const n=e[se];return(n?Be(n):e)[t]}function lS(e,t,n){var i;const r=Tc(t,n);return r?nn in r?r[nn]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Tc(e,t){if(!(t in e))return;let n=Ot(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ot(n)}}function Bi(e){e.modified_||(e.modified_=!0,e.parent_&&Bi(e.parent_))}function Rn(e){e.copy_||(e.assigned_=new Map,e.copy_=Fi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,i)=>{if(wt(n)&&!wt(r)){const a=r;r=n;const l=this;return function(c=a,...f){return l.produce(c,s=>r.call(this,s,...f))}}wt(r)||Ae(6),i!==void 0&&!wt(i)&&Ae(7);let o;if(Oe(n)){const a=Pl(this),l=Ui(a,n,void 0);let u=!0;try{o=r(l),u=!1}finally{u?zi(a):ji(a)}return Ol(a,i),Tl(o,a)}else if(!n||!Bo(n)){if(o=r(n),o===void 0&&(o=n),o===Sc&&(o=void 0),this.autoFreeze_&&qo(o,!0),i){const a=[],l=[];lt(Ni).generateReplacementPatches_(n,o,{patches_:a,inversePatches_:l}),i(a,l)}return o}else Ae(1,n)},this.produceWithPatches=(n,r)=>{if(wt(n))return(l,...u)=>this.produceWithPatches(l,c=>n(c,...u));let i,o;return[this.produce(n,r,(l,u)=>{i=l,o=u}),i,o]},ni(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ni(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ni(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Oe(t)||Ae(8),qe(t)&&(t=sS(t));const n=Pl(this),r=Ui(n,t,void 0);return r[se].isManual_=!0,ji(n),r}finishDraft(t,n){const r=t&&t[se];(!r||!r.isManual_)&&Ae(9);const{scope_:i}=r;return Ol(i,n),Tl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(n=n.slice(r+1));const i=lt(Ni).applyPatches_;return qe(t)?i(t,n):this.produce(t,o=>i(o,n))}};function Ui(e,t,n,r){const[i,o]=Cr(t)?lt(Yn).proxyMap_(t,n):Or(t)?lt(Yn).proxySet_(t,n):aS(t,n);return((n==null?void 0:n.scope_)??Ec()).drafts_.push(i),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?iS(n,o,r):o.callbacks_.push(function(u){var f;(f=u.mapSetPlugin_)==null||f.fixSetContents(o);const{patchPlugin_:c}=u;o.modified_&&c&&c.generatePatches_(o,[],u)}),i}function sS(e){return qe(e)||Ae(10,e),Ic(e)}function Ic(e){if(!Oe(e)||Pr(e))return e;const t=e[se];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Fi(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Fi(e,!0);return Ar(n,(i,o)=>{Xn(n,i,Ic(o))},r),t&&(t.finalized_=!1),n}var cS=new uS,$c=cS.produce;function Mc(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var fS=Mc(),hS=Mc,pS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Vn:Vn.apply(null,arguments)};function Pt(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(me(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>kc(r)&&r.type===e,n}var Dc=class Xt extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Xt.prototype)}static get[Symbol.species](){return Xt}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Xt(...t[0].concat(this)):new Xt(...t.concat(this))}};function $l(e){return Oe(e)?$c(e,()=>{}):e}function Cn(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function dS(e){return typeof e=="boolean"}var gS=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new Dc;return n&&(dS(n)?a.push(fS):a.push(hS(n.extraArgument))),a},Lc="RTK_autoBatch",w$=()=>e=>({payload:e,meta:{[Lc]:!0}}),Ml=e=>t=>{setTimeout(t,e)},mS=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ml(10):e.type==="callback"?e.queueNotification:Ml(e.timeout),c=()=>{a=!1,o&&(o=!1,l.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const s=()=>i&&f(),p=r.subscribe(s);return l.add(f),()=>{p(),l.delete(f)}},dispatch(f){var s;try{return i=!((s=f==null?void 0:f.meta)!=null&&s[Lc]),o=!i,o&&(a||(a=!0,u(c))),r.dispatch(f)}finally{i=!0}}})},yS=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Dc(e);return r&&i.push(mS(typeof r=="object"?r:void 0)),i};function x$(e){const t=gS(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(jo(n))l=Kk(n);else throw new Error(me(1));let u;typeof r=="function"?u=r(t):u=t();let c=Vn;i&&(c=pS({trace:!1,...typeof i=="object"&&i}));const f=Xk(...u),s=yS(f);let p=typeof a=="function"?a(s):s();const h=c(...p);return xc(l,o,h)}function Rc(e){const t={},n=[];let r;const i={addCase(o,a){const l=typeof o=="string"?o:o.type;if(!l)throw new Error(me(28));if(l in t)throw new Error(me(29));return t[l]=a,i},addAsyncThunk(o,a){return a.pending&&(t[o.pending.type]=a.pending),a.rejected&&(t[o.rejected.type]=a.rejected),a.fulfilled&&(t[o.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:o.settled,reducer:a.settled}),i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function bS(e){return typeof e=="function"}function vS(e,t){let[n,r,i]=Rc(t),o;if(bS(e))o=()=>$l(e());else{const l=$l(e);o=()=>l}function a(l=o(),u){let c=[n[u.type],...r.filter(({matcher:f})=>f(u)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,s)=>{if(s)if(qe(f)){const h=s(f,u);return h===void 0?f:h}else{if(Oe(f))return $c(f,p=>s(p,u));{const p=s(f,u);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},l)}return a.getInitialState=o,a}var wS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xS=(e=21)=>{let t="",n=e;for(;n--;)t+=wS[Math.random()*64|0];return t},kS=Symbol.for("rtk-slice-createasyncthunk");function SS(e,t){return`${e}/${t}`}function _S({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[kS];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(me(11));const l=(typeof i.reducers=="function"?i.reducers(ES()):i.reducers)||{},u=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(S,A){const x=typeof S=="string"?S:S.type;if(!x)throw new Error(me(12));if(x in c.sliceCaseReducersByType)throw new Error(me(13));return c.sliceCaseReducersByType[x]=A,f},addMatcher(S,A){return c.sliceMatchers.push({matcher:S,reducer:A}),f},exposeAction(S,A){return c.actionCreators[S]=A,f},exposeCaseReducer(S,A){return c.sliceCaseReducersByName[S]=A,f}};u.forEach(S=>{const A=l[S],x={reducerName:S,type:SS(o,S),createNotation:typeof i.reducers=="function"};OS(A)?TS(x,A,f,t):CS(x,A,f)});function s(){const[S={},A=[],x=void 0]=typeof i.extraReducers=="function"?Rc(i.extraReducers):[i.extraReducers],P={...S,...c.sliceCaseReducersByType};return vS(i.initialState,$=>{for(let D in P)$.addCase(D,P[D]);for(let D of c.sliceMatchers)$.addMatcher(D.matcher,D.reducer);for(let D of A)$.addMatcher(D.matcher,D.reducer);x&&$.addDefaultCase(x)})}const p=S=>S,h=new Map,d=new WeakMap;let g;function y(S,A){return g||(g=s()),g(S,A)}function m(){return g||(g=s()),g.getInitialState()}function w(S,A=!1){function x($){let D=$[S];return typeof D>"u"&&A&&(D=Cn(d,x,m)),D}function P($=p){const D=Cn(h,A,()=>new WeakMap);return Cn(D,$,()=>{const _={};for(const[I,O]of Object.entries(i.selectors??{}))_[I]=AS(O,$,()=>Cn(d,$,m),A);return _})}return{reducerPath:S,getSelectors:P,get selectors(){return P(x)},selectSlice:x}}const k={name:o,reducer:y,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:m,...w(a),injectInto(S,{reducerPath:A,...x}={}){const P=A??a;return S.inject({reducerPath:P,reducer:y},x),{...k,...w(P,!0)}}};return k}}function AS(e,t,n,r){function i(o,...a){let l=t(o);return typeof l>"u"&&r&&(l=n()),e(l,...a)}return i.unwrapped=e,i}var k$=_S();function ES(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function CS({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!PS(r))throw new Error(me(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Pt(e,a):Pt(e))}function OS(e){return e._reducerDefinitionType==="asyncThunk"}function PS(e){return e._reducerDefinitionType==="reducerWithPrepare"}function TS({type:e,reducerName:t},n,r,i){if(!i)throw new Error(me(18));const{payloadCreator:o,fulfilled:a,pending:l,rejected:u,settled:c,options:f}=n,s=i(e,o,f);r.exposeAction(t,s),a&&r.addCase(s.fulfilled,a),l&&r.addCase(s.pending,l),u&&r.addCase(s.rejected,u),c&&r.addMatcher(s.settled,c),r.exposeCaseReducer(t,{fulfilled:a||On,pending:l||On,rejected:u||On,settled:c||On})}function On(){}var IS="task",Fc="listener",Nc="completed",Ho="cancelled",$S=`task-${Ho}`,MS=`task-${Nc}`,qi=`${Fc}-${Ho}`,DS=`${Fc}-${Nc}`,Ir=class{constructor(e){qr(this,"name","TaskAbortError");qr(this,"message");this.code=e,this.message=`${IS} ${Ho} (reason: ${e})`}},Wo=(e,t)=>{if(typeof e!="function")throw new TypeError(me(32))},Zn=()=>{},zc=(e,t=Zn)=>(e.catch(t),e),jc=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),it=e=>{if(e.aborted)throw new Ir(e.reason)};function Bc(e,t){let n=Zn;return new Promise((r,i)=>{const o=()=>i(new Ir(e.reason));if(e.aborted){o();return}n=jc(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Zn})}var LS=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Ir?"cancelled":"rejected",error:n}}finally{t==null||t()}},er=e=>t=>zc(Bc(e,t).then(n=>(it(e),n))),Uc=e=>{const t=er(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:_t}=Object,Dl={},$r="listenerMiddleware",RS=(e,t)=>{const n=r=>jc(e,()=>r.abort(e.reason));return(r,i)=>{Wo(r);const o=new AbortController;n(o);const a=LS(async()=>{it(e),it(o.signal);const l=await r({pause:er(o.signal),delay:Uc(o.signal),signal:o.signal});return it(o.signal),l},()=>o.abort(MS));return i!=null&&i.autoJoin&&t.push(a.catch(Zn)),{result:er(e)(a),cancel(){o.abort($S)}}}},FS=(e,t)=>{const n=async(r,i)=>{it(t);let o=()=>{};const l=[new Promise((u,c)=>{let f=e({predicate:r,effect:(s,p)=>{p.unsubscribe(),u([s,p.getState(),p.getOriginalState()])}});o=()=>{f(),c()}})];i!=null&&l.push(new Promise(u=>setTimeout(u,i,null)));try{const u=await Bc(t,Promise.race(l));return it(t),u}finally{o()}};return(r,i)=>zc(n(r,i))},qc=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=Pt(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(me(21));return Wo(o),{predicate:i,type:t,effect:o}},Hc=_t(e=>{const{type:t,predicate:n,effect:r}=qc(e);return{id:xS(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(me(22))}}},{withTypes:()=>Hc}),Ll=(e,t)=>{const{type:n,effect:r,predicate:i}=qc(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},Hi=e=>{e.pending.forEach(t=>{t.abort(qi)})},NS=(e,t)=>()=>{for(const n of t.keys())Hi(n);e.clear()},Rl=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},Wc=_t(Pt(`${$r}/add`),{withTypes:()=>Wc}),zS=Pt(`${$r}/removeAll`),Vc=_t(Pt(`${$r}/remove`),{withTypes:()=>Vc}),jS=(...e)=>{console.error(`${$r}/error`,...e)},S$=(e={})=>{const t=new Map,n=new Map,r=h=>{const d=n.get(h)??0;n.set(h,d+1)},i=h=>{const d=n.get(h)??1;d===1?n.delete(h):n.set(h,d-1)},{extra:o,onError:a=jS}=e;Wo(a);const l=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),d=>{h.unsubscribe(),d!=null&&d.cancelActive&&Hi(h)}),u=h=>{const d=Ll(t,h)??Hc(h);return l(d)};_t(u,{withTypes:()=>u});const c=h=>{const d=Ll(t,h);return d&&(d.unsubscribe(),h.cancelActive&&Hi(d)),!!d};_t(c,{withTypes:()=>c});const f=async(h,d,g,y)=>{const m=new AbortController,w=FS(u,m.signal),k=[];try{h.pending.add(m),r(h),await Promise.resolve(h.effect(d,_t({},g,{getOriginalState:y,condition:(S,A)=>w(S,A).then(Boolean),take:w,delay:Uc(m.signal),pause:er(m.signal),extra:o,signal:m.signal,fork:RS(m.signal,k),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((S,A,x)=>{S!==m&&(S.abort(qi),x.delete(S))})},cancel:()=>{m.abort(qi),h.pending.delete(m)},throwIfCancelled:()=>{it(m.signal)}})))}catch(S){S instanceof Ir||Rl(a,S,{raisedBy:"effect"})}finally{await Promise.all(k),m.abort(DS),i(h),h.pending.delete(m)}},s=NS(t,n);return{middleware:h=>d=>g=>{if(!kc(g))return d(g);if(Wc.match(g))return u(g.payload);if(zS.match(g)){s();return}if(Vc.match(g))return c(g.payload);let y=h.getState();const m=()=>{if(y===Dl)throw new Error(me(23));return y};let w;try{if(w=d(g),t.size>0){const k=h.getState(),S=Array.from(t.values());for(const A of S){let x=!1;try{x=A.predicate(g,k,y)}catch(P){x=!1,Rl(a,P,{raisedBy:"predicate"})}x&&f(A,g,h,m)}}}finally{y=Dl}return w},startListening:u,stopListening:c,clearListeners:s}};function me(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Gc={},Kc={},Xc={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let a,l=null;const u=o!=null&&o.includes("leading"),c=o==null||o.includes("trailing"),f=()=>{l!==null&&(n.apply(a,l),a=void 0,l=null)},s=()=>{c&&f(),g()};let p=null;const h=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,s()},r)},d=()=>{p!==null&&(clearTimeout(p),p=null)},g=()=>{d(),a=void 0,l=null},y=()=>{f()},m=function(...w){if(i!=null&&i.aborted)return;a=this,l=w;const k=p==null;h(),u&&k&&f()};return m.schedule=h,m.cancel=g,m.flush=y,i==null||i.addEventListener("abort",g,{once:!0}),m}e.debounce=t})(Xc);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xc;function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:a=!1,trailing:l=!0,maxWait:u}=o,c=Array(2);a&&(c[0]="leading"),l&&(c[1]="trailing");let f,s=null;const p=t.debounce(function(...g){f=r.apply(this,g),s=null},i,{edges:c}),h=function(...g){return u!=null&&(s===null&&(s=Date.now()),Date.now()-s>=u)?(f=r.apply(this,g),s=Date.now(),p.cancel(),p.schedule(),f):(p.apply(this,g),f)},d=()=>(p.flush(),f);return h.cancel=p.cancel,h.flush=d,h}e.debounce=n})(Kc);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kc;function n(r,i=0,o={}){const{leading:a=!0,trailing:l=!0}=o;return t.debounce(r,i,{leading:a,maxWait:i,trailing:l})}e.throttle=n})(Gc);var BS=Gc.throttle;const _$=ee(BS);var Yc=Symbol.for("immer-nothing"),Fl=Symbol.for("immer-draftable"),be=Symbol.for("immer-state");function Ee(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var an=Object.getPrototypeOf;function Tt(e){return!!e&&!!e[be]}function ut(e){var t;return e?Qc(e)||Array.isArray(e)||!!e[Fl]||!!((t=e.constructor)!=null&&t[Fl])||bn(e)||Dr(e):!1}var US=Object.prototype.constructor.toString(),Nl=new WeakMap;function Qc(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=Nl.get(n);return r===void 0&&(r=Function.toString.call(n),Nl.set(n,r)),r===US}function tr(e,t,n=!0){Mr(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Mr(e){const t=e[be];return t?t.type_:Array.isArray(e)?1:bn(e)?2:Dr(e)?3:0}function Wi(e,t){return Mr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jc(e,t,n){const r=Mr(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function qS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function bn(e){return e instanceof Map}function Dr(e){return e instanceof Set}function et(e){return e.copy_||e.base_}function Vi(e,t){if(bn(e))return new Map(e);if(Dr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Qc(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[be];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const a=i[o],l=r[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[a]})}return Object.create(an(e),r)}else{const r=an(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Vo(e,t=!1){return Lr(e)||Tt(e)||!ut(e)||(Mr(e)>1&&Object.defineProperties(e,{set:Pn,add:Pn,clear:Pn,delete:Pn}),Object.freeze(e),t&&Object.values(e).forEach(n=>Vo(n,!0))),e}function HS(){Ee(2)}var Pn={value:HS};function Lr(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var WS={};function st(e){const t=WS[e];return t||Ee(0,e),t}var ln;function Zc(){return ln}function VS(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function zl(e,t){t&&(st("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gi(e){Ki(e),e.drafts_.forEach(GS),e.drafts_=null}function Ki(e){e===ln&&(ln=e.parent_)}function jl(e){return ln=VS(ln,e)}function GS(e){const t=e[be];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Bl(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[be].modified_&&(Gi(t),Ee(4)),ut(e)&&(e=nr(t,e),t.parent_||rr(t,e)),t.patches_&&st("Patches").generateReplacementPatches_(n[be].base_,e,t.patches_,t.inversePatches_)):e=nr(t,n,[]),Gi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Yc?e:void 0}function nr(e,t,n){if(Lr(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[be];if(!i)return tr(t,(o,a)=>Ul(e,i,t,o,a,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return rr(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let a=o,l=!1;i.type_===3&&(a=new Set(o),o.clear(),l=!0),tr(a,(u,c)=>Ul(e,i,o,u,c,n,l),r),rr(e,o,!1),n&&e.patches_&&st("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Ul(e,t,n,r,i,o,a){if(i==null||typeof i!="object"&&!a)return;const l=Lr(i);if(!(l&&!a)){if(Tt(i)){const u=o&&t&&t.type_!==3&&!Wi(t.assigned_,r)?o.concat(r):void 0,c=nr(e,i,u);if(Jc(n,r,c),Tt(c))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(ut(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&l)return;nr(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(bn(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&rr(e,i)}}}function rr(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Vo(t,n)}function KS(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Zc(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Go;n&&(i=[r],o=un);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return r.draft_=l,r.revoke_=a,l}var Go={get(e,t){if(t===be)return e;const n=et(e);if(!Wi(n,t))return XS(e,n,t);const r=n[t];return e.finalized_||!ut(r)?r:r===ii(e.base_,t)?(oi(e),e.copy_[t]=Yi(r,e)):r},has(e,t){return t in et(e)},ownKeys(e){return Reflect.ownKeys(et(e))},set(e,t,n){const r=ef(et(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=ii(et(e),t),o=i==null?void 0:i[be];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(qS(n,i)&&(n!==void 0||Wi(e.base_,t)))return!0;oi(e),Xi(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ii(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,oi(e),Xi(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=et(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ee(11)},getPrototypeOf(e){return an(e.base_)},setPrototypeOf(){Ee(12)}},un={};tr(Go,(e,t)=>{un[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});un.deleteProperty=function(e,t){return un.set.call(this,e,t,void 0)};un.set=function(e,t,n){return Go.set.call(this,e[0],t,n,e[0])};function ii(e,t){const n=e[be];return(n?et(n):e)[t]}function XS(e,t,n){var i;const r=ef(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function ef(e,t){if(!(t in e))return;let n=an(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=an(n)}}function Xi(e){e.modified_||(e.modified_=!0,e.parent_&&Xi(e.parent_))}function oi(e){e.copy_||(e.copy_=Vi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var YS=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(u=o,...c){return a.produce(u,f=>n.call(this,f,...c))}}typeof n!="function"&&Ee(6),r!==void 0&&typeof r!="function"&&Ee(7);let i;if(ut(t)){const o=jl(this),a=Yi(t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?Gi(o):Ki(o)}return zl(o,r),Bl(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Yc&&(i=void 0),this.autoFreeze_&&Vo(i,!0),r){const o=[],a=[];st("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Ee(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,u=>t(u,...l));let r,i;return[this.produce(t,n,(a,l)=>{r=a,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ut(e)||Ee(8),Tt(e)&&(e=QS(e));const t=jl(this),n=Yi(e,void 0);return n[be].isManual_=!0,Ki(t),n}finishDraft(e,t){const n=e&&e[be];(!n||!n.isManual_)&&Ee(9);const{scope_:r}=n;return zl(r,t),Bl(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=st("Patches").applyPatches_;return Tt(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Yi(e,t){const n=bn(e)?st("MapSet").proxyMap_(e,t):Dr(e)?st("MapSet").proxySet_(e,t):KS(e,t);return(t?t.scope_:Zc()).drafts_.push(n),n}function QS(e){return Tt(e)||Ee(10,e),tf(e)}function tf(e){if(!ut(e)||Lr(e))return e;const t=e[be];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Vi(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Vi(e,!0);return tr(n,(i,o)=>{Jc(n,i,tf(o))},r),t&&(t.finalized_=!1),n}var JS=new YS;JS.produce;function A$(e){return e}var ZS={};/**
27
+ * @license React
28
+ * use-sync-external-store-with-selector.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var vn=oe;function e_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var t_=typeof Object.is=="function"?Object.is:e_,n_=vn.useSyncExternalStore,r_=vn.useRef,i_=vn.useEffect,o_=vn.useMemo,a_=vn.useDebugValue;ZS.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=r_(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=o_(function(){function u(h){if(!c){if(c=!0,f=h,h=r(h),i!==void 0&&a.hasValue){var d=a.value;if(i(d,h))return s=d}return s=h}if(d=s,t_(f,h))return d;var g=r(h);return i!==void 0&&i(d,g)?(f=h,d):(f=h,s=g)}var c=!1,f,s,p=n===void 0?null:n;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,n,r,i]);var l=n_(e,o[0],o[1]);return i_(function(){a.hasValue=!0,a.value=l},[l]),a_(l),l};function l_(e){e()}function u_(){let e=null,t=null;return{clear(){e=null,t=null},notify(){l_(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var ql={notify(){},get:()=>[]};function s_(e,t){let n,r=ql,i=0,o=!1;function a(g){f();const y=r.subscribe(g);let m=!1;return()=>{m||(m=!0,y(),s())}}function l(){r.notify()}function u(){d.onStateChange&&d.onStateChange()}function c(){return o}function f(){i++,n||(n=e.subscribe(u),r=u_())}function s(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=ql)}function p(){o||(o=!0,f())}function h(){o&&(o=!1,s())}const d={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:c,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return d}var c_=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",f_=c_(),h_=()=>typeof navigator<"u"&&navigator.product==="ReactNative",p_=h_(),d_=()=>f_||p_?oe.useLayoutEffect:oe.useEffect,g_=d_();function Hl(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function E$(e,t){if(Hl(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Hl(e[n[i]],t[n[i]]))return!1;return!0}var ai=Symbol.for("react-redux-context"),li=typeof globalThis<"u"?globalThis:{};function m_(){if(!oe.createContext)return{};const e=li[ai]??(li[ai]=new Map);let t=e.get(oe.createContext);return t||(t=oe.createContext(null),e.set(oe.createContext,t)),t}var y_=m_();function b_(e){const{children:t,context:n,serverState:r,store:i}=e,o=oe.useMemo(()=>{const u=s_(i);return{store:i,subscription:u,getServerState:r?()=>r:void 0}},[i,r]),a=oe.useMemo(()=>i.getState(),[i]);g_(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const l=n||y_;return oe.createElement(l.Provider,{value:o},t)}var C$=b_,nf={},rf={},of={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=No;function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(of);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=of;function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(rf);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zo,n=rf;function r(i,o,a){a&&typeof a!="number"&&t.isIterateeCall(i,o,a)&&(o=a=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),a=a===void 0?i<o?1:-1:n.toFinite(a);const l=Math.max(Math.ceil((o-i)/(a||1)),0),u=new Array(l);for(let c=0;c<l;c++)u[c]=i,i+=a;return u}e.range=r})(nf);var v_=nf.range;const O$=ee(v_);var Nt=1e9,w_={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Xo,Y=!0,we="[DecimalError] ",ot=we+"Invalid argument: ",Ko=we+"Exponent out of range: ",zt=Math.floor,tt=Math.pow,x_=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,de,Z=1e7,X=7,af=9007199254740991,ir=zt(af/X),M={};M.absoluteValue=M.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};M.comparedTo=M.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};M.decimalPlaces=M.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*X;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};M.dividedBy=M.div=function(e){return Ue(this,new this.constructor(e))};M.dividedToIntegerBy=M.idiv=function(e){var t=this,n=t.constructor;return W(Ue(t,new n(e),0,1),n.precision)};M.equals=M.eq=function(e){return!this.cmp(e)};M.exponent=function(){return J(this)};M.greaterThan=M.gt=function(e){return this.cmp(e)>0};M.greaterThanOrEqualTo=M.gte=function(e){return this.cmp(e)>=0};M.isInteger=M.isint=function(){return this.e>this.d.length-2};M.isNegative=M.isneg=function(){return this.s<0};M.isPositive=M.ispos=function(){return this.s>0};M.isZero=function(){return this.s===0};M.lessThan=M.lt=function(e){return this.cmp(e)<0};M.lessThanOrEqualTo=M.lte=function(e){return this.cmp(e)<1};M.logarithm=M.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(de))throw Error(we+"NaN");if(n.s<1)throw Error(we+(n.s?"NaN":"-Infinity"));return n.eq(de)?new r(0):(Y=!1,t=Ue(sn(n,o),sn(e,o),o),Y=!0,W(t,i))};M.minus=M.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sf(t,e):lf(t,(e.s=-e.s,e))};M.modulo=M.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(we+"NaN");return n.s?(Y=!1,t=Ue(n,e,0,1).times(e),Y=!0,n.minus(t)):W(new r(n),i)};M.naturalExponential=M.exp=function(){return uf(this)};M.naturalLogarithm=M.ln=function(){return sn(this)};M.negated=M.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};M.plus=M.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lf(t,e):sf(t,(e.s=-e.s,e))};M.precision=M.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ot+e);if(t=J(i)+1,r=i.d.length-1,n=r*X+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};M.squareRoot=M.sqrt=function(){var e,t,n,r,i,o,a,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(we+"NaN")}for(e=J(l),Y=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=$e(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=zt((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new u(t)):r=new u(i.toString()),n=u.precision,i=a=n+3;;)if(o=r,r=o.plus(Ue(l,o,a+2)).times(.5),$e(o.d).slice(0,a)===(t=$e(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(W(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;a+=4}return Y=!0,W(r,n)};M.times=M.mul=function(e){var t,n,r,i,o,a,l,u,c,f=this,s=f.constructor,p=f.d,h=(e=new s(e)).d;if(!f.s||!e.s)return new s(0);for(e.s*=f.s,n=f.e+e.e,u=p.length,c=h.length,u<c&&(o=p,p=h,h=o,a=u,u=c,c=a),o=[],a=u+c,r=a;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=u+r;i>r;)l=o[i]+h[r]*p[i-r-1]+t,o[i--]=l%Z|0,t=l/Z|0;o[i]=(o[i]+t)%Z|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Y?W(e,s.precision):e};M.toDecimalPlaces=M.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Me(e,0,Nt),t===void 0?t=r.rounding:Me(t,0,8),W(n,e+J(n)+1,t))};M.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ct(r,!0):(Me(e,0,Nt),t===void 0?t=i.rounding:Me(t,0,8),r=W(new i(r),e+1,t),n=ct(r,!0,e+1)),n};M.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?ct(i):(Me(e,0,Nt),t===void 0?t=o.rounding:Me(t,0,8),r=W(new o(i),e+J(i)+1,t),n=ct(r.abs(),!1,e+J(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};M.toInteger=M.toint=function(){var e=this,t=e.constructor;return W(new t(e),J(e)+1,t.rounding)};M.toNumber=function(){return+this};M.toPower=M.pow=function(e){var t,n,r,i,o,a,l=this,u=l.constructor,c=12,f=+(e=new u(e));if(!e.s)return new u(de);if(l=new u(l),!l.s){if(e.s<1)throw Error(we+"Infinity");return l}if(l.eq(de))return l;if(r=u.precision,e.eq(de))return W(l,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=l.s,a){if((n=f<0?-f:f)<=af){for(i=new u(de),t=Math.ceil(r/X+4),Y=!1;n%2&&(i=i.times(l),Vl(i.d,t)),n=zt(n/2),n!==0;)l=l.times(l),Vl(l.d,t);return Y=!0,e.s<0?new u(de).div(i):W(i,r)}}else if(o<0)throw Error(we+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,Y=!1,i=e.times(sn(l,r+c)),Y=!0,i=uf(i),i.s=o,i};M.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=J(i),r=ct(i,n<=o.toExpNeg||n>=o.toExpPos)):(Me(e,1,Nt),t===void 0?t=o.rounding:Me(t,0,8),i=W(new o(i),e,t),n=J(i),r=ct(i,e<=n||n<=o.toExpNeg,e)),r};M.toSignificantDigits=M.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Me(e,1,Nt),t===void 0?t=r.rounding:Me(t,0,8)),W(new r(n),e,t)};M.toString=M.valueOf=M.val=M.toJSON=M[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=J(e),n=e.constructor;return ct(e,t<=n.toExpNeg||t>=n.toExpPos)};function lf(e,t){var n,r,i,o,a,l,u,c,f=e.constructor,s=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Y?W(t,s):t;if(u=e.d,c=t.d,a=e.e,i=t.e,u=u.slice(),o=a-i,o){for(o<0?(r=u,o=-o,l=c.length):(r=c,i=a,l=u.length),a=Math.ceil(s/X),l=a>l?a+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=u.length,o=c.length,l-o<0&&(o=l,r=c,c=u,u=r),n=0;o;)n=(u[--o]=u[o]+c[o]+n)/Z|0,u[o]%=Z;for(n&&(u.unshift(n),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,Y?W(t,s):t}function Me(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ot+e)}function $e(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=X-r.length,n&&(o+=Ge(n)),o+=r;a=e[t],r=a+"",n=X-r.length,n&&(o+=Ge(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Ue=function(){function e(r,i){var o,a=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+a,r[l]=o%Z|0,a=o/Z|0;return a&&r.unshift(a),r}function t(r,i,o,a){var l,u;if(o!=a)u=o>a?1:-1;else for(l=u=0;l<o;l++)if(r[l]!=i[l]){u=r[l]>i[l]?1:-1;break}return u}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*Z+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var l,u,c,f,s,p,h,d,g,y,m,w,k,S,A,x,P,$,D=r.constructor,_=r.s==i.s?1:-1,I=r.d,O=i.d;if(!r.s)return new D(r);if(!i.s)throw Error(we+"Division by zero");for(u=r.e-i.e,P=O.length,A=I.length,h=new D(_),d=h.d=[],c=0;O[c]==(I[c]||0);)++c;if(O[c]>(I[c]||0)&&--u,o==null?w=o=D.precision:a?w=o+(J(r)-J(i))+1:w=o,w<0)return new D(0);if(w=w/X+2|0,c=0,P==1)for(f=0,O=O[0],w++;(c<A||f)&&w--;c++)k=f*Z+(I[c]||0),d[c]=k/O|0,f=k%O|0;else{for(f=Z/(O[0]+1)|0,f>1&&(O=e(O,f),I=e(I,f),P=O.length,A=I.length),S=P,g=I.slice(0,P),y=g.length;y<P;)g[y++]=0;$=O.slice(),$.unshift(0),x=O[0],O[1]>=Z/2&&++x;do f=0,l=t(O,g,P,y),l<0?(m=g[0],P!=y&&(m=m*Z+(g[1]||0)),f=m/x|0,f>1?(f>=Z&&(f=Z-1),s=e(O,f),p=s.length,y=g.length,l=t(s,g,p,y),l==1&&(f--,n(s,P<p?$:O,p))):(f==0&&(l=f=1),s=O.slice()),p=s.length,p<y&&s.unshift(0),n(g,s,y),l==-1&&(y=g.length,l=t(O,g,P,y),l<1&&(f++,n(g,P<y?$:O,y))),y=g.length):l===0&&(f++,g=[0]),d[c++]=f,l&&g[0]?g[y++]=I[S]||0:(g=[I[S]],y=1);while((S++<A||g[0]!==void 0)&&w--)}return d[0]||d.shift(),h.e=u,W(h,a?o+J(h)+1:o)}}();function uf(e,t){var n,r,i,o,a,l,u=0,c=0,f=e.constructor,s=f.precision;if(J(e)>16)throw Error(Ko+J(e));if(!e.s)return new f(de);for(Y=!1,l=s,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(tt(2,c))/Math.LN10*2+5|0,l+=r,n=i=o=new f(de),f.precision=l;;){if(i=W(i.times(e),l),n=n.times(++u),a=o.plus(Ue(i,n,l)),$e(a.d).slice(0,l)===$e(o.d).slice(0,l)){for(;c--;)o=W(o.times(o),l);return f.precision=s,t==null?(Y=!0,W(o,s)):o}o=a}}function J(e){for(var t=e.e*X,n=e.d[0];n>=10;n/=10)t++;return t}function ui(e,t,n){if(t>e.LN10.sd())throw Y=!0,n&&(e.precision=n),Error(we+"LN10 precision limit exceeded");return W(new e(e.LN10),t)}function Ge(e){for(var t="";e--;)t+="0";return t}function sn(e,t){var n,r,i,o,a,l,u,c,f,s=1,p=10,h=e,d=h.d,g=h.constructor,y=g.precision;if(h.s<1)throw Error(we+(h.s?"NaN":"-Infinity"));if(h.eq(de))return new g(0);if(t==null?(Y=!1,c=y):c=t,h.eq(10))return t==null&&(Y=!0),ui(g,c);if(c+=p,g.precision=c,n=$e(d),r=n.charAt(0),o=J(h),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=$e(h.d),r=n.charAt(0),s++;o=J(h),r>1?(h=new g("0."+n),o++):h=new g(r+"."+n.slice(1))}else return u=ui(g,c+2,y).times(o+""),h=sn(new g(r+"."+n.slice(1)),c-p).plus(u),g.precision=y,t==null?(Y=!0,W(h,y)):h;for(l=a=h=Ue(h.minus(de),h.plus(de),c),f=W(h.times(h),c),i=3;;){if(a=W(a.times(f),c),u=l.plus(Ue(a,new g(i),c)),$e(u.d).slice(0,c)===$e(l.d).slice(0,c))return l=l.times(2),o!==0&&(l=l.plus(ui(g,c+2,y).times(o+""))),l=Ue(l,new g(s),c),g.precision=y,t==null?(Y=!0,W(l,y)):l;l=u,i+=2}}function Wl(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=zt(n/X),e.d=[],r=(n+1)%X,n<0&&(r+=X),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=X;r<i;)e.d.push(+t.slice(r,r+=X));t=t.slice(r),r=X-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Y&&(e.e>ir||e.e<-ir))throw Error(Ko+n)}else e.s=0,e.e=0,e.d=[0];return e}function W(e,t,n){var r,i,o,a,l,u,c,f,s=e.d;for(a=1,o=s[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=X,i=t,c=s[f=0];else{if(f=Math.ceil((r+1)/X),o=s.length,f>=o)return e;for(c=o=s[f],a=1;o>=10;o/=10)a++;r%=X,i=r-X+a}if(n!==void 0&&(o=tt(10,a-i-1),l=c/o%10|0,u=t<0||s[f+1]!==void 0||c%o,u=n<4?(l||u)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||u||n==6&&(r>0?i>0?c/tt(10,a-i):0:s[f-1])%10&1||n==(e.s<0?8:7))),t<1||!s[0])return u?(o=J(e),s.length=1,t=t-o-1,s[0]=tt(10,(X-t%X)%X),e.e=zt(-t/X)||0):(s.length=1,s[0]=e.e=e.s=0),e;if(r==0?(s.length=f,o=1,f--):(s.length=f+1,o=tt(10,X-r),s[f]=i>0?(c/tt(10,a-i)%tt(10,i)|0)*o:0),u)for(;;)if(f==0){(s[0]+=o)==Z&&(s[0]=1,++e.e);break}else{if(s[f]+=o,s[f]!=Z)break;s[f--]=0,o=1}for(r=s.length;s[--r]===0;)s.pop();if(Y&&(e.e>ir||e.e<-ir))throw Error(Ko+J(e));return e}function sf(e,t){var n,r,i,o,a,l,u,c,f,s,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Y?W(t,h):t;if(u=e.d,s=t.d,r=t.e,c=e.e,u=u.slice(),a=c-r,a){for(f=a<0,f?(n=u,a=-a,l=s.length):(n=s,r=c,l=u.length),i=Math.max(Math.ceil(h/X),l)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=u.length,l=s.length,f=i<l,f&&(l=i),i=0;i<l;i++)if(u[i]!=s[i]){f=u[i]<s[i];break}a=0}for(f&&(n=u,u=s,s=n,t.s=-t.s),l=u.length,i=s.length-l;i>0;--i)u[l++]=0;for(i=s.length;i>a;){if(u[--i]<s[i]){for(o=i;o&&u[--o]===0;)u[o]=Z-1;--u[o],u[i]+=Z}u[i]-=s[i]}for(;u[--l]===0;)u.pop();for(;u[0]===0;u.shift())--r;return u[0]?(t.d=u,t.e=r,Y?W(t,h):t):new p(0)}function ct(e,t,n){var r,i=J(e),o=$e(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Ge(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ge(-i-1)+o,n&&(r=n-a)>0&&(o+=Ge(r))):i>=a?(o+=Ge(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Ge(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Ge(r))),e.s<0?"-"+o:o}function Vl(e,t){if(e.length>t)return e.length=t,!0}function cf(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ot+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return Wl(a,o.toString())}else if(typeof o!="string")throw Error(ot+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,x_.test(o))Wl(a,o);else throw Error(ot+o)}if(i.prototype=M,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=cf,i.config=i.set=k_,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function k_(e){if(!e||typeof e!="object")throw Error(we+"Object expected");var t,n,r,i=["precision",1,Nt,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(zt(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(ot+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ot+n+": "+r);return this}var Xo=cf(w_);de=new Xo(1);const P$=Xo;class T$ extends Map{constructor(t,n=A_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Gl(this,t))}has(t){return super.has(Gl(this,t))}set(t,n){return super.set(S_(this,t),n)}delete(t){return super.delete(__(this,t))}}function Gl({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function S_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function __({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function A_(e){return e!==null&&typeof e=="object"?e.valueOf():e}var ff={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,c,f){this.fn=u,this.context=c,this.once=f||!1}function o(u,c,f,s,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,s||u,p),d=n?n+c:c;return u._events[d]?u._events[d].fn?u._events[d]=[u._events[d],h]:u._events[d].push(h):(u._events[d]=h,u._eventsCount++),u}function a(u,c){--u._eventsCount===0?u._events=new r:delete u._events[c]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],f,s;if(this._eventsCount===0)return c;for(s in f=this._events)t.call(f,s)&&c.push(n?s.slice(1):s);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},l.prototype.listeners=function(c){var f=n?n+c:c,s=this._events[f];if(!s)return[];if(s.fn)return[s.fn];for(var p=0,h=s.length,d=new Array(h);p<h;p++)d[p]=s[p].fn;return d},l.prototype.listenerCount=function(c){var f=n?n+c:c,s=this._events[f];return s?s.fn?1:s.length:0},l.prototype.emit=function(c,f,s,p,h,d){var g=n?n+c:c;if(!this._events[g])return!1;var y=this._events[g],m=arguments.length,w,k;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),m){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,f),!0;case 3:return y.fn.call(y.context,f,s),!0;case 4:return y.fn.call(y.context,f,s,p),!0;case 5:return y.fn.call(y.context,f,s,p,h),!0;case 6:return y.fn.call(y.context,f,s,p,h,d),!0}for(k=1,w=new Array(m-1);k<m;k++)w[k-1]=arguments[k];y.fn.apply(y.context,w)}else{var S=y.length,A;for(k=0;k<S;k++)switch(y[k].once&&this.removeListener(c,y[k].fn,void 0,!0),m){case 1:y[k].fn.call(y[k].context);break;case 2:y[k].fn.call(y[k].context,f);break;case 3:y[k].fn.call(y[k].context,f,s);break;case 4:y[k].fn.call(y[k].context,f,s,p);break;default:if(!w)for(A=1,w=new Array(m-1);A<m;A++)w[A-1]=arguments[A];y[k].fn.apply(y[k].context,w)}}return!0},l.prototype.on=function(c,f,s){return o(this,c,f,s,!1)},l.prototype.once=function(c,f,s){return o(this,c,f,s,!0)},l.prototype.removeListener=function(c,f,s,p){var h=n?n+c:c;if(!this._events[h])return this;if(!f)return a(this,h),this;var d=this._events[h];if(d.fn)d.fn===f&&(!p||d.once)&&(!s||d.context===s)&&a(this,h);else{for(var g=0,y=[],m=d.length;g<m;g++)(d[g].fn!==f||p&&!d[g].once||s&&d[g].context!==s)&&y.push(d[g]);y.length?this._events[h]=y.length===1?y[0]:y:a(this,h)}return this},l.prototype.removeAllListeners=function(c){var f;return c?(f=n?n+c:c,this._events[f]&&a(this,f)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(ff);var E_=ff.exports;const I$=ee(E_);var hf={},pf={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){if(n.length===0)return;let i=n[0],o=r(i,0,n);for(let a=1;a<n.length;a++){const l=n[a],u=r(l,a,n);u>o&&(o=u,i=l)}return i}e.maxBy=t})(pf);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pf,n=mn,r=xr;function i(o,a){if(o!=null)return t.maxBy(Array.from(o),r.iteratee(a??n.identity))}e.maxBy=i})(hf);var C_=hf.maxBy;const $$=ee(C_);var df={},gf={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){if(n.length===0)return;let i=n[0],o=r(i,0,n);for(let a=1;a<n.length;a++){const l=n[a],u=r(l,a,n);u<o&&(o=u,i=l)}return i}e.minBy=t})(gf);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gf,n=mn,r=xr;function i(o,a){if(o!=null)return t.minBy(Array.from(o),r.iteratee(a??n.identity))}e.minBy=i})(df);var O_=df.minBy;const M$=ee(O_);var mf={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!((i=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&i.writable)?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(mf);var P_=mf.isPlainObject;const D$=ee(P_);var yf={},bf={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(bf);var vf={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(vf);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bf,n=vf,r=wr;function i(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=i})(yf);var T_=yf.last;const L$=ee(T_);function Kl(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function I_(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,M_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,D_={};function Xl(e,t){return(D_.jsx?M_:$_).test(e)}const L_=/[ \t\n\f\r]/g;function R_(e){return typeof e=="object"?e.type==="text"?Yl(e.value):!1:Yl(e)}function Yl(e){return e.replace(L_,"")===""}class wn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}wn.prototype.normal={};wn.prototype.property={};wn.prototype.space=void 0;function wf(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new wn(n,r,t)}function cn(e){return e.toLowerCase()}class fe{constructor(t,n){this.attribute=n,this.property=t}}fe.prototype.attribute="";fe.prototype.booleanish=!1;fe.prototype.boolean=!1;fe.prototype.commaOrSpaceSeparated=!1;fe.prototype.commaSeparated=!1;fe.prototype.defined=!1;fe.prototype.mustUseProperty=!1;fe.prototype.number=!1;fe.prototype.overloadedBoolean=!1;fe.prototype.property="";fe.prototype.spaceSeparated=!1;fe.prototype.space=void 0;let F_=0;const N=gt(),Q=gt(),Qi=gt(),C=gt(),G=gt(),At=gt(),pe=gt();function gt(){return 2**++F_}const Ji=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:Q,commaOrSpaceSeparated:pe,commaSeparated:At,number:C,overloadedBoolean:Qi,spaceSeparated:G},Symbol.toStringTag,{value:"Module"})),si=Object.keys(Ji);class Yo extends fe{constructor(t,n,r,i){let o=-1;if(super(t,n),Ql(this,"space",i),typeof r=="number")for(;++o<si.length;){const a=si[o];Ql(this,si[o],(r&Ji[a])===Ji[a])}}}Yo.prototype.defined=!0;function Ql(e,t,n){n&&(e[t]=n)}function jt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Yo(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[cn(r)]=r,n[cn(o.attribute)]=r}return new wn(t,n,e.space)}const xf=jt({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:C,ariaColIndex:C,ariaColSpan:C,ariaControls:G,ariaCurrent:null,ariaDescribedBy:G,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:G,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:G,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:G,ariaLevel:C,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:G,ariaPlaceholder:null,ariaPosInSet:C,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:G,ariaRowCount:C,ariaRowIndex:C,ariaRowSpan:C,ariaSelected:Q,ariaSetSize:C,ariaSort:null,ariaValueMax:C,ariaValueMin:C,ariaValueNow:C,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function kf(e,t){return t in e?e[t]:t}function Sf(e,t){return kf(e,t.toLowerCase())}const N_=jt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:At,acceptCharset:G,accessKey:G,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:G,autoFocus:N,autoPlay:N,blocking:G,capture:null,charSet:null,checked:N,cite:null,className:G,cols:C,colSpan:null,content:null,contentEditable:Q,controls:N,controlsList:G,coords:C|At,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:Qi,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:G,height:C,hidden:Qi,high:C,href:null,hrefLang:null,htmlFor:G,httpEquiv:G,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:G,itemRef:G,itemScope:N,itemType:G,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:C,manifest:null,max:null,maxLength:C,media:null,method:null,min:null,minLength:C,multiple:N,muted:N,name:null,nonce:null,noModule:N,noValidate:N,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:N,optimum:C,pattern:null,ping:G,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:G,required:N,reversed:N,rows:C,rowSpan:C,sandbox:G,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shape:null,size:C,sizes:null,slot:null,span:C,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:C,step:null,style:null,tabIndex:C,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:Q,width:C,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:G,axis:null,background:null,bgColor:null,border:C,borderColor:null,bottomMargin:C,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N,declare:N,event:null,face:null,frame:null,frameBorder:null,hSpace:C,leftMargin:C,link:null,longDesc:null,lowSrc:null,marginHeight:C,marginWidth:C,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:C,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:C,valueType:null,version:null,vAlign:null,vLink:null,vSpace:C,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N,disableRemotePlayback:N,prefix:null,property:null,results:C,security:null,unselectable:null},space:"html",transform:Sf}),z_=jt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pe,accentHeight:C,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:C,amplitude:C,arabicForm:null,ascent:C,attributeName:null,attributeType:null,azimuth:C,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:C,by:null,calcMode:null,capHeight:C,className:G,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:C,diffuseConstant:C,direction:null,display:null,dur:null,divisor:C,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:C,enableBackground:null,end:null,event:null,exponent:C,externalResourcesRequired:null,fill:null,fillOpacity:C,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:At,g2:At,glyphName:At,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:C,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:C,horizOriginX:C,horizOriginY:C,id:null,ideographic:C,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:C,k:C,k1:C,k2:C,k3:C,k4:C,kernelMatrix:pe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:C,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:C,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:C,overlineThickness:C,paintOrder:null,panose1:null,path:null,pathLength:C,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:G,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:C,pointsAtY:C,pointsAtZ:C,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pe,rev:pe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pe,requiredFeatures:pe,requiredFonts:pe,requiredFormats:pe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:C,specularExponent:C,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:C,strikethroughThickness:C,string:null,stroke:null,strokeDashArray:pe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:C,strokeOpacity:C,strokeWidth:null,style:null,surfaceScale:C,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pe,tabIndex:C,tableValues:null,target:null,targetX:C,targetY:C,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:C,underlineThickness:C,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:C,values:null,vAlphabetic:C,vMathematical:C,vectorEffect:null,vHanging:C,vIdeographic:C,version:null,vertAdvY:C,vertOriginX:C,vertOriginY:C,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:C,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:kf}),_f=jt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Af=jt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sf}),Ef=jt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),j_={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},B_=/[A-Z]/g,Jl=/-[a-z]/g,U_=/^data[-\w.:]+$/i;function Cf(e,t){const n=cn(t);let r=t,i=fe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&U_.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Jl,H_);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Jl.test(o)){let a=o.replace(B_,q_);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Yo}return new i(r,t)}function q_(e){return"-"+e.toLowerCase()}function H_(e){return e.charAt(1).toUpperCase()}const Of=wf([xf,N_,_f,Af,Ef],"html"),Rr=wf([xf,z_,_f,Af,Ef],"svg");function Zl(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function W_(e){return e.join(" ").trim()}var Qo={},eu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,V_=/\n/g,G_=/^\s*/,K_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,X_=/^:\s*/,Y_=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Q_=/^[;\s]*/,J_=/^\s+|\s+$/g,Z_=`
35
+ `,tu="/",nu="*",nt="",eA="comment",tA="declaration";function nA(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(d){var g=d.match(V_);g&&(n+=g.length);var y=d.lastIndexOf(Z_);r=~y?d.length-y:r+d.length}function o(){var d={line:n,column:r};return function(g){return g.position=new a(d),c(),g}}function a(d){this.start=d,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function l(d){var g=new Error(t.source+":"+n+":"+r+": "+d);if(g.reason=d,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function u(d){var g=d.exec(e);if(g){var y=g[0];return i(y),e=e.slice(y.length),g}}function c(){u(G_)}function f(d){var g;for(d=d||[];g=s();)g!==!1&&d.push(g);return d}function s(){var d=o();if(!(tu!=e.charAt(0)||nu!=e.charAt(1))){for(var g=2;nt!=e.charAt(g)&&(nu!=e.charAt(g)||tu!=e.charAt(g+1));)++g;if(g+=2,nt===e.charAt(g-1))return l("End of comment missing");var y=e.slice(2,g-2);return r+=2,i(y),e=e.slice(g),r+=2,d({type:eA,comment:y})}}function p(){var d=o(),g=u(K_);if(g){if(s(),!u(X_))return l("property missing ':'");var y=u(Y_),m=d({type:tA,property:ru(g[0].replace(eu,nt)),value:y?ru(y[0].replace(eu,nt)):nt});return u(Q_),m}}function h(){var d=[];f(d);for(var g;g=p();)g!==!1&&(d.push(g),f(d));return d}return c(),h()}function ru(e){return e?e.replace(J_,nt):nt}var rA=nA,iA=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=aA;const oA=iA(rA);function aA(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,oA.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:a,value:l}=o;i?t(a,l,o):l&&(n=n||{},n[a]=l)}),n}var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.camelCase=void 0;var lA=/^--[a-zA-Z0-9_-]+$/,uA=/-([a-z])/g,sA=/^[^-]+$/,cA=/^-(webkit|moz|ms|o|khtml)-/,fA=/^-(ms)-/,hA=function(e){return!e||sA.test(e)||lA.test(e)},pA=function(e,t){return t.toUpperCase()},iu=function(e,t){return"".concat(t,"-")},dA=function(e,t){return t===void 0&&(t={}),hA(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(fA,iu):e=e.replace(cA,iu),e.replace(uA,pA))};Fr.camelCase=dA;var gA=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},mA=gA(Qo),yA=Fr;function Zi(e,t){var n={};return!e||typeof e!="string"||(0,mA.default)(e,function(r,i){r&&i&&(n[(0,yA.camelCase)(r,t)]=i)}),n}Zi.default=Zi;var bA=Zi;const vA=ee(bA),Pf=Tf("end"),Jo=Tf("start");function Tf(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function wA(e){const t=Jo(e),n=Pf(e);if(t&&n)return{start:t,end:n}}function Yt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ou(e.position):"start"in e||"end"in e?ou(e):"line"in e||"column"in e?eo(e):""}function eo(e){return au(e&&e.line)+":"+au(e&&e.column)}function ou(e){return eo(e&&e.start)+"-"+eo(e&&e.end)}function au(e){return e&&typeof e=="number"?e:1}class le extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=Yt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}le.prototype.file="";le.prototype.name="";le.prototype.reason="";le.prototype.message="";le.prototype.stack="";le.prototype.column=void 0;le.prototype.line=void 0;le.prototype.ancestors=void 0;le.prototype.cause=void 0;le.prototype.fatal=void 0;le.prototype.place=void 0;le.prototype.ruleId=void 0;le.prototype.source=void 0;const Zo={}.hasOwnProperty,xA=new Map,kA=/[A-Z]/g,SA=new Set(["table","tbody","thead","tfoot","tr"]),_A=new Set(["td","th"]),If="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function AA(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=MA(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=$A(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Rr:Of,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=$f(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function $f(e,t,n){if(t.type==="element")return EA(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return CA(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return PA(e,t,n);if(t.type==="mdxjsEsm")return OA(e,t);if(t.type==="root")return TA(e,t,n);if(t.type==="text")return IA(e,t)}function EA(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Rr,e.schema=i),e.ancestors.push(t);const o=Df(e,t.tagName,!1),a=DA(e,t);let l=ta(e,t);return SA.has(t.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!R_(u):!0})),Mf(e,a,o,t),ea(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function CA(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}fn(e,t.position)}function OA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fn(e,t.position)}function PA(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Rr,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Df(e,t.name,!0),a=LA(e,t),l=ta(e,t);return Mf(e,a,o,t),ea(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function TA(e,t,n){const r={};return ea(r,ta(e,t)),e.create(t,e.Fragment,r,n)}function IA(e,t){return t.value}function Mf(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ea(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function $A(e,t,n){return r;function r(i,o,a,l){const c=Array.isArray(a.children)?n:t;return l?c(o,a,l):c(o,a)}}function MA(e,t){return n;function n(r,i,o,a){const l=Array.isArray(o.children),u=Jo(r);return t(i,o,a,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function DA(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Zo.call(t.properties,i)){const o=RA(e,i,t.properties[i]);if(o){const[a,l]=o;e.tableCellAlignToStyle&&a==="align"&&typeof l=="string"&&_A.has(t.tagName)?r=l:n[a]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function LA(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const l=a.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else fn(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else fn(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function ta(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:xA;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const c=i.get(u)||0;a=u+"-"+c,i.set(u,c+1)}}const l=$f(e,o,a);l!==void 0&&n.push(l)}return n}function RA(e,t,n){const r=Cf(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?I_(n):W_(n)),r.property==="style"){let i=typeof n=="object"?n:FA(e,String(n));return e.stylePropertyNameCase==="css"&&(i=NA(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?j_[r.property]||r.property:r.attribute,n]}}function FA(e,t){try{return vA(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new le("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=If+"#cannot-parse-style-attribute",i}}function Df(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const l=Xl(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=a}else r=Xl(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Zo.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);fn(e)}function fn(e,t){const n=new le("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=If+"#cannot-handle-mdx-estrees-without-createevaluater",n}function NA(e){const t={};let n;for(n in e)Zo.call(e,n)&&(t[zA(n)]=e[n]);return t}function zA(e){let t=e.replace(kA,jA);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function jA(e){return"-"+e.toLowerCase()}const ci={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},BA={};function na(e,t){const n=BA,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Lf(e,r,i)}function Lf(e,t,n){if(UA(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lu(e.children,t,n)}return Array.isArray(e)?lu(e,t,n):""}function lu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Lf(e[i],t,n);return r.join("")}function UA(e){return!!(e&&typeof e=="object")}const uu=document.createElement("i");function hn(e){const t="&"+e+";";uu.innerHTML=t;const n=uu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ye(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function ve(e,t){return e.length>0?(ye(e,e.length,0,t),e):t}const su={}.hasOwnProperty;function Rf(e){const t={};let n=-1;for(;++n<e.length;)qA(t,e[n]);return t}function qA(e,t){let n;for(n in t){const i=(su.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){su.call(i,a)||(i[a]=[]);const l=o[a];HA(i[a],Array.isArray(l)?l:l?[l]:[])}}}function HA(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ye(e,0,0,r)}function Ff(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ce(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=Ke(/[A-Za-z]/),ae=Ke(/[\dA-Za-z]/),WA=Ke(/[#-'*+\--9=?A-Z^-~]/);function or(e){return e!==null&&(e<32||e===127)}const to=Ke(/\d/),VA=Ke(/[\dA-Fa-f]/),GA=Ke(/[!-/:-@[-`{-~]/);function R(e){return e!==null&&e<-2}function V(e){return e!==null&&(e<0||e===32)}function z(e){return e===-2||e===-1||e===32}const Nr=Ke(new RegExp("\\p{P}|\\p{S}","u")),ft=Ke(/\s/);function Ke(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Bt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&ae(e.charCodeAt(n+1))&&ae(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(a=String.fromCharCode(o,l),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function B(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(u){return z(u)?(e.enter(n),l(u)):t(u)}function l(u){return z(u)&&o++<i?(e.consume(u),l):(e.exit(n),t(u))}}const KA={tokenize:XA};function XA(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),B(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return R(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),a)}}const YA={tokenize:QA},cu={tokenize:JA};function QA(e){const t=this,n=[];let r=0,i,o,a;return l;function l(k){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,u,c)(k)}return c(k)}function u(k){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const S=t.events.length;let A=S,x;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){x=t.events[A][1].end;break}m(r);let P=S;for(;P<t.events.length;)t.events[P][1].end={...x},P++;return ye(t.events,A+1,0,t.events.slice(S)),t.events.length=P,c(k)}return l(k)}function c(k){if(r===n.length){if(!i)return p(k);if(i.currentConstruct&&i.currentConstruct.concrete)return d(k);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cu,f,s)(k)}function f(k){return i&&w(),m(r),p(k)}function s(k){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,d(k)}function p(k){return t.containerState={},e.attempt(cu,h,d)(k)}function h(k){return r++,n.push([t.currentConstruct,t.containerState]),p(k)}function d(k){if(k===null){i&&w(),m(0),e.consume(k);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(k)}function g(k){if(k===null){y(e.exit("chunkFlow"),!0),m(0),e.consume(k);return}return R(k)?(e.consume(k),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(k),g)}function y(k,S){const A=t.sliceStream(k);if(S&&A.push(null),k.previous=o,o&&(o.next=k),o=k,i.defineSkip(k.start),i.write(A),t.parser.lazy[k.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<a&&(!i.events[x][1].end||i.events[x][1].end.offset>a))return;const P=t.events.length;let $=P,D,_;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(D){_=t.events[$][1].end;break}D=!0}for(m(r),x=P;x<t.events.length;)t.events[x][1].end={..._},x++;ye(t.events,$+1,0,t.events.slice(P)),t.events.length=x}}function m(k){let S=n.length;for(;S-- >k;){const A=n[S];t.containerState=A[1],A[0].exit.call(t,e)}n.length=k}function w(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function JA(e,t,n){return B(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function It(e){if(e===null||V(e)||ft(e))return 1;if(Nr(e))return 2}function zr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const no={name:"attention",resolveAll:ZA,tokenize:eE};function ZA(e,t){let n=-1,r,i,o,a,l,u,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const s={...e[r][1].end},p={...e[n][1].start};fu(s,-u),fu(p,u),a={type:u>1?"strongSequence":"emphasisSequence",start:s,end:{...e[r][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},e[r][1].end={...a.start},e[n][1].start={...l.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ve(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ve(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=ve(c,zr(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ve(c,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=ve(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ye(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function eE(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=It(r);let o;return a;function a(u){return o=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===o)return e.consume(u),l;const c=e.exit("attentionSequence"),f=It(u),s=!f||f===2&&i||n.includes(u),p=!i||i===2&&f||n.includes(r);return c._open=!!(o===42?s:s&&(i||!p)),c._close=!!(o===42?p:p&&(f||!s)),t(u)}}function fu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const tE={name:"autolink",tokenize:nE};function nE(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return ue(h)?(e.consume(h),a):h===64?n(h):c(h)}function a(h){return h===43||h===45||h===46||ae(h)?(r=1,l(h)):c(h)}function l(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||ae(h))&&r++<32?(e.consume(h),l):(r=0,c(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||or(h)?n(h):(e.consume(h),u)}function c(h){return h===64?(e.consume(h),f):WA(h)?(e.consume(h),c):n(h)}function f(h){return ae(h)?s(h):n(h)}function s(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||ae(h))&&r++<63){const d=h===45?p:s;return e.consume(h),d}return n(h)}}const xn={partial:!0,tokenize:rE};function rE(e,t,n){return r;function r(o){return z(o)?B(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||R(o)?t(o):n(o)}}const Nf={continuation:{tokenize:oE},exit:aE,name:"blockQuote",tokenize:iE};function iE(e,t,n){const r=this;return i;function i(a){if(a===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return z(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function oE(e,t,n){const r=this;return i;function i(a){return z(a)?B(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(Nf,t,n)(a)}}function aE(e){e.exit("blockQuote")}const zf={name:"characterEscape",tokenize:lE};function lE(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return GA(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const jf={name:"characterReference",tokenize:uE};function uE(e,t,n){const r=this;let i=0,o,a;return l;function l(s){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),u}function u(s){return s===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(s),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=ae,f(s))}function c(s){return s===88||s===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(s),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=VA,f):(e.enter("characterReferenceValue"),o=7,a=to,f(s))}function f(s){if(s===59&&i){const p=e.exit("characterReferenceValue");return a===ae&&!hn(r.sliceSerialize(p))?n(s):(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(s)&&i++<o?(e.consume(s),f):n(s)}}const hu={partial:!0,tokenize:cE},pu={concrete:!0,name:"codeFenced",tokenize:sE};function sE(e,t,n){const r=this,i={partial:!0,tokenize:A};let o=0,a=0,l;return u;function u(x){return c(x)}function c(x){const P=r.events[r.events.length-1];return o=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,l=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(x)}function f(x){return x===l?(a++,e.consume(x),f):a<3?n(x):(e.exit("codeFencedFenceSequence"),z(x)?B(e,s,"whitespace")(x):s(x))}function s(x){return x===null||R(x)?(e.exit("codeFencedFence"),r.interrupt?t(x):e.check(hu,g,S)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||R(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(x)):z(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,h,"whitespace")(x)):x===96&&x===l?n(x):(e.consume(x),p)}function h(x){return x===null||R(x)?s(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(x))}function d(x){return x===null||R(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(x)):x===96&&x===l?n(x):(e.consume(x),d)}function g(x){return e.attempt(i,S,y)(x)}function y(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m}function m(x){return o>0&&z(x)?B(e,w,"linePrefix",o+1)(x):w(x)}function w(x){return x===null||R(x)?e.check(hu,g,S)(x):(e.enter("codeFlowValue"),k(x))}function k(x){return x===null||R(x)?(e.exit("codeFlowValue"),w(x)):(e.consume(x),k)}function S(x){return e.exit("codeFenced"),t(x)}function A(x,P,$){let D=0;return _;function _(U){return x.enter("lineEnding"),x.consume(U),x.exit("lineEnding"),I}function I(U){return x.enter("codeFencedFence"),z(U)?B(x,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):O(U)}function O(U){return U===l?(x.enter("codeFencedFenceSequence"),L(U)):$(U)}function L(U){return U===l?(D++,x.consume(U),L):D>=a?(x.exit("codeFencedFenceSequence"),z(U)?B(x,q,"whitespace")(U):q(U)):$(U)}function q(U){return U===null||R(U)?(x.exit("codeFencedFence"),P(U)):$(U)}}}function cE(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const fi={name:"codeIndented",tokenize:hE},fE={partial:!0,tokenize:pE};function hE(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),B(e,o,"linePrefix",5)(c)}function o(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?u(c):R(c)?e.attempt(fE,a,u)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||R(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),l)}function u(c){return e.exit("codeIndented"),t(c)}}function pE(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):R(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):B(e,o,"linePrefix",5)(a)}function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):R(a)?i(a):n(a)}}const dE={name:"codeText",previous:mE,resolve:gE,tokenize:yE};function gE(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function mE(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yE(e,t,n){let r=0,i,o;return a;function a(s){return e.enter("codeText"),e.enter("codeTextSequence"),l(s)}function l(s){return s===96?(e.consume(s),r++,l):(e.exit("codeTextSequence"),u(s))}function u(s){return s===null?n(s):s===32?(e.enter("space"),e.consume(s),e.exit("space"),u):s===96?(o=e.enter("codeTextSequence"),i=0,f(s)):R(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(s))}function c(s){return s===null||s===32||s===96||R(s)?(e.exit("codeTextData"),u(s)):(e.consume(s),c)}function f(s){return s===96?(e.consume(s),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(o.type="codeTextData",c(s))}}class bE{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Gt(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Gt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Gt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Gt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Gt(this.left,n.reverse())}}}function Gt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Bf(e){const t={};let n=-1,r,i,o,a,l,u,c;const f=new bE(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,vE(f,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=f.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},l=f.slice(i,n),l.unshift(r),f.splice(i,n-i+1,l))}}return ye(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}function vE(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,u=[],c={};let f,s,p=-1,h=n,d=0,g=0;const y=[g];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),s&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),s=h,h=h.next}for(h=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(g=p+1,y.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),p=y.length;p--;){const m=l.slice(y[p],y[p+1]),w=o.pop();u.push([w,w+m.length-1]),e.splice(w,2,m)}for(u.reverse(),p=-1;++p<u.length;)c[d+u[p][0]]=d+u[p][1],d+=u[p][1]-u[p][0]-1;return c}const wE={resolve:kE,tokenize:SE},xE={partial:!0,tokenize:_E};function kE(e){return Bf(e),e}function SE(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):R(l)?e.check(xE,a,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function _E(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),B(e,o,"linePrefix")}function o(a){if(a===null||R(a))return n(a);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Uf(e,t,n,r,i,o,a,l,u){const c=u||Number.POSITIVE_INFINITY;let f=0;return s;function s(m){return m===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(m),e.exit(o),p):m===null||m===32||m===41||or(m)?n(m):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(m))}function p(m){return m===62?(e.enter(o),e.consume(m),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(l),p(m)):m===null||m===60||R(m)?n(m):(e.consume(m),m===92?d:h)}function d(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function g(m){return!f&&(m===null||m===41||V(m))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(m)):f<c&&m===40?(e.consume(m),f++,g):m===41?(e.consume(m),f--,g):m===null||m===32||m===40||or(m)?n(m):(e.consume(m),m===92?y:g)}function y(m){return m===40||m===41||m===92?(e.consume(m),g):g(m)}}function qf(e,t,n,r,i,o){const a=this;let l=0,u;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return l>999||h===null||h===91||h===93&&!u||h===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):R(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),s(h))}function s(h){return h===null||h===91||h===93||R(h)||l++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!z(h)),h===92?p:s)}function p(h){return h===91||h===92||h===93?(e.consume(h),l++,s):s(h)}}function Hf(e,t,n,r,i,o){let a;return l;function l(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,u):n(p)}function u(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),c(p))}function c(p){return p===a?(e.exit(o),u(a)):p===null?n(p):R(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),B(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===a||p===null||R(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?s:f)}function s(p){return p===a||p===92?(e.consume(p),f):f(p)}}function Qt(e,t){let n;return r;function r(i){return R(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):z(i)?B(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const AE={name:"definition",tokenize:CE},EE={partial:!0,tokenize:OE};function CE(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return qf.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return i=Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return V(h)?Qt(e,c)(h):c(h)}function c(h){return Uf(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(EE,s,s)(h)}function s(h){return z(h)?B(e,p,"whitespace")(h):p(h)}function p(h){return h===null||R(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function OE(e,t,n){return r;function r(l){return V(l)?Qt(e,i)(l):n(l)}function i(l){return Hf(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return z(l)?B(e,a,"whitespace")(l):a(l)}function a(l){return l===null||R(l)?t(l):n(l)}}const PE={name:"hardBreakEscape",tokenize:TE};function TE(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return R(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const IE={name:"headingAtx",resolve:$E,tokenize:ME};function $E(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ye(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function ME(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||V(f)?(e.exit("atxHeadingSequence"),l(f)):n(f)}function l(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||R(f)?(e.exit("atxHeading"),t(f)):z(f)?B(e,l,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),l(f))}function c(f){return f===null||f===35||V(f)?(e.exit("atxHeadingText"),l(f)):(e.consume(f),c)}}const DE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],du=["pre","script","style","textarea"],LE={concrete:!0,name:"htmlFlow",resolveTo:NE,tokenize:zE},RE={partial:!0,tokenize:BE},FE={partial:!0,tokenize:jE};function NE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function zE(e,t,n){const r=this;let i,o,a,l,u;return c;function c(v){return f(v)}function f(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),s}function s(v){return v===33?(e.consume(v),p):v===47?(e.consume(v),o=!0,g):v===63?(e.consume(v),i=3,r.interrupt?t:b):ue(v)?(e.consume(v),a=String.fromCharCode(v),y):n(v)}function p(v){return v===45?(e.consume(v),i=2,h):v===91?(e.consume(v),i=5,l=0,d):ue(v)?(e.consume(v),i=4,r.interrupt?t:b):n(v)}function h(v){return v===45?(e.consume(v),r.interrupt?t:b):n(v)}function d(v){const Se="CDATA[";return v===Se.charCodeAt(l++)?(e.consume(v),l===Se.length?r.interrupt?t:O:d):n(v)}function g(v){return ue(v)?(e.consume(v),a=String.fromCharCode(v),y):n(v)}function y(v){if(v===null||v===47||v===62||V(v)){const Se=v===47,Ye=a.toLowerCase();return!Se&&!o&&du.includes(Ye)?(i=1,r.interrupt?t(v):O(v)):DE.includes(a.toLowerCase())?(i=6,Se?(e.consume(v),m):r.interrupt?t(v):O(v)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):o?w(v):k(v))}return v===45||ae(v)?(e.consume(v),a+=String.fromCharCode(v),y):n(v)}function m(v){return v===62?(e.consume(v),r.interrupt?t:O):n(v)}function w(v){return z(v)?(e.consume(v),w):_(v)}function k(v){return v===47?(e.consume(v),_):v===58||v===95||ue(v)?(e.consume(v),S):z(v)?(e.consume(v),k):_(v)}function S(v){return v===45||v===46||v===58||v===95||ae(v)?(e.consume(v),S):A(v)}function A(v){return v===61?(e.consume(v),x):z(v)?(e.consume(v),A):k(v)}function x(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),u=v,P):z(v)?(e.consume(v),x):$(v)}function P(v){return v===u?(e.consume(v),u=null,D):v===null||R(v)?n(v):(e.consume(v),P)}function $(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||V(v)?A(v):(e.consume(v),$)}function D(v){return v===47||v===62||z(v)?k(v):n(v)}function _(v){return v===62?(e.consume(v),I):n(v)}function I(v){return v===null||R(v)?O(v):z(v)?(e.consume(v),I):n(v)}function O(v){return v===45&&i===2?(e.consume(v),ie):v===60&&i===1?(e.consume(v),te):v===62&&i===4?(e.consume(v),ke):v===63&&i===3?(e.consume(v),b):v===93&&i===5?(e.consume(v),Fe):R(v)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(RE,Ne,L)(v)):v===null||R(v)?(e.exit("htmlFlowData"),L(v)):(e.consume(v),O)}function L(v){return e.check(FE,q,Ne)(v)}function q(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),U}function U(v){return v===null||R(v)?L(v):(e.enter("htmlFlowData"),O(v))}function ie(v){return v===45?(e.consume(v),b):O(v)}function te(v){return v===47?(e.consume(v),a="",xe):O(v)}function xe(v){if(v===62){const Se=a.toLowerCase();return du.includes(Se)?(e.consume(v),ke):O(v)}return ue(v)&&a.length<8?(e.consume(v),a+=String.fromCharCode(v),xe):O(v)}function Fe(v){return v===93?(e.consume(v),b):O(v)}function b(v){return v===62?(e.consume(v),ke):v===45&&i===2?(e.consume(v),b):O(v)}function ke(v){return v===null||R(v)?(e.exit("htmlFlowData"),Ne(v)):(e.consume(v),ke)}function Ne(v){return e.exit("htmlFlow"),t(v)}}function jE(e,t,n){const r=this;return i;function i(a){return R(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function BE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(xn,t,n)}}const UE={name:"htmlText",tokenize:qE};function qE(e,t,n){const r=this;let i,o,a;return l;function l(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),u}function u(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),A):b===63?(e.consume(b),k):ue(b)?(e.consume(b),$):n(b)}function c(b){return b===45?(e.consume(b),f):b===91?(e.consume(b),o=0,d):ue(b)?(e.consume(b),w):n(b)}function f(b){return b===45?(e.consume(b),h):n(b)}function s(b){return b===null?n(b):b===45?(e.consume(b),p):R(b)?(a=s,te(b)):(e.consume(b),s)}function p(b){return b===45?(e.consume(b),h):s(b)}function h(b){return b===62?ie(b):b===45?p(b):s(b)}function d(b){const ke="CDATA[";return b===ke.charCodeAt(o++)?(e.consume(b),o===ke.length?g:d):n(b)}function g(b){return b===null?n(b):b===93?(e.consume(b),y):R(b)?(a=g,te(b)):(e.consume(b),g)}function y(b){return b===93?(e.consume(b),m):g(b)}function m(b){return b===62?ie(b):b===93?(e.consume(b),m):g(b)}function w(b){return b===null||b===62?ie(b):R(b)?(a=w,te(b)):(e.consume(b),w)}function k(b){return b===null?n(b):b===63?(e.consume(b),S):R(b)?(a=k,te(b)):(e.consume(b),k)}function S(b){return b===62?ie(b):k(b)}function A(b){return ue(b)?(e.consume(b),x):n(b)}function x(b){return b===45||ae(b)?(e.consume(b),x):P(b)}function P(b){return R(b)?(a=P,te(b)):z(b)?(e.consume(b),P):ie(b)}function $(b){return b===45||ae(b)?(e.consume(b),$):b===47||b===62||V(b)?D(b):n(b)}function D(b){return b===47?(e.consume(b),ie):b===58||b===95||ue(b)?(e.consume(b),_):R(b)?(a=D,te(b)):z(b)?(e.consume(b),D):ie(b)}function _(b){return b===45||b===46||b===58||b===95||ae(b)?(e.consume(b),_):I(b)}function I(b){return b===61?(e.consume(b),O):R(b)?(a=I,te(b)):z(b)?(e.consume(b),I):D(b)}function O(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,L):R(b)?(a=O,te(b)):z(b)?(e.consume(b),O):(e.consume(b),q)}function L(b){return b===i?(e.consume(b),i=void 0,U):b===null?n(b):R(b)?(a=L,te(b)):(e.consume(b),L)}function q(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||V(b)?D(b):(e.consume(b),q)}function U(b){return b===47||b===62||V(b)?D(b):n(b)}function ie(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function te(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),xe}function xe(b){return z(b)?B(e,Fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):Fe(b)}function Fe(b){return e.enter("htmlTextData"),a(b)}}const ra={name:"labelEnd",resolveAll:GE,resolveTo:KE,tokenize:XE},HE={tokenize:YE},WE={tokenize:QE},VE={tokenize:JE};function GE(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ye(e,0,e.length,n),e}function KE(e,t){let n=e.length,r=0,i,o,a,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=ve(l,e.slice(o+1,o+r+3)),l=ve(l,[["enter",f,t]]),l=ve(l,zr(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),l=ve(l,[["exit",f,t],e[a-2],e[a-1],["exit",c,t]]),l=ve(l,e.slice(a+1)),l=ve(l,[["exit",u,t]]),ye(e,o,e.length,l),e}function XE(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(p){return o?o._inactive?s(p):(a=r.parser.defined.includes(Ce(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(HE,f,a?f:s)(p):p===91?e.attempt(WE,f,a?c:s)(p):a?f(p):s(p)}function c(p){return e.attempt(VE,f,s)(p)}function f(p){return t(p)}function s(p){return o._balanced=!0,n(p)}}function YE(e,t,n){return r;function r(s){return e.enter("resource"),e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),i}function i(s){return V(s)?Qt(e,o)(s):o(s)}function o(s){return s===41?f(s):Uf(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(s)}function a(s){return V(s)?Qt(e,u)(s):f(s)}function l(s){return n(s)}function u(s){return s===34||s===39||s===40?Hf(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(s):f(s)}function c(s){return V(s)?Qt(e,f)(s):f(s)}function f(s){return s===41?(e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),e.exit("resource"),t):n(s)}}function QE(e,t,n){const r=this;return i;function i(l){return qf.call(r,e,o,a,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function JE(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const ZE={name:"labelStartImage",resolveAll:ra.resolveAll,tokenize:eC};function eC(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const tC={name:"labelStartLink",resolveAll:ra.resolveAll,tokenize:nC};function nC(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const hi={name:"lineEnding",tokenize:rC};function rC(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,t,"linePrefix")}}const Fn={name:"thematicBreak",tokenize:iC};function iC(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||R(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),z(c)?B(e,l,"whitespace")(c):l(c))}}const ce={continuation:{tokenize:uC},exit:cC,name:"list",tokenize:lC},oC={partial:!0,tokenize:fC},aC={partial:!0,tokenize:sC};function lC(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return l;function l(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:to(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Fn,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return to(h)&&++a<10?(e.consume(h),u):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(xn,r.interrupt?n:f,e.attempt(oC,p,s))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function s(h){return z(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function uC(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(xn,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!z(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(aC,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(ce,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function sC(e,t,n){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function cC(e){e.exit(this.containerState.type)}function fC(e,t,n){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!z(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const gu={name:"setextUnderline",resolveTo:hC,tokenize:pC};function hC(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function pC(e,t,n){const r=this;let i;return o;function o(c){let f=r.events.length,s;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){s=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),z(c)?B(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||R(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const dC={tokenize:gC};function gC(e){const t=this,n=e.attempt(xn,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(wE,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const mC={resolveAll:Vf()},yC=Wf("string"),bC=Wf("text");function Wf(e){return{resolveAll:Vf(e==="text"?vC:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,l);return a;function a(f){return c(f)?o(f):l(f)}function l(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return c(f)?(n.exit("data"),o(f)):(n.consume(f),u)}function c(f){if(f===null)return!0;const s=i[f];let p=-1;if(s)for(;++p<s.length;){const h=s[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Vf(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function vC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,l=0,u;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(c===-2)u=!0,l++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const wC={42:ce,43:ce,45:ce,48:ce,49:ce,50:ce,51:ce,52:ce,53:ce,54:ce,55:ce,56:ce,57:ce,62:Nf},xC={91:AE},kC={[-2]:fi,[-1]:fi,32:fi},SC={35:IE,42:Fn,45:[gu,Fn],60:LE,61:gu,95:Fn,96:pu,126:pu},_C={38:jf,92:zf},AC={[-5]:hi,[-4]:hi,[-3]:hi,33:ZE,38:jf,42:no,60:[tE,UE],91:tC,92:[PE,zf],93:ra,95:no,96:dE},EC={null:[no,mC]},CC={null:[42,95]},OC={null:[]},PC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:CC,contentInitial:xC,disable:OC,document:wC,flow:SC,flowInitial:kC,insideSpan:EC,string:_C,text:AC},Symbol.toStringTag,{value:"Module"}));function TC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],l=[];const u={attempt:P(A),check:P(x),consume:w,enter:k,exit:S,interrupt:P(x,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:s};let f=t.tokenize.call(c,u);return t.resolveAll&&o.push(t),c;function s(I){return a=ve(a,I),y(),a[a.length-1]!==null?[]:($(t,0),c.events=zr(o,c.events,c),c.events)}function p(I,O){return $C(h(I),O)}function h(I){return IC(a,I)}function d(){const{_bufferIndex:I,_index:O,line:L,column:q,offset:U}=r;return{_bufferIndex:I,_index:O,line:L,column:q,offset:U}}function g(I){i[I.line]=I.column,_()}function y(){let I;for(;r._index<a.length;){const O=a[r._index];if(typeof O=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<O.length;)m(O.charCodeAt(r._bufferIndex));else m(O)}}function m(I){f=f(I)}function w(I){R(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,_()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I}function k(I,O){const L=O||{};return L.type=I,L.start=d(),c.events.push(["enter",L,c]),l.push(L),L}function S(I){const O=l.pop();return O.end=d(),c.events.push(["exit",O,c]),O}function A(I,O){$(I,O.from)}function x(I,O){O.restore()}function P(I,O){return L;function L(q,U,ie){let te,xe,Fe,b;return Array.isArray(q)?Ne(q):"tokenize"in q?Ne([q]):ke(q);function ke(ne){return Ut;function Ut(We){const mt=We!==null&&ne[We],yt=We!==null&&ne.null,Sn=[...Array.isArray(mt)?mt:mt?[mt]:[],...Array.isArray(yt)?yt:yt?[yt]:[]];return Ne(Sn)(We)}}function Ne(ne){return te=ne,xe=0,ne.length===0?ie:v(ne[xe])}function v(ne){return Ut;function Ut(We){return b=D(),Fe=ne,ne.partial||(c.currentConstruct=ne),ne.name&&c.parser.constructs.disable.null.includes(ne.name)?Ye():ne.tokenize.call(O?Object.assign(Object.create(c),O):c,u,Se,Ye)(We)}}function Se(ne){return I(Fe,b),U}function Ye(ne){return b.restore(),++xe<te.length?v(te[xe]):ie}}}function $(I,O){I.resolveAll&&!o.includes(I)&&o.push(I),I.resolve&&ye(c.events,O,c.events.length-O,I.resolve(c.events.slice(O),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function D(){const I=d(),O=c.previous,L=c.currentConstruct,q=c.events.length,U=Array.from(l);return{from:q,restore:ie};function ie(){r=I,c.previous=O,c.currentConstruct=L,c.events.length=q,l=U,_()}}function _(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function IC(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const l=a[0];typeof l=="string"?a[0]=l.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function $C(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
36
+ `;break}case-3:{a=`\r
37
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function MC(e){const r={constructs:Rf([PC,...(e||{}).extensions||[]]),content:i(KA),defined:[],document:i(YA),flow:i(dC),lazy:{},string:i(yC),text:i(bC)};return r;function i(o){return a;function a(l){return TC(r,o,l)}}}function DC(e){for(;!Bf(e););return e}const mu=/[\0\t\n\r]/g;function LC(){let e=1,t="",n=!0,r;return i;function i(o,a,l){const u=[];let c,f,s,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),s=0,t="",n&&(o.charCodeAt(0)===65279&&s++,n=void 0);s<o.length;){if(mu.lastIndex=s,c=mu.exec(o),p=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(p),!c){t=o.slice(s);break}if(h===10&&s===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),s<p&&(u.push(o.slice(s,p)),e+=p-s),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}s=p+1}return l&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const RC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function FC(e){return e.replace(RC,NC)}function NC(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Ff(n.slice(o?2:1),o?16:10)}return hn(n)||e}const Gf={}.hasOwnProperty;function zC(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),jC(n)(DC(MC(n).document().write(LC()(e,t,!0))))}function jC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ya),autolinkProtocol:D,autolinkEmail:D,atxHeading:o(da),blockQuote:o(yt),characterEscape:D,characterReference:D,codeFenced:o(Sn),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(Sn,a),codeText:o(Th,a),codeTextData:D,data:D,codeFlowValue:D,definition:o(Ih),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o($h),hardBreakEscape:o(ga),hardBreakTrailing:o(ga),htmlFlow:o(ma,a),htmlFlowData:D,htmlText:o(ma,a),htmlTextData:D,image:o(Mh),label:a,link:o(ya),listItem:o(Dh),listItemValue:p,listOrdered:o(ba,s),listUnordered:o(ba),paragraph:o(Lh),reference:v,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(da),strong:o(Rh),thematicBreak:o(Nh)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:mt,autolinkProtocol:We,blockQuote:u(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:Ye,characterReferenceMarkerNumeric:Ye,characterReferenceValue:ne,characterReference:Ut,codeFenced:u(y),codeFencedFence:g,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:_,codeIndented:u(m),codeText:u(U),codeTextData:_,data:_,definition:u(),definitionDestinationString:S,definitionLabelString:w,definitionTitleString:k,emphasis:u(),hardBreakEscape:u(O),hardBreakTrailing:u(O),htmlFlow:u(L),htmlFlowData:_,htmlText:u(q),htmlTextData:_,image:u(te),label:Fe,labelText:xe,lineEnding:I,link:u(ie),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Se,resourceDestinationString:b,resourceTitleString:ke,resource:Ne,setextHeading:u($),setextHeadingLineSequence:P,setextHeadingText:x,strong:u(),thematicBreak:u()}};Kf(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(E){let T={type:"root",children:[]};const F={stack:[T],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:f,data:n},j=[];let H=-1;for(;++H<E.length;)if(E[H][1].type==="listOrdered"||E[H][1].type==="listUnordered")if(E[H][0]==="enter")j.push(H);else{const _e=j.pop();H=i(E,_e,H)}for(H=-1;++H<E.length;){const _e=t[E[H][0]];Gf.call(_e,E[H][1].type)&&_e[E[H][1].type].call(Object.assign({sliceSerialize:E[H][2].sliceSerialize},F),E[H][1])}if(F.tokenStack.length>0){const _e=F.tokenStack[F.tokenStack.length-1];(_e[1]||yu).call(F,void 0,_e[0])}for(T.position={start:Ve(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:Ve(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<t.transforms.length;)T=t.transforms[H](T)||T;return T}function i(E,T,F){let j=T-1,H=-1,_e=!1,Qe,ze,qt,Ht;for(;++j<=F;){const he=E[j];switch(he[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{he[0]==="enter"?H++:H--,Ht=void 0;break}case"lineEndingBlank":{he[0]==="enter"&&(Qe&&!Ht&&!H&&!qt&&(qt=j),Ht=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ht=void 0}if(!H&&he[0]==="enter"&&he[1].type==="listItemPrefix"||H===-1&&he[0]==="exit"&&(he[1].type==="listUnordered"||he[1].type==="listOrdered")){if(Qe){let bt=j;for(ze=void 0;bt--;){const je=E[bt];if(je[1].type==="lineEnding"||je[1].type==="lineEndingBlank"){if(je[0]==="exit")continue;ze&&(E[ze][1].type="lineEndingBlank",_e=!0),je[1].type="lineEnding",ze=bt}else if(!(je[1].type==="linePrefix"||je[1].type==="blockQuotePrefix"||je[1].type==="blockQuotePrefixWhitespace"||je[1].type==="blockQuoteMarker"||je[1].type==="listItemIndent"))break}qt&&(!ze||qt<ze)&&(Qe._spread=!0),Qe.end=Object.assign({},ze?E[ze][1].start:he[1].end),E.splice(ze||j,0,["exit",Qe,he[2]]),j++,F++}if(he[1].type==="listItemPrefix"){const bt={type:"listItem",_spread:!1,start:Object.assign({},he[1].start),end:void 0};Qe=bt,E.splice(j,0,["enter",bt,he[2]]),j++,F++,qt=void 0,Ht=!0}}}return E[T][1]._spread=_e,F}function o(E,T){return F;function F(j){l.call(this,E(j),j),T&&T.call(this,j)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(E,T,F){this.stack[this.stack.length-1].children.push(E),this.stack.push(E),this.tokenStack.push([T,F||void 0]),E.position={start:Ve(T.start),end:void 0}}function u(E){return T;function T(F){E&&E.call(this,F),c.call(this,F)}}function c(E,T){const F=this.stack.pop(),j=this.tokenStack.pop();if(j)j[0].type!==E.type&&(T?T.call(this,E,j[0]):(j[1]||yu).call(this,E,j[0]));else throw new Error("Cannot close `"+E.type+"` ("+Yt({start:E.start,end:E.end})+"): it’s not open");F.position.end=Ve(E.end)}function f(){return na(this.stack.pop())}function s(){this.data.expectingFirstListItemValue=!0}function p(E){if(this.data.expectingFirstListItemValue){const T=this.stack[this.stack.length-2];T.start=Number.parseInt(this.sliceSerialize(E),10),this.data.expectingFirstListItemValue=void 0}}function h(){const E=this.resume(),T=this.stack[this.stack.length-1];T.lang=E}function d(){const E=this.resume(),T=this.stack[this.stack.length-1];T.meta=E}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const E=this.resume(),T=this.stack[this.stack.length-1];T.value=E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const E=this.resume(),T=this.stack[this.stack.length-1];T.value=E.replace(/(\r?\n|\r)$/g,"")}function w(E){const T=this.resume(),F=this.stack[this.stack.length-1];F.label=T,F.identifier=Ce(this.sliceSerialize(E)).toLowerCase()}function k(){const E=this.resume(),T=this.stack[this.stack.length-1];T.title=E}function S(){const E=this.resume(),T=this.stack[this.stack.length-1];T.url=E}function A(E){const T=this.stack[this.stack.length-1];if(!T.depth){const F=this.sliceSerialize(E).length;T.depth=F}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function P(E){const T=this.stack[this.stack.length-1];T.depth=this.sliceSerialize(E).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function D(E){const F=this.stack[this.stack.length-1].children;let j=F[F.length-1];(!j||j.type!=="text")&&(j=Fh(),j.position={start:Ve(E.start),end:void 0},F.push(j)),this.stack.push(j)}function _(E){const T=this.stack.pop();T.value+=this.sliceSerialize(E),T.position.end=Ve(E.end)}function I(E){const T=this.stack[this.stack.length-1];if(this.data.atHardBreak){const F=T.children[T.children.length-1];F.position.end=Ve(E.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(T.type)&&(D.call(this,E),_.call(this,E))}function O(){this.data.atHardBreak=!0}function L(){const E=this.resume(),T=this.stack[this.stack.length-1];T.value=E}function q(){const E=this.resume(),T=this.stack[this.stack.length-1];T.value=E}function U(){const E=this.resume(),T=this.stack[this.stack.length-1];T.value=E}function ie(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=T,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function te(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=T,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function xe(E){const T=this.sliceSerialize(E),F=this.stack[this.stack.length-2];F.label=FC(T),F.identifier=Ce(T).toLowerCase()}function Fe(){const E=this.stack[this.stack.length-1],T=this.resume(),F=this.stack[this.stack.length-1];if(this.data.inReference=!0,F.type==="link"){const j=E.children;F.children=j}else F.alt=T}function b(){const E=this.resume(),T=this.stack[this.stack.length-1];T.url=E}function ke(){const E=this.resume(),T=this.stack[this.stack.length-1];T.title=E}function Ne(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function Se(E){const T=this.resume(),F=this.stack[this.stack.length-1];F.label=T,F.identifier=Ce(this.sliceSerialize(E)).toLowerCase(),this.data.referenceType="full"}function Ye(E){this.data.characterReferenceType=E.type}function ne(E){const T=this.sliceSerialize(E),F=this.data.characterReferenceType;let j;F?(j=Ff(T,F==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):j=hn(T);const H=this.stack[this.stack.length-1];H.value+=j}function Ut(E){const T=this.stack.pop();T.position.end=Ve(E.end)}function We(E){_.call(this,E);const T=this.stack[this.stack.length-1];T.url=this.sliceSerialize(E)}function mt(E){_.call(this,E);const T=this.stack[this.stack.length-1];T.url="mailto:"+this.sliceSerialize(E)}function yt(){return{type:"blockquote",children:[]}}function Sn(){return{type:"code",lang:null,meta:null,value:""}}function Th(){return{type:"inlineCode",value:""}}function Ih(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $h(){return{type:"emphasis",children:[]}}function da(){return{type:"heading",depth:0,children:[]}}function ga(){return{type:"break"}}function ma(){return{type:"html",value:""}}function Mh(){return{type:"image",title:null,url:"",alt:null}}function ya(){return{type:"link",title:null,url:"",children:[]}}function ba(E){return{type:"list",ordered:E.type==="listOrdered",start:null,spread:E._spread,children:[]}}function Dh(E){return{type:"listItem",spread:E._spread,checked:null,children:[]}}function Lh(){return{type:"paragraph",children:[]}}function Rh(){return{type:"strong",children:[]}}function Fh(){return{type:"text",value:""}}function Nh(){return{type:"thematicBreak"}}}function Ve(e){return{line:e.line,column:e.column,offset:e.offset}}function Kf(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Kf(e,r):BC(e,r)}}function BC(e,t){let n;for(n in t)if(Gf.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function yu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yt({start:t.start,end:t.end})+") is still open")}function UC(e){const t=this;t.parser=n;function n(r){return zC(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qC(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function HC(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
38
+ `}]}function WC(e,t){const n=t.value?t.value+`
39
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function VC(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function GC(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KC(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Bt(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,l+=1,e.footnoteCounts.set(r,l);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}function XC(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YC(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Xf(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function QC(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Xf(e,t);const i={src:Bt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function JC(e,t){const n={src:Bt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ZC(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function eO(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Xf(e,t);const i={href:Bt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function tO(e,t){const n={href:Bt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nO(e,t,n){const r=e.all(t),i=n?rO(n):Yf(t),o={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let s;f&&f.type==="element"&&f.tagName==="p"?s=f:(s={type:"element",tagName:"p",properties:{},children:[]},r.unshift(s)),s.children.length>0&&s.children.unshift({type:"text",value:" "}),s.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const f=r[l];(i||l!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
40
+ `}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
41
+ `});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function rO(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Yf(n[r])}return t}function Yf(e){const t=e.spread;return t??e.children.length>1}function iO(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function oO(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function aO(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function lO(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uO(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=Jo(t.children[1]),u=Pf(t.children[t.children.length-1]);l&&u&&(a.position={start:l,end:u}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function sO(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,l=a?a.length:t.children.length;let u=-1;const c=[];for(;++u<l;){const s=t.children[u],p={},h=a?a[u]:void 0;h&&(p.align=h);let d={type:"element",tagName:o,properties:p,children:[]};s&&(d.children=e.all(s),e.patch(s,d),d=e.applyData(s,d)),c.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function cO(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const bu=9,vu=32;function fO(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(wu(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(wu(t.slice(i),i>0,!1)),o.join("")}function wu(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===bu||o===vu;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===bu||o===vu;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function hO(e,t){const n={type:"text",value:fO(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function pO(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const dO={blockquote:qC,break:HC,code:WC,delete:VC,emphasis:GC,footnoteReference:KC,heading:XC,html:YC,imageReference:QC,image:JC,inlineCode:ZC,linkReference:eO,link:tO,listItem:nO,list:iO,paragraph:oO,root:aO,strong:lO,table:uO,tableCell:cO,tableRow:sO,text:hO,thematicBreak:pO,toml:Tn,yaml:Tn,definition:Tn,footnoteDefinition:Tn};function Tn(){}const Qf=-1,jr=0,Jt=1,ar=2,ia=3,oa=4,aa=5,la=6,Jf=7,Zf=8,gO=typeof self=="object"?self:globalThis,xu=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new gO[e](t)},mO=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case jr:case Qf:return n(a,i);case Jt:{const l=n([],i);for(const u of a)l.push(r(u));return l}case ar:{const l=n({},i);for(const[u,c]of a)l[r(u)]=r(c);return l}case ia:return n(new Date(a),i);case oa:{const{source:l,flags:u}=a;return n(new RegExp(l,u),i)}case aa:{const l=n(new Map,i);for(const[u,c]of a)l.set(r(u),r(c));return l}case la:{const l=n(new Set,i);for(const u of a)l.add(r(u));return l}case Jf:{const{name:l,message:u}=a;return n(xu(l,u),i)}case Zf:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:l}=new Uint8Array(a);return n(new DataView(l),a)}}return n(xu(o,a),i)};return r},ku=e=>mO(new Map,e)(0),vt="",{toString:yO}={},{keys:bO}=Object,Kt=e=>{const t=typeof e;if(t!=="object"||!e)return[jr,t];const n=yO.call(e).slice(8,-1);switch(n){case"Array":return[Jt,vt];case"Object":return[ar,vt];case"Date":return[ia,vt];case"RegExp":return[oa,vt];case"Map":return[aa,vt];case"Set":return[la,vt];case"DataView":return[Jt,n]}return n.includes("Array")?[Jt,n]:n.includes("Error")?[Jf,n]:[ar,n]},In=([e,t])=>e===jr&&(t==="function"||t==="symbol"),vO=(e,t,n,r)=>{const i=(a,l)=>{const u=r.push(a)-1;return n.set(l,u),u},o=a=>{if(n.has(a))return n.get(a);let[l,u]=Kt(a);switch(l){case jr:{let f=a;switch(u){case"bigint":l=Zf,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([Qf],a)}return i([l,f],a)}case Jt:{if(u){let p=a;return u==="DataView"?p=new Uint8Array(a.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(a)),i([u,[...p]],a)}const f=[],s=i([l,f],a);for(const p of a)f.push(o(p));return s}case ar:{if(u)switch(u){case"BigInt":return i([u,a.toString()],a);case"Boolean":case"Number":case"String":return i([u,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const f=[],s=i([l,f],a);for(const p of bO(a))(e||!In(Kt(a[p])))&&f.push([o(p),o(a[p])]);return s}case ia:return i([l,a.toISOString()],a);case oa:{const{source:f,flags:s}=a;return i([l,{source:f,flags:s}],a)}case aa:{const f=[],s=i([l,f],a);for(const[p,h]of a)(e||!(In(Kt(p))||In(Kt(h))))&&f.push([o(p),o(h)]);return s}case la:{const f=[],s=i([l,f],a);for(const p of a)(e||!In(Kt(p)))&&f.push(o(p));return s}}const{message:c}=a;return i([l,{name:u,message:c}],a)};return o},Su=(e,{json:t,lossy:n}={})=>{const r=[];return vO(!(t||n),!!t,new Map,r)(e),r},lr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ku(Su(e,t)):structuredClone(e):(e,t)=>ku(Su(e,t));function wO(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function xO(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function kO(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||wO,r=e.options.footnoteBackLabel||xO,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const f=e.all(c),s=String(c.identifier).toUpperCase(),p=Bt(s.toLowerCase());let h=0;const d=[],g=e.footnoteCounts.get(s);for(;g!==void 0&&++h<=g;){d.length>0&&d.push({type:"text",value:" "});let w=typeof n=="string"?n:n(u,h);typeof w=="string"&&(w={type:"text",value:w}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const y=f[f.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const w=y.children[y.children.length-1];w&&w.type==="text"?w.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...d)}else f.push(...d);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(c,m),l.push(m)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...lr(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
42
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
43
+ `}]}}const Br=function(e){if(e==null)return EO;if(typeof e=="function")return Ur(e);if(typeof e=="object")return Array.isArray(e)?SO(e):_O(e);if(typeof e=="string")return AO(e);throw new Error("Expected function, string, or object as test")};function SO(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Br(e[n]);return Ur(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function _O(e){const t=e;return Ur(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function AO(e){return Ur(t);function t(n){return n&&n.type===e}}function Ur(e){return t;function t(n,r,i){return!!(CO(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function EO(){return!0}function CO(e){return e!==null&&typeof e=="object"&&"type"in e}const eh=[],OO=!0,ro=!1,PO="skip";function th(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Br(i),a=r?-1:1;l(e,void 0,[])();function l(u,c,f){const s=u&&typeof u=="object"?u:{};if(typeof s.type=="string"){const h=typeof s.tagName=="string"?s.tagName:typeof s.name=="string"?s.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=eh,d,g,y;if((!t||o(u,c,f[f.length-1]||void 0))&&(h=TO(n(u,f)),h[0]===ro))return h;if("children"in u&&u.children){const m=u;if(m.children&&h[0]!==PO)for(g=(r?m.children.length:-1)+a,y=f.concat(m);g>-1&&g<m.children.length;){const w=m.children[g];if(d=l(w,g,y)(),d[0]===ro)return d;g=typeof d[1]=="number"?d[1]:g+a}}return h}}}function TO(e){return Array.isArray(e)?e:typeof e=="number"?[OO,e]:e==null?eh:[e]}function ua(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),th(e,o,l,i);function l(u,c){const f=c[c.length-1],s=f?f.children.indexOf(u):void 0;return a(u,s,f)}}const io={}.hasOwnProperty,IO={};function $O(e,t){const n=t||IO,r=new Map,i=new Map,o=new Map,a={...dO,...n.handlers},l={all:c,applyData:DO,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:u,options:n,patch:MO,wrap:RO};return ua(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const s=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();s.has(p)||s.set(p,f)}}),l;function u(f,s){const p=f.type,h=l.handlers[p];if(io.call(l.handlers,p)&&h)return h(l,f,s);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in f){const{children:g,...y}=f,m=lr(y);return m.children=l.all(f),m}return lr(f)}return(l.options.unknownHandler||LO)(l,f,s)}function c(f){const s=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=l.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=_u(d.value)),!Array.isArray(d)&&d.type==="element")){const g=d.children[0];g&&g.type==="text"&&(g.value=_u(g.value))}Array.isArray(d)?s.push(...d):s.push(d)}}}return s}}function MO(e,t){e.position&&(t.position=wA(e))}function DO(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,lr(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function LO(e,t){const n=t.data||{},r="value"in t&&!(io.call(n,"hProperties")||io.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function RO(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
44
+ `});++r<e.length;)r&&n.push({type:"text",value:`
45
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
46
+ `}),n}function _u(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Au(e,t){const n=$O(e,t),r=n.one(e,void 0),i=kO(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
47
+ `},i),o}function FO(e,t){return e&&"run"in e?async function(n,r){const i=Au(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Au(n,{file:r,...e||t})}}function Eu(e){if(e)throw e}var Nn=Object.prototype.hasOwnProperty,nh=Object.prototype.toString,Cu=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,Pu=function(t){return typeof Array.isArray=="function"?Array.isArray(t):nh.call(t)==="[object Array]"},Tu=function(t){if(!t||nh.call(t)!=="[object Object]")return!1;var n=Nn.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Nn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Nn.call(t,i)},Iu=function(t,n){Cu&&n.name==="__proto__"?Cu(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},$u=function(t,n){if(n==="__proto__")if(Nn.call(t,n)){if(Ou)return Ou(t,n).value}else return;return t[n]},NO=function e(){var t,n,r,i,o,a,l=arguments[0],u=1,c=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[1]||{},u=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});u<c;++u)if(t=arguments[u],t!=null)for(n in t)r=$u(l,n),i=$u(t,n),l!==i&&(f&&i&&(Tu(i)||(o=Pu(i)))?(o?(o=!1,a=r&&Pu(r)?r:[]):a=r&&Tu(r)?r:{},Iu(l,{name:n,newValue:e(f,a,i)})):typeof i<"u"&&Iu(l,{name:n,newValue:i}));return l};const pi=ee(NO);function oo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zO(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...i);function l(u,...c){const f=e[++o];let s=-1;if(u){a(u);return}for(;++s<i.length;)(c[s]===null||c[s]===void 0)&&(c[s]=i[s]);i=c,f?jO(f,l)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function jO(e,t){let n;return r;function r(...a){const l=e.length>a.length;let u;l&&a.push(i);try{u=e.apply(this,a)}catch(c){const f=c;if(l&&n)throw f;return i(f)}l||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(a,...l){n||(n=!0,t(a,...l))}function o(a){i(null,a)}}const Te={basename:BO,dirname:UO,extname:qO,join:HO,sep:"/"};function BO(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');kn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function UO(e){if(kn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function qO(e){kn(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const l=e.codePointAt(t);if(l===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function HO(...e){let t=-1,n;for(;++t<e.length;)kn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":WO(n)}function WO(e){kn(e);const t=e.codePointAt(0)===47;let n=VO(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function VO(e,t){let n="",r=0,i=-1,o=0,a=-1,l,u;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(l===47)break;l=47}if(l===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else l===46&&o>-1?o++:o=-1}return n}function kn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const GO={cwd:KO};function KO(){return"/"}function ao(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function XO(e){if(typeof e=="string")e=new URL(e);else if(!ao(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return YO(e)}function YO(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const di=["history","path","basename","stem","extname","dirname"];class rh{constructor(t){let n;t?ao(t)?n={path:t}:typeof t=="string"||QO(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":GO.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<di.length;){const o=di[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)di.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Te.basename(this.path):void 0}set basename(t){mi(t,"basename"),gi(t,"basename"),this.path=Te.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Te.dirname(this.path):void 0}set dirname(t){Mu(this.basename,"dirname"),this.path=Te.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Te.extname(this.path):void 0}set extname(t){if(gi(t,"extname"),Mu(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Te.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ao(t)&&(t=XO(t)),mi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Te.basename(this.path,this.extname):void 0}set stem(t){mi(t,"stem"),gi(t,"stem"),this.path=Te.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new le(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function gi(e,t){if(e&&e.includes(Te.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Te.sep+"`")}function mi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Mu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function QO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const JO=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},ZO={}.hasOwnProperty;class sa extends JO{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=zO()}copy(){const t=new sa;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(pi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(vi("data",this.frozen),this.namespace[t]=n,this):ZO.call(this.namespace,t)&&this.namespace[t]||void 0:t?(vi("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=$n(t),r=this.parser||this.Parser;return yi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),yi("process",this.parser||this.Parser),bi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const l=$n(t),u=r.parse(l);r.run(u,l,function(f,s,p){if(f||!s||!p)return c(f);const h=s,d=r.stringify(h,p);nP(d)?p.value=d:p.result=d,c(f,p)});function c(f,s){f||!s?a(f):o?o(s):n(void 0,s)}}}processSync(t){let n=!1,r;return this.freeze(),yi("processSync",this.parser||this.Parser),bi("processSync",this.compiler||this.Compiler),this.process(t,i),Lu("processSync","process",n),r;function i(o,a){n=!0,Eu(o),r=a}}run(t,n,r){Du(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,l){const u=$n(n);i.run(t,u,c);function c(f,s,p){const h=s||t;f?l(f):a?a(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Lu("runSync","run",r),i;function o(a,l){Eu(a),i=l,r=!0}}stringify(t,n){this.freeze();const r=$n(n),i=this.compiler||this.Compiler;return bi("stringify",i),Du(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(vi("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...s]=c;u(f,s)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(i.settings=pi(!0,i.settings,c.settings))}function l(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const s=c[f];o(s)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,f){let s=-1,p=-1;for(;++s<r.length;)if(r[s][0]===c){p=s;break}if(p===-1)r.push([c,...f]);else if(f.length>0){let[h,...d]=f;const g=r[p][1];oo(g)&&oo(h)&&(h=pi(!0,g,h)),r[p]=[c,h,...d]}}}}const eP=new sa().freeze();function yi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function vi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Du(e){if(!oo(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Lu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $n(e){return tP(e)?e:new rh(e)}function tP(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nP(e){return typeof e=="string"||rP(e)}function rP(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iP="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ru=[],Fu={allowDangerousHtml:!0},oP=/^(https?|ircs?|mailto|xmpp)$/i,aP=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function R$(e){const t=lP(e),n=uP(e);return sP(t.runSync(t.parse(n),n),e)}function lP(e){const t=e.rehypePlugins||Ru,n=e.remarkPlugins||Ru,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fu}:Fu;return eP().use(UC).use(n).use(FO,r).use(t)}function uP(e){const t=e.children||"",n=new rh;return typeof t=="string"&&(n.value=t),n}function sP(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||cP;for(const f of aP)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+iP+f.id,void 0);return ua(e,c),AA(e,{Fragment:Hr.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Hr.jsx,jsxs:Hr.jsxs,passKeys:!0,passNode:!0});function c(f,s,p){if(f.type==="raw"&&p&&typeof s=="number")return a?p.children.splice(s,1):p.children[s]={type:"text",value:f.value},s;if(f.type==="element"){let h;for(h in ci)if(Object.hasOwn(ci,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],g=ci[h];(g===null||g.includes(f.tagName))&&(f.properties[h]=u(String(d||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof s=="number"&&(h=!r(f,s,p)),h&&p&&typeof s=="number")return l&&f.children?p.children.splice(s,1,...f.children):p.children.splice(s,1),s}}}function cP(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||oP.test(e.slice(0,t))?e:""}function Nu(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function fP(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function hP(e,t,n){const i=Br((n||{}).ignore||[]),o=pP(t);let a=-1;for(;++a<o.length;)th(e,"text",l);function l(c,f){let s=-1,p;for(;++s<f.length;){const h=f[s],d=p?p.children:void 0;if(i(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return u(c,f)}function u(c,f){const s=f[f.length-1],p=o[a][0],h=o[a][1];let d=0;const y=s.children.indexOf(c);let m=!1,w=[];p.lastIndex=0;let k=p.exec(c.value);for(;k;){const S=k.index,A={index:k.index,input:k.input,stack:[...f,c]};let x=h(...k,A);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?p.lastIndex=S+1:(d!==S&&w.push({type:"text",value:c.value.slice(d,S)}),Array.isArray(x)?w.push(...x):x&&w.push(x),d=S+k[0].length,m=!0),!p.global)break;k=p.exec(c.value)}return m?(d<c.value.length&&w.push({type:"text",value:c.value.slice(d)}),s.children.splice(y,1,...w)):w=[c],y+w.length}}function pP(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([dP(i[0]),gP(i[1])])}return t}function dP(e){return typeof e=="string"?new RegExp(fP(e),"g"):e}function gP(e){return typeof e=="function"?e:function(){return e}}const wi="phrasing",xi=["autolink","link","image","label"];function mP(){return{transforms:[SP],enter:{literalAutolink:bP,literalAutolinkEmail:ki,literalAutolinkHttp:ki,literalAutolinkWww:ki},exit:{literalAutolink:kP,literalAutolinkEmail:xP,literalAutolinkHttp:vP,literalAutolinkWww:wP}}}function yP(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:wi,notInConstruct:xi},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:wi,notInConstruct:xi},{character:":",before:"[ps]",after:"\\/",inConstruct:wi,notInConstruct:xi}]}}function bP(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ki(e){this.config.enter.autolinkProtocol.call(this,e)}function vP(e){this.config.exit.autolinkProtocol.call(this,e)}function wP(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function xP(e){this.config.exit.autolinkEmail.call(this,e)}function kP(e){this.exit(e)}function SP(e){hP(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_P],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),AP]],{ignore:["link","linkReference"]})}function _P(e,t,n,r,i){let o="";if(!ih(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!EP(n)))return!1;const a=CP(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function AP(e,t,n,r){return!ih(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function EP(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function CP(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Nu(e,"(");let o=Nu(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function ih(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ft(n)||Nr(n))&&(!t||n!==47)}oh.peek=RP;function OP(){this.buffer()}function PP(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function TP(){this.buffer()}function IP(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $P(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ce(this.sliceSerialize(e)).toLowerCase(),n.label=t}function MP(e){this.exit(e)}function DP(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ce(this.sliceSerialize(e)).toLowerCase(),n.label=t}function LP(e){this.exit(e)}function RP(){return"["}function oh(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),l(),a(),o+=i.move("]"),o}function FP(){return{enter:{gfmFootnoteCallString:OP,gfmFootnoteCall:PP,gfmFootnoteDefinitionLabelString:TP,gfmFootnoteDefinition:IP},exit:{gfmFootnoteCallString:$P,gfmFootnoteCall:MP,gfmFootnoteDefinitionLabelString:DP,gfmFootnoteDefinition:LP}}}function NP(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:oh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){const l=o.createTracker(a);let u=l.move("[^");const c=o.enter("footnoteDefinition"),f=o.enter("label");return u+=l.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),u+=l.move((t?`
48
+ `:" ")+o.indentLines(o.containerFlow(r,l.current()),t?ah:zP))),c(),u}}function zP(e,t,n){return t===0?e:ah(e,t,n)}function ah(e,t,n){return(n?"":" ")+e}const jP=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];lh.peek=WP;function BP(){return{canContainEols:["delete"],enter:{strikethrough:qP},exit:{strikethrough:HP}}}function UP(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jP}],handlers:{delete:lh}}}function qP(e){this.enter({type:"delete",children:[]},e)}function HP(e){this.exit(e)}function lh(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function WP(){return"~"}function VP(e){return e.length}function GP(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||VP,o=[],a=[],l=[],u=[];let c=0,f=-1;for(;++f<e.length;){const g=[],y=[];let m=-1;for(e[f].length>c&&(c=e[f].length);++m<e[f].length;){const w=KP(e[f][m]);if(n.alignDelimiters!==!1){const k=i(w);y[m]=k,(u[m]===void 0||k>u[m])&&(u[m]=k)}g.push(w)}a[f]=g,l[f]=y}let s=-1;if(typeof r=="object"&&"length"in r)for(;++s<c;)o[s]=zu(r[s]);else{const g=zu(r);for(;++s<c;)o[s]=g}s=-1;const p=[],h=[];for(;++s<c;){const g=o[s];let y="",m="";g===99?(y=":",m=":"):g===108?y=":":g===114&&(m=":");let w=n.alignDelimiters===!1?1:Math.max(1,u[s]-y.length-m.length);const k=y+"-".repeat(w)+m;n.alignDelimiters!==!1&&(w=y.length+w+m.length,w>u[s]&&(u[s]=w),h[s]=w),p[s]=k}a.splice(1,0,p),l.splice(1,0,h),f=-1;const d=[];for(;++f<a.length;){const g=a[f],y=l[f];s=-1;const m=[];for(;++s<c;){const w=g[s]||"";let k="",S="";if(n.alignDelimiters!==!1){const A=u[s]-(y[s]||0),x=o[s];x===114?k=" ".repeat(A):x===99?A%2?(k=" ".repeat(A/2+.5),S=" ".repeat(A/2-.5)):(k=" ".repeat(A/2),S=k):S=" ".repeat(A)}n.delimiterStart!==!1&&!s&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&w==="")&&(n.delimiterStart!==!1||s)&&m.push(" "),n.alignDelimiters!==!1&&m.push(k),m.push(w),n.alignDelimiters!==!1&&m.push(S),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||s!==c-1)&&m.push("|")}d.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return d.join(`
49
+ `)}function KP(e){return e==null?"":String(e)}function zu(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function XP(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),YP);return i(),a}function YP(e,t,n){return">"+(n?"":" ")+e}function QP(e,t){return ju(e,t.inConstruct,!0)&&!ju(e,t.notInConstruct,!1)}function ju(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Bu(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
50
+ `&&QP(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
51
+ `}function JP(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function ZP(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function eT(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function tT(e,t,n,r){const i=eT(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(ZP(e,n)){const s=n.enter("codeIndented"),p=n.indentLines(o,nT);return s(),p}const l=n.createTracker(r),u=i.repeat(Math.max(JP(o,i)+1,3)),c=n.enter("codeFenced");let f=l.move(u);if(e.lang){const s=n.enter(`codeFencedLang${a}`);f+=l.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...l.current()})),s()}if(e.lang&&e.meta){const s=n.enter(`codeFencedMeta${a}`);f+=l.move(" "),f+=l.move(n.safe(e.meta,{before:f,after:`
52
+ `,encode:["`"],...l.current()})),s()}return f+=l.move(`
53
+ `),o&&(f+=l.move(o+`
54
+ `)),f+=l.move(u),c(),f}function nT(e,t,n){return(n?"":" ")+e}function ca(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function rT(e,t,n,r){const i=ca(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":`
55
+ `,...u.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),a(),c}function iT(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function pn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ur(e,t,n){const r=It(e),i=It(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}uh.peek=oT;function uh(e,t,n,r){const i=iT(n),o=n.enter("emphasis"),a=n.createTracker(r),l=a.move(i);let u=a.move(n.containerPhrasing(e,{after:i,before:l,...a.current()}));const c=u.charCodeAt(0),f=ur(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(u=pn(c)+u.slice(1));const s=u.charCodeAt(u.length-1),p=ur(r.after.charCodeAt(0),s,i);p.inside&&(u=u.slice(0,-1)+pn(s));const h=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},l+u+h}function oT(e,t,n){return n.options.emphasis||"*"}function aT(e,t){let n=!1;return ua(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ro}),!!((!e.depth||e.depth<3)&&na(e)&&(t.options.setext||n))}function lT(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(aT(e,n)){const f=n.enter("headingSetext"),s=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
56
+ `,after:`
57
+ `});return s(),f(),p+`
58
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
59
+ `))+1))}const a="#".repeat(i),l=n.enter("headingAtx"),u=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
60
+ `,...o.current()});return/^[\t ]/.test(c)&&(c=pn(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),u(),l(),c}sh.peek=uT;function sh(e){return e.value||""}function uT(){return"<"}ch.peek=sT;function ch(e,t,n,r){const i=ca(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),c+=u.move(")"),a(),c}function sT(){return"!"}fh.peek=cT;function fh(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const c=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const s=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return a(),n.stack=f,o(),i==="full"||!c||c!==s?u+=l.move(s+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function cT(){return"!"}hh.peek=fT;function hh(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],l=n.compilePattern(a);let u;if(a.atBreak)for(;u=l.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return i+r+i}function fT(){return"`"}function ph(e,t){const n=na(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}dh.peek=hT;function dh(e,t,n,r){const i=ca(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let l,u;if(ph(e,n)){const f=n.stack;n.stack=[],l=n.enter("autolink");let s=a.move("<");return s+=a.move(n.containerPhrasing(e,{before:s,after:">",...a.current()})),s+=a.move(">"),l(),n.stack=f,s}l=n.enter("link"),u=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(u=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),u()),c+=a.move(")"),l(),c}function hT(e,t,n){return ph(e,n)?"<":"["}gh.peek=pT;function gh(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const s=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return a(),n.stack=f,o(),i==="full"||!c||c!==s?u+=l.move(s+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function pT(){return"["}function fa(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function dT(e){const t=fa(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function gT(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function mh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function mT(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?gT(n):fa(n);const l=e.ordered?a==="."?")":".":dT(n);let u=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),mh(n)===a&&f){let s=-1;for(;++s<e.children.length;){const p=e.children[s];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(a=l),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c}function yT(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function bT(e,t,n,r){const i=yT(n);let o=n.bulletCurrent||fa(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const l=n.createTracker(r);l.move(o+" ".repeat(a-o.length)),l.shift(a);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),f);return u(),c;function f(s,p,h){return p?(h?"":" ".repeat(a))+s:(h?o:o+" ".repeat(a-o.length))+s}}function vT(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const wT=Br(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xT(e,t,n,r){return(e.children.some(function(a){return wT(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function kT(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}yh.peek=ST;function yh(e,t,n,r){const i=kT(n),o=n.enter("strong"),a=n.createTracker(r),l=a.move(i+i);let u=a.move(n.containerPhrasing(e,{after:i,before:l,...a.current()}));const c=u.charCodeAt(0),f=ur(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(u=pn(c)+u.slice(1));const s=u.charCodeAt(u.length-1),p=ur(r.after.charCodeAt(0),s,i);p.inside&&(u=u.slice(0,-1)+pn(s));const h=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},l+u+h}function ST(e,t,n){return n.options.strong||"*"}function _T(e,t,n,r){return n.safe(e.value,r)}function AT(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function ET(e,t,n){const r=(mh(n)+(n.options.ruleSpaces?" ":"")).repeat(AT(n));return n.options.ruleSpaces?r.slice(0,-1):r}const bh={blockquote:XP,break:Bu,code:tT,definition:rT,emphasis:uh,hardBreak:Bu,heading:lT,html:sh,image:ch,imageReference:fh,inlineCode:hh,link:dh,linkReference:gh,list:mT,listItem:bT,paragraph:vT,root:xT,strong:yh,text:_T,thematicBreak:ET};function CT(){return{enter:{table:OT,tableData:Uu,tableHeader:Uu,tableRow:TT},exit:{codeText:IT,table:PT,tableData:Si,tableHeader:Si,tableRow:Si}}}function OT(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function PT(e){this.exit(e),this.data.inTable=void 0}function TT(e){this.enter({type:"tableRow",children:[]},e)}function Si(e){this.exit(e)}function Uu(e){this.enter({type:"tableCell",children:[]},e)}function IT(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$T));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function $T(e,t){return t==="|"?t:e}function MT(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
61
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:u,tableRow:l}};function a(h,d,g,y){return c(f(h,g,y),h.align)}function l(h,d,g,y){const m=s(h,g,y),w=c([m]);return w.slice(0,w.indexOf(`
62
+ `))}function u(h,d,g,y){const m=g.enter("tableCell"),w=g.enter("phrasing"),k=g.containerPhrasing(h,{...y,before:o,after:o});return w(),m(),k}function c(h,d){return GP(h,{align:d,alignDelimiters:r,padding:n,stringLength:i})}function f(h,d,g){const y=h.children;let m=-1;const w=[],k=d.enter("table");for(;++m<y.length;)w[m]=s(y[m],d,g);return k(),w}function s(h,d,g){const y=h.children;let m=-1;const w=[],k=d.enter("tableRow");for(;++m<y.length;)w[m]=u(y[m],h,d,g);return k(),w}function p(h,d,g){let y=bh.inlineCode(h,d,g);return g.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function DT(){return{exit:{taskListCheckValueChecked:qu,taskListCheckValueUnchecked:qu,paragraph:RT}}}function LT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:FT}}}function qu(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function RT(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const l=i[o];if(l.type==="paragraph"){a=l;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function FT(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);o&&l.move(a);let u=bh.listItem(e,t,n,{...r,...l.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(f){return f+a}}function NT(){return[mP(),FP(),BP(),CT(),DT()]}function zT(e){return{extensions:[yP(),NP(e),UP(),MT(e),LT()]}}const jT={tokenize:VT,partial:!0},vh={tokenize:GT,partial:!0},wh={tokenize:KT,partial:!0},xh={tokenize:XT,partial:!0},BT={tokenize:YT,partial:!0},kh={name:"wwwAutolink",tokenize:HT,previous:_h},Sh={name:"protocolAutolink",tokenize:WT,previous:Ah},He={name:"emailAutolink",tokenize:qT,previous:Eh},Re={};function UT(){return{text:Re}}let Je=48;for(;Je<123;)Re[Je]=He,Je++,Je===58?Je=65:Je===91&&(Je=97);Re[43]=He;Re[45]=He;Re[46]=He;Re[95]=He;Re[72]=[He,Sh];Re[104]=[He,Sh];Re[87]=[He,kh];Re[119]=[He,kh];function qT(e,t,n){const r=this;let i,o;return a;function a(s){return!lo(s)||!Eh.call(r,r.previous)||ha(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(s))}function l(s){return lo(s)?(e.consume(s),l):s===64?(e.consume(s),u):n(s)}function u(s){return s===46?e.check(BT,f,c)(s):s===45||s===95||ae(s)?(o=!0,e.consume(s),u):f(s)}function c(s){return e.consume(s),i=!0,u}function f(s){return o&&i&&ue(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}}function HT(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!_h.call(r,r.previous)||ha(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(jT,e.attempt(vh,e.attempt(wh,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function WT(e,t,n){const r=this;let i="",o=!1;return a;function a(s){return(s===72||s===104)&&Ah.call(r,r.previous)&&!ha(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(s),e.consume(s),l):n(s)}function l(s){if(ue(s)&&i.length<5)return i+=String.fromCodePoint(s),e.consume(s),l;if(s===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(s),u}return n(s)}function u(s){return s===47?(e.consume(s),o?c:(o=!0,u)):n(s)}function c(s){return s===null||or(s)||V(s)||ft(s)||Nr(s)?n(s):e.attempt(vh,e.attempt(wh,f),n)(s)}function f(s){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(s)}}function VT(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function GT(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(xh,u,l)(c):c===null||V(c)||ft(c)||c!==45&&Nr(c)?u(c):(o=!0,e.consume(c),a)}function l(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function u(c){return i||r||!o?n(c):t(c)}}function KT(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(xh,t,o)(a):a===null||V(a)||ft(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function XT(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),o):l===93?(e.consume(l),i):l===60||l===null||V(l)||ft(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||V(l)||ft(l)?t(l):r(l)}function o(l){return ue(l)?a(l):n(l)}function a(l){return l===59?(e.consume(l),r):ue(l)?(e.consume(l),a):n(l)}}function YT(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return ae(o)?n(o):t(o)}}function _h(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||V(e)}function Ah(e){return!ue(e)}function Eh(e){return!(e===47||lo(e))}function lo(e){return e===43||e===45||e===46||e===95||ae(e)}function ha(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const QT={tokenize:oI,partial:!0};function JT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:nI,continuation:{tokenize:rI},exit:iI}},text:{91:{name:"gfmFootnoteCall",tokenize:tI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ZT,resolveTo:eI}}}}function ZT(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){a=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!a||!a._balanced)return n(u);const c=Ce(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function eI(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function tI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return l;function l(s){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),u}function u(s){return s!==94?n(s):(e.enter("gfmFootnoteCallMarker"),e.consume(s),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){if(o>999||s===93&&!a||s===null||s===91||V(s))return n(s);if(s===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Ce(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return V(s)||(a=!0),o++,e.consume(s),s===92?f:c}function f(s){return s===91||s===92||s===93?(e.consume(s),o++,c):c(s)}}function nI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,l;return u;function u(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(d)}function f(d){if(a>999||d===93&&!l||d===null||d===91||V(d))return n(d);if(d===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return o=Ce(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return V(d)||(l=!0),a++,e.consume(d),d===92?s:f}function s(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),B(e,h,"gfmFootnoteDefinitionWhitespace")):n(d)}function h(d){return t(d)}}function rI(e,t,n){return e.check(xn,t,e.attempt(QT,t,n))}function iI(e){e.exit("gfmFootnoteDefinition")}function oI(e,t,n){const r=this;return B(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function aI(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,l){let u=-1;for(;++u<a.length;)if(a[u][0]==="enter"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._close){let c=u;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[u][1].end.offset-a[u][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[u][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[u][1].end)},s={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[u][1].start)},p=[["enter",f,l],["enter",a[c][1],l],["exit",a[c][1],l],["enter",s,l]],h=l.parser.constructs.insideSpan.null;h&&ye(p,p.length,0,zr(h,a.slice(c+1,u),l)),ye(p,p.length,0,[["exit",s,l],["enter",a[u][1],l],["exit",a[u][1],l],["exit",f,l]]),ye(a,c-1,u-c+3,p),u=c+p.length-2;break}}for(u=-1;++u<a.length;)a[u][1].type==="strikethroughSequenceTemporary"&&(a[u][1].type="data");return a}function o(a,l,u){const c=this.previous,f=this.events;let s=0;return p;function p(d){return c===126&&f[f.length-1][1].type!=="characterEscape"?u(d):(a.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const g=It(c);if(d===126)return s>1?u(d):(a.consume(d),s++,h);if(s<2&&!n)return u(d);const y=a.exit("strikethroughSequenceTemporary"),m=It(d);return y._open=!m||m===2&&!!g,y._close=!g||g===2&&!!m,l(d)}}}class lI{constructor(){this.map=[]}add(t,n,r){uI(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function uI(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function sI(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function cI(){return{flow:{null:{name:"table",tokenize:fI,resolveAll:hI}}}}function fI(e,t,n){const r=this;let i=0,o=0,a;return l;function l(_){let I=r.events.length-1;for(;I>-1;){const q=r.events[I][1].type;if(q==="lineEnding"||q==="linePrefix")I--;else break}const O=I>-1?r.events[I][1].type:null,L=O==="tableHead"||O==="tableRow"?x:u;return L===x&&r.parser.lazy[r.now().line]?n(_):L(_)}function u(_){return e.enter("tableHead"),e.enter("tableRow"),c(_)}function c(_){return _===124||(a=!0,o+=1),f(_)}function f(_){return _===null?n(_):R(_)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),h):n(_):z(_)?B(e,f,"whitespace")(_):(o+=1,a&&(a=!1,i+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),s(_)))}function s(_){return _===null||_===124||V(_)?(e.exit("data"),f(_)):(e.consume(_),_===92?p:s)}function p(_){return _===92||_===124?(e.consume(_),s):s(_)}function h(_){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(_):(e.enter("tableDelimiterRow"),a=!1,z(_)?B(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):d(_))}function d(_){return _===45||_===58?y(_):_===124?(a=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),g):A(_)}function g(_){return z(_)?B(e,y,"whitespace")(_):y(_)}function y(_){return _===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),m):_===45?(o+=1,m(_)):_===null||R(_)?S(_):A(_)}function m(_){return _===45?(e.enter("tableDelimiterFiller"),w(_)):A(_)}function w(_){return _===45?(e.consume(_),w):_===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(_))}function k(_){return z(_)?B(e,S,"whitespace")(_):S(_)}function S(_){return _===124?d(_):_===null||R(_)?!a||i!==o?A(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):A(_)}function A(_){return n(_)}function x(_){return e.enter("tableRow"),P(_)}function P(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),P):_===null||R(_)?(e.exit("tableRow"),t(_)):z(_)?B(e,P,"whitespace")(_):(e.enter("data"),$(_))}function $(_){return _===null||_===124||V(_)?(e.exit("data"),P(_)):(e.consume(_),_===92?D:$)}function D(_){return _===92||_===124?(e.consume(_),$):$(_)}}function hI(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],l=!1,u=0,c,f,s;const p=new lI;for(;++n<e.length;){const h=e[n],d=h[1];h[0]==="enter"?d.type==="tableHead"?(l=!1,u!==0&&(Hu(p,t,u,c,f),f=void 0,u=0),c={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",c,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,s=void 0,o=[0,0,0,0],a=[0,n+1,0,0],l&&(l=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",f,t]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],s=Mn(p,t,o,i,void 0,s),o=[0,0,0,0]),a[2]=n)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],s=Mn(p,t,o,i,void 0,s)),o=a,a=[o[1],n,0,0])):d.type==="tableHead"?(l=!0,u=n):d.type==="tableRow"||d.type==="tableDelimiterRow"?(u=n,o[1]!==0?(a[0]=a[1],s=Mn(p,t,o,i,n,s)):a[1]!==0&&(s=Mn(p,t,a,i,n,s)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(a[3]=n)}for(u!==0&&Hu(p,t,u,c,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=sI(t.events,n))}return e}function Mn(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},xt(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const u=xt(t.events,n[1]);if(o={type:a,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=xt(t.events,n[2]),f=xt(t.events,n[3]),s={type:l,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",s,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const d=n[2]+1,g=n[3]-n[2]-1;e.add(d,g,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return i!==void 0&&(o.end=Object.assign({},xt(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Hu(e,t,n,r,i){const o=[],a=xt(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function xt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const pI={name:"tasklistCheck",tokenize:gI};function dI(){return{text:{91:pI}}}function gI(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return V(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),a):n(u)}function a(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(u)}function l(u){return R(u)?t(u):z(u)?e.check({tokenize:mI},t,n)(u):n(u)}}function mI(e,t,n){return B(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yI(e){return Rf([UT(),JT(),aI(e),cI(),dI()])}const bI={};function F$(e){const t=this,n=e||bI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yI(n)),o.push(NT()),a.push(zT(n))}function N$(e,t){if(e==null)return{};var n,r,i=mp(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vI(e){if(Array.isArray(e))return uo(e)}function wI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xI(e,t){if(e){if(typeof e=="string")return uo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uo(e,t):void 0}}function kI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z$(e){return vI(e)||wI(e)||xI(e)||kI()}const Wu=/[#.]/g;function SI(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){Wu.lastIndex=i;const l=Wu.exec(n),u=n.slice(i,l?l.index:n.length);u&&(o?o==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:a=u,i+=u.length),l&&(o=l[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function Ch(e,t,n){const r=n?CI(n):void 0;function i(o,a,...l){let u;if(o==null){u={type:"root",children:[]};const c=a;l.unshift(c)}else{u=SI(o,t);const c=u.tagName.toLowerCase(),f=r?r.get(c):void 0;if(u.tagName=f||c,_I(a))l.unshift(a);else for(const[s,p]of Object.entries(a))AI(e,u.properties,s,p)}for(const c of l)so(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function _I(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const o=i;for(const a of o)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function AI(e,t,n,r){const i=Cf(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?i.spaceSeparated?o=Zl(r):i.commaSeparated?o=Kl(r):i.commaOrSpaceSeparated?o=Zl(Kl(r).join(" ")):o=Vu(i,i.property,r):Array.isArray(r)?o=[...r]:o=i.property==="style"?EI(r):String(r);if(Array.isArray(o)){const a=[];for(const l of o)a.push(Vu(i,i.property,l));o=a}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function so(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)so(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?so(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Vu(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||cn(n)===cn(t)))return!0}return n}function EI(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function CI(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const OI=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],j$=Ch(Of,"div");Ch(Rr,"g",OI);const PI=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Gu={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Oh(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function TI(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function II(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Ku(e){return II(e)||Oh(e)}const $I=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function B$(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let o=0,a=-1,l="",u,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,u=n.position.start):u=n.position);let f=(u?u.line:0)||1,s=(u?u.column:0)||1,p=d(),h;for(o--;++o<=e.length;)if(h===10&&(s=(c?c[a]:0)||1),h=e.charCodeAt(o),h===38){const m=e.charCodeAt(o+1);if(m===9||m===10||m===12||m===32||m===38||m===60||Number.isNaN(m)||r&&m===r){l+=String.fromCharCode(h),s++;continue}const w=o+1;let k=w,S=w,A;if(m===35){S=++k;const L=e.charCodeAt(S);L===88||L===120?(A="hexadecimal",S=++k):A="decimal"}else A="named";let x="",P="",$="";const D=A==="named"?Ku:A==="decimal"?Oh:TI;for(S--;++S<=e.length;){const L=e.charCodeAt(S);if(!D(L))break;$+=String.fromCharCode(L),A==="named"&&PI.includes($)&&(x=$,P=hn($))}let _=e.charCodeAt(S)===59;if(_){S++;const L=A==="named"?hn($):!1;L&&(x=$,P=L)}let I=1+S-w,O="";if(!(!_&&n.nonTerminated===!1))if(!$)A!=="named"&&g(4,I);else if(A==="named"){if(_&&!P)g(5,1);else if(x!==$&&(S=k+x.length,I=1+S-k,_=!1),!_){const L=x?1:3;if(n.attribute){const q=e.charCodeAt(S);q===61?(g(L,I),P=""):Ku(q)?P="":g(L,I)}else g(L,I)}O=P}else{_||g(2,I);let L=Number.parseInt($,A==="hexadecimal"?16:10);if(MI(L))g(7,I),O="�";else if(L in Gu)g(6,I),O=Gu[L];else{let q="";DI(L)&&g(6,I),L>65535&&(L-=65536,q+=String.fromCharCode(L>>>10|55296),L=56320|L&1023),O=q+String.fromCharCode(L)}}if(O){y(),p=d(),o=S-1,s+=S-w+1,i.push(O);const L=d();L.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,O,{start:p,end:L},e.slice(w-1,S)),p=L}else $=e.slice(w-1,S),l+=$,s+=$.length,o=S-1}else h===10&&(f++,a++,s=0),Number.isNaN(h)?y():(l+=String.fromCharCode(h),s++);return i.join("");function d(){return{line:f,column:s,offset:o+((u?u.offset:0)||0)}}function g(m,w){let k;n.warning&&(k=d(),k.column+=w,k.offset+=w,n.warning.call(n.warningContext||void 0,$I[m],k,m))}function y(){l&&(i.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:p,end:d()}),l="")}}function MI(e){return e>=55296&&e<=57343||e>1114111}function DI(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}function Xe(){}Xe.prototype={diff:function(t,n){var r,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.callback;typeof i=="function"&&(o=i,i={}),this.options=i;var a=this;function l(S){return o?(setTimeout(function(){o(void 0,S)},0),!0):S}t=this.castInput(t),n=this.castInput(n),t=this.removeEmpty(this.tokenize(t)),n=this.removeEmpty(this.tokenize(n));var u=n.length,c=t.length,f=1,s=u+c;i.maxEditLength&&(s=Math.min(s,i.maxEditLength));var p=(r=i.timeout)!==null&&r!==void 0?r:1/0,h=Date.now()+p,d=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(d[0],n,t,0);if(d[0].oldPos+1>=c&&g+1>=u)return l([{value:this.join(n),count:n.length}]);var y=-1/0,m=1/0;function w(){for(var S=Math.max(y,-f);S<=Math.min(m,f);S+=2){var A=void 0,x=d[S-1],P=d[S+1];x&&(d[S-1]=void 0);var $=!1;if(P){var D=P.oldPos-S;$=P&&0<=D&&D<u}var _=x&&x.oldPos+1<c;if(!$&&!_){d[S]=void 0;continue}if(!_||$&&x.oldPos+1<P.oldPos?A=a.addToPath(P,!0,void 0,0):A=a.addToPath(x,void 0,!0,1),g=a.extractCommon(A,n,t,S),A.oldPos+1>=c&&g+1>=u)return l(LI(a,A.lastComponent,n,t,a.useLongestToken));d[S]=A,A.oldPos+1>=c&&(m=Math.min(m,S-1)),g+1>=u&&(y=Math.max(y,S+1))}f++}if(o)(function S(){setTimeout(function(){if(f>s||Date.now()>h)return o();w()||S()},0)})();else for(;f<=s&&Date.now()<=h;){var k=w();if(k)return k}},addToPath:function(t,n,r,i){var o=t.lastComponent;return o&&o.added===n&&o.removed===r?{oldPos:t.oldPos+i,lastComponent:{count:o.count+1,added:n,removed:r,previousComponent:o.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:o}}},extractCommon:function(t,n,r,i){for(var o=n.length,a=r.length,l=t.oldPos,u=l-i,c=0;u+1<o&&l+1<a&&this.equals(n[u+1],r[l+1]);)u++,l++,c++;return c&&(t.lastComponent={count:c,previousComponent:t.lastComponent}),t.oldPos=l,u},equals:function(t,n){return this.options.comparator?this.options.comparator(t,n):t===n||this.options.ignoreCase&&t.toLowerCase()===n.toLowerCase()},removeEmpty:function(t){for(var n=[],r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function LI(e,t,n,r,i){for(var o=[],a;t;)o.push(t),a=t.previousComponent,delete t.previousComponent,t=a;o.reverse();for(var l=0,u=o.length,c=0,f=0;l<u;l++){var s=o[l];if(s.removed){if(s.value=e.join(r.slice(f,f+s.count)),f+=s.count,l&&o[l-1].added){var h=o[l-1];o[l-1]=o[l],o[l]=h}}else{if(!s.added&&i){var p=n.slice(c,c+s.count);p=p.map(function(g,y){var m=r[f+y];return m.length>g.length?m:g}),s.value=e.join(p)}else s.value=e.join(n.slice(c,c+s.count));c+=s.count,s.added||(f+=s.count)}}var d=o[u-1];return u>1&&typeof d.value=="string"&&(d.added||d.removed)&&e.equals("",d.value)&&(o[u-2].value+=d.value,o.pop()),o}var Xu=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Yu=/\S/,Ph=new Xe;Ph.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Yu.test(e)&&!Yu.test(t)};Ph.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&Xu.test(t[n])&&Xu.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var pa=new Xe;pa.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
64
+ `));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};function U$(e,t,n){return pa.diff(e,t,n)}var RI=new Xe;RI.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var FI=new Xe;FI.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function zn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zn=function(t){return typeof t}:zn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}var NI=Object.prototype.toString,dn=new Xe;dn.useLongestToken=!0;dn.tokenize=pa.tokenize;dn.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(o,a){return typeof a>"u"?n:a}:r;return typeof e=="string"?e:JSON.stringify(co(e,null,null,i),i," ")};dn.equals=function(e,t){return Xe.prototype.equals.call(dn,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function co(e,t,n,r,i){t=t||[],n=n||[],r&&(e=r(i,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var a;if(NI.call(e)==="[object Array]"){for(t.push(e),a=new Array(e.length),n.push(a),o=0;o<e.length;o+=1)a[o]=co(e[o],t,n,r,i);return t.pop(),n.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),zn(e)==="object"&&e!==null){t.push(e),a={},n.push(a);var l=[],u;for(u in e)e.hasOwnProperty(u)&&l.push(u);for(l.sort(),o=0;o<l.length;o+=1)u=l[o],a[u]=co(e[u],t,n,r,u);t.pop(),n.pop()}else a=e;return a}var fo=new Xe;fo.tokenize=function(e){return e.slice()};fo.join=fo.removeEmpty=function(e){return e};export{T$ as $,kt as A,p$ as B,h$ as C,f$ as D,c$ as E,I0 as F,o$ as G,u$ as H,l$ as I,a$ as J,Hn as K,ZI as L,e$ as M,d$ as N,g$ as O,m$ as P,y$ as Q,Uk as R,b$ as S,k$ as T,_$ as U,w$ as V,sS as W,A$ as X,E$ as Y,P$ as Z,_a as _,WI as a,O$ as a0,I$ as a1,$$ as a2,M$ as a3,D$ as a4,L$ as a5,Pt as a6,S$ as a7,x$ as a8,Kk as a9,mS as aa,C$ as ab,N$ as ac,z$ as ad,j$ as ae,B$ as af,R$ as ag,F$ as ah,U$ as ai,BI as b,Qu as c,gp as d,yp as e,mp as f,qI as g,VI as h,St as i,Dn as j,GI as k,KI as l,UI as m,JI as n,QI as o,sr as p,XI as q,HI as r,ip as s,YI as t,n$ as u,r$ as v,pl as w,t$ as x,i$ as y,s$ as z};
65
+ //# sourceMappingURL=vendor-DWgdB1eY.js.map