titan-agent 6.1.0-beta.2 → 6.1.0-beta.21

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 (235) hide show
  1. package/LICENSE +1 -29
  2. package/README.md +1 -1
  3. package/dist/agent/agentLessons.js +2 -2
  4. package/dist/agent/agentLessons.js.map +1 -1
  5. package/dist/agent/autoModeClassifier.js +95 -0
  6. package/dist/agent/autoModeClassifier.js.map +1 -0
  7. package/dist/agent/durableJournal.js +2 -2
  8. package/dist/agent/durableJournal.js.map +1 -1
  9. package/dist/agent/goalDriver.js +67 -0
  10. package/dist/agent/goalDriver.js.map +1 -1
  11. package/dist/agent/goalPlanFile.js +3 -3
  12. package/dist/agent/goalPlanFile.js.map +1 -1
  13. package/dist/agent/missionLifecycle.js +2 -2
  14. package/dist/agent/missionLifecycle.js.map +1 -1
  15. package/dist/agent/subAgent.js +41 -0
  16. package/dist/agent/subAgent.js.map +1 -1
  17. package/dist/agent/toolContract.js +49 -0
  18. package/dist/agent/toolContract.js.map +1 -0
  19. package/dist/agent/toolRunner.js +72 -11
  20. package/dist/agent/toolRunner.js.map +1 -1
  21. package/dist/agent/trajectoryRecorder.js +185 -0
  22. package/dist/agent/trajectoryRecorder.js.map +1 -0
  23. package/dist/agent/verification.js +164 -0
  24. package/dist/agent/verification.js.map +1 -0
  25. package/dist/agent/worktreeExecutor.js +207 -0
  26. package/dist/agent/worktreeExecutor.js.map +1 -0
  27. package/dist/config/schema.js +28 -1
  28. package/dist/config/schema.js.map +1 -1
  29. package/dist/gateway/server.js +54 -0
  30. package/dist/gateway/server.js.map +1 -1
  31. package/dist/memory/facade.js +137 -0
  32. package/dist/memory/facade.js.map +1 -0
  33. package/dist/migrations/003-soma-profile-default.js +2 -2
  34. package/dist/migrations/003-soma-profile-default.js.map +1 -1
  35. package/dist/migrations/005-route-redirects.js +3 -1
  36. package/dist/migrations/005-route-redirects.js.map +1 -1
  37. package/dist/migrations/runner.js +2 -2
  38. package/dist/migrations/runner.js.map +1 -1
  39. package/dist/providers/defaultModel.js +14 -0
  40. package/dist/providers/defaultModel.js.map +1 -1
  41. package/dist/providers/router.js +4 -0
  42. package/dist/providers/router.js.map +1 -1
  43. package/dist/providers/stub.js +185 -0
  44. package/dist/providers/stub.js.map +1 -0
  45. package/dist/skills/builtin/backup.js +1 -2
  46. package/dist/skills/builtin/backup.js.map +1 -1
  47. package/dist/skills/builtin/contracts.js +254 -0
  48. package/dist/skills/builtin/contracts.js.map +1 -0
  49. package/dist/skills/builtin/download_image.js +9 -0
  50. package/dist/skills/builtin/download_image.js.map +1 -1
  51. package/dist/skills/builtin/filesystem.js +70 -20
  52. package/dist/skills/builtin/filesystem.js.map +1 -1
  53. package/dist/skills/registry.js +7 -0
  54. package/dist/skills/registry.js.map +1 -1
  55. package/dist/storage/patterns.js +2 -2
  56. package/dist/storage/patterns.js.map +1 -1
  57. package/dist/storage/personalGallery.js +2 -2
  58. package/dist/storage/personalGallery.js.map +1 -1
  59. package/dist/storage/somaProfile.js +2 -2
  60. package/dist/storage/somaProfile.js.map +1 -1
  61. package/dist/utils/constants.js +1 -1
  62. package/dist/utils/constants.js.map +1 -1
  63. package/package.json +2 -2
  64. package/ui/dist/assets/{AuditPanel-DrDvXZ9u.js → AuditPanel-RNrvKmfX.js} +1 -1
  65. package/ui/dist/assets/{AutonomyPanel-BfhW-PRX.js → AutonomyPanel-D0nmt79R.js} +2 -2
  66. package/ui/dist/assets/{AutopilotPanel-C3yQBxAp.js → AutopilotPanel-DlcdfRRy.js} +1 -1
  67. package/ui/dist/assets/{AutoresearchPanel-BgpR3EcK.js → AutoresearchPanel-CXeO6kGK.js} +2 -2
  68. package/ui/dist/assets/BackupPanel-CKb-cDsk.js +1 -0
  69. package/ui/dist/assets/{BrowserPanel-BNaKZOnn.js → BrowserPanel-CDaoF6n5.js} +1 -1
  70. package/ui/dist/assets/CPActivity-BZbeztg1.js +1 -0
  71. package/ui/dist/assets/CPAgentDetail-C9fvLxKi.js +1 -0
  72. package/ui/dist/assets/CPAgents-BsBA9kb2.js +1 -0
  73. package/ui/dist/assets/CPApprovals-Di5itVIK.js +1 -0
  74. package/ui/dist/assets/CPCosts-DmgckHli.js +1 -0
  75. package/ui/dist/assets/CPDashboard-CmSb7woK.js +1 -0
  76. package/ui/dist/assets/{CPFiles-CUpP5I82.js → CPFiles-Dd0NGcpX.js} +1 -1
  77. package/ui/dist/assets/CPGoals-DeILFq0A.js +1 -0
  78. package/ui/dist/assets/{CPInbox-DUW_hntB.js → CPInbox-DAtidZez.js} +2 -2
  79. package/ui/dist/assets/CPIssueDetail-BvwoGI57.js +1 -0
  80. package/ui/dist/assets/CPIssues-CZ1hIKDP.js +1 -0
  81. package/ui/dist/assets/{CPLayout-J0fa-it4.js → CPLayout-luPwhNpA.js} +3 -3
  82. package/ui/dist/assets/CPOrg-BlYp_KP6.js +8 -0
  83. package/ui/dist/assets/CPRuns-D0HMCjIo.js +1 -0
  84. package/ui/dist/assets/{CPSocial-By_FStZ4.js → CPSocial-CZaGi14s.js} +2 -2
  85. package/ui/dist/assets/ChannelsPanel-khiBHwx3.js +1 -0
  86. package/ui/dist/assets/{CheckpointsPanel-DvKUd2VF.js → CheckpointsPanel-n2y3jzzT.js} +1 -1
  87. package/ui/dist/assets/{CommandPostHub-CQqRYBjf.js → CommandPostHub-iWf-zt5p.js} +4 -4
  88. package/ui/dist/assets/{CronPanel-Brmnnu8_.js → CronPanel-BkRJl8u6.js} +1 -1
  89. package/ui/dist/assets/{DataTable-seaktPzB.js → DataTable-DZ2cG3Cv.js} +1 -1
  90. package/ui/dist/assets/{DreamPanel-CO7iSdjn.js → DreamPanel-DF6l0WB-.js} +1 -1
  91. package/ui/dist/assets/{EmptyState-CmK9fywh.js → EmptyState-D7xwm8hA.js} +1 -1
  92. package/ui/dist/assets/{EvalHarnessPanel-2RVBKbym.js → EvalHarnessPanel-BHabu49z.js} +2 -2
  93. package/ui/dist/assets/{EvalPanel-CqAwhFQ5.js → EvalPanel-yAesMLSP.js} +1 -1
  94. package/ui/dist/assets/{FileViewer-D98m-vF5.js → FileViewer-DOWUQccc.js} +52 -14
  95. package/ui/dist/assets/{FilesPanel-dRQM0apb.js → FilesPanel-BjuDhqaX.js} +2 -2
  96. package/ui/dist/assets/FleetPanel-B0ZhS2XX.js +1 -0
  97. package/ui/dist/assets/{HomelabPanel-DjMUrO2B.js → HomelabPanel-D373ddvj.js} +1 -1
  98. package/ui/dist/assets/InfraView-CI99NZbI.js +2 -0
  99. package/ui/dist/assets/InlineEditableField-fDk3eGVo.js +1 -0
  100. package/ui/dist/assets/Input-j10hONMY.js +1 -0
  101. package/ui/dist/assets/IntegrationsPanel-kPa5Qq-f.js +1 -0
  102. package/ui/dist/assets/IntelligenceView-DeKBaAlY.js +2 -0
  103. package/ui/dist/assets/LearningPanel-B8tqHeEZ.js +1 -0
  104. package/ui/dist/assets/{LogsPanel-Bs9IsTCH.js → LogsPanel-sXc__trb.js} +1 -1
  105. package/ui/dist/assets/McpPanel-DEr8pZwB.js +1 -0
  106. package/ui/dist/assets/{MemoryGraphPanel-F1P9COyY.js → MemoryGraphPanel-DZl7USJ6.js} +1 -1
  107. package/ui/dist/assets/MemoryWikiPanel-DTNVWvVT.js +11 -0
  108. package/ui/dist/assets/{MeshPanel-CgIAh5ZX.js → MeshPanel-b77zyQx4.js} +1 -1
  109. package/ui/dist/assets/MissionCanvas-D_quSl5F.js +69 -0
  110. package/ui/dist/assets/MissionChat-rQ5rUPAt.js +7 -0
  111. package/ui/dist/assets/MissionLibrary-Cxw7sLxv.js +5 -0
  112. package/ui/dist/assets/MissionStart-ChMWO1rr.js +1 -0
  113. package/ui/dist/assets/Modal-Dl5b6Yaj.js +1 -0
  114. package/ui/dist/assets/NvidiaPanel-D7qFbbeJ.js +1 -0
  115. package/ui/dist/assets/{OrganismPanel-CNZM3eof.js → OrganismPanel-EiQ9Gfqx.js} +1 -1
  116. package/ui/dist/assets/OverviewPanel-Bectj1Z5.js +1 -0
  117. package/ui/dist/assets/{PageHeader-llOXO43Z.js → PageHeader-CiuoyvDR.js} +1 -1
  118. package/ui/dist/assets/{PersonaProfilesPanel-CfsQTMra.js → PersonaProfilesPanel-BO87DSVG.js} +1 -1
  119. package/ui/dist/assets/{PersonasPanel-DIac_kZ3.js → PersonasPanel-BNogLwM0.js} +1 -1
  120. package/ui/dist/assets/RecipesPanel-DyqfWlaY.js +1 -0
  121. package/ui/dist/assets/{SecurityPanel-_gqMk8hJ.js → SecurityPanel-OMC-Tvbz.js} +1 -1
  122. package/ui/dist/assets/SelfImprovePanel-DXIfG_df.js +1 -0
  123. package/ui/dist/assets/{SelfProposalsPanel-DuA0zsGH.js → SelfProposalsPanel-CmgEz1TQ.js} +2 -2
  124. package/ui/dist/assets/SessionsPanel-gJXosEGf.js +1 -0
  125. package/ui/dist/assets/{SessionsTab-bFYaFvTZ.js → SessionsTab-BOVzzjTO.js} +1 -1
  126. package/ui/dist/assets/SettingsPanel-DifFGEvi.js +1 -0
  127. package/ui/dist/assets/SettingsView-BNpj0iym.js +2 -0
  128. package/ui/dist/assets/SkeletonLoader-CNSsfH3f.js +1 -0
  129. package/ui/dist/assets/{SkillsPanel-D08WcRGp.js → SkillsPanel-6fbRov-m.js} +1 -1
  130. package/ui/dist/assets/{SomaView-CYukE7Fp.js → SomaView-D3boPl5D.js} +1 -1
  131. package/ui/dist/assets/{StatCard-DT4Bx1mY.js → StatCard-2BmOlamJ.js} +1 -1
  132. package/ui/dist/assets/StatusBadge-CdVHF1nG.js +1 -0
  133. package/ui/dist/assets/Tabs-DW9ytf9H.js +1 -0
  134. package/ui/dist/assets/{TeamsPanel-DOBe72TK.js → TeamsPanel-CNaQ8Dbw.js} +1 -1
  135. package/ui/dist/assets/TelemetryPanel-DL81QlAW.js +1 -0
  136. package/ui/dist/assets/TitanCanvas-DLIN_wV3.js +1152 -0
  137. package/ui/dist/assets/ToolsView-BlChEE4n.js +2 -0
  138. package/ui/dist/assets/Tooltip-oR5JnwoN.js +6 -0
  139. package/ui/dist/assets/{TraceViewer-0bCz0x_a.js → TraceViewer-DtJXjCXV.js} +1 -1
  140. package/ui/dist/assets/TrainingPanel-4XMGaRN_.js +1 -0
  141. package/ui/dist/assets/{VoiceOverlay-B08Sw918.js → VoiceOverlay-B3fXJ-EC.js} +1 -1
  142. package/ui/dist/assets/{VramPanel-CJiic8y4.js → VramPanel-HisAYiqI.js} +1 -1
  143. package/ui/dist/assets/{WatchView-CaQMDEAy.js → WatchView-C92y0hU7.js} +1 -1
  144. package/ui/dist/assets/{WorkTab-D5bi2WRi.js → WorkTab-BYAWcvA1.js} +1 -1
  145. package/ui/dist/assets/{WorkflowsPanel-DdY6E93C.js → WorkflowsPanel-D2DiOBLA.js} +1 -1
  146. package/ui/dist/assets/{arrow-left-CHJyrO8S.js → arrow-left-thXQMJQ6.js} +1 -1
  147. package/ui/dist/assets/{briefcase-ROIEmiah.js → briefcase-ByMhDqlL.js} +1 -1
  148. package/ui/dist/assets/{chart-column-wFkjV3Ni.js → chart-column-CYHJVuxN.js} +1 -1
  149. package/ui/dist/assets/{check-BcOm5jPO.js → check-ChWLFWCx.js} +1 -1
  150. package/ui/dist/assets/{chevron-down-CM11GPpR.js → chevron-down-CU_O_5h3.js} +1 -1
  151. package/ui/dist/assets/{chevron-right-aFDDgFsL.js → chevron-right-DAiXsK24.js} +1 -1
  152. package/ui/dist/assets/{chevron-up-D6g7FB6i.js → chevron-up-BudRYwvy.js} +1 -1
  153. package/ui/dist/assets/{circle-check-big-DPz64kZW.js → circle-check-big-gkA-V2JW.js} +1 -1
  154. package/ui/dist/assets/{clock-BbCCaukN.js → clock-qO5kIED9.js} +1 -1
  155. package/ui/dist/assets/clsx-B-dksMZM.js +1 -0
  156. package/ui/dist/assets/{dollar-sign-Dy5-qkg3.js → dollar-sign-1gQNJK3V.js} +1 -1
  157. package/ui/dist/assets/{download-DjheLEns.js → download-DMD1m87c.js} +1 -1
  158. package/ui/dist/assets/{external-link-BgxGF7ZQ.js → external-link-ByafQkZ7.js} +1 -1
  159. package/ui/dist/assets/{folder-DY4eeMdo.js → folder-DeG4RuOD.js} +1 -1
  160. package/ui/dist/assets/{funnel-LWmcwhj-.js → funnel-wE8i5V9Y.js} +1 -1
  161. package/ui/dist/assets/{git-branch-CPZciK10.js → git-branch-BWSuK1LU.js} +1 -1
  162. package/ui/dist/assets/index-B8YEFBRH.js +277 -0
  163. package/ui/dist/assets/index-Cb5bSxRB.css +1 -0
  164. package/ui/dist/assets/{layers-Bn7bgu2Z.js → layers-tN-wIpE0.js} +1 -1
  165. package/ui/dist/assets/{legacy-BVPeht6t.js → legacy-BSZBdyop.js} +2 -2
  166. package/ui/dist/assets/{lightbulb-tzuCyEQk.js → lightbulb-TUHKCda3.js} +1 -1
  167. package/ui/dist/assets/{list-todo-say4NbSw.js → list-todo-DtxcUGz2.js} +1 -1
  168. package/ui/dist/assets/{missions-DbC8UmMc.js → missions-C3EC4uKT.js} +1 -1
  169. package/ui/dist/assets/{network-v9O7MmZT.js → network-ephW7nah.js} +1 -1
  170. package/ui/dist/assets/{pause-CZo33QlA.js → pause-DeggUVZc.js} +1 -1
  171. package/ui/dist/assets/{play-DbCJhc5H.js → play-Dfc0ia6v.js} +1 -1
  172. package/ui/dist/assets/{plug-CtpCZg2z.js → plug-Bl_6i_9u.js} +1 -1
  173. package/ui/dist/assets/{plus-O61rB_YF.js → plus-CQwCh7WY.js} +1 -1
  174. package/ui/dist/assets/{proxy-BAUTNyg6.js → proxy-BjQ4lsww.js} +1 -1
  175. package/ui/dist/assets/{rotate-ccw-n5WkWR51.js → rotate-ccw-CUuN2ebi.js} +1 -1
  176. package/ui/dist/assets/{save-D2Qh8KyN.js → save-PlTUvsN5.js} +1 -1
  177. package/ui/dist/assets/{search-C9SdcZJq.js → search-BHgLDT-j.js} +1 -1
  178. package/ui/dist/assets/{send-DZ_5M5QQ.js → send-pflQNBoT.js} +1 -1
  179. package/ui/dist/assets/{shield-check-DyP5PmaY.js → shield-check-CrD-s89i.js} +1 -1
  180. package/ui/dist/assets/{target-CWfn705s.js → target-D4oh8GME.js} +1 -1
  181. package/ui/dist/assets/{terminal-CdhfA0Kr.js → terminal-BvJZ1R3x.js} +1 -1
  182. package/ui/dist/assets/{toggle-right-CmYQLQRS.js → toggle-right-Dl7x_ed7.js} +1 -1
  183. package/ui/dist/assets/{trash-2-TQcEJEv4.js → trash-2-lPcFwnW5.js} +1 -1
  184. package/ui/dist/assets/{trending-up-Cw22bM4J.js → trending-up-DqUbZfDe.js} +1 -1
  185. package/ui/dist/assets/{trophy-DUF8Bcas.js → trophy-Dv6zFfKM.js} +1 -1
  186. package/ui/dist/assets/{users-BX_ZaByZ.js → users-NPyAWbs5.js} +1 -1
  187. package/ui/dist/assets/{wrench-Cfp7nYhG.js → wrench-BCKgeHj3.js} +1 -1
  188. package/ui/dist/index.html +2 -2
  189. package/ui/dist/sw.js +1 -1
  190. package/ui/dist/assets/BackupPanel-BNxMlNIP.js +0 -1
  191. package/ui/dist/assets/CPActivity-CjIgehOq.js +0 -1
  192. package/ui/dist/assets/CPAgentDetail-oaymYRNI.js +0 -1
  193. package/ui/dist/assets/CPAgents-CWQ6iJfO.js +0 -1
  194. package/ui/dist/assets/CPApprovals-DzATBhtM.js +0 -1
  195. package/ui/dist/assets/CPCosts-xVQR148_.js +0 -1
  196. package/ui/dist/assets/CPDashboard-Dt6Jr7Zw.js +0 -1
  197. package/ui/dist/assets/CPGoals-Bt1a3C9T.js +0 -1
  198. package/ui/dist/assets/CPIssueDetail-DHxqtiuh.js +0 -1
  199. package/ui/dist/assets/CPIssues-D0l3fgUs.js +0 -1
  200. package/ui/dist/assets/CPOrg-DQ3tbYld.js +0 -8
  201. package/ui/dist/assets/CPRuns-0vncicUW.js +0 -1
  202. package/ui/dist/assets/ChannelsPanel-CiJs4gyw.js +0 -1
  203. package/ui/dist/assets/FleetPanel-Bg-f3_ip.js +0 -1
  204. package/ui/dist/assets/InfraView-CHYaZqMK.js +0 -2
  205. package/ui/dist/assets/InlineEditableField-BOLRKQq1.js +0 -1
  206. package/ui/dist/assets/Input-4pNffAw-.js +0 -1
  207. package/ui/dist/assets/IntegrationsPanel-CFucvr-Q.js +0 -1
  208. package/ui/dist/assets/IntelligenceView-Dh-Wuf13.js +0 -2
  209. package/ui/dist/assets/LearningPanel-CtlougkF.js +0 -1
  210. package/ui/dist/assets/McpPanel-BobqpLsh.js +0 -1
  211. package/ui/dist/assets/MemoryWikiPanel-BfYksjoI.js +0 -11
  212. package/ui/dist/assets/MissionCanvas-0V_vtqiu.js +0 -50
  213. package/ui/dist/assets/MissionChat-9hGhc9Zw.js +0 -7
  214. package/ui/dist/assets/MissionLibrary-dFkT8pGp.js +0 -5
  215. package/ui/dist/assets/MissionStart-CZSEie0Q.js +0 -1
  216. package/ui/dist/assets/Modal-V2yNnkKk.js +0 -1
  217. package/ui/dist/assets/NvidiaPanel-qLJysI9M.js +0 -1
  218. package/ui/dist/assets/OverviewPanel-Be6LukJ_.js +0 -1
  219. package/ui/dist/assets/RecipesPanel-DDYOCx3w.js +0 -1
  220. package/ui/dist/assets/SelfImprovePanel-B8o_fO30.js +0 -1
  221. package/ui/dist/assets/SessionsPanel-DeCBkSgY.js +0 -1
  222. package/ui/dist/assets/SettingsPanel-BlsRDAt7.js +0 -1
  223. package/ui/dist/assets/SettingsView-Dsa7Zr4e.js +0 -2
  224. package/ui/dist/assets/SkeletonLoader-BkQoZllJ.js +0 -1
  225. package/ui/dist/assets/StatusBadge-BFEHCdgi.js +0 -1
  226. package/ui/dist/assets/Tabs-g2Gs9sK0.js +0 -1
  227. package/ui/dist/assets/TelemetryPanel-DXAGuV0R.js +0 -1
  228. package/ui/dist/assets/TitanCanvas-DCl3gxSl.js +0 -1072
  229. package/ui/dist/assets/ToolsView-CnUjq0Js.js +0 -2
  230. package/ui/dist/assets/Tooltip-DJ99YlFF.js +0 -6
  231. package/ui/dist/assets/TrainingPanel-BLf_KMaE.js +0 -1
  232. package/ui/dist/assets/eye-off-CYR4nH5I.js +0 -6
  233. package/ui/dist/assets/index-PwwKjgT3.css +0 -1
  234. package/ui/dist/assets/index-slWylU2o.js +0 -244
  235. package/ui/dist/assets/loader-circle-E8aLxmMz.js +0 -6
@@ -1,23 +1,61 @@
1
- import{g as Pt,j as D,R as hn,r as Vn}from"./index-slWylU2o.js";function kr(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const br=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sr={};function qn(e,n){return(Sr.jsx?wr:br).test(e)}const Er=/[ \t\n\f\r]/g;function Cr(e){return typeof e=="object"?e.type==="text"?$n(e.value):!1:$n(e)}function $n(e){return e.replace(Er,"")===""}class He{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}He.prototype.normal={};He.prototype.property={};He.prototype.space=void 0;function vt(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new He(t,r,n)}function dn(e){return e.toLowerCase()}class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let Ir=0;const N=be(),Y=be(),mn=be(),k=be(),$=be(),Te=be(),ne=be();function be(){return 2**++Ir}const gn=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:Y,commaOrSpaceSeparated:ne,commaSeparated:Te,number:k,overloadedBoolean:mn,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),Ze=Object.keys(gn);class Cn extends Z{constructor(n,t,r,i){let l=-1;if(super(n,t),Wn(this,"space",i),typeof r=="number")for(;++l<Ze.length;){const o=Ze[l];Wn(this,Ze[l],(r&gn[o])===gn[o])}}}Cn.prototype.defined=!0;function Wn(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Cn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[dn(r)]=r,t[dn(l.attribute)]=r}return new He(n,t,e.space)}const zt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:$,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:k,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:$,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:Y,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Lt(e,n){return n in e?e[n]:n}function Nt(e,n){return Lt(e,n.toLowerCase())}const Tr=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:$,autoFocus:N,autoPlay:N,blocking:$,capture:null,charSet:null,checked:N,cite:null,className:$,cols:k,colSpan:null,content:null,contentEditable:Y,controls:N,controlsList:$,coords:k|Te,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:mn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:$,height:k,hidden:mn,high:k,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:$,itemRef:$,itemScope:N,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,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:k,pattern:null,ping:$,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:$,required:N,reversed:N,rows:k,rowSpan:k,sandbox:$,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:Y,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,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:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N,disableRemotePlayback:N,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:Nt}),Ar=Pe({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:ne,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:$,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:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,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:Te,g2:Te,glyphName:Te,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,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:k,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:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,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:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Lt}),Dt=Pe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ot=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Nt}),Ft=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Pr={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"},vr=/[A-Z]/g,Yn=/-[a-z]/g,zr=/^data[-\w.:]+$/i;function Lr(e,n){const t=dn(n);let r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&zr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Yn,Dr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Yn.test(l)){let o=l.replace(vr,Nr);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Cn}return new i(r,n)}function Nr(e){return"-"+e.toLowerCase()}function Dr(e){return e.charAt(1).toUpperCase()}const Or=vt([zt,Tr,Dt,Ot,Ft],"html"),In=vt([zt,Ar,Dt,Ot,Ft],"svg");function Fr(e){return e.join(" ").trim()}var Ce={},en,Xn;function _r(){if(Xn)return en;Xn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
2
- `,u="/",s="*",p="",m="comment",f="declaration";function w(I,x){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];x=x||{};var z=1,C=1;function B(P){var S=P.match(n);S&&(z+=S.length);var j=P.lastIndexOf(c);C=~j?P.length-j:C+P.length}function U(){var P={line:z,column:C};return function(S){return S.position=new y(P),R(),S}}function y(P){this.start=P,this.end={line:z,column:C},this.source=x.source}y.prototype.content=I;function F(P){var S=new Error(x.source+":"+z+":"+C+": "+P);if(S.reason=P,S.filename=x.source,S.line=z,S.column=C,S.source=I,!x.silent)throw S}function V(P){var S=P.exec(I);if(S){var j=S[0];return B(j),I=I.slice(j.length),S}}function R(){V(t)}function M(P){var S;for(P=P||[];S=A();)S!==!1&&P.push(S);return P}function A(){var P=U();if(!(u!=I.charAt(0)||s!=I.charAt(1))){for(var S=2;p!=I.charAt(S)&&(s!=I.charAt(S)||u!=I.charAt(S+1));)++S;if(S+=2,p===I.charAt(S-1))return F("End of comment missing");var j=I.slice(2,S-2);return C+=2,B(j),I=I.slice(S),C+=2,P({type:m,comment:j})}}function T(){var P=U(),S=V(r);if(S){if(A(),!V(i))return F("property missing ':'");var j=V(l),X=P({type:f,property:E(S[0].replace(e,p)),value:j?E(j[0].replace(e,p)):p});return V(o),X}}function q(){var P=[];M(P);for(var S;S=T();)S!==!1&&(P.push(S),M(P));return P}return R(),q()}function E(I){return I?I.replace(a,p):p}return en=w,en}var Qn;function Rr(){if(Qn)return Ce;Qn=1;var e=Ce&&Ce.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=t;const n=e(_r());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:s}=c;a?i(u,s,c):s&&(l=l||{},l[u]=s)}),l}return Ce}var De={},Kn;function Mr(){if(Kn)return De;Kn=1,Object.defineProperty(De,"__esModule",{value:!0}),De.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,s){return s.toUpperCase()},a=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return De.camelCase=c,De}var Oe,Gn;function jr(){if(Gn)return Oe;Gn=1;var e=Oe&&Oe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Rr()),t=Mr();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(o[(0,t.camelCase)(a,l)]=c)}),o}return r.default=r,Oe=r,Oe}var Br=jr();const Hr=Pt(Br),_t=Rt("end"),Tn=Rt("start");function Rt(e){return n;function n(t){const r=t&&t.position&&t.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 Ur(e){const n=Tn(e),t=_t(e);if(n&&t)return{start:n,end:t}}function Re(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Jn(e.position):"start"in e||"end"in e?Jn(e):"line"in e||"column"in e?yn(e):""}function yn(e){return Zn(e&&e.line)+":"+Zn(e&&e.column)}function Jn(e){return yn(e&&e.start)+"-"+yn(e&&e.end)}function Zn(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Re(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const An={}.hasOwnProperty,Vr=new Map,qr=/[A-Z]/g,$r=new Set(["table","tbody","thead","tfoot","tr"]),Wr=new Set(["td","th"]),Mt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yr(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ni(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ei(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?In:Or,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=jt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function jt(e,n,t){if(n.type==="element")return Xr(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Qr(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Gr(e,n,t);if(n.type==="mdxjsEsm")return Kr(e,n);if(n.type==="root")return Jr(e,n,t);if(n.type==="text")return Zr(e,n)}function Xr(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=Ht(e,n.tagName,!1),o=ti(e,n);let a=vn(e,n);return $r.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Cr(c):!0})),Bt(e,o,l,n),Pn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Qr(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Be(e,n.position)}function Kr(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Be(e,n.position)}function Gr(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Ht(e,n.name,!0),o=ri(e,n),a=vn(e,n);return Bt(e,o,l,n),Pn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Jr(e,n,t){const r={};return Pn(r,vn(e,n)),e.create(n,e.Fragment,r,t)}function Zr(e,n){return n.value}function Bt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Pn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function ei(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function ni(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=Tn(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function ti(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&An.call(n.properties,i)){const l=ii(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Wr.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function ri(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Be(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Be(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function vn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Vr;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const a=jt(e,l,o);a!==void 0&&t.push(a)}return t}function ii(e,n,t){const r=Lr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?kr(t):Fr(t)),r.property==="style"){let i=typeof t=="object"?t:li(e,String(t));return e.stylePropertyNameCase==="css"&&(i=oi(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Pr[r.property]||r.property:r.attribute,t]}}function li(e,n){try{return Hr(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new K("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=Mt+"#cannot-parse-style-attribute",i}}function Ht(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=qn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=qn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return An.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Be(e)}function Be(e,n){const t=new K("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Mt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function oi(e){const n={};let t;for(t in e)An.call(e,t)&&(n[ai(t)]=e[t]);return n}function ai(e){let n=e.replace(qr,ui);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function ui(e){return"-"+e.toLowerCase()}const nn={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"]},si={};function ci(e,n){const t=si,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ut(e,r,i)}function Ut(e,n,t){if(fi(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return et(e.children,n,t)}return Array.isArray(e)?et(e,n,t):""}function et(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ut(e[i],n,t);return r.join("")}function fi(e){return!!(e&&typeof e=="object")}const nt=document.createElement("i");function zn(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ce(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function re(e,n){return e.length>0?(ce(e,e.length,0,n),e):n}const tt={}.hasOwnProperty;function pi(e){const n={};let t=-1;for(;++t<e.length;)hi(n,e[t]);return n}function hi(e,n){let t;for(t in n){const i=(tt.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){tt.call(i,o)||(i[o]=[]);const a=l[o];di(i[o],Array.isArray(a)?a:a?[a]:[])}}}function di(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ce(e,0,0,r)}function Vt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const se=ye(/[A-Za-z]/),te=ye(/[\dA-Za-z]/),mi=ye(/[#-'*+\--9=?A-Z^-~]/);function xn(e){return e!==null&&(e<32||e===127)}const kn=ye(/\d/),gi=ye(/[\dA-Fa-f]/),yi=ye(/[!-/:-@[-`{-~]/);function v(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function _(e){return e===-2||e===-1||e===32}const xi=ye(new RegExp("\\p{P}|\\p{S}","u")),ki=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ve(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&te(e.charCodeAt(t+1))&&te(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function W(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(c){return _(c)?(e.enter(t),a(c)):n(c)}function a(c){return _(c)&&l++<i?(e.consume(c),a):(e.exit(t),n(c))}}const bi={tokenize:wi};function wi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),W(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return v(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Si={tokenize:Ei},rt={tokenize:Ci};function Ei(e){const n=this,t=[];let r=0,i,l,o;return a;function a(C){if(r<t.length){const B=t[r];return n.containerState=B[1],e.attempt(B[0].continuation,c,u)(C)}return u(C)}function c(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&z();const B=n.events.length;let U=B,y;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){y=n.events[U][1].end;break}x(r);let F=B;for(;F<n.events.length;)n.events[F][1].end={...y},F++;return ce(n.events,U+1,0,n.events.slice(B)),n.events.length=F,u(C)}return a(C)}function u(C){if(r===t.length){if(!i)return m(C);if(i.currentConstruct&&i.currentConstruct.concrete)return w(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(rt,s,p)(C)}function s(C){return i&&z(),x(r),m(C)}function p(C){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,w(C)}function m(C){return n.containerState={},e.attempt(rt,f,w)(C)}function f(C){return r++,t.push([n.currentConstruct,n.containerState]),m(C)}function w(C){if(C===null){i&&z(),x(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),E(C)}function E(C){if(C===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return v(C)?(e.consume(C),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),E)}function I(C,B){const U=n.sliceStream(C);if(B&&U.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(U),n.parser.lazy[C.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const F=n.events.length;let V=F,R,M;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(R){M=n.events[V][1].end;break}R=!0}for(x(r),y=F;y<n.events.length;)n.events[y][1].end={...M},y++;ce(n.events,V+1,0,n.events.slice(F)),n.events.length=y}}function x(C){let B=t.length;for(;B-- >C;){const U=t[B];n.containerState=U[1],U[0].exit.call(n,e)}t.length=C}function z(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ci(e,n,t){return W(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function it(e){if(e===null||J(e)||ki(e))return 1;if(xi(e))return 2}function Ln(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const bn={name:"attention",resolveAll:Ii,tokenize:Ti};function Ii(e,n){let t=-1,r,i,l,o,a,c,u,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const p={...e[r][1].end},m={...e[t][1].start};lt(p,-c),lt(m,c),o={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:m},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=re(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=re(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=re(u,Ln(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=re(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,u=re(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,ce(e,r-1,t-r+3,u),t=r+u.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ti(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=it(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const u=e.exit("attentionSequence"),s=it(c),p=!s||s===2&&i||t.includes(c),m=!i||i===2&&s||t.includes(r);return u._open=!!(l===42?p:p&&(i||!m)),u._close=!!(l===42?m:m&&(s||!p)),n(c)}}function lt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ai={name:"autolink",tokenize:Pi};function Pi(e,n,t){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return se(f)?(e.consume(f),o):f===64?t(f):u(f)}function o(f){return f===43||f===45||f===46||te(f)?(r=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),r=0,c):(f===43||f===45||f===46||te(f))&&r++<32?(e.consume(f),a):(r=0,u(f))}function c(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):f===null||f===32||f===60||xn(f)?t(f):(e.consume(f),c)}function u(f){return f===64?(e.consume(f),s):mi(f)?(e.consume(f),u):t(f)}function s(f){return te(f)?p(f):t(f)}function p(f){return f===46?(e.consume(f),r=0,s):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):m(f)}function m(f){if((f===45||te(f))&&r++<63){const w=f===45?m:p;return e.consume(f),w}return t(f)}}const Ke={partial:!0,tokenize:vi};function vi(e,n,t){return r;function r(l){return _(l)?W(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||v(l)?n(l):t(l)}}const qt={continuation:{tokenize:Li},exit:Ni,name:"blockQuote",tokenize:zi};function zi(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return _(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Li(e,n,t){const r=this;return i;function i(o){return _(o)?W(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(qt,n,t)(o)}}function Ni(e){e.exit("blockQuote")}const $t={name:"characterEscape",tokenize:Di};function Di(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return yi(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Wt={name:"characterReference",tokenize:Oi};function Oi(e,n,t){const r=this;let i=0,l,o;return a;function a(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=te,s(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=gi,s):(e.enter("characterReferenceValue"),l=7,o=kn,s(p))}function s(p){if(p===59&&i){const m=e.exit("characterReferenceValue");return o===te&&!zn(r.sliceSerialize(m))?t(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(p)&&i++<l?(e.consume(p),s):t(p)}}const ot={partial:!0,tokenize:_i},at={concrete:!0,name:"codeFenced",tokenize:Fi};function Fi(e,n,t){const r=this,i={partial:!0,tokenize:U};let l=0,o=0,a;return c;function c(y){return u(y)}function u(y){const F=r.events[r.events.length-1];return l=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(y)}function s(y){return y===a?(o++,e.consume(y),s):o<3?t(y):(e.exit("codeFencedFenceSequence"),_(y)?W(e,p,"whitespace")(y):p(y))}function p(y){return y===null||v(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(ot,E,B)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||v(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(y)):_(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,f,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),m)}function f(y){return y===null||v(y)?p(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||v(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(y)):y===96&&y===a?t(y):(e.consume(y),w)}function E(y){return e.attempt(i,B,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&_(y)?W(e,z,"linePrefix",l+1)(y):z(y)}function z(y){return y===null||v(y)?e.check(ot,E,B)(y):(e.enter("codeFlowValue"),C(y))}function C(y){return y===null||v(y)?(e.exit("codeFlowValue"),z(y)):(e.consume(y),C)}function B(y){return e.exit("codeFenced"),n(y)}function U(y,F,V){let R=0;return M;function M(S){return y.enter("lineEnding"),y.consume(S),y.exit("lineEnding"),A}function A(S){return y.enter("codeFencedFence"),_(S)?W(y,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):T(S)}function T(S){return S===a?(y.enter("codeFencedFenceSequence"),q(S)):V(S)}function q(S){return S===a?(R++,y.consume(S),q):R>=o?(y.exit("codeFencedFenceSequence"),_(S)?W(y,P,"whitespace")(S):P(S)):V(S)}function P(S){return S===null||v(S)?(y.exit("codeFencedFence"),F(S)):V(S)}}}function _i(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const tn={name:"codeIndented",tokenize:Mi},Ri={partial:!0,tokenize:ji};function Mi(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),W(e,l,"linePrefix",5)(u)}function l(u){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?c(u):v(u)?e.attempt(Ri,o,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||v(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),n(u)}}function ji(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):v(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):W(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):v(o)?i(o):t(o)}}const Bi={name:"codeText",previous:Ui,resolve:Hi,tokenize:Vi};function Hi(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||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),n-=r-i-2,r=i+2),i=void 0);return e}function Ui(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Vi(e,n,t){let r=0,i,l;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),a(p)}function a(p){return p===96?(e.consume(p),r++,a):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?t(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(l=e.enter("codeTextSequence"),i=0,s(p)):v(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||v(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function s(p){return p===96?(e.consume(p),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(l.type="codeTextData",u(p))}}class qi{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Fe(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Fe(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Fe(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Fe(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Fe(this.left,t.reverse())}}}function Fe(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Yt(e){const n={};let t=-1,r,i,l,o,a,c,u;const s=new qi(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,$i(s,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=s.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},a=s.slice(i,t),a.unshift(r),s.splice(i,t-i+1,a))}}return ce(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!u}function $i(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],u={};let s,p,m=-1,f=t,w=0,E=0;const I=[E];for(;f;){for(;e.get(++i)[1]!==f;);l.push(i),f._tokenizer||(s=r.sliceStream(f),f.next||s.push(null),p&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(s),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=t;++m<a.length;)a[m][0]==="exit"&&a[m-1][0]==="enter"&&a[m][1].type===a[m-1][1].type&&a[m][1].start.line!==a[m][1].end.line&&(E=m+1,I.push(E),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):I.pop(),m=I.length;m--;){const x=a.slice(I[m],I[m+1]),z=l.pop();c.push([z,z+x.length-1]),e.splice(z,2,x)}for(c.reverse(),m=-1;++m<c.length;)u[w+c[m][0]]=w+c[m][1],w+=c[m][1]-c[m][0]-1;return u}const Wi={resolve:Xi,tokenize:Qi},Yi={partial:!0,tokenize:Ki};function Xi(e){return Yt(e),e}function Qi(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):v(a)?e.check(Yi,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Ki(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),W(e,l,"linePrefix")}function l(o){if(o===null||v(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Xt(e,n,t,r,i,l,o,a,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return p;function p(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),m):x===null||x===32||x===41||xn(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),E(x))}function m(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(a),m(x)):x===null||x===60||v(x)?t(x):(e.consume(x),x===92?w:f)}function w(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function E(x){return!s&&(x===null||x===41||J(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):s<u&&x===40?(e.consume(x),s++,E):x===41?(e.consume(x),s--,E):x===null||x===32||x===40||xn(x)?t(x):(e.consume(x),x===92?I:E)}function I(x){return x===40||x===41||x===92?(e.consume(x),E):E(x)}}function Qt(e,n,t,r,i,l){const o=this;let a=0,c;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(l),s}function s(f){return a>999||f===null||f===91||f===93&&!c||f===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(f):f===93?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):v(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===null||f===91||f===93||v(f)||a++>999?(e.exit("chunkString"),s(f)):(e.consume(f),c||(c=!_(f)),f===92?m:p)}function m(f){return f===91||f===92||f===93?(e.consume(f),a++,p):p(f)}}function Kt(e,n,t,r,i,l){let o;return a;function a(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,c):t(m)}function c(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),n):(e.enter(l),u(m))}function u(m){return m===o?(e.exit(l),c(o)):m===null?t(m):v(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),W(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(m))}function s(m){return m===o||m===null||v(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?p:s)}function p(m){return m===o||m===92?(e.consume(m),s):s(m)}}function Me(e,n){let t;return r;function r(i){return v(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):_(i)?W(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Gi={name:"definition",tokenize:Zi},Ji={partial:!0,tokenize:el};function Zi(e,n,t){const r=this;let i;return l;function l(f){return e.enter("definition"),o(f)}function o(f){return Qt.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),c):t(f)}function c(f){return J(f)?Me(e,u)(f):u(f)}function u(f){return Xt(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function s(f){return e.attempt(Ji,p,p)(f)}function p(f){return _(f)?W(e,m,"whitespace")(f):m(f)}function m(f){return f===null||v(f)?(e.exit("definition"),r.parser.defined.push(i),n(f)):t(f)}}function el(e,n,t){return r;function r(a){return J(a)?Me(e,i)(a):t(a)}function i(a){return Kt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return _(a)?W(e,o,"whitespace")(a):o(a)}function o(a){return a===null||v(a)?n(a):t(a)}}const nl={name:"hardBreakEscape",tokenize:tl};function tl(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return v(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const rl={name:"headingAtx",resolve:il,tokenize:ll};function il(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ce(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function ll(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),o(s)}function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||J(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||v(s)?(e.exit("atxHeading"),n(s)):_(s)?W(e,a,"whitespace")(s):(e.enter("atxHeadingText"),u(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),a(s))}function u(s){return s===null||s===35||J(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),u)}}const ol=["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"],ut=["pre","script","style","textarea"],al={concrete:!0,name:"htmlFlow",resolveTo:cl,tokenize:fl},ul={partial:!0,tokenize:hl},sl={partial:!0,tokenize:pl};function cl(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function fl(e,n,t){const r=this;let i,l,o,a,c;return u;function u(d){return s(d)}function s(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),p}function p(d){return d===33?(e.consume(d),m):d===47?(e.consume(d),l=!0,E):d===63?(e.consume(d),i=3,r.interrupt?n:h):se(d)?(e.consume(d),o=String.fromCharCode(d),I):t(d)}function m(d){return d===45?(e.consume(d),i=2,f):d===91?(e.consume(d),i=5,a=0,w):se(d)?(e.consume(d),i=4,r.interrupt?n:h):t(d)}function f(d){return d===45?(e.consume(d),r.interrupt?n:h):t(d)}function w(d){const oe="CDATA[";return d===oe.charCodeAt(a++)?(e.consume(d),a===oe.length?r.interrupt?n:T:w):t(d)}function E(d){return se(d)?(e.consume(d),o=String.fromCharCode(d),I):t(d)}function I(d){if(d===null||d===47||d===62||J(d)){const oe=d===47,xe=o.toLowerCase();return!oe&&!l&&ut.includes(xe)?(i=1,r.interrupt?n(d):T(d)):ol.includes(o.toLowerCase())?(i=6,oe?(e.consume(d),x):r.interrupt?n(d):T(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):l?z(d):C(d))}return d===45||te(d)?(e.consume(d),o+=String.fromCharCode(d),I):t(d)}function x(d){return d===62?(e.consume(d),r.interrupt?n:T):t(d)}function z(d){return _(d)?(e.consume(d),z):M(d)}function C(d){return d===47?(e.consume(d),M):d===58||d===95||se(d)?(e.consume(d),B):_(d)?(e.consume(d),C):M(d)}function B(d){return d===45||d===46||d===58||d===95||te(d)?(e.consume(d),B):U(d)}function U(d){return d===61?(e.consume(d),y):_(d)?(e.consume(d),U):C(d)}function y(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),c=d,F):_(d)?(e.consume(d),y):V(d)}function F(d){return d===c?(e.consume(d),c=null,R):d===null||v(d)?t(d):(e.consume(d),F)}function V(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||J(d)?U(d):(e.consume(d),V)}function R(d){return d===47||d===62||_(d)?C(d):t(d)}function M(d){return d===62?(e.consume(d),A):t(d)}function A(d){return d===null||v(d)?T(d):_(d)?(e.consume(d),A):t(d)}function T(d){return d===45&&i===2?(e.consume(d),j):d===60&&i===1?(e.consume(d),X):d===62&&i===4?(e.consume(d),le):d===63&&i===3?(e.consume(d),h):d===93&&i===5?(e.consume(d),fe):v(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ul,pe,q)(d)):d===null||v(d)?(e.exit("htmlFlowData"),q(d)):(e.consume(d),T)}function q(d){return e.check(sl,P,pe)(d)}function P(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),S}function S(d){return d===null||v(d)?q(d):(e.enter("htmlFlowData"),T(d))}function j(d){return d===45?(e.consume(d),h):T(d)}function X(d){return d===47?(e.consume(d),o="",ie):T(d)}function ie(d){if(d===62){const oe=o.toLowerCase();return ut.includes(oe)?(e.consume(d),le):T(d)}return se(d)&&o.length<8?(e.consume(d),o+=String.fromCharCode(d),ie):T(d)}function fe(d){return d===93?(e.consume(d),h):T(d)}function h(d){return d===62?(e.consume(d),le):d===45&&i===2?(e.consume(d),h):T(d)}function le(d){return d===null||v(d)?(e.exit("htmlFlowData"),pe(d)):(e.consume(d),le)}function pe(d){return e.exit("htmlFlow"),n(d)}}function pl(e,n,t){const r=this;return i;function i(o){return v(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function hl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ke,n,t)}}const dl={name:"htmlText",tokenize:ml};function ml(e,n,t){const r=this;let i,l,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),c}function c(h){return h===33?(e.consume(h),u):h===47?(e.consume(h),U):h===63?(e.consume(h),C):se(h)?(e.consume(h),V):t(h)}function u(h){return h===45?(e.consume(h),s):h===91?(e.consume(h),l=0,w):se(h)?(e.consume(h),z):t(h)}function s(h){return h===45?(e.consume(h),f):t(h)}function p(h){return h===null?t(h):h===45?(e.consume(h),m):v(h)?(o=p,X(h)):(e.consume(h),p)}function m(h){return h===45?(e.consume(h),f):p(h)}function f(h){return h===62?j(h):h===45?m(h):p(h)}function w(h){const le="CDATA[";return h===le.charCodeAt(l++)?(e.consume(h),l===le.length?E:w):t(h)}function E(h){return h===null?t(h):h===93?(e.consume(h),I):v(h)?(o=E,X(h)):(e.consume(h),E)}function I(h){return h===93?(e.consume(h),x):E(h)}function x(h){return h===62?j(h):h===93?(e.consume(h),x):E(h)}function z(h){return h===null||h===62?j(h):v(h)?(o=z,X(h)):(e.consume(h),z)}function C(h){return h===null?t(h):h===63?(e.consume(h),B):v(h)?(o=C,X(h)):(e.consume(h),C)}function B(h){return h===62?j(h):C(h)}function U(h){return se(h)?(e.consume(h),y):t(h)}function y(h){return h===45||te(h)?(e.consume(h),y):F(h)}function F(h){return v(h)?(o=F,X(h)):_(h)?(e.consume(h),F):j(h)}function V(h){return h===45||te(h)?(e.consume(h),V):h===47||h===62||J(h)?R(h):t(h)}function R(h){return h===47?(e.consume(h),j):h===58||h===95||se(h)?(e.consume(h),M):v(h)?(o=R,X(h)):_(h)?(e.consume(h),R):j(h)}function M(h){return h===45||h===46||h===58||h===95||te(h)?(e.consume(h),M):A(h)}function A(h){return h===61?(e.consume(h),T):v(h)?(o=A,X(h)):_(h)?(e.consume(h),A):R(h)}function T(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,q):v(h)?(o=T,X(h)):_(h)?(e.consume(h),T):(e.consume(h),P)}function q(h){return h===i?(e.consume(h),i=void 0,S):h===null?t(h):v(h)?(o=q,X(h)):(e.consume(h),q)}function P(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||J(h)?R(h):(e.consume(h),P)}function S(h){return h===47||h===62||J(h)?R(h):t(h)}function j(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function X(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ie}function ie(h){return _(h)?W(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fe(h)}function fe(h){return e.enter("htmlTextData"),o(h)}}const Nn={name:"labelEnd",resolveAll:kl,resolveTo:bl,tokenize:wl},gl={tokenize:Sl},yl={tokenize:El},xl={tokenize:Cl};function kl(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ce(e,0,e.length,t),e}function bl(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",u,n]],a=re(a,e.slice(l+1,l+r+3)),a=re(a,[["enter",s,n]]),a=re(a,Ln(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=re(a,[["exit",s,n],e[o-2],e[o-1],["exit",u,n]]),a=re(a,e.slice(o+1)),a=re(a,[["exit",c,n]]),ce(e,l,e.length,a),e}function wl(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(m){return l?l._inactive?p(m):(o=r.parser.defined.includes(Ae(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):t(m)}function c(m){return m===40?e.attempt(gl,s,o?s:p)(m):m===91?e.attempt(yl,s,o?u:p)(m):o?s(m):p(m)}function u(m){return e.attempt(xl,s,p)(m)}function s(m){return n(m)}function p(m){return l._balanced=!0,t(m)}}function Sl(e,n,t){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return J(p)?Me(e,l)(p):l(p)}function l(p){return p===41?s(p):Xt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return J(p)?Me(e,c)(p):s(p)}function a(p){return t(p)}function c(p){return p===34||p===39||p===40?Kt(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):s(p)}function u(p){return J(p)?Me(e,s)(p):s(p)}function s(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):t(p)}}function El(e,n,t){const r=this;return i;function i(a){return Qt.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Cl(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Il={name:"labelStartImage",resolveAll:Nn.resolveAll,tokenize:Tl};function Tl(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Al={name:"labelStartLink",resolveAll:Nn.resolveAll,tokenize:Pl};function Pl(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const rn={name:"lineEnding",tokenize:vl};function vl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,n,"linePrefix")}}const Ye={name:"thematicBreak",tokenize:zl};function zl(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||v(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),_(u)?W(e,a,"whitespace")(u):a(u))}}const G={continuation:{tokenize:Ol},exit:_l,name:"list",tokenize:Dl},Ll={partial:!0,tokenize:Rl},Nl={partial:!0,tokenize:Fl};function Dl(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(f){const w=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:kn(f)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ye,t,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(f)}return t(f)}function c(f){return kn(f)&&++o<10?(e.consume(f),c):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):t(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Ke,r.interrupt?t:s,e.attempt(Ll,m,p))}function s(f){return r.containerState.initialBlankLine=!0,l++,m(f)}function p(f){return _(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),m):t(f)}function m(f){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(f)}}function Ol(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ke,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!_(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Nl,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Fl(e,n,t){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function _l(e){e.exit(this.containerState.type)}function Rl(e,n,t){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!_(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const st={name:"setextUnderline",resolveTo:Ml,tokenize:jl};function Ml(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function jl(e,n,t){const r=this;let i;return l;function l(u){let s=r.events.length,p;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){p=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),_(u)?W(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||v(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const Bl={tokenize:Hl};function Hl(e){const n=this,t=e.attempt(Ke,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Wi,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Ul={resolveAll:Jt()},Vl=Gt("string"),ql=Gt("text");function Gt(e){return{resolveAll:Jt(e==="text"?$l:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(s){return u(s)?l(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return u(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function u(s){if(s===null)return!0;const p=i[s];let m=-1;if(p)for(;++m<p.length;){const f=p[m];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Jt(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function $l(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,c;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)c=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const Wl={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:qt},Yl={91:Gi},Xl={[-2]:tn,[-1]:tn,32:tn},Ql={35:rl,42:Ye,45:[st,Ye],60:al,61:st,95:Ye,96:at,126:at},Kl={38:Wt,92:$t},Gl={[-5]:rn,[-4]:rn,[-3]:rn,33:Il,38:Wt,42:bn,60:[Ai,dl],91:Al,92:[nl,$t],93:Nn,95:bn,96:Bi},Jl={null:[bn,Ul]},Zl={null:[42,95]},eo={null:[]},no=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Zl,contentInitial:Yl,disable:eo,document:Wl,flow:Ql,flowInitial:Xl,insideSpan:Jl,string:Kl,text:Gl},Symbol.toStringTag,{value:"Module"}));function to(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const c={attempt:F(U),check:F(y),consume:z,enter:C,exit:B,interrupt:F(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:E,events:[],now:w,parser:e,previous:null,sliceSerialize:m,sliceStream:f,write:p};let s=n.tokenize.call(u,c);return n.resolveAll&&l.push(n),u;function p(A){return o=re(o,A),I(),o[o.length-1]!==null?[]:(V(n,0),u.events=Ln(l,u.events,u),u.events)}function m(A,T){return io(f(A),T)}function f(A){return ro(o,A)}function w(){const{_bufferIndex:A,_index:T,line:q,column:P,offset:S}=r;return{_bufferIndex:A,_index:T,line:q,column:P,offset:S}}function E(A){i[A.line]=A.column,M()}function I(){let A;for(;r._index<o.length;){const T=o[r._index];if(typeof T=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<T.length;)x(T.charCodeAt(r._bufferIndex));else x(T)}}function x(A){s=s(A)}function z(A){v(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,M()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=A}function C(A,T){const q=T||{};return q.type=A,q.start=w(),u.events.push(["enter",q,u]),a.push(q),q}function B(A){const T=a.pop();return T.end=w(),u.events.push(["exit",T,u]),T}function U(A,T){V(A,T.from)}function y(A,T){T.restore()}function F(A,T){return q;function q(P,S,j){let X,ie,fe,h;return Array.isArray(P)?pe(P):"tokenize"in P?pe([P]):le(P);function le(Q){return ze;function ze(me){const we=me!==null&&Q[me],Se=me!==null&&Q.null,Ve=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(Se)?Se:Se?[Se]:[]];return pe(Ve)(me)}}function pe(Q){return X=Q,ie=0,Q.length===0?j:d(Q[ie])}function d(Q){return ze;function ze(me){return h=R(),fe=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?xe():Q.tokenize.call(T?Object.assign(Object.create(u),T):u,c,oe,xe)(me)}}function oe(Q){return A(fe,h),S}function xe(Q){return h.restore(),++ie<X.length?d(X[ie]):j}}}function V(A,T){A.resolveAll&&!l.includes(A)&&l.push(A),A.resolve&&ce(u.events,T,u.events.length-T,A.resolve(u.events.slice(T),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function R(){const A=w(),T=u.previous,q=u.currentConstruct,P=u.events.length,S=Array.from(a);return{from:P,restore:j};function j(){r=A,u.previous=T,u.currentConstruct=q,u.events.length=P,a=S,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ro(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function io(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
1
+ import{g as At,j as _,R as hn,r as Vn}from"./index-B8YEFBRH.js";function kr(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const br=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sr={};function qn(e,n){return(Sr.jsx?wr:br).test(e)}const Er=/[ \t\n\f\r]/g;function Cr(e){return typeof e=="object"?e.type==="text"?$n(e.value):!1:$n(e)}function $n(e){return e.replace(Er,"")===""}class He{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}He.prototype.normal={};He.prototype.property={};He.prototype.space=void 0;function Pt(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new He(t,r,n)}function mn(e){return e.toLowerCase()}class Z{constructor(n,t){this.attribute=t,this.property=n}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let Ir=0;const N=be(),Y=be(),dn=be(),k=be(),$=be(),Te=be(),ne=be();function be(){return 2**++Ir}const gn=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:Y,commaOrSpaceSeparated:ne,commaSeparated:Te,number:k,overloadedBoolean:dn,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),Ze=Object.keys(gn);class Cn extends Z{constructor(n,t,r,i){let l=-1;if(super(n,t),Wn(this,"space",i),typeof r=="number")for(;++l<Ze.length;){const o=Ze[l];Wn(this,Ze[l],(r&gn[o])===gn[o])}}}Cn.prototype.defined=!0;function Wn(e,n,t){t&&(e[n]=t)}function Ae(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Cn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[mn(r)]=r,t[mn(l.attribute)]=r}return new He(n,t,e.space)}const zt=Ae({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:$,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:k,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:$,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:Y,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Lt(e,n){return n in e?e[n]:n}function Nt(e,n){return Lt(e,n.toLowerCase())}const Tr=Ae({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:$,autoFocus:N,autoPlay:N,blocking:$,capture:null,charSet:null,checked:N,cite:null,className:$,cols:k,colSpan:null,content:null,contentEditable:Y,controls:N,controlsList:$,coords:k|Te,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:dn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:$,height:k,hidden:dn,high:k,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:$,itemRef:$,itemScope:N,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,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:k,pattern:null,ping:$,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:$,required:N,reversed:N,rows:k,rowSpan:k,sandbox:$,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:Y,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,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:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N,disableRemotePlayback:N,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:Nt}),vr=Ae({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:ne,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:$,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:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,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:Te,g2:Te,glyphName:Te,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,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:k,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:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,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:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Lt}),_t=Ae({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Dt=Ae({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Nt}),Ft=Ae({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Ar={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"},Pr=/[A-Z]/g,Yn=/-[a-z]/g,zr=/^data[-\w.:]+$/i;function Lr(e,n){const t=mn(n);let r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&zr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Yn,_r);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Yn.test(l)){let o=l.replace(Pr,Nr);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Cn}return new i(r,n)}function Nr(e){return"-"+e.toLowerCase()}function _r(e){return e.charAt(1).toUpperCase()}const Dr=Pt([zt,Tr,_t,Dt,Ft],"html"),In=Pt([zt,vr,_t,Dt,Ft],"svg");function Fr(e){return e.join(" ").trim()}var Ce={},en,Xn;function Or(){if(Xn)return en;Xn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
2
+ `,u="/",s="*",p="",h="comment",f="declaration";function b(I,x){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];x=x||{};var z=1,C=1;function B(A){var S=A.match(n);S&&(z+=S.length);var j=A.lastIndexOf(c);C=~j?A.length-j:C+A.length}function U(){var A={line:z,column:C};return function(S){return S.position=new y(A),R(),S}}function y(A){this.start=A,this.end={line:z,column:C},this.source=x.source}y.prototype.content=I;function F(A){var S=new Error(x.source+":"+z+":"+C+": "+A);if(S.reason=A,S.filename=x.source,S.line=z,S.column=C,S.source=I,!x.silent)throw S}function V(A){var S=A.exec(I);if(S){var j=S[0];return B(j),I=I.slice(j.length),S}}function R(){V(t)}function M(A){var S;for(A=A||[];S=v();)S!==!1&&A.push(S);return A}function v(){var A=U();if(!(u!=I.charAt(0)||s!=I.charAt(1))){for(var S=2;p!=I.charAt(S)&&(s!=I.charAt(S)||u!=I.charAt(S+1));)++S;if(S+=2,p===I.charAt(S-1))return F("End of comment missing");var j=I.slice(2,S-2);return C+=2,B(j),I=I.slice(S),C+=2,A({type:h,comment:j})}}function T(){var A=U(),S=V(r);if(S){if(v(),!V(i))return F("property missing ':'");var j=V(l),X=A({type:f,property:E(S[0].replace(e,p)),value:j?E(j[0].replace(e,p)):p});return V(o),X}}function q(){var A=[];M(A);for(var S;S=T();)S!==!1&&(A.push(S),M(A));return A}return R(),q()}function E(I){return I?I.replace(a,p):p}return en=b,en}var Qn;function Rr(){if(Qn)return Ce;Qn=1;var e=Ce&&Ce.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=t;const n=e(Or());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:s}=c;a?i(u,s,c):s&&(l=l||{},l[u]=s)}),l}return Ce}var _e={},Gn;function Mr(){if(Gn)return _e;Gn=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,s){return s.toUpperCase()},a=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return _e.camelCase=c,_e}var De,Kn;function jr(){if(Kn)return De;Kn=1;var e=De&&De.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Rr()),t=Mr();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(o[(0,t.camelCase)(a,l)]=c)}),o}return r.default=r,De=r,De}var Br=jr();const Hr=At(Br),Ot=Rt("end"),Tn=Rt("start");function Rt(e){return n;function n(t){const r=t&&t.position&&t.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 Ur(e){const n=Tn(e),t=Ot(e);if(n&&t)return{start:n,end:t}}function Re(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Jn(e.position):"start"in e||"end"in e?Jn(e):"line"in e||"column"in e?yn(e):""}function yn(e){return Zn(e&&e.line)+":"+Zn(e&&e.column)}function Jn(e){return yn(e&&e.start)+"-"+yn(e&&e.end)}function Zn(e){return e&&typeof e=="number"?e:1}class G extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Re(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}G.prototype.file="";G.prototype.name="";G.prototype.reason="";G.prototype.message="";G.prototype.stack="";G.prototype.column=void 0;G.prototype.line=void 0;G.prototype.ancestors=void 0;G.prototype.cause=void 0;G.prototype.fatal=void 0;G.prototype.place=void 0;G.prototype.ruleId=void 0;G.prototype.source=void 0;const vn={}.hasOwnProperty,Vr=new Map,qr=/[A-Z]/g,$r=new Set(["table","tbody","thead","tfoot","tr"]),Wr=new Set(["td","th"]),Mt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yr(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ni(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ei(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?In:Dr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=jt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function jt(e,n,t){if(n.type==="element")return Xr(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Qr(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Kr(e,n,t);if(n.type==="mdxjsEsm")return Gr(e,n);if(n.type==="root")return Jr(e,n,t);if(n.type==="text")return Zr(e,n)}function Xr(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=Ht(e,n.tagName,!1),o=ti(e,n);let a=Pn(e,n);return $r.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Cr(c):!0})),Bt(e,o,l,n),An(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Qr(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Be(e,n.position)}function Gr(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Be(e,n.position)}function Kr(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Ht(e,n.name,!0),o=ri(e,n),a=Pn(e,n);return Bt(e,o,l,n),An(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Jr(e,n,t){const r={};return An(r,Pn(e,n)),e.create(n,e.Fragment,r,t)}function Zr(e,n){return n.value}function Bt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function An(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function ei(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function ni(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=Tn(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function ti(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&vn.call(n.properties,i)){const l=ii(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Wr.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function ri(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Be(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Be(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Pn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Vr;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const a=jt(e,l,o);a!==void 0&&t.push(a)}return t}function ii(e,n,t){const r=Lr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?kr(t):Fr(t)),r.property==="style"){let i=typeof t=="object"?t:li(e,String(t));return e.stylePropertyNameCase==="css"&&(i=oi(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ar[r.property]||r.property:r.attribute,t]}}function li(e,n){try{return Hr(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new G("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=Mt+"#cannot-parse-style-attribute",i}}function Ht(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=qn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=qn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return vn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Be(e)}function Be(e,n){const t=new G("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Mt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function oi(e){const n={};let t;for(t in e)vn.call(e,t)&&(n[ai(t)]=e[t]);return n}function ai(e){let n=e.replace(qr,ui);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function ui(e){return"-"+e.toLowerCase()}const nn={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"]},si={};function ci(e,n){const t=si,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ut(e,r,i)}function Ut(e,n,t){if(pi(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return et(e.children,n,t)}return Array.isArray(e)?et(e,n,t):""}function et(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ut(e[i],n,t);return r.join("")}function pi(e){return!!(e&&typeof e=="object")}const nt=document.createElement("i");function zn(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ce(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function re(e,n){return e.length>0?(ce(e,e.length,0,n),e):n}const tt={}.hasOwnProperty;function fi(e){const n={};let t=-1;for(;++t<e.length;)hi(n,e[t]);return n}function hi(e,n){let t;for(t in n){const i=(tt.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){tt.call(i,o)||(i[o]=[]);const a=l[o];mi(i[o],Array.isArray(a)?a:a?[a]:[])}}}function mi(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ce(e,0,0,r)}function Vt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ve(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const se=ye(/[A-Za-z]/),te=ye(/[\dA-Za-z]/),di=ye(/[#-'*+\--9=?A-Z^-~]/);function xn(e){return e!==null&&(e<32||e===127)}const kn=ye(/\d/),gi=ye(/[\dA-Fa-f]/),yi=ye(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function O(e){return e===-2||e===-1||e===32}const xi=ye(new RegExp("\\p{P}|\\p{S}","u")),ki=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Pe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&te(e.charCodeAt(t+1))&&te(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function W(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(c){return O(c)?(e.enter(t),a(c)):n(c)}function a(c){return O(c)&&l++<i?(e.consume(c),a):(e.exit(t),n(c))}}const bi={tokenize:wi};function wi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),W(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return P(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Si={tokenize:Ei},rt={tokenize:Ci};function Ei(e){const n=this,t=[];let r=0,i,l,o;return a;function a(C){if(r<t.length){const B=t[r];return n.containerState=B[1],e.attempt(B[0].continuation,c,u)(C)}return u(C)}function c(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&z();const B=n.events.length;let U=B,y;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){y=n.events[U][1].end;break}x(r);let F=B;for(;F<n.events.length;)n.events[F][1].end={...y},F++;return ce(n.events,U+1,0,n.events.slice(B)),n.events.length=F,u(C)}return a(C)}function u(C){if(r===t.length){if(!i)return h(C);if(i.currentConstruct&&i.currentConstruct.concrete)return b(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(rt,s,p)(C)}function s(C){return i&&z(),x(r),h(C)}function p(C){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(C)}function h(C){return n.containerState={},e.attempt(rt,f,b)(C)}function f(C){return r++,t.push([n.currentConstruct,n.containerState]),h(C)}function b(C){if(C===null){i&&z(),x(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),E(C)}function E(C){if(C===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return P(C)?(e.consume(C),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),E)}function I(C,B){const U=n.sliceStream(C);if(B&&U.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(U),n.parser.lazy[C.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const F=n.events.length;let V=F,R,M;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(R){M=n.events[V][1].end;break}R=!0}for(x(r),y=F;y<n.events.length;)n.events[y][1].end={...M},y++;ce(n.events,V+1,0,n.events.slice(F)),n.events.length=y}}function x(C){let B=t.length;for(;B-- >C;){const U=t[B];n.containerState=U[1],U[0].exit.call(n,e)}t.length=C}function z(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ci(e,n,t){return W(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function it(e){if(e===null||J(e)||ki(e))return 1;if(xi(e))return 2}function Ln(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const bn={name:"attention",resolveAll:Ii,tokenize:Ti};function Ii(e,n){let t=-1,r,i,l,o,a,c,u,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const p={...e[r][1].end},h={...e[t][1].start};lt(p,-c),lt(h,c),o={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=re(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=re(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=re(u,Ln(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=re(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,u=re(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,ce(e,r-1,t-r+3,u),t=r+u.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ti(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=it(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const u=e.exit("attentionSequence"),s=it(c),p=!s||s===2&&i||t.includes(c),h=!i||i===2&&s||t.includes(r);return u._open=!!(l===42?p:p&&(i||!h)),u._close=!!(l===42?h:h&&(s||!p)),n(c)}}function lt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const vi={name:"autolink",tokenize:Ai};function Ai(e,n,t){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return se(f)?(e.consume(f),o):f===64?t(f):u(f)}function o(f){return f===43||f===45||f===46||te(f)?(r=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),r=0,c):(f===43||f===45||f===46||te(f))&&r++<32?(e.consume(f),a):(r=0,u(f))}function c(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):f===null||f===32||f===60||xn(f)?t(f):(e.consume(f),c)}function u(f){return f===64?(e.consume(f),s):di(f)?(e.consume(f),u):t(f)}function s(f){return te(f)?p(f):t(f)}function p(f){return f===46?(e.consume(f),r=0,s):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):h(f)}function h(f){if((f===45||te(f))&&r++<63){const b=f===45?h:p;return e.consume(f),b}return t(f)}}const Ge={partial:!0,tokenize:Pi};function Pi(e,n,t){return r;function r(l){return O(l)?W(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||P(l)?n(l):t(l)}}const qt={continuation:{tokenize:Li},exit:Ni,name:"blockQuote",tokenize:zi};function zi(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return O(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Li(e,n,t){const r=this;return i;function i(o){return O(o)?W(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(qt,n,t)(o)}}function Ni(e){e.exit("blockQuote")}const $t={name:"characterEscape",tokenize:_i};function _i(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return yi(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Wt={name:"characterReference",tokenize:Di};function Di(e,n,t){const r=this;let i=0,l,o;return a;function a(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=te,s(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=gi,s):(e.enter("characterReferenceValue"),l=7,o=kn,s(p))}function s(p){if(p===59&&i){const h=e.exit("characterReferenceValue");return o===te&&!zn(r.sliceSerialize(h))?t(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(p)&&i++<l?(e.consume(p),s):t(p)}}const ot={partial:!0,tokenize:Oi},at={concrete:!0,name:"codeFenced",tokenize:Fi};function Fi(e,n,t){const r=this,i={partial:!0,tokenize:U};let l=0,o=0,a;return c;function c(y){return u(y)}function u(y){const F=r.events[r.events.length-1];return l=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(y)}function s(y){return y===a?(o++,e.consume(y),s):o<3?t(y):(e.exit("codeFencedFenceSequence"),O(y)?W(e,p,"whitespace")(y):p(y))}function p(y){return y===null||P(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(ot,E,B)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(y)):O(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,f,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),h)}function f(y){return y===null||P(y)?p(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(y))}function b(y){return y===null||P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(y)):y===96&&y===a?t(y):(e.consume(y),b)}function E(y){return e.attempt(i,B,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&O(y)?W(e,z,"linePrefix",l+1)(y):z(y)}function z(y){return y===null||P(y)?e.check(ot,E,B)(y):(e.enter("codeFlowValue"),C(y))}function C(y){return y===null||P(y)?(e.exit("codeFlowValue"),z(y)):(e.consume(y),C)}function B(y){return e.exit("codeFenced"),n(y)}function U(y,F,V){let R=0;return M;function M(S){return y.enter("lineEnding"),y.consume(S),y.exit("lineEnding"),v}function v(S){return y.enter("codeFencedFence"),O(S)?W(y,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):T(S)}function T(S){return S===a?(y.enter("codeFencedFenceSequence"),q(S)):V(S)}function q(S){return S===a?(R++,y.consume(S),q):R>=o?(y.exit("codeFencedFenceSequence"),O(S)?W(y,A,"whitespace")(S):A(S)):V(S)}function A(S){return S===null||P(S)?(y.exit("codeFencedFence"),F(S)):V(S)}}}function Oi(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const tn={name:"codeIndented",tokenize:Mi},Ri={partial:!0,tokenize:ji};function Mi(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),W(e,l,"linePrefix",5)(u)}function l(u){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?c(u):P(u)?e.attempt(Ri,o,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||P(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),n(u)}}function ji(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):W(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):P(o)?i(o):t(o)}}const Bi={name:"codeText",previous:Ui,resolve:Hi,tokenize:Vi};function Hi(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||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),n-=r-i-2,r=i+2),i=void 0);return e}function Ui(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Vi(e,n,t){let r=0,i,l;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),a(p)}function a(p){return p===96?(e.consume(p),r++,a):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?t(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(l=e.enter("codeTextSequence"),i=0,s(p)):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||P(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function s(p){return p===96?(e.consume(p),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(l.type="codeTextData",u(p))}}class qi{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Fe(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Fe(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Fe(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Fe(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Fe(this.left,t.reverse())}}}function Fe(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Yt(e){const n={};let t=-1,r,i,l,o,a,c,u;const s=new qi(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,$i(s,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=s.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},a=s.slice(i,t),a.unshift(r),s.splice(i,t-i+1,a))}}return ce(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!u}function $i(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],u={};let s,p,h=-1,f=t,b=0,E=0;const I=[E];for(;f;){for(;e.get(++i)[1]!==f;);l.push(i),f._tokenizer||(s=r.sliceStream(f),f.next||s.push(null),p&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(s),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(E=h+1,I.push(E),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):I.pop(),h=I.length;h--;){const x=a.slice(I[h],I[h+1]),z=l.pop();c.push([z,z+x.length-1]),e.splice(z,2,x)}for(c.reverse(),h=-1;++h<c.length;)u[b+c[h][0]]=b+c[h][1],b+=c[h][1]-c[h][0]-1;return u}const Wi={resolve:Xi,tokenize:Qi},Yi={partial:!0,tokenize:Gi};function Xi(e){return Yt(e),e}function Qi(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):P(a)?e.check(Yi,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Gi(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),W(e,l,"linePrefix")}function l(o){if(o===null||P(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Xt(e,n,t,r,i,l,o,a,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return p;function p(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),h):x===null||x===32||x===41||xn(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),E(x))}function h(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||P(x)?t(x):(e.consume(x),x===92?b:f)}function b(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function E(x){return!s&&(x===null||x===41||J(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):s<u&&x===40?(e.consume(x),s++,E):x===41?(e.consume(x),s--,E):x===null||x===32||x===40||xn(x)?t(x):(e.consume(x),x===92?I:E)}function I(x){return x===40||x===41||x===92?(e.consume(x),E):E(x)}}function Qt(e,n,t,r,i,l){const o=this;let a=0,c;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(l),s}function s(f){return a>999||f===null||f===91||f===93&&!c||f===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(f):f===93?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):P(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===null||f===91||f===93||P(f)||a++>999?(e.exit("chunkString"),s(f)):(e.consume(f),c||(c=!O(f)),f===92?h:p)}function h(f){return f===91||f===92||f===93?(e.consume(f),a++,p):p(f)}}function Gt(e,n,t,r,i,l){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,c):t(h)}function c(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(l),u(h))}function u(h){return h===o?(e.exit(l),c(o)):h===null?t(h):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),W(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(h))}function s(h){return h===o||h===null||P(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?p:s)}function p(h){return h===o||h===92?(e.consume(h),s):s(h)}}function Me(e,n){let t;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):O(i)?W(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ki={name:"definition",tokenize:Zi},Ji={partial:!0,tokenize:el};function Zi(e,n,t){const r=this;let i;return l;function l(f){return e.enter("definition"),o(f)}function o(f){return Qt.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),c):t(f)}function c(f){return J(f)?Me(e,u)(f):u(f)}function u(f){return Xt(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function s(f){return e.attempt(Ji,p,p)(f)}function p(f){return O(f)?W(e,h,"whitespace")(f):h(f)}function h(f){return f===null||P(f)?(e.exit("definition"),r.parser.defined.push(i),n(f)):t(f)}}function el(e,n,t){return r;function r(a){return J(a)?Me(e,i)(a):t(a)}function i(a){return Gt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return O(a)?W(e,o,"whitespace")(a):o(a)}function o(a){return a===null||P(a)?n(a):t(a)}}const nl={name:"hardBreakEscape",tokenize:tl};function tl(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return P(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const rl={name:"headingAtx",resolve:il,tokenize:ll};function il(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ce(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function ll(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),o(s)}function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||J(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||P(s)?(e.exit("atxHeading"),n(s)):O(s)?W(e,a,"whitespace")(s):(e.enter("atxHeadingText"),u(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),a(s))}function u(s){return s===null||s===35||J(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),u)}}const ol=["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"],ut=["pre","script","style","textarea"],al={concrete:!0,name:"htmlFlow",resolveTo:cl,tokenize:pl},ul={partial:!0,tokenize:hl},sl={partial:!0,tokenize:fl};function cl(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function pl(e,n,t){const r=this;let i,l,o,a,c;return u;function u(d){return s(d)}function s(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),p}function p(d){return d===33?(e.consume(d),h):d===47?(e.consume(d),l=!0,E):d===63?(e.consume(d),i=3,r.interrupt?n:m):se(d)?(e.consume(d),o=String.fromCharCode(d),I):t(d)}function h(d){return d===45?(e.consume(d),i=2,f):d===91?(e.consume(d),i=5,a=0,b):se(d)?(e.consume(d),i=4,r.interrupt?n:m):t(d)}function f(d){return d===45?(e.consume(d),r.interrupt?n:m):t(d)}function b(d){const oe="CDATA[";return d===oe.charCodeAt(a++)?(e.consume(d),a===oe.length?r.interrupt?n:T:b):t(d)}function E(d){return se(d)?(e.consume(d),o=String.fromCharCode(d),I):t(d)}function I(d){if(d===null||d===47||d===62||J(d)){const oe=d===47,xe=o.toLowerCase();return!oe&&!l&&ut.includes(xe)?(i=1,r.interrupt?n(d):T(d)):ol.includes(o.toLowerCase())?(i=6,oe?(e.consume(d),x):r.interrupt?n(d):T(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):l?z(d):C(d))}return d===45||te(d)?(e.consume(d),o+=String.fromCharCode(d),I):t(d)}function x(d){return d===62?(e.consume(d),r.interrupt?n:T):t(d)}function z(d){return O(d)?(e.consume(d),z):M(d)}function C(d){return d===47?(e.consume(d),M):d===58||d===95||se(d)?(e.consume(d),B):O(d)?(e.consume(d),C):M(d)}function B(d){return d===45||d===46||d===58||d===95||te(d)?(e.consume(d),B):U(d)}function U(d){return d===61?(e.consume(d),y):O(d)?(e.consume(d),U):C(d)}function y(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),c=d,F):O(d)?(e.consume(d),y):V(d)}function F(d){return d===c?(e.consume(d),c=null,R):d===null||P(d)?t(d):(e.consume(d),F)}function V(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||J(d)?U(d):(e.consume(d),V)}function R(d){return d===47||d===62||O(d)?C(d):t(d)}function M(d){return d===62?(e.consume(d),v):t(d)}function v(d){return d===null||P(d)?T(d):O(d)?(e.consume(d),v):t(d)}function T(d){return d===45&&i===2?(e.consume(d),j):d===60&&i===1?(e.consume(d),X):d===62&&i===4?(e.consume(d),le):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),pe):P(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ul,fe,q)(d)):d===null||P(d)?(e.exit("htmlFlowData"),q(d)):(e.consume(d),T)}function q(d){return e.check(sl,A,fe)(d)}function A(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),S}function S(d){return d===null||P(d)?q(d):(e.enter("htmlFlowData"),T(d))}function j(d){return d===45?(e.consume(d),m):T(d)}function X(d){return d===47?(e.consume(d),o="",ie):T(d)}function ie(d){if(d===62){const oe=o.toLowerCase();return ut.includes(oe)?(e.consume(d),le):T(d)}return se(d)&&o.length<8?(e.consume(d),o+=String.fromCharCode(d),ie):T(d)}function pe(d){return d===93?(e.consume(d),m):T(d)}function m(d){return d===62?(e.consume(d),le):d===45&&i===2?(e.consume(d),m):T(d)}function le(d){return d===null||P(d)?(e.exit("htmlFlowData"),fe(d)):(e.consume(d),le)}function fe(d){return e.exit("htmlFlow"),n(d)}}function fl(e,n,t){const r=this;return i;function i(o){return P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function hl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ge,n,t)}}const ml={name:"htmlText",tokenize:dl};function dl(e,n,t){const r=this;let i,l,o;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),U):m===63?(e.consume(m),C):se(m)?(e.consume(m),V):t(m)}function u(m){return m===45?(e.consume(m),s):m===91?(e.consume(m),l=0,b):se(m)?(e.consume(m),z):t(m)}function s(m){return m===45?(e.consume(m),f):t(m)}function p(m){return m===null?t(m):m===45?(e.consume(m),h):P(m)?(o=p,X(m)):(e.consume(m),p)}function h(m){return m===45?(e.consume(m),f):p(m)}function f(m){return m===62?j(m):m===45?h(m):p(m)}function b(m){const le="CDATA[";return m===le.charCodeAt(l++)?(e.consume(m),l===le.length?E:b):t(m)}function E(m){return m===null?t(m):m===93?(e.consume(m),I):P(m)?(o=E,X(m)):(e.consume(m),E)}function I(m){return m===93?(e.consume(m),x):E(m)}function x(m){return m===62?j(m):m===93?(e.consume(m),x):E(m)}function z(m){return m===null||m===62?j(m):P(m)?(o=z,X(m)):(e.consume(m),z)}function C(m){return m===null?t(m):m===63?(e.consume(m),B):P(m)?(o=C,X(m)):(e.consume(m),C)}function B(m){return m===62?j(m):C(m)}function U(m){return se(m)?(e.consume(m),y):t(m)}function y(m){return m===45||te(m)?(e.consume(m),y):F(m)}function F(m){return P(m)?(o=F,X(m)):O(m)?(e.consume(m),F):j(m)}function V(m){return m===45||te(m)?(e.consume(m),V):m===47||m===62||J(m)?R(m):t(m)}function R(m){return m===47?(e.consume(m),j):m===58||m===95||se(m)?(e.consume(m),M):P(m)?(o=R,X(m)):O(m)?(e.consume(m),R):j(m)}function M(m){return m===45||m===46||m===58||m===95||te(m)?(e.consume(m),M):v(m)}function v(m){return m===61?(e.consume(m),T):P(m)?(o=v,X(m)):O(m)?(e.consume(m),v):R(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,q):P(m)?(o=T,X(m)):O(m)?(e.consume(m),T):(e.consume(m),A)}function q(m){return m===i?(e.consume(m),i=void 0,S):m===null?t(m):P(m)?(o=q,X(m)):(e.consume(m),q)}function A(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||J(m)?R(m):(e.consume(m),A)}function S(m){return m===47||m===62||J(m)?R(m):t(m)}function j(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function X(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ie}function ie(m){return O(m)?W(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):pe(m)}function pe(m){return e.enter("htmlTextData"),o(m)}}const Nn={name:"labelEnd",resolveAll:kl,resolveTo:bl,tokenize:wl},gl={tokenize:Sl},yl={tokenize:El},xl={tokenize:Cl};function kl(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ce(e,0,e.length,t),e}function bl(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",u,n]],a=re(a,e.slice(l+1,l+r+3)),a=re(a,[["enter",s,n]]),a=re(a,Ln(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=re(a,[["exit",s,n],e[o-2],e[o-1],["exit",u,n]]),a=re(a,e.slice(o+1)),a=re(a,[["exit",c,n]]),ce(e,l,e.length,a),e}function wl(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(h){return l?l._inactive?p(h):(o=r.parser.defined.includes(ve(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),c):t(h)}function c(h){return h===40?e.attempt(gl,s,o?s:p)(h):h===91?e.attempt(yl,s,o?u:p)(h):o?s(h):p(h)}function u(h){return e.attempt(xl,s,p)(h)}function s(h){return n(h)}function p(h){return l._balanced=!0,t(h)}}function Sl(e,n,t){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return J(p)?Me(e,l)(p):l(p)}function l(p){return p===41?s(p):Xt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return J(p)?Me(e,c)(p):s(p)}function a(p){return t(p)}function c(p){return p===34||p===39||p===40?Gt(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):s(p)}function u(p){return J(p)?Me(e,s)(p):s(p)}function s(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):t(p)}}function El(e,n,t){const r=this;return i;function i(a){return Qt.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(ve(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Cl(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Il={name:"labelStartImage",resolveAll:Nn.resolveAll,tokenize:Tl};function Tl(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const vl={name:"labelStartLink",resolveAll:Nn.resolveAll,tokenize:Al};function Al(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const rn={name:"lineEnding",tokenize:Pl};function Pl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,n,"linePrefix")}}const Ye={name:"thematicBreak",tokenize:zl};function zl(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||P(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),O(u)?W(e,a,"whitespace")(u):a(u))}}const K={continuation:{tokenize:Dl},exit:Ol,name:"list",tokenize:_l},Ll={partial:!0,tokenize:Rl},Nl={partial:!0,tokenize:Fl};function _l(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(f){const b=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:kn(f)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ye,t,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(f)}return t(f)}function c(f){return kn(f)&&++o<10?(e.consume(f),c):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):t(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Ge,r.interrupt?t:s,e.attempt(Ll,h,p))}function s(f){return r.containerState.initialBlankLine=!0,l++,h(f)}function p(f){return O(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),h):t(f)}function h(f){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(f)}}function Dl(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ge,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!O(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Nl,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(K,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Fl(e,n,t){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function Ol(e){e.exit(this.containerState.type)}function Rl(e,n,t){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!O(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const st={name:"setextUnderline",resolveTo:Ml,tokenize:jl};function Ml(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function jl(e,n,t){const r=this;let i;return l;function l(u){let s=r.events.length,p;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){p=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),O(u)?W(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||P(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const Bl={tokenize:Hl};function Hl(e){const n=this,t=e.attempt(Ge,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Wi,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Ul={resolveAll:Jt()},Vl=Kt("string"),ql=Kt("text");function Kt(e){return{resolveAll:Jt(e==="text"?$l:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(s){return u(s)?l(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return u(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function u(s){if(s===null)return!0;const p=i[s];let h=-1;if(p)for(;++h<p.length;){const f=p[h];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Jt(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function $l(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,c;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)c=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const Wl={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:qt},Yl={91:Ki},Xl={[-2]:tn,[-1]:tn,32:tn},Ql={35:rl,42:Ye,45:[st,Ye],60:al,61:st,95:Ye,96:at,126:at},Gl={38:Wt,92:$t},Kl={[-5]:rn,[-4]:rn,[-3]:rn,33:Il,38:Wt,42:bn,60:[vi,ml],91:vl,92:[nl,$t],93:Nn,95:bn,96:Bi},Jl={null:[bn,Ul]},Zl={null:[42,95]},eo={null:[]},no=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Zl,contentInitial:Yl,disable:eo,document:Wl,flow:Ql,flowInitial:Xl,insideSpan:Jl,string:Gl,text:Kl},Symbol.toStringTag,{value:"Module"}));function to(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const c={attempt:F(U),check:F(y),consume:z,enter:C,exit:B,interrupt:F(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:E,events:[],now:b,parser:e,previous:null,sliceSerialize:h,sliceStream:f,write:p};let s=n.tokenize.call(u,c);return n.resolveAll&&l.push(n),u;function p(v){return o=re(o,v),I(),o[o.length-1]!==null?[]:(V(n,0),u.events=Ln(l,u.events,u),u.events)}function h(v,T){return io(f(v),T)}function f(v){return ro(o,v)}function b(){const{_bufferIndex:v,_index:T,line:q,column:A,offset:S}=r;return{_bufferIndex:v,_index:T,line:q,column:A,offset:S}}function E(v){i[v.line]=v.column,M()}function I(){let v;for(;r._index<o.length;){const T=o[r._index];if(typeof T=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<T.length;)x(T.charCodeAt(r._bufferIndex));else x(T)}}function x(v){s=s(v)}function z(v){P(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,M()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=v}function C(v,T){const q=T||{};return q.type=v,q.start=b(),u.events.push(["enter",q,u]),a.push(q),q}function B(v){const T=a.pop();return T.end=b(),u.events.push(["exit",T,u]),T}function U(v,T){V(v,T.from)}function y(v,T){T.restore()}function F(v,T){return q;function q(A,S,j){let X,ie,pe,m;return Array.isArray(A)?fe(A):"tokenize"in A?fe([A]):le(A);function le(Q){return ze;function ze(de){const we=de!==null&&Q[de],Se=de!==null&&Q.null,Ve=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(Se)?Se:Se?[Se]:[]];return fe(Ve)(de)}}function fe(Q){return X=Q,ie=0,Q.length===0?j:d(Q[ie])}function d(Q){return ze;function ze(de){return m=R(),pe=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?xe():Q.tokenize.call(T?Object.assign(Object.create(u),T):u,c,oe,xe)(de)}}function oe(Q){return v(pe,m),S}function xe(Q){return m.restore(),++ie<X.length?d(X[ie]):j}}}function V(v,T){v.resolveAll&&!l.includes(v)&&l.push(v),v.resolve&&ce(u.events,T,u.events.length-T,v.resolve(u.events.slice(T),u)),v.resolveTo&&(u.events=v.resolveTo(u.events,u))}function R(){const v=b(),T=u.previous,q=u.currentConstruct,A=u.events.length,S=Array.from(a);return{from:A,restore:j};function j(){r=v,u.previous=T,u.currentConstruct=q,u.events.length=A,a=S,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ro(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function io(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
3
3
  `;break}case-3:{o=`\r
4
- `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function lo(e){const r={constructs:pi([no,...(e||{}).extensions||[]]),content:i(bi),defined:[],document:i(Si),flow:i(Bl),lazy:{},string:i(Vl),text:i(ql)};return r;function i(l){return o;function o(a){return to(r,l,a)}}}function oo(e){for(;!Yt(e););return e}const ct=/[\0\t\n\r]/g;function ao(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let u,s,p,m,f;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),p=0,n="",t&&(l.charCodeAt(0)===65279&&p++,t=void 0);p<l.length;){if(ct.lastIndex=p,u=ct.exec(l),m=u&&u.index!==void 0?u.index:l.length,f=l.charCodeAt(m),!u){n=l.slice(p);break}if(f===10&&p===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<m&&(c.push(l.slice(p,m)),e+=m-p),f){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=m+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const uo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function so(e){return e.replace(uo,co)}function co(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Vt(t.slice(l?2:1),l?16:10)}return zn(t)||e}const Zt={}.hasOwnProperty;function fo(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),po(t)(oo(lo(t).document().write(ao()(e,n,!0))))}function po(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Hn),autolinkProtocol:R,autolinkEmail:R,atxHeading:l(Mn),blockQuote:l(Se),characterEscape:R,characterReference:R,codeFenced:l(Ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ve,o),codeText:l(cr,o),codeTextData:R,data:R,codeFlowValue:R,definition:l(fr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(pr),hardBreakEscape:l(jn),hardBreakTrailing:l(jn),htmlFlow:l(Bn,o),htmlFlowData:R,htmlText:l(Bn,o),htmlTextData:R,image:l(hr),label:o,link:l(Hn),listItem:l(dr),listItemValue:m,listOrdered:l(Un,p),listUnordered:l(Un),paragraph:l(mr),reference:d,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Mn),strong:l(gr),thematicBreak:l(xr)},exit:{atxHeading:c(),atxHeadingSequence:U,autolink:c(),autolinkEmail:we,autolinkProtocol:me,blockQuote:c(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:Q,characterReference:ze,codeFenced:c(I),codeFencedFence:E,codeFencedFenceInfo:f,codeFencedFenceMeta:w,codeFlowValue:M,codeIndented:c(x),codeText:c(S),codeTextData:M,data:M,definition:c(),definitionDestinationString:B,definitionLabelString:z,definitionTitleString:C,emphasis:c(),hardBreakEscape:c(T),hardBreakTrailing:c(T),htmlFlow:c(q),htmlFlowData:M,htmlText:c(P),htmlTextData:M,image:c(X),label:fe,labelText:ie,lineEnding:A,link:c(j),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:oe,resourceDestinationString:h,resourceTitleString:le,resource:pe,setextHeading:c(V),setextHeadingLineSequence:F,setextHeadingText:y,strong:c(),thematicBreak:c()}};er(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let b={type:"root",children:[]};const L={stack:[b],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:s,data:t},O=[];let H=-1;for(;++H<g.length;)if(g[H][1].type==="listOrdered"||g[H][1].type==="listUnordered")if(g[H][0]==="enter")O.push(H);else{const ae=O.pop();H=i(g,ae,H)}for(H=-1;++H<g.length;){const ae=n[g[H][0]];Zt.call(ae,g[H][1].type)&&ae[g[H][1].type].call(Object.assign({sliceSerialize:g[H][2].sliceSerialize},L),g[H][1])}if(L.tokenStack.length>0){const ae=L.tokenStack[L.tokenStack.length-1];(ae[1]||ft).call(L,void 0,ae[0])}for(b.position={start:ge(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:ge(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)b=n.transforms[H](b)||b;return b}function i(g,b,L){let O=b-1,H=-1,ae=!1,ke,he,Le,Ne;for(;++O<=L;){const ee=g[O];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?H++:H--,Ne=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(ke&&!Ne&&!H&&!Le&&(Le=O),Ne=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ne=void 0}if(!H&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||H===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(ke){let Ee=O;for(he=void 0;Ee--;){const de=g[Ee];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;he&&(g[he][1].type="lineEndingBlank",ae=!0),de[1].type="lineEnding",he=Ee}else if(!(de[1].type==="linePrefix"||de[1].type==="blockQuotePrefix"||de[1].type==="blockQuotePrefixWhitespace"||de[1].type==="blockQuoteMarker"||de[1].type==="listItemIndent"))break}Le&&(!he||Le<he)&&(ke._spread=!0),ke.end=Object.assign({},he?g[he][1].start:ee[1].end),g.splice(he||O,0,["exit",ke,ee[2]]),O++,L++}if(ee[1].type==="listItemPrefix"){const Ee={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};ke=Ee,g.splice(O,0,["enter",Ee,ee[2]]),O++,L++,Le=void 0,Ne=!0}}}return g[b][1]._spread=ae,L}function l(g,b){return L;function L(O){a.call(this,g(O),O),b&&b.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,b,L){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([b,L||void 0]),g.position={start:ge(b.start),end:void 0}}function c(g){return b;function b(L){g&&g.call(this,L),u.call(this,L)}}function u(g,b){const L=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==g.type&&(b?b.call(this,g,O[0]):(O[1]||ft).call(this,g,O[0]));else throw new Error("Cannot close `"+g.type+"` ("+Re({start:g.start,end:g.end})+"): it’s not open");L.position.end=ge(g.end)}function s(){return ci(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function m(g){if(this.data.expectingFirstListItemValue){const b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function f(){const g=this.resume(),b=this.stack[this.stack.length-1];b.lang=g}function w(){const g=this.resume(),b=this.stack[this.stack.length-1];b.meta=g}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/(\r?\n|\r)$/g,"")}function z(g){const b=this.resume(),L=this.stack[this.stack.length-1];L.label=b,L.identifier=Ae(this.sliceSerialize(g)).toLowerCase()}function C(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function B(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function U(g){const b=this.stack[this.stack.length-1];if(!b.depth){const L=this.sliceSerialize(g).length;b.depth=L}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function F(g){const b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function R(g){const L=this.stack[this.stack.length-1].children;let O=L[L.length-1];(!O||O.type!=="text")&&(O=yr(),O.position={start:ge(g.start),end:void 0},L.push(O)),this.stack.push(O)}function M(g){const b=this.stack.pop();b.value+=this.sliceSerialize(g),b.position.end=ge(g.end)}function A(g){const b=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=b.children[b.children.length-1];L.position.end=ge(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(b.type)&&(R.call(this,g),M.call(this,g))}function T(){this.data.atHardBreak=!0}function q(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function P(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function S(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function j(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function X(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function ie(g){const b=this.sliceSerialize(g),L=this.stack[this.stack.length-2];L.label=so(b),L.identifier=Ae(b).toLowerCase()}function fe(){const g=this.stack[this.stack.length-1],b=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const O=g.children;L.children=O}else L.alt=b}function h(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function le(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function pe(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function oe(g){const b=this.resume(),L=this.stack[this.stack.length-1];L.label=b,L.identifier=Ae(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function xe(g){this.data.characterReferenceType=g.type}function Q(g){const b=this.sliceSerialize(g),L=this.data.characterReferenceType;let O;L?(O=Vt(b,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=zn(b);const H=this.stack[this.stack.length-1];H.value+=O}function ze(g){const b=this.stack.pop();b.position.end=ge(g.end)}function me(g){M.call(this,g);const b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(g)}function we(g){M.call(this,g);const b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(g)}function Se(){return{type:"blockquote",children:[]}}function Ve(){return{type:"code",lang:null,meta:null,value:""}}function cr(){return{type:"inlineCode",value:""}}function fr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pr(){return{type:"emphasis",children:[]}}function Mn(){return{type:"heading",depth:0,children:[]}}function jn(){return{type:"break"}}function Bn(){return{type:"html",value:""}}function hr(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function Un(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function dr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function mr(){return{type:"paragraph",children:[]}}function gr(){return{type:"strong",children:[]}}function yr(){return{type:"text",value:""}}function xr(){return{type:"thematicBreak"}}}function ge(e){return{line:e.line,column:e.column,offset:e.offset}}function er(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?er(e,r):ho(e,r)}}function ho(e,n){let t;for(t in n)if(Zt.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function ft(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Re({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Re({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Re({start:n.start,end:n.end})+") is still open")}function mo(e){const n=this;n.parser=t;function t(r){return fo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function go(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function yo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
4
+ `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function lo(e){const r={constructs:fi([no,...(e||{}).extensions||[]]),content:i(bi),defined:[],document:i(Si),flow:i(Bl),lazy:{},string:i(Vl),text:i(ql)};return r;function i(l){return o;function o(a){return to(r,l,a)}}}function oo(e){for(;!Yt(e););return e}const ct=/[\0\t\n\r]/g;function ao(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let u,s,p,h,f;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),p=0,n="",t&&(l.charCodeAt(0)===65279&&p++,t=void 0);p<l.length;){if(ct.lastIndex=p,u=ct.exec(l),h=u&&u.index!==void 0?u.index:l.length,f=l.charCodeAt(h),!u){n=l.slice(p);break}if(f===10&&p===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<h&&(c.push(l.slice(p,h)),e+=h-p),f){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=h+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const uo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function so(e){return e.replace(uo,co)}function co(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Vt(t.slice(l?2:1),l?16:10)}return zn(t)||e}const Zt={}.hasOwnProperty;function po(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),fo(t)(oo(lo(t).document().write(ao()(e,n,!0))))}function fo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Hn),autolinkProtocol:R,autolinkEmail:R,atxHeading:l(Mn),blockQuote:l(Se),characterEscape:R,characterReference:R,codeFenced:l(Ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ve,o),codeText:l(cr,o),codeTextData:R,data:R,codeFlowValue:R,definition:l(pr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(fr),hardBreakEscape:l(jn),hardBreakTrailing:l(jn),htmlFlow:l(Bn,o),htmlFlowData:R,htmlText:l(Bn,o),htmlTextData:R,image:l(hr),label:o,link:l(Hn),listItem:l(mr),listItemValue:h,listOrdered:l(Un,p),listUnordered:l(Un),paragraph:l(dr),reference:d,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Mn),strong:l(gr),thematicBreak:l(xr)},exit:{atxHeading:c(),atxHeadingSequence:U,autolink:c(),autolinkEmail:we,autolinkProtocol:de,blockQuote:c(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:Q,characterReference:ze,codeFenced:c(I),codeFencedFence:E,codeFencedFenceInfo:f,codeFencedFenceMeta:b,codeFlowValue:M,codeIndented:c(x),codeText:c(S),codeTextData:M,data:M,definition:c(),definitionDestinationString:B,definitionLabelString:z,definitionTitleString:C,emphasis:c(),hardBreakEscape:c(T),hardBreakTrailing:c(T),htmlFlow:c(q),htmlFlowData:M,htmlText:c(A),htmlTextData:M,image:c(X),label:pe,labelText:ie,lineEnding:v,link:c(j),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:oe,resourceDestinationString:m,resourceTitleString:le,resource:fe,setextHeading:c(V),setextHeadingLineSequence:F,setextHeadingText:y,strong:c(),thematicBreak:c()}};er(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let w={type:"root",children:[]};const L={stack:[w],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:s,data:t},D=[];let H=-1;for(;++H<g.length;)if(g[H][1].type==="listOrdered"||g[H][1].type==="listUnordered")if(g[H][0]==="enter")D.push(H);else{const ae=D.pop();H=i(g,ae,H)}for(H=-1;++H<g.length;){const ae=n[g[H][0]];Zt.call(ae,g[H][1].type)&&ae[g[H][1].type].call(Object.assign({sliceSerialize:g[H][2].sliceSerialize},L),g[H][1])}if(L.tokenStack.length>0){const ae=L.tokenStack[L.tokenStack.length-1];(ae[1]||pt).call(L,void 0,ae[0])}for(w.position={start:ge(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:ge(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)w=n.transforms[H](w)||w;return w}function i(g,w,L){let D=w-1,H=-1,ae=!1,ke,he,Le,Ne;for(;++D<=L;){const ee=g[D];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?H++:H--,Ne=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(ke&&!Ne&&!H&&!Le&&(Le=D),Ne=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ne=void 0}if(!H&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||H===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(ke){let Ee=D;for(he=void 0;Ee--;){const me=g[Ee];if(me[1].type==="lineEnding"||me[1].type==="lineEndingBlank"){if(me[0]==="exit")continue;he&&(g[he][1].type="lineEndingBlank",ae=!0),me[1].type="lineEnding",he=Ee}else if(!(me[1].type==="linePrefix"||me[1].type==="blockQuotePrefix"||me[1].type==="blockQuotePrefixWhitespace"||me[1].type==="blockQuoteMarker"||me[1].type==="listItemIndent"))break}Le&&(!he||Le<he)&&(ke._spread=!0),ke.end=Object.assign({},he?g[he][1].start:ee[1].end),g.splice(he||D,0,["exit",ke,ee[2]]),D++,L++}if(ee[1].type==="listItemPrefix"){const Ee={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};ke=Ee,g.splice(D,0,["enter",Ee,ee[2]]),D++,L++,Le=void 0,Ne=!0}}}return g[w][1]._spread=ae,L}function l(g,w){return L;function L(D){a.call(this,g(D),D),w&&w.call(this,D)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,w,L){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([w,L||void 0]),g.position={start:ge(w.start),end:void 0}}function c(g){return w;function w(L){g&&g.call(this,L),u.call(this,L)}}function u(g,w){const L=this.stack.pop(),D=this.tokenStack.pop();if(D)D[0].type!==g.type&&(w?w.call(this,g,D[0]):(D[1]||pt).call(this,g,D[0]));else throw new Error("Cannot close `"+g.type+"` ("+Re({start:g.start,end:g.end})+"): it’s not open");L.position.end=ge(g.end)}function s(){return ci(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(g){if(this.data.expectingFirstListItemValue){const w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function f(){const g=this.resume(),w=this.stack[this.stack.length-1];w.lang=g}function b(){const g=this.resume(),w=this.stack[this.stack.length-1];w.meta=g}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/(\r?\n|\r)$/g,"")}function z(g){const w=this.resume(),L=this.stack[this.stack.length-1];L.label=w,L.identifier=ve(this.sliceSerialize(g)).toLowerCase()}function C(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function B(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function U(g){const w=this.stack[this.stack.length-1];if(!w.depth){const L=this.sliceSerialize(g).length;w.depth=L}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function F(g){const w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function R(g){const L=this.stack[this.stack.length-1].children;let D=L[L.length-1];(!D||D.type!=="text")&&(D=yr(),D.position={start:ge(g.start),end:void 0},L.push(D)),this.stack.push(D)}function M(g){const w=this.stack.pop();w.value+=this.sliceSerialize(g),w.position.end=ge(g.end)}function v(g){const w=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=w.children[w.children.length-1];L.position.end=ge(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(R.call(this,g),M.call(this,g))}function T(){this.data.atHardBreak=!0}function q(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function A(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function S(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function j(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function X(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function ie(g){const w=this.sliceSerialize(g),L=this.stack[this.stack.length-2];L.label=so(w),L.identifier=ve(w).toLowerCase()}function pe(){const g=this.stack[this.stack.length-1],w=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const D=g.children;L.children=D}else L.alt=w}function m(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function le(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function fe(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function oe(g){const w=this.resume(),L=this.stack[this.stack.length-1];L.label=w,L.identifier=ve(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function xe(g){this.data.characterReferenceType=g.type}function Q(g){const w=this.sliceSerialize(g),L=this.data.characterReferenceType;let D;L?(D=Vt(w,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):D=zn(w);const H=this.stack[this.stack.length-1];H.value+=D}function ze(g){const w=this.stack.pop();w.position.end=ge(g.end)}function de(g){M.call(this,g);const w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(g)}function we(g){M.call(this,g);const w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(g)}function Se(){return{type:"blockquote",children:[]}}function Ve(){return{type:"code",lang:null,meta:null,value:""}}function cr(){return{type:"inlineCode",value:""}}function pr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fr(){return{type:"emphasis",children:[]}}function Mn(){return{type:"heading",depth:0,children:[]}}function jn(){return{type:"break"}}function Bn(){return{type:"html",value:""}}function hr(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function Un(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function mr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function dr(){return{type:"paragraph",children:[]}}function gr(){return{type:"strong",children:[]}}function yr(){return{type:"text",value:""}}function xr(){return{type:"thematicBreak"}}}function ge(e){return{line:e.line,column:e.column,offset:e.offset}}function er(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?er(e,r):ho(e,r)}}function ho(e,n){let t;for(t in n)if(Zt.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function pt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Re({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Re({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Re({start:n.start,end:n.end})+") is still open")}function mo(e){const n=this;n.parser=t;function t(r){return po(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function go(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function yo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
5
5
  `}]}function xo(e,n){const t=n.value?n.value+`
6
- `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function ko(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function bo(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function wo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ve(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)}function So(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Eo(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function nr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Co(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return nr(e,n);const i={src:ve(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Io(e,n){const t={src:ve(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function To(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Ao(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return nr(e,n);const i={href:ve(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Po(e,n){const t={href:ve(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function vo(e,n,t){const r=e.all(n),i=t?zo(t):tr(n),l={},o=[];if(typeof n.checked=="boolean"){const s=r[0];let p;s&&s.type==="element"&&s.tagName==="p"?p=s:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
6
+ `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function ko(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function bo(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function wo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Pe(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)}function So(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Eo(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function nr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Co(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return nr(e,n);const i={src:Pe(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Io(e,n){const t={src:Pe(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function To(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function vo(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return nr(e,n);const i={href:Pe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Ao(e,n){const t={href:Pe(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Po(e,n,t){const r=e.all(n),i=t?zo(t):tr(n),l={},o=[];if(typeof n.checked=="boolean"){const s=r[0];let p;s&&s.type==="element"&&s.tagName==="p"?p=s:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
7
7
  `}),s.type==="element"&&s.tagName==="p"&&!i?o.push(...s.children):o.push(s)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
8
- `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function zo(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=tr(t[r])}return n}function tr(e){const n=e.spread;return n??e.children.length>1}function Lo(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function No(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Do(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Oo(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Fo(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Tn(n.children[1]),c=_t(n.children[n.children.length-1]);a&&c&&(o.position={start:a,end:c}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function _o(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let c=-1;const u=[];for(;++c<a;){const p=n.children[c],m={},f=o?o[c]:void 0;f&&(m.align=f);let w={type:"element",tagName:l,properties:m,children:[]};p&&(w.children=e.all(p),e.patch(p,w),w=e.applyData(p,w)),u.push(w)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)}function Ro(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const pt=9,ht=32;function Mo(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(dt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(dt(n.slice(i),i>0,!1)),l.join("")}function dt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===pt||l===ht;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===pt||l===ht;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function jo(e,n){const t={type:"text",value:Mo(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Bo(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Ho={blockquote:go,break:yo,code:xo,delete:ko,emphasis:bo,footnoteReference:wo,heading:So,html:Eo,imageReference:Co,image:Io,inlineCode:To,linkReference:Ao,link:Po,listItem:vo,list:Lo,paragraph:No,root:Do,strong:Oo,table:Fo,tableCell:Ro,tableRow:_o,text:jo,thematicBreak:Bo,toml:qe,yaml:qe,definition:qe,footnoteDefinition:qe};function qe(){}const rr=-1,Ge=0,je=1,Xe=2,Dn=3,On=4,Fn=5,_n=6,ir=7,lr=8,mt=typeof self=="object"?self:globalThis,Uo=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Ge:case rr:return t(o,i);case je:{const a=t([],i);for(const c of o)a.push(r(c));return a}case Xe:{const a=t({},i);for(const[c,u]of o)a[r(c)]=r(u);return a}case Dn:return t(new Date(o),i);case On:{const{source:a,flags:c}=o;return t(new RegExp(a,c),i)}case Fn:{const a=t(new Map,i);for(const[c,u]of o)a.set(r(c),r(u));return a}case _n:{const a=t(new Set,i);for(const c of o)a.add(r(c));return a}case ir:{const{name:a,message:c}=o;return t(new mt[a](c),i)}case lr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new mt[l](o),i)};return r},gt=e=>Uo(new Map,e)(0),Ie="",{toString:Vo}={},{keys:qo}=Object,_e=e=>{const n=typeof e;if(n!=="object"||!e)return[Ge,n];const t=Vo.call(e).slice(8,-1);switch(t){case"Array":return[je,Ie];case"Object":return[Xe,Ie];case"Date":return[Dn,Ie];case"RegExp":return[On,Ie];case"Map":return[Fn,Ie];case"Set":return[_n,Ie];case"DataView":return[je,t]}return t.includes("Array")?[je,t]:t.includes("Error")?[ir,t]:[Xe,t]},$e=([e,n])=>e===Ge&&(n==="function"||n==="symbol"),$o=(e,n,t,r)=>{const i=(o,a)=>{const c=r.push(o)-1;return t.set(a,c),c},l=o=>{if(t.has(o))return t.get(o);let[a,c]=_e(o);switch(a){case Ge:{let s=o;switch(c){case"bigint":a=lr,s=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);s=null;break;case"undefined":return i([rr],o)}return i([a,s],o)}case je:{if(c){let m=o;return c==="DataView"?m=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(o)),i([c,[...m]],o)}const s=[],p=i([a,s],o);for(const m of o)s.push(l(m));return p}case Xe:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const s=[],p=i([a,s],o);for(const m of qo(o))(e||!$e(_e(o[m])))&&s.push([l(m),l(o[m])]);return p}case Dn:return i([a,o.toISOString()],o);case On:{const{source:s,flags:p}=o;return i([a,{source:s,flags:p}],o)}case Fn:{const s=[],p=i([a,s],o);for(const[m,f]of o)(e||!($e(_e(m))||$e(_e(f))))&&s.push([l(m),l(f)]);return p}case _n:{const s=[],p=i([a,s],o);for(const m of o)(e||!$e(_e(m)))&&s.push(l(m));return p}}const{message:u}=o;return i([a,{name:c,message:u}],o)};return l},yt=(e,{json:n,lossy:t}={})=>{const r=[];return $o(!(n||t),!!n,new Map,r)(e),r},Qe=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?gt(yt(e,n)):structuredClone(e):(e,n)=>gt(yt(e,n));function Wo(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Yo(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Xo(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Wo,r=e.options.footnoteBackLabel||Yo,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const s=e.all(u),p=String(u.identifier).toUpperCase(),m=ve(p.toLowerCase());let f=0;const w=[],E=e.footnoteCounts.get(p);for(;E!==void 0&&++f<=E;){w.length>0&&w.push({type:"text",value:" "});let z=typeof t=="string"?t:t(c,f);typeof z=="string"&&(z={type:"text",value:z}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+m+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,f),className:["data-footnote-backref"]},children:Array.isArray(z)?z:[z]})}const I=s[s.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const z=I.children[I.children.length-1];z&&z.type==="text"?z.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...w)}else s.push(...w);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+m},children:e.wrap(s,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Qe(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
8
+ `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function zo(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=tr(t[r])}return n}function tr(e){const n=e.spread;return n??e.children.length>1}function Lo(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function No(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function _o(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Do(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Fo(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Tn(n.children[1]),c=Ot(n.children[n.children.length-1]);a&&c&&(o.position={start:a,end:c}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function Oo(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let c=-1;const u=[];for(;++c<a;){const p=n.children[c],h={},f=o?o[c]:void 0;f&&(h.align=f);let b={type:"element",tagName:l,properties:h,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(p,b)),u.push(b)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)}function Ro(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const ft=9,ht=32;function Mo(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(mt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(mt(n.slice(i),i>0,!1)),l.join("")}function mt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===ft||l===ht;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===ft||l===ht;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function jo(e,n){const t={type:"text",value:Mo(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Bo(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Ho={blockquote:go,break:yo,code:xo,delete:ko,emphasis:bo,footnoteReference:wo,heading:So,html:Eo,imageReference:Co,image:Io,inlineCode:To,linkReference:vo,link:Ao,listItem:Po,list:Lo,paragraph:No,root:_o,strong:Do,table:Fo,tableCell:Ro,tableRow:Oo,text:jo,thematicBreak:Bo,toml:qe,yaml:qe,definition:qe,footnoteDefinition:qe};function qe(){}const rr=-1,Ke=0,je=1,Xe=2,_n=3,Dn=4,Fn=5,On=6,ir=7,lr=8,dt=typeof self=="object"?self:globalThis,Uo=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Ke:case rr:return t(o,i);case je:{const a=t([],i);for(const c of o)a.push(r(c));return a}case Xe:{const a=t({},i);for(const[c,u]of o)a[r(c)]=r(u);return a}case _n:return t(new Date(o),i);case Dn:{const{source:a,flags:c}=o;return t(new RegExp(a,c),i)}case Fn:{const a=t(new Map,i);for(const[c,u]of o)a.set(r(c),r(u));return a}case On:{const a=t(new Set,i);for(const c of o)a.add(r(c));return a}case ir:{const{name:a,message:c}=o;return t(new dt[a](c),i)}case lr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new dt[l](o),i)};return r},gt=e=>Uo(new Map,e)(0),Ie="",{toString:Vo}={},{keys:qo}=Object,Oe=e=>{const n=typeof e;if(n!=="object"||!e)return[Ke,n];const t=Vo.call(e).slice(8,-1);switch(t){case"Array":return[je,Ie];case"Object":return[Xe,Ie];case"Date":return[_n,Ie];case"RegExp":return[Dn,Ie];case"Map":return[Fn,Ie];case"Set":return[On,Ie];case"DataView":return[je,t]}return t.includes("Array")?[je,t]:t.includes("Error")?[ir,t]:[Xe,t]},$e=([e,n])=>e===Ke&&(n==="function"||n==="symbol"),$o=(e,n,t,r)=>{const i=(o,a)=>{const c=r.push(o)-1;return t.set(a,c),c},l=o=>{if(t.has(o))return t.get(o);let[a,c]=Oe(o);switch(a){case Ke:{let s=o;switch(c){case"bigint":a=lr,s=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);s=null;break;case"undefined":return i([rr],o)}return i([a,s],o)}case je:{if(c){let h=o;return c==="DataView"?h=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(h=new Uint8Array(o)),i([c,[...h]],o)}const s=[],p=i([a,s],o);for(const h of o)s.push(l(h));return p}case Xe:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const s=[],p=i([a,s],o);for(const h of qo(o))(e||!$e(Oe(o[h])))&&s.push([l(h),l(o[h])]);return p}case _n:return i([a,o.toISOString()],o);case Dn:{const{source:s,flags:p}=o;return i([a,{source:s,flags:p}],o)}case Fn:{const s=[],p=i([a,s],o);for(const[h,f]of o)(e||!($e(Oe(h))||$e(Oe(f))))&&s.push([l(h),l(f)]);return p}case On:{const s=[],p=i([a,s],o);for(const h of o)(e||!$e(Oe(h)))&&s.push(l(h));return p}}const{message:u}=o;return i([a,{name:c,message:u}],o)};return l},yt=(e,{json:n,lossy:t}={})=>{const r=[];return $o(!(n||t),!!n,new Map,r)(e),r},Qe=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?gt(yt(e,n)):structuredClone(e):(e,n)=>gt(yt(e,n));function Wo(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Yo(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Xo(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Wo,r=e.options.footnoteBackLabel||Yo,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const s=e.all(u),p=String(u.identifier).toUpperCase(),h=Pe(p.toLowerCase());let f=0;const b=[],E=e.footnoteCounts.get(p);for(;E!==void 0&&++f<=E;){b.length>0&&b.push({type:"text",value:" "});let z=typeof t=="string"?t:t(c,f);typeof z=="string"&&(z={type:"text",value:z}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+h+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,f),className:["data-footnote-backref"]},children:Array.isArray(z)?z:[z]})}const I=s[s.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const z=I.children[I.children.length-1];z&&z.type==="text"?z.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...b)}else s.push(...b);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+h},children:e.wrap(s,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Qe(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
9
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
10
- `}]}}const or=(function(e){if(e==null)return Jo;if(typeof e=="function")return Je(e);if(typeof e=="object")return Array.isArray(e)?Qo(e):Ko(e);if(typeof e=="string")return Go(e);throw new Error("Expected function, string, or object as test")});function Qo(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=or(e[t]);return Je(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function Ko(e){const n=e;return Je(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function Go(e){return Je(n);function n(t){return t&&t.type===e}}function Je(e){return n;function n(t,r,i){return!!(Zo(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Jo(){return!0}function Zo(e){return e!==null&&typeof e=="object"&&"type"in e}const ar=[],ea=!0,xt=!1,na="skip";function ta(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=or(i),o=r?-1:1;a(e,void 0,[])();function a(c,u,s){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const f=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(f?"<"+f+">":""))+")"})}return m;function m(){let f=ar,w,E,I;if((!n||l(c,u,s[s.length-1]||void 0))&&(f=ra(t(c,s)),f[0]===xt))return f;if("children"in c&&c.children){const x=c;if(x.children&&f[0]!==na)for(E=(r?x.children.length:-1)+o,I=s.concat(x);E>-1&&E<x.children.length;){const z=x.children[E];if(w=a(z,E,I)(),w[0]===xt)return w;E=typeof w[1]=="number"?w[1]:E+o}}return f}}}function ra(e){return Array.isArray(e)?e:typeof e=="number"?[ea,e]:e==null?ar:[e]}function ur(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),ta(e,l,a,i);function a(c,u){const s=u[u.length-1],p=s?s.children.indexOf(c):void 0;return o(c,p,s)}}const wn={}.hasOwnProperty,ia={};function la(e,n){const t=n||ia,r=new Map,i=new Map,l=new Map,o={...Ho,...t.handlers},a={all:u,applyData:aa,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:c,options:t,patch:oa,wrap:sa};return ur(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const p=s.type==="definition"?r:i,m=String(s.identifier).toUpperCase();p.has(m)||p.set(m,s)}}),a;function c(s,p){const m=s.type,f=a.handlers[m];if(wn.call(a.handlers,m)&&f)return f(a,s,p);if(a.options.passThrough&&a.options.passThrough.includes(m)){if("children"in s){const{children:E,...I}=s,x=Qe(I);return x.children=a.all(s),x}return Qe(s)}return(a.options.unknownHandler||ua)(a,s,p)}function u(s){const p=[];if("children"in s){const m=s.children;let f=-1;for(;++f<m.length;){const w=a.one(m[f],s);if(w){if(f&&m[f-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=kt(w.value)),!Array.isArray(w)&&w.type==="element")){const E=w.children[0];E&&E.type==="text"&&(E.value=kt(E.value))}Array.isArray(w)?p.push(...w):p.push(w)}}}return p}}function oa(e,n){e.position&&(n.position=Ur(e))}function aa(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,Qe(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function ua(e,n){const t=n.data||{},r="value"in n&&!(wn.call(t,"hProperties")||wn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function sa(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
10
+ `}]}}const or=(function(e){if(e==null)return Jo;if(typeof e=="function")return Je(e);if(typeof e=="object")return Array.isArray(e)?Qo(e):Go(e);if(typeof e=="string")return Ko(e);throw new Error("Expected function, string, or object as test")});function Qo(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=or(e[t]);return Je(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function Go(e){const n=e;return Je(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function Ko(e){return Je(n);function n(t){return t&&t.type===e}}function Je(e){return n;function n(t,r,i){return!!(Zo(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Jo(){return!0}function Zo(e){return e!==null&&typeof e=="object"&&"type"in e}const ar=[],ea=!0,xt=!1,na="skip";function ta(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=or(i),o=r?-1:1;a(e,void 0,[])();function a(c,u,s){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const f=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(c.type+(f?"<"+f+">":""))+")"})}return h;function h(){let f=ar,b,E,I;if((!n||l(c,u,s[s.length-1]||void 0))&&(f=ra(t(c,s)),f[0]===xt))return f;if("children"in c&&c.children){const x=c;if(x.children&&f[0]!==na)for(E=(r?x.children.length:-1)+o,I=s.concat(x);E>-1&&E<x.children.length;){const z=x.children[E];if(b=a(z,E,I)(),b[0]===xt)return b;E=typeof b[1]=="number"?b[1]:E+o}}return f}}}function ra(e){return Array.isArray(e)?e:typeof e=="number"?[ea,e]:e==null?ar:[e]}function ur(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),ta(e,l,a,i);function a(c,u){const s=u[u.length-1],p=s?s.children.indexOf(c):void 0;return o(c,p,s)}}const wn={}.hasOwnProperty,ia={};function la(e,n){const t=n||ia,r=new Map,i=new Map,l=new Map,o={...Ho,...t.handlers},a={all:u,applyData:aa,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:c,options:t,patch:oa,wrap:sa};return ur(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const p=s.type==="definition"?r:i,h=String(s.identifier).toUpperCase();p.has(h)||p.set(h,s)}}),a;function c(s,p){const h=s.type,f=a.handlers[h];if(wn.call(a.handlers,h)&&f)return f(a,s,p);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in s){const{children:E,...I}=s,x=Qe(I);return x.children=a.all(s),x}return Qe(s)}return(a.options.unknownHandler||ua)(a,s,p)}function u(s){const p=[];if("children"in s){const h=s.children;let f=-1;for(;++f<h.length;){const b=a.one(h[f],s);if(b){if(f&&h[f-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=kt(b.value)),!Array.isArray(b)&&b.type==="element")){const E=b.children[0];E&&E.type==="text"&&(E.value=kt(E.value))}Array.isArray(b)?p.push(...b):p.push(b)}}}return p}}function oa(e,n){e.position&&(n.position=Ur(e))}function aa(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,Qe(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function ua(e,n){const t=n.data||{},r="value"in n&&!(wn.call(t,"hProperties")||wn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function sa(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
11
11
  `});++r<e.length;)r&&t.push({type:"text",value:`
12
12
  `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
13
13
  `}),t}function kt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function bt(e,n){const t=la(e,n),r=t.one(e,void 0),i=Xo(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
14
- `},i),l}function ca(e,n){return e&&"run"in e?async function(t,r){const i=bt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return bt(t,{file:r,...e||n})}}function wt(e){if(e)throw e}var ln,St;function fa(){if(St)return ln;St=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var s=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!s&&!p)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},o=function(u,s){t&&s.name==="__proto__"?t(u,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):u[s.name]=s.newValue},a=function(u,s){if(s==="__proto__")if(e.call(u,s)){if(r)return r(u,s).value}else return;return u[s]};return ln=function c(){var u,s,p,m,f,w,E=arguments[0],I=1,x=arguments.length,z=!1;for(typeof E=="boolean"&&(z=E,E=arguments[1]||{},I=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});I<x;++I)if(u=arguments[I],u!=null)for(s in u)p=a(E,s),m=a(u,s),E!==m&&(z&&m&&(l(m)||(f=i(m)))?(f?(f=!1,w=p&&i(p)?p:[]):w=p&&l(p)?p:{},o(E,{name:s,newValue:c(z,w,m)})):typeof m<"u"&&o(E,{name:s,newValue:m}));return E},ln}var pa=fa();const on=Pt(pa);function Sn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ha(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(c,...u){const s=e[++l];let p=-1;if(c){o(c);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,s?da(s,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function da(e,n){let t;return r;function r(...o){const a=e.length>o.length;let c;a&&o.push(i);try{c=e.apply(this,o)}catch(u){const s=u;if(a&&t)throw s;return i(s)}a||(c&&c.then&&typeof c.then=="function"?c.then(l,i):c instanceof Error?i(c):l(c))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const ue={basename:ma,dirname:ga,extname:ya,join:xa,sep:"/"};function ma(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ue(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function ga(e){if(Ue(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function ya(e){Ue(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function xa(...e){let n=-1,t;for(;++n<e.length;)Ue(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":ka(t)}function ka(e){Ue(e);const n=e.codePointAt(0)===47;let t=ba(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function ba(e,n){let t="",r=0,i=-1,l=0,o=-1,a,c;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Ue(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wa={cwd:Sa};function Sa(){return"/"}function En(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ea(e){if(typeof e=="string")e=new URL(e);else if(!En(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Ca(e)}function Ca(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 n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+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(n)}const an=["history","path","basename","stem","extname","dirname"];class sr{constructor(n){let t;n?En(n)?t={path:n}:typeof n=="string"||Ia(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":wa.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<an.length;){const l=an[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)an.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ue.basename(this.path):void 0}set basename(n){sn(n,"basename"),un(n,"basename"),this.path=ue.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ue.dirname(this.path):void 0}set dirname(n){Et(this.basename,"dirname"),this.path=ue.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ue.extname(this.path):void 0}set extname(n){if(un(n,"extname"),Et(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ue.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){En(n)&&(n=Ea(n)),sn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ue.basename(this.path,this.extname):void 0}set stem(n){sn(n,"stem"),un(n,"stem"),this.path=ue.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new K(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function un(e,n){if(e&&e.includes(ue.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ue.sep+"`")}function sn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Et(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Ia(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ta=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),Aa={}.hasOwnProperty;class Rn extends Ta{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=ha()}copy(){const n=new Rn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(on(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(pn("data",this.frozen),this.namespace[n]=t,this):Aa.call(this.namespace,n)&&this.namespace[n]||void 0:n?(pn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=We(n),r=this.parser||this.Parser;return cn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),cn("process",this.parser||this.Parser),fn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=We(n),c=r.parse(a);r.run(c,a,function(s,p,m){if(s||!p||!m)return u(s);const f=p,w=r.stringify(f,m);za(w)?m.value=w:m.result=w,u(s,m)});function u(s,p){s||!p?o(s):l?l(p):t(void 0,p)}}}processSync(n){let t=!1,r;return this.freeze(),cn("processSync",this.parser||this.Parser),fn("processSync",this.compiler||this.Compiler),this.process(n,i),It("processSync","process",t),r;function i(l,o){t=!0,wt(l),r=o}}run(n,t,r){Ct(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const c=We(t);i.run(n,c,u);function u(s,p,m){const f=p||n;s?a(s):o?o(f):r(void 0,f,m)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),It("runSync","run",r),i;function l(o,a){wt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=We(t),i=this.compiler||this.Compiler;return fn("stringify",i),Ct(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(pn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[s,...p]=u;c(s,p)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(i.settings=on(!0,i.settings,u.settings))}function a(u){let s=-1;if(u!=null)if(Array.isArray(u))for(;++s<u.length;){const p=u[s];l(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,s){let p=-1,m=-1;for(;++p<r.length;)if(r[p][0]===u){m=p;break}if(m===-1)r.push([u,...s]);else if(s.length>0){let[f,...w]=s;const E=r[m][1];Sn(E)&&Sn(f)&&(f=on(!0,E,f)),r[m]=[u,f,...w]}}}}const Pa=new Rn().freeze();function cn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ct(e){if(!Sn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function It(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function We(e){return va(e)?e:new sr(e)}function va(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function za(e){return typeof e=="string"||La(e)}function La(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Na="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Tt=[],At={allowDangerousHtml:!0},Da=/^(https?|ircs?|mailto|xmpp)$/i,Oa=[{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 Fa(e){const n=_a(e),t=Ra(e);return Ma(n.runSync(n.parse(t),t),e)}function _a(e){const n=e.rehypePlugins||Tt,t=e.remarkPlugins||Tt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...At}:At;return Pa().use(mo).use(t).use(ca,r).use(n)}function Ra(e){const n=e.children||"",t=new sr;return typeof n=="string"&&(t.value=n),t}function Ma(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,c=n.urlTransform||ja;for(const s of Oa)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+Na+s.id,void 0);return ur(e,u),Yr(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function u(s,p,m){if(s.type==="raw"&&m&&typeof p=="number")return o?m.children.splice(p,1):m.children[p]={type:"text",value:s.value},p;if(s.type==="element"){let f;for(f in nn)if(Object.hasOwn(nn,f)&&Object.hasOwn(s.properties,f)){const w=s.properties[f],E=nn[f];(E===null||E.includes(s.tagName))&&(s.properties[f]=c(String(w||""),f,s))}}if(s.type==="element"){let f=t?!t.includes(s.tagName):l?l.includes(s.tagName):!1;if(!f&&r&&typeof p=="number"&&(f=!r(s,p,m)),f&&m&&typeof p=="number")return a&&s.children?m.children.splice(p,1,...s.children):m.children.splice(p,1),p}}}function ja(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Da.test(e.slice(0,n))?e:""}function Wa({state:e,onClose:n}){var i;hn.useEffect(()=>{const l=o=>{o.key==="Escape"&&n()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[n]);const t=Vn.useMemo(()=>{if(!e.file)return null;const{content:l,mimeType:o,encoding:a}=e.file;if(a==="base64")return`data:${o};base64,${l}`;try{const c=btoa(unescape(encodeURIComponent(l)));return`data:${o};base64,${c}`}catch{return null}},[e.file]),r=Vn.useMemo(()=>{const l=e.ref,o=l.lastIndexOf("/");return o>=0?l.slice(o+1):l},[e.ref]);return D.jsx("div",{className:"fixed inset-0 z-40 flex items-center justify-center bg-bg-deep/80 backdrop-blur-sm p-4 md:p-8",onClick:n,children:D.jsxs("div",{className:"relative w-full max-w-4xl h-full max-h-[90vh] bg-bg-secondary border border-border rounded-2xl overflow-hidden flex flex-col shadow-2xl",onClick:l=>l.stopPropagation(),children:[D.jsxs("div",{className:"flex items-center gap-3 px-5 py-3 border-b border-border bg-bg/40 shrink-0",children:[D.jsx("div",{className:"w-8 h-8 rounded-lg bg-bg-tertiary flex items-center justify-center text-base",children:Va((i=e.file)==null?void 0:i.mimeType)}),D.jsxs("div",{className:"flex-1 min-w-0",children:[D.jsx("div",{className:"text-sm font-semibold truncate",title:e.ref,children:r}),D.jsxs("div",{className:"text-[11px] text-text-muted truncate",children:[e.ref,e.file&&D.jsxs(D.Fragment,{children:[" · ",e.file.mimeType," · ",qa(e.file.sizeBytes),e.file.truncated&&D.jsx("span",{className:"text-warn",children:" · truncated to 5 MB"})]})]})]}),t&&D.jsxs(D.Fragment,{children:[D.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"px-3 py-1.5 text-xs bg-bg-tertiary border border-border rounded-full text-text-secondary hover:text-text",title:"Open in a new browser tab",children:"Open ↗"}),D.jsx("a",{href:t,download:r,className:"px-3 py-1.5 text-xs bg-bg-tertiary border border-border rounded-full text-text-secondary hover:text-text",title:"Save to your computer",children:"Download"})]}),D.jsx("button",{onClick:n,className:"w-8 h-8 rounded-full bg-bg-tertiary border border-border text-text-muted hover:text-text flex items-center justify-center text-sm",title:"Close (Esc)",children:"✕"})]}),D.jsxs("div",{className:"flex-1 overflow-auto",children:[e.loading&&D.jsx("div",{className:"h-full flex items-center justify-center text-text-muted text-sm",children:"Loading…"}),e.error&&D.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-2 text-center px-6",children:[D.jsx("div",{className:"text-error font-semibold",children:"Couldn't open this file"}),D.jsx("div",{className:"text-xs text-text-muted max-w-md",children:e.error}),D.jsxs("div",{className:"text-[11px] text-text-muted mt-2",children:["The agent referenced ",D.jsx("code",{className:"text-text-secondary",children:e.ref})," but the file may have been moved, deleted, or written outside the gateway's reach."]})]}),e.file&&D.jsx(Ba,{file:e.file})]})]})})}function Ba({file:e}){const{content:n,mimeType:t,encoding:r}=e;if(t==="text/markdown")return D.jsx("div",{className:"px-6 md:px-10 py-6 bg-[#f7f5ee] text-[#1a1f2e] prose prose-sm md:prose-base max-w-none font-serif markdown-body",children:D.jsx(Fa,{children:n})});if(t==="text/html")return D.jsx(Ha,{html:Ua(n)});if(t.startsWith("image/")){const i=r==="base64"?`data:${t};base64,${n}`:"";return D.jsx("div",{className:"h-full flex items-center justify-center bg-bg-deep/40 p-4",children:D.jsx("img",{src:i,alt:e.ref,className:"max-w-full max-h-full object-contain"})})}if(t==="application/pdf"){const i=r==="base64"?`data:${t};base64,${n}`:"";return D.jsx("iframe",{title:"PDF preview",src:i,className:"w-full h-full bg-white border-0"})}return r==="utf-8"?D.jsx("pre",{className:"px-6 py-5 text-xs text-text whitespace-pre-wrap font-mono leading-relaxed",children:n}):D.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-2 text-center px-6",children:[D.jsx("div",{className:"text-text font-semibold",children:"No inline preview for this file type"}),D.jsxs("div",{className:"text-xs text-text-muted",children:["Type: ",D.jsx("code",{className:"text-text-secondary",children:t})]}),D.jsxs("div",{className:"text-[11px] text-text-muted",children:["Use the ",D.jsx("b",{children:"Download"})," button up top to save it."]})]})}function Ha({html:e}){const n=hn.useRef(null);return hn.useEffect(()=>{const t=n.current;if(!t)return;const r=t.shadowRoot??t.attachShadow({mode:"open"}),i=/<body\b[^>]*>([\s\S]*?)<\/body>/i.exec(e),l=/<head\b[^>]*>([\s\S]*?)<\/head>/i.exec(e),o=l?Array.from(l[1].matchAll(/<style\b[^>]*>[\s\S]*?<\/style>/gi)).map(u=>u[0]).join(`
14
+ `},i),l}function ca(e,n){return e&&"run"in e?async function(t,r){const i=bt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return bt(t,{file:r,...e||n})}}function wt(e){if(e)throw e}var ln,St;function pa(){if(St)return ln;St=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var s=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!s&&!p)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},o=function(u,s){t&&s.name==="__proto__"?t(u,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):u[s.name]=s.newValue},a=function(u,s){if(s==="__proto__")if(e.call(u,s)){if(r)return r(u,s).value}else return;return u[s]};return ln=function c(){var u,s,p,h,f,b,E=arguments[0],I=1,x=arguments.length,z=!1;for(typeof E=="boolean"&&(z=E,E=arguments[1]||{},I=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});I<x;++I)if(u=arguments[I],u!=null)for(s in u)p=a(E,s),h=a(u,s),E!==h&&(z&&h&&(l(h)||(f=i(h)))?(f?(f=!1,b=p&&i(p)?p:[]):b=p&&l(p)?p:{},o(E,{name:s,newValue:c(z,b,h)})):typeof h<"u"&&o(E,{name:s,newValue:h}));return E},ln}var fa=pa();const on=At(fa);function Sn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ha(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(c,...u){const s=e[++l];let p=-1;if(c){o(c);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,s?ma(s,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function ma(e,n){let t;return r;function r(...o){const a=e.length>o.length;let c;a&&o.push(i);try{c=e.apply(this,o)}catch(u){const s=u;if(a&&t)throw s;return i(s)}a||(c&&c.then&&typeof c.then=="function"?c.then(l,i):c instanceof Error?i(c):l(c))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const ue={basename:da,dirname:ga,extname:ya,join:xa,sep:"/"};function da(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ue(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function ga(e){if(Ue(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function ya(e){Ue(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function xa(...e){let n=-1,t;for(;++n<e.length;)Ue(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":ka(t)}function ka(e){Ue(e);const n=e.codePointAt(0)===47;let t=ba(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function ba(e,n){let t="",r=0,i=-1,l=0,o=-1,a,c;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Ue(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wa={cwd:Sa};function Sa(){return"/"}function En(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ea(e){if(typeof e=="string")e=new URL(e);else if(!En(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Ca(e)}function Ca(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 n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+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(n)}const an=["history","path","basename","stem","extname","dirname"];class sr{constructor(n){let t;n?En(n)?t={path:n}:typeof n=="string"||Ia(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":wa.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<an.length;){const l=an[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)an.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ue.basename(this.path):void 0}set basename(n){sn(n,"basename"),un(n,"basename"),this.path=ue.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ue.dirname(this.path):void 0}set dirname(n){Et(this.basename,"dirname"),this.path=ue.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ue.extname(this.path):void 0}set extname(n){if(un(n,"extname"),Et(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ue.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){En(n)&&(n=Ea(n)),sn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ue.basename(this.path,this.extname):void 0}set stem(n){sn(n,"stem"),un(n,"stem"),this.path=ue.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new G(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function un(e,n){if(e&&e.includes(ue.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ue.sep+"`")}function sn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Et(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Ia(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ta=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),va={}.hasOwnProperty;class Rn extends Ta{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=ha()}copy(){const n=new Rn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(on(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(fn("data",this.frozen),this.namespace[n]=t,this):va.call(this.namespace,n)&&this.namespace[n]||void 0:n?(fn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=We(n),r=this.parser||this.Parser;return cn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),cn("process",this.parser||this.Parser),pn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=We(n),c=r.parse(a);r.run(c,a,function(s,p,h){if(s||!p||!h)return u(s);const f=p,b=r.stringify(f,h);za(b)?h.value=b:h.result=b,u(s,h)});function u(s,p){s||!p?o(s):l?l(p):t(void 0,p)}}}processSync(n){let t=!1,r;return this.freeze(),cn("processSync",this.parser||this.Parser),pn("processSync",this.compiler||this.Compiler),this.process(n,i),It("processSync","process",t),r;function i(l,o){t=!0,wt(l),r=o}}run(n,t,r){Ct(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const c=We(t);i.run(n,c,u);function u(s,p,h){const f=p||n;s?a(s):o?o(f):r(void 0,f,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),It("runSync","run",r),i;function l(o,a){wt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=We(t),i=this.compiler||this.Compiler;return pn("stringify",i),Ct(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(fn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[s,...p]=u;c(s,p)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(i.settings=on(!0,i.settings,u.settings))}function a(u){let s=-1;if(u!=null)if(Array.isArray(u))for(;++s<u.length;){const p=u[s];l(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,s){let p=-1,h=-1;for(;++p<r.length;)if(r[p][0]===u){h=p;break}if(h===-1)r.push([u,...s]);else if(s.length>0){let[f,...b]=s;const E=r[h][1];Sn(E)&&Sn(f)&&(f=on(!0,E,f)),r[h]=[u,f,...b]}}}}const Aa=new Rn().freeze();function cn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function pn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ct(e){if(!Sn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function It(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function We(e){return Pa(e)?e:new sr(e)}function Pa(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function za(e){return typeof e=="string"||La(e)}function La(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Na="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Tt=[],vt={allowDangerousHtml:!0},_a=/^(https?|ircs?|mailto|xmpp)$/i,Da=[{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 Fa(e){const n=Oa(e),t=Ra(e);return Ma(n.runSync(n.parse(t),t),e)}function Oa(e){const n=e.rehypePlugins||Tt,t=e.remarkPlugins||Tt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vt}:vt;return Aa().use(mo).use(t).use(ca,r).use(n)}function Ra(e){const n=e.children||"",t=new sr;return typeof n=="string"&&(t.value=n),t}function Ma(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,c=n.urlTransform||ja;for(const s of Da)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+Na+s.id,void 0);return ur(e,u),Yr(e,{Fragment:_.Fragment,components:i,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function u(s,p,h){if(s.type==="raw"&&h&&typeof p=="number")return o?h.children.splice(p,1):h.children[p]={type:"text",value:s.value},p;if(s.type==="element"){let f;for(f in nn)if(Object.hasOwn(nn,f)&&Object.hasOwn(s.properties,f)){const b=s.properties[f],E=nn[f];(E===null||E.includes(s.tagName))&&(s.properties[f]=c(String(b||""),f,s))}}if(s.type==="element"){let f=t?!t.includes(s.tagName):l?l.includes(s.tagName):!1;if(!f&&r&&typeof p=="number"&&(f=!r(s,p,h)),f&&h&&typeof p=="number")return a&&s.children?h.children.splice(p,1,...s.children):h.children.splice(p,1),p}}}function ja(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||_a.test(e.slice(0,n))?e:""}function Ba(e){let n=e.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"");n=n.replace(/<script\b[^>]*\/?>/gi,""),n=n.replace(/\son[a-z]+\s*=\s*"[^"]*"/gi,""),n=n.replace(/\son[a-z]+\s*=\s*'[^']*'/gi,""),n=n.replace(/\son[a-z]+\s*=\s*[^"'\s>]+/gi,""),n=n.replace(/(href|src|action)\s*=\s*"javascript:[^"]*"/gi,'$1="#"'),n=n.replace(/(href|src|action)\s*=\s*'javascript:[^']*'/gi,"$1='#'");const t=['<meta name="referrer" content="no-referrer">',`<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: blob:; img-src * data: blob:; font-src * data:; style-src 'self' 'unsafe-inline' *; script-src 'none'; frame-src 'none'; object-src 'none';">`,'<base target="_blank">'].join(`
15
+ `);n=n.replace(/<img\b([^>]*?)\bsrc\s*=\s*(["'])([^"']*?)\2([^>]*?)\/?>/gi,(o,a,c,u,s)=>{if(/^data:image\//i.test(u)||/^blob:/i.test(u)||!/^https?:\/\//i.test(u)&&!/^\/\//.test(u)&&!/^tdi:\/\//i.test(u))return`<img${a} src="${u}"${s}>`;const h=/\balt\s*=\s*"([^"]*)"/i.exec(a+s)||/\balt\s*=\s*'([^']*)'/i.exec(a+s);return['<figure class="titan-img-missing">',' <div class="titan-img-missing__icon" aria-hidden="true">⚙</div>',` <figcaption class="titan-img-missing__caption">${((h==null?void 0:h[1])??"").trim().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")||"Image unavailable"}</figcaption>`,' <div class="titan-img-missing__sub">Image source unavailable</div>',"</figure>"].join(`
16
+ `)});const r=n.trim(),i=/<head\b[^>]*>/i.exec(r);if(i){const o=i.index+i[0].length;return r.slice(0,o)+`
17
+ `+t+r.slice(o)}const l=/<html\b[^>]*>/i.exec(r);if(l){const o=l.index+l[0].length;return r.slice(0,o)+`
18
+ <head>${t}</head>`+r.slice(o)}return`<!DOCTYPE html><html><head>${t}</head><body>${r}</body></html>`}function Ya({state:e,onClose:n}){var i;hn.useEffect(()=>{const l=o=>{o.key==="Escape"&&n()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[n]);const t=Vn.useMemo(()=>{if(!e.file)return null;const{content:l,mimeType:o,encoding:a}=e.file;if(a==="base64")return`data:${o};base64,${l}`;try{const c=btoa(unescape(encodeURIComponent(l)));return`data:${o};base64,${c}`}catch{return null}},[e.file]),r=Vn.useMemo(()=>{const l=e.ref,o=l.lastIndexOf("/");return o>=0?l.slice(o+1):l},[e.ref]);return _.jsx("div",{className:"fixed inset-0 z-40 flex items-center justify-center bg-bg-deep/80 backdrop-blur-sm p-4 md:p-8",onClick:n,children:_.jsxs("div",{className:"relative w-full max-w-4xl h-full max-h-[90vh] bg-bg-secondary border border-border rounded-2xl overflow-hidden flex flex-col shadow-2xl",onClick:l=>l.stopPropagation(),children:[_.jsxs("div",{className:"flex items-center gap-3 px-5 py-3 border-b border-border bg-bg/40 shrink-0",children:[_.jsx("div",{className:"w-8 h-8 rounded-lg bg-bg-tertiary flex items-center justify-center text-base",children:qa((i=e.file)==null?void 0:i.mimeType)}),_.jsxs("div",{className:"flex-1 min-w-0",children:[_.jsx("div",{className:"text-sm font-semibold truncate",title:e.ref,children:r}),_.jsxs("div",{className:"text-[11px] text-text-muted truncate",children:[e.ref,e.file&&_.jsxs(_.Fragment,{children:[" · ",e.file.mimeType," · ",$a(e.file.sizeBytes),e.file.truncated&&_.jsx("span",{className:"text-warn",children:" · truncated to 5 MB"})]})]})]}),t&&_.jsxs(_.Fragment,{children:[_.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"px-3 py-1.5 text-xs bg-bg-tertiary border border-border rounded-full text-text-secondary hover:text-text",title:"Open in a new browser tab",children:"Open ↗"}),_.jsx("a",{href:t,download:r,className:"px-3 py-1.5 text-xs bg-bg-tertiary border border-border rounded-full text-text-secondary hover:text-text",title:"Save to your computer",children:"Download"})]}),_.jsx("button",{onClick:n,className:"w-8 h-8 rounded-full bg-bg-tertiary border border-border text-text-muted hover:text-text flex items-center justify-center text-sm",title:"Close (Esc)",children:"✕"})]}),_.jsxs("div",{className:"flex-1 overflow-auto",children:[e.loading&&_.jsx("div",{className:"h-full flex items-center justify-center text-text-muted text-sm",children:"Loading…"}),e.error&&_.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-2 text-center px-6",children:[_.jsx("div",{className:"text-error font-semibold",children:"Couldn't open this file"}),_.jsx("div",{className:"text-xs text-text-muted max-w-md",children:e.error}),_.jsxs("div",{className:"text-[11px] text-text-muted mt-2",children:["The agent referenced ",_.jsx("code",{className:"text-text-secondary",children:e.ref})," but the file may have been moved, deleted, or written outside the gateway's reach."]})]}),e.file&&_.jsx(Ha,{file:e.file})]})]})})}function Ha({file:e}){const{content:n,mimeType:t,encoding:r}=e;if(t==="text/markdown")return _.jsx("div",{className:"px-6 md:px-10 py-6 prose prose-sm md:prose-base max-w-none markdown-body",style:{background:"var(--theme-paper, #f7f5ee)",color:"var(--theme-ink, #1a1f2e)",fontFamily:"var(--theme-font-display, ui-serif, Georgia, serif)"},children:_.jsx(Fa,{children:n})});if(t==="text/html")return _.jsx(Ua,{html:Ba(n)});if(t.startsWith("image/")){const i=r==="base64"?`data:${t};base64,${n}`:"";return _.jsx("div",{className:"h-full flex items-center justify-center bg-bg-deep/40 p-4",children:_.jsx("img",{src:i,alt:e.ref,className:"max-w-full max-h-full object-contain"})})}if(t==="application/pdf"){const i=r==="base64"?`data:${t};base64,${n}`:"";return _.jsx("iframe",{title:"PDF preview",src:i,className:"w-full h-full bg-white border-0"})}return r==="utf-8"?_.jsx("pre",{className:"px-6 py-5 text-xs text-text whitespace-pre-wrap font-mono leading-relaxed",children:n}):_.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-2 text-center px-6",children:[_.jsx("div",{className:"text-text font-semibold",children:"No inline preview for this file type"}),_.jsxs("div",{className:"text-xs text-text-muted",children:["Type: ",_.jsx("code",{className:"text-text-secondary",children:t})]}),_.jsxs("div",{className:"text-[11px] text-text-muted",children:["Use the ",_.jsx("b",{children:"Download"})," button up top to save it."]})]})}function Ua({html:e}){const n=hn.useRef(null);return hn.useEffect(()=>{const t=n.current;if(!t)return;const r=t.shadowRoot??t.attachShadow({mode:"open"}),i=/<body\b[^>]*>([\s\S]*?)<\/body>/i.exec(e),l=/<head\b[^>]*>([\s\S]*?)<\/head>/i.exec(e),o=l?Array.from(l[1].matchAll(/<style\b[^>]*>[\s\S]*?<\/style>/gi)).map(p=>p[0]).join(`
15
19
  `):"",a=i?i[1]:e,c=`
16
- :host { all: initial; display: block; width: 100%; height: 100%; background: #fdfaf3; color: #1a1f2e; overflow: auto; }
17
- .titan-doc-root { padding: 24px 32px; font-family: Georgia, "Iowan Old Style", serif; line-height: 1.6; max-width: 900px; margin: 0 auto; }
20
+ :host { all: initial; display: block; width: 100%; height: 100%; background: var(--theme-paper, #fdfaf3); color: var(--theme-ink, #1a1f2e); overflow: auto; }
21
+ .titan-doc-root { padding: 24px 32px; font-family: var(--theme-font-display, Georgia, "Iowan Old Style", serif); line-height: 1.6; max-width: 900px; margin: 0 auto; }
18
22
  .titan-doc-root img { max-width: 100%; height: auto; }
19
- .titan-doc-root a { color: #6a3d12; }
20
- `;r.innerHTML=`<style>${c}</style>${o}<div class="titan-doc-root">${a}</div>`},[e]),D.jsx("div",{ref:n,className:"w-full h-full bg-[#fdfaf3] overflow-auto"})}function Ua(e){let n=e.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"");n=n.replace(/<script\b[^>]*\/?>/gi,""),n=n.replace(/\son[a-z]+\s*=\s*"[^"]*"/gi,""),n=n.replace(/\son[a-z]+\s*=\s*'[^']*'/gi,""),n=n.replace(/\son[a-z]+\s*=\s*[^"'\s>]+/gi,""),n=n.replace(/(href|src|action)\s*=\s*"javascript:[^"]*"/gi,'$1="#"'),n=n.replace(/(href|src|action)\s*=\s*'javascript:[^']*'/gi,"$1='#'");const t=['<meta name="referrer" content="no-referrer">',`<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: blob:; img-src * data: blob:; font-src * data:; style-src 'self' 'unsafe-inline' *; script-src 'none'; frame-src 'none'; object-src 'none';">`,'<base target="_blank">'].join(`
21
- `),r=n.trim(),i=/<head\b[^>]*>/i.exec(r);if(i){const o=i.index+i[0].length;return r.slice(0,o)+`
22
- `+t+r.slice(o)}const l=/<html\b[^>]*>/i.exec(r);if(l){const o=l.index+l[0].length;return r.slice(0,o)+`
23
- <head>${t}</head>`+r.slice(o)}return`<!DOCTYPE html><html><head>${t}</head><body>${r}</body></html>`}function Va(e){return e?e==="text/markdown"?"📝":e==="text/html"?"🌐":e==="application/pdf"?"📕":e.startsWith("image/")?"🖼️":e==="application/json"?"⚙️":"📄":"📄"}function qa(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(2)} MB`}export{Wa as F};
23
+ .titan-doc-root a { color: var(--theme-accent, #6a3d12); }
24
+ .titan-img-missing {
25
+ display: block;
26
+ margin: 18px auto;
27
+ padding: 22px 24px;
28
+ max-width: 540px;
29
+ background: linear-gradient(180deg, var(--theme-paper, #ede1c6) 0%, var(--theme-paper-line, #e0d2af) 100%);
30
+ border: 1px solid var(--theme-metal-dark, #b8a070);
31
+ border-radius: 8px;
32
+ box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 1px 2px var(--theme-shadow, rgba(60,40,20,0.18));
33
+ text-align: center;
34
+ color: var(--theme-ink-soft, #5a3818);
35
+ font-family: var(--theme-font-display, Georgia, "Iowan Old Style", serif);
36
+ }
37
+ .titan-img-missing .titan-img-missing__icon {
38
+ font-size: 28px;
39
+ line-height: 1;
40
+ margin-bottom: 6px;
41
+ color: var(--theme-metal-dark, #8a5a2a);
42
+ }
43
+ .titan-img-missing .titan-img-missing__caption {
44
+ font-style: italic;
45
+ font-size: 14px;
46
+ line-height: 1.45;
47
+ color: var(--theme-ink-soft, #5a3818);
48
+ margin: 0;
49
+ }
50
+ .titan-img-missing .titan-img-missing__sub {
51
+ margin-top: 6px;
52
+ font-size: 11px;
53
+ color: var(--theme-metal-dark, #8a6a3a);
54
+ letter-spacing: 0.04em;
55
+ text-transform: uppercase;
56
+ }
57
+ `;r.innerHTML=`<style>${c}</style>${o}<div class="titan-doc-root">${a}</div>`;const u=p=>{const f=(p.getAttribute("alt")||"").trim()||"Image unavailable",b=document.createElement("figure");b.className="titan-img-missing",b.innerHTML=`
58
+ <div class="titan-img-missing__icon" aria-hidden="true">⚙</div>
59
+ <figcaption class="titan-img-missing__caption">${Va(f)}</figcaption>
60
+ <div class="titan-img-missing__sub">Image source unavailable</div>
61
+ `,p.replaceWith(b)};r.querySelectorAll("img").forEach(p=>{const h=p;if(!(h.complete&&h.naturalWidth>0)){if(h.complete&&h.naturalWidth===0){u(h);return}h.addEventListener("error",()=>u(h),{once:!0}),h.addEventListener("load",()=>{h.naturalWidth===0&&u(h)},{once:!0})}})},[e]),_.jsx("div",{ref:n,className:"w-full h-full overflow-auto",style:{background:"var(--theme-paper, #fdfaf3)"}})}function Va(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function qa(e){return e?e==="text/markdown"?"📝":e==="text/html"?"🌐":e==="application/pdf"?"📕":e.startsWith("image/")?"🖼️":e==="application/json"?"⚙️":"📄":"📄"}function $a(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(2)} MB`}export{Ya as F};