@marimo-team/frontend 0.23.16-dev5 → 0.23.16-dev51

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 (704) hide show
  1. package/dist/assets/{CellStatus-BalYv0pK.js → CellStatus-DciB5rbr.js} +1 -1
  2. package/dist/assets/{ConnectedDataExplorerComponent-DI7mV-Gw.js → ConnectedDataExplorerComponent-CXp99aFw.js} +1 -1
  3. package/dist/assets/{ErrorBoundary-C7_5jjWi.js → ErrorBoundary-DzTD8LVq.js} +1 -1
  4. package/dist/assets/{ImperativeModal-BIavOiUv.js → ImperativeModal-fY-ZfT0b.js} +1 -1
  5. package/dist/assets/JsonOutput-BM3vve9F.js +53 -0
  6. package/dist/assets/LazyAnyLanguageCodeMirror-DPOEues4.js +2 -0
  7. package/dist/assets/{MarimoErrorOutput-DO2k2fA5.js → MarimoErrorOutput-Bh0y53Du.js} +4 -4
  8. package/dist/assets/{RSPContexts-CgC81f0I.js → RSPContexts-WiCgGm__.js} +1 -1
  9. package/dist/assets/RenderHTML-B9jx7Dsm.js +1 -0
  10. package/dist/assets/{RunButton-BKRupqr7.js → RunButton-DMtHbFuA.js} +1 -1
  11. package/dist/assets/{add-cell-with-ai-CEZtaZCK.js → add-cell-with-ai-BcRYriMM.js} +35 -35
  12. package/dist/assets/add-connection-dialog-syjRSNPT.js +178 -0
  13. package/dist/assets/{agent-panel-CHB6t7Zy.js → agent-panel-B31W_VwU.js} +5 -5
  14. package/dist/assets/ai-model-dropdown-B3D05oQh.js +5 -0
  15. package/dist/assets/{alert-dialog-BXegNC0I.js → alert-dialog-Bb8Lz8ko.js} +1 -1
  16. package/dist/assets/{any-language-editor-DCpZRrpx.js → any-language-editor-BDvoKhJM.js} +1 -1
  17. package/dist/assets/apl-B-7blH-b.js +1 -0
  18. package/dist/assets/app-config-button-D_mjovwU.js +1 -0
  19. package/dist/assets/{arc-CfUZAQDm.js → arc-CezuXhk_.js} +1 -1
  20. package/dist/assets/{architecture-7HQA4BMR-Bvqj37EA.js → architecture-7HQA4BMR-Dy7zkjw8.js} +1 -1
  21. package/dist/assets/{architectureDiagram-VXUJARFQ-sx_yisiZ.js → architectureDiagram-VXUJARFQ-BmOSh2SW.js} +1 -1
  22. package/dist/assets/asciiarmor-D3K8amZ9.js +1 -0
  23. package/dist/assets/asn1-UGGn98tp.js +1 -0
  24. package/dist/assets/blob-BJREJiQp.js +1 -0
  25. package/dist/assets/{blockDiagram-VD42YOAC-KexI-fgH.js → blockDiagram-VD42YOAC-DHO0ifdn.js} +1 -1
  26. package/dist/assets/brainfuck-B4y4U3tg.js +1 -0
  27. package/dist/assets/{button-eIihcbUw.js → button-DDGiD1NW.js} +1 -1
  28. package/dist/assets/{c4Diagram-YG6GDRKO-d8NrlxRF.js → c4Diagram-YG6GDRKO-ByToYMes.js} +1 -1
  29. package/dist/assets/{cache-panel-wllSTlbM.js → cache-panel-Bvnkzrzd.js} +1 -1
  30. package/dist/assets/{capabilities-B09j1Eor.js → capabilities-DoEg0XwL.js} +1 -1
  31. package/dist/assets/{cell-editor-B5JVq7_q.js → cell-editor-BOhZHoLm.js} +17 -17
  32. package/dist/assets/cell-link-DqNEv3f9.js +1 -0
  33. package/dist/assets/cells-Jr-5Pc9f.js +235 -0
  34. package/dist/assets/channel-hYe4T32r.js +1 -0
  35. package/dist/assets/{chat-display-BG08ltQ3.js → chat-display-Djy1Jt6b.js} +1 -1
  36. package/dist/assets/{chat-panel-P2CzCtXJ.js → chat-panel-B2nYSE_l.js} +4 -4
  37. package/dist/assets/{chat-ui-fAJZAoTD.js → chat-ui-DlG0En7w.js} +4 -4
  38. package/dist/assets/{chunk-4BX2VUAB-fhh1HlXH.js → chunk-4BX2VUAB-BsEakQWN.js} +1 -1
  39. package/dist/assets/chunk-55IACEB6-DkGbQmsa.js +1 -0
  40. package/dist/assets/{chunk-5FQGJX7Z-Cp0LZT-a.js → chunk-5FQGJX7Z-BEbM01OT.js} +2 -2
  41. package/dist/assets/{chunk-ABZYJK2D-BtK4zInQ.js → chunk-ABZYJK2D-CCNXe-E2.js} +3 -3
  42. package/dist/assets/{chunk-ATLVNIR6-YZDenslF.js → chunk-ATLVNIR6-yY0weiRB.js} +1 -1
  43. package/dist/assets/{chunk-B4BG7PRW-DYIZwDbt.js → chunk-B4BG7PRW-DtjHcIBO.js} +1 -1
  44. package/dist/assets/{chunk-CVBHYZKI-CIyHeK0Q.js → chunk-CVBHYZKI-D1ar3Zzb.js} +1 -1
  45. package/dist/assets/{chunk-DI55MBZ5-TodwBGEN.js → chunk-DI55MBZ5-BxB9Lmc6.js} +1 -1
  46. package/dist/assets/{chunk-EXTU4WIE-C76bF1UD.js → chunk-EXTU4WIE-Do43HMrz.js} +1 -1
  47. package/dist/assets/{chunk-FMBD7UC4-Yq65IDPA.js → chunk-FMBD7UC4-FWkYBdS7.js} +1 -1
  48. package/dist/assets/{chunk-HN2XXSSU-CcbN4n6W.js → chunk-HN2XXSSU-nVY6M8Me.js} +1 -1
  49. package/dist/assets/{chunk-JA3XYJ7Z-CPXEu7AX.js → chunk-JA3XYJ7Z-52dYwyoT.js} +1 -1
  50. package/dist/assets/{chunk-JZLCHNYA-D8q1z6Py.js → chunk-JZLCHNYA-BHSouLxk.js} +1 -1
  51. package/dist/assets/{chunk-MI3HLSF2-bmomnexd.js → chunk-MI3HLSF2-BwgHEi3_.js} +1 -1
  52. package/dist/assets/{chunk-N4CR4FBY-BhsjB2qn.js → chunk-N4CR4FBY-BkAnRh0J.js} +2 -2
  53. package/dist/assets/{chunk-QN33PNHL-ngvPqyQ0.js → chunk-QN33PNHL-DWzHlkYI.js} +1 -1
  54. package/dist/assets/{chunk-QXUST7PY-C4c0Sjmn.js → chunk-QXUST7PY-CjtWgrZg.js} +1 -1
  55. package/dist/assets/{chunk-QZHKN3VN-CkbwBDOS.js → chunk-QZHKN3VN-CmAwpNoC.js} +1 -1
  56. package/dist/assets/{chunk-S3R3BYOJ-Bt2NnquF.js → chunk-S3R3BYOJ-DcZAYEft.js} +1 -1
  57. package/dist/assets/{chunk-TZMSLE5B-Dysko1OC.js → chunk-TZMSLE5B-D2-o8-XQ.js} +1 -1
  58. package/dist/assets/classDiagram-2ON5EDUG-DapsPtpH.js +1 -0
  59. package/dist/assets/classDiagram-v2-WZHVMYZB-Oa2f7U6n.js +1 -0
  60. package/dist/assets/{clike-DKPr2D1_.js → clike-BAN6KopO.js} +1 -1
  61. package/dist/assets/clojure-BAZ-ejkG.js +1 -0
  62. package/dist/assets/cmake-jWn0xN9y.js +1 -0
  63. package/dist/assets/cobol-XqY9jaWP.js +1 -0
  64. package/dist/assets/{code-block-37QAKDTI-DlENujeV.js → code-block-37QAKDTI-DdMTHZGu.js} +1 -1
  65. package/dist/assets/coffeescript-DI1jfZHX.js +1 -0
  66. package/dist/assets/{column-preview-Dne1dIt0.js → column-preview-BUHlI5va.js} +1 -1
  67. package/dist/assets/{command-CAJLPEBq.js → command-Dqxie4gq.js} +1 -1
  68. package/dist/assets/{command-palette-iOCqUIs1.js → command-palette-rEJmXCZM.js} +1 -1
  69. package/dist/assets/{common-CD6Mj8n6.js → common-CZc3fQI4.js} +1 -1
  70. package/dist/assets/commonlisp-UKb01OlU.js +1 -0
  71. package/dist/assets/components-GAYCj6Mx.js +1 -0
  72. package/dist/assets/config-B-Q7J_6d.js +1 -0
  73. package/dist/assets/{config-COUOIPEq.js → config-BJVx3eBW.js} +1 -1
  74. package/dist/assets/{copy-BtTOqPTS.js → copy-Bxb1_Gtw.js} +1 -1
  75. package/dist/assets/{copy-icon-C2pG0ZNK.js → copy-icon-neDQUo4Q.js} +1 -1
  76. package/dist/assets/{cose-bilkent-S5V4N54A-BlMw4-M9.js → cose-bilkent-S5V4N54A-B4-5phSs.js} +1 -1
  77. package/dist/assets/{createReducer-C7kZ8zEe.js → createReducer-DGx5Af-C.js} +1 -1
  78. package/dist/assets/crystal-DOvjTBWA.js +1 -0
  79. package/dist/assets/{css-DsUcFZz8.js → css-DWLxGm3Z.js} +1 -1
  80. package/dist/assets/cypher-CLDhu2ae.js +1 -0
  81. package/dist/assets/d-C0ecUZk9.js +1 -0
  82. package/dist/assets/{dagre-6UL2VRFP-kJ4x17JK.js → dagre-6UL2VRFP-2XhH1Ri-.js} +1 -1
  83. package/dist/assets/{data-grid-overlay-editor-DbobQcVo.js → data-grid-overlay-editor-B4LrPNw9.js} +1 -1
  84. package/dist/assets/{datasource-ySAiC9gr.js → datasource-AWkkAeiS.js} +2 -2
  85. package/dist/assets/{dates-D-kIKDYA.js → dates-C2LWzsCZ.js} +1 -1
  86. package/dist/assets/{dependency-graph-panel-BF23EwcD.js → dependency-graph-panel-wcqTPq6b.js} +3 -3
  87. package/dist/assets/{diagram-PSM6KHXK-d-5aQNHk.js → diagram-PSM6KHXK-CAqt0euW.js} +1 -1
  88. package/dist/assets/{diagram-QEK2KX5R-CO-PXq75.js → diagram-QEK2KX5R-D5cgX3Vp.js} +1 -1
  89. package/dist/assets/{diagram-S2PKOQOG-Dv7pcvYC.js → diagram-S2PKOQOG-ibWavdR5.js} +1 -1
  90. package/dist/assets/{dialog-D1DEsRZ2.js → dialog-BCVepWLJ.js} +1 -1
  91. package/dist/assets/diff-657cCCVc.js +1 -0
  92. package/dist/assets/{dist-CRrIf3gB.js → dist-7L5iW3e_.js} +1 -1
  93. package/dist/assets/{dist-ByVeMWkr.js → dist-BLN8PNJV.js} +1 -1
  94. package/dist/assets/{dist-R1kU4nzJ.js → dist-Bcpo9599.js} +1 -1
  95. package/dist/assets/{dist-DQNaXfK1.js → dist-BrZHhdmA.js} +1 -1
  96. package/dist/assets/dist-C00gHjPp.js +1 -0
  97. package/dist/assets/{dist-0QUuSoRx.js → dist-C4El4p_-.js} +1 -1
  98. package/dist/assets/{dist-BsphJPAV.js → dist-CIYjZ11d.js} +1 -1
  99. package/dist/assets/{dist-Du-wcJyR.js → dist-COTjOJlM.js} +1 -1
  100. package/dist/assets/dist-CWNfBqYo.js +1 -0
  101. package/dist/assets/dist-Cck3fpDq.js +1 -0
  102. package/dist/assets/dist-CiVShZKM.js +2 -0
  103. package/dist/assets/{dist-CECF_J8y.js → dist-DIQO2yAn.js} +1 -1
  104. package/dist/assets/{dist-BMOD2Pyh.js → dist-DabFEfar.js} +1 -1
  105. package/dist/assets/dist-f5euh_Pv.js +1 -0
  106. package/dist/assets/{dist-CDUl-YL4.js → dist-ryTWanRP.js} +1 -1
  107. package/dist/assets/{dist-6c4zOh78.js → dist-sg9T7Ulw.js} +1 -1
  108. package/dist/assets/{dist-sPfKr-vH.js → dist-wSuqFvon.js} +1 -1
  109. package/dist/assets/{dockerfile-C2PznFWk.js → dockerfile-kqVBOcIP.js} +1 -1
  110. package/dist/assets/{documentation-panel-e9Fi9R7e.js → documentation-panel-Eu8MIkoU.js} +1 -1
  111. package/dist/assets/download-CQ7iZFJL.js +9 -0
  112. package/dist/assets/{dropdown-menu-BFZLnWeO.js → dropdown-menu-dHmZR8bI.js} +1 -1
  113. package/dist/assets/dtd-DSiK7Qgi.js +1 -0
  114. package/dist/assets/dylan-07d5-7Q9.js +1 -0
  115. package/dist/assets/ecl-CSTUHiwq.js +1 -0
  116. package/dist/assets/{edit-page-7X3HYey7.js → edit-page-Cw7nN6HC.js} +6 -6
  117. package/dist/assets/eiffel-DR99GcsM.js +1 -0
  118. package/dist/assets/elm-Cmh0iW6J.js +1 -0
  119. package/dist/assets/{erDiagram-Q2GNP2WA-BQ8HfnRu.js → erDiagram-Q2GNP2WA-BaY7iomT.js} +1 -1
  120. package/dist/assets/erlang-CS9Yc6UC.js +1 -0
  121. package/dist/assets/{error-banner-B6eIlxzg.js → error-banner-BSxEOIn2.js} +1 -1
  122. package/dist/assets/error-entries-Cr8uVukN.js +8 -0
  123. package/dist/assets/{error-panel-DdsUL6b7.js → error-panel-BZzr0PA1.js} +1 -1
  124. package/dist/assets/{es-1D83cgiu.js → es-gYgfF8y5.js} +1 -1
  125. package/dist/assets/{esm-BL7jQmzn.js → esm-B30N1GS0.js} +1 -1
  126. package/dist/assets/{esm-Cmv0Nuxi.js → esm-DqItXpGT.js} +1 -1
  127. package/dist/assets/{factor-DMrXrOH8.js → factor-D96xahcJ.js} +1 -1
  128. package/dist/assets/factor-DjB27Lcf.js +1 -0
  129. package/dist/assets/{field-BeZbVzXA.js → field-BsxD35VE.js} +1 -1
  130. package/dist/assets/file-explorer-panel-C1W7g_Wp.js +26 -0
  131. package/dist/assets/{file-icons-Cb54mIL8.js → file-icons-BAqZR08W.js} +1 -1
  132. package/dist/assets/{file-name-input-BWFcK1ey.js → file-name-input-0MiZVw5r.js} +1 -1
  133. package/dist/assets/{fileToBase64-C2Yy-YXq.js → fileToBase64-Dgfa7TRQ.js} +1 -1
  134. package/dist/assets/floating-outline-C6g75zrP.js +1 -0
  135. package/dist/assets/{flowDiagram-NV44I4VS-xBOzhlfg.js → flowDiagram-NV44I4VS-C_6PGGE6.js} +1 -1
  136. package/dist/assets/focus-C0HXXg3V.js +1 -0
  137. package/dist/assets/form-C051zAev.js +1 -0
  138. package/dist/assets/{form-B6BkSCJb.js → form-DT44Rmhp.js} +2 -2
  139. package/dist/assets/{formats-ClEFGPy-.js → formats-DzmLpc9A.js} +1 -1
  140. package/dist/assets/{formatting-B_41gSF5.js → formatting-DQX9QUSf.js} +1 -1
  141. package/dist/assets/forth-UwTUu7NY.js +1 -0
  142. package/dist/assets/fortran-cptiB4gJ.js +1 -0
  143. package/dist/assets/{fullscreen-dUjPYOmm.js → fullscreen-CTDqNQr6.js} +1 -1
  144. package/dist/assets/{gallery-page-CWQQAYpa.js → gallery-page-CL1y8LXc.js} +1 -1
  145. package/dist/assets/{ganttDiagram-JELNMOA3-D2O_k-Zg.js → ganttDiagram-JELNMOA3-CJFyE5hs.js} +1 -1
  146. package/dist/assets/gas-ajMbd9Us.js +1 -0
  147. package/dist/assets/gherkin-ClYkalzE.js +1 -0
  148. package/dist/assets/{gitGraph-G5XIXVHT-8HJwNcdU.js → gitGraph-G5XIXVHT-BP96QVP9.js} +1 -1
  149. package/dist/assets/{gitGraphDiagram-V2S2FVAM-Nk4Ll9GY.js → gitGraphDiagram-V2S2FVAM-CGQPWKR8.js} +1 -1
  150. package/dist/assets/{glide-data-editor-lMARFWHS.js → glide-data-editor-Badziq3Y.js} +4 -4
  151. package/dist/assets/groovy-BY-gt7AW.js +1 -0
  152. package/dist/assets/haskell-D1BeJ7SR.js +1 -0
  153. package/dist/assets/haxe-QOq5WFXx.js +1 -0
  154. package/dist/assets/home-page-CJz9IHZ2.js +4 -0
  155. package/dist/assets/{html-to-image-CwmX28T9.js → html-to-image-CfjhKLA4.js} +2 -2
  156. package/dist/assets/idl-3-UcEGx7.js +1 -0
  157. package/dist/assets/index-CrEgp1mR.js +38 -0
  158. package/dist/assets/index-D6Dp_PFj.css +2 -0
  159. package/dist/assets/{info-VBDWY6EO-rfe3WPvd.js → info-VBDWY6EO-B7aeNYNu.js} +1 -1
  160. package/dist/assets/infoDiagram-HS3SLOUP-BT7ISZ3J.js +2 -0
  161. package/dist/assets/{input-CqrUjynb.js → input-JxFwu-3G.js} +1 -1
  162. package/dist/assets/javascript-CorD44JN.js +1 -0
  163. package/dist/assets/{journeyDiagram-XKPGCS4Q-D61FGivn.js → journeyDiagram-XKPGCS4Q-DhyWkFu7.js} +1 -1
  164. package/dist/assets/julia-BYqTtTAl.js +1 -0
  165. package/dist/assets/{kanban-definition-3W4ZIXB7-Bnv0X0Tu.js → kanban-definition-3W4ZIXB7-B2A0FPA_.js} +1 -1
  166. package/dist/assets/katex-BnxSCReZ.js +1 -0
  167. package/dist/assets/kiosk-mode-CWGEgpon.js +1 -0
  168. package/dist/assets/{label-BElwWzf0.js → label-CqjrpwRC.js} +1 -1
  169. package/dist/assets/{layout-CUlZijwG.js → layout-D4bpsgVD.js} +5 -5
  170. package/dist/assets/{line-DNm2phYo.js → line-1dURhxkp.js} +1 -1
  171. package/dist/assets/{linear-CTQqNbVX.js → linear-gmSPLe7o.js} +1 -1
  172. package/dist/assets/{links-CToBjIIj.js → links-CiT7FeSM.js} +1 -1
  173. package/dist/assets/livescript-qYgfNnNE.js +1 -0
  174. package/dist/assets/logs-panel-CsaY3O1m.js +1 -0
  175. package/dist/assets/{loro_wasm_bg-Duqr-kJ2.js → loro_wasm_bg-DWuCVDfB.js} +1 -1
  176. package/dist/assets/lua-BCqCjdfz.js +1 -0
  177. package/dist/assets/{markdown-renderer-QvXG0CRk.js → markdown-renderer-BgqeO4JR.js} +3 -3
  178. package/dist/assets/mathematica-XKwMfn0d.js +1 -0
  179. package/dist/assets/mbox-BnkeOnif.js +1 -0
  180. package/dist/assets/{menu-items-DbSLBfXR.js → menu-items-CCi6aOPm.js} +1 -1
  181. package/dist/assets/{mermaid-4DMBBIKO-CDGmT6YQ.js → mermaid-4DMBBIKO-DxfSuOnE.js} +1 -1
  182. package/dist/assets/{mermaid-Bh0flEIb.js → mermaid-Dfx05w1B.js} +3 -3
  183. package/dist/assets/{mermaid-parser.core-Dz2GMGqQ.js → mermaid-parser.core-OagDSIIt.js} +2 -2
  184. package/dist/assets/{mhchem-CIWniJp4.js → mhchem-Dka9kRKN.js} +1 -1
  185. package/dist/assets/{mindmap-definition-VGOIOE7T-C-YaKmEU.js → mindmap-definition-VGOIOE7T-torqqISZ.js} +1 -1
  186. package/dist/assets/mirc-ipoElhai.js +1 -0
  187. package/dist/assets/mllike-DmouQ5Dp.js +1 -0
  188. package/dist/assets/modelica-BtmmVsUf.js +1 -0
  189. package/dist/assets/mscgen-BHZmHZgz.js +1 -0
  190. package/dist/assets/mumps-oKfoFTl_.js +1 -0
  191. package/dist/assets/{name-cell-input-C6cukQ9k.js → name-cell-input-DcU8Rfrz.js} +1 -1
  192. package/dist/assets/node-sql-parser-Dpr10aqR.js +68 -0
  193. package/dist/assets/nsis-DDOPnuAW.js +1 -0
  194. package/dist/assets/{nsis-Ccvd1gbp.js → nsis-gzbsJ5t0.js} +1 -1
  195. package/dist/assets/ntriples-Dsyl_sOF.js +1 -0
  196. package/dist/assets/{number-overlay-editor-BQ9P6yP7.js → number-overlay-editor-DlQjqV32.js} +1 -1
  197. package/dist/assets/{numbers-CeeaFKqu.js → numbers-rmawRqQP.js} +1 -1
  198. package/dist/assets/octave-CI5RGMPa.js +1 -0
  199. package/dist/assets/{ordinal-DyTNGK17.js → ordinal-W4TcDjiJ.js} +1 -1
  200. package/dist/assets/{outline-panel-BPlg9_CE.js → outline-panel-D-CHPZQM.js} +1 -1
  201. package/dist/assets/oz-D01pKAWx.js +1 -0
  202. package/dist/assets/{packages-panel-BzQF60rG.js → packages-panel-dq7QVZl1.js} +1 -1
  203. package/dist/assets/{packet-DYOGHKS2-DTVloLa7.js → packet-DYOGHKS2-B2FlK_cc.js} +1 -1
  204. package/dist/assets/pair-with-agent-modal-D2vO1D8g.js +4 -0
  205. package/dist/assets/panels-DWoniKhE.js +4 -0
  206. package/dist/assets/pascal-DGXfnIFD.js +1 -0
  207. package/dist/assets/perl-gZ7qIkF-.js +1 -0
  208. package/dist/assets/{pie-VRWISCQL-Bmght6JF.js → pie-VRWISCQL-rtCNhZhm.js} +1 -1
  209. package/dist/assets/{pieDiagram-ADFJNKIX-DlFYL0BN.js → pieDiagram-ADFJNKIX-vSo1I9sb.js} +1 -1
  210. package/dist/assets/pig-Cb90ayl-.js +1 -0
  211. package/dist/assets/{popover-DrHQ3KEt.js → popover-Bcz1Zikb.js} +1 -1
  212. package/dist/assets/powershell-_YxddSL3.js +1 -0
  213. package/dist/assets/process-output-NbwnUu05.js +1 -0
  214. package/dist/assets/properties-sU50dmvt.js +1 -0
  215. package/dist/assets/protobuf-DFdF-yfo.js +1 -0
  216. package/dist/assets/{pug-BtXi5KiX.js → pug-CfBtO6QD.js} +1 -1
  217. package/dist/assets/pug-DwUB-C24.js +1 -0
  218. package/dist/assets/puppet-DtKzwiZ6.js +1 -0
  219. package/dist/assets/python-BMLOKYmk.js +1 -0
  220. package/dist/assets/q-BF1zXMdP.js +1 -0
  221. package/dist/assets/{quadrantDiagram-AYHSOK5B-BpJug2BH.js → quadrantDiagram-AYHSOK5B-DonUSsuk.js} +1 -1
  222. package/dist/assets/r-BQiKhVSI.js +1 -0
  223. package/dist/assets/{radar-ZZBFDIW7-CYwWzRgW.js → radar-ZZBFDIW7-CRVupj1O.js} +1 -1
  224. package/dist/assets/{radio-group-CLBjGkt5.js → radio-group-rhQpGwU-.js} +1 -1
  225. package/dist/assets/{react-vega-TNCk_eWj.js → react-vega-Bd66vLSZ.js} +1 -1
  226. package/dist/assets/{readonly-code-display-D63oRtBP.js → readonly-code-display-CVY2f7EZ.js} +1 -1
  227. package/dist/assets/{readonly-python-code-CW_G5e4E.js → readonly-python-code-Q_1Y3VyZ.js} +1 -1
  228. package/dist/assets/{renderShortcut-BZLr8D7H.js → renderShortcut-Bl8_FVn8.js} +1 -1
  229. package/dist/assets/{requirementDiagram-UZGBJVZJ-Bd-1eny8.js → requirementDiagram-UZGBJVZJ-D8rJ1Dg-.js} +1 -1
  230. package/dist/assets/{reveal-component-BLMTmd8T.js → reveal-component-CedpDwM8.js} +60 -60
  231. package/dist/assets/rpm-v7UTuaHo.js +1 -0
  232. package/dist/assets/ruby-Cw43FpG3.js +1 -0
  233. package/dist/assets/{run-page-B6pgDYEJ.js → run-page-CGoux5cj.js} +1 -1
  234. package/dist/assets/{runs-D51Xwrsk.js → runs-CZN8py6x.js} +1 -1
  235. package/dist/assets/{sankeyDiagram-TZEHDZUN-CDWAE6GV.js → sankeyDiagram-TZEHDZUN-Bufh177s.js} +1 -1
  236. package/dist/assets/sas-BIKscqlp.js +1 -0
  237. package/dist/assets/scheme-CGic3hSV.js +1 -0
  238. package/dist/assets/scratchpad-panel-BLuF25yR.js +1 -0
  239. package/dist/assets/{scroll-to-bottom-button-Cgr10kaJ.js → scroll-to-bottom-button-C8yfT4wq.js} +1 -1
  240. package/dist/assets/{secrets-panel-Cc5KDBk6.js → secrets-panel-4Qy7R-wy.js} +1 -1
  241. package/dist/assets/{select-B5TFNjmU.js → select-BP75_5jJ.js} +1 -1
  242. package/dist/assets/{sequenceDiagram-WL72ISMW-B6hjDGBF.js → sequenceDiagram-WL72ISMW-DOsQdDD2.js} +1 -1
  243. package/dist/assets/{session-CEFnN9Cq.js → session-BmukRjSi.js} +1 -1
  244. package/dist/assets/session-panel-OIot3eyB.js +1 -0
  245. package/dist/assets/{share-CYpcX4N4.js → share-852X_cqy.js} +1 -1
  246. package/dist/assets/shell-DAh545tm.js +1 -0
  247. package/dist/assets/sieve-bGkng63-.js +1 -0
  248. package/dist/assets/{skeleton-D3QPxqWC.js → skeleton-BRvjFlRu.js} +1 -1
  249. package/dist/assets/slides-DkEgzTJB.css +1 -0
  250. package/dist/assets/smalltalk-fIw53lm8.js +1 -0
  251. package/dist/assets/{snippets-panel-CXpGflMO.js → snippets-panel-YFyH2hUM.js} +1 -1
  252. package/dist/assets/sparql-CHbJrAY_.js +1 -0
  253. package/dist/assets/{spec-CzqcmYQk.js → spec-C7opZZRp.js} +1 -1
  254. package/dist/assets/{src-CIOdyciO.js → src-BSYB0gI9.js} +1 -1
  255. package/dist/assets/state-DB_fxbhn.js +3 -0
  256. package/dist/assets/{state-WBgc7MiA.js → state-DDag0B_B.js} +1 -1
  257. package/dist/assets/{state-BvdK8eiw.js → state-DFeun9PF.js} +1 -1
  258. package/dist/assets/{state-DBzEQtWz.js → state-bHyw5u3R.js} +1 -1
  259. package/dist/assets/{stateDiagram-FKZM4ZOC-Bzv6j99z.js → stateDiagram-FKZM4ZOC-z2ks4r_9.js} +1 -1
  260. package/dist/assets/stateDiagram-v2-4FDKWEC3-BApjXiT0.js +1 -0
  261. package/dist/assets/{step-CDlhJj9-.js → step-DIOVHicC.js} +1 -1
  262. package/dist/assets/{strings-Djnbwmfl.js → strings--BknHX9C.js} +1 -1
  263. package/dist/assets/stylus-3Q5WfXqT.js +1 -0
  264. package/dist/assets/swift-MKxc2knl.js +1 -0
  265. package/dist/assets/{swiper-component-DInvCxhI.js → swiper-component-C0ieyDzn.js} +1 -1
  266. package/dist/assets/switch-OVajJBPR.js +1 -0
  267. package/dist/assets/tcl-D3fKhQc_.js +1 -0
  268. package/dist/assets/{terminal-D3IQBBYo.js → terminal-D4sGJYRn.js} +1 -1
  269. package/dist/assets/textarea-DZB2bzVL.js +1 -0
  270. package/dist/assets/textile-Bi_LEJQ3.js +1 -0
  271. package/dist/assets/{time-BuRlxEhE.js → time-NXrJfoDM.js} +1 -1
  272. package/dist/assets/{timeline-definition-IT6M3QCI-DXwdU1og.js → timeline-definition-IT6M3QCI-BRuA290T.js} +1 -1
  273. package/dist/assets/toml-Dt-PBqwt.js +1 -0
  274. package/dist/assets/{tooltip-CFX4fYHU.js → tooltip-4bZlU7jl.js} +1 -1
  275. package/dist/assets/{tooltip-HLb6RxVp.js → tooltip-B7U4xkIN.js} +1 -1
  276. package/dist/assets/{tracing-CKn3gWHw.js → tracing-CDMM1BB2.js} +1 -1
  277. package/dist/assets/{tracing-panel-BU-o_LCd.js → tracing-panel-BH5Zbvl9.js} +2 -2
  278. package/dist/assets/{tree-actions-CsC2XmGo.js → tree-actions-DDveUIHK.js} +1 -1
  279. package/dist/assets/{treemap-GDKQZRPO-4Cm6HMmj.js → treemap-GDKQZRPO-DIzBBPQD.js} +1 -1
  280. package/dist/assets/troff-BSU-rxoD.js +1 -0
  281. package/dist/assets/ttcn-BmLjonVM.js +1 -0
  282. package/dist/assets/ttcn-cfg-TPTcP0Eh.js +1 -0
  283. package/dist/assets/turtle-HafmShQq.js +1 -0
  284. package/dist/assets/{useBoolean-D89u30n-.js → useBoolean-CFj86iac.js} +1 -1
  285. package/dist/assets/useCellActionButton-D5ix_g2a.js +1 -0
  286. package/dist/assets/{useDeleteCell-EPH4kcG7.js → useDeleteCell-BIopCngo.js} +1 -1
  287. package/dist/assets/{useDependencyPanelTab-CZnK7N2L.js → useDependencyPanelTab-snM337f9.js} +1 -1
  288. package/dist/assets/useEventListener-C0195JsF.js +1 -0
  289. package/dist/assets/{useHotkey-DIuRH8Wu.js → useHotkey-DLZvrRZT.js} +1 -1
  290. package/dist/assets/{useIframeCapabilities-Ccb4fvKc.js → useIframeCapabilities-j6fR_dBA.js} +1 -1
  291. package/dist/assets/{useInstallPackage-BRbUAUFn.js → useInstallPackage-WiYBwhUO.js} +1 -1
  292. package/dist/assets/{useInterval-CC0vKpWm.js → useInterval-Be6s6idX.js} +1 -1
  293. package/dist/assets/useNotebookActions-CsZfWFKy.js +12 -0
  294. package/dist/assets/{useRunCells-CSSF_mJ0.js → useRunCells-CF_V8X2K.js} +1 -1
  295. package/dist/assets/{useSplitCell-9Qz93yPZ.js → useSplitCell-BTmKY1CU.js} +1 -1
  296. package/dist/assets/{useTheme-KXqAyDPC.js → useTheme-Bxv9B31g.js} +1 -1
  297. package/dist/assets/{utils-Z80SV4_d.js → utils-BWBBpCkT.js} +1 -1
  298. package/dist/assets/vb-CUif5uGR.js +1 -0
  299. package/dist/assets/vbscript-DWVPFl59.js +1 -0
  300. package/dist/assets/{vega-component-Cie3ag_T.js → vega-component-BYd6AACD.js} +1 -1
  301. package/dist/assets/{vega-embed-container-hDAVOOba.js → vega-embed-container-CRADa99b.js} +1 -1
  302. package/dist/assets/velocity-BJl8UzB4.js +1 -0
  303. package/dist/assets/verilog-B4LUPYXy.js +1 -0
  304. package/dist/assets/vhdl-C91h3ipk.js +1 -0
  305. package/dist/assets/webidl-DOay1zbU.js +1 -0
  306. package/dist/assets/write-secret-modal-D-p66LIx.js +2 -0
  307. package/dist/assets/xquery-Cez7jD_4.js +1 -0
  308. package/dist/assets/{xychartDiagram-PRI3JC2R-Cb0exSKs.js → xychartDiagram-PRI3JC2R-BX6ICxcN.js} +1 -1
  309. package/dist/assets/yacas-CSQEXB_S.js +1 -0
  310. package/dist/assets/z80-CJbYj7Wr.js +1 -0
  311. package/dist/index.html +74 -73
  312. package/package.json +3 -4
  313. package/src/__mocks__/requests.ts +45 -4
  314. package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +174 -21
  315. package/src/components/data-table/__tests__/chart-spec-model.test.ts +102 -1
  316. package/src/components/data-table/column-summary/chart-spec-model.tsx +163 -103
  317. package/src/components/data-table/column-summary/legacy-chart-spec.ts +15 -7
  318. package/src/components/data-table/column-summary/utils.ts +26 -7
  319. package/src/components/data-table/types.ts +1 -1
  320. package/src/components/editor/__tests__/viewer-banner.test.tsx +14 -0
  321. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +99 -18
  322. package/src/components/editor/actions/__tests__/pdf-export.test.ts +32 -13
  323. package/src/components/editor/actions/pair-with-agent-commands.ts +21 -10
  324. package/src/components/editor/actions/pair-with-agent-modal.tsx +2 -2
  325. package/src/components/editor/actions/pdf-export.ts +11 -14
  326. package/src/components/editor/actions/useNotebookActions.tsx +18 -18
  327. package/src/components/editor/cell/code/__tests__/cell-editor-activity-lifecycle.test.ts +250 -0
  328. package/src/components/editor/cell/code/cell-editor.tsx +13 -7
  329. package/src/components/editor/chrome/panels/__tests__/logs-panel.test.tsx +25 -0
  330. package/src/components/editor/chrome/panels/logs-panel.tsx +12 -2
  331. package/src/components/editor/chrome/panels/write-secret-modal.tsx +40 -12
  332. package/src/components/editor/connections/__tests__/json-credentials.test.ts +114 -0
  333. package/src/components/editor/connections/__tests__/paths.test.ts +39 -0
  334. package/src/components/editor/connections/components.tsx +6 -2
  335. package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +21 -5
  336. package/src/components/editor/connections/database/__tests__/as-code.test.ts +17 -0
  337. package/src/components/editor/connections/database/as-code.ts +16 -2
  338. package/src/components/editor/connections/database/schemas.ts +6 -5
  339. package/src/components/editor/connections/form-renderers.tsx +99 -1
  340. package/src/components/editor/connections/json-credentials.ts +57 -0
  341. package/src/components/editor/connections/paths.ts +21 -0
  342. package/src/components/editor/connections/secret-combobox.tsx +41 -20
  343. package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +88 -2
  344. package/src/components/editor/connections/storage/__tests__/as-code.test.ts +128 -8
  345. package/src/components/editor/connections/storage/as-code.ts +79 -36
  346. package/src/components/editor/connections/storage/schemas.ts +85 -44
  347. package/src/components/editor/file-tree/__tests__/renderers.test.ts +31 -0
  348. package/src/components/editor/file-tree/file-viewer.tsx +11 -7
  349. package/src/components/editor/file-tree/renderers.tsx +21 -0
  350. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
  351. package/src/components/editor/viewer-banner.tsx +6 -1
  352. package/src/components/forms/options.ts +2 -1
  353. package/src/components/slides/__tests__/cell-output-block.test.tsx +40 -0
  354. package/src/components/slides/__tests__/slide-cell-view.test.tsx +33 -0
  355. package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +198 -0
  356. package/src/components/slides/reveal-component.tsx +25 -19
  357. package/src/components/slides/slide-cell-view.tsx +1 -1
  358. package/src/components/slides/slide-scroll-hint.tsx +161 -0
  359. package/src/components/slides/slides.css +4 -2
  360. package/src/components/static-html/share-modal.tsx +1 -1
  361. package/src/components/ui/input.tsx +1 -1
  362. package/src/core/ai/context/providers/file.ts +8 -29
  363. package/src/core/cells/__tests__/cells.test.ts +12 -2
  364. package/src/core/cells/__tests__/logs.test.ts +5 -5
  365. package/src/core/cells/cells.ts +17 -4
  366. package/src/core/cells/document-changes.ts +1 -0
  367. package/src/core/cells/logs.ts +14 -4
  368. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +396 -100
  369. package/src/core/codemirror/copilot/__tests__/transport.test.ts +128 -540
  370. package/src/core/codemirror/copilot/language-server.ts +182 -70
  371. package/src/core/codemirror/copilot/transport.ts +15 -207
  372. package/src/core/codemirror/copilot/types.ts +9 -2
  373. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -30
  374. package/src/core/codemirror/find-replace/navigate.ts +2 -0
  375. package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +24 -3
  376. package/src/core/codemirror/go-to-definition/commands.ts +3 -0
  377. package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +31 -2
  378. package/src/core/codemirror/keymaps/keymaps.ts +12 -0
  379. package/src/core/codemirror/language/__tests__/sql.test.ts +443 -61
  380. package/src/core/codemirror/language/languages/python.ts +23 -11
  381. package/src/core/codemirror/language/languages/sql/completion-store.ts +5 -1
  382. package/src/core/codemirror/language/languages/sql/sql.ts +210 -3
  383. package/src/core/codemirror/lsp/__tests__/federated-lsp.test.ts +161 -0
  384. package/src/core/codemirror/lsp/__tests__/log-messages.test.ts +53 -0
  385. package/src/core/codemirror/lsp/__tests__/normalize-markdown-math.test.ts +25 -0
  386. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +598 -156
  387. package/src/core/codemirror/lsp/__tests__/transports.test.ts +112 -0
  388. package/src/core/codemirror/lsp/federated-lsp.ts +76 -23
  389. package/src/core/codemirror/lsp/log-messages.ts +37 -0
  390. package/src/core/codemirror/lsp/normalize-markdown-math.ts +8 -4
  391. package/src/core/codemirror/lsp/notebook-lsp.ts +220 -56
  392. package/src/core/codemirror/lsp/transports.ts +8 -1
  393. package/src/core/codemirror/lsp/types.ts +68 -8
  394. package/src/core/codemirror/lsp/utils.ts +14 -0
  395. package/src/core/codemirror/utils.ts +28 -0
  396. package/src/core/edit-app.tsx +1 -2
  397. package/src/core/export/__tests__/hooks.test.ts +2 -4
  398. package/src/core/export/hooks.ts +4 -3
  399. package/src/core/hotkeys/hotkeys.ts +0 -2
  400. package/src/core/islands/__tests__/bridge.test.ts +107 -0
  401. package/src/core/islands/bridge.ts +16 -0
  402. package/src/core/lsp/__tests__/transport.test.ts +509 -337
  403. package/src/core/lsp/transport.ts +304 -132
  404. package/src/core/mode.ts +10 -0
  405. package/src/core/network/__tests__/api.test.ts +42 -0
  406. package/src/core/network/__tests__/connection.test.ts +45 -0
  407. package/src/core/network/__tests__/requests-lazy.test.ts +32 -1
  408. package/src/core/network/__tests__/requests-network.test.ts +21 -0
  409. package/src/core/network/api.ts +27 -0
  410. package/src/core/network/connection.ts +15 -0
  411. package/src/core/network/requests-lazy.ts +1 -0
  412. package/src/core/network/requests-network.ts +14 -8
  413. package/src/core/network/requests-static.ts +1 -0
  414. package/src/core/network/requests-toasting.tsx +1 -0
  415. package/src/core/network/types.ts +22 -6
  416. package/src/core/rtc/state.ts +9 -0
  417. package/src/core/static/download-html.ts +5 -14
  418. package/src/core/wasm/bridge.ts +4 -2
  419. package/src/core/wasm/worker/types.ts +5 -2
  420. package/src/css/app/codemirror.css +16 -2
  421. package/src/plugins/impl/FormPlugin.tsx +1 -1
  422. package/src/plugins/impl/__tests__/FormPlugin.test.tsx +162 -0
  423. package/src/stories/log-viewer.stories.tsx +12 -6
  424. package/src/utils/__tests__/blob.test.ts +27 -1
  425. package/src/utils/__tests__/download.test.tsx +44 -4
  426. package/src/utils/blob.ts +24 -1
  427. package/src/utils/download.ts +14 -15
  428. package/dist/assets/JsonOutput-CkCD-FgM.js +0 -53
  429. package/dist/assets/LazyAnyLanguageCodeMirror-sVm_hz8A.js +0 -2
  430. package/dist/assets/RenderHTML-BCvU9dYz.js +0 -1
  431. package/dist/assets/add-connection-dialog-B-jCRNTN.js +0 -170
  432. package/dist/assets/ai-model-dropdown-DXgLphFa.js +0 -5
  433. package/dist/assets/apl-DTwRFDps.js +0 -1
  434. package/dist/assets/app-config-button-NrM9ywXA.js +0 -1
  435. package/dist/assets/asciiarmor-CiqkDK0s.js +0 -1
  436. package/dist/assets/asn1-RTvH5MEs.js +0 -1
  437. package/dist/assets/blob-C3EfaMOb.js +0 -1
  438. package/dist/assets/brainfuck-szH_VGzd.js +0 -1
  439. package/dist/assets/cell-link-DqBkyAFe.js +0 -1
  440. package/dist/assets/cells-Cf7bHHq3.js +0 -229
  441. package/dist/assets/channel-D-k8o3T1.js +0 -1
  442. package/dist/assets/chunk-55IACEB6-xhaY4LU6.js +0 -1
  443. package/dist/assets/classDiagram-2ON5EDUG-C-rIg7EQ.js +0 -1
  444. package/dist/assets/classDiagram-v2-WZHVMYZB-MBAsRLae.js +0 -1
  445. package/dist/assets/clojure-CyEbLmch.js +0 -1
  446. package/dist/assets/cmake-Dk8f7QuI.js +0 -1
  447. package/dist/assets/cobol-BJJRqW1D.js +0 -1
  448. package/dist/assets/coffeescript-BDuWJ9WO.js +0 -1
  449. package/dist/assets/commonlisp-CVHm2VSp.js +0 -1
  450. package/dist/assets/components-BH6gDVv6.js +0 -1
  451. package/dist/assets/config-BbOTTCYY.js +0 -1
  452. package/dist/assets/crystal-C2Fgr79A.js +0 -1
  453. package/dist/assets/cypher-CUlCm6vR.js +0 -1
  454. package/dist/assets/d-4ANEHA6q.js +0 -1
  455. package/dist/assets/diff-C-W-5V8L.js +0 -1
  456. package/dist/assets/dist-BCMBu0rO.js +0 -2
  457. package/dist/assets/dist-CCAhuqF-.js +0 -1
  458. package/dist/assets/dist-DGhK0kPE.js +0 -1
  459. package/dist/assets/dist-SVDIDTM2.js +0 -1
  460. package/dist/assets/dist-xSLg7wNV.js +0 -1
  461. package/dist/assets/download-BomYt3nl.js +0 -9
  462. package/dist/assets/dtd-D9h-tL8G.js +0 -1
  463. package/dist/assets/dylan-D3MC56xy.js +0 -1
  464. package/dist/assets/ecl-B6UC4tME.js +0 -1
  465. package/dist/assets/eiffel-CjvEov4k.js +0 -1
  466. package/dist/assets/elm-DvSbvRWe.js +0 -1
  467. package/dist/assets/erlang-DJYaGXyq.js +0 -1
  468. package/dist/assets/error-entries-Birw-8VX.js +0 -8
  469. package/dist/assets/factor-CUQCrkTo.js +0 -1
  470. package/dist/assets/file-explorer-panel-Ntq1-VbF.js +0 -26
  471. package/dist/assets/floating-outline-wz-WSRgP.js +0 -1
  472. package/dist/assets/focus-DiEyfiAG.js +0 -1
  473. package/dist/assets/forth-D9xegiCO.js +0 -1
  474. package/dist/assets/fortran-B0Oe0U8s.js +0 -1
  475. package/dist/assets/gas-jLjj-PIq.js +0 -1
  476. package/dist/assets/gherkin-3Ig8Crit.js +0 -1
  477. package/dist/assets/groovy-NKpNVJ-n.js +0 -1
  478. package/dist/assets/haskell-OPE4bAjk.js +0 -1
  479. package/dist/assets/haxe-DEAZF8L3.js +0 -1
  480. package/dist/assets/home-page-DJ4jJsZj.js +0 -4
  481. package/dist/assets/idl-BM6265Xl.js +0 -1
  482. package/dist/assets/index-A71LAt6h.css +0 -2
  483. package/dist/assets/index-CMZzy-dF.js +0 -38
  484. package/dist/assets/infoDiagram-HS3SLOUP-DQnMjKYJ.js +0 -2
  485. package/dist/assets/javascript-CZ9vDpAy.js +0 -1
  486. package/dist/assets/julia-BrY9TQnt.js +0 -1
  487. package/dist/assets/katex-C-lfa1AM.js +0 -1
  488. package/dist/assets/kiosk-mode-ABm3oYgq.js +0 -1
  489. package/dist/assets/livescript-CNahkUp5.js +0 -1
  490. package/dist/assets/logs-panel-iFV4ZJ9b.js +0 -1
  491. package/dist/assets/lua-Skr4TVu_.js +0 -1
  492. package/dist/assets/mathematica-BXxhrpeY.js +0 -1
  493. package/dist/assets/mbox-BRrQCVe9.js +0 -1
  494. package/dist/assets/mirc-CffYPE4R.js +0 -1
  495. package/dist/assets/mllike-C1DLZhEI.js +0 -1
  496. package/dist/assets/modelica-CvAyRRNV.js +0 -1
  497. package/dist/assets/mscgen-uMZWtMZv.js +0 -1
  498. package/dist/assets/mumps-DFJehEx7.js +0 -1
  499. package/dist/assets/node-sql-parser-BWgUjcfV.js +0 -68
  500. package/dist/assets/nsis-BVI9YULz.js +0 -1
  501. package/dist/assets/ntriples-Bcdh7b2H.js +0 -1
  502. package/dist/assets/octave-CdAKz6YS.js +0 -1
  503. package/dist/assets/oz-DSySeR-W.js +0 -1
  504. package/dist/assets/pair-with-agent-modal-CKOYwOYw.js +0 -4
  505. package/dist/assets/panels-Dj45fW-v.js +0 -4
  506. package/dist/assets/pascal-DefziIUN.js +0 -1
  507. package/dist/assets/perl-BOOloBPk.js +0 -1
  508. package/dist/assets/pig-f0nBb-5x.js +0 -1
  509. package/dist/assets/powershell-DToQjbK9.js +0 -1
  510. package/dist/assets/process-output-BEhIGfkO.js +0 -1
  511. package/dist/assets/properties-BRob-nyj.js +0 -1
  512. package/dist/assets/protobuf-DZyC6051.js +0 -1
  513. package/dist/assets/pug-pVoM8FRt.js +0 -1
  514. package/dist/assets/puppet-9fuYG07F.js +0 -1
  515. package/dist/assets/python-_Mr8fyXP.js +0 -1
  516. package/dist/assets/q-D73s4Y77.js +0 -1
  517. package/dist/assets/r-BOEjz92e.js +0 -1
  518. package/dist/assets/rpm-LpXWTM5t.js +0 -1
  519. package/dist/assets/ruby-DodgSDfF.js +0 -1
  520. package/dist/assets/sas-D9KCtUmL.js +0 -1
  521. package/dist/assets/scheme-p8UJxmJw.js +0 -1
  522. package/dist/assets/scratchpad-panel-B0mEqBNk.js +0 -1
  523. package/dist/assets/session-panel-Y0Oon0sD.js +0 -1
  524. package/dist/assets/shell-BWdqyqwL.js +0 -1
  525. package/dist/assets/sieve-CLwJmtiQ.js +0 -1
  526. package/dist/assets/slides-MCbMDtlY.css +0 -1
  527. package/dist/assets/smalltalk-D3KV-Qah.js +0 -1
  528. package/dist/assets/sparql-D9Jz2mBw.js +0 -1
  529. package/dist/assets/state-BZQc7xxL.js +0 -3
  530. package/dist/assets/stateDiagram-v2-4FDKWEC3-CA1l0rNa.js +0 -1
  531. package/dist/assets/stylus-ClN4l_XO.js +0 -1
  532. package/dist/assets/swift-Dvd_9xBv.js +0 -1
  533. package/dist/assets/switch-CvweaCXq.js +0 -1
  534. package/dist/assets/tcl-DR2p8cyi.js +0 -1
  535. package/dist/assets/textarea-CpFfEUet.js +0 -1
  536. package/dist/assets/textile-D6S27_J2.js +0 -1
  537. package/dist/assets/toml-B-YuQ2Id.js +0 -1
  538. package/dist/assets/troff-HSk8AoRF.js +0 -1
  539. package/dist/assets/ttcn-CehzlVdx.js +0 -1
  540. package/dist/assets/ttcn-cfg-CLEPwk1s.js +0 -1
  541. package/dist/assets/turtle-DQLHkbOu.js +0 -1
  542. package/dist/assets/useCellActionButton-CRfIEVB5.js +0 -1
  543. package/dist/assets/useEventListener-B_w3A283.js +0 -1
  544. package/dist/assets/useNotebookActions-DTXAoukG.js +0 -12
  545. package/dist/assets/vb-o1EHrS4z.js +0 -1
  546. package/dist/assets/vbscript-BS8yUFpf.js +0 -1
  547. package/dist/assets/velocity-u_oGPFaA.js +0 -1
  548. package/dist/assets/verilog-CSmDH7su.js +0 -1
  549. package/dist/assets/vhdl-BCaWLcjw.js +0 -1
  550. package/dist/assets/webidl-Bf6dokXM.js +0 -1
  551. package/dist/assets/write-secret-modal-DEEn7sZV.js +0 -1
  552. package/dist/assets/xquery-Di0kkiXg.js +0 -1
  553. package/dist/assets/yacas-DB8tPtyp.js +0 -1
  554. package/dist/assets/z80-DFUvlWxk.js +0 -1
  555. /package/dist/assets/{ImageComparisonComponent-Cz3xVDLH.js → ImageComparisonComponent-HnxpPJnM.js} +0 -0
  556. /package/dist/assets/{Inputs-B8-VCb_j.js → Inputs-BhvqLBkk.js} +0 -0
  557. /package/dist/assets/{Plot-X2G47XHf.js → Plot-Df7XX6zz.js} +0 -0
  558. /package/dist/assets/{apl-DVqFAlEd.js → apl-CPlG1HX3.js} +0 -0
  559. /package/dist/assets/{array-Ddg9CgJT.js → array-DkMvCrqF.js} +0 -0
  560. /package/dist/assets/{asciiarmor-B45BhOLj.js → asciiarmor-DV_pcocJ.js} +0 -0
  561. /package/dist/assets/{asn1-C4T2ctU6.js → asn1-DPxWcGvG.js} +0 -0
  562. /package/dist/assets/{asterisk-9U_4Kgke.js → asterisk-Di-nanOd.js} +0 -0
  563. /package/dist/assets/{azure-nN8APleF.js → azure-BjL5s4-w.js} +0 -0
  564. /package/dist/assets/{brainfuck-kVh8Eud4.js → brainfuck-CGDdBVNO.js} +0 -0
  565. /package/dist/assets/{card-VUBaYDpT.js → card-DIbLM4TA.js} +0 -0
  566. /package/dist/assets/{chunk-4F5CHEZ2-ClSh5rxG.js → chunk-4F5CHEZ2-yOSqdjGN.js} +0 -0
  567. /package/dist/assets/{chunk-B2363JML-cit0ouFv.js → chunk-B2363JML-BqlxcdFI.js} +0 -0
  568. /package/dist/assets/{chunk-DR5Q36YT-Bsu9Glc0.js → chunk-DR5Q36YT-9bsCT1tL.js} +0 -0
  569. /package/dist/assets/{chunk-FRFDVMJY--Re1QfFE.js → chunk-FRFDVMJY-DW58IWII.js} +0 -0
  570. /package/dist/assets/{chunk-PL6DKKU2-CAwRAr-p.js → chunk-PL6DKKU2-CiPkyomE.js} +0 -0
  571. /package/dist/assets/{chunk-SJTYNZTY-G1spWesO.js → chunk-SJTYNZTY-UJLIXgY2.js} +0 -0
  572. /package/dist/assets/{chunk-TQ3KTPDO-DBwra5xv.js → chunk-TQ3KTPDO-DQFcRP5c.js} +0 -0
  573. /package/dist/assets/{chunk-UMXZTB3W-A5RvYDPE.js → chunk-UMXZTB3W-cibob28z.js} +0 -0
  574. /package/dist/assets/{clear-button-DQtvx6eq.js → clear-button-Bsxh4lx1.js} +0 -0
  575. /package/dist/assets/{click-outside-container-CrWZsAF5.js → click-outside-container-LfSB2_ne.js} +0 -0
  576. /package/dist/assets/{clike-O0gwXilc.js → clike-D91DrsBh.js} +0 -0
  577. /package/dist/assets/{clojure-CsbMWxp9.js → clojure-B0eb_-2q.js} +0 -0
  578. /package/dist/assets/{cmake-FpJvOdyj.js → cmake-COzUvjiS.js} +0 -0
  579. /package/dist/assets/{cobol-Duxbpsru.js → cobol-DW4FSnmb.js} +0 -0
  580. /package/dist/assets/{coffeescript-D-Unz9IP.js → coffeescript-CommR2mv.js} +0 -0
  581. /package/dist/assets/{colors-C_0lIznd.js → colors-CyQT5OPu.js} +0 -0
  582. /package/dist/assets/{common-keywords-PqH2GDfH.js → common-keywords-Bk-0jOKl.js} +0 -0
  583. /package/dist/assets/{commonlisp-_nR12oc7.js → commonlisp-FR_N9RJL.js} +0 -0
  584. /package/dist/assets/{crystal-dj3W4b1A.js → crystal-CAN7bz25.js} +0 -0
  585. /package/dist/assets/{css-0BG6A_BC.js → css-DmLg8a0m.js} +0 -0
  586. /package/dist/assets/{cypher-CKPokaoH.js → cypher-BzSJn05x.js} +0 -0
  587. /package/dist/assets/{cytoscape.esm-DzUNSF80.js → cytoscape.esm-CVhOSlMZ.js} +0 -0
  588. /package/dist/assets/{d-BrbqzVa2.js → d-UpmnByGo.js} +0 -0
  589. /package/dist/assets/{diff-BmdR9FsO.js → diff-DRpitNo9.js} +0 -0
  590. /package/dist/assets/{dist-CM-lWxt3.js → dist-1DJkf78n.js} +0 -0
  591. /package/dist/assets/{dist-ByK00N0T.js → dist-6KRysbQA.js} +0 -0
  592. /package/dist/assets/{dist-98K4fusX.js → dist-8H9kNP92.js} +0 -0
  593. /package/dist/assets/{dist-OgwOt8T2.js → dist-8lZYHUSx.js} +0 -0
  594. /package/dist/assets/{dist-DNGKAtWk.js → dist-B4sFEC9P.js} +0 -0
  595. /package/dist/assets/{dist-BaKJ0-Tb.js → dist-B5BlmbY-.js} +0 -0
  596. /package/dist/assets/{dist-CpbbK4-I.js → dist-BDUj3vkc.js} +0 -0
  597. /package/dist/assets/{dist-3N7-WLqi.js → dist-C13NfWpP.js} +0 -0
  598. /package/dist/assets/{dist-DokId-qM.js → dist-C3XTRycV.js} +0 -0
  599. /package/dist/assets/{dist-56ul6-mm.js → dist-C6uSSUmH.js} +0 -0
  600. /package/dist/assets/{dist-D5ToCtv8.js → dist-CDFlR-dv.js} +0 -0
  601. /package/dist/assets/{dist-DzAAhYcW.js → dist-CaADT3TK.js} +0 -0
  602. /package/dist/assets/{dist-B8g3pNYJ.js → dist-CbTMGxEf.js} +0 -0
  603. /package/dist/assets/{dist-O5-NiN3f.js → dist-CjpCHqUI.js} +0 -0
  604. /package/dist/assets/{dist-D9sE1udr.js → dist-D0BTeZL0.js} +0 -0
  605. /package/dist/assets/{dist-DrtRBAn8.js → dist-DE4Vb9tO.js} +0 -0
  606. /package/dist/assets/{dist-D35OyUMQ.js → dist-DYsXEge_.js} +0 -0
  607. /package/dist/assets/{dist-C5kf6g-d.js → dist-lCLEUACp.js} +0 -0
  608. /package/dist/assets/{dtd-DbCXDVgi.js → dtd-CQV9N2ok.js} +0 -0
  609. /package/dist/assets/{duckdb-keywords-mPlR0SxW.js → duckdb-keywords-CqO5LWsh.js} +0 -0
  610. /package/dist/assets/{dylan-CLLzL2Js.js → dylan-Bp98yT5y.js} +0 -0
  611. /package/dist/assets/{ebnf-Cnws41cu.js → ebnf-DoGvzVmX.js} +0 -0
  612. /package/dist/assets/{ecl-BC7x2nzk.js → ecl-BgtQ3zu5.js} +0 -0
  613. /package/dist/assets/{eiffel-CDU836rz.js → eiffel-Cu14O7Gi.js} +0 -0
  614. /package/dist/assets/{elm-D-_bXARs.js → elm-Dp1dn40k.js} +0 -0
  615. /package/dist/assets/{empty-state-CqJvEFRk.js → empty-state-yX2_pzkH.js} +0 -0
  616. /package/dist/assets/{erlang-CwDZk2zM.js → erlang-DdogJjdp.js} +0 -0
  617. /package/dist/assets/{esm-D6WfbcL3.js → esm-DZILy413.js} +0 -0
  618. /package/dist/assets/{fcl-CwkPc-_9.js → fcl-CTs4ROWI.js} +0 -0
  619. /package/dist/assets/{forth-D6FsO_8x.js → forth-Dd0r86IP.js} +0 -0
  620. /package/dist/assets/{fortran-D4BMbIkG.js → fortran-4qvtlW4z.js} +0 -0
  621. /package/dist/assets/{gas-JFjzcgdY.js → gas-DqwqZHXy.js} +0 -0
  622. /package/dist/assets/{gherkin-Cyu-qGaF.js → gherkin-DMxJEDh5.js} +0 -0
  623. /package/dist/assets/{github-_JH-0hIO.js → github-kTVN-x1m.js} +0 -0
  624. /package/dist/assets/{groovy-CZaE9eN-.js → groovy-DA_MxBua.js} +0 -0
  625. /package/dist/assets/{haskell-Dc6o0IGr.js → haskell-B_hi8VEK.js} +0 -0
  626. /package/dist/assets/{haxe-Bsf0tzqs.js → haxe-D-I6YeRN.js} +0 -0
  627. /package/dist/assets/{http-BQNSD-HR.js → http-Ci3E2pzn.js} +0 -0
  628. /package/dist/assets/{idl-1W91kQ8_.js → idl-CteRrHSs.js} +0 -0
  629. /package/dist/assets/{init-nx27Zb9l.js → init-CYoUL2Ak.js} +0 -0
  630. /package/dist/assets/{javascript-BZ81-2rO.js → javascript-Cq9DsvSW.js} +0 -0
  631. /package/dist/assets/{julia-BZOsq0r_.js → julia-bHGj6eLp.js} +0 -0
  632. /package/dist/assets/{katex-CvZ3kCGk.js → katex-BKFLE8En.js} +0 -0
  633. /package/dist/assets/{livescript-CNZfmikk.js → livescript-C72YlTeO.js} +0 -0
  634. /package/dist/assets/{loro_wasm_bg-RNUly1SE.js → loro_wasm_bg-aCH66ryB.js} +0 -0
  635. /package/dist/assets/{lua-DXGRliwd.js → lua-DAtJrHXr.js} +0 -0
  636. /package/dist/assets/{marimo-icons-C_nFooxr.js → marimo-icons-Bq_N9GGs.js} +0 -0
  637. /package/dist/assets/{math-CLO4uoaP.js → math-D6WZfqI3.js} +0 -0
  638. /package/dist/assets/{mathematica-BoUj8M7D.js → mathematica-DGp7b8Lx.js} +0 -0
  639. /package/dist/assets/{mbox-DLVP8LAe.js → mbox-C35KjfEV.js} +0 -0
  640. /package/dist/assets/{mirc-kI4d5fMu.js → mirc-BRCHEPv1.js} +0 -0
  641. /package/dist/assets/{mllike-CD9vBc_2.js → mllike-D7ajla-U.js} +0 -0
  642. /package/dist/assets/{modelica-DgfsLJuF.js → modelica-0RGVL4ie.js} +0 -0
  643. /package/dist/assets/{mscgen-B1HDwshJ.js → mscgen-C7Ohs4Tl.js} +0 -0
  644. /package/dist/assets/{multi-icon-nrKPWjDU.js → multi-icon-C2ijLyOs.js} +0 -0
  645. /package/dist/assets/{mumps-D_-b9TZD.js → mumps-Cgag5Xef.js} +0 -0
  646. /package/dist/assets/{nginx-Cm282mo8.js → nginx-k5GTB7o1.js} +0 -0
  647. /package/dist/assets/{ntriples-COX9JFZ8.js → ntriples-oQv5c69K.js} +0 -0
  648. /package/dist/assets/{octave-BejycR79.js → octave-BMTXs4lo.js} +0 -0
  649. /package/dist/assets/{oz-CFFivrGn.js → oz-CuHYwo8r.js} +0 -0
  650. /package/dist/assets/{panel-context-CH75ubGG.js → panel-context-CmeYEpWr.js} +0 -0
  651. /package/dist/assets/{pascal-B_p9jkCs.js → pascal-eFKoVV2p.js} +0 -0
  652. /package/dist/assets/{path-Bz_hIzg5.js → path-BcLO3NWe.js} +0 -0
  653. /package/dist/assets/{pathUtils-Bfcp5m-a.js → pathUtils-BbJtW9Mp.js} +0 -0
  654. /package/dist/assets/{perl-C-SFBTly.js → perl-B1OqOW8w.js} +0 -0
  655. /package/dist/assets/{pig-BhxDMp2k.js → pig-gIrBDx27.js} +0 -0
  656. /package/dist/assets/{powershell-c59M-9N2.js → powershell-3fQF2XND.js} +0 -0
  657. /package/dist/assets/{properties-D1JNwCKy.js → properties-D4HHpZmU.js} +0 -0
  658. /package/dist/assets/{protobuf-DQS7ex8R.js → protobuf-DFSTKR0L.js} +0 -0
  659. /package/dist/assets/{puppet-DaQvhvew.js → puppet-BAISgXk9.js} +0 -0
  660. /package/dist/assets/{python-XHl3eRTS.js → python-mPctBCbA.js} +0 -0
  661. /package/dist/assets/{q-DppnoRE3.js → q-CYeV5Dbb.js} +0 -0
  662. /package/dist/assets/{r-D8-F_FWj.js → r-Ds4UrjIV.js} +0 -0
  663. /package/dist/assets/{request-registry-DHocQ_4I.js → request-registry-CEkYnwgr.js} +0 -0
  664. /package/dist/assets/{requests-DYeT4CEe.js → requests-CIR84T8A.js} +0 -0
  665. /package/dist/assets/{rpm-CegJhNNO.js → rpm-DV5-r6dM.js} +0 -0
  666. /package/dist/assets/{ruby-YMIxufV1.js → ruby-B9qrycrI.js} +0 -0
  667. /package/dist/assets/{sas-wTtX9UIQ.js → sas-Cd7L1ZOe.js} +0 -0
  668. /package/dist/assets/{scheme-BGenom3k.js → scheme-L6Kva-Kc.js} +0 -0
  669. /package/dist/assets/{semaphore-DtBYRzWS.js → semaphore-YOr3WMiw.js} +0 -0
  670. /package/dist/assets/{shell-Bu1sLaiP.js → shell-Ck42V1Kn.js} +0 -0
  671. /package/dist/assets/{sieve-ffe6rUQh.js → sieve-DfSJcUfS.js} +0 -0
  672. /package/dist/assets/{simple-mode-DBSzUJLA.js → simple-mode-CfoR0Lvg.js} +0 -0
  673. /package/dist/assets/{smalltalk-NU5EGjHp.js → smalltalk-CT418Iph.js} +0 -0
  674. /package/dist/assets/{solr-ptw1yIqO.js → solr-DfAVBX8L.js} +0 -0
  675. /package/dist/assets/{sparql-uqVktnwO.js → sparql-BlJ_cLEt.js} +0 -0
  676. /package/dist/assets/{spreadsheet-VEzeu_mb.js → spreadsheet-Qy1VjLDU.js} +0 -0
  677. /package/dist/assets/{sql-tYjnWETe.js → sql-BAkD7JGK.js} +0 -0
  678. /package/dist/assets/{src-BshXgZd4.js → src-Dlf0iGaF.js} +0 -0
  679. /package/dist/assets/{stylus-B2E6Ulaz.js → stylus-92qIiGm1.js} +0 -0
  680. /package/dist/assets/{swift-Rmnn7ATv.js → swift-gZzicbJu.js} +0 -0
  681. /package/dist/assets/{tcl-ZPWCn2nn.js → tcl-CtgoBYkk.js} +0 -0
  682. /package/dist/assets/{textile-uhA33kFk.js → textile-Du3RzJ2D.js} +0 -0
  683. /package/dist/assets/{tiddlywiki-CPkGLyXH.js → tiddlywiki-CL3W3RpP.js} +0 -0
  684. /package/dist/assets/{tiki-BtjLo8OF.js → tiki-2L3jCwab.js} +0 -0
  685. /package/dist/assets/{timer-VYMLXPue.js → timer-DLLzXmjF.js} +0 -0
  686. /package/dist/assets/{toml-BFZv2Mv7.js → toml-HcF44TVB.js} +0 -0
  687. /package/dist/assets/{treemap-Bca0xNNq.js → treemap-BdaAyoGw.js} +0 -0
  688. /package/dist/assets/{troff-B5eayHop.js → troff-xbwT4huN.js} +0 -0
  689. /package/dist/assets/{ttcn-cfg-CfbkL3Q_.js → ttcn-cfg-jWDg1i50.js} +0 -0
  690. /package/dist/assets/{ttcn-BM0Yp8NY.js → ttcn-phKysj_0.js} +0 -0
  691. /package/dist/assets/{turtle-DvetLxrv.js → turtle-CPC48wcy.js} +0 -0
  692. /package/dist/assets/{types-Da7lA5YC.js → types-C7hjolXC.js} +0 -0
  693. /package/dist/assets/{use-vega-container-remeasure-CbKTb_jy.js → use-vega-container-remeasure-0GBen_rR.js} +0 -0
  694. /package/dist/assets/{vb-i5Z8scch.js → vb-BTubZ2rB.js} +0 -0
  695. /package/dist/assets/{vbscript-BiPYgIyi.js → vbscript-B52mDFWM.js} +0 -0
  696. /package/dist/assets/{velocity-Dw3R3YoX.js → velocity-BO3M1iFD.js} +0 -0
  697. /package/dist/assets/{verilog-B8FhJcX6.js → verilog-CBz90JJu.js} +0 -0
  698. /package/dist/assets/{vhdl-BqPEoXdJ.js → vhdl-CeQ1lGlV.js} +0 -0
  699. /package/dist/assets/{web-vitals-CwE0GGzl.js → web-vitals-Q0-_CtWm.js} +0 -0
  700. /package/dist/assets/{webidl-mMO-qW5Q.js → webidl-CRtF5pmu.js} +0 -0
  701. /package/dist/assets/{ws-BmTnbVEi.js → ws-CNqquaud.js} +0 -0
  702. /package/dist/assets/{xquery-DvqNwq7L.js → xquery-CFnbrHav.js} +0 -0
  703. /package/dist/assets/{yacas-Dku9Z6Kf.js → yacas-KIC_JO6M.js} +0 -0
  704. /package/dist/assets/{z80-DvazU5Tr.js → z80-kGpw5_me.js} +0 -0
@@ -1,14 +1,14 @@
1
- var Pl=Object.defineProperty;var Il=(Le,ke,C)=>ke in Le?Pl(Le,ke,{enumerable:!0,configurable:!0,writable:!0,value:C}):Le[ke]=C;var I=(Le,ke,C)=>Il(Le,typeof ke!="symbol"?ke+"":ke,C);import{s as fn}from"./chunk-LvLJmgfZ.js";import{n as be,u as Ri}from"./useEvent-D91BmmQi.js";import{t as Ml}from"./react-Bj1aDYRI.js";import{E as Nl,ai as zl,ft as Ht,oi as $l,st as Bl,ui as Hl,__tla as Dl}from"./cells-Cf7bHHq3.js";import"./react-dom-CSu739Rf.js";import{t as Ai}from"./compiler-runtime-B3qBwwSJ.js";import{g as _l,t as ql}from"./useEventListener-B_w3A283.js";import{T as vn,c as jl,t as Ol}from"./utils-Z80SV4_d.js";import{v as Fl}from"./config-BbOTTCYY.js";import{t as Vl}from"./readonly-python-code-CW_G5e4E.js";import{t as Dt}from"./cn-DYvqRARy.js";import{t as Ul}from"./jsx-runtime-Blw4afVn.js";import{n as Wl}from"./fullscreen-dUjPYOmm.js";import"./popover-DrHQ3KEt.js";import{It as Kl,__tla as Zl}from"./JsonOutput-CkCD-FgM.js";import"./download-BomYt3nl.js";import{t as bn}from"./tooltip-CFX4fYHU.js";import{r as Ti,t as kn}from"./button-eIihcbUw.js";import"./dist-12S8I4CH.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{t as Ql}from"./createLucideIcon-w-Qo9n0R.js";import{_ as _t,d as Xl,g as Gl,l as Yl,__tla as Jl}from"./layout-CUlZijwG.js";import{__tla as eo}from"./markdown-renderer-QvXG0CRk.js";import{t as to}from"./code-B2aKtXoe.js";import{t as io}from"./eye-off-BOZA7gbn.js";import{n as so,t as no,__tla as ro}from"./cell-editor-B5JVq7_q.js";import{n as ao,t as lo}from"./RunButton-BKRupqr7.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import"./session-CEFnN9Cq.js";import{r as oo}from"./useTheme-KXqAyDPC.js";import"./purify.es-CWmnYhGI.js";import"./dates-D-kIKDYA.js";import{t as co}from"./CellStatus-BalYv0pK.js";import{n as uo}from"./useDebounce-JDKr83KO.js";import{i as ho}from"./useRunCells-CSSF_mJ0.js";import"./tooltip-HLb6RxVp.js";import"./vega-loader.browser-Dun7Qe4B.js";import"./defaultLocale-DOVIEEPN.js";import"./defaultLocale-BUCH2FMc.js";import{__tla as po}from"./chunk-5FQGJX7Z-Cp0LZT-a.js";import{r as go}from"./html-to-image-CwmX28T9.js";import{n as mo,r as fo,t as yn}from"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import"./esm-BL7jQmzn.js";import"./name-cell-input-C6cukQ9k.js";import"./multi-icon-nrKPWjDU.js";import{__tla as vo}from"./loro_wasm_bg-RNUly1SE.js";import"./ws-BmTnbVEi.js";import"./Inputs-B8-VCb_j.js";import"./dist-D5ToCtv8.js";import"./dist-D35OyUMQ.js";import"./dist-ByK00N0T.js";import"./dist-C5kf6g-d.js";import"./dist-BaKJ0-Tb.js";import"./dist-DNGKAtWk.js";import"./dist-56ul6-mm.js";import"./dist-3N7-WLqi.js";import"./dist-CM-lWxt3.js";import"./esm-Cmv0Nuxi.js";import{t as bo}from"./readonly-code-display-D63oRtBP.js";let Ci,wn,qt,Li,Pi,ko=Promise.all([(()=>{try{return Dl}catch{}})(),(()=>{try{return Zl}catch{}})(),(()=>{try{return Jl}catch{}})(),(()=>{try{return eo}catch{}})(),(()=>{try{return ro}catch{}})(),(()=>{try{return po}catch{}})(),(()=>{try{return vo}catch{}})()]).then(async()=>{var wt,xt;var Le=Ql("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]),ke=Ai(),C=fn(Ml(),1),xn=Object.defineProperty,Sn=Object.defineProperties,En=Object.getOwnPropertyDescriptors,$i=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,jt=(t,e,i)=>e in t?xn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ye=(t,e)=>{for(var i in e||(e={}))Rn.call(e,i)&&jt(t,i,e[i]);if($i)for(var i of $i(e))An.call(e,i)&&jt(t,i,e[i]);return t},Bi=(t,e)=>Sn(t,En(e)),Hi=(t,e,i)=>jt(t,typeof e=="symbol"?e:e+"",i),Tn=(t,e,i)=>new Promise((s,n)=>{var r=c=>{try{a(i.next(c))}catch(o){n(o)}},l=c=>{try{a(i.throw(c))}catch(o){n(o)}},a=c=>c.done?s(c.value):Promise.resolve(c.value).then(r,l);a((i=i.apply(t,e)).next())}),_e=(t,e)=>{for(let i in e)t[i]=e[i];return t},L=(t,e)=>Array.from(t.querySelectorAll(e)),Ot=(t,e,i)=>{i?t.classList.add(e):t.classList.remove(e)},qe=t=>{if(typeof t=="string"){if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t.match(/^-?[\d\.]+$/))return parseFloat(t)}return t},Ee=(t,e)=>{t.style.transform=e},lt=(t,e)=>{let i=t.matches||t.matchesSelector||t.msMatchesSelector;return!!(i&&i.call(t,e))},ee=(t,e)=>{if(t&&typeof t.closest=="function")return t.closest(e);for(;t;){if(lt(t,e))return t;t=t.parentElement}return null},Di=t=>{t||(t=document.documentElement);let e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;e&&e.apply(t)},Cn=(t,e,i,s="")=>{let n=t.querySelectorAll("."+i);for(let l=0;l<n.length;l++){let a=n[l];if(a.parentNode===t)return a}let r=document.createElement(e);return r.className=i,r.innerHTML=s,t.appendChild(r),r},Ft=t=>{let e=document.createElement("style");return t&&t.length>0&&e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e},_i=()=>{let t={};for(let e in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),n=i.split("=").pop();return s&&n!==void 0&&(t[s]=n),i}),t){let i=t[e];t[e]=qe(unescape(i))}return t.dependencies!==void 0&&delete t.dependencies,t},Ln=(t,e=0)=>{var i;if(t){let s,n=t.style.height;return t.style.height="0px",t.parentElement&&(t.parentElement.style.height="auto"),s=e-(((i=t.parentElement)==null?void 0:i.offsetHeight)||0),t.style.height=n+"px",t.parentElement&&t.parentElement.style.removeProperty("height"),s}return e},Pn={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},In=(t="")=>{let e=t.split(".").pop();return e?Pn[e]:void 0},Mn=(t="")=>encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),qi=navigator.userAgent,Pe=/(iphone|ipod|ipad|android)/gi.test(qi)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,ji=/android/gi.test(qi),Nn=(function(t){if(t){var e=function(v){return[].slice.call(v)},i=0,s=1,n=2,r=3,l=[],a=null,c="requestAnimationFrame"in t?function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};t.cancelAnimationFrame(a);var R=function(){return u(l.filter((function(z){return z.dirty&&z.active})))};if(v.sync)return R();a=t.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(z){return z.dirty=v})),c(R)}},u=function(v){v.filter((function(z){return!z.styleComputed})).forEach((function(z){z.styleComputed=d(z)})),v.filter(b).forEach(k);var R=v.filter(p);R.forEach(g),R.forEach((function(z){k(z),h(z)})),R.forEach(P)},h=function(v){return v.dirty=i},g=function(v){v.availableWidth=v.element.parentNode.clientWidth,v.currentWidth=v.element.scrollWidth,v.previousFontSize=v.currentFontSize,v.currentFontSize=Math.min(Math.max(v.minSize,v.availableWidth/v.currentWidth*v.previousFontSize),v.maxSize),v.whiteSpace=v.multiLine&&v.currentFontSize===v.minSize?"normal":"nowrap"},p=function(v){return v.dirty!==n||v.dirty===n&&v.element.parentNode.clientWidth!==v.availableWidth},d=function(v){var R=t.getComputedStyle(v.element,null);return v.currentFontSize=parseFloat(R.getPropertyValue("font-size")),v.display=R.getPropertyValue("display"),v.whiteSpace=R.getPropertyValue("white-space"),!0},b=function(v){var R=!1;return!v.preStyleTestCompleted&&(/inline-/.test(v.display)||(R=!0,v.display="inline-block"),v.whiteSpace!=="nowrap"&&(R=!0,v.whiteSpace="nowrap"),v.preStyleTestCompleted=!0,R)},k=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},P=function(v){v.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:v.previousFontSize,newValue:v.currentFontSize,scaleFactor:v.currentFontSize/v.previousFontSize}}))},H=function(v,R){return function(z){v.dirty=R,v.active&&c(z)}},M=function(v){return function(){l=l.filter((function(R){return R.element!==v.element})),v.observeMutations&&v.observer.disconnect(),v.element.style.whiteSpace=v.originalStyle.whiteSpace,v.element.style.display=v.originalStyle.display,v.element.style.fontSize=v.originalStyle.fontSize}},A=function(v){return function(){v.active||(v.active=!0,c())}},S=function(v){return function(){return v.active=!1}},$=function(v){v.observeMutations&&(v.observer=new MutationObserver(H(v,s)),v.observer.observe(v.element,v.observeMutations))},T={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in t&&{subtree:!0,childList:!0,characterData:!0}},_=null,O=function(){t.clearTimeout(_),_=t.setTimeout(o(n),B.observeWindowDelay)},N=["resize","orientationchange"];return Object.defineProperty(B,"observeWindow",{set:function(v){var R=`${v?"add":"remove"}EventListener`;N.forEach((function(z){t[R](z,O)}))}}),B.observeWindow=!0,B.observeWindowDelay=100,B.fitAll=o(r),B}function Y(v,R){var z=Object.assign({},T,R),Z=v.map((function(te){var se=Object.assign({},z,{element:te,active:!0});return(function(Q){Q.originalStyle={whiteSpace:Q.element.style.whiteSpace,display:Q.element.style.display,fontSize:Q.element.style.fontSize},$(Q),Q.newbie=!0,Q.dirty=!0,l.push(Q)})(se),{element:te,fit:H(se,r),unfreeze:A(se),freeze:S(se),unsubscribe:M(se)}}));return c(),Z}function B(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?Y(e(document.querySelectorAll(v)),R):Y([v],R)[0]}})(typeof window>"u"?null:window),zn=class{constructor(t){Hi(this,"allowedToPlayAudio",null),this.Reveal=t,this.startEmbeddedMedia=this.startEmbeddedMedia.bind(this),this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this),this.preventIframeAutoFocus=this.preventIframeAutoFocus.bind(this),this.ensureMobileMediaPlaying=this.ensureMobileMediaPlaying.bind(this),this.failedAudioPlaybackTargets=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{this.startEmbeddedMedia({target:t})}),this.clearMediaPlaybackErrors()})}shouldPreload(t){if(this.Reveal.isScrollView())return!0;let e=this.Reveal.getConfig().preloadIframes;return typeof e!="boolean"&&(e=t.hasAttribute("data-preload")),e}load(t,e={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let n=i.replace(/\s*!important\s*$/,"").trim();t.style.setProperty("display",n,"important")}else t.style.display=i;L(t,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(n=>{let r=n.tagName==="IFRAME";(!r||this.shouldPreload(n))&&(n.setAttribute("src",n.getAttribute("data-src")),n.setAttribute("data-lazy-loaded",""),n.removeAttribute("data-src"),r&&n.addEventListener("load",this.preventIframeAutoFocus))}),L(t,"video, audio").forEach(n=>{let r=0;L(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),r+=1}),Pe&&n.tagName==="VIDEO"&&n.setAttribute("playsinline",""),r>0&&n.load()});let s=t.slideBackgroundElement;if(s){s.style.display="block";let n=t.slideBackgroundContentElement,r=t.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let a=t.getAttribute("data-background-image"),c=t.getAttribute("data-background-video"),o=t.hasAttribute("data-background-video-loop"),u=t.hasAttribute("data-background-video-muted");if(a)/^data:/.test(a.trim())?n.style.backgroundImage=`url(${a.trim()})`:n.style.backgroundImage=a.split(",").map(h=>`url(${Mn(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(u||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Pe&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let d=In(g);d&&p.setAttribute("type",d),h.appendChild(p)}),n.appendChild(h)}else if(r&&e.excludeIframes!==!0){let h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",n.appendChild(h)}}let l=n.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(r)&&l.getAttribute("src")!==r&&l.setAttribute("src",r)}this.layout(t)}layout(t){Array.from(t.querySelectorAll(".r-fit-text")).forEach(e=>{Nn(e,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(t){t.style.display="none";let e=this.Reveal.getSlideBackground(t);e&&(e.style.display="none",L(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),L(t,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),L(t,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let t=(e,i,s)=>{L(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach(n=>{let r=n.getAttribute(e);r&&r.indexOf(s)===-1&&n.setAttribute(e,r+(/\?/.test(r)?"&":"?")+s)})};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(t){if(t){let e=this.Reveal.isSpeakerNotes();L(t,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),L(t,"video, audio").forEach(i=>{if(ee(i,".fragment")&&!ee(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!ee(i,".slide-background")),s&&typeof i.play=="function"){if(e&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):Pe?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),e||(L(t,"iframe[src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),L(t,"iframe[data-src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(t){let e=t.target;typeof e.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=e.paused===!1,s=e.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(e.load(),e.play())},1e3)}startEmbeddedMedia(t){let e=!!ee(t.target,"html"),i=!!ee(t.target,".present");e&&i&&(t.target.paused||t.target.ended)&&(t.target.currentTime=0,this.playMediaElement(t.target)),t.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(t){let e=t.play();e&&typeof e.catch=="function"&&e.then(()=>{t.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,t.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(t);let s=!!ee(t,"html"),n=!!ee(t,".present"),r=t.muted;s&&n&&!r&&(t.setAttribute("data-muted-by-reveal","true"),t.muted=!0,t.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(t)}))}else t.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(t)})}startEmbeddedIframe(t){let e=t.target;if(this.preventIframeAutoFocus(t),e&&e.contentWindow){let i=!!ee(t.target,"html"),s=!!ee(t.target,".present");if(i&&s){let n=this.Reveal.getConfig().autoPlayMedia;typeof n!="boolean"&&(n=e.hasAttribute("data-autoplay")||!!ee(e,".slide-background")),/youtube\.com\/embed\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"method":"play"}',"*"):e.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(t,e={}){e=_e({unloadIframes:!0},e),t&&t.parentNode&&(L(t,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Pe&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),L(t,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),L(t,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),L(t,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),e.unloadIframes===!0&&L(t,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let t=this.failedAudioPlaybackTargets.size,e=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":e>0?s="Unmute video":t>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(t){this.failedAudioPlaybackTargets.add(t),this.showPlayOrUnmuteButton(t)}onVideoPlaybackNotAllowed(t){this.failedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(t){this.failedMutedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{t.hasAttribute("data-muted-by-reveal")&&(t.muted=!1,t.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(t){let e=t.target;if(e&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===e?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},Ie=".slides section",we=".slides>section",Vt=".slides>section.present>section",$n=".backgrounds>.slide-background",Bn=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Hn="h.v",Dn="h/v",Ut="c",Oi="c/t",_n=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){let i="none";t.slideNumber&&!this.Reveal.isPrintView()&&(t.showSlideNumber==="all"||t.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(t=this.Reveal.getCurrentSlide()){let e=this.Reveal.getConfig(),i,s=Hn;if(typeof e.slideNumber=="function")i=e.slideNumber(t);else{typeof e.slideNumber=="string"&&(s=e.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=Ut);let r=t&&t.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case Ut:i.push(this.Reveal.getSlidePastCount(t)+r);break;case Oi:i.push(this.Reveal.getSlidePastCount(t)+r,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(t);i.push(l.h+r);let a=s===Dn?"/":".";this.Reveal.isVerticalSlide(t)&&i.push(a,l.v+1)}}let n="#"+this.Reveal.location.getHash(t);return this.formatNumber(i[0],i[1],i[2],n)}formatNumber(t,e,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
1
+ var jl=Object.defineProperty;var ql=(Le,de,T)=>de in Le?jl(Le,de,{enumerable:!0,configurable:!0,writable:!0,value:T}):Le[de]=T;var I=(Le,de,T)=>ql(Le,typeof de!="symbol"?de+"":de,T);import{s as bn}from"./chunk-LvLJmgfZ.js";import{n as ke,u as Ri}from"./useEvent-D91BmmQi.js";import{t as Ol}from"./react-Bj1aDYRI.js";import{E as Fl,ai as Vl,oi as Ul,st as Ai,ui as Wl,__tla as Kl}from"./cells-Jr-5Pc9f.js";import"./react-dom-CSu739Rf.js";import{t as Dt}from"./compiler-runtime-B3qBwwSJ.js";import{g as Zl,t as Ql}from"./useEventListener-C0195JsF.js";import{T as kn,c as Xl,t as Gl}from"./utils-BWBBpCkT.js";import{O as Yl,v as Jl}from"./config-B-Q7J_6d.js";import{t as eo}from"./readonly-python-code-Q_1Y3VyZ.js";import{t as Ue}from"./cn-DYvqRARy.js";import{t as to}from"./jsx-runtime-Blw4afVn.js";import{n as io}from"./fullscreen-CTDqNQr6.js";import"./popover-Bcz1Zikb.js";import{Ft as so,__tla as no}from"./JsonOutput-BM3vve9F.js";import"./download-CQ7iZFJL.js";import{t as yn}from"./tooltip-4bZlU7jl.js";import{r as Ti,t as wn}from"./button-DDGiD1NW.js";import"./dist-12S8I4CH.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{t as ro}from"./createLucideIcon-w-Qo9n0R.js";import{_ as Ci,d as ao,g as lo,l as Li,__tla as oo}from"./layout-D4bpsgVD.js";import{r as co}from"./x-C-Eq0ag8.js";import{__tla as uo}from"./markdown-renderer-BgqeO4JR.js";import{t as ho}from"./code-B2aKtXoe.js";import{t as po}from"./eye-off-BOZA7gbn.js";import{n as go,t as mo,__tla as fo}from"./cell-editor-BOhZHoLm.js";import{n as vo,t as bo}from"./RunButton-DMtHbFuA.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import"./session-BmukRjSi.js";import{r as ko}from"./useTheme-Bxv9B31g.js";import"./purify.es-CWmnYhGI.js";import"./dates-C2LWzsCZ.js";import{t as yo}from"./CellStatus-DciB5rbr.js";import{n as wo}from"./useDebounce-JDKr83KO.js";import{i as xo}from"./useRunCells-CF_V8X2K.js";import"./tooltip-B7U4xkIN.js";import"./vega-loader.browser-Dun7Qe4B.js";import"./defaultLocale-DOVIEEPN.js";import"./defaultLocale-BUCH2FMc.js";import{__tla as So}from"./chunk-5FQGJX7Z-BEbM01OT.js";import{r as Eo}from"./html-to-image-CfjhKLA4.js";import{n as Ro,r as Ao,t as xn}from"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import"./esm-B30N1GS0.js";import"./name-cell-input-DcU8Rfrz.js";import"./multi-icon-C2ijLyOs.js";import{__tla as To}from"./loro_wasm_bg-aCH66ryB.js";import"./ws-CNqquaud.js";import"./Inputs-BhvqLBkk.js";import"./dist-CDFlR-dv.js";import"./dist-DYsXEge_.js";import"./dist-6KRysbQA.js";import"./dist-lCLEUACp.js";import"./dist-B5BlmbY-.js";import"./dist-B4sFEC9P.js";import"./dist-C6uSSUmH.js";import"./dist-C13NfWpP.js";import"./dist-1DJkf78n.js";import"./esm-DqItXpGT.js";import{t as Co}from"./readonly-code-display-CVY2f7EZ.js";let _t,Pi,Sn,jt,Ii,Ni,Lo=Promise.all([(()=>{try{return Kl}catch{}})(),(()=>{try{return no}catch{}})(),(()=>{try{return oo}catch{}})(),(()=>{try{return uo}catch{}})(),(()=>{try{return fo}catch{}})(),(()=>{try{return So}catch{}})(),(()=>{try{return To}catch{}})()]).then(async()=>{var xt,St;var Le=ro("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]),de=Dt(),T=bn(Ol(),1),En=Object.defineProperty,Rn=Object.defineProperties,An=Object.getOwnPropertyDescriptors,Hi=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,qt=(t,e,i)=>e in t?En(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ye=(t,e)=>{for(var i in e||(e={}))Tn.call(e,i)&&qt(t,i,e[i]);if(Hi)for(var i of Hi(e))Cn.call(e,i)&&qt(t,i,e[i]);return t},Di=(t,e)=>Rn(t,An(e)),_i=(t,e,i)=>qt(t,typeof e=="symbol"?e:e+"",i),Ln=(t,e,i)=>new Promise((s,n)=>{var r=c=>{try{a(i.next(c))}catch(o){n(o)}},l=c=>{try{a(i.throw(c))}catch(o){n(o)}},a=c=>c.done?s(c.value):Promise.resolve(c.value).then(r,l);a((i=i.apply(t,e)).next())}),_e=(t,e)=>{for(let i in e)t[i]=e[i];return t},P=(t,e)=>Array.from(t.querySelectorAll(e)),Ot=(t,e,i)=>{i?t.classList.add(e):t.classList.remove(e)},je=t=>{if(typeof t=="string"){if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t.match(/^-?[\d\.]+$/))return parseFloat(t)}return t},Ee=(t,e)=>{t.style.transform=e},ot=(t,e)=>{let i=t.matches||t.matchesSelector||t.msMatchesSelector;return!!(i&&i.call(t,e))},ee=(t,e)=>{if(t&&typeof t.closest=="function")return t.closest(e);for(;t;){if(ot(t,e))return t;t=t.parentElement}return null},ji=t=>{t||(t=document.documentElement);let e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;e&&e.apply(t)},Pn=(t,e,i,s="")=>{let n=t.querySelectorAll("."+i);for(let l=0;l<n.length;l++){let a=n[l];if(a.parentNode===t)return a}let r=document.createElement(e);return r.className=i,r.innerHTML=s,t.appendChild(r),r},Ft=t=>{let e=document.createElement("style");return t&&t.length>0&&e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e},qi=()=>{let t={};for(let e in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),n=i.split("=").pop();return s&&n!==void 0&&(t[s]=n),i}),t){let i=t[e];t[e]=je(unescape(i))}return t.dependencies!==void 0&&delete t.dependencies,t},In=(t,e=0)=>{var i;if(t){let s,n=t.style.height;return t.style.height="0px",t.parentElement&&(t.parentElement.style.height="auto"),s=e-(((i=t.parentElement)==null?void 0:i.offsetHeight)||0),t.style.height=n+"px",t.parentElement&&t.parentElement.style.removeProperty("height"),s}return e},Nn={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Mn=(t="")=>{let e=t.split(".").pop();return e?Nn[e]:void 0},zn=(t="")=>encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Oi=navigator.userAgent,Pe=/(iphone|ipod|ipad|android)/gi.test(Oi)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Fi=/android/gi.test(Oi),$n=(function(t){if(t){var e=function(v){return[].slice.call(v)},i=0,s=1,n=2,r=3,l=[],a=null,c="requestAnimationFrame"in t?function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};t.cancelAnimationFrame(a);var R=function(){return d(l.filter((function(z){return z.dirty&&z.active})))};if(v.sync)return R();a=t.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(z){return z.dirty=v})),c(R)}},d=function(v){v.filter((function(z){return!z.styleComputed})).forEach((function(z){z.styleComputed=u(z)})),v.filter(b).forEach(k);var R=v.filter(p);R.forEach(g),R.forEach((function(z){k(z),h(z)})),R.forEach(N)},h=function(v){return v.dirty=i},g=function(v){v.availableWidth=v.element.parentNode.clientWidth,v.currentWidth=v.element.scrollWidth,v.previousFontSize=v.currentFontSize,v.currentFontSize=Math.min(Math.max(v.minSize,v.availableWidth/v.currentWidth*v.previousFontSize),v.maxSize),v.whiteSpace=v.multiLine&&v.currentFontSize===v.minSize?"normal":"nowrap"},p=function(v){return v.dirty!==n||v.dirty===n&&v.element.parentNode.clientWidth!==v.availableWidth},u=function(v){var R=t.getComputedStyle(v.element,null);return v.currentFontSize=parseFloat(R.getPropertyValue("font-size")),v.display=R.getPropertyValue("display"),v.whiteSpace=R.getPropertyValue("white-space"),!0},b=function(v){var R=!1;return!v.preStyleTestCompleted&&(/inline-/.test(v.display)||(R=!0,v.display="inline-block"),v.whiteSpace!=="nowrap"&&(R=!0,v.whiteSpace="nowrap"),v.preStyleTestCompleted=!0,R)},k=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},N=function(v){v.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:v.previousFontSize,newValue:v.currentFontSize,scaleFactor:v.currentFontSize/v.previousFontSize}}))},$=function(v,R){return function(z){v.dirty=R,v.active&&c(z)}},L=function(v){return function(){l=l.filter((function(R){return R.element!==v.element})),v.observeMutations&&v.observer.disconnect(),v.element.style.whiteSpace=v.originalStyle.whiteSpace,v.element.style.display=v.originalStyle.display,v.element.style.fontSize=v.originalStyle.fontSize}},A=function(v){return function(){v.active||(v.active=!0,c())}},S=function(v){return function(){return v.active=!1}},B=function(v){v.observeMutations&&(v.observer=new MutationObserver($(v,s)),v.observer.observe(v.element,v.observeMutations))},C={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in t&&{subtree:!0,childList:!0,characterData:!0}},_=null,O=function(){t.clearTimeout(_),_=t.setTimeout(o(n),H.observeWindowDelay)},M=["resize","orientationchange"];return Object.defineProperty(H,"observeWindow",{set:function(v){var R=`${v?"add":"remove"}EventListener`;M.forEach((function(z){t[R](z,O)}))}}),H.observeWindow=!0,H.observeWindowDelay=100,H.fitAll=o(r),H}function Y(v,R){var z=Object.assign({},C,R),Z=v.map((function(te){var se=Object.assign({},z,{element:te,active:!0});return(function(Q){Q.originalStyle={whiteSpace:Q.element.style.whiteSpace,display:Q.element.style.display,fontSize:Q.element.style.fontSize},B(Q),Q.newbie=!0,Q.dirty=!0,l.push(Q)})(se),{element:te,fit:$(se,r),unfreeze:A(se),freeze:S(se),unsubscribe:L(se)}}));return c(),Z}function H(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?Y(e(document.querySelectorAll(v)),R):Y([v],R)[0]}})(typeof window>"u"?null:window),Bn=class{constructor(t){_i(this,"allowedToPlayAudio",null),this.Reveal=t,this.startEmbeddedMedia=this.startEmbeddedMedia.bind(this),this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this),this.preventIframeAutoFocus=this.preventIframeAutoFocus.bind(this),this.ensureMobileMediaPlaying=this.ensureMobileMediaPlaying.bind(this),this.failedAudioPlaybackTargets=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{this.startEmbeddedMedia({target:t})}),this.clearMediaPlaybackErrors()})}shouldPreload(t){if(this.Reveal.isScrollView())return!0;let e=this.Reveal.getConfig().preloadIframes;return typeof e!="boolean"&&(e=t.hasAttribute("data-preload")),e}load(t,e={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let n=i.replace(/\s*!important\s*$/,"").trim();t.style.setProperty("display",n,"important")}else t.style.display=i;P(t,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(n=>{let r=n.tagName==="IFRAME";(!r||this.shouldPreload(n))&&(n.setAttribute("src",n.getAttribute("data-src")),n.setAttribute("data-lazy-loaded",""),n.removeAttribute("data-src"),r&&n.addEventListener("load",this.preventIframeAutoFocus))}),P(t,"video, audio").forEach(n=>{let r=0;P(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),r+=1}),Pe&&n.tagName==="VIDEO"&&n.setAttribute("playsinline",""),r>0&&n.load()});let s=t.slideBackgroundElement;if(s){s.style.display="block";let n=t.slideBackgroundContentElement,r=t.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let a=t.getAttribute("data-background-image"),c=t.getAttribute("data-background-video"),o=t.hasAttribute("data-background-video-loop"),d=t.hasAttribute("data-background-video-muted");if(a)/^data:/.test(a.trim())?n.style.backgroundImage=`url(${a.trim()})`:n.style.backgroundImage=a.split(",").map(h=>`url(${zn(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(d||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Pe&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let u=Mn(g);u&&p.setAttribute("type",u),h.appendChild(p)}),n.appendChild(h)}else if(r&&e.excludeIframes!==!0){let h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",r),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",n.appendChild(h)}}let l=n.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(r)&&l.getAttribute("src")!==r&&l.setAttribute("src",r)}this.layout(t)}layout(t){Array.from(t.querySelectorAll(".r-fit-text")).forEach(e=>{$n(e,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(t){t.style.display="none";let e=this.Reveal.getSlideBackground(t);e&&(e.style.display="none",P(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),P(t,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),P(t,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let t=(e,i,s)=>{P(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach(n=>{let r=n.getAttribute(e);r&&r.indexOf(s)===-1&&n.setAttribute(e,r+(/\?/.test(r)?"&":"?")+s)})};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(t){if(t){let e=this.Reveal.isSpeakerNotes();P(t,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),P(t,"video, audio").forEach(i=>{if(ee(i,".fragment")&&!ee(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!ee(i,".slide-background")),s&&typeof i.play=="function"){if(e&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):Pe?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),e||(P(t,"iframe[src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),P(t,"iframe[data-src]").forEach(i=>{ee(i,".fragment")&&!ee(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(t){let e=t.target;typeof e.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=e.paused===!1,s=e.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(e.load(),e.play())},1e3)}startEmbeddedMedia(t){let e=!!ee(t.target,"html"),i=!!ee(t.target,".present");e&&i&&(t.target.paused||t.target.ended)&&(t.target.currentTime=0,this.playMediaElement(t.target)),t.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(t){let e=t.play();e&&typeof e.catch=="function"&&e.then(()=>{t.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,t.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(t);let s=!!ee(t,"html"),n=!!ee(t,".present"),r=t.muted;s&&n&&!r&&(t.setAttribute("data-muted-by-reveal","true"),t.muted=!0,t.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(t)}))}else t.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(t)})}startEmbeddedIframe(t){let e=t.target;if(this.preventIframeAutoFocus(t),e&&e.contentWindow){let i=!!ee(t.target,"html"),s=!!ee(t.target,".present");if(i&&s){let n=this.Reveal.getConfig().autoPlayMedia;typeof n!="boolean"&&(n=e.hasAttribute("data-autoplay")||!!ee(e,".slide-background")),/youtube\.com\/embed\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"method":"play"}',"*"):e.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(t,e={}){e=_e({unloadIframes:!0},e),t&&t.parentNode&&(P(t,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Pe&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),P(t,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),P(t,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),P(t,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),e.unloadIframes===!0&&P(t,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let t=this.failedAudioPlaybackTargets.size,e=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":e>0?s="Unmute video":t>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(t){this.failedAudioPlaybackTargets.add(t),this.showPlayOrUnmuteButton(t)}onVideoPlaybackNotAllowed(t){this.failedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(t){this.failedMutedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{t.hasAttribute("data-muted-by-reveal")&&(t.muted=!1,t.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(t){let e=t.target;if(e&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===e?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},Ie=".slides section",we=".slides>section",Vt=".slides>section.present>section",Hn=".backgrounds>.slide-background",Dn=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,_n="h.v",jn="h/v",Ut="c",Vi="c/t",qn=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){let i="none";t.slideNumber&&!this.Reveal.isPrintView()&&(t.showSlideNumber==="all"||t.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(t=this.Reveal.getCurrentSlide()){let e=this.Reveal.getConfig(),i,s=_n;if(typeof e.slideNumber=="function")i=e.slideNumber(t);else{typeof e.slideNumber=="string"&&(s=e.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=Ut);let r=t&&t.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case Ut:i.push(this.Reveal.getSlidePastCount(t)+r);break;case Vi:i.push(this.Reveal.getSlidePastCount(t)+r,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(t);i.push(l.h+r);let a=s===jn?"/":".";this.Reveal.isVerticalSlide(t)&&i.push(a,l.v+1)}}let n="#"+this.Reveal.location.getHash(t);return this.formatNumber(i[0],i[1],i[2],n)}formatNumber(t,e,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
2
2
  <span class="slide-number-a">${t}</span>
3
3
  <span class="slide-number-delimiter">${e}</span>
4
4
  <span class="slide-number-b">${i}</span>
5
5
  </a>`:`<a href="${s}">
6
6
  <span class="slide-number-a">${t}</span>
7
- </a>`}destroy(){this.element.remove()}},qn=class{constructor(t){this.Reveal=t,this.onInput=this.onInput.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){this.element=document.createElement("div"),this.element.className="jump-to-slide",this.jumpInput=document.createElement("input"),this.jumpInput.type="text",this.jumpInput.className="jump-to-slide-input",this.jumpInput.placeholder="Jump to slide",this.jumpInput.addEventListener("input",this.onInput),this.jumpInput.addEventListener("keydown",this.onKeyDown),this.jumpInput.addEventListener("blur",this.onBlur),this.element.appendChild(this.jumpInput)}show(){this.indicesOnShow=this.Reveal.getIndices(),this.Reveal.getRevealElement().appendChild(this.element),this.jumpInput.focus()}hide(){this.isVisible()&&(this.element.remove(),this.jumpInput.value="",clearTimeout(this.jumpTimeout),delete this.jumpTimeout)}isVisible(){return!!this.element.parentNode}jump(){clearTimeout(this.jumpTimeout),delete this.jumpTimeout;let t=this.jumpInput.value.trim(""),e;if(/^\d+$/.test(t)){let i=this.Reveal.getConfig().slideNumber;if(i===Ut||i===Oi){let s=this.Reveal.getSlides()[parseInt(t,10)-1];s&&(e=this.Reveal.getIndices(s))}}return e||(e=(/^\d+\.\d+$/.test(t)&&(t=t.replace(".","/")),this.Reveal.location.getIndicesFromHash(t,{oneBasedIndex:!0}))),!e&&/\S+/i.test(t)&&t.length>1&&(e=this.search(t)),e&&t!==""?(this.Reveal.slide(e.h,e.v,e.f),!0):(this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),!1)}jumpAfter(t){clearTimeout(this.jumpTimeout),this.jumpTimeout=setTimeout(()=>this.jump(),t)}search(t){let e=RegExp("\\b"+t.trim()+"\\b","i"),i=this.Reveal.getSlides().find(s=>e.test(s.innerText));return i?this.Reveal.getIndices(i):null}cancel(){this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),this.hide()}confirm(){this.jump(),this.hide()}destroy(){this.jumpInput.removeEventListener("input",this.onInput),this.jumpInput.removeEventListener("keydown",this.onKeyDown),this.jumpInput.removeEventListener("blur",this.onBlur),this.element.remove()}onKeyDown(t){t.keyCode===13?this.confirm():t.keyCode===27&&(this.cancel(),t.stopImmediatePropagation())}onInput(t){this.jumpAfter(200)}onBlur(){setTimeout(()=>this.hide(),1)}},Wt=t=>{let e=t.match(/^#([0-9a-f]{3})$/i);if(e&&e[1]){let r=e[1];return{r:parseInt(r.charAt(0),16)*17,g:parseInt(r.charAt(1),16)*17,b:parseInt(r.charAt(2),16)*17}}let i=t.match(/^#([0-9a-f]{6})$/i);if(i&&i[1]){let r=i[1];return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}}let s=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(s)return{r:parseInt(s[1],10),g:parseInt(s[2],10),b:parseInt(s[3],10)};let n=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return n?{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10),a:parseFloat(n[4])}:null},jn=t=>(typeof t=="string"&&(t=Wt(t)),t?(t.r*299+t.g*587+t.b*114)/1e3:null),On=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(t=>{let e=this.createBackground(t,this.element);L(t,"section").forEach(i=>{this.createBackground(i,e),e.classList.add("stack")})}),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(t,e){let i=document.createElement("div");i.className="slide-background "+t.className.replace(/present|past|future/,"");let s=document.createElement("div");return s.className="slide-background-content",i.appendChild(s),e.appendChild(i),t.slideBackgroundElement=i,t.slideBackgroundContentElement=s,this.sync(t),i}sync(t){let e=t.slideBackgroundElement,i=t.slideBackgroundContentElement,s={background:t.getAttribute("data-background"),backgroundSize:t.getAttribute("data-background-size"),backgroundImage:t.getAttribute("data-background-image"),backgroundVideo:t.getAttribute("data-background-video"),backgroundIframe:t.getAttribute("data-background-iframe"),backgroundColor:t.getAttribute("data-background-color"),backgroundGradient:t.getAttribute("data-background-gradient"),backgroundRepeat:t.getAttribute("data-background-repeat"),backgroundPosition:t.getAttribute("data-background-position"),backgroundTransition:t.getAttribute("data-background-transition"),backgroundOpacity:t.getAttribute("data-background-opacity")},n=t.hasAttribute("data-preload");t.classList.remove("has-dark-background"),t.classList.remove("has-light-background"),e.removeAttribute("data-loaded"),e.removeAttribute("data-background-hash"),e.removeAttribute("data-background-size"),e.removeAttribute("data-background-transition"),e.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",s.background&&(/^(http|file|\/\/)/gi.test(s.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(s.background)?t.setAttribute("data-background-image",s.background):e.style.background=s.background),(s.background||s.backgroundColor||s.backgroundGradient||s.backgroundImage||s.backgroundVideo||s.backgroundIframe)&&e.setAttribute("data-background-hash",s.background+s.backgroundSize+s.backgroundImage+s.backgroundVideo+s.backgroundIframe+s.backgroundColor+s.backgroundGradient+s.backgroundRepeat+s.backgroundPosition+s.backgroundTransition+s.backgroundOpacity),s.backgroundSize&&e.setAttribute("data-background-size",s.backgroundSize),s.backgroundColor&&(e.style.backgroundColor=s.backgroundColor),s.backgroundGradient&&(e.style.backgroundImage=s.backgroundGradient),s.backgroundTransition&&e.setAttribute("data-background-transition",s.backgroundTransition),n&&e.setAttribute("data-preload",""),s.backgroundSize&&(i.style.backgroundSize=s.backgroundSize),s.backgroundRepeat&&(i.style.backgroundRepeat=s.backgroundRepeat),s.backgroundPosition&&(i.style.backgroundPosition=s.backgroundPosition),s.backgroundOpacity&&(i.style.opacity=s.backgroundOpacity);let r=this.getContrastClass(t);typeof r=="string"&&t.classList.add(r)}getContrastClass(t){let e=t.slideBackgroundElement,i=t.getAttribute("data-background-color");if(!i||!Wt(i)){let s=window.getComputedStyle(e);s&&s.backgroundColor&&(i=s.backgroundColor)}if(i){let s=Wt(i);if(s&&s.a!==0)return jn(i)<128?"has-dark-background":"has-light-background"}return null}bubbleSlideContrastClassToElement(t,e){["has-light-background","has-dark-background"].forEach(i=>{t.classList.contains(i)?e.classList.add(i):e.classList.remove(i)},this)}update(t=!1){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide(),s=this.Reveal.getIndices(),n=null,r=e.rtl?"future":"past",l=e.rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((c,o)=>{c.classList.remove("past","present","future"),o<s.h?c.classList.add(r):o>s.h?c.classList.add(l):(c.classList.add("present"),n=c),(t||o===s.h)&&L(c,".slide-background").forEach((u,h)=>{u.classList.remove("past","present","future");let g=typeof s.v=="number"?s.v:0;h<g?u.classList.add("past"):h>g?u.classList.add("future"):(u.classList.add("present"),o===s.h&&(n=u))})}),this.previousBackground&&!this.previousBackground.closest("body")&&(this.previousBackground=null),n&&this.previousBackground){let c=this.previousBackground.getAttribute("data-background-hash"),o=n.getAttribute("data-background-hash");if(o&&o===c&&n!==this.previousBackground){this.element.classList.add("no-transition");let u=n.querySelector("video"),h=this.previousBackground.querySelector("video");if(u&&h){let g=u.parentNode;h.parentNode.appendChild(u),g.appendChild(h)}}}let a=n!==this.previousBackground;if(a&&this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a&&n){this.Reveal.slideContent.startEmbeddedContent(n);let c=n.querySelector(".slide-background-content");if(c){let o=c.style.backgroundImage||"";/\.gif/i.test(o)&&(c.style.backgroundImage="",window.getComputedStyle(c).opacity,c.style.backgroundImage=o)}this.previousBackground=n}i&&this.bubbleSlideContrastClassToElement(i,this.Reveal.getRevealElement()),setTimeout(()=>{this.element.classList.remove("no-transition")},10)}updateParallax(){let t=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let e=this.Reveal.getHorizontalSlides(),i=this.Reveal.getVerticalSlides(),s=this.element.style.backgroundSize.split(" "),n,r;s.length===1?n=r=parseInt(s[0],10):(n=parseInt(s[0],10),r=parseInt(s[1],10));let l=this.element.offsetWidth,a=e.length,c,o;c=typeof this.Reveal.getConfig().parallaxBackgroundHorizontal=="number"?this.Reveal.getConfig().parallaxBackgroundHorizontal:a>1?(n-l)/(a-1):0,o=c*t.h*-1;let u=this.element.offsetHeight,h=i.length,g,p;g=typeof this.Reveal.getConfig().parallaxBackgroundVertical=="number"?this.Reveal.getConfig().parallaxBackgroundVertical:(r-u)/(h-1),p=h>0?g*t.v:0,this.element.style.backgroundPosition=o+"px "+-p+"px"}}destroy(){this.element.remove()}},Fi=0,Fn=class{constructor(t){this.Reveal=t}run(t,e){this.reset();let i=this.Reveal.getSlides(),s=i.indexOf(e),n=i.indexOf(t);if(t&&e&&t.hasAttribute("data-auto-animate")&&e.hasAttribute("data-auto-animate")&&t.getAttribute("data-auto-animate-id")===e.getAttribute("data-auto-animate-id")&&!(s>n?e:t).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||Ft();let r=this.getAutoAnimateOptions(e);t.dataset.autoAnimate="pending",e.dataset.autoAnimate="pending",r.slideDirection=s>n?"forward":"backward";let l=t.style.display==="none";l&&(t.style.display=this.Reveal.getConfig().display);let a=this.getAutoAnimatableElements(t,e).map(c=>this.autoAnimateElements(c.from,c.to,c.options||{},r,Fi++));if(l&&(t.style.display="none"),e.dataset.autoAnimateUnmatched!=="false"&&this.Reveal.getConfig().autoAnimateUnmatched===!0){let c=r.duration*.8,o=r.duration*.2;this.getUnmatchedAutoAnimateElements(e).forEach(u=>{let h=this.getAutoAnimateOptions(u,r),g="unmatched";(h.duration!==r.duration||h.delay!==r.delay)&&(g="unmatched-"+Fi++,a.push(`[data-auto-animate="running"] [data-auto-animate-target="${g}"] { transition: opacity ${h.duration}s ease ${h.delay}s; }`)),u.dataset.autoAnimateTarget=g},this),a.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${c}s ease ${o}s; }`)}this.autoAnimateStyleSheet.innerHTML=a.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,e.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:t,toSlide:e,sheet:this.autoAnimateStyleSheet}})}}reset(){L(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(t=>{t.dataset.autoAnimate=""}),L(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(t=>{delete t.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(t,e,i,s,n){t.dataset.autoAnimateTarget="",e.dataset.autoAnimateTarget=n;let r=this.getAutoAnimateOptions(e,s);i.delay!==void 0&&(r.delay=i.delay),i.duration!==void 0&&(r.duration=i.duration),i.easing!==void 0&&(r.easing=i.easing);let l=this.getAutoAnimatableProperties("from",t,i),a=this.getAutoAnimatableProperties("to",e,i);if(e.classList.contains("fragment")&&delete a.styles.opacity,i.translate!==!1||i.scale!==!1){let u=this.Reveal.getScale(),h={x:(l.x-a.x)/u,y:(l.y-a.y)/u,scaleX:l.width/a.width,scaleY:l.height/a.height};h.x=Math.round(h.x*1e3)/1e3,h.y=Math.round(h.y*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3;let g=i.translate!==!1&&(h.x!==0||h.y!==0),p=i.scale!==!1&&(h.scaleX!==0||h.scaleY!==0);if(g||p){let d=[];g&&d.push(`translate(${h.x}px, ${h.y}px)`),p&&d.push(`scale(${h.scaleX}, ${h.scaleY})`),l.styles.transform=d.join(" "),l.styles["transform-origin"]="top left",a.styles.transform="none"}}for(let u in a.styles){let h=a.styles[u],g=l.styles[u];h===g?delete a.styles[u]:(h.explicitValue===!0&&(a.styles[u]=h.value),g.explicitValue===!0&&(l.styles[u]=g.value))}let c="",o=Object.keys(a.styles);if(o.length>0){l.styles.transition="none",a.styles.transition=`all ${r.duration}s ${r.easing} ${r.delay}s`,a.styles["transition-property"]=o.join(", "),a.styles["will-change"]=o.join(", ");let u=Object.keys(l.styles).map(g=>g+": "+l.styles[g]+" !important;").join(""),h=Object.keys(a.styles).map(g=>g+": "+a.styles[g]+" !important;").join("");c='[data-auto-animate-target="'+n+'"] {'+u+'}[data-auto-animate="running"] [data-auto-animate-target="'+n+'"] {'+h+"}"}return c}getAutoAnimateOptions(t,e){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=_e(i,e),t.parentNode){let s=ee(t.parentNode,"[data-auto-animate-target]");s&&(i=this.getAutoAnimateOptions(s,i))}return t.dataset.autoAnimateEasing&&(i.easing=t.dataset.autoAnimateEasing),t.dataset.autoAnimateDuration&&(i.duration=parseFloat(t.dataset.autoAnimateDuration)),t.dataset.autoAnimateDelay&&(i.delay=parseFloat(t.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(t,e,i){let s=this.Reveal.getConfig(),n={styles:[]};if(i.translate!==!1||i.scale!==!1){let l;if(typeof i.measure=="function")l=i.measure(e);else if(s.center)l=e.getBoundingClientRect();else{let a=this.Reveal.getScale();l={x:e.offsetLeft*a,y:e.offsetTop*a,width:e.offsetWidth*a,height:e.offsetHeight*a}}n.x=l.x,n.y=l.y,n.width=l.width,n.height=l.height}let r=getComputedStyle(e);return(i.styles||s.autoAnimateStyles).forEach(l=>{let a;typeof l=="string"&&(l={property:l}),l.from!==void 0&&t==="from"?a={value:l.from,explicitValue:!0}:l.to!==void 0&&t==="to"?a={value:l.to,explicitValue:!0}:(l.property==="line-height"&&(a=parseFloat(r["line-height"])/parseFloat(r["font-size"])),isNaN(a)&&(a=r[l.property])),a!==""&&(n.styles[l.property]=a)}),n}getAutoAnimatableElements(t,e){let i=(typeof this.Reveal.getConfig().autoAnimateMatcher=="function"?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,t,e),s=[];return i.filter((n,r)=>{if(s.indexOf(n.to)===-1)return s.push(n.to),!0})}getAutoAnimatePairs(t,e){let i=[],s="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,t,e,"[data-id]",n=>n.nodeName+":::"+n.getAttribute("data-id")),this.findAutoAnimateMatches(i,t,e,s,n=>n.nodeName+":::"+n.textContent.trim()),this.findAutoAnimateMatches(i,t,e,"img, video, iframe",n=>n.nodeName+":::"+(n.getAttribute("src")||n.getAttribute("data-src"))),this.findAutoAnimateMatches(i,t,e,"pre",n=>n.nodeName+":::"+n.textContent.trim()),i.forEach(n=>{lt(n.from,s)?n.options={scale:!1}:lt(n.from,"pre")&&(n.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-code",r=>r.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-numbers[data-line-number]",r=>r.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(t){let e=this.Reveal.getScale();return{x:Math.round(t.offsetLeft*e*100)/100,y:Math.round(t.offsetTop*e*100)/100,width:Math.round(t.offsetWidth*e*100)/100,height:Math.round(t.offsetHeight*e*100)/100}}findAutoAnimateMatches(t,e,i,s,n,r){let l={},a={};[].slice.call(e.querySelectorAll(s)).forEach((c,o)=>{let u=n(c);typeof u=="string"&&u.length&&(l[u]=l[u]||[],l[u].push(c))}),[].slice.call(i.querySelectorAll(s)).forEach((c,o)=>{let u=n(c);a[u]=a[u]||[],a[u].push(c);let h;if(l[u]){let g=a[u].length-1,p=l[u].length-1;l[u][g]?(h=l[u][g],l[u][g]=null):l[u][p]&&(h=l[u][p],l[u][p]=null)}h&&t.push({from:h,to:c,options:r})})}getUnmatchedAutoAnimateElements(t){return[].slice.call(t.children).reduce((e,i)=>{let s=i.querySelector("[data-auto-animate-target]");return!i.hasAttribute("data-auto-animate-target")&&!s&&e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(i))),e},[])}},Vn=500,Un=4,Wn=6,Kn=8,Zn=class{constructor(t){this.Reveal=t,this.active=!1,this.activatedCallbacks=[],this.onScroll=this.onScroll.bind(this)}activate(){if(this.active)return;let t=this.Reveal.getState();this.active=!0,this.slideHTMLBeforeActivation=this.Reveal.getSlidesElement().innerHTML;let e=L(this.Reveal.getRevealElement(),we),i=L(this.Reveal.getRevealElement(),$n);this.viewportElement.classList.add("loading-scroll-mode","reveal-scroll");let s,n=window.getComputedStyle(this.viewportElement);n&&n.background&&(s=n.background);let r=[],l=e[0].parentNode,a,c=(o,u,h,g)=>{let p;if(a&&this.Reveal.shouldAutoAnimateBetween(a,o))p=document.createElement("div"),p.className="scroll-page-content scroll-auto-animate-page",p.style.display="none",a.closest(".scroll-page-content").parentNode.appendChild(p);else{let d=document.createElement("div");if(d.className="scroll-page",r.push(d),g&&i.length>u){let k=i[u],P=window.getComputedStyle(k);P&&P.background?d.style.background=P.background:s&&(d.style.background=s)}else s&&(d.style.background=s);let b=document.createElement("div");b.className="scroll-page-sticky",d.appendChild(b),p=document.createElement("div"),p.className="scroll-page-content",b.appendChild(p)}p.appendChild(o),o.classList.remove("past","future"),o.setAttribute("data-index-h",u),o.setAttribute("data-index-v",h),o.slideBackgroundElement&&(o.slideBackgroundElement.remove("past","future"),p.insertBefore(o.slideBackgroundElement,o)),a=o};e.forEach((o,u)=>{this.Reveal.isVerticalStack(o)?o.querySelectorAll("section").forEach((h,g)=>{c(h,u,g,!0)}):c(o,u,0)},this),this.createProgressBar(),L(this.Reveal.getRevealElement(),".stack").forEach(o=>o.remove()),r.forEach(o=>l.appendChild(o)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.layout(),this.Reveal.setState(t),this.activatedCallbacks.forEach(o=>o()),this.activatedCallbacks=[],this.restoreScrollPosition(),this.viewportElement.classList.remove("loading-scroll-mode"),this.viewportElement.addEventListener("scroll",this.onScroll,{passive:!0})}deactivate(){if(!this.active)return;let t=this.Reveal.getState();this.active=!1,this.viewportElement.removeEventListener("scroll",this.onScroll),this.viewportElement.classList.remove("reveal-scroll"),this.removeProgressBar(),this.Reveal.getSlidesElement().innerHTML=this.slideHTMLBeforeActivation,this.Reveal.sync(),this.Reveal.setState(t),this.slideHTMLBeforeActivation=null}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}createProgressBar(){this.progressBar=document.createElement("div"),this.progressBar.className="scrollbar",this.progressBarInner=document.createElement("div"),this.progressBarInner.className="scrollbar-inner",this.progressBar.appendChild(this.progressBarInner),this.progressBarPlayhead=document.createElement("div"),this.progressBarPlayhead.className="scrollbar-playhead",this.progressBarInner.appendChild(this.progressBarPlayhead),this.viewportElement.insertBefore(this.progressBar,this.viewportElement.firstChild);let t=i=>{let s=(i.clientY-this.progressBarInner.getBoundingClientRect().top)/this.progressBarHeight;s=Math.max(Math.min(s,1),0),this.viewportElement.scrollTop=s*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight)},e=i=>{this.draggingProgressBar=!1,this.showProgressBar(),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",e)};this.progressBarInner.addEventListener("mousedown",i=>{i.preventDefault(),this.draggingProgressBar=!0,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e),t(i)})}removeProgressBar(){this.progressBar&&(this.progressBar=(this.progressBar.remove(),null))}layout(){this.isActive()&&(this.syncPages(),this.syncScrollPosition())}syncPages(){let t=this.Reveal.getConfig(),e=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=this.Reveal.getScale(),s=t.scrollLayout==="compact",n=this.viewportElement.offsetHeight,r=e.height*i,l=s?r:n;this.scrollTriggerHeight=s?r:n,this.viewportElement.style.setProperty("--page-height",l+"px"),this.viewportElement.style.scrollSnapType=typeof t.scrollSnap=="string"?`y ${t.scrollSnap}`:"",this.slideTriggers=[],this.pages=Array.from(this.Reveal.getRevealElement().querySelectorAll(".scroll-page")).map(a=>{let c=this.createPage({pageElement:a,slideElement:a.querySelector("section"),stickyElement:a.querySelector(".scroll-page-sticky"),contentElement:a.querySelector(".scroll-page-content"),backgroundElement:a.querySelector(".slide-background"),autoAnimateElements:a.querySelectorAll(".scroll-auto-animate-page"),autoAnimatePages:[]});c.pageElement.style.setProperty("--slide-height",t.center===!0?"auto":e.height+"px"),this.slideTriggers.push({page:c,activate:()=>this.activatePage(c),deactivate:()=>this.deactivatePage(c)}),this.createFragmentTriggersForPage(c),c.autoAnimateElements.length>0&&this.createAutoAnimateTriggersForPage(c);let o=Math.max(c.scrollTriggers.length-1,0);o+=c.autoAnimatePages.reduce((u,h)=>u+Math.max(h.scrollTriggers.length-1,0),c.autoAnimatePages.length),c.pageElement.querySelectorAll(".scroll-snap-point").forEach(u=>u.remove());for(let u=0;u<o+1;u++){let h=document.createElement("div");h.className="scroll-snap-point",h.style.height=this.scrollTriggerHeight+"px",h.style.scrollSnapAlign=s?"center":"start",c.pageElement.appendChild(h),u===0&&(h.style.marginTop=-this.scrollTriggerHeight+"px")}return s&&c.scrollTriggers.length>0?(c.pageHeight=n,c.pageElement.style.setProperty("--page-height",n+"px")):(c.pageHeight=l,c.pageElement.style.removeProperty("--page-height")),c.scrollPadding=this.scrollTriggerHeight*o,c.totalHeight=c.pageHeight+c.scrollPadding,c.pageElement.style.setProperty("--page-scroll-padding",c.scrollPadding+"px"),o>0?(c.stickyElement.style.position="sticky",c.stickyElement.style.top=Math.max((n-c.pageHeight)/2,0)+"px"):(c.stickyElement.style.position="relative",c.pageElement.style.scrollSnapAlign=c.pageHeight<n?"center":"start"),c}),this.setTriggerRanges(),this.viewportElement.setAttribute("data-scrollbar",t.scrollProgress),t.scrollProgress&&this.totalScrollTriggerCount>1?(this.progressBar||this.createProgressBar(),this.syncProgressBar()):this.removeProgressBar()}setTriggerRanges(){this.totalScrollTriggerCount=this.slideTriggers.reduce((e,i)=>e+Math.max(i.page.scrollTriggers.length,1),0);let t=0;this.slideTriggers.forEach((e,i)=>{e.range=[t,t+Math.max(e.page.scrollTriggers.length,1)/this.totalScrollTriggerCount];let s=(e.range[1]-e.range[0])/e.page.scrollTriggers.length;e.page.scrollTriggers.forEach((n,r)=>{n.range=[t+r*s,t+(r+1)*s]}),t=e.range[1]}),this.slideTriggers[this.slideTriggers.length-1].range[1]=1}createFragmentTriggersForPage(t,e){e||(e=t.slideElement);let i=this.Reveal.fragments.sort(e.querySelectorAll(".fragment"),!0);return i.length&&(t.fragments=this.Reveal.fragments.sort(e.querySelectorAll(".fragment:not(.disabled)")),t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(-1,t.fragments,e)}}),i.forEach((s,n)=>{t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(n,t.fragments,e)}})})),t.scrollTriggers.length}createAutoAnimateTriggersForPage(t){t.autoAnimateElements.length>0&&this.slideTriggers.push(...Array.from(t.autoAnimateElements).map((e,i)=>{let s=this.createPage({slideElement:e.querySelector("section"),contentElement:e,backgroundElement:e.querySelector(".slide-background")});return this.createFragmentTriggersForPage(s,s.slideElement),t.autoAnimatePages.push(s),{page:s,activate:()=>this.activatePage(s),deactivate:()=>this.deactivatePage(s)}}))}createPage(t){return t.scrollTriggers=[],t.indexh=parseInt(t.slideElement.getAttribute("data-index-h"),10),t.indexv=parseInt(t.slideElement.getAttribute("data-index-v"),10),t}syncProgressBar(){this.progressBarInner.querySelectorAll(".scrollbar-slide").forEach(r=>r.remove());let t=this.viewportElement.scrollHeight,e=this.viewportElement.offsetHeight,i=e/t;this.progressBarHeight=this.progressBarInner.offsetHeight,this.playheadHeight=Math.max(i*this.progressBarHeight,Kn),this.progressBarScrollableHeight=this.progressBarHeight-this.playheadHeight;let s=e/t*this.progressBarHeight,n=Math.min(s/8,Un);this.progressBarPlayhead.style.height=this.playheadHeight-n+"px",s>Wn?this.slideTriggers.forEach(r=>{let{page:l}=r;l.progressBarSlide=document.createElement("div"),l.progressBarSlide.className="scrollbar-slide",l.progressBarSlide.style.top=r.range[0]*this.progressBarHeight+"px",l.progressBarSlide.style.height=(r.range[1]-r.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.classList.toggle("has-triggers",l.scrollTriggers.length>0),this.progressBarInner.appendChild(l.progressBarSlide),l.scrollTriggerElements=l.scrollTriggers.map((a,c)=>{let o=document.createElement("div");return o.className="scrollbar-trigger",o.style.top=(a.range[0]-r.range[0])*this.progressBarHeight+"px",o.style.height=(a.range[1]-a.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.appendChild(o),c===0&&(o.style.display="none"),o})}):this.pages.forEach(r=>r.progressBarSlide=null)}syncScrollPosition(){let t=this.viewportElement.offsetHeight,e=t/this.viewportElement.scrollHeight,i=this.viewportElement.scrollTop,s=this.viewportElement.scrollHeight-t,n=Math.max(Math.min(i/s,1),0),r=Math.max(Math.min((i+t/2)/this.viewportElement.scrollHeight,1),0),l;this.slideTriggers.forEach(a=>{let{page:c}=a;n>=a.range[0]-e*2&&n<=a.range[1]+e*2&&!c.loaded?(c.loaded=!0,this.Reveal.slideContent.load(c.slideElement)):c.loaded&&(c.loaded=!1,this.Reveal.slideContent.unload(c.slideElement)),n>=a.range[0]&&n<=a.range[1]?(this.activateTrigger(a),l=a.page):a.active&&this.deactivateTrigger(a)}),l&&l.scrollTriggers.forEach(a=>{r>=a.range[0]&&r<=a.range[1]?this.activateTrigger(a):a.active&&this.deactivateTrigger(a)}),this.setProgressBarValue(i/(this.viewportElement.scrollHeight-t))}setProgressBarValue(t){this.progressBar&&(this.progressBarPlayhead.style.transform=`translateY(${t*this.progressBarScrollableHeight}px)`,this.getAllPages().filter(e=>e.progressBarSlide).forEach(e=>{e.progressBarSlide.classList.toggle("active",e.active===!0),e.scrollTriggers.forEach((i,s)=>{e.scrollTriggerElements[s].classList.toggle("active",e.active===!0&&i.active===!0)})}),this.showProgressBar())}showProgressBar(){this.progressBar.classList.add("visible"),clearTimeout(this.hideProgressBarTimeout),this.Reveal.getConfig().scrollProgress==="auto"&&!this.draggingProgressBar&&(this.hideProgressBarTimeout=setTimeout(()=>{this.progressBar&&this.progressBar.classList.remove("visible")},Vn))}prev(){this.viewportElement.scrollTop-=this.scrollTriggerHeight}next(){this.viewportElement.scrollTop+=this.scrollTriggerHeight}scrollToSlide(t){if(!this.active)this.activatedCallbacks.push(()=>this.scrollToSlide(t));else{let e=this.getScrollTriggerBySlide(t);e&&(this.viewportElement.scrollTop=e.range[0]*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight))}}storeScrollPosition(){clearTimeout(this.storeScrollPositionTimeout),this.storeScrollPositionTimeout=setTimeout(()=>{sessionStorage.setItem("reveal-scroll-top",this.viewportElement.scrollTop),sessionStorage.setItem("reveal-scroll-origin",location.origin+location.pathname),this.storeScrollPositionTimeout=null},50)}restoreScrollPosition(){let t=sessionStorage.getItem("reveal-scroll-top"),e=sessionStorage.getItem("reveal-scroll-origin");t&&e===location.origin+location.pathname&&(this.viewportElement.scrollTop=parseInt(t,10))}activatePage(t){if(!t.active){t.active=!0;let{slideElement:e,backgroundElement:i,contentElement:s,indexh:n,indexv:r}=t;s.style.display="block",e.classList.add("present"),i&&i.classList.add("present"),this.Reveal.setCurrentScrollPage(e,n,r),this.Reveal.backgrounds.bubbleSlideContrastClassToElement(e,this.viewportElement),Array.from(s.parentNode.querySelectorAll(".scroll-page-content")).forEach(l=>{l!==s&&(l.style.display="none")})}}deactivatePage(t){t.active&&(t.active=!1,t.slideElement&&t.slideElement.classList.remove("present"),t.backgroundElement&&t.backgroundElement.classList.remove("present"))}activateTrigger(t){t.active||(t.active=!0,t.activate())}deactivateTrigger(t){t.active&&(t.active=!1,t.deactivate&&t.deactivate())}getSlideByIndices(t,e){let i=this.getAllPages().find(s=>s.indexh===t&&s.indexv===e);return i?i.slideElement:null}getScrollTriggerBySlide(t){return this.slideTriggers.find(e=>e.page.slideElement===t)}getAllPages(){return this.pages.flatMap(t=>[t,...t.autoAnimatePages||[]])}onScroll(){this.syncScrollPosition(),this.storeScrollPosition()}get viewportElement(){return this.Reveal.getViewportElement()}},Qn=class{constructor(t){this.Reveal=t}activate(){return Tn(this,null,function*(){let t=this.Reveal.getConfig(),e=L(this.Reveal.getRevealElement(),Ie),i=t.slideNumber&&/all|print/i.test(t.showSlideNumber),s=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),n=Math.floor(s.width*(1+t.margin)),r=Math.floor(s.height*(1+t.margin)),l=s.width,a=s.height;yield new Promise(requestAnimationFrame),Ft("@page{size:"+n+"px "+r+"px; margin: 0px;}"),Ft(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+l+"px; max-height:"+a+"px}"),document.documentElement.classList.add("reveal-print","print-pdf"),document.body.style.width=n+"px",document.body.style.height=r+"px";let c=this.Reveal.getViewportElement(),o;if(c){let d=window.getComputedStyle(c);d&&d.background&&(o=d.background)}yield new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(l,a),yield new Promise(requestAnimationFrame);let u=e.map(d=>d.scrollHeight),h=[],g=e[0].parentNode,p=1;e.forEach(function(d,b){if(d.classList.contains("stack")===!1){let k=(n-l)/2,P=(r-a)/2,H=u[b],M=Math.max(Math.ceil(H/r),1);M=Math.min(M,t.pdfMaxPagesPerSlide),(M===1&&t.center||d.classList.contains("center"))&&(P=Math.max((r-H)/2,0));let A=document.createElement("div");if(h.push(A),A.className="pdf-page",A.style.height=(r+t.pdfPageHeightOffset)*M+"px",o&&(A.style.background=o),A.appendChild(d),d.style.left=k+"px",d.style.top=P+"px",d.style.width=l+"px",this.Reveal.slideContent.layout(d),d.slideBackgroundElement&&A.insertBefore(d.slideBackgroundElement,d),t.showNotes){let S=this.Reveal.getSlideNotes(d);if(S){let $=typeof t.showNotes=="string"?t.showNotes:"inline",T=document.createElement("div");T.classList.add("speaker-notes"),T.classList.add("speaker-notes-pdf"),T.setAttribute("data-layout",$),T.innerHTML=S,$==="separate-page"?h.push(T):(T.style.left="8px",T.style.bottom="8px",T.style.width=n-16+"px",A.appendChild(T))}}if(i){let S=document.createElement("div");S.classList.add("slide-number"),S.classList.add("slide-number-pdf"),S.innerHTML=p++,A.appendChild(S)}if(t.pdfSeparateFragments){let S=this.Reveal.fragments.sort(A.querySelectorAll(".fragment"),!0),$;S.forEach(function(T,_){$&&$.forEach(function(N){N.classList.remove("current-fragment")}),T.forEach(function(N){N.classList.add("visible","current-fragment")},this);let O=A.cloneNode(!0);if(i){let N=O.querySelector(".slide-number-pdf"),Y=_+1;N.innerHTML+="."+Y}h.push(O),$=T},this),S.forEach(function(T){T.forEach(function(_){_.classList.remove("visible","current-fragment")})})}else L(A,".fragment:not(.fade-out)").forEach(function(S){S.classList.add("visible")})}},this),yield new Promise(requestAnimationFrame),h.forEach(d=>g.appendChild(d)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.dispatchEvent({type:"pdf-ready"}),c.classList.remove("loading-scroll-mode")})}isActive(){return this.Reveal.getConfig().view==="print"}},Xn=class{constructor(t){this.Reveal=t}configure(t,e){t.fragments===!1?this.disable():e.fragments===!1&&this.enable()}disable(){L(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.add("visible"),t.classList.remove("current-fragment")})}enable(){L(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.remove("visible"),t.classList.remove("current-fragment")})}availableRoutes(){let t=this.Reveal.getCurrentSlide();if(t&&this.Reveal.getConfig().fragments){let e=t.querySelectorAll(".fragment:not(.disabled)"),i=t.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:e.length-i.length>0,next:!!i.length}}else return{prev:!1,next:!1}}sort(t,e=!1){t=Array.from(t);let i=[],s=[],n=[];t.forEach(l=>{if(l.hasAttribute("data-fragment-index")){let a=parseInt(l.getAttribute("data-fragment-index"),10);i[a]||(i[a]=[]),i[a].push(l)}else s.push([l])}),i=i.concat(s);let r=0;return i.forEach(l=>{l.forEach(a=>{n.push(a),a.setAttribute("data-fragment-index",r)}),r++}),e===!0?i:n}sortAll(){this.Reveal.getHorizontalSlides().forEach(t=>{let e=L(t,"section");e.forEach((i,s)=>{this.sort(i.querySelectorAll(".fragment"))},this),e.length===0&&this.sort(t.querySelectorAll(".fragment"))})}update(t,e,i=this.Reveal.getCurrentSlide()){let s={shown:[],hidden:[]};if(i&&this.Reveal.getConfig().fragments&&(e||(e=this.sort(i.querySelectorAll(".fragment"))),e.length)){let n=0;if(typeof t!="number"){let r=this.sort(i.querySelectorAll(".fragment.visible")).pop();r&&(t=parseInt(r.getAttribute("data-fragment-index")||0,10))}Array.from(e).forEach((r,l)=>{if(r.hasAttribute("data-fragment-index")&&(l=parseInt(r.getAttribute("data-fragment-index"),10)),n=Math.max(n,l),l<=t){let a=r.classList.contains("visible");r.classList.add("visible"),r.classList.remove("current-fragment"),l===t&&(this.Reveal.announceStatus(this.Reveal.getStatusText(r)),r.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(r)),a||(s.shown.push(r),this.Reveal.dispatchEvent({target:r,type:"visible",bubbles:!1}))}else{let a=r.classList.contains("visible");r.classList.remove("visible"),r.classList.remove("current-fragment"),a&&(this.Reveal.slideContent.stopEmbeddedContent(r),s.hidden.push(r),this.Reveal.dispatchEvent({target:r,type:"hidden",bubbles:!1}))}}),t=typeof t=="number"?t:-1,t=Math.max(Math.min(t,n),-1),i.setAttribute("data-fragment",t)}return s.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:s.hidden[0],fragments:s.hidden}}),s.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:s.shown[0],fragments:s.shown}}),s}sync(t=this.Reveal.getCurrentSlide()){return this.sort(t.querySelectorAll(".fragment"))}goto(t,e=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let s=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(s.length){if(typeof t!="number"){let r=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();t=r?parseInt(r.getAttribute("data-fragment-index")||0,10):-1}t+=e;let n=this.update(t,s);return this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!!(n.shown.length||n.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}},Gn=class{constructor(t){this.Reveal=t,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.Reveal.isScrollView()&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),L(this.Reveal.getRevealElement(),Ie).forEach(i=>{i.classList.contains("stack")||i.addEventListener("click",this.onSlideClicked,!0)});let t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+70,this.overviewSlideHeight=t.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();let e=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((t,e)=>{t.setAttribute("data-index-h",e),Ee(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),t.classList.contains("stack")&&L(t,"section").forEach((i,s)=>{i.setAttribute("data-index-h",e),i.setAttribute("data-index-v",s),Ee(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((t,e)=>{Ee(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),L(t,".slide-background").forEach((i,s)=>{Ee(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})})}update(){let t=Math.min(window.innerWidth,window.innerHeight),e=Math.max(t/5,150)/t,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+e+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),L(this.Reveal.getRevealElement(),Ie).forEach(e=>{Ee(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),L(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{Ee(e,"")}),this.Reveal.transformSlides({overview:""});let t=this.Reveal.getIndices();this.Reveal.slide(t.h,t.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(t){if(this.isActive()){t.preventDefault();let e=t.target;for(;e&&!e.nodeName.match(/section/gi);)e=e.parentNode;if(e&&!e.classList.contains("disabled")&&(this.deactivate(),e.nodeName.match(/section/gi))){let i=parseInt(e.getAttribute("data-index-h"),10),s=parseInt(e.getAttribute("data-index-v"),10);this.Reveal.slide(i,s)}}}},Yn=class{constructor(t){this.Reveal=t,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this)}configure(t,e){t.navigationMode==="linear"?(this.shortcuts["&#8594; , &#8595; , SPACE , N , L , J"]="Next slide",this.shortcuts["&#8592; , &#8593; , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["&#8592; , H"]="Navigate left",this.shortcuts["&#8594; , L"]="Navigate right",this.shortcuts["&#8593; , K"]="Navigate up",this.shortcuts["&#8595; , J"]="Navigate down"),this.shortcuts["Alt + &#8592;/&#8593/&#8594;/&#8595;"]="Navigate without fragments",this.shortcuts["Shift + &#8592;/&#8593/&#8594;/&#8595;"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts.G="Jump to slide",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1)}addKeyBinding(t,e){typeof t=="object"&&t.keyCode?this.bindings[t.keyCode]={callback:e,key:t.key,description:t.description}:this.bindings[t]={callback:e,key:null,description:null}}removeKeyBinding(t){delete this.bindings[t]}triggerKey(t){this.onDocumentKeyDown({keyCode:t})}registerKeyboardShortcut(t,e){this.shortcuts[t]=e}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyDown(t){let e=this.Reveal.getConfig();if(typeof e.keyboardCondition=="function"&&e.keyboardCondition(t)===!1||e.keyboardCondition==="focused"&&!this.Reveal.isFocused())return!0;let i=t.keyCode,s=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(t);let n=document.activeElement&&document.activeElement.isContentEditable===!0,r=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),l=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),a=!([32,37,38,39,40,63,78,80,191].indexOf(t.keyCode)!==-1&&t.shiftKey||t.altKey)&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(n||r||l||a)return;let c=[66,86,190,191,112],o;if(typeof e.keyboard=="object")for(o in e.keyboard)e.keyboard[o]==="togglePause"&&c.push(parseInt(o,10));if(this.Reveal.isOverlayOpen()&&!["Escape","f","c","b","."].includes(t.key)||this.Reveal.isPaused()&&c.indexOf(i)===-1)return!1;let u=e.navigationMode==="linear"||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),h=!1;if(typeof e.keyboard=="object"){for(o in e.keyboard)if(parseInt(o,10)===i){let g=e.keyboard[o];typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}if(h===!1){for(o in this.bindings)if(parseInt(o,10)===i){let g=this.bindings[o].callback;typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}h===!1&&(h=!0,i===80||i===33?this.Reveal.prev({skipFragments:t.altKey}):i===78||i===34?this.Reveal.next({skipFragments:t.altKey}):i===72||i===37?t.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&u?e.rtl?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.left({skipFragments:t.altKey}):i===76||i===39?t.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&u?e.rtl?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey}):this.Reveal.right({skipFragments:t.altKey}):i===75||i===38?t.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&u?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.up({skipFragments:t.altKey}):i===74||i===40?t.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&u?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.down({skipFragments:t.altKey}):i===36?this.Reveal.slide(0):i===35?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):i===32?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),t.shiftKey?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey})):[58,59,66,86,190].includes(i)||i===191&&!t.shiftKey?this.Reveal.togglePause():i===70?Di(e.embedded?this.Reveal.getViewportElement():document.documentElement):i===65?e.autoSlideStoppable&&this.Reveal.toggleAutoSlide(s):i===71?e.jumpToSlide&&this.Reveal.toggleJumpToSlide():i===67&&this.Reveal.isOverlayOpen()?this.Reveal.closeOverlay():(i===63||i===191)&&t.shiftKey||i===112?this.Reveal.toggleHelp():h=!1),h?t.preventDefault&&t.preventDefault():i===27||i===79?(this.Reveal.closeOverlay()===!1&&this.Reveal.overview.toggle(),t.preventDefault&&t.preventDefault()):i===13&&this.Reveal.overview.isActive()&&(this.Reveal.overview.deactivate(),t.preventDefault&&t.preventDefault()),this.Reveal.cueAutoSlide()}},Jn=class{constructor(t){Hi(this,"MAX_REPLACE_STATE_FREQUENCY",1e3),this.Reveal=t,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(t=window.location.hash,e={}){let i=t.replace(/^#\/?/,""),s=i.split("/");if(!/^[0-9]*$/.test(s[0])&&i.length){let n,r;/\/[-\d]+$/g.test(i)&&(r=parseInt(i.split("/").pop(),10),r=isNaN(r)?void 0:r,i=i.split("/").shift());try{let l=decodeURIComponent(i);n=(document.getElementById(l)||document.querySelector(`[data-id="${l}"]`)).closest(".slides section")}catch{}if(n)return Bi(ye({},this.Reveal.getIndices(n)),{f:r})}else{let n=this.Reveal.getConfig(),r=n.hashOneBasedIndex||e.oneBasedIndex?1:0,l=parseInt(s[0],10)-r||0,a=parseInt(s[1],10)-r||0,c;return n.fragmentInURL&&(c=parseInt(s[2],10),isNaN(c)&&(c=void 0)),{h:l,v:a,f:c}}return null}readURL(){let t=this.Reveal.getIndices(),e=this.getIndicesFromHash();e?(e.h!==t.h||e.v!==t.v||e.f!==void 0)&&this.Reveal.slide(e.h,e.v,e.f):this.Reveal.slide(t.h||0,t.v||0)}writeURL(t){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),typeof t=="number")this.writeURLTimeout=setTimeout(this.writeURL,t);else if(i){let s=this.getHash();e.history?window.location.hash=s:e.hash&&(s==="/"?this.debouncedReplaceState(window.location.pathname+window.location.search):this.debouncedReplaceState("#"+s))}}replaceState(t){window.history.replaceState(null,null,t),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(t){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(t):this.replaceStateTimeout=setTimeout(()=>this.replaceState(t),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(t){let e="/",i=t||this.Reveal.getCurrentSlide(),s=i?i.getAttribute("id"):null;s&&(s=encodeURIComponent(s));let n=this.Reveal.getIndices(t);if(this.Reveal.getConfig().fragmentInURL||(n.f=void 0),typeof s=="string"&&s.length)e="/"+s,n.f>=0&&(e+="/"+n.f);else{let r=this.Reveal.getConfig().hashOneBasedIndex?1:0;(n.h>0||n.v>0||n.f>=0)&&(e+=n.h+r),(n.v>0||n.f>=0)&&(e+="/"+(n.v+r)),n.f>=0&&(e+="/"+n.f)}return e}onWindowHashChange(t){this.readURL()}},er=class{constructor(t){this.Reveal=t,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this),this.onEnterFullscreen=this.onEnterFullscreen.bind(this)}render(){let t=this.Reveal.getConfig().rtl,e=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`<button class="navigate-left" aria-label="${t?"next slide":"previous slide"}"><div class="controls-arrow"></div></button>
7
+ </a>`}destroy(){this.element.remove()}},On=class{constructor(t){this.Reveal=t,this.onInput=this.onInput.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){this.element=document.createElement("div"),this.element.className="jump-to-slide",this.jumpInput=document.createElement("input"),this.jumpInput.type="text",this.jumpInput.className="jump-to-slide-input",this.jumpInput.placeholder="Jump to slide",this.jumpInput.addEventListener("input",this.onInput),this.jumpInput.addEventListener("keydown",this.onKeyDown),this.jumpInput.addEventListener("blur",this.onBlur),this.element.appendChild(this.jumpInput)}show(){this.indicesOnShow=this.Reveal.getIndices(),this.Reveal.getRevealElement().appendChild(this.element),this.jumpInput.focus()}hide(){this.isVisible()&&(this.element.remove(),this.jumpInput.value="",clearTimeout(this.jumpTimeout),delete this.jumpTimeout)}isVisible(){return!!this.element.parentNode}jump(){clearTimeout(this.jumpTimeout),delete this.jumpTimeout;let t=this.jumpInput.value.trim(""),e;if(/^\d+$/.test(t)){let i=this.Reveal.getConfig().slideNumber;if(i===Ut||i===Vi){let s=this.Reveal.getSlides()[parseInt(t,10)-1];s&&(e=this.Reveal.getIndices(s))}}return e||(e=(/^\d+\.\d+$/.test(t)&&(t=t.replace(".","/")),this.Reveal.location.getIndicesFromHash(t,{oneBasedIndex:!0}))),!e&&/\S+/i.test(t)&&t.length>1&&(e=this.search(t)),e&&t!==""?(this.Reveal.slide(e.h,e.v,e.f),!0):(this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),!1)}jumpAfter(t){clearTimeout(this.jumpTimeout),this.jumpTimeout=setTimeout(()=>this.jump(),t)}search(t){let e=RegExp("\\b"+t.trim()+"\\b","i"),i=this.Reveal.getSlides().find(s=>e.test(s.innerText));return i?this.Reveal.getIndices(i):null}cancel(){this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),this.hide()}confirm(){this.jump(),this.hide()}destroy(){this.jumpInput.removeEventListener("input",this.onInput),this.jumpInput.removeEventListener("keydown",this.onKeyDown),this.jumpInput.removeEventListener("blur",this.onBlur),this.element.remove()}onKeyDown(t){t.keyCode===13?this.confirm():t.keyCode===27&&(this.cancel(),t.stopImmediatePropagation())}onInput(t){this.jumpAfter(200)}onBlur(){setTimeout(()=>this.hide(),1)}},Wt=t=>{let e=t.match(/^#([0-9a-f]{3})$/i);if(e&&e[1]){let r=e[1];return{r:parseInt(r.charAt(0),16)*17,g:parseInt(r.charAt(1),16)*17,b:parseInt(r.charAt(2),16)*17}}let i=t.match(/^#([0-9a-f]{6})$/i);if(i&&i[1]){let r=i[1];return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}}let s=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(s)return{r:parseInt(s[1],10),g:parseInt(s[2],10),b:parseInt(s[3],10)};let n=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return n?{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10),a:parseFloat(n[4])}:null},Fn=t=>(typeof t=="string"&&(t=Wt(t)),t?(t.r*299+t.g*587+t.b*114)/1e3:null),Vn=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(t=>{let e=this.createBackground(t,this.element);P(t,"section").forEach(i=>{this.createBackground(i,e),e.classList.add("stack")})}),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(t,e){let i=document.createElement("div");i.className="slide-background "+t.className.replace(/present|past|future/,"");let s=document.createElement("div");return s.className="slide-background-content",i.appendChild(s),e.appendChild(i),t.slideBackgroundElement=i,t.slideBackgroundContentElement=s,this.sync(t),i}sync(t){let e=t.slideBackgroundElement,i=t.slideBackgroundContentElement,s={background:t.getAttribute("data-background"),backgroundSize:t.getAttribute("data-background-size"),backgroundImage:t.getAttribute("data-background-image"),backgroundVideo:t.getAttribute("data-background-video"),backgroundIframe:t.getAttribute("data-background-iframe"),backgroundColor:t.getAttribute("data-background-color"),backgroundGradient:t.getAttribute("data-background-gradient"),backgroundRepeat:t.getAttribute("data-background-repeat"),backgroundPosition:t.getAttribute("data-background-position"),backgroundTransition:t.getAttribute("data-background-transition"),backgroundOpacity:t.getAttribute("data-background-opacity")},n=t.hasAttribute("data-preload");t.classList.remove("has-dark-background"),t.classList.remove("has-light-background"),e.removeAttribute("data-loaded"),e.removeAttribute("data-background-hash"),e.removeAttribute("data-background-size"),e.removeAttribute("data-background-transition"),e.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",s.background&&(/^(http|file|\/\/)/gi.test(s.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(s.background)?t.setAttribute("data-background-image",s.background):e.style.background=s.background),(s.background||s.backgroundColor||s.backgroundGradient||s.backgroundImage||s.backgroundVideo||s.backgroundIframe)&&e.setAttribute("data-background-hash",s.background+s.backgroundSize+s.backgroundImage+s.backgroundVideo+s.backgroundIframe+s.backgroundColor+s.backgroundGradient+s.backgroundRepeat+s.backgroundPosition+s.backgroundTransition+s.backgroundOpacity),s.backgroundSize&&e.setAttribute("data-background-size",s.backgroundSize),s.backgroundColor&&(e.style.backgroundColor=s.backgroundColor),s.backgroundGradient&&(e.style.backgroundImage=s.backgroundGradient),s.backgroundTransition&&e.setAttribute("data-background-transition",s.backgroundTransition),n&&e.setAttribute("data-preload",""),s.backgroundSize&&(i.style.backgroundSize=s.backgroundSize),s.backgroundRepeat&&(i.style.backgroundRepeat=s.backgroundRepeat),s.backgroundPosition&&(i.style.backgroundPosition=s.backgroundPosition),s.backgroundOpacity&&(i.style.opacity=s.backgroundOpacity);let r=this.getContrastClass(t);typeof r=="string"&&t.classList.add(r)}getContrastClass(t){let e=t.slideBackgroundElement,i=t.getAttribute("data-background-color");if(!i||!Wt(i)){let s=window.getComputedStyle(e);s&&s.backgroundColor&&(i=s.backgroundColor)}if(i){let s=Wt(i);if(s&&s.a!==0)return Fn(i)<128?"has-dark-background":"has-light-background"}return null}bubbleSlideContrastClassToElement(t,e){["has-light-background","has-dark-background"].forEach(i=>{t.classList.contains(i)?e.classList.add(i):e.classList.remove(i)},this)}update(t=!1){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide(),s=this.Reveal.getIndices(),n=null,r=e.rtl?"future":"past",l=e.rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((c,o)=>{c.classList.remove("past","present","future"),o<s.h?c.classList.add(r):o>s.h?c.classList.add(l):(c.classList.add("present"),n=c),(t||o===s.h)&&P(c,".slide-background").forEach((d,h)=>{d.classList.remove("past","present","future");let g=typeof s.v=="number"?s.v:0;h<g?d.classList.add("past"):h>g?d.classList.add("future"):(d.classList.add("present"),o===s.h&&(n=d))})}),this.previousBackground&&!this.previousBackground.closest("body")&&(this.previousBackground=null),n&&this.previousBackground){let c=this.previousBackground.getAttribute("data-background-hash"),o=n.getAttribute("data-background-hash");if(o&&o===c&&n!==this.previousBackground){this.element.classList.add("no-transition");let d=n.querySelector("video"),h=this.previousBackground.querySelector("video");if(d&&h){let g=d.parentNode;h.parentNode.appendChild(d),g.appendChild(h)}}}let a=n!==this.previousBackground;if(a&&this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),a&&n){this.Reveal.slideContent.startEmbeddedContent(n);let c=n.querySelector(".slide-background-content");if(c){let o=c.style.backgroundImage||"";/\.gif/i.test(o)&&(c.style.backgroundImage="",window.getComputedStyle(c).opacity,c.style.backgroundImage=o)}this.previousBackground=n}i&&this.bubbleSlideContrastClassToElement(i,this.Reveal.getRevealElement()),setTimeout(()=>{this.element.classList.remove("no-transition")},10)}updateParallax(){let t=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let e=this.Reveal.getHorizontalSlides(),i=this.Reveal.getVerticalSlides(),s=this.element.style.backgroundSize.split(" "),n,r;s.length===1?n=r=parseInt(s[0],10):(n=parseInt(s[0],10),r=parseInt(s[1],10));let l=this.element.offsetWidth,a=e.length,c,o;c=typeof this.Reveal.getConfig().parallaxBackgroundHorizontal=="number"?this.Reveal.getConfig().parallaxBackgroundHorizontal:a>1?(n-l)/(a-1):0,o=c*t.h*-1;let d=this.element.offsetHeight,h=i.length,g,p;g=typeof this.Reveal.getConfig().parallaxBackgroundVertical=="number"?this.Reveal.getConfig().parallaxBackgroundVertical:(r-d)/(h-1),p=h>0?g*t.v:0,this.element.style.backgroundPosition=o+"px "+-p+"px"}}destroy(){this.element.remove()}},Ui=0,Un=class{constructor(t){this.Reveal=t}run(t,e){this.reset();let i=this.Reveal.getSlides(),s=i.indexOf(e),n=i.indexOf(t);if(t&&e&&t.hasAttribute("data-auto-animate")&&e.hasAttribute("data-auto-animate")&&t.getAttribute("data-auto-animate-id")===e.getAttribute("data-auto-animate-id")&&!(s>n?e:t).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||Ft();let r=this.getAutoAnimateOptions(e);t.dataset.autoAnimate="pending",e.dataset.autoAnimate="pending",r.slideDirection=s>n?"forward":"backward";let l=t.style.display==="none";l&&(t.style.display=this.Reveal.getConfig().display);let a=this.getAutoAnimatableElements(t,e).map(c=>this.autoAnimateElements(c.from,c.to,c.options||{},r,Ui++));if(l&&(t.style.display="none"),e.dataset.autoAnimateUnmatched!=="false"&&this.Reveal.getConfig().autoAnimateUnmatched===!0){let c=r.duration*.8,o=r.duration*.2;this.getUnmatchedAutoAnimateElements(e).forEach(d=>{let h=this.getAutoAnimateOptions(d,r),g="unmatched";(h.duration!==r.duration||h.delay!==r.delay)&&(g="unmatched-"+Ui++,a.push(`[data-auto-animate="running"] [data-auto-animate-target="${g}"] { transition: opacity ${h.duration}s ease ${h.delay}s; }`)),d.dataset.autoAnimateTarget=g},this),a.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${c}s ease ${o}s; }`)}this.autoAnimateStyleSheet.innerHTML=a.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,e.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:t,toSlide:e,sheet:this.autoAnimateStyleSheet}})}}reset(){P(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(t=>{t.dataset.autoAnimate=""}),P(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(t=>{delete t.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(t,e,i,s,n){t.dataset.autoAnimateTarget="",e.dataset.autoAnimateTarget=n;let r=this.getAutoAnimateOptions(e,s);i.delay!==void 0&&(r.delay=i.delay),i.duration!==void 0&&(r.duration=i.duration),i.easing!==void 0&&(r.easing=i.easing);let l=this.getAutoAnimatableProperties("from",t,i),a=this.getAutoAnimatableProperties("to",e,i);if(e.classList.contains("fragment")&&delete a.styles.opacity,i.translate!==!1||i.scale!==!1){let d=this.Reveal.getScale(),h={x:(l.x-a.x)/d,y:(l.y-a.y)/d,scaleX:l.width/a.width,scaleY:l.height/a.height};h.x=Math.round(h.x*1e3)/1e3,h.y=Math.round(h.y*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3;let g=i.translate!==!1&&(h.x!==0||h.y!==0),p=i.scale!==!1&&(h.scaleX!==0||h.scaleY!==0);if(g||p){let u=[];g&&u.push(`translate(${h.x}px, ${h.y}px)`),p&&u.push(`scale(${h.scaleX}, ${h.scaleY})`),l.styles.transform=u.join(" "),l.styles["transform-origin"]="top left",a.styles.transform="none"}}for(let d in a.styles){let h=a.styles[d],g=l.styles[d];h===g?delete a.styles[d]:(h.explicitValue===!0&&(a.styles[d]=h.value),g.explicitValue===!0&&(l.styles[d]=g.value))}let c="",o=Object.keys(a.styles);if(o.length>0){l.styles.transition="none",a.styles.transition=`all ${r.duration}s ${r.easing} ${r.delay}s`,a.styles["transition-property"]=o.join(", "),a.styles["will-change"]=o.join(", ");let d=Object.keys(l.styles).map(g=>g+": "+l.styles[g]+" !important;").join(""),h=Object.keys(a.styles).map(g=>g+": "+a.styles[g]+" !important;").join("");c='[data-auto-animate-target="'+n+'"] {'+d+'}[data-auto-animate="running"] [data-auto-animate-target="'+n+'"] {'+h+"}"}return c}getAutoAnimateOptions(t,e){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=_e(i,e),t.parentNode){let s=ee(t.parentNode,"[data-auto-animate-target]");s&&(i=this.getAutoAnimateOptions(s,i))}return t.dataset.autoAnimateEasing&&(i.easing=t.dataset.autoAnimateEasing),t.dataset.autoAnimateDuration&&(i.duration=parseFloat(t.dataset.autoAnimateDuration)),t.dataset.autoAnimateDelay&&(i.delay=parseFloat(t.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(t,e,i){let s=this.Reveal.getConfig(),n={styles:[]};if(i.translate!==!1||i.scale!==!1){let l;if(typeof i.measure=="function")l=i.measure(e);else if(s.center)l=e.getBoundingClientRect();else{let a=this.Reveal.getScale();l={x:e.offsetLeft*a,y:e.offsetTop*a,width:e.offsetWidth*a,height:e.offsetHeight*a}}n.x=l.x,n.y=l.y,n.width=l.width,n.height=l.height}let r=getComputedStyle(e);return(i.styles||s.autoAnimateStyles).forEach(l=>{let a;typeof l=="string"&&(l={property:l}),l.from!==void 0&&t==="from"?a={value:l.from,explicitValue:!0}:l.to!==void 0&&t==="to"?a={value:l.to,explicitValue:!0}:(l.property==="line-height"&&(a=parseFloat(r["line-height"])/parseFloat(r["font-size"])),isNaN(a)&&(a=r[l.property])),a!==""&&(n.styles[l.property]=a)}),n}getAutoAnimatableElements(t,e){let i=(typeof this.Reveal.getConfig().autoAnimateMatcher=="function"?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,t,e),s=[];return i.filter((n,r)=>{if(s.indexOf(n.to)===-1)return s.push(n.to),!0})}getAutoAnimatePairs(t,e){let i=[],s="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,t,e,"[data-id]",n=>n.nodeName+":::"+n.getAttribute("data-id")),this.findAutoAnimateMatches(i,t,e,s,n=>n.nodeName+":::"+n.textContent.trim()),this.findAutoAnimateMatches(i,t,e,"img, video, iframe",n=>n.nodeName+":::"+(n.getAttribute("src")||n.getAttribute("data-src"))),this.findAutoAnimateMatches(i,t,e,"pre",n=>n.nodeName+":::"+n.textContent.trim()),i.forEach(n=>{ot(n.from,s)?n.options={scale:!1}:ot(n.from,"pre")&&(n.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-code",r=>r.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-numbers[data-line-number]",r=>r.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(t){let e=this.Reveal.getScale();return{x:Math.round(t.offsetLeft*e*100)/100,y:Math.round(t.offsetTop*e*100)/100,width:Math.round(t.offsetWidth*e*100)/100,height:Math.round(t.offsetHeight*e*100)/100}}findAutoAnimateMatches(t,e,i,s,n,r){let l={},a={};[].slice.call(e.querySelectorAll(s)).forEach((c,o)=>{let d=n(c);typeof d=="string"&&d.length&&(l[d]=l[d]||[],l[d].push(c))}),[].slice.call(i.querySelectorAll(s)).forEach((c,o)=>{let d=n(c);a[d]=a[d]||[],a[d].push(c);let h;if(l[d]){let g=a[d].length-1,p=l[d].length-1;l[d][g]?(h=l[d][g],l[d][g]=null):l[d][p]&&(h=l[d][p],l[d][p]=null)}h&&t.push({from:h,to:c,options:r})})}getUnmatchedAutoAnimateElements(t){return[].slice.call(t.children).reduce((e,i)=>{let s=i.querySelector("[data-auto-animate-target]");return!i.hasAttribute("data-auto-animate-target")&&!s&&e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(i))),e},[])}},Wn=500,Kn=4,Zn=6,Qn=8,Xn=class{constructor(t){this.Reveal=t,this.active=!1,this.activatedCallbacks=[],this.onScroll=this.onScroll.bind(this)}activate(){if(this.active)return;let t=this.Reveal.getState();this.active=!0,this.slideHTMLBeforeActivation=this.Reveal.getSlidesElement().innerHTML;let e=P(this.Reveal.getRevealElement(),we),i=P(this.Reveal.getRevealElement(),Hn);this.viewportElement.classList.add("loading-scroll-mode","reveal-scroll");let s,n=window.getComputedStyle(this.viewportElement);n&&n.background&&(s=n.background);let r=[],l=e[0].parentNode,a,c=(o,d,h,g)=>{let p;if(a&&this.Reveal.shouldAutoAnimateBetween(a,o))p=document.createElement("div"),p.className="scroll-page-content scroll-auto-animate-page",p.style.display="none",a.closest(".scroll-page-content").parentNode.appendChild(p);else{let u=document.createElement("div");if(u.className="scroll-page",r.push(u),g&&i.length>d){let k=i[d],N=window.getComputedStyle(k);N&&N.background?u.style.background=N.background:s&&(u.style.background=s)}else s&&(u.style.background=s);let b=document.createElement("div");b.className="scroll-page-sticky",u.appendChild(b),p=document.createElement("div"),p.className="scroll-page-content",b.appendChild(p)}p.appendChild(o),o.classList.remove("past","future"),o.setAttribute("data-index-h",d),o.setAttribute("data-index-v",h),o.slideBackgroundElement&&(o.slideBackgroundElement.remove("past","future"),p.insertBefore(o.slideBackgroundElement,o)),a=o};e.forEach((o,d)=>{this.Reveal.isVerticalStack(o)?o.querySelectorAll("section").forEach((h,g)=>{c(h,d,g,!0)}):c(o,d,0)},this),this.createProgressBar(),P(this.Reveal.getRevealElement(),".stack").forEach(o=>o.remove()),r.forEach(o=>l.appendChild(o)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.layout(),this.Reveal.setState(t),this.activatedCallbacks.forEach(o=>o()),this.activatedCallbacks=[],this.restoreScrollPosition(),this.viewportElement.classList.remove("loading-scroll-mode"),this.viewportElement.addEventListener("scroll",this.onScroll,{passive:!0})}deactivate(){if(!this.active)return;let t=this.Reveal.getState();this.active=!1,this.viewportElement.removeEventListener("scroll",this.onScroll),this.viewportElement.classList.remove("reveal-scroll"),this.removeProgressBar(),this.Reveal.getSlidesElement().innerHTML=this.slideHTMLBeforeActivation,this.Reveal.sync(),this.Reveal.setState(t),this.slideHTMLBeforeActivation=null}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}createProgressBar(){this.progressBar=document.createElement("div"),this.progressBar.className="scrollbar",this.progressBarInner=document.createElement("div"),this.progressBarInner.className="scrollbar-inner",this.progressBar.appendChild(this.progressBarInner),this.progressBarPlayhead=document.createElement("div"),this.progressBarPlayhead.className="scrollbar-playhead",this.progressBarInner.appendChild(this.progressBarPlayhead),this.viewportElement.insertBefore(this.progressBar,this.viewportElement.firstChild);let t=i=>{let s=(i.clientY-this.progressBarInner.getBoundingClientRect().top)/this.progressBarHeight;s=Math.max(Math.min(s,1),0),this.viewportElement.scrollTop=s*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight)},e=i=>{this.draggingProgressBar=!1,this.showProgressBar(),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",e)};this.progressBarInner.addEventListener("mousedown",i=>{i.preventDefault(),this.draggingProgressBar=!0,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e),t(i)})}removeProgressBar(){this.progressBar&&(this.progressBar=(this.progressBar.remove(),null))}layout(){this.isActive()&&(this.syncPages(),this.syncScrollPosition())}syncPages(){let t=this.Reveal.getConfig(),e=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=this.Reveal.getScale(),s=t.scrollLayout==="compact",n=this.viewportElement.offsetHeight,r=e.height*i,l=s?r:n;this.scrollTriggerHeight=s?r:n,this.viewportElement.style.setProperty("--page-height",l+"px"),this.viewportElement.style.scrollSnapType=typeof t.scrollSnap=="string"?`y ${t.scrollSnap}`:"",this.slideTriggers=[],this.pages=Array.from(this.Reveal.getRevealElement().querySelectorAll(".scroll-page")).map(a=>{let c=this.createPage({pageElement:a,slideElement:a.querySelector("section"),stickyElement:a.querySelector(".scroll-page-sticky"),contentElement:a.querySelector(".scroll-page-content"),backgroundElement:a.querySelector(".slide-background"),autoAnimateElements:a.querySelectorAll(".scroll-auto-animate-page"),autoAnimatePages:[]});c.pageElement.style.setProperty("--slide-height",t.center===!0?"auto":e.height+"px"),this.slideTriggers.push({page:c,activate:()=>this.activatePage(c),deactivate:()=>this.deactivatePage(c)}),this.createFragmentTriggersForPage(c),c.autoAnimateElements.length>0&&this.createAutoAnimateTriggersForPage(c);let o=Math.max(c.scrollTriggers.length-1,0);o+=c.autoAnimatePages.reduce((d,h)=>d+Math.max(h.scrollTriggers.length-1,0),c.autoAnimatePages.length),c.pageElement.querySelectorAll(".scroll-snap-point").forEach(d=>d.remove());for(let d=0;d<o+1;d++){let h=document.createElement("div");h.className="scroll-snap-point",h.style.height=this.scrollTriggerHeight+"px",h.style.scrollSnapAlign=s?"center":"start",c.pageElement.appendChild(h),d===0&&(h.style.marginTop=-this.scrollTriggerHeight+"px")}return s&&c.scrollTriggers.length>0?(c.pageHeight=n,c.pageElement.style.setProperty("--page-height",n+"px")):(c.pageHeight=l,c.pageElement.style.removeProperty("--page-height")),c.scrollPadding=this.scrollTriggerHeight*o,c.totalHeight=c.pageHeight+c.scrollPadding,c.pageElement.style.setProperty("--page-scroll-padding",c.scrollPadding+"px"),o>0?(c.stickyElement.style.position="sticky",c.stickyElement.style.top=Math.max((n-c.pageHeight)/2,0)+"px"):(c.stickyElement.style.position="relative",c.pageElement.style.scrollSnapAlign=c.pageHeight<n?"center":"start"),c}),this.setTriggerRanges(),this.viewportElement.setAttribute("data-scrollbar",t.scrollProgress),t.scrollProgress&&this.totalScrollTriggerCount>1?(this.progressBar||this.createProgressBar(),this.syncProgressBar()):this.removeProgressBar()}setTriggerRanges(){this.totalScrollTriggerCount=this.slideTriggers.reduce((e,i)=>e+Math.max(i.page.scrollTriggers.length,1),0);let t=0;this.slideTriggers.forEach((e,i)=>{e.range=[t,t+Math.max(e.page.scrollTriggers.length,1)/this.totalScrollTriggerCount];let s=(e.range[1]-e.range[0])/e.page.scrollTriggers.length;e.page.scrollTriggers.forEach((n,r)=>{n.range=[t+r*s,t+(r+1)*s]}),t=e.range[1]}),this.slideTriggers[this.slideTriggers.length-1].range[1]=1}createFragmentTriggersForPage(t,e){e||(e=t.slideElement);let i=this.Reveal.fragments.sort(e.querySelectorAll(".fragment"),!0);return i.length&&(t.fragments=this.Reveal.fragments.sort(e.querySelectorAll(".fragment:not(.disabled)")),t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(-1,t.fragments,e)}}),i.forEach((s,n)=>{t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(n,t.fragments,e)}})})),t.scrollTriggers.length}createAutoAnimateTriggersForPage(t){t.autoAnimateElements.length>0&&this.slideTriggers.push(...Array.from(t.autoAnimateElements).map((e,i)=>{let s=this.createPage({slideElement:e.querySelector("section"),contentElement:e,backgroundElement:e.querySelector(".slide-background")});return this.createFragmentTriggersForPage(s,s.slideElement),t.autoAnimatePages.push(s),{page:s,activate:()=>this.activatePage(s),deactivate:()=>this.deactivatePage(s)}}))}createPage(t){return t.scrollTriggers=[],t.indexh=parseInt(t.slideElement.getAttribute("data-index-h"),10),t.indexv=parseInt(t.slideElement.getAttribute("data-index-v"),10),t}syncProgressBar(){this.progressBarInner.querySelectorAll(".scrollbar-slide").forEach(r=>r.remove());let t=this.viewportElement.scrollHeight,e=this.viewportElement.offsetHeight,i=e/t;this.progressBarHeight=this.progressBarInner.offsetHeight,this.playheadHeight=Math.max(i*this.progressBarHeight,Qn),this.progressBarScrollableHeight=this.progressBarHeight-this.playheadHeight;let s=e/t*this.progressBarHeight,n=Math.min(s/8,Kn);this.progressBarPlayhead.style.height=this.playheadHeight-n+"px",s>Zn?this.slideTriggers.forEach(r=>{let{page:l}=r;l.progressBarSlide=document.createElement("div"),l.progressBarSlide.className="scrollbar-slide",l.progressBarSlide.style.top=r.range[0]*this.progressBarHeight+"px",l.progressBarSlide.style.height=(r.range[1]-r.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.classList.toggle("has-triggers",l.scrollTriggers.length>0),this.progressBarInner.appendChild(l.progressBarSlide),l.scrollTriggerElements=l.scrollTriggers.map((a,c)=>{let o=document.createElement("div");return o.className="scrollbar-trigger",o.style.top=(a.range[0]-r.range[0])*this.progressBarHeight+"px",o.style.height=(a.range[1]-a.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.appendChild(o),c===0&&(o.style.display="none"),o})}):this.pages.forEach(r=>r.progressBarSlide=null)}syncScrollPosition(){let t=this.viewportElement.offsetHeight,e=t/this.viewportElement.scrollHeight,i=this.viewportElement.scrollTop,s=this.viewportElement.scrollHeight-t,n=Math.max(Math.min(i/s,1),0),r=Math.max(Math.min((i+t/2)/this.viewportElement.scrollHeight,1),0),l;this.slideTriggers.forEach(a=>{let{page:c}=a;n>=a.range[0]-e*2&&n<=a.range[1]+e*2&&!c.loaded?(c.loaded=!0,this.Reveal.slideContent.load(c.slideElement)):c.loaded&&(c.loaded=!1,this.Reveal.slideContent.unload(c.slideElement)),n>=a.range[0]&&n<=a.range[1]?(this.activateTrigger(a),l=a.page):a.active&&this.deactivateTrigger(a)}),l&&l.scrollTriggers.forEach(a=>{r>=a.range[0]&&r<=a.range[1]?this.activateTrigger(a):a.active&&this.deactivateTrigger(a)}),this.setProgressBarValue(i/(this.viewportElement.scrollHeight-t))}setProgressBarValue(t){this.progressBar&&(this.progressBarPlayhead.style.transform=`translateY(${t*this.progressBarScrollableHeight}px)`,this.getAllPages().filter(e=>e.progressBarSlide).forEach(e=>{e.progressBarSlide.classList.toggle("active",e.active===!0),e.scrollTriggers.forEach((i,s)=>{e.scrollTriggerElements[s].classList.toggle("active",e.active===!0&&i.active===!0)})}),this.showProgressBar())}showProgressBar(){this.progressBar.classList.add("visible"),clearTimeout(this.hideProgressBarTimeout),this.Reveal.getConfig().scrollProgress==="auto"&&!this.draggingProgressBar&&(this.hideProgressBarTimeout=setTimeout(()=>{this.progressBar&&this.progressBar.classList.remove("visible")},Wn))}prev(){this.viewportElement.scrollTop-=this.scrollTriggerHeight}next(){this.viewportElement.scrollTop+=this.scrollTriggerHeight}scrollToSlide(t){if(!this.active)this.activatedCallbacks.push(()=>this.scrollToSlide(t));else{let e=this.getScrollTriggerBySlide(t);e&&(this.viewportElement.scrollTop=e.range[0]*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight))}}storeScrollPosition(){clearTimeout(this.storeScrollPositionTimeout),this.storeScrollPositionTimeout=setTimeout(()=>{sessionStorage.setItem("reveal-scroll-top",this.viewportElement.scrollTop),sessionStorage.setItem("reveal-scroll-origin",location.origin+location.pathname),this.storeScrollPositionTimeout=null},50)}restoreScrollPosition(){let t=sessionStorage.getItem("reveal-scroll-top"),e=sessionStorage.getItem("reveal-scroll-origin");t&&e===location.origin+location.pathname&&(this.viewportElement.scrollTop=parseInt(t,10))}activatePage(t){if(!t.active){t.active=!0;let{slideElement:e,backgroundElement:i,contentElement:s,indexh:n,indexv:r}=t;s.style.display="block",e.classList.add("present"),i&&i.classList.add("present"),this.Reveal.setCurrentScrollPage(e,n,r),this.Reveal.backgrounds.bubbleSlideContrastClassToElement(e,this.viewportElement),Array.from(s.parentNode.querySelectorAll(".scroll-page-content")).forEach(l=>{l!==s&&(l.style.display="none")})}}deactivatePage(t){t.active&&(t.active=!1,t.slideElement&&t.slideElement.classList.remove("present"),t.backgroundElement&&t.backgroundElement.classList.remove("present"))}activateTrigger(t){t.active||(t.active=!0,t.activate())}deactivateTrigger(t){t.active&&(t.active=!1,t.deactivate&&t.deactivate())}getSlideByIndices(t,e){let i=this.getAllPages().find(s=>s.indexh===t&&s.indexv===e);return i?i.slideElement:null}getScrollTriggerBySlide(t){return this.slideTriggers.find(e=>e.page.slideElement===t)}getAllPages(){return this.pages.flatMap(t=>[t,...t.autoAnimatePages||[]])}onScroll(){this.syncScrollPosition(),this.storeScrollPosition()}get viewportElement(){return this.Reveal.getViewportElement()}},Gn=class{constructor(t){this.Reveal=t}activate(){return Ln(this,null,function*(){let t=this.Reveal.getConfig(),e=P(this.Reveal.getRevealElement(),Ie),i=t.slideNumber&&/all|print/i.test(t.showSlideNumber),s=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),n=Math.floor(s.width*(1+t.margin)),r=Math.floor(s.height*(1+t.margin)),l=s.width,a=s.height;yield new Promise(requestAnimationFrame),Ft("@page{size:"+n+"px "+r+"px; margin: 0px;}"),Ft(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+l+"px; max-height:"+a+"px}"),document.documentElement.classList.add("reveal-print","print-pdf"),document.body.style.width=n+"px",document.body.style.height=r+"px";let c=this.Reveal.getViewportElement(),o;if(c){let u=window.getComputedStyle(c);u&&u.background&&(o=u.background)}yield new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(l,a),yield new Promise(requestAnimationFrame);let d=e.map(u=>u.scrollHeight),h=[],g=e[0].parentNode,p=1;e.forEach(function(u,b){if(u.classList.contains("stack")===!1){let k=(n-l)/2,N=(r-a)/2,$=d[b],L=Math.max(Math.ceil($/r),1);L=Math.min(L,t.pdfMaxPagesPerSlide),(L===1&&t.center||u.classList.contains("center"))&&(N=Math.max((r-$)/2,0));let A=document.createElement("div");if(h.push(A),A.className="pdf-page",A.style.height=(r+t.pdfPageHeightOffset)*L+"px",o&&(A.style.background=o),A.appendChild(u),u.style.left=k+"px",u.style.top=N+"px",u.style.width=l+"px",this.Reveal.slideContent.layout(u),u.slideBackgroundElement&&A.insertBefore(u.slideBackgroundElement,u),t.showNotes){let S=this.Reveal.getSlideNotes(u);if(S){let B=typeof t.showNotes=="string"?t.showNotes:"inline",C=document.createElement("div");C.classList.add("speaker-notes"),C.classList.add("speaker-notes-pdf"),C.setAttribute("data-layout",B),C.innerHTML=S,B==="separate-page"?h.push(C):(C.style.left="8px",C.style.bottom="8px",C.style.width=n-16+"px",A.appendChild(C))}}if(i){let S=document.createElement("div");S.classList.add("slide-number"),S.classList.add("slide-number-pdf"),S.innerHTML=p++,A.appendChild(S)}if(t.pdfSeparateFragments){let S=this.Reveal.fragments.sort(A.querySelectorAll(".fragment"),!0),B;S.forEach(function(C,_){B&&B.forEach(function(M){M.classList.remove("current-fragment")}),C.forEach(function(M){M.classList.add("visible","current-fragment")},this);let O=A.cloneNode(!0);if(i){let M=O.querySelector(".slide-number-pdf"),Y=_+1;M.innerHTML+="."+Y}h.push(O),B=C},this),S.forEach(function(C){C.forEach(function(_){_.classList.remove("visible","current-fragment")})})}else P(A,".fragment:not(.fade-out)").forEach(function(S){S.classList.add("visible")})}},this),yield new Promise(requestAnimationFrame),h.forEach(u=>g.appendChild(u)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.dispatchEvent({type:"pdf-ready"}),c.classList.remove("loading-scroll-mode")})}isActive(){return this.Reveal.getConfig().view==="print"}},Yn=class{constructor(t){this.Reveal=t}configure(t,e){t.fragments===!1?this.disable():e.fragments===!1&&this.enable()}disable(){P(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.add("visible"),t.classList.remove("current-fragment")})}enable(){P(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.remove("visible"),t.classList.remove("current-fragment")})}availableRoutes(){let t=this.Reveal.getCurrentSlide();if(t&&this.Reveal.getConfig().fragments){let e=t.querySelectorAll(".fragment:not(.disabled)"),i=t.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:e.length-i.length>0,next:!!i.length}}else return{prev:!1,next:!1}}sort(t,e=!1){t=Array.from(t);let i=[],s=[],n=[];t.forEach(l=>{if(l.hasAttribute("data-fragment-index")){let a=parseInt(l.getAttribute("data-fragment-index"),10);i[a]||(i[a]=[]),i[a].push(l)}else s.push([l])}),i=i.concat(s);let r=0;return i.forEach(l=>{l.forEach(a=>{n.push(a),a.setAttribute("data-fragment-index",r)}),r++}),e===!0?i:n}sortAll(){this.Reveal.getHorizontalSlides().forEach(t=>{let e=P(t,"section");e.forEach((i,s)=>{this.sort(i.querySelectorAll(".fragment"))},this),e.length===0&&this.sort(t.querySelectorAll(".fragment"))})}update(t,e,i=this.Reveal.getCurrentSlide()){let s={shown:[],hidden:[]};if(i&&this.Reveal.getConfig().fragments&&(e||(e=this.sort(i.querySelectorAll(".fragment"))),e.length)){let n=0;if(typeof t!="number"){let r=this.sort(i.querySelectorAll(".fragment.visible")).pop();r&&(t=parseInt(r.getAttribute("data-fragment-index")||0,10))}Array.from(e).forEach((r,l)=>{if(r.hasAttribute("data-fragment-index")&&(l=parseInt(r.getAttribute("data-fragment-index"),10)),n=Math.max(n,l),l<=t){let a=r.classList.contains("visible");r.classList.add("visible"),r.classList.remove("current-fragment"),l===t&&(this.Reveal.announceStatus(this.Reveal.getStatusText(r)),r.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(r)),a||(s.shown.push(r),this.Reveal.dispatchEvent({target:r,type:"visible",bubbles:!1}))}else{let a=r.classList.contains("visible");r.classList.remove("visible"),r.classList.remove("current-fragment"),a&&(this.Reveal.slideContent.stopEmbeddedContent(r),s.hidden.push(r),this.Reveal.dispatchEvent({target:r,type:"hidden",bubbles:!1}))}}),t=typeof t=="number"?t:-1,t=Math.max(Math.min(t,n),-1),i.setAttribute("data-fragment",t)}return s.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:s.hidden[0],fragments:s.hidden}}),s.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:s.shown[0],fragments:s.shown}}),s}sync(t=this.Reveal.getCurrentSlide()){return this.sort(t.querySelectorAll(".fragment"))}goto(t,e=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let s=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(s.length){if(typeof t!="number"){let r=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();t=r?parseInt(r.getAttribute("data-fragment-index")||0,10):-1}t+=e;let n=this.update(t,s);return this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!!(n.shown.length||n.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}},Jn=class{constructor(t){this.Reveal=t,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.Reveal.isScrollView()&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),P(this.Reveal.getRevealElement(),Ie).forEach(i=>{i.classList.contains("stack")||i.addEventListener("click",this.onSlideClicked,!0)});let t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+70,this.overviewSlideHeight=t.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();let e=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((t,e)=>{t.setAttribute("data-index-h",e),Ee(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),t.classList.contains("stack")&&P(t,"section").forEach((i,s)=>{i.setAttribute("data-index-h",e),i.setAttribute("data-index-v",s),Ee(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((t,e)=>{Ee(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),P(t,".slide-background").forEach((i,s)=>{Ee(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})})}update(){let t=Math.min(window.innerWidth,window.innerHeight),e=Math.max(t/5,150)/t,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+e+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),P(this.Reveal.getRevealElement(),Ie).forEach(e=>{Ee(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),P(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{Ee(e,"")}),this.Reveal.transformSlides({overview:""});let t=this.Reveal.getIndices();this.Reveal.slide(t.h,t.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(t){if(this.isActive()){t.preventDefault();let e=t.target;for(;e&&!e.nodeName.match(/section/gi);)e=e.parentNode;if(e&&!e.classList.contains("disabled")&&(this.deactivate(),e.nodeName.match(/section/gi))){let i=parseInt(e.getAttribute("data-index-h"),10),s=parseInt(e.getAttribute("data-index-v"),10);this.Reveal.slide(i,s)}}}},er=class{constructor(t){this.Reveal=t,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this)}configure(t,e){t.navigationMode==="linear"?(this.shortcuts["&#8594; , &#8595; , SPACE , N , L , J"]="Next slide",this.shortcuts["&#8592; , &#8593; , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["&#8592; , H"]="Navigate left",this.shortcuts["&#8594; , L"]="Navigate right",this.shortcuts["&#8593; , K"]="Navigate up",this.shortcuts["&#8595; , J"]="Navigate down"),this.shortcuts["Alt + &#8592;/&#8593/&#8594;/&#8595;"]="Navigate without fragments",this.shortcuts["Shift + &#8592;/&#8593/&#8594;/&#8595;"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts.G="Jump to slide",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1)}addKeyBinding(t,e){typeof t=="object"&&t.keyCode?this.bindings[t.keyCode]={callback:e,key:t.key,description:t.description}:this.bindings[t]={callback:e,key:null,description:null}}removeKeyBinding(t){delete this.bindings[t]}triggerKey(t){this.onDocumentKeyDown({keyCode:t})}registerKeyboardShortcut(t,e){this.shortcuts[t]=e}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyDown(t){let e=this.Reveal.getConfig();if(typeof e.keyboardCondition=="function"&&e.keyboardCondition(t)===!1||e.keyboardCondition==="focused"&&!this.Reveal.isFocused())return!0;let i=t.keyCode,s=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(t);let n=document.activeElement&&document.activeElement.isContentEditable===!0,r=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),l=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),a=!([32,37,38,39,40,63,78,80,191].indexOf(t.keyCode)!==-1&&t.shiftKey||t.altKey)&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(n||r||l||a)return;let c=[66,86,190,191,112],o;if(typeof e.keyboard=="object")for(o in e.keyboard)e.keyboard[o]==="togglePause"&&c.push(parseInt(o,10));if(this.Reveal.isOverlayOpen()&&!["Escape","f","c","b","."].includes(t.key)||this.Reveal.isPaused()&&c.indexOf(i)===-1)return!1;let d=e.navigationMode==="linear"||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),h=!1;if(typeof e.keyboard=="object"){for(o in e.keyboard)if(parseInt(o,10)===i){let g=e.keyboard[o];typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}if(h===!1){for(o in this.bindings)if(parseInt(o,10)===i){let g=this.bindings[o].callback;typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}h===!1&&(h=!0,i===80||i===33?this.Reveal.prev({skipFragments:t.altKey}):i===78||i===34?this.Reveal.next({skipFragments:t.altKey}):i===72||i===37?t.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&d?e.rtl?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.left({skipFragments:t.altKey}):i===76||i===39?t.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&d?e.rtl?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey}):this.Reveal.right({skipFragments:t.altKey}):i===75||i===38?t.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&d?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.up({skipFragments:t.altKey}):i===74||i===40?t.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&d?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.down({skipFragments:t.altKey}):i===36?this.Reveal.slide(0):i===35?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):i===32?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),t.shiftKey?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey})):[58,59,66,86,190].includes(i)||i===191&&!t.shiftKey?this.Reveal.togglePause():i===70?ji(e.embedded?this.Reveal.getViewportElement():document.documentElement):i===65?e.autoSlideStoppable&&this.Reveal.toggleAutoSlide(s):i===71?e.jumpToSlide&&this.Reveal.toggleJumpToSlide():i===67&&this.Reveal.isOverlayOpen()?this.Reveal.closeOverlay():(i===63||i===191)&&t.shiftKey||i===112?this.Reveal.toggleHelp():h=!1),h?t.preventDefault&&t.preventDefault():i===27||i===79?(this.Reveal.closeOverlay()===!1&&this.Reveal.overview.toggle(),t.preventDefault&&t.preventDefault()):i===13&&this.Reveal.overview.isActive()&&(this.Reveal.overview.deactivate(),t.preventDefault&&t.preventDefault()),this.Reveal.cueAutoSlide()}},tr=class{constructor(t){_i(this,"MAX_REPLACE_STATE_FREQUENCY",1e3),this.Reveal=t,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(t=window.location.hash,e={}){let i=t.replace(/^#\/?/,""),s=i.split("/");if(!/^[0-9]*$/.test(s[0])&&i.length){let n,r;/\/[-\d]+$/g.test(i)&&(r=parseInt(i.split("/").pop(),10),r=isNaN(r)?void 0:r,i=i.split("/").shift());try{let l=decodeURIComponent(i);n=(document.getElementById(l)||document.querySelector(`[data-id="${l}"]`)).closest(".slides section")}catch{}if(n)return Di(ye({},this.Reveal.getIndices(n)),{f:r})}else{let n=this.Reveal.getConfig(),r=n.hashOneBasedIndex||e.oneBasedIndex?1:0,l=parseInt(s[0],10)-r||0,a=parseInt(s[1],10)-r||0,c;return n.fragmentInURL&&(c=parseInt(s[2],10),isNaN(c)&&(c=void 0)),{h:l,v:a,f:c}}return null}readURL(){let t=this.Reveal.getIndices(),e=this.getIndicesFromHash();e?(e.h!==t.h||e.v!==t.v||e.f!==void 0)&&this.Reveal.slide(e.h,e.v,e.f):this.Reveal.slide(t.h||0,t.v||0)}writeURL(t){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),typeof t=="number")this.writeURLTimeout=setTimeout(this.writeURL,t);else if(i){let s=this.getHash();e.history?window.location.hash=s:e.hash&&(s==="/"?this.debouncedReplaceState(window.location.pathname+window.location.search):this.debouncedReplaceState("#"+s))}}replaceState(t){window.history.replaceState(null,null,t),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(t){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(t):this.replaceStateTimeout=setTimeout(()=>this.replaceState(t),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(t){let e="/",i=t||this.Reveal.getCurrentSlide(),s=i?i.getAttribute("id"):null;s&&(s=encodeURIComponent(s));let n=this.Reveal.getIndices(t);if(this.Reveal.getConfig().fragmentInURL||(n.f=void 0),typeof s=="string"&&s.length)e="/"+s,n.f>=0&&(e+="/"+n.f);else{let r=this.Reveal.getConfig().hashOneBasedIndex?1:0;(n.h>0||n.v>0||n.f>=0)&&(e+=n.h+r),(n.v>0||n.f>=0)&&(e+="/"+(n.v+r)),n.f>=0&&(e+="/"+n.f)}return e}onWindowHashChange(t){this.readURL()}},ir=class{constructor(t){this.Reveal=t,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this),this.onEnterFullscreen=this.onEnterFullscreen.bind(this)}render(){let t=this.Reveal.getConfig().rtl,e=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`<button class="navigate-left" aria-label="${t?"next slide":"previous slide"}"><div class="controls-arrow"></div></button>
8
8
  <button class="navigate-right" aria-label="${t?"previous slide":"next slide"}"><div class="controls-arrow"></div></button>
9
9
  <button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>
10
- <button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=L(e,".navigate-left"),this.controlsRight=L(e,".navigate-right"),this.controlsUp=L(e,".navigate-up"),this.controlsDown=L(e,".navigate-down"),this.controlsPrev=L(e,".navigate-prev"),this.controlsNext=L(e,".navigate-next"),this.controlsFullscreen=L(e,".enter-fullscreen"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(t,e){let i=t.controls==="speaker"||t.controls==="speaker-only";this.element.style.display=t.controls&&(!i||this.Reveal.isSpeakerNotes())?"block":"none",this.element.setAttribute("data-controls-layout",t.controlsLayout),this.element.setAttribute("data-controls-back-arrows",t.controlsBackArrows)}bind(){let t=["touchstart","click"];ji&&(t=["touchend"]),t.forEach(e=>{this.controlsLeft.forEach(i=>i.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(e,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(i=>i.addEventListener(e,this.onEnterFullscreen,!1))})}unbind(){["touchstart","touchend","click"].forEach(t=>{this.controlsLeft.forEach(e=>e.removeEventListener(t,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(e=>e.removeEventListener(t,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(e=>e.removeEventListener(t,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(e=>e.removeEventListener(t,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(e=>e.removeEventListener(t,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(e=>e.removeEventListener(t,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(e=>e.removeEventListener(t,this.onEnterFullscreen,!1))})}update(){let t=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(i=>{i.classList.remove("enabled","fragmented"),i.setAttribute("disabled","disabled")}),t.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.left||t.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.right||t.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let e=this.Reveal.getCurrentSlide();if(e){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")});let s=this.Reveal.isVerticalSlide(e),n=s&&e.parentElement&&e.parentElement.querySelectorAll(":scope > section").length>1;s&&n?(i.prev&&this.controlsUp.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&t.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&t.left&&i.v===0?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&t.right&&i.v===0?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}onEnterFullscreen(t){let e=this.Reveal.getConfig(),i=this.Reveal.getViewportElement();Di(e.embedded?i:i.parentElement)}},tr=class{constructor(t){this.Reveal=t,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(t,e){this.element.style.display=t.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let t=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(t=0),this.bar.style.transform="scaleX("+t+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(t){this.Reveal.onUserInput(t),t.preventDefault();let e=this.Reveal.getSlides(),i=e.length,s=Math.floor(t.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(s=i-s);let n=this.Reveal.getIndices(e[s]);this.Reveal.slide(n.h,n.v)}destroy(){this.element.remove()}},ir=class{constructor(t){this.Reveal=t,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(t,e){t.mouseWheel?document.addEventListener("wheel",this.onDocumentMouseScroll,!1):document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),t.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){this.cursorHidden===!1&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(t){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(t){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let e=t.detail||-t.wheelDelta;e>0?this.Reveal.next():e<0&&this.Reveal.prev()}}},Vi=(t,e)=>{let i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=t,typeof e=="function"&&(i.onload=n=>{n.type==="load"&&(i.onload=i.onerror=null,e())},i.onerror=n=>{i.onload=i.onerror=null,e(Error("Failed loading script: "+i.src+`
11
- `+n))});let s=document.querySelector("head");s&&s.insertBefore(i,s.lastChild)},sr=class{constructor(t){this.Reveal=t,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(t,e){return this.state="loading",t.forEach(this.registerPlugin.bind(this)),new Promise(i=>{let s=[],n=0;if(e.forEach(r=>{(!r.condition||r.condition())&&(r.async?this.asyncDependencies.push(r):s.push(r))}),s.length){n=s.length;let r=l=>{l&&typeof l.callback=="function"&&l.callback(),--n===0&&this.initPlugins().then(i)};s.forEach(l=>{typeof l.id=="string"?(this.registerPlugin(l),r(l)):typeof l.src=="string"?Vi(l.src,()=>r(l)):(console.warn("Unrecognized plugin format",l),r())})}else this.initPlugins().then(i)})}initPlugins(){return new Promise(t=>{let e=Object.values(this.registeredPlugins),i=e.length;if(i===0)this.loadAsync().then(t);else{let s,n=()=>{--i===0?this.loadAsync().then(t):s()},r=0;s=()=>{let l=e[r++];if(typeof l.init=="function"){let a=l.init(this.Reveal);a&&typeof a.then=="function"?a.then(n):n()}else n()},s()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(t=>{Vi(t.src,t.callback)}),Promise.resolve()}registerPlugin(t){arguments.length===2&&typeof arguments[0]=="string"?(t=arguments[1],t.id=arguments[0]):typeof t=="function"&&(t=t());let e=t.id;typeof e=="string"?this.registeredPlugins[e]===void 0?(this.registeredPlugins[e]=t,this.state==="loaded"&&typeof t.init=="function"&&t.init(this.Reveal)):console.warn('reveal.js: "'+e+'" plugin has already been registered'):console.warn("Unrecognized plugin format; can't find plugin.id",t)}hasPlugin(t){return!!this.registeredPlugins[t]}getPlugin(t){return this.registeredPlugins[t]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach(t=>{typeof t.destroy=="function"&&t.destroy()}),this.registeredPlugins={},this.asyncDependencies=[]}},nr=class{constructor(t){this.Reveal=t,this.onSlidesClicked=this.onSlidesClicked.bind(this),this.iframeTriggerSelector=null,this.mediaTriggerSelector="[data-preview-image], [data-preview-video]",this.stateProps=["previewIframe","previewImage","previewVideo","previewFit"],this.state={}}update(){this.Reveal.getConfig().previewLinks?this.iframeTriggerSelector="a[href]:not([data-preview-link=false]), [data-preview-link]:not(a):not([data-preview-link=false])":this.iframeTriggerSelector="[data-preview-link]:not([data-preview-link=false])";let t=this.Reveal.getSlidesElement().querySelectorAll(this.iframeTriggerSelector).length>0,e=this.Reveal.getSlidesElement().querySelectorAll(this.mediaTriggerSelector).length>0;t||e?this.Reveal.getSlidesElement().addEventListener("click",this.onSlidesClicked,!1):this.Reveal.getSlidesElement().removeEventListener("click",this.onSlidesClicked,!1)}createOverlay(t){this.dom=document.createElement("div"),this.dom.classList.add("r-overlay"),this.dom.classList.add(t),this.viewport=document.createElement("div"),this.viewport.classList.add("r-overlay-viewport"),this.dom.appendChild(this.viewport),this.Reveal.getRevealElement().appendChild(this.dom)}previewIframe(t){this.close(),this.state={previewIframe:t},this.createOverlay("r-overlay-preview"),this.dom.dataset.state="loading",this.viewport.innerHTML=`<header class="r-overlay-header">
10
+ <button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=P(e,".navigate-left"),this.controlsRight=P(e,".navigate-right"),this.controlsUp=P(e,".navigate-up"),this.controlsDown=P(e,".navigate-down"),this.controlsPrev=P(e,".navigate-prev"),this.controlsNext=P(e,".navigate-next"),this.controlsFullscreen=P(e,".enter-fullscreen"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(t,e){let i=t.controls==="speaker"||t.controls==="speaker-only";this.element.style.display=t.controls&&(!i||this.Reveal.isSpeakerNotes())?"block":"none",this.element.setAttribute("data-controls-layout",t.controlsLayout),this.element.setAttribute("data-controls-back-arrows",t.controlsBackArrows)}bind(){let t=["touchstart","click"];Fi&&(t=["touchend"]),t.forEach(e=>{this.controlsLeft.forEach(i=>i.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(e,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(i=>i.addEventListener(e,this.onEnterFullscreen,!1))})}unbind(){["touchstart","touchend","click"].forEach(t=>{this.controlsLeft.forEach(e=>e.removeEventListener(t,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(e=>e.removeEventListener(t,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(e=>e.removeEventListener(t,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(e=>e.removeEventListener(t,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(e=>e.removeEventListener(t,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(e=>e.removeEventListener(t,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(e=>e.removeEventListener(t,this.onEnterFullscreen,!1))})}update(){let t=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(i=>{i.classList.remove("enabled","fragmented"),i.setAttribute("disabled","disabled")}),t.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.left||t.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.right||t.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let e=this.Reveal.getCurrentSlide();if(e){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")});let s=this.Reveal.isVerticalSlide(e),n=s&&e.parentElement&&e.parentElement.querySelectorAll(":scope > section").length>1;s&&n?(i.prev&&this.controlsUp.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&t.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&t.left&&i.v===0?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&t.right&&i.v===0?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}onEnterFullscreen(t){let e=this.Reveal.getConfig(),i=this.Reveal.getViewportElement();ji(e.embedded?i:i.parentElement)}},sr=class{constructor(t){this.Reveal=t,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(t,e){this.element.style.display=t.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let t=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(t=0),this.bar.style.transform="scaleX("+t+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(t){this.Reveal.onUserInput(t),t.preventDefault();let e=this.Reveal.getSlides(),i=e.length,s=Math.floor(t.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(s=i-s);let n=this.Reveal.getIndices(e[s]);this.Reveal.slide(n.h,n.v)}destroy(){this.element.remove()}},nr=class{constructor(t){this.Reveal=t,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(t,e){t.mouseWheel?document.addEventListener("wheel",this.onDocumentMouseScroll,!1):document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),t.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){this.cursorHidden===!1&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(t){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(t){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let e=t.detail||-t.wheelDelta;e>0?this.Reveal.next():e<0&&this.Reveal.prev()}}},Wi=(t,e)=>{let i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=t,typeof e=="function"&&(i.onload=n=>{n.type==="load"&&(i.onload=i.onerror=null,e())},i.onerror=n=>{i.onload=i.onerror=null,e(Error("Failed loading script: "+i.src+`
11
+ `+n))});let s=document.querySelector("head");s&&s.insertBefore(i,s.lastChild)},rr=class{constructor(t){this.Reveal=t,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(t,e){return this.state="loading",t.forEach(this.registerPlugin.bind(this)),new Promise(i=>{let s=[],n=0;if(e.forEach(r=>{(!r.condition||r.condition())&&(r.async?this.asyncDependencies.push(r):s.push(r))}),s.length){n=s.length;let r=l=>{l&&typeof l.callback=="function"&&l.callback(),--n===0&&this.initPlugins().then(i)};s.forEach(l=>{typeof l.id=="string"?(this.registerPlugin(l),r(l)):typeof l.src=="string"?Wi(l.src,()=>r(l)):(console.warn("Unrecognized plugin format",l),r())})}else this.initPlugins().then(i)})}initPlugins(){return new Promise(t=>{let e=Object.values(this.registeredPlugins),i=e.length;if(i===0)this.loadAsync().then(t);else{let s,n=()=>{--i===0?this.loadAsync().then(t):s()},r=0;s=()=>{let l=e[r++];if(typeof l.init=="function"){let a=l.init(this.Reveal);a&&typeof a.then=="function"?a.then(n):n()}else n()},s()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(t=>{Wi(t.src,t.callback)}),Promise.resolve()}registerPlugin(t){arguments.length===2&&typeof arguments[0]=="string"?(t=arguments[1],t.id=arguments[0]):typeof t=="function"&&(t=t());let e=t.id;typeof e=="string"?this.registeredPlugins[e]===void 0?(this.registeredPlugins[e]=t,this.state==="loaded"&&typeof t.init=="function"&&t.init(this.Reveal)):console.warn('reveal.js: "'+e+'" plugin has already been registered'):console.warn("Unrecognized plugin format; can't find plugin.id",t)}hasPlugin(t){return!!this.registeredPlugins[t]}getPlugin(t){return this.registeredPlugins[t]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach(t=>{typeof t.destroy=="function"&&t.destroy()}),this.registeredPlugins={},this.asyncDependencies=[]}},ar=class{constructor(t){this.Reveal=t,this.onSlidesClicked=this.onSlidesClicked.bind(this),this.iframeTriggerSelector=null,this.mediaTriggerSelector="[data-preview-image], [data-preview-video]",this.stateProps=["previewIframe","previewImage","previewVideo","previewFit"],this.state={}}update(){this.Reveal.getConfig().previewLinks?this.iframeTriggerSelector="a[href]:not([data-preview-link=false]), [data-preview-link]:not(a):not([data-preview-link=false])":this.iframeTriggerSelector="[data-preview-link]:not([data-preview-link=false])";let t=this.Reveal.getSlidesElement().querySelectorAll(this.iframeTriggerSelector).length>0,e=this.Reveal.getSlidesElement().querySelectorAll(this.mediaTriggerSelector).length>0;t||e?this.Reveal.getSlidesElement().addEventListener("click",this.onSlidesClicked,!1):this.Reveal.getSlidesElement().removeEventListener("click",this.onSlidesClicked,!1)}createOverlay(t){this.dom=document.createElement("div"),this.dom.classList.add("r-overlay"),this.dom.classList.add(t),this.viewport=document.createElement("div"),this.viewport.classList.add("r-overlay-viewport"),this.dom.appendChild(this.viewport),this.Reveal.getRevealElement().appendChild(this.dom)}previewIframe(t){this.close(),this.state={previewIframe:t},this.createOverlay("r-overlay-preview"),this.dom.dataset.state="loading",this.viewport.innerHTML=`<header class="r-overlay-header">
12
12
  <a class="r-overlay-header-button r-overlay-external" href="${t}" target="_blank"><span class="icon"></span></a>
13
13
  <button class="r-overlay-header-button r-overlay-close"><span class="icon"></span></button>
14
14
  </header>
@@ -29,33 +29,33 @@ var Pl=Object.defineProperty;var Il=(Le,ke,C)=>ke in Le?Pl(Le,ke,{enumerable:!0,
29
29
  <div class="r-overlay-content">
30
30
  <div class="r-overlay-help-content">${t}</div>
31
31
  </div>
32
- `,this.dom.querySelector(".r-overlay-close").addEventListener("click",s=>{this.close(),s.preventDefault()},!1),this.Reveal.dispatchEvent({type:"showhelp"})}}isOpen(){return!!this.dom}close(){return this.dom?(this.dom.remove(),this.dom=null,this.state={},this.Reveal.dispatchEvent({type:"closeoverlay"}),!0):!1}getState(){return this.state}setState(t){this.stateProps.every(e=>this.state[e]===t[e])||(t.previewIframe?this.previewIframe(t.previewIframe):t.previewImage?this.previewImage(t.previewImage,t.previewFit):t.previewVideo?this.previewVideo(t.previewVideo,t.previewFit):this.close())}onSlidesClicked(t){let e=t.target,i=e.closest(this.iframeTriggerSelector),s=e.closest(this.mediaTriggerSelector);if(i){if(t.metaKey||t.shiftKey||t.altKey)return;let n=i.getAttribute("data-preview-link"),r=typeof n=="string"&&n.startsWith("http")?n:i.getAttribute("href");r&&(this.previewIframe(r),t.preventDefault())}else if(s){if(s.hasAttribute("data-preview-image")){let n=s.dataset.previewImage||s.getAttribute("src");n&&(this.previewImage(n,s.dataset.previewFit),t.preventDefault())}else if(s.hasAttribute("data-preview-video")){let n=s.dataset.previewVideo||s.getAttribute("src");if(!n){let r=s.querySelector("source");r&&(n=r.getAttribute("src"))}n&&(this.previewVideo(n,s.dataset.previewFit),t.preventDefault())}}}destroy(){this.close()}},ot=40,rr=class{constructor(t){this.Reveal=t,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let t=this.Reveal.getRevealElement();"onpointerdown"in window?(t.addEventListener("pointerdown",this.onPointerDown,!1),t.addEventListener("pointermove",this.onPointerMove,!1),t.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(t.addEventListener("MSPointerDown",this.onPointerDown,!1),t.addEventListener("MSPointerMove",this.onPointerMove,!1),t.addEventListener("MSPointerUp",this.onPointerUp,!1)):(t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let t=this.Reveal.getRevealElement();t.removeEventListener("pointerdown",this.onPointerDown,!1),t.removeEventListener("pointermove",this.onPointerMove,!1),t.removeEventListener("pointerup",this.onPointerUp,!1),t.removeEventListener("MSPointerDown",this.onPointerDown,!1),t.removeEventListener("MSPointerMove",this.onPointerMove,!1),t.removeEventListener("MSPointerUp",this.onPointerUp,!1),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(t){if(lt(t,"video[controls], audio[controls]"))return!0;for(;t&&typeof t.hasAttribute=="function";){if(t.hasAttribute("data-prevent-swipe"))return!0;t=t.parentNode}return!1}onTouchStart(t){if(this.touchCaptured=!1,this.isSwipePrevented(t.target))return!0;this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY,this.touchStartCount=t.touches.length}onTouchMove(t){if(this.isSwipePrevented(t.target))return!0;let e=this.Reveal.getConfig();if(this.touchCaptured)ji&&t.preventDefault();else{this.Reveal.onUserInput(t);let i=t.touches[0].clientX,s=t.touches[0].clientY;if(t.touches.length===1&&this.touchStartCount!==2){let n=this.Reveal.availableRoutes({includeFragments:!0}),r=i-this.touchStartX,l=s-this.touchStartY;r>ot&&Math.abs(r)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):r<-ot&&Math.abs(r)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):l>ot&&n.up?(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.prev():this.Reveal.up()):l<-ot&&n.down&&(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.next():this.Reveal.down()),e.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&t.preventDefault():t.preventDefault()}}}onTouchEnd(t){this.touchCaptured&&!this.Reveal.slideContent.isAllowedToPlayAudio()&&this.Reveal.startEmbeddedContent(this.Reveal.getCurrentSlide()),this.touchCaptured=!1}onPointerDown(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchStart(t))}onPointerMove(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchMove(t))}onPointerUp(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchEnd(t))}},Kt="focus",Ui="blur",ar=class{constructor(t){this.Reveal=t,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(t,e){t.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){this.state!==Kt&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=Kt}blur(){this.state!==Ui&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=Ui}isFocused(){return this.state===Kt}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(t){this.focus()}onDocumentPointerDown(t){let e=ee(t.target,".reveal");(!e||e!==this.Reveal.getRevealElement())&&this.blur()}},lr=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){t.showNotes&&this.element.setAttribute("data-layout",typeof t.showNotes=="string"?t.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()&&(this.element.innerHTML=this.getSlideNotes()||'<span class="notes-placeholder">No notes on this slide.</span>')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(t=this.Reveal.getCurrentSlide()){if(t.hasAttribute("data-notes"))return t.getAttribute("data-notes");let e=t.querySelectorAll("aside.notes");return e?Array.from(e).map(i=>i.innerHTML).join(`
33
- `):null}destroy(){this.element.remove()}},or=class{constructor(t,e){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=t,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(t){let e=this.playing;this.playing=t,!e&&this.playing?this.animate():this.render()}animate(){let t=this.progress;this.progress=this.progressCheck(),t>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let t=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,s=this.diameter2;this.progressOffset+=(1-this.progressOffset)*.1;let n=-Math.PI/2+t*(Math.PI*2),r=-Math.PI/2+this.progressOffset*(Math.PI*2);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,s,e+4,0,Math.PI*2,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,s,e,0,Math.PI*2,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,s,e,r,n,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-28/2,s-28/2),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,28/2-4,28),this.context.fillRect(18,0,28/2-4,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,28/2),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(t,e){this.canvas.addEventListener(t,e,!1)}off(t,e){this.canvas.removeEventListener(t,e,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}},cr={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,jumpToSlide:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,mouseWheel:!1,previewLinks:!1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,sortFragmentsOnSync:!0,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,view:null,scrollLayout:"full",scrollSnap:"mandatory",scrollProgress:"auto",scrollActivationWidth:435,pdfMaxPagesPerSlide:1/0,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,dependencies:[],plugins:[]},Wi="6.0.0";function Ki(t,e){arguments.length<2&&(e=arguments[0],t=document.querySelector(".reveal"));let i={},s={},n=!1,r=!1,l,a,c,o,u={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},h=[],g=1,p={layout:"",overview:""},d={},b="idle",k=0,P,H=0,M=-1,A=!1,S=new zn(i),$=new _n(i),T=new qn(i),_=new Fn(i),O=new On(i),N=new Zn(i),Y=new Qn(i),B=new Xn(i),v=new Gn(i),R=new Yn(i),z=new Jn(i),Z=new er(i),te=new tr(i),se=new ir(i),Q=new sr(i),W=new nr(i),ce=new ar(i),Je=new rr(i),le=new lr(i);function St(m){if(!t)throw'Unable to find presentation root (<div class="reveal">).';if(n)throw"Reveal.js has already been initialized.";if(n=!0,d.wrapper=t,d.slides=t.querySelector(".slides"),!d.slides)throw'Unable to find slides container (<div class="slides">).';return s=ye(ye(ye(ye(ye({},cr),s),e),m),_i()),/print-pdf/gi.test(window.location.search)&&(s.view="print"),gi(),window.addEventListener("load",Oe,!1),Q.load(s.plugins,s.dependencies).then(et),new Promise(f=>i.on("ready",f))}function gi(){s.embedded===!0?d.viewport=ee(t,".reveal-viewport")||t:(d.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),d.viewport.classList.add("reveal-viewport")}function et(){n!==!1&&(r=!0,Et(),tt(),D(),At(),Tt(),wl(),K(),O.update(!0),mi(),z.readURL(),setTimeout(()=>{d.slides.classList.remove("no-transition"),d.wrapper.classList.add("ready"),oe({type:"ready",data:{indexh:l,indexv:a,currentSlide:o}})},1))}function mi(){let m=s.view==="print",f=s.view==="scroll"||s.view==="reader";(m||f)&&(m?Ae():Je.unbind(),d.viewport.classList.add("loading-scroll-mode"),m?document.readyState==="complete"?Y.activate():window.addEventListener("load",()=>Y.activate()):N.activate())}function Et(){s.showHiddenSlides||L(d.wrapper,'section[data-visibility="hidden"]').forEach(m=>{let f=m.parentNode;f.childElementCount===1&&/section/i.test(f.nodeName)?f.remove():m.remove()})}function tt(){d.slides.classList.add("no-transition"),Pe?d.wrapper.classList.add("no-hover"):d.wrapper.classList.remove("no-hover"),O.render(),$.render(),T.render(),Z.render(),te.render(),le.render(),d.pauseOverlay=Cn(d.wrapper,"div","pause-overlay",s.controls?'<button class="resume-button">Resume presentation</button>':null),d.statusElement=Rt(),d.wrapper.setAttribute("role","application")}function Rt(){let m=d.wrapper.querySelector(".aria-status");return m||(m=document.createElement("div"),m.style.position="absolute",m.style.height="1px",m.style.width="1px",m.style.overflow="hidden",m.style.clip="rect( 1px, 1px, 1px, 1px )",m.classList.add("aria-status"),m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true"),d.wrapper.appendChild(m)),m}function it(m){d.statusElement.textContent=m}function De(m){let f="";if(m.nodeType===3)f+=m.textContent.trim();else if(m.nodeType===1){let y=m.getAttribute("aria-hidden"),w=window.getComputedStyle(m).display==="none";if(y!=="true"&&!w){if(m.tagName==="IMG"||m.tagName==="VIDEO"){let E=m.getAttribute("alt");E&&(f+=st(E))}Array.from(m.childNodes).forEach(E=>{f+=De(E)}),["P","DIV","UL","OL","LI","H1","H2","H3","H4","H5","H6","BLOCKQUOTE"].includes(m.tagName)&&f.trim()!==""&&(f=st(f))}}return f=f.trim(),f===""?"":f+" "}function st(m){let f=m.trim();return f===""?m:/[.!?]$/.test(f)?f:f+"."}function At(){setInterval(()=>{(!N.isActive()&&d.wrapper.scrollTop!==0||d.wrapper.scrollLeft!==0)&&(d.wrapper.scrollTop=0,d.wrapper.scrollLeft=0)},1e3)}function Tt(){document.addEventListener("fullscreenchange",$t),document.addEventListener("webkitfullscreenchange",$t)}function D(){s.postMessage&&window.addEventListener("message",dn,!1)}function K(m){let f=ye({},s);if(typeof m=="object"&&_e(s,m),i.isReady()===!1)return;let y=d.wrapper.querySelectorAll(Ie).length;d.wrapper.classList.remove(f.transition),d.wrapper.classList.add(s.transition),d.wrapper.setAttribute("data-transition-speed",s.transitionSpeed),d.wrapper.setAttribute("data-background-transition",s.backgroundTransition),d.viewport.style.setProperty("--slide-width",typeof s.width=="string"?s.width:s.width+"px"),d.viewport.style.setProperty("--slide-height",typeof s.height=="string"?s.height:s.height+"px"),s.shuffle&&ki(),Ot(d.wrapper,"embedded",s.embedded),Ot(d.wrapper,"rtl",s.rtl),Ot(d.wrapper,"center",s.center),s.pause===!1&&rt(),_.reset(),P&&(P=(P.destroy(),null)),y>1&&s.autoSlide&&s.autoSlideStoppable&&(P=new or(d.wrapper,()=>Math.min(Math.max((Date.now()-M)/k,0),1)),P.on("click",Cl),A=!1),s.navigationMode==="default"?d.wrapper.removeAttribute("data-navigation-mode"):d.wrapper.setAttribute("data-navigation-mode",s.navigationMode),le.configure(s,f),ce.configure(s,f),se.configure(s,f),Z.configure(s,f),te.configure(s,f),R.configure(s,f),B.configure(s,f),$.configure(s,f),Gs()}function ie(){window.addEventListener("resize",pn,!1),s.touch&&Je.bind(),s.keyboard&&R.bind(),s.progress&&te.bind(),s.respondToHashChanges&&z.bind(),Z.bind(),ce.bind(),d.slides.addEventListener("click",hn,!1),d.slides.addEventListener("transitionend",un,!1),d.pauseOverlay.addEventListener("click",rt,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",gn,!1)}function Ae(){Je.unbind(),ce.unbind(),R.unbind(),Z.unbind(),te.unbind(),z.unbind(),window.removeEventListener("resize",pn,!1),d.slides.removeEventListener("click",hn,!1),d.slides.removeEventListener("transitionend",un,!1),d.pauseOverlay.removeEventListener("click",rt,!1)}function pl(){n=!1,r!==!1&&(Ae(),Pt(),le.destroy(),ce.destroy(),W.destroy(),Q.destroy(),se.destroy(),Z.destroy(),te.destroy(),O.destroy(),$.destroy(),T.destroy(),document.removeEventListener("fullscreenchange",$t),document.removeEventListener("webkitfullscreenchange",$t),document.removeEventListener("visibilitychange",gn,!1),window.removeEventListener("message",dn,!1),window.removeEventListener("load",Oe,!1),d.pauseOverlay&&d.pauseOverlay.remove(),d.statusElement&&d.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),d.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),d.wrapper.removeAttribute("data-transition-speed"),d.wrapper.removeAttribute("data-background-transition"),d.viewport.classList.remove("reveal-viewport"),d.viewport.style.removeProperty("--slide-width"),d.viewport.style.removeProperty("--slide-height"),d.slides.style.removeProperty("width"),d.slides.style.removeProperty("height"),d.slides.style.removeProperty("zoom"),d.slides.style.removeProperty("left"),d.slides.style.removeProperty("top"),d.slides.style.removeProperty("bottom"),d.slides.style.removeProperty("right"),d.slides.style.removeProperty("transform"),Array.from(d.wrapper.querySelectorAll(Ie)).forEach(m=>{m.style.removeProperty("display"),m.style.removeProperty("top"),m.removeAttribute("hidden"),m.removeAttribute("aria-hidden")}))}function qs(m,f,y){t.addEventListener(m,f,y)}function js(m,f,y){t.removeEventListener(m,f,y)}function fi(m){typeof m.layout=="string"&&(p.layout=m.layout),typeof m.overview=="string"&&(p.overview=m.overview),p.layout?Ee(d.slides,p.layout+" "+p.overview):Ee(d.slides,p.overview)}function oe({target:m=d.wrapper,type:f,data:y,bubbles:w=!0}){let E=document.createEvent("HTMLEvents",1,2);return E.initEvent(f,w,!0),_e(E,y),m.dispatchEvent(E),m===d.wrapper&&Fs(f),E}function Os(m){oe({type:"slidechanged",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o,origin:m}})}function Fs(m,f){if(s.postMessageEvents&&window.parent!==window.self){let y={namespace:"reveal",eventName:m,state:on()};_e(y,f),window.parent.postMessage(JSON.stringify(y),"*")}}function Oe(){if(d.wrapper&&!Y.isActive()){let m=d.viewport.offsetWidth,f=d.viewport.offsetHeight;if(!s.disableLayout){Pe&&!s.embedded&&document.documentElement.style.setProperty("--vh",window.innerHeight*.01+"px");let y=N.isActive()?Ct(m,f):Ct(),w=g;Vs(s.width,s.height),d.slides.style.width=y.width+"px",d.slides.style.height=y.height+"px",g=Math.min(y.presentationWidth/y.width,y.presentationHeight/y.height),g=Math.max(g,s.minScale),g=Math.min(g,s.maxScale),g===1||N.isActive()?(d.slides.style.zoom="",d.slides.style.left="",d.slides.style.top="",d.slides.style.bottom="",d.slides.style.right="",fi({layout:""})):(d.slides.style.zoom="",d.slides.style.left="50%",d.slides.style.top="50%",d.slides.style.bottom="auto",d.slides.style.right="auto",fi({layout:"translate(-50%, -50%) scale("+g+")"}));let E=Array.from(d.wrapper.querySelectorAll(Ie));for(let U=0,G=E.length;U<G;U++){let J=E[U];J.style.display!=="none"&&(s.center||J.classList.contains("center")?J.classList.contains("stack")?J.style.top=0:J.style.top=Math.max((y.height-J.scrollHeight)/2,0)+"px":J.style.top="")}w!==g&&oe({type:"resize",data:{oldScale:w,scale:g,size:y}})}gl(),d.viewport.style.setProperty("--slide-scale",g),d.viewport.style.setProperty("--viewport-width",m+"px"),d.viewport.style.setProperty("--viewport-height",f+"px"),N.layout(),te.update(),O.updateParallax(),v.isActive()&&v.update()}}function Vs(m,f){L(d.slides,"section > .stretch, section > .r-stretch").forEach(y=>{let w=Ln(y,f);if(/(img|video)/gi.test(y.nodeName)){let E=y.naturalWidth||y.videoWidth,U=y.naturalHeight||y.videoHeight,G=Math.min(m/E,w/U);y.style.width=E*G+"px",y.style.height=U*G+"px"}else y.style.width=m+"px",y.style.height=w+"px"})}function gl(){if(d.wrapper&&!s.disableLayout&&!Y.isActive()&&typeof s.scrollActivationWidth=="number"&&s.view!=="scroll"){let m=Ct();m.presentationWidth>0&&m.presentationWidth<=s.scrollActivationWidth?N.isActive()||(O.create(),N.activate()):N.isActive()&&N.deactivate()}}function Ct(m,f){let y=s.width,w=s.height;s.disableLayout&&(y=d.slides.offsetWidth,w=d.slides.offsetHeight);let E={width:y,height:w,presentationWidth:m||d.wrapper.offsetWidth,presentationHeight:f||d.wrapper.offsetHeight};return E.presentationWidth-=E.presentationWidth*s.margin,E.presentationHeight-=E.presentationHeight*s.margin,typeof E.width=="string"&&/%$/.test(E.width)&&(E.width=parseInt(E.width,10)/100*E.presentationWidth),typeof E.height=="string"&&/%$/.test(E.height)&&(E.height=parseInt(E.height,10)/100*E.presentationHeight),E}function Us(m,f){typeof m=="object"&&typeof m.setAttribute=="function"&&m.setAttribute("data-previous-indexv",f||0)}function Ws(m){if(typeof m=="object"&&typeof m.setAttribute=="function"&&m.classList.contains("stack")){let f=m.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(m.getAttribute(f)||0,10)}return 0}function nt(m=o){return m&&m.parentNode&&!!m.parentNode.nodeName.match(/section/i)}function ml(m=o){return m.classList.contains(".stack")||m.querySelector("section")!==null}function Ks(){return o&&nt(o)?!o.nextElementSibling:!1}function Zs(){return l===0&&a===0}function vi(){return o?!(o.nextElementSibling||nt(o)&&o.parentNode.nextElementSibling):!1}function Qs(){if(s.pause){let m=d.wrapper.classList.contains("paused");Pt(),d.wrapper.classList.add("paused"),m===!1&&oe({type:"paused"})}}function rt(){let m=d.wrapper.classList.contains("paused");d.wrapper.classList.remove("paused"),Fe(),m&&oe({type:"resumed"})}function Xs(m){typeof m=="boolean"?m?Qs():rt():at()?rt():Qs()}function at(){return d.wrapper.classList.contains("paused")}function fl(m){typeof m=="boolean"?m?T.show():T.hide():T.isVisible()?T.hide():T.show()}function vl(m){typeof m=="boolean"?m?Mt():It():A?Mt():It()}function bl(){return!!(k&&!A)}function ve(m,f,y,w){if(oe({type:"beforeslidechange",data:{indexh:m===void 0?l:m,indexv:f===void 0?a:f,origin:w}}).defaultPrevented)return;c=o;let E=d.wrapper.querySelectorAll(we);if(N.isActive()){let ne=N.getSlideByIndices(m,f);ne&&N.scrollToSlide(ne);return}if(E.length===0)return;f===void 0&&!v.isActive()&&(f=Ws(E[m])),c&&c.parentNode&&c.parentNode.classList.contains("stack")&&Us(c.parentNode,a);let U=h.concat();h.length=0;let G=l||0,J=a||0;l=Lt(we,m===void 0?l:m),a=Lt(Vt,f===void 0?a:f);let Se=l!==G||a!==J;Se||(c=null);let Ce=E[l],ge=Ce.querySelectorAll("section");t.classList.toggle("is-vertical-slide",ge.length>1),o=ge[a]||Ce;let X=!1;Se&&c&&o&&!v.isActive()&&(b="running",X=bi(c,o,G,J),X&&d.slides.classList.add("disable-slide-transitions")),yi(),Oe(),v.isActive()&&v.update(),y!==void 0&&B.goto(y),c&&c!==o&&(c.classList.remove("present"),c.setAttribute("aria-hidden","true"),Zs()&&setTimeout(()=>{Sl().forEach(ne=>{Us(ne,0)})},0));e:for(let ne=0,Ll=h.length;ne<Ll;ne++){for(let Bt=0;Bt<U.length;Bt++)if(U[Bt]===h[ne]){U.splice(Bt,1);continue e}d.viewport.classList.add(h[ne]),oe({type:h[ne]})}for(;U.length;)d.viewport.classList.remove(U.pop());Se&&(S.afterSlideChanged(),Os(w)),(Se||!c)&&(S.stopEmbeddedContent(c),S.startEmbeddedContent(o)),requestAnimationFrame(()=>{it(De(o))}),te.update(),Z.update(),le.update(),O.update(),O.updateParallax(),$.update(),B.update(),z.writeURL(),Fe(),X&&(setTimeout(()=>{d.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&_.run(c,o))}function bi(m,f,y,w){return m.hasAttribute("data-auto-animate")&&f.hasAttribute("data-auto-animate")&&m.getAttribute("data-auto-animate-id")===f.getAttribute("data-auto-animate-id")&&!(l>y||a>w?f:m).hasAttribute("data-auto-animate-restart")}function kl(m,f,y){let w=l||0;l=f,a=y;let E=o!==m;c=o,o=m,o&&c&&s.autoAnimate&&bi(c,o,w,a)&&_.run(c,o),E&&(S.afterSlideChanged(),c&&(S.stopEmbeddedContent(c),S.stopEmbeddedContent(c.slideBackgroundElement)),S.startEmbeddedContent(o),S.startEmbeddedContent(o.slideBackgroundElement)),requestAnimationFrame(()=>{it(De(o))}),Os()}function Gs(){Ae(),ie(),Oe(),k=s.autoSlide,Fe(),O.create(),z.writeURL(),s.sortFragmentsOnSync===!0&&B.sortAll(),l!==void 0&&(l=Lt(we,l),a=Lt(Vt,a)),Z.update(),te.update(),yi(),le.update(),le.updateVisibility(),W.update(),O.update(!0),$.update(),S.formatEmbeddedContent(),s.autoPlayMedia===!1?S.stopEmbeddedContent(o,{unloadIframes:!1}):S.startEmbeddedContent(o),v.isActive()&&v.layout(),oe({type:"sync"})}function yl(m=o){O.sync(m),B.sync(m),S.load(m),O.update(),le.update(),oe({type:"slidesync",data:{slide:m}})}function wl(){Te().forEach(m=>{L(m,"section").forEach((f,y)=>{y>0&&(f.classList.remove("present"),f.classList.remove("past"),f.classList.add("future"),f.setAttribute("aria-hidden","true"))})})}function ki(m=Te()){m.forEach((f,y)=>{let w=m[Math.floor(Math.random()*m.length)];w.parentNode===f.parentNode&&f.parentNode.insertBefore(f,w);let E=f.querySelectorAll("section");E.length&&ki(E)})}function Lt(m,f){let y=L(d.wrapper,m),w=y.length,E=N.isActive()||Y.isActive(),U=!1,G=!1;if(w){s.loop&&(f>=w&&(U=!0),f%=w,f<0&&(f=w+f,G=!0)),f=Math.max(Math.min(f,w-1),0);for(let ge=0;ge<w;ge++){let X=y[ge],ne=s.rtl&&!nt(X);if(X.classList.remove("past"),X.classList.remove("present"),X.classList.remove("future"),X.setAttribute("hidden",""),X.setAttribute("aria-hidden","true"),X.querySelector("section")&&X.classList.add("stack"),E){X.classList.add("present");continue}ge<f?(X.classList.add(ne?"future":"past"),s.fragments&&Ys(X)):ge>f?(X.classList.add(ne?"past":"future"),s.fragments&&Js(X)):ge===f&&s.fragments&&(U?Js(X):G&&Ys(X))}let J=y[f],Se=J.classList.contains("present");J.classList.add("present"),J.removeAttribute("hidden"),J.removeAttribute("aria-hidden"),Se||oe({target:J,type:"visible",bubbles:!1});let Ce=J.getAttribute("data-state");Ce&&(h=h.concat(Ce.split(" ")))}else f=0;return f}function Ys(m){L(m,".fragment").forEach(f=>{f.classList.add("visible"),f.classList.remove("current-fragment")})}function Js(m){L(m,".fragment.visible").forEach(f=>{f.classList.remove("visible","current-fragment")})}function yi(){let m=Te(),f=m.length,y,w;if(f&&l!==void 0){let E=v.isActive(),U=E?10:s.viewDistance;Pe&&(U=E?6:s.mobileViewDistance),Y.isActive()&&(U=Number.MAX_VALUE);for(let G=0;G<f;G++){let J=m[G],Se=L(J,"section"),Ce=Se.length;if(y=Math.abs((l||0)-G)||0,s.loop&&(y=Math.abs(((l||0)-G)%(f-U))||0),y<U?S.load(J):S.unload(J),Ce){let ge=E?0:Ws(J);for(let X=0;X<Ce;X++){let ne=Se[X];w=Math.abs(G===(l||0)?(a||0)-X:X-ge),y+w<U?S.load(ne):S.unload(ne)}}}rn()?d.wrapper.classList.add("has-vertical-slides"):d.wrapper.classList.remove("has-vertical-slides"),nn()?d.wrapper.classList.add("has-horizontal-slides"):d.wrapper.classList.remove("has-horizontal-slides")}}function xe({includeFragments:m=!1}={}){let f=d.wrapper.querySelectorAll(we),y=d.wrapper.querySelectorAll(Vt),w={left:l>0,right:l<f.length-1,up:a>0,down:a<y.length-1};if(s.loop&&(f.length>1&&(w.left=!0,w.right=!0),y.length>1&&(w.up=!0,w.down=!0)),f.length>1&&s.navigationMode==="linear"&&(w.right=w.right||w.down,w.left=w.left||w.up),m===!0){let E=B.availableRoutes();w.left=w.left||E.prev,w.up=w.up||E.prev,w.down=w.down||E.next,w.right=w.right||E.next}if(s.rtl){let E=w.left;w.left=w.right,w.right=E}return w}function en(m=o){let f=Te(),y=0;e:for(let w=0;w<f.length;w++){let E=f[w],U=E.querySelectorAll("section");for(let G=0;G<U.length;G++){if(U[G]===m)break e;U[G].dataset.visibility!=="uncounted"&&y++}if(E===m)break;E.classList.contains("stack")===!1&&E.dataset.visibility!=="uncounted"&&y++}return y}function xl(){let m=an(),f=en();if(o){let y=o.querySelectorAll(".fragment");if(y.length>0){let w=o.querySelectorAll(".fragment.visible");f+=w.length/y.length*.9}}return Math.min(f/(m-1),1)}function tn(m){let f=l,y=a,w;if(m)if(N.isActive())f=parseInt(m.getAttribute("data-index-h"),10),m.getAttribute("data-index-v")&&(y=parseInt(m.getAttribute("data-index-v"),10));else{let E=nt(m),U=E?m.parentNode:m,G=Te();f=Math.max(G.indexOf(U),0),y=void 0,E&&(y=Math.max(L(m.parentNode,"section").indexOf(m),0))}if(!m&&o&&o.querySelectorAll(".fragment").length>0){let E=o.querySelector(".current-fragment");w=E&&E.hasAttribute("data-fragment-index")?parseInt(E.getAttribute("data-fragment-index"),10):o.querySelectorAll(".fragment.visible").length-1}return{h:f,v:y,f:w}}function wi(){return L(d.wrapper,Ie+':not(.stack):not([data-visibility="uncounted"])')}function Te(){return L(d.wrapper,we)}function sn(){return L(d.wrapper,".slides>section>section")}function Sl(){return L(d.wrapper,we+".stack")}function nn(){return Te().length>1}function rn(){return sn().length>1}function El(){return wi().map(m=>{let f={};for(let y=0;y<m.attributes.length;y++){let w=m.attributes[y];f[w.name]=w.value}return f})}function an(){return wi().length}function ln(m,f){let y=Te()[m],w=y&&y.querySelectorAll("section");return w&&w.length&&typeof f=="number"?w?w[f]:void 0:y}function Rl(m,f){let y=typeof m=="number"?ln(m,f):m;if(y)return y.slideBackgroundElement}function on(){let m=tn();return ye({indexh:m.h,indexv:m.v,indexf:m.f,paused:at(),overview:v.isActive()},W.getState())}function Al(m){if(typeof m=="object"){ve(qe(m.indexh),qe(m.indexv),qe(m.indexf));let f=qe(m.paused),y=qe(m.overview);typeof f=="boolean"&&f!==at()&&Xs(f),typeof y=="boolean"&&y!==v.isActive()&&v.toggle(y),W.setState(m)}}function Fe(){if(Pt(),o&&s.autoSlide!==!1){let m=o.querySelector(".current-fragment[data-autoslide]"),f=m?m.getAttribute("data-autoslide"):null,y=o.parentNode?o.parentNode.getAttribute("data-autoslide"):null,w=o.getAttribute("data-autoslide");f?k=parseInt(f,10):w?k=parseInt(w,10):y?k=parseInt(y,10):(k=s.autoSlide,o.querySelectorAll(".fragment").length===0&&L(o,"video, audio").forEach(E=>{E.hasAttribute("data-autoplay")&&k&&E.duration*1e3/E.playbackRate>k&&(k=E.duration*1e3/E.playbackRate+1e3)})),k&&!A&&!at()&&!v.isActive()&&(!vi()||B.availableRoutes().next||s.loop===!0)&&(H=setTimeout(()=>{typeof s.autoSlideMethod=="function"?s.autoSlideMethod():Ei(),Fe()},k),M=Date.now()),P&&P.setPlaying(H!==-1)}}function Pt(){clearTimeout(H),H=-1}function It(){k&&!A&&(A=!0,oe({type:"autoslidepaused"}),clearTimeout(H),P&&P.setPlaying(!1))}function Mt(){k&&A&&(A=!1,oe({type:"autoslideresumed"}),Fe())}function Nt({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,N.isActive())return N.prev();s.rtl?(v.isActive()||m||B.next()===!1)&&xe().left&&ve(l+1,s.navigationMode==="grid"?a:void 0):(v.isActive()||m||B.prev()===!1)&&xe().left&&ve(l-1,s.navigationMode==="grid"?a:void 0)}function zt({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,N.isActive())return N.next();s.rtl?(v.isActive()||m||B.prev()===!1)&&xe().right&&ve(l-1,s.navigationMode==="grid"?a:void 0):(v.isActive()||m||B.next()===!1)&&xe().right&&ve(l+1,s.navigationMode==="grid"?a:void 0)}function xi({skipFragments:m=!1}={}){if(N.isActive())return N.prev();(v.isActive()||m||B.prev()===!1)&&xe().up&&ve(l,a-1)}function Si({skipFragments:m=!1}={}){if(u.hasNavigatedVertically=!0,N.isActive())return N.next();(v.isActive()||m||B.next()===!1)&&xe().down&&ve(l,a+1)}function cn({skipFragments:m=!1}={}){if(N.isActive())return N.prev();if(m||B.prev()===!1)if(xe().up)xi({skipFragments:m});else{let f;if(f=s.rtl?L(d.wrapper,we+".future").pop():L(d.wrapper,we+".past").pop(),f&&f.classList.contains("stack")){let y=f.querySelectorAll("section").length-1||void 0;ve(l-1,y)}else s.rtl?zt({skipFragments:m}):Nt({skipFragments:m})}}function Ei({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,u.hasNavigatedVertically=!0,N.isActive())return N.next();if(m||B.next()===!1){let f=xe();f.down&&f.right&&s.loop&&Ks()&&(f.down=!1),f.down?Si({skipFragments:m}):s.rtl?Nt({skipFragments:m}):zt({skipFragments:m})}}function Tl(m){s.autoSlideStoppable&&It()}function dn(m){let f=m.data;if(typeof f=="string"&&f.charAt(0)==="{"&&f.charAt(f.length-1)==="}"&&(f=JSON.parse(f),f.method&&typeof i[f.method]=="function"))if(Bn.test(f.method)===!1){let y=i[f.method].apply(i,f.args);Fs("callback",{method:f.method,result:y})}else console.warn('reveal.js: "'+f.method+'" is is blacklisted from the postMessage API')}function un(m){b==="running"&&/section/gi.test(m.target.nodeName)&&(b="idle",oe({type:"slidetransitionend",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o}}))}function hn(m){let f=ee(m.target,'a[href^="#"]');if(f){let y=f.getAttribute("href"),w=z.getIndicesFromHash(y);w&&(i.slide(w.h,w.v,w.f),m.preventDefault())}}function pn(m){Oe()}function gn(m){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function $t(m){(document.fullscreenElement||document.webkitFullscreenElement)===d.wrapper&&(m.stopImmediatePropagation(),setTimeout(()=>{i.layout(),i.focus.focus()},1))}function Cl(m){vi()&&s.loop===!1?(ve(0,0),Mt()):A?Mt():It()}let mn={VERSION:Wi,initialize:St,configure:K,destroy:pl,sync:Gs,syncSlide:yl,syncFragments:B.sync.bind(B),slide:ve,left:Nt,right:zt,up:xi,down:Si,prev:cn,next:Ei,navigateLeft:Nt,navigateRight:zt,navigateUp:xi,navigateDown:Si,navigatePrev:cn,navigateNext:Ei,navigateFragment:B.goto.bind(B),prevFragment:B.prev.bind(B),nextFragment:B.next.bind(B),on:qs,off:js,addEventListener:qs,removeEventListener:js,layout:Oe,shuffle:ki,availableRoutes:xe,availableFragments:B.availableRoutes.bind(B),toggleHelp:W.toggleHelp.bind(W),toggleOverview:v.toggle.bind(v),toggleScrollView:N.toggle.bind(N),togglePause:Xs,toggleAutoSlide:vl,toggleJumpToSlide:fl,isFirstSlide:Zs,isLastSlide:vi,isLastVerticalSlide:Ks,isVerticalSlide:nt,isVerticalStack:ml,isPaused:at,isAutoSliding:bl,isSpeakerNotes:le.isSpeakerNotesWindow.bind(le),isOverview:v.isActive.bind(v),isFocused:ce.isFocused.bind(ce),isOverlayOpen:W.isOpen.bind(W),isScrollView:N.isActive.bind(N),isPrintView:Y.isActive.bind(Y),isReady:()=>r,loadSlide:S.load.bind(S),unloadSlide:S.unload.bind(S),startEmbeddedContent:()=>S.startEmbeddedContent(o),stopEmbeddedContent:()=>S.stopEmbeddedContent(o,{unloadIframes:!1}),previewIframe:W.previewIframe.bind(W),previewImage:W.previewImage.bind(W),previewVideo:W.previewVideo.bind(W),showPreview:W.previewIframe.bind(W),hidePreview:W.close.bind(W),addEventListeners:ie,removeEventListeners:Ae,dispatchEvent:oe,getState:on,setState:Al,getProgress:xl,getIndices:tn,getSlidesAttributes:El,getSlidePastCount:en,getTotalSlides:an,getSlide:ln,getPreviousSlide:()=>c,getCurrentSlide:()=>o,getSlideBackground:Rl,getSlideNotes:le.getSlideNotes.bind(le),getSlides:wi,getHorizontalSlides:Te,getVerticalSlides:sn,hasHorizontalSlides:nn,hasVerticalSlides:rn,hasNavigatedHorizontally:()=>u.hasNavigatedHorizontally,hasNavigatedVertically:()=>u.hasNavigatedVertically,shouldAutoAnimateBetween:bi,addKeyBinding:R.addKeyBinding.bind(R),removeKeyBinding:R.removeKeyBinding.bind(R),triggerKey:R.triggerKey.bind(R),registerKeyboardShortcut:R.registerKeyboardShortcut.bind(R),getComputedSlideSize:Ct,setCurrentScrollPage:kl,removeHiddenSlides:Et,getScale:()=>g,getConfig:()=>s,getQueryHash:_i,getSlidePath:z.getHash.bind(z),getRevealElement:()=>t,getSlidesElement:()=>d.slides,getViewportElement:()=>d.viewport,getBackgroundsElement:()=>O.element,registerPlugin:Q.registerPlugin.bind(Q),hasPlugin:Q.hasPlugin.bind(Q),getPlugin:Q.getPlugin.bind(Q),getPlugins:Q.getRegisteredPlugins.bind(Q)};return _e(i,Bi(ye({},mn),{announceStatus:it,getStatusText:De,focus:ce,scroll:N,progress:te,controls:Z,location:z,overview:v,keyboard:R,fragments:B,backgrounds:O,slideContent:S,slideNumber:$,onUserInput:Tl,closeOverlay:W.close.bind(W),updateSlidesVisibility:yi,layoutSlideContents:Vs,transformSlides:fi,cueAutoSlide:Fe,cancelAutoSlide:Pt})),mn}var Re=Ki,Zi=[];Re.initialize=t=>{let e=document.querySelector(".reveal");if(!(e instanceof HTMLElement))throw Error('Unable to find presentation root (<div class="reveal">).');return Object.assign(Re,new Ki(e,t)),Zi.map(i=>i(Re)),Re.initialize()},["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{Re[t]=(...e)=>{Zi.push(i=>i[t].call(null,...e))}}),Re.isReady=()=>!1,Re.VERSION=Wi;var x=fn(Ul(),1),Qi=(0,C.createContext)(null),dr=[];function ur(t,e){if(t===e)return!1;if(!t||!e)return t!==e;let i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!0;for(let n of i)if(!(n in e)||t[n]!==e[n])return!0;return!1}function Xi(t,e){t&&(typeof t=="function"?t(e):t.current=e)}function hr(t){return t.tagName==="SECTION"}function Gi(t,e,i){return Array.from(t.children).filter(hr).map(s=>{let n=e.get(s);n===void 0&&(n=i.current++,e.set(s,n));let r=Gi(s,e,i);return r.length>0?[n,r]:n})}function pr(t,e,i){return t?JSON.stringify(Gi(t,e,i)):"[]"}function gr({config:t,plugins:e=dr,onReady:i,onSync:s,onSlideSync:n,onSlideChange:r,onSlideTransitionEnd:l,onFragmentShown:a,onFragmentHidden:c,onOverviewShown:o,onOverviewHidden:u,onPaused:h,onResumed:g,deckRef:p,className:d,style:b,children:k}){let P=(0,C.useRef)(null),H=(0,C.useRef)(null),M=(0,C.useRef)(null),[A,S]=(0,C.useState)(null),$=(0,C.useRef)(e),T=(0,C.useRef)(!1),_=(0,C.useRef)(t),O=(0,C.useRef)(null),N=(0,C.useRef)(new WeakMap),Y=(0,C.useRef)(1),B=(0,C.useRef)(!1),v=(0,C.useRef)(0);return(0,C.useEffect)(()=>{if(B.current=!0,v.current+=1,M.current)M.current.isReady()&&S(M.current);else{let R=new Re(P.current,{...t,plugins:$.current});_.current=t,M.current=R,R.initialize().then(()=>{!B.current||M.current!==R||(S(R),i==null||i(R))})}return()=>{B.current=!1;let R=M.current;if(!R)return;let z=++v.current;Promise.resolve().then(()=>{if(!(B.current||v.current!==z)&&M.current===R){try{R.destroy()}catch{}M.current===R&&(M.current=null)}})}},[]),(0,C.useEffect)(()=>(Xi(p,A),()=>Xi(p,null)),[p,A]),(0,C.useEffect)(()=>{if(!A)return;let R=[["sync",s],["slidesync",n],["slidechanged",r],["slidetransitionend",l],["fragmentshown",a],["fragmenthidden",c],["overviewshown",o],["overviewhidden",u],["paused",h],["resumed",g]].filter(z=>z[1]!=null);for(let[z,Z]of R)A.on(z,Z);return()=>{for(let[z,Z]of R)A.off(z,Z)}},[A,s,n,r,l,a,c,o,u,h,g]),(0,C.useLayoutEffect)(()=>{var R;!A||!((R=M.current)!=null&&R.isReady())||ur(_.current,t)&&(T.current=!0,M.current.configure(t??{}),_.current=t)},[A,t]),(0,C.useLayoutEffect)(()=>{var Z;let R=T.current;T.current=!1;let z=pr(H.current,N.current,Y);if(R){O.current=z;return}(Z=M.current)!=null&&Z.isReady()&&O.current!==z&&(M.current.sync(),O.current=z)}),(0,x.jsx)(Qi.Provider,{value:A,children:(0,x.jsx)("div",{className:d?`reveal ${d}`:"reveal",style:b,ref:P,children:(0,x.jsx)("div",{className:"slides",ref:H,children:k})})})}var mr={background:"data-background",backgroundImage:"data-background-image",backgroundVideo:"data-background-video",backgroundVideoLoop:"data-background-video-loop",backgroundVideoMuted:"data-background-video-muted",backgroundIframe:"data-background-iframe",backgroundColor:"data-background-color",backgroundGradient:"data-background-gradient",backgroundSize:"data-background-size",backgroundPosition:"data-background-position",backgroundRepeat:"data-background-repeat",backgroundOpacity:"data-background-opacity",backgroundTransition:"data-background-transition",visibility:"data-visibility",autoAnimate:"data-auto-animate",autoAnimateId:"data-auto-animate-id",autoAnimateRestart:"data-auto-animate-restart",autoAnimateUnmatched:"data-auto-animate-unmatched",autoAnimateEasing:"data-auto-animate-easing",autoAnimateDuration:"data-auto-animate-duration",autoAnimateDelay:"data-auto-animate-delay",transition:"data-transition",transitionSpeed:"data-transition-speed",autoSlide:"data-autoslide",notes:"data-notes",backgroundInteractive:"data-background-interactive",preload:"data-preload"};function fr(t){return JSON.stringify(Object.entries(t).filter(([e])=>e.startsWith("data-")).sort(([e],[i])=>e.localeCompare(i)))}function vr(t,e){let i={...t},s=i;for(let[n,r]of Object.entries(mr)){if(s[r]!==void 0)continue;let l=e[n];if(l!==void 0){if(l===!1){n==="autoAnimateUnmatched"&&(s[r]="false");continue}s[r]=typeof l=="boolean"?"":l}}return i}function br({children:t,background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:r,backgroundIframe:l,backgroundColor:a,backgroundGradient:c,backgroundSize:o,backgroundPosition:u,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:d,autoAnimate:b,autoAnimateId:k,autoAnimateRestart:P,autoAnimateUnmatched:H,autoAnimateEasing:M,autoAnimateDuration:A,autoAnimateDelay:S,transition:$,transitionSpeed:T,autoSlide:_,notes:O,backgroundInteractive:N,preload:Y,...B}){let v=(0,C.useContext)(Qi),R=(0,C.useRef)(null),z=(0,C.useRef)(null),Z=(0,C.useRef)(null),te=vr(B,{background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:r,backgroundIframe:l,backgroundColor:a,backgroundGradient:c,backgroundSize:o,backgroundPosition:u,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:d,autoAnimate:b,autoAnimateId:k,autoAnimateRestart:P,autoAnimateUnmatched:H,autoAnimateEasing:M,autoAnimateDuration:A,autoAnimateDelay:S,transition:$,transitionSpeed:T,autoSlide:_,notes:O,backgroundInteractive:N,preload:Y}),se=fr(te);return(0,C.useLayoutEffect)(()=>{let Q=R.current;if(!v||!Q||typeof v.syncSlide!="function")return;if(z.current!==v){z.current=v,Z.current=se;return}if(se==="[]")return;let W=z.current===v,ce=Z.current===se;W&&ce||(v.syncSlide(Q),z.current=v,Z.current=se)},[v,se]),(0,x.jsx)("section",{ref:R,...te,children:t})}function kr({className:t,style:e,children:i}){return(0,x.jsx)("section",{className:t,style:e,children:i})}function Zt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Me=Zt();function Yi(t){Me=t}var Ne={exec:()=>null};function q(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,r)=>{let l=typeof r=="string"?r:r.source;return l=l.replace(re.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var yr=(()=>{try{return!0}catch{return!1}})(),re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},wr=/^(?:[ \t]*(?:\n|$))+/,xr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ve=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Er=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Qt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ji=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,es=q(Ji).replace(/bull/g,Qt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Rr=q(Ji).replace(/bull/g,Qt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ar=/^[^\n]+/,Gt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Tr=q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Gt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Cr=q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Qt).getRegex(),ct="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Yt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lr=q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Yt).replace("tag",ct).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ts=q(Xt).replace("hr",Ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),Jt={blockquote:q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ts).getRegex(),code:xr,def:Tr,fences:Sr,heading:Er,hr:Ve,html:Lr,lheading:es,list:Cr,newline:wr,paragraph:ts,table:Ne,text:Ar},is=q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),Pr={...Jt,lheading:Rr,table:is,paragraph:q(Xt).replace("hr",Ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",is).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex()},Ir={...Jt,html:q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Yt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:q(Xt).replace("hr",Ve).replace("heading",` *#{1,6} *[^
34
- ]`).replace("lheading",es).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Mr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Nr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ss=/^( {2,}|\\)\n(?!\s*$)/,zr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,je=/[\p{P}\p{S}]/u,dt=/[\s\p{P}\p{S}]/u,ei=/[^\s\p{P}\p{S}]/u,$r=q(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,dt).getRegex(),ns=/(?!~)[\p{P}\p{S}]/u,Br=/(?!~)[\s\p{P}\p{S}]/u,Hr=/(?:[^\s\p{P}\p{S}]|~)/u,Dr=q(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",yr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),rs=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,_r=q(rs,"u").replace(/punct/g,je).getRegex(),qr=q(rs,"u").replace(/punct/g,ns).getRegex(),as="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",jr=q(as,"gu").replace(/notPunctSpace/g,ei).replace(/punctSpace/g,dt).replace(/punct/g,je).getRegex(),Or=q(as,"gu").replace(/notPunctSpace/g,Hr).replace(/punctSpace/g,Br).replace(/punct/g,ns).getRegex(),Fr=q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ei).replace(/punctSpace/g,dt).replace(/punct/g,je).getRegex(),Vr=q(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,je).getRegex(),Ur=q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,ei).replace(/punctSpace/g,dt).replace(/punct/g,je).getRegex(),Wr=q(/\\(punct)/,"gu").replace(/punct/g,je).getRegex(),Kr=q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Zr=q(Yt).replace("(?:-->|$)","-->").getRegex(),Qr=q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Zr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ut=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Xr=q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ut).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ls=q(/^!?\[(label)\]\[(ref)\]/).replace("label",ut).replace("ref",Gt).getRegex(),os=q(/^!?\[(ref)\](?:\[\])?/).replace("ref",Gt).getRegex(),Gr=q("reflink|nolink(?!\\()","g").replace("reflink",ls).replace("nolink",os).getRegex(),cs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ti={_backpedal:Ne,anyPunctuation:Wr,autolink:Kr,blockSkip:Dr,br:ss,code:Nr,del:Ne,delLDelim:Ne,delRDelim:Ne,emStrongLDelim:_r,emStrongRDelimAst:jr,emStrongRDelimUnd:Fr,escape:Mr,link:Xr,nolink:os,punctuation:$r,reflink:ls,reflinkSearch:Gr,tag:Qr,text:zr,url:Ne},Yr={...ti,link:q(/^!?\[(label)\]\((.*?)\)/).replace("label",ut).getRegex(),reflink:q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ut).getRegex()},ii={...ti,emStrongRDelimAst:Or,emStrongLDelim:qr,delLDelim:Vr,delRDelim:Ur,url:q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",cs).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:q(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",cs).getRegex()},Jr={...ii,br:q(ss).replace("{2,}","*").getRegex(),text:q(ii.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ht={normal:Jt,gfm:Pr,pedantic:Ir},Ue={normal:ti,gfm:ii,breaks:Jr,pedantic:Yr},ea={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ds=t=>ea[t];function me(t,e){if(e){if(re.escapeTest.test(t))return t.replace(re.escapeReplace,ds)}else if(re.escapeTestNoEncode.test(t))return t.replace(re.escapeReplaceNoEncode,ds);return t}function us(t){try{t=encodeURI(t).replace(re.percentDecode,"%")}catch{return null}return t}function hs(t,e){var n;let i=t.replace(re.findPipe,(r,l,a)=>{let c=!1,o=l;for(;--o>=0&&a[o]==="\\";)c=!c;return c?"|":" |"}).split(re.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(re.slashPipe,"|");return i}function We(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s;){let r=t.charAt(s-n-1);if(r===e&&!i)n++;else if(r!==e&&i)n++;else break}return t.slice(0,s-n)}function ta(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function ia(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function ps(t,e,i,s,n){let r=e.href,l=e.title||null,a=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:l,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,c}function sa(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
32
+ `,this.dom.querySelector(".r-overlay-close").addEventListener("click",s=>{this.close(),s.preventDefault()},!1),this.Reveal.dispatchEvent({type:"showhelp"})}}isOpen(){return!!this.dom}close(){return this.dom?(this.dom.remove(),this.dom=null,this.state={},this.Reveal.dispatchEvent({type:"closeoverlay"}),!0):!1}getState(){return this.state}setState(t){this.stateProps.every(e=>this.state[e]===t[e])||(t.previewIframe?this.previewIframe(t.previewIframe):t.previewImage?this.previewImage(t.previewImage,t.previewFit):t.previewVideo?this.previewVideo(t.previewVideo,t.previewFit):this.close())}onSlidesClicked(t){let e=t.target,i=e.closest(this.iframeTriggerSelector),s=e.closest(this.mediaTriggerSelector);if(i){if(t.metaKey||t.shiftKey||t.altKey)return;let n=i.getAttribute("data-preview-link"),r=typeof n=="string"&&n.startsWith("http")?n:i.getAttribute("href");r&&(this.previewIframe(r),t.preventDefault())}else if(s){if(s.hasAttribute("data-preview-image")){let n=s.dataset.previewImage||s.getAttribute("src");n&&(this.previewImage(n,s.dataset.previewFit),t.preventDefault())}else if(s.hasAttribute("data-preview-video")){let n=s.dataset.previewVideo||s.getAttribute("src");if(!n){let r=s.querySelector("source");r&&(n=r.getAttribute("src"))}n&&(this.previewVideo(n,s.dataset.previewFit),t.preventDefault())}}}destroy(){this.close()}},ct=40,lr=class{constructor(t){this.Reveal=t,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let t=this.Reveal.getRevealElement();"onpointerdown"in window?(t.addEventListener("pointerdown",this.onPointerDown,!1),t.addEventListener("pointermove",this.onPointerMove,!1),t.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(t.addEventListener("MSPointerDown",this.onPointerDown,!1),t.addEventListener("MSPointerMove",this.onPointerMove,!1),t.addEventListener("MSPointerUp",this.onPointerUp,!1)):(t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let t=this.Reveal.getRevealElement();t.removeEventListener("pointerdown",this.onPointerDown,!1),t.removeEventListener("pointermove",this.onPointerMove,!1),t.removeEventListener("pointerup",this.onPointerUp,!1),t.removeEventListener("MSPointerDown",this.onPointerDown,!1),t.removeEventListener("MSPointerMove",this.onPointerMove,!1),t.removeEventListener("MSPointerUp",this.onPointerUp,!1),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(t){if(ot(t,"video[controls], audio[controls]"))return!0;for(;t&&typeof t.hasAttribute=="function";){if(t.hasAttribute("data-prevent-swipe"))return!0;t=t.parentNode}return!1}onTouchStart(t){if(this.touchCaptured=!1,this.isSwipePrevented(t.target))return!0;this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY,this.touchStartCount=t.touches.length}onTouchMove(t){if(this.isSwipePrevented(t.target))return!0;let e=this.Reveal.getConfig();if(this.touchCaptured)Fi&&t.preventDefault();else{this.Reveal.onUserInput(t);let i=t.touches[0].clientX,s=t.touches[0].clientY;if(t.touches.length===1&&this.touchStartCount!==2){let n=this.Reveal.availableRoutes({includeFragments:!0}),r=i-this.touchStartX,l=s-this.touchStartY;r>ct&&Math.abs(r)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):r<-ct&&Math.abs(r)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):l>ct&&n.up?(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.prev():this.Reveal.up()):l<-ct&&n.down&&(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.next():this.Reveal.down()),e.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&t.preventDefault():t.preventDefault()}}}onTouchEnd(t){this.touchCaptured&&!this.Reveal.slideContent.isAllowedToPlayAudio()&&this.Reveal.startEmbeddedContent(this.Reveal.getCurrentSlide()),this.touchCaptured=!1}onPointerDown(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchStart(t))}onPointerMove(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchMove(t))}onPointerUp(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchEnd(t))}},Kt="focus",Ki="blur",or=class{constructor(t){this.Reveal=t,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(t,e){t.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){this.state!==Kt&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=Kt}blur(){this.state!==Ki&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=Ki}isFocused(){return this.state===Kt}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(t){this.focus()}onDocumentPointerDown(t){let e=ee(t.target,".reveal");(!e||e!==this.Reveal.getRevealElement())&&this.blur()}},cr=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){t.showNotes&&this.element.setAttribute("data-layout",typeof t.showNotes=="string"?t.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()&&(this.element.innerHTML=this.getSlideNotes()||'<span class="notes-placeholder">No notes on this slide.</span>')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(t=this.Reveal.getCurrentSlide()){if(t.hasAttribute("data-notes"))return t.getAttribute("data-notes");let e=t.querySelectorAll("aside.notes");return e?Array.from(e).map(i=>i.innerHTML).join(`
33
+ `):null}destroy(){this.element.remove()}},dr=class{constructor(t,e){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=t,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(t){let e=this.playing;this.playing=t,!e&&this.playing?this.animate():this.render()}animate(){let t=this.progress;this.progress=this.progressCheck(),t>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let t=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,s=this.diameter2;this.progressOffset+=(1-this.progressOffset)*.1;let n=-Math.PI/2+t*(Math.PI*2),r=-Math.PI/2+this.progressOffset*(Math.PI*2);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,s,e+4,0,Math.PI*2,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,s,e,0,Math.PI*2,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,s,e,r,n,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-28/2,s-28/2),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,28/2-4,28),this.context.fillRect(18,0,28/2-4,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,28/2),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(t,e){this.canvas.addEventListener(t,e,!1)}off(t,e){this.canvas.removeEventListener(t,e,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}},ur={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,jumpToSlide:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,mouseWheel:!1,previewLinks:!1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,sortFragmentsOnSync:!0,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,view:null,scrollLayout:"full",scrollSnap:"mandatory",scrollProgress:"auto",scrollActivationWidth:435,pdfMaxPagesPerSlide:1/0,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,dependencies:[],plugins:[]},Zi="6.0.0";function Qi(t,e){arguments.length<2&&(e=arguments[0],t=document.querySelector(".reveal"));let i={},s={},n=!1,r=!1,l,a,c,o,d={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},h=[],g=1,p={layout:"",overview:""},u={},b="idle",k=0,N,$=0,L=-1,A=!1,S=new Bn(i),B=new qn(i),C=new On(i),_=new Un(i),O=new Vn(i),M=new Xn(i),Y=new Gn(i),H=new Yn(i),v=new Jn(i),R=new er(i),z=new tr(i),Z=new ir(i),te=new sr(i),se=new nr(i),Q=new rr(i),W=new ar(i),ce=new or(i),et=new lr(i),le=new cr(i);function Et(m){if(!t)throw'Unable to find presentation root (<div class="reveal">).';if(n)throw"Reveal.js has already been initialized.";if(n=!0,u.wrapper=t,u.slides=t.querySelector(".slides"),!u.slides)throw'Unable to find slides container (<div class="slides">).';return s=ye(ye(ye(ye(ye({},ur),s),e),m),qi()),/print-pdf/gi.test(window.location.search)&&(s.view="print"),gi(),window.addEventListener("load",Fe,!1),Q.load(s.plugins,s.dependencies).then(tt),new Promise(f=>i.on("ready",f))}function gi(){s.embedded===!0?u.viewport=ee(t,".reveal-viewport")||t:(u.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),u.viewport.classList.add("reveal-viewport")}function tt(){n!==!1&&(r=!0,Rt(),it(),D(),Tt(),Ct(),Il(),K(),O.update(!0),mi(),z.readURL(),setTimeout(()=>{u.slides.classList.remove("no-transition"),u.wrapper.classList.add("ready"),oe({type:"ready",data:{indexh:l,indexv:a,currentSlide:o}})},1))}function mi(){let m=s.view==="print",f=s.view==="scroll"||s.view==="reader";(m||f)&&(m?Ae():et.unbind(),u.viewport.classList.add("loading-scroll-mode"),m?document.readyState==="complete"?Y.activate():window.addEventListener("load",()=>Y.activate()):M.activate())}function Rt(){s.showHiddenSlides||P(u.wrapper,'section[data-visibility="hidden"]').forEach(m=>{let f=m.parentNode;f.childElementCount===1&&/section/i.test(f.nodeName)?f.remove():m.remove()})}function it(){u.slides.classList.add("no-transition"),Pe?u.wrapper.classList.add("no-hover"):u.wrapper.classList.remove("no-hover"),O.render(),B.render(),C.render(),Z.render(),te.render(),le.render(),u.pauseOverlay=Pn(u.wrapper,"div","pause-overlay",s.controls?'<button class="resume-button">Resume presentation</button>':null),u.statusElement=At(),u.wrapper.setAttribute("role","application")}function At(){let m=u.wrapper.querySelector(".aria-status");return m||(m=document.createElement("div"),m.style.position="absolute",m.style.height="1px",m.style.width="1px",m.style.overflow="hidden",m.style.clip="rect( 1px, 1px, 1px, 1px )",m.classList.add("aria-status"),m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true"),u.wrapper.appendChild(m)),m}function st(m){u.statusElement.textContent=m}function De(m){let f="";if(m.nodeType===3)f+=m.textContent.trim();else if(m.nodeType===1){let y=m.getAttribute("aria-hidden"),x=window.getComputedStyle(m).display==="none";if(y!=="true"&&!x){if(m.tagName==="IMG"||m.tagName==="VIDEO"){let E=m.getAttribute("alt");E&&(f+=nt(E))}Array.from(m.childNodes).forEach(E=>{f+=De(E)}),["P","DIV","UL","OL","LI","H1","H2","H3","H4","H5","H6","BLOCKQUOTE"].includes(m.tagName)&&f.trim()!==""&&(f=nt(f))}}return f=f.trim(),f===""?"":f+" "}function nt(m){let f=m.trim();return f===""?m:/[.!?]$/.test(f)?f:f+"."}function Tt(){setInterval(()=>{(!M.isActive()&&u.wrapper.scrollTop!==0||u.wrapper.scrollLeft!==0)&&(u.wrapper.scrollTop=0,u.wrapper.scrollLeft=0)},1e3)}function Ct(){document.addEventListener("fullscreenchange",Bt),document.addEventListener("webkitfullscreenchange",Bt)}function D(){s.postMessage&&window.addEventListener("message",hn,!1)}function K(m){let f=ye({},s);if(typeof m=="object"&&_e(s,m),i.isReady()===!1)return;let y=u.wrapper.querySelectorAll(Ie).length;u.wrapper.classList.remove(f.transition),u.wrapper.classList.add(s.transition),u.wrapper.setAttribute("data-transition-speed",s.transitionSpeed),u.wrapper.setAttribute("data-background-transition",s.backgroundTransition),u.viewport.style.setProperty("--slide-width",typeof s.width=="string"?s.width:s.width+"px"),u.viewport.style.setProperty("--slide-height",typeof s.height=="string"?s.height:s.height+"px"),s.shuffle&&ki(),Ot(u.wrapper,"embedded",s.embedded),Ot(u.wrapper,"rtl",s.rtl),Ot(u.wrapper,"center",s.center),s.pause===!1&&at(),_.reset(),N&&(N=(N.destroy(),null)),y>1&&s.autoSlide&&s.autoSlideStoppable&&(N=new dr(u.wrapper,()=>Math.min(Math.max((Date.now()-L)/k,0),1)),N.on("click",Dl),A=!1),s.navigationMode==="default"?u.wrapper.removeAttribute("data-navigation-mode"):u.wrapper.setAttribute("data-navigation-mode",s.navigationMode),le.configure(s,f),ce.configure(s,f),se.configure(s,f),Z.configure(s,f),te.configure(s,f),R.configure(s,f),H.configure(s,f),B.configure(s,f),Js()}function ie(){window.addEventListener("resize",mn,!1),s.touch&&et.bind(),s.keyboard&&R.bind(),s.progress&&te.bind(),s.respondToHashChanges&&z.bind(),Z.bind(),ce.bind(),u.slides.addEventListener("click",gn,!1),u.slides.addEventListener("transitionend",pn,!1),u.pauseOverlay.addEventListener("click",at,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",fn,!1)}function Ae(){et.unbind(),ce.unbind(),R.unbind(),Z.unbind(),te.unbind(),z.unbind(),window.removeEventListener("resize",mn,!1),u.slides.removeEventListener("click",gn,!1),u.slides.removeEventListener("transitionend",pn,!1),u.pauseOverlay.removeEventListener("click",at,!1)}function Sl(){n=!1,r!==!1&&(Ae(),It(),le.destroy(),ce.destroy(),W.destroy(),Q.destroy(),se.destroy(),Z.destroy(),te.destroy(),O.destroy(),B.destroy(),C.destroy(),document.removeEventListener("fullscreenchange",Bt),document.removeEventListener("webkitfullscreenchange",Bt),document.removeEventListener("visibilitychange",fn,!1),window.removeEventListener("message",hn,!1),window.removeEventListener("load",Fe,!1),u.pauseOverlay&&u.pauseOverlay.remove(),u.statusElement&&u.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),u.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),u.wrapper.removeAttribute("data-transition-speed"),u.wrapper.removeAttribute("data-background-transition"),u.viewport.classList.remove("reveal-viewport"),u.viewport.style.removeProperty("--slide-width"),u.viewport.style.removeProperty("--slide-height"),u.slides.style.removeProperty("width"),u.slides.style.removeProperty("height"),u.slides.style.removeProperty("zoom"),u.slides.style.removeProperty("left"),u.slides.style.removeProperty("top"),u.slides.style.removeProperty("bottom"),u.slides.style.removeProperty("right"),u.slides.style.removeProperty("transform"),Array.from(u.wrapper.querySelectorAll(Ie)).forEach(m=>{m.style.removeProperty("display"),m.style.removeProperty("top"),m.removeAttribute("hidden"),m.removeAttribute("aria-hidden")}))}function Os(m,f,y){t.addEventListener(m,f,y)}function Fs(m,f,y){t.removeEventListener(m,f,y)}function fi(m){typeof m.layout=="string"&&(p.layout=m.layout),typeof m.overview=="string"&&(p.overview=m.overview),p.layout?Ee(u.slides,p.layout+" "+p.overview):Ee(u.slides,p.overview)}function oe({target:m=u.wrapper,type:f,data:y,bubbles:x=!0}){let E=document.createEvent("HTMLEvents",1,2);return E.initEvent(f,x,!0),_e(E,y),m.dispatchEvent(E),m===u.wrapper&&Us(f),E}function Vs(m){oe({type:"slidechanged",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o,origin:m}})}function Us(m,f){if(s.postMessageEvents&&window.parent!==window.self){let y={namespace:"reveal",eventName:m,state:dn()};_e(y,f),window.parent.postMessage(JSON.stringify(y),"*")}}function Fe(){if(u.wrapper&&!Y.isActive()){let m=u.viewport.offsetWidth,f=u.viewport.offsetHeight;if(!s.disableLayout){Pe&&!s.embedded&&document.documentElement.style.setProperty("--vh",window.innerHeight*.01+"px");let y=M.isActive()?Lt(m,f):Lt(),x=g;Ws(s.width,s.height),u.slides.style.width=y.width+"px",u.slides.style.height=y.height+"px",g=Math.min(y.presentationWidth/y.width,y.presentationHeight/y.height),g=Math.max(g,s.minScale),g=Math.min(g,s.maxScale),g===1||M.isActive()?(u.slides.style.zoom="",u.slides.style.left="",u.slides.style.top="",u.slides.style.bottom="",u.slides.style.right="",fi({layout:""})):(u.slides.style.zoom="",u.slides.style.left="50%",u.slides.style.top="50%",u.slides.style.bottom="auto",u.slides.style.right="auto",fi({layout:"translate(-50%, -50%) scale("+g+")"}));let E=Array.from(u.wrapper.querySelectorAll(Ie));for(let U=0,G=E.length;U<G;U++){let J=E[U];J.style.display!=="none"&&(s.center||J.classList.contains("center")?J.classList.contains("stack")?J.style.top=0:J.style.top=Math.max((y.height-J.scrollHeight)/2,0)+"px":J.style.top="")}x!==g&&oe({type:"resize",data:{oldScale:x,scale:g,size:y}})}El(),u.viewport.style.setProperty("--slide-scale",g),u.viewport.style.setProperty("--viewport-width",m+"px"),u.viewport.style.setProperty("--viewport-height",f+"px"),M.layout(),te.update(),O.updateParallax(),v.isActive()&&v.update()}}function Ws(m,f){P(u.slides,"section > .stretch, section > .r-stretch").forEach(y=>{let x=In(y,f);if(/(img|video)/gi.test(y.nodeName)){let E=y.naturalWidth||y.videoWidth,U=y.naturalHeight||y.videoHeight,G=Math.min(m/E,x/U);y.style.width=E*G+"px",y.style.height=U*G+"px"}else y.style.width=m+"px",y.style.height=x+"px"})}function El(){if(u.wrapper&&!s.disableLayout&&!Y.isActive()&&typeof s.scrollActivationWidth=="number"&&s.view!=="scroll"){let m=Lt();m.presentationWidth>0&&m.presentationWidth<=s.scrollActivationWidth?M.isActive()||(O.create(),M.activate()):M.isActive()&&M.deactivate()}}function Lt(m,f){let y=s.width,x=s.height;s.disableLayout&&(y=u.slides.offsetWidth,x=u.slides.offsetHeight);let E={width:y,height:x,presentationWidth:m||u.wrapper.offsetWidth,presentationHeight:f||u.wrapper.offsetHeight};return E.presentationWidth-=E.presentationWidth*s.margin,E.presentationHeight-=E.presentationHeight*s.margin,typeof E.width=="string"&&/%$/.test(E.width)&&(E.width=parseInt(E.width,10)/100*E.presentationWidth),typeof E.height=="string"&&/%$/.test(E.height)&&(E.height=parseInt(E.height,10)/100*E.presentationHeight),E}function Ks(m,f){typeof m=="object"&&typeof m.setAttribute=="function"&&m.setAttribute("data-previous-indexv",f||0)}function Zs(m){if(typeof m=="object"&&typeof m.setAttribute=="function"&&m.classList.contains("stack")){let f=m.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(m.getAttribute(f)||0,10)}return 0}function rt(m=o){return m&&m.parentNode&&!!m.parentNode.nodeName.match(/section/i)}function Rl(m=o){return m.classList.contains(".stack")||m.querySelector("section")!==null}function Qs(){return o&&rt(o)?!o.nextElementSibling:!1}function Xs(){return l===0&&a===0}function vi(){return o?!(o.nextElementSibling||rt(o)&&o.parentNode.nextElementSibling):!1}function Gs(){if(s.pause){let m=u.wrapper.classList.contains("paused");It(),u.wrapper.classList.add("paused"),m===!1&&oe({type:"paused"})}}function at(){let m=u.wrapper.classList.contains("paused");u.wrapper.classList.remove("paused"),Ve(),m&&oe({type:"resumed"})}function Ys(m){typeof m=="boolean"?m?Gs():at():lt()?at():Gs()}function lt(){return u.wrapper.classList.contains("paused")}function Al(m){typeof m=="boolean"?m?C.show():C.hide():C.isVisible()?C.hide():C.show()}function Tl(m){typeof m=="boolean"?m?Mt():Nt():A?Mt():Nt()}function Cl(){return!!(k&&!A)}function be(m,f,y,x){if(oe({type:"beforeslidechange",data:{indexh:m===void 0?l:m,indexv:f===void 0?a:f,origin:x}}).defaultPrevented)return;c=o;let E=u.wrapper.querySelectorAll(we);if(M.isActive()){let ne=M.getSlideByIndices(m,f);ne&&M.scrollToSlide(ne);return}if(E.length===0)return;f===void 0&&!v.isActive()&&(f=Zs(E[m])),c&&c.parentNode&&c.parentNode.classList.contains("stack")&&Ks(c.parentNode,a);let U=h.concat();h.length=0;let G=l||0,J=a||0;l=Pt(we,m===void 0?l:m),a=Pt(Vt,f===void 0?a:f);let Se=l!==G||a!==J;Se||(c=null);let Ce=E[l],me=Ce.querySelectorAll("section");t.classList.toggle("is-vertical-slide",me.length>1),o=me[a]||Ce;let X=!1;Se&&c&&o&&!v.isActive()&&(b="running",X=bi(c,o,G,J),X&&u.slides.classList.add("disable-slide-transitions")),yi(),Fe(),v.isActive()&&v.update(),y!==void 0&&H.goto(y),c&&c!==o&&(c.classList.remove("present"),c.setAttribute("aria-hidden","true"),Xs()&&setTimeout(()=>{Ml().forEach(ne=>{Ks(ne,0)})},0));e:for(let ne=0,_l=h.length;ne<_l;ne++){for(let Ht=0;Ht<U.length;Ht++)if(U[Ht]===h[ne]){U.splice(Ht,1);continue e}u.viewport.classList.add(h[ne]),oe({type:h[ne]})}for(;U.length;)u.viewport.classList.remove(U.pop());Se&&(S.afterSlideChanged(),Vs(x)),(Se||!c)&&(S.stopEmbeddedContent(c),S.startEmbeddedContent(o)),requestAnimationFrame(()=>{st(De(o))}),te.update(),Z.update(),le.update(),O.update(),O.updateParallax(),B.update(),H.update(),z.writeURL(),Ve(),X&&(setTimeout(()=>{u.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&_.run(c,o))}function bi(m,f,y,x){return m.hasAttribute("data-auto-animate")&&f.hasAttribute("data-auto-animate")&&m.getAttribute("data-auto-animate-id")===f.getAttribute("data-auto-animate-id")&&!(l>y||a>x?f:m).hasAttribute("data-auto-animate-restart")}function Ll(m,f,y){let x=l||0;l=f,a=y;let E=o!==m;c=o,o=m,o&&c&&s.autoAnimate&&bi(c,o,x,a)&&_.run(c,o),E&&(S.afterSlideChanged(),c&&(S.stopEmbeddedContent(c),S.stopEmbeddedContent(c.slideBackgroundElement)),S.startEmbeddedContent(o),S.startEmbeddedContent(o.slideBackgroundElement)),requestAnimationFrame(()=>{st(De(o))}),Vs()}function Js(){Ae(),ie(),Fe(),k=s.autoSlide,Ve(),O.create(),z.writeURL(),s.sortFragmentsOnSync===!0&&H.sortAll(),l!==void 0&&(l=Pt(we,l),a=Pt(Vt,a)),Z.update(),te.update(),yi(),le.update(),le.updateVisibility(),W.update(),O.update(!0),B.update(),S.formatEmbeddedContent(),s.autoPlayMedia===!1?S.stopEmbeddedContent(o,{unloadIframes:!1}):S.startEmbeddedContent(o),v.isActive()&&v.layout(),oe({type:"sync"})}function Pl(m=o){O.sync(m),H.sync(m),S.load(m),O.update(),le.update(),oe({type:"slidesync",data:{slide:m}})}function Il(){Te().forEach(m=>{P(m,"section").forEach((f,y)=>{y>0&&(f.classList.remove("present"),f.classList.remove("past"),f.classList.add("future"),f.setAttribute("aria-hidden","true"))})})}function ki(m=Te()){m.forEach((f,y)=>{let x=m[Math.floor(Math.random()*m.length)];x.parentNode===f.parentNode&&f.parentNode.insertBefore(f,x);let E=f.querySelectorAll("section");E.length&&ki(E)})}function Pt(m,f){let y=P(u.wrapper,m),x=y.length,E=M.isActive()||Y.isActive(),U=!1,G=!1;if(x){s.loop&&(f>=x&&(U=!0),f%=x,f<0&&(f=x+f,G=!0)),f=Math.max(Math.min(f,x-1),0);for(let me=0;me<x;me++){let X=y[me],ne=s.rtl&&!rt(X);if(X.classList.remove("past"),X.classList.remove("present"),X.classList.remove("future"),X.setAttribute("hidden",""),X.setAttribute("aria-hidden","true"),X.querySelector("section")&&X.classList.add("stack"),E){X.classList.add("present");continue}me<f?(X.classList.add(ne?"future":"past"),s.fragments&&en(X)):me>f?(X.classList.add(ne?"past":"future"),s.fragments&&tn(X)):me===f&&s.fragments&&(U?tn(X):G&&en(X))}let J=y[f],Se=J.classList.contains("present");J.classList.add("present"),J.removeAttribute("hidden"),J.removeAttribute("aria-hidden"),Se||oe({target:J,type:"visible",bubbles:!1});let Ce=J.getAttribute("data-state");Ce&&(h=h.concat(Ce.split(" ")))}else f=0;return f}function en(m){P(m,".fragment").forEach(f=>{f.classList.add("visible"),f.classList.remove("current-fragment")})}function tn(m){P(m,".fragment.visible").forEach(f=>{f.classList.remove("visible","current-fragment")})}function yi(){let m=Te(),f=m.length,y,x;if(f&&l!==void 0){let E=v.isActive(),U=E?10:s.viewDistance;Pe&&(U=E?6:s.mobileViewDistance),Y.isActive()&&(U=Number.MAX_VALUE);for(let G=0;G<f;G++){let J=m[G],Se=P(J,"section"),Ce=Se.length;if(y=Math.abs((l||0)-G)||0,s.loop&&(y=Math.abs(((l||0)-G)%(f-U))||0),y<U?S.load(J):S.unload(J),Ce){let me=E?0:Zs(J);for(let X=0;X<Ce;X++){let ne=Se[X];x=Math.abs(G===(l||0)?(a||0)-X:X-me),y+x<U?S.load(ne):S.unload(ne)}}}ln()?u.wrapper.classList.add("has-vertical-slides"):u.wrapper.classList.remove("has-vertical-slides"),an()?u.wrapper.classList.add("has-horizontal-slides"):u.wrapper.classList.remove("has-horizontal-slides")}}function xe({includeFragments:m=!1}={}){let f=u.wrapper.querySelectorAll(we),y=u.wrapper.querySelectorAll(Vt),x={left:l>0,right:l<f.length-1,up:a>0,down:a<y.length-1};if(s.loop&&(f.length>1&&(x.left=!0,x.right=!0),y.length>1&&(x.up=!0,x.down=!0)),f.length>1&&s.navigationMode==="linear"&&(x.right=x.right||x.down,x.left=x.left||x.up),m===!0){let E=H.availableRoutes();x.left=x.left||E.prev,x.up=x.up||E.prev,x.down=x.down||E.next,x.right=x.right||E.next}if(s.rtl){let E=x.left;x.left=x.right,x.right=E}return x}function sn(m=o){let f=Te(),y=0;e:for(let x=0;x<f.length;x++){let E=f[x],U=E.querySelectorAll("section");for(let G=0;G<U.length;G++){if(U[G]===m)break e;U[G].dataset.visibility!=="uncounted"&&y++}if(E===m)break;E.classList.contains("stack")===!1&&E.dataset.visibility!=="uncounted"&&y++}return y}function Nl(){let m=on(),f=sn();if(o){let y=o.querySelectorAll(".fragment");if(y.length>0){let x=o.querySelectorAll(".fragment.visible");f+=x.length/y.length*.9}}return Math.min(f/(m-1),1)}function nn(m){let f=l,y=a,x;if(m)if(M.isActive())f=parseInt(m.getAttribute("data-index-h"),10),m.getAttribute("data-index-v")&&(y=parseInt(m.getAttribute("data-index-v"),10));else{let E=rt(m),U=E?m.parentNode:m,G=Te();f=Math.max(G.indexOf(U),0),y=void 0,E&&(y=Math.max(P(m.parentNode,"section").indexOf(m),0))}if(!m&&o&&o.querySelectorAll(".fragment").length>0){let E=o.querySelector(".current-fragment");x=E&&E.hasAttribute("data-fragment-index")?parseInt(E.getAttribute("data-fragment-index"),10):o.querySelectorAll(".fragment.visible").length-1}return{h:f,v:y,f:x}}function wi(){return P(u.wrapper,Ie+':not(.stack):not([data-visibility="uncounted"])')}function Te(){return P(u.wrapper,we)}function rn(){return P(u.wrapper,".slides>section>section")}function Ml(){return P(u.wrapper,we+".stack")}function an(){return Te().length>1}function ln(){return rn().length>1}function zl(){return wi().map(m=>{let f={};for(let y=0;y<m.attributes.length;y++){let x=m.attributes[y];f[x.name]=x.value}return f})}function on(){return wi().length}function cn(m,f){let y=Te()[m],x=y&&y.querySelectorAll("section");return x&&x.length&&typeof f=="number"?x?x[f]:void 0:y}function $l(m,f){let y=typeof m=="number"?cn(m,f):m;if(y)return y.slideBackgroundElement}function dn(){let m=nn();return ye({indexh:m.h,indexv:m.v,indexf:m.f,paused:lt(),overview:v.isActive()},W.getState())}function Bl(m){if(typeof m=="object"){be(je(m.indexh),je(m.indexv),je(m.indexf));let f=je(m.paused),y=je(m.overview);typeof f=="boolean"&&f!==lt()&&Ys(f),typeof y=="boolean"&&y!==v.isActive()&&v.toggle(y),W.setState(m)}}function Ve(){if(It(),o&&s.autoSlide!==!1){let m=o.querySelector(".current-fragment[data-autoslide]"),f=m?m.getAttribute("data-autoslide"):null,y=o.parentNode?o.parentNode.getAttribute("data-autoslide"):null,x=o.getAttribute("data-autoslide");f?k=parseInt(f,10):x?k=parseInt(x,10):y?k=parseInt(y,10):(k=s.autoSlide,o.querySelectorAll(".fragment").length===0&&P(o,"video, audio").forEach(E=>{E.hasAttribute("data-autoplay")&&k&&E.duration*1e3/E.playbackRate>k&&(k=E.duration*1e3/E.playbackRate+1e3)})),k&&!A&&!lt()&&!v.isActive()&&(!vi()||H.availableRoutes().next||s.loop===!0)&&($=setTimeout(()=>{typeof s.autoSlideMethod=="function"?s.autoSlideMethod():Ei(),Ve()},k),L=Date.now()),N&&N.setPlaying($!==-1)}}function It(){clearTimeout($),$=-1}function Nt(){k&&!A&&(A=!0,oe({type:"autoslidepaused"}),clearTimeout($),N&&N.setPlaying(!1))}function Mt(){k&&A&&(A=!1,oe({type:"autoslideresumed"}),Ve())}function zt({skipFragments:m=!1}={}){if(d.hasNavigatedHorizontally=!0,M.isActive())return M.prev();s.rtl?(v.isActive()||m||H.next()===!1)&&xe().left&&be(l+1,s.navigationMode==="grid"?a:void 0):(v.isActive()||m||H.prev()===!1)&&xe().left&&be(l-1,s.navigationMode==="grid"?a:void 0)}function $t({skipFragments:m=!1}={}){if(d.hasNavigatedHorizontally=!0,M.isActive())return M.next();s.rtl?(v.isActive()||m||H.prev()===!1)&&xe().right&&be(l-1,s.navigationMode==="grid"?a:void 0):(v.isActive()||m||H.next()===!1)&&xe().right&&be(l+1,s.navigationMode==="grid"?a:void 0)}function xi({skipFragments:m=!1}={}){if(M.isActive())return M.prev();(v.isActive()||m||H.prev()===!1)&&xe().up&&be(l,a-1)}function Si({skipFragments:m=!1}={}){if(d.hasNavigatedVertically=!0,M.isActive())return M.next();(v.isActive()||m||H.next()===!1)&&xe().down&&be(l,a+1)}function un({skipFragments:m=!1}={}){if(M.isActive())return M.prev();if(m||H.prev()===!1)if(xe().up)xi({skipFragments:m});else{let f;if(f=s.rtl?P(u.wrapper,we+".future").pop():P(u.wrapper,we+".past").pop(),f&&f.classList.contains("stack")){let y=f.querySelectorAll("section").length-1||void 0;be(l-1,y)}else s.rtl?$t({skipFragments:m}):zt({skipFragments:m})}}function Ei({skipFragments:m=!1}={}){if(d.hasNavigatedHorizontally=!0,d.hasNavigatedVertically=!0,M.isActive())return M.next();if(m||H.next()===!1){let f=xe();f.down&&f.right&&s.loop&&Qs()&&(f.down=!1),f.down?Si({skipFragments:m}):s.rtl?zt({skipFragments:m}):$t({skipFragments:m})}}function Hl(m){s.autoSlideStoppable&&Nt()}function hn(m){let f=m.data;if(typeof f=="string"&&f.charAt(0)==="{"&&f.charAt(f.length-1)==="}"&&(f=JSON.parse(f),f.method&&typeof i[f.method]=="function"))if(Dn.test(f.method)===!1){let y=i[f.method].apply(i,f.args);Us("callback",{method:f.method,result:y})}else console.warn('reveal.js: "'+f.method+'" is is blacklisted from the postMessage API')}function pn(m){b==="running"&&/section/gi.test(m.target.nodeName)&&(b="idle",oe({type:"slidetransitionend",data:{indexh:l,indexv:a,previousSlide:c,currentSlide:o}}))}function gn(m){let f=ee(m.target,'a[href^="#"]');if(f){let y=f.getAttribute("href"),x=z.getIndicesFromHash(y);x&&(i.slide(x.h,x.v,x.f),m.preventDefault())}}function mn(m){Fe()}function fn(m){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function Bt(m){(document.fullscreenElement||document.webkitFullscreenElement)===u.wrapper&&(m.stopImmediatePropagation(),setTimeout(()=>{i.layout(),i.focus.focus()},1))}function Dl(m){vi()&&s.loop===!1?(be(0,0),Mt()):A?Mt():Nt()}let vn={VERSION:Zi,initialize:Et,configure:K,destroy:Sl,sync:Js,syncSlide:Pl,syncFragments:H.sync.bind(H),slide:be,left:zt,right:$t,up:xi,down:Si,prev:un,next:Ei,navigateLeft:zt,navigateRight:$t,navigateUp:xi,navigateDown:Si,navigatePrev:un,navigateNext:Ei,navigateFragment:H.goto.bind(H),prevFragment:H.prev.bind(H),nextFragment:H.next.bind(H),on:Os,off:Fs,addEventListener:Os,removeEventListener:Fs,layout:Fe,shuffle:ki,availableRoutes:xe,availableFragments:H.availableRoutes.bind(H),toggleHelp:W.toggleHelp.bind(W),toggleOverview:v.toggle.bind(v),toggleScrollView:M.toggle.bind(M),togglePause:Ys,toggleAutoSlide:Tl,toggleJumpToSlide:Al,isFirstSlide:Xs,isLastSlide:vi,isLastVerticalSlide:Qs,isVerticalSlide:rt,isVerticalStack:Rl,isPaused:lt,isAutoSliding:Cl,isSpeakerNotes:le.isSpeakerNotesWindow.bind(le),isOverview:v.isActive.bind(v),isFocused:ce.isFocused.bind(ce),isOverlayOpen:W.isOpen.bind(W),isScrollView:M.isActive.bind(M),isPrintView:Y.isActive.bind(Y),isReady:()=>r,loadSlide:S.load.bind(S),unloadSlide:S.unload.bind(S),startEmbeddedContent:()=>S.startEmbeddedContent(o),stopEmbeddedContent:()=>S.stopEmbeddedContent(o,{unloadIframes:!1}),previewIframe:W.previewIframe.bind(W),previewImage:W.previewImage.bind(W),previewVideo:W.previewVideo.bind(W),showPreview:W.previewIframe.bind(W),hidePreview:W.close.bind(W),addEventListeners:ie,removeEventListeners:Ae,dispatchEvent:oe,getState:dn,setState:Bl,getProgress:Nl,getIndices:nn,getSlidesAttributes:zl,getSlidePastCount:sn,getTotalSlides:on,getSlide:cn,getPreviousSlide:()=>c,getCurrentSlide:()=>o,getSlideBackground:$l,getSlideNotes:le.getSlideNotes.bind(le),getSlides:wi,getHorizontalSlides:Te,getVerticalSlides:rn,hasHorizontalSlides:an,hasVerticalSlides:ln,hasNavigatedHorizontally:()=>d.hasNavigatedHorizontally,hasNavigatedVertically:()=>d.hasNavigatedVertically,shouldAutoAnimateBetween:bi,addKeyBinding:R.addKeyBinding.bind(R),removeKeyBinding:R.removeKeyBinding.bind(R),triggerKey:R.triggerKey.bind(R),registerKeyboardShortcut:R.registerKeyboardShortcut.bind(R),getComputedSlideSize:Lt,setCurrentScrollPage:Ll,removeHiddenSlides:Rt,getScale:()=>g,getConfig:()=>s,getQueryHash:qi,getSlidePath:z.getHash.bind(z),getRevealElement:()=>t,getSlidesElement:()=>u.slides,getViewportElement:()=>u.viewport,getBackgroundsElement:()=>O.element,registerPlugin:Q.registerPlugin.bind(Q),hasPlugin:Q.hasPlugin.bind(Q),getPlugin:Q.getPlugin.bind(Q),getPlugins:Q.getRegisteredPlugins.bind(Q)};return _e(i,Di(ye({},vn),{announceStatus:st,getStatusText:De,focus:ce,scroll:M,progress:te,controls:Z,location:z,overview:v,keyboard:R,fragments:H,backgrounds:O,slideContent:S,slideNumber:B,onUserInput:Hl,closeOverlay:W.close.bind(W),updateSlidesVisibility:yi,layoutSlideContents:Ws,transformSlides:fi,cueAutoSlide:Ve,cancelAutoSlide:It})),vn}var Re=Qi,Xi=[];Re.initialize=t=>{let e=document.querySelector(".reveal");if(!(e instanceof HTMLElement))throw Error('Unable to find presentation root (<div class="reveal">).');return Object.assign(Re,new Qi(e,t)),Xi.map(i=>i(Re)),Re.initialize()},["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{Re[t]=(...e)=>{Xi.push(i=>i[t].call(null,...e))}}),Re.isReady=()=>!1,Re.VERSION=Zi;var w=bn(to(),1),Gi=(0,T.createContext)(null),hr=[];function pr(t,e){if(t===e)return!1;if(!t||!e)return t!==e;let i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!0;for(let n of i)if(!(n in e)||t[n]!==e[n])return!0;return!1}function Yi(t,e){t&&(typeof t=="function"?t(e):t.current=e)}function gr(t){return t.tagName==="SECTION"}function Ji(t,e,i){return Array.from(t.children).filter(gr).map(s=>{let n=e.get(s);n===void 0&&(n=i.current++,e.set(s,n));let r=Ji(s,e,i);return r.length>0?[n,r]:n})}function mr(t,e,i){return t?JSON.stringify(Ji(t,e,i)):"[]"}function fr({config:t,plugins:e=hr,onReady:i,onSync:s,onSlideSync:n,onSlideChange:r,onSlideTransitionEnd:l,onFragmentShown:a,onFragmentHidden:c,onOverviewShown:o,onOverviewHidden:d,onPaused:h,onResumed:g,deckRef:p,className:u,style:b,children:k}){let N=(0,T.useRef)(null),$=(0,T.useRef)(null),L=(0,T.useRef)(null),[A,S]=(0,T.useState)(null),B=(0,T.useRef)(e),C=(0,T.useRef)(!1),_=(0,T.useRef)(t),O=(0,T.useRef)(null),M=(0,T.useRef)(new WeakMap),Y=(0,T.useRef)(1),H=(0,T.useRef)(!1),v=(0,T.useRef)(0);return(0,T.useEffect)(()=>{if(H.current=!0,v.current+=1,L.current)L.current.isReady()&&S(L.current);else{let R=new Re(N.current,{...t,plugins:B.current});_.current=t,L.current=R,R.initialize().then(()=>{!H.current||L.current!==R||(S(R),i==null||i(R))})}return()=>{H.current=!1;let R=L.current;if(!R)return;let z=++v.current;Promise.resolve().then(()=>{if(!(H.current||v.current!==z)&&L.current===R){try{R.destroy()}catch{}L.current===R&&(L.current=null)}})}},[]),(0,T.useEffect)(()=>(Yi(p,A),()=>Yi(p,null)),[p,A]),(0,T.useEffect)(()=>{if(!A)return;let R=[["sync",s],["slidesync",n],["slidechanged",r],["slidetransitionend",l],["fragmentshown",a],["fragmenthidden",c],["overviewshown",o],["overviewhidden",d],["paused",h],["resumed",g]].filter(z=>z[1]!=null);for(let[z,Z]of R)A.on(z,Z);return()=>{for(let[z,Z]of R)A.off(z,Z)}},[A,s,n,r,l,a,c,o,d,h,g]),(0,T.useLayoutEffect)(()=>{var R;!A||!((R=L.current)!=null&&R.isReady())||pr(_.current,t)&&(C.current=!0,L.current.configure(t??{}),_.current=t)},[A,t]),(0,T.useLayoutEffect)(()=>{var Z;let R=C.current;C.current=!1;let z=mr($.current,M.current,Y);if(R){O.current=z;return}(Z=L.current)!=null&&Z.isReady()&&O.current!==z&&(L.current.sync(),O.current=z)}),(0,w.jsx)(Gi.Provider,{value:A,children:(0,w.jsx)("div",{className:u?`reveal ${u}`:"reveal",style:b,ref:N,children:(0,w.jsx)("div",{className:"slides",ref:$,children:k})})})}var vr={background:"data-background",backgroundImage:"data-background-image",backgroundVideo:"data-background-video",backgroundVideoLoop:"data-background-video-loop",backgroundVideoMuted:"data-background-video-muted",backgroundIframe:"data-background-iframe",backgroundColor:"data-background-color",backgroundGradient:"data-background-gradient",backgroundSize:"data-background-size",backgroundPosition:"data-background-position",backgroundRepeat:"data-background-repeat",backgroundOpacity:"data-background-opacity",backgroundTransition:"data-background-transition",visibility:"data-visibility",autoAnimate:"data-auto-animate",autoAnimateId:"data-auto-animate-id",autoAnimateRestart:"data-auto-animate-restart",autoAnimateUnmatched:"data-auto-animate-unmatched",autoAnimateEasing:"data-auto-animate-easing",autoAnimateDuration:"data-auto-animate-duration",autoAnimateDelay:"data-auto-animate-delay",transition:"data-transition",transitionSpeed:"data-transition-speed",autoSlide:"data-autoslide",notes:"data-notes",backgroundInteractive:"data-background-interactive",preload:"data-preload"};function br(t){return JSON.stringify(Object.entries(t).filter(([e])=>e.startsWith("data-")).sort(([e],[i])=>e.localeCompare(i)))}function kr(t,e){let i={...t},s=i;for(let[n,r]of Object.entries(vr)){if(s[r]!==void 0)continue;let l=e[n];if(l!==void 0){if(l===!1){n==="autoAnimateUnmatched"&&(s[r]="false");continue}s[r]=typeof l=="boolean"?"":l}}return i}function yr({children:t,background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:r,backgroundIframe:l,backgroundColor:a,backgroundGradient:c,backgroundSize:o,backgroundPosition:d,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:u,autoAnimate:b,autoAnimateId:k,autoAnimateRestart:N,autoAnimateUnmatched:$,autoAnimateEasing:L,autoAnimateDuration:A,autoAnimateDelay:S,transition:B,transitionSpeed:C,autoSlide:_,notes:O,backgroundInteractive:M,preload:Y,...H}){let v=(0,T.useContext)(Gi),R=(0,T.useRef)(null),z=(0,T.useRef)(null),Z=(0,T.useRef)(null),te=kr(H,{background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:r,backgroundIframe:l,backgroundColor:a,backgroundGradient:c,backgroundSize:o,backgroundPosition:d,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:u,autoAnimate:b,autoAnimateId:k,autoAnimateRestart:N,autoAnimateUnmatched:$,autoAnimateEasing:L,autoAnimateDuration:A,autoAnimateDelay:S,transition:B,transitionSpeed:C,autoSlide:_,notes:O,backgroundInteractive:M,preload:Y}),se=br(te);return(0,T.useLayoutEffect)(()=>{let Q=R.current;if(!v||!Q||typeof v.syncSlide!="function")return;if(z.current!==v){z.current=v,Z.current=se;return}if(se==="[]")return;let W=z.current===v,ce=Z.current===se;W&&ce||(v.syncSlide(Q),z.current=v,Z.current=se)},[v,se]),(0,w.jsx)("section",{ref:R,...te,children:t})}function wr({className:t,style:e,children:i}){return(0,w.jsx)("section",{className:t,style:e,children:i})}function Zt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ne=Zt();function es(t){Ne=t}var Me={exec:()=>null};function j(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,r)=>{let l=typeof r=="string"?r:r.source;return l=l.replace(re.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var xr=(()=>{try{return!0}catch{return!1}})(),re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Sr=/^(?:[ \t]*(?:\n|$))+/,Er=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Rr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,We=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ar=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Qt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ts=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,is=j(ts).replace(/bull/g,Qt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Tr=j(ts).replace(/bull/g,Qt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Cr=/^[^\n]+/,Gt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Lr=j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Gt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pr=j(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Qt).getRegex(),dt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Yt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ir=j("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Yt).replace("tag",dt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ss=j(Xt).replace("hr",We).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dt).getRegex(),Jt={blockquote:j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ss).getRegex(),code:Er,def:Lr,fences:Rr,heading:Ar,hr:We,html:Ir,lheading:is,list:Pr,newline:Sr,paragraph:ss,table:Me,text:Cr},ns=j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",We).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dt).getRegex(),Nr={...Jt,lheading:Tr,table:ns,paragraph:j(Xt).replace("hr",We).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ns).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dt).getRegex()},Mr={...Jt,html:j(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Yt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:j(Xt).replace("hr",We).replace("heading",` *#{1,6} *[^
34
+ ]`).replace("lheading",is).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,$r=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rs=/^( {2,}|\\)\n(?!\s*$)/,Br=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,qe=/[\p{P}\p{S}]/u,ut=/[\s\p{P}\p{S}]/u,ei=/[^\s\p{P}\p{S}]/u,Hr=j(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ut).getRegex(),as=/(?!~)[\p{P}\p{S}]/u,Dr=/(?!~)[\s\p{P}\p{S}]/u,_r=/(?:[^\s\p{P}\p{S}]|~)/u,jr=j(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",xr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ls=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,qr=j(ls,"u").replace(/punct/g,qe).getRegex(),Or=j(ls,"u").replace(/punct/g,as).getRegex(),os="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Fr=j(os,"gu").replace(/notPunctSpace/g,ei).replace(/punctSpace/g,ut).replace(/punct/g,qe).getRegex(),Vr=j(os,"gu").replace(/notPunctSpace/g,_r).replace(/punctSpace/g,Dr).replace(/punct/g,as).getRegex(),Ur=j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ei).replace(/punctSpace/g,ut).replace(/punct/g,qe).getRegex(),Wr=j(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,qe).getRegex(),Kr=j("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,ei).replace(/punctSpace/g,ut).replace(/punct/g,qe).getRegex(),Zr=j(/\\(punct)/,"gu").replace(/punct/g,qe).getRegex(),Qr=j(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Xr=j(Yt).replace("(?:-->|$)","-->").getRegex(),Gr=j("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Xr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ht=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Yr=j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ht).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cs=j(/^!?\[(label)\]\[(ref)\]/).replace("label",ht).replace("ref",Gt).getRegex(),ds=j(/^!?\[(ref)\](?:\[\])?/).replace("ref",Gt).getRegex(),Jr=j("reflink|nolink(?!\\()","g").replace("reflink",cs).replace("nolink",ds).getRegex(),us=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ti={_backpedal:Me,anyPunctuation:Zr,autolink:Qr,blockSkip:jr,br:rs,code:$r,del:Me,delLDelim:Me,delRDelim:Me,emStrongLDelim:qr,emStrongRDelimAst:Fr,emStrongRDelimUnd:Ur,escape:zr,link:Yr,nolink:ds,punctuation:Hr,reflink:cs,reflinkSearch:Jr,tag:Gr,text:Br,url:Me},ea={...ti,link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",ht).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ht).getRegex()},ii={...ti,emStrongRDelimAst:Vr,emStrongLDelim:Or,delLDelim:Wr,delRDelim:Kr,url:j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",us).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:j(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",us).getRegex()},ta={...ii,br:j(rs).replace("{2,}","*").getRegex(),text:j(ii.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},pt={normal:Jt,gfm:Nr,pedantic:Mr},Ke={normal:ti,gfm:ii,breaks:ta,pedantic:ea},ia={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hs=t=>ia[t];function fe(t,e){if(e){if(re.escapeTest.test(t))return t.replace(re.escapeReplace,hs)}else if(re.escapeTestNoEncode.test(t))return t.replace(re.escapeReplaceNoEncode,hs);return t}function ps(t){try{t=encodeURI(t).replace(re.percentDecode,"%")}catch{return null}return t}function gs(t,e){var n;let i=t.replace(re.findPipe,(r,l,a)=>{let c=!1,o=l;for(;--o>=0&&a[o]==="\\";)c=!c;return c?"|":" |"}).split(re.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(re.slashPipe,"|");return i}function Ze(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s;){let r=t.charAt(s-n-1);if(r===e&&!i)n++;else if(r!==e&&i)n++;else break}return t.slice(0,s-n)}function sa(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function na(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function ms(t,e,i,s,n){let r=e.href,l=e.title||null,a=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:l,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,c}function ra(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
35
35
  `).map(r=>{let l=r.match(i.other.beginningSpace);if(l===null)return r;let[a]=l;return a.length>=n.length?r.slice(n.length):r}).join(`
36
- `)}var pt=class{constructor(t){I(this,"options");I(this,"rules");I(this,"lexer");this.options=t||Me}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:We(i,`
37
- `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=sa(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=We(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:We(e[0],`
38
- `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=We(e[0],`
36
+ `)}var gt=class{constructor(t){I(this,"options");I(this,"rules");I(this,"lexer");this.options=t||Ne}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ze(i,`
37
+ `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=ra(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ze(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Ze(e[0],`
38
+ `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=Ze(e[0],`
39
39
  `).split(`
40
40
  `),s="",n="",r=[];for(;i.length>0;){let l=!1,a=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))a.push(i[c]),l=!0;else if(!l)a.push(i[c]);else break;i=i.slice(c);let o=a.join(`
41
- `),u=o.replace(this.rules.other.blockquoteSetextReplace,`
41
+ `),d=o.replace(this.rules.other.blockquoteSetextReplace,`
42
42
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
43
43
  ${o}`:o,n=n?`${n}
44
- ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,r,!0),this.lexer.state.top=h,i.length===0)break;let g=r.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,d=p.raw+`
44
+ ${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,r,!0),this.lexer.state.top=h,i.length===0)break;let g=r.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,u=p.raw+`
45
45
  `+i.join(`
46
- `),b=this.blockquote(d);r[r.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,d=p.raw+`
46
+ `),b=this.blockquote(u);r[r.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,u=p.raw+`
47
47
  `+i.join(`
48
- `),b=this.list(d);r[r.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=d.substring(r.at(-1).raw.length).split(`
49
- `);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),c=!1;for(;t;){let u=!1,h="",g="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=ia(e[2].split(`
50
- `,1)[0],e[1].length),d=t.split(`
51
- `,1)[0],b=!p.trim(),k=0;if(this.options.pedantic?(k=2,g=p.trimStart()):b?k=e[1].length+1:(k=p.search(this.rules.other.nonSpaceChar),k=k>4?1:k,g=p.slice(k),k+=e[1].length),b&&this.rules.other.blankLine.test(d)&&(h+=d+`
52
- `,t=t.substring(d.length+1),u=!0),!u){let P=this.rules.other.nextBulletRegex(k),H=this.rules.other.hrRegex(k),M=this.rules.other.fencesBeginRegex(k),A=this.rules.other.headingBeginRegex(k),S=this.rules.other.htmlBeginRegex(k),$=this.rules.other.blockquoteBeginRegex(k);for(;t;){let T=t.split(`
53
- `,1)[0],_;if(d=T,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),_=d):_=d.replace(this.rules.other.tabCharGlobal," "),M.test(d)||A.test(d)||S.test(d)||$.test(d)||P.test(d)||H.test(d))break;if(_.search(this.rules.other.nonSpaceChar)>=k||!d.trim())g+=`
54
- `+_.slice(k);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(p)||A.test(p)||H.test(p))break;g+=`
55
- `+d}b=!d.trim(),h+=T+`
56
- `,t=t.substring(T.length+1),p=_.slice(k)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((i=u.tokens[0])==null?void 0:i.type)==="text"||((s=u.tokens[0])==null?void 0:s.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(u.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};u.checked=g.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=g.raw+u.tokens[0].raw,u.tokens[0].text=g.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(g)):u.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):u.tokens.unshift(g)}}if(!l.loose){let h=u.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let u of l.items){u.loose=!0;for(let h of u.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=hs(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
57
- `):[],r={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(hs(a,r.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:r.align[o]})));return r}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let i=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let i=e[1].charAt(e[1].length-1)===`
58
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=We(i.slice(0,-1),"\\");if((i.length-r.length)%2==0)return}else{let r=ta(e[2],"()");if(r===-2)return;if(r>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),ps(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return ps(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(l=[...r].length,s[3]||s[4]){a+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let u=[...s[0]][0].length,h=t.slice(0,n+s.index+u+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(l=[...r].length,l!==n))continue;if(s[3]||s[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let o=[...s[0]][0].length,u=t.slice(0,n+s.index+o+l),h=u.slice(n,-n);return{type:"del",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let r;do r=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(r!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},de=class Ii{constructor(e){I(this,"tokens");I(this,"options");I(this,"state");I(this,"inlineQueue");I(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Me,this.options.tokenizer=this.options.tokenizer||new pt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:re,block:ht.normal,inline:Ue.normal};this.options.pedantic?(i.block=ht.pedantic,i.inline=Ue.pedantic):this.options.gfm&&(i.block=ht.gfm,this.options.breaks?i.inline=Ue.breaks:i.inline=Ue.gfm),this.tokenizer.rules=i}static get rules(){return{block:ht,inline:Ue}}static lex(e,i){return new Ii(i).lex(e)}static lexInline(e,i){return new Ii(i).inlineTokens(e)}lex(e){e=e.replace(re.carriageReturn,`
48
+ `),b=this.list(u);r[r.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=u.substring(r.at(-1).raw.length).split(`
49
+ `);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),c=!1;for(;t;){let d=!1,h="",g="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=na(e[2].split(`
50
+ `,1)[0],e[1].length),u=t.split(`
51
+ `,1)[0],b=!p.trim(),k=0;if(this.options.pedantic?(k=2,g=p.trimStart()):b?k=e[1].length+1:(k=p.search(this.rules.other.nonSpaceChar),k=k>4?1:k,g=p.slice(k),k+=e[1].length),b&&this.rules.other.blankLine.test(u)&&(h+=u+`
52
+ `,t=t.substring(u.length+1),d=!0),!d){let N=this.rules.other.nextBulletRegex(k),$=this.rules.other.hrRegex(k),L=this.rules.other.fencesBeginRegex(k),A=this.rules.other.headingBeginRegex(k),S=this.rules.other.htmlBeginRegex(k),B=this.rules.other.blockquoteBeginRegex(k);for(;t;){let C=t.split(`
53
+ `,1)[0],_;if(u=C,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),_=u):_=u.replace(this.rules.other.tabCharGlobal," "),L.test(u)||A.test(u)||S.test(u)||B.test(u)||N.test(u)||$.test(u))break;if(_.search(this.rules.other.nonSpaceChar)>=k||!u.trim())g+=`
54
+ `+_.slice(k);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(p)||A.test(p)||$.test(p))break;g+=`
55
+ `+u}b=!u.trim(),h+=C+`
56
+ `,t=t.substring(C.length+1),p=_.slice(k)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let d of l.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),((i=d.tokens[0])==null?void 0:i.type)==="text"||((s=d.tokens[0])==null?void 0:s.type)==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=g.checked,l.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=g.raw+d.tokens[0].raw,d.tokens[0].text=g.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(g)):d.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):d.tokens.unshift(g)}}if(!l.loose){let h=d.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let d of l.items){d.loose=!0;for(let h of d.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=gs(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
57
+ `):[],r={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(gs(a,r.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:r.align[o]})));return r}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let i=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let i=e[1].charAt(e[1].length-1)===`
58
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=Ze(i.slice(0,-1),"\\");if((i.length-r.length)%2==0)return}else{let r=sa(e[2],"()");if(r===-2)return;if(r>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),ms(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return ms(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(l=[...r].length,s[3]||s[4]){a+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let d=[...s[0]][0].length,h=t.slice(0,n+s.index+d+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(l=[...r].length,l!==n))continue;if(s[3]||s[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let o=[...s[0]][0].length,d=t.slice(0,n+s.index+o+l),h=d.slice(n,-n);return{type:"del",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let r;do r=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(r!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},ue=class Mi{constructor(e){I(this,"tokens");I(this,"options");I(this,"state");I(this,"inlineQueue");I(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ne,this.options.tokenizer=this.options.tokenizer||new gt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:re,block:pt.normal,inline:Ke.normal};this.options.pedantic?(i.block=pt.pedantic,i.inline=Ke.pedantic):this.options.gfm&&(i.block=pt.gfm,this.options.breaks?i.inline=Ke.breaks:i.inline=Ke.gfm),this.tokenizer.rules=i}static get rules(){return{block:pt,inline:Ke}}static lex(e,i){return new Mi(i).lex(e)}static lexInline(e,i){return new Mi(i).inlineTokens(e)}lex(e){e=e.replace(re.carriageReturn,`
59
59
  `),this.blockTokens(e,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,i=[],s=!1){var n,r,l;for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(re.tabCharGlobal," ").replace(re.spaceLine,""));e;){let a;if((r=(n=this.options.extensions)==null?void 0:n.block)!=null&&r.some(o=>(a=o.call({lexer:this},e,i))?(e=e.substring(a.raw.length),i.push(a),!0):!1))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let o=i.at(-1);a.raw.length===1&&o!==void 0?o.raw+=`
60
60
  `:i.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
61
61
  `)?"":`
@@ -63,15 +63,15 @@ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
63
63
  `+a.text,this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
64
64
  `)?"":`
65
65
  `)+a.raw,o.text+=`
66
- `+a.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},i.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),i.push(a);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,u=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},u),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(a=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
66
+ `+a.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},i.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),i.push(a);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,d=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},d),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(a=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
67
67
  `)?"":`
68
68
  `)+a.raw,o.text+=`
69
69
  `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a),s=c.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
70
70
  `)?"":`
71
71
  `)+a.raw,o.text+=`
72
- `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,u,h,g;this.tokenizer.lexer=this;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,a="";for(;e;){l||(a=""),l=!1;let p;if((h=(u=this.options.extensions)==null?void 0:u.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let d=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,k=e.slice(1),P;this.options.extensions.startInline.forEach(H=>{P=H.call({lexer:this},k),typeof P=="number"&&P>=0&&(b=Math.min(b,P))}),b<1/0&&b>=0&&(d=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(d)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(a=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},gt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||Me}space(t){return""}code({text:t,lang:e,escaped:i}){var r;let s=(r=(e||"").match(re.notSpaceStart))==null?void 0:r[0],n=t.replace(re.endingNewline,"")+`
73
- `;return s?'<pre><code class="language-'+me(s)+'">'+(i?n:me(n,!0))+`</code></pre>
74
- `:"<pre><code>"+(i?n:me(n,!0))+`</code></pre>
72
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,d,h,g;this.tokenizer.lexer=this;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,a="";for(;e;){l||(a=""),l=!1;let p;if((h=(d=this.options.extensions)==null?void 0:d.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let u=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,k=e.slice(1),N;this.options.extensions.startInline.forEach($=>{N=$.call({lexer:this},k),typeof N=="number"&&N>=0&&(b=Math.min(b,N))}),b<1/0&&b>=0&&(u=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(u)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(a=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},mt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||Ne}space(t){return""}code({text:t,lang:e,escaped:i}){var r;let s=(r=(e||"").match(re.notSpaceStart))==null?void 0:r[0],n=t.replace(re.endingNewline,"")+`
73
+ `;return s?'<pre><code class="language-'+fe(s)+'">'+(i?n:fe(n,!0))+`</code></pre>
74
+ `:"<pre><code>"+(i?n:fe(n,!0))+`</code></pre>
75
75
  `}blockquote({tokens:t}){return`<blockquote>
76
76
  ${this.parser.parse(t)}</blockquote>
77
77
  `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
@@ -87,16 +87,16 @@ ${this.parser.parse(t)}</blockquote>
87
87
  `}tablerow({text:t}){return`<tr>
88
88
  ${t}</tr>
89
89
  `}tablecell(t){let e=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+`</${i}>
90
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${me(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=us(t);if(n===null)return s;t=n;let r='<a href="'+t+'"';return e&&(r+=' title="'+me(e)+'"'),r+=">"+s+"</a>",r}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=us(t);if(n===null)return me(i);t=n;let r=`<img src="${t}" alt="${me(i)}"`;return e&&(r+=` title="${me(e)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:me(t.text)}},si=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},ue=class Mi{constructor(e){I(this,"options");I(this,"renderer");I(this,"textRenderer");this.options=e||Me,this.options.renderer=this.options.renderer||new gt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new si}static parse(e,i){return new Mi(i).parse(e)}static parseInline(e,i){return new Mi(i).parseInline(e)}parse(e){var s,n;this.renderer.parser=this;let i="";for(let r=0;r<e.length;r++){let l=e[r];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let a=l;switch(a.type){case"space":i+=this.renderer.space(a);break;case"hr":i+=this.renderer.hr(a);break;case"heading":i+=this.renderer.heading(a);break;case"code":i+=this.renderer.code(a);break;case"table":i+=this.renderer.table(a);break;case"blockquote":i+=this.renderer.blockquote(a);break;case"list":i+=this.renderer.list(a);break;case"checkbox":i+=this.renderer.checkbox(a);break;case"html":i+=this.renderer.html(a);break;case"def":i+=this.renderer.def(a);break;case"paragraph":i+=this.renderer.paragraph(a);break;case"text":i+=this.renderer.text(a);break;default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,r;this.renderer.parser=this;let s="";for(let l=0;l<e.length;l++){let a=e[l];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=o||"";continue}}let c=a;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},Ke=(wt=class{constructor(t){I(this,"options");I(this,"block");this.options=t||Me}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?de.lex:de.lexInline}provideParser(){return this.block?ue.parse:ue.parseInline}},I(wt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),I(wt,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),wt),ze=new class{constructor(...t){I(this,"defaults",Zt());I(this,"options",this.setOptions);I(this,"parse",this.parseMarkdown(!0));I(this,"parseInline",this.parseMarkdown(!1));I(this,"Parser",ue);I(this,"Renderer",gt);I(this,"TextRenderer",si);I(this,"Lexer",de);I(this,"Tokenizer",pt);I(this,"Hooks",Ke);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let r of t)switch(i=i.concat(e.call(this,r)),r.type){case"table":{let l=r;for(let a of l.header)i=i.concat(this.walkTokens(a.tokens,e));for(let a of l.rows)for(let c of a)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=r;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=r;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{let c=l[a].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let r=e.renderers[n.name];r?e.renderers[n.name]=function(...l){let a=n.renderer.apply(this,l);return a===!1&&(a=r.apply(this,l)),a}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let r=e[n.level];r?r.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new gt(this.defaults);for(let r in i.renderer){if(!(r in n))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let l=r,a=i.renderer[l],c=n[l];n[l]=(...o)=>{let u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new pt(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let l=r,a=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Ke;for(let r in i.hooks){if(!(r in n))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let l=r,a=i.hooks[l],c=n[l];Ke.passThroughHooks.has(r)?n[l]=o=>{if(this.defaults.async&&Ke.passThroughHooksRespectAsync.has(r))return(async()=>{let h=await a.call(n,o);return c.call(n,h)})();let u=a.call(n,o);return c.call(n,u)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await a.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(l){let a=[];return a.push(r.call(this,l)),n&&(a=a.concat(n.call(this,l))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return de.lex(t,e??this.defaults)}parser(t,e){return ue.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return r(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return r(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,a=await(n.hooks?await n.hooks.provideLexer():t?de.lex:de.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?ue.parse:ue.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(r);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?de.lex:de.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let a=(n.hooks?n.hooks.provideParser():t?ue.parse:ue.parseInline)(l,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(l){return r(l)}}}onError(t,e){return i=>{if(i.message+=`
91
- Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+me(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function V(t,e){return ze.parse(t,e)}V.options=V.setOptions=function(t){return ze.setOptions(t),V.defaults=ze.defaults,Yi(V.defaults),V},V.getDefaults=Zt,V.defaults=Me,V.use=function(...t){return ze.use(...t),V.defaults=ze.defaults,Yi(V.defaults),V},V.walkTokens=function(t,e){return ze.walkTokens(t,e)},V.parseInline=ze.parseInline,V.Parser=ue,V.parser=ue.parse,V.Renderer=gt,V.TextRenderer=si,V.Lexer=de,V.lexer=de.lex,V.Tokenizer=pt,V.Hooks=Ke,V.parse=V,V.options,V.setOptions,V.use,V.walkTokens,V.parseInline,ue.parse,de.lex;function gs(...t){return t.filter(Boolean).join(" ")}function na(t,e){return t?e?{...t,...e}:t:e}function ra({animation:t,index:e,as:i,asChild:s,className:n,style:r,children:l}){let a=gs("fragment",t,n);if(s){let c;try{c=C.Children.only(l)}catch{throw Error("Fragment with asChild expects exactly one React element child.")}if(!(0,C.isValidElement)(c)||c.type===C.Fragment)throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");let o={className:gs(c.props.className,a),style:na(c.props.style,r)};return e!==void 0&&(o["data-fragment-index"]=e),(0,C.cloneElement)(c,o)}return(0,x.jsx)(i??"span",{className:a,style:r,"data-fragment-index":e,children:l})}function aa({cells:t,getType:e}){let i=[],s=null,n=null,r=()=>{let c={subslides:[]};return i.push(c),s=c,n=null,c},l=()=>{let c=s??r(),o={blocks:[]};return c.subslides.push(o),n=o,o},a=c=>{let o=n??l(),u={isFragment:c,cells:[]};return o.blocks.push(u),u};for(let c of t)switch(e(c)){case"skip":break;case"slide":r(),l(),a(!1).cells.push(c);break;case"sub-slide":l(),a(!1).cells.push(c);break;case"fragment":a(!0).cells.push(c);break}return{stacks:i}}function la({composition:t,cells:e,getId:i}){let s=new Map,n=new Map,r=new Map;for(let[l,a]of e.entries())r.set(i(a),l);return t.stacks.forEach((l,a)=>{l.subslides.forEach((c,o)=>{var g;let u;for(let p of c.blocks){if(p.isFragment)break;let d=p.cells.at(-1);d&&(u=i(d))}if(u===void 0){let p=(g=c.blocks[0])==null?void 0:g.cells[0];p&&(u=i(p))}if(u!==void 0){let p=r.get(u);p!=null&&n.set(`${a},${o},-1`,p)}let h=-1;for(let p of c.blocks)if(p.isFragment){h++;for(let b of p.cells)s.set(i(b),{h:a,v:o,f:h});let d=p.cells.at(-1);if(d){let b=r.get(i(d));b!=null&&n.set(`${a},${o},${h}`,b)}}else for(let d of p.cells)s.set(i(d),{h:a,v:o,f:-1})})}),{cellToTarget:s,targetToCellIndex:n}}function oa(t,e){let{h:i,v:s,f:n}=e;return t.get(`${i},${s},${n}`)??t.get(`${i},${s},-1`)}function ms({start:t,stop:e,step:i,cells:s,cellToTarget:n,getId:r}){for(let l=t;l!==e;l+=i){let a=n.get(r(s[l]));if(a)return a}}function ca({activeIndex:t,cells:e,cellToTarget:i,getId:s}){if(t==null)return;let n=e[t];return n?i.get(s(n))||(ms({start:t-1,stop:-1,step:-1,cells:e,cellToTarget:i,getId:s})??ms({start:t+1,stop:e.length,step:1,cells:e,cellToTarget:i,getId:s})):void 0}function da(t,e){let i={h:e.h,v:e.v,f:e.f>=0?e.f:-1};return t.h===i.h&&t.v===i.v&&t.f===i.f?null:i}const fs=({cell:t})=>{let[e]=vn(),{theme:i}=oo(),s=ho(t.id),n=Ri(Fl),r=Nl(),l=Ri(jl),a=(0,C.useRef)(null),c=(0,C.useRef)(null),[o,u]=(0,C.useState)(),h=be(()=>{go({autoInstantiate:l,createNewCell:r.createNewCell})}),g=be(()=>{}),p=e.display.cell_output,d=t.output!=null,b=Hl({executionTime:t.runElapsedTimeMs??t.lastExecutionTime,status:t.status,errored:t.errored,interrupted:t.interrupted,stopped:t.stopped}),k=zl({edited:t.edited,interrupted:t.interrupted,staleInputs:t.staleInputs,disabled:t.config.disabled,status:t.status}),P=Dt("marimo-cell","hover-actions-parent","interactive",$l({needsRun:k,errored:t.errored,stopped:t.stopped,disabled:t.config.disabled,status:t.status})),H=(0,x.jsx)(_t,{cellId:t.id,status:t.status,output:t.output,stale:Ht(t,!1)}),M=(0,x.jsxs)("div",{className:"absolute top-1 right-2 z-10 flex items-center gap-1.5",children:[(0,x.jsx)(co,{editing:!0,status:t.status,disabled:t.config.disabled??!1,staleInputs:t.staleInputs,edited:t.edited,interrupted:t.interrupted,elapsedTime:t.runElapsedTimeMs??t.lastExecutionTime,runStartTimestamp:t.runStartTimestamp,lastRunStartTimestamp:t.lastRunStartTimestamp,uninstantiated:b}),(0,x.jsx)(so,{code:t.code,editorView:a.current,currentLanguageAdapter:o,onAfterToggle:h,className:"flex items-center gap-1"}),(0,x.jsxs)("div",{className:"flex items-center shadow-none gap-1",children:[(0,x.jsx)(lo,{edited:t.edited,status:t.status,needsRun:k,connectionState:n.state,config:t.config,onClick:s}),(0,x.jsx)(ao,{status:t.status,connectionState:n.state})]})]}),A=(0,x.jsxs)("div",{tabIndex:-1,className:P,...Yl(t.id,t.name),children:[(0,x.jsx)(no,{theme:i,showPlaceholder:!1,id:t.id,code:t.code,config:t.config,status:t.status,serializedEditorState:t.serializedEditorState,runCell:s,setEditorView:S=>{a.current=S},userConfig:e,editorViewRef:a,editorViewParentRef:c,hasOutput:d,showHiddenCode:g,languageAdapter:o,setLanguageAdapter:u,showLanguageToggles:!1,inlineAiTooltip:!1,outputArea:p,tooltipParentSelector:".reveal-viewport"}),M]});return(0,x.jsxs)(x.Fragment,{children:[p==="above"&&H,A,p==="below"&&H]})},vs=t=>{let e=(0,ke.c)(16),{cell:i}=t,[s]=vn(),n=s.display.cell_output,r;e[0]===i.code?r=e[1]:(r=bo(i.code),e[0]=i.code,e[1]=r);let l=r,a=i.id,c=i.status,o=i.output,u;e[2]===i?u=e[3]:(u=Ht(i,!1),e[2]=i,e[3]=u);let h;e[4]!==i.id||e[5]!==i.output||e[6]!==i.status||e[7]!==u?(h=(0,x.jsx)(_t,{cellId:a,status:c,output:o,stale:u}),e[4]=i.id,e[5]=i.output,e[6]=i.status,e[7]=u,e[8]=h):h=e[8];let g=h,p;e[9]!==l.code||e[10]!==l.language?(p=(0,x.jsx)("div",{className:"marimo-cell",children:(0,x.jsx)(Vl,{code:l.code,language:l.language,showHideCode:!1})}),e[9]=l.code,e[10]=l.language,e[11]=p):p=e[11];let d=p,b=n==="above"&&g,k=n==="below"&&g,P;return e[12]!==d||e[13]!==b||e[14]!==k?(P=(0,x.jsxs)(x.Fragment,{children:[b,d,k]}),e[12]=d,e[13]=b,e[14]=k,e[15]=P):P=e[15],P};var ua=Ai(),ha=300;const pa=t=>{var T;let e=(0,ua.c)(25),{layout:i,setLayout:s,cellId:n,className:r}=t,l=n?((T=i.cells.get(n))==null?void 0:T.speakerNotes)??"":"",[a,c]=(0,C.useState)(l),o=(0,C.useRef)(!1),u;e[0]!==i||e[1]!==s?(u=(_,O)=>{o.current=!1;let N=i.cells.get(_);if(((N==null?void 0:N.speakerNotes)??"")===O)return;let Y=new Map(i.cells);Y.set(_,{...N,speakerNotes:O}),s({...i,cells:Y})},e[0]=i,e[1]=s,e[2]=u):u=e[2];let h=uo(be(u),ha),g=(0,C.useRef)(n),p,d;e[3]!==n||e[4]!==a||e[5]!==l||e[6]!==h?(p=()=>{if(g.current!==n){h.flush(),o.current=!1,c(l),g.current=n;return}!o.current&&l!==a&&c(l)},d=[n,l,a,h],e[3]=n,e[4]=a,e[5]=l,e[6]=h,e[7]=p,e[8]=d):(p=e[7],d=e[8]),(0,C.useEffect)(p,d);let b,k;e[9]===h?(b=e[10],k=e[11]):(b=()=>()=>{h.flush()},k=[h],e[9]=h,e[10]=b,e[11]=k),(0,C.useEffect)(b,k);let P;e[12]!==n||e[13]!==h?(P=_=>{c(_),n&&(o.current=!0,h(n,_))},e[12]=n,e[13]=h,e[14]=P):P=e[14];let H=P,M;e[15]===r?M=e[16]:(M=Dt("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t",r),e[15]=r,e[16]=M);let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=(0,x.jsxs)("header",{className:"flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[(0,x.jsx)(Le,{className:"h-3.5 w-3.5"}),(0,x.jsx)("span",{children:"Speaker notes"})]}),e[17]=A):A=e[17];let S;e[18]!==n||e[19]!==a||e[20]!==H?(S=(0,x.jsx)("div",{className:"flex-1 min-h-0 p-2",children:n?(0,x.jsx)("textarea",{value:a,onChange:_=>H(_.target.value),onClick:Ti.stopPropagation(),placeholder:"Add notes for this slide. Visible to you in speaker view (press S during presentation).",className:Dt("h-full w-full resize-none rounded-sm border border-input/25 bg-background","px-3 py-2 text-sm leading-relaxed text-foreground placeholder:text-muted-foreground","ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent"),"aria-label":"Speaker notes for the current slide"}):(0,x.jsx)("div",{className:"h-full flex items-center justify-center text-xs text-muted-foreground",children:"Select a slide to add notes."})}),e[18]=n,e[19]=a,e[20]=H,e[21]=S):S=e[21];let $;return e[22]!==M||e[23]!==S?($=(0,x.jsxs)("section",{className:M,"aria-label":"Speaker notes",onKeyDown:ga,children:[A,S]}),e[22]=M,e[23]=S,e[24]=$):$=e[24],$};function ga(t){return t.stopPropagation()}var ma=`
90
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${fe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=ps(t);if(n===null)return s;t=n;let r='<a href="'+t+'"';return e&&(r+=' title="'+fe(e)+'"'),r+=">"+s+"</a>",r}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=ps(t);if(n===null)return fe(i);t=n;let r=`<img src="${t}" alt="${fe(i)}"`;return e&&(r+=` title="${fe(e)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fe(t.text)}},si=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},he=class zi{constructor(e){I(this,"options");I(this,"renderer");I(this,"textRenderer");this.options=e||Ne,this.options.renderer=this.options.renderer||new mt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new si}static parse(e,i){return new zi(i).parse(e)}static parseInline(e,i){return new zi(i).parseInline(e)}parse(e){var s,n;this.renderer.parser=this;let i="";for(let r=0;r<e.length;r++){let l=e[r];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let a=l;switch(a.type){case"space":i+=this.renderer.space(a);break;case"hr":i+=this.renderer.hr(a);break;case"heading":i+=this.renderer.heading(a);break;case"code":i+=this.renderer.code(a);break;case"table":i+=this.renderer.table(a);break;case"blockquote":i+=this.renderer.blockquote(a);break;case"list":i+=this.renderer.list(a);break;case"checkbox":i+=this.renderer.checkbox(a);break;case"html":i+=this.renderer.html(a);break;case"def":i+=this.renderer.def(a);break;case"paragraph":i+=this.renderer.paragraph(a);break;case"text":i+=this.renderer.text(a);break;default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,r;this.renderer.parser=this;let s="";for(let l=0;l<e.length;l++){let a=e[l];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=o||"";continue}}let c=a;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},Qe=(xt=class{constructor(t){I(this,"options");I(this,"block");this.options=t||Ne}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?ue.lex:ue.lexInline}provideParser(){return this.block?he.parse:he.parseInline}},I(xt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),I(xt,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),xt),ze=new class{constructor(...t){I(this,"defaults",Zt());I(this,"options",this.setOptions);I(this,"parse",this.parseMarkdown(!0));I(this,"parseInline",this.parseMarkdown(!1));I(this,"Parser",he);I(this,"Renderer",mt);I(this,"TextRenderer",si);I(this,"Lexer",ue);I(this,"Tokenizer",gt);I(this,"Hooks",Qe);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let r of t)switch(i=i.concat(e.call(this,r)),r.type){case"table":{let l=r;for(let a of l.header)i=i.concat(this.walkTokens(a.tokens,e));for(let a of l.rows)for(let c of a)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=r;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=r;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{let c=l[a].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let r=e.renderers[n.name];r?e.renderers[n.name]=function(...l){let a=n.renderer.apply(this,l);return a===!1&&(a=r.apply(this,l)),a}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let r=e[n.level];r?r.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new mt(this.defaults);for(let r in i.renderer){if(!(r in n))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let l=r,a=i.renderer[l],c=n[l];n[l]=(...o)=>{let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new gt(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let l=r,a=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Qe;for(let r in i.hooks){if(!(r in n))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let l=r,a=i.hooks[l],c=n[l];Qe.passThroughHooks.has(r)?n[l]=o=>{if(this.defaults.async&&Qe.passThroughHooksRespectAsync.has(r))return(async()=>{let h=await a.call(n,o);return c.call(n,h)})();let d=a.call(n,o);return c.call(n,d)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await a.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(l){let a=[];return a.push(r.call(this,l)),n&&(a=a.concat(n.call(this,l))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return ue.lex(t,e??this.defaults)}parser(t,e){return he.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return r(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return r(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,a=await(n.hooks?await n.hooks.provideLexer():t?ue.lex:ue.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?he.parse:he.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(r);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?ue.lex:ue.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let a=(n.hooks?n.hooks.provideParser():t?he.parse:he.parseInline)(l,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(l){return r(l)}}}onError(t,e){return i=>{if(i.message+=`
91
+ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+fe(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function V(t,e){return ze.parse(t,e)}V.options=V.setOptions=function(t){return ze.setOptions(t),V.defaults=ze.defaults,es(V.defaults),V},V.getDefaults=Zt,V.defaults=Ne,V.use=function(...t){return ze.use(...t),V.defaults=ze.defaults,es(V.defaults),V},V.walkTokens=function(t,e){return ze.walkTokens(t,e)},V.parseInline=ze.parseInline,V.Parser=he,V.parser=he.parse,V.Renderer=mt,V.TextRenderer=si,V.Lexer=ue,V.lexer=ue.lex,V.Tokenizer=gt,V.Hooks=Qe,V.parse=V,V.options,V.setOptions,V.use,V.walkTokens,V.parseInline,he.parse,ue.lex;function fs(...t){return t.filter(Boolean).join(" ")}function aa(t,e){return t?e?{...t,...e}:t:e}function la({animation:t,index:e,as:i,asChild:s,className:n,style:r,children:l}){let a=fs("fragment",t,n);if(s){let c;try{c=T.Children.only(l)}catch{throw Error("Fragment with asChild expects exactly one React element child.")}if(!(0,T.isValidElement)(c)||c.type===T.Fragment)throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");let o={className:fs(c.props.className,a),style:aa(c.props.style,r)};return e!==void 0&&(o["data-fragment-index"]=e),(0,T.cloneElement)(c,o)}return(0,w.jsx)(i??"span",{className:a,style:r,"data-fragment-index":e,children:l})}var oa=8,ca=1;function da(t){let{scrollHeight:e,clientHeight:i,scrollTop:s}=t;return e>i+ca&&s<=oa}function ua(t){let e=t.querySelector(".fragment:not(.visible)");return e?e.getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop:t.scrollHeight}function ha(t,e){let i=(0,de.c)(4),[s,n]=(0,T.useState)(!1),r,l;return i[0]!==e||i[1]!==t?(r=()=>{let a=t.current,c=e.current;if(!a||!c)return;let o=0,d=()=>{cancelAnimationFrame(o),o=requestAnimationFrame(()=>{n(da({scrollHeight:ua(a),clientHeight:a.clientHeight,scrollTop:a.scrollTop}))})};d();let h=new ResizeObserver(d);h.observe(a),h.observe(c);let g=c.querySelector(".fragment")?new MutationObserver(d):null;return g==null||g.observe(c,{subtree:!0,attributes:!0,attributeFilter:["class"]}),a.addEventListener("scroll",d,{passive:!0}),()=>{cancelAnimationFrame(o),h.disconnect(),g==null||g.disconnect(),a.removeEventListener("scroll",d)}},l=[t,e],i[0]=e,i[1]=t,i[2]=r,i[3]=l):(r=i[2],l=i[3]),(0,T.useEffect)(r,l),s}var pa=t=>{let e=(0,de.c)(6),{className:i}=t,s;e[0]===i?s=e[1]:(s=Ue("pointer-events-none absolute inset-x-0 bottom-0 z-10 flex flex-col items-center","animate-in fade-in-0 duration-200",i),e[0]=i,e[1]=s);let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,w.jsx)("div",{className:"h-16 w-full bg-linear-to-t from-background via-background/80 to-transparent"}),e[2]=n):n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,w.jsxs)("div",{className:"absolute bottom-3 flex items-center gap-1 rounded-full border border-border/60 bg-background/90 px-2.5 py-1 text-xs text-muted-foreground shadow-sm backdrop-blur-sm",children:[(0,w.jsx)(co,{className:"h-3.5 w-3.5"}),(0,w.jsx)("span",{children:"Scroll for more"})]}),e[3]=r):r=e[3];let l;return e[4]===s?l=e[5]:(l=(0,w.jsxs)("div",{className:s,"data-testid":"slide-scroll-hint","aria-hidden":!0,children:[n,r]}),e[4]=s,e[5]=l),l};const ga=t=>{let e=(0,de.c)(10),{children:i,className:s}=t,n=(0,T.useRef)(null),r=(0,T.useRef)(null),l=ha(n,r),a;e[0]===s?a=e[1]:(a=Ue("relative h-full w-full",s),e[0]=s,e[1]=a);let c;e[2]===i?c=e[3]:(c=(0,w.jsx)("div",{ref:n,className:"h-full w-full overflow-auto","data-testid":"slide-scroll-container",children:(0,w.jsx)("div",{ref:r,className:"flex w-full min-h-full",children:i})}),e[2]=i,e[3]=c);let o;e[4]===l?o=e[5]:(o=l&&(0,w.jsx)(pa,{}),e[4]=l,e[5]=o);let d;return e[6]!==a||e[7]!==c||e[8]!==o?(d=(0,w.jsxs)("div",{className:a,children:[c,o]}),e[6]=a,e[7]=c,e[8]=o,e[9]=d):d=e[9],d};function ma({cells:t,getType:e}){let i=[],s=null,n=null,r=()=>{let c={subslides:[]};return i.push(c),s=c,n=null,c},l=()=>{let c=s??r(),o={blocks:[]};return c.subslides.push(o),n=o,o},a=c=>{let o=n??l(),d={isFragment:c,cells:[]};return o.blocks.push(d),d};for(let c of t)switch(e(c)){case"skip":break;case"slide":r(),l(),a(!1).cells.push(c);break;case"sub-slide":l(),a(!1).cells.push(c);break;case"fragment":a(!0).cells.push(c);break}return{stacks:i}}function fa({composition:t,cells:e,getId:i}){let s=new Map,n=new Map,r=new Map;for(let[l,a]of e.entries())r.set(i(a),l);return t.stacks.forEach((l,a)=>{l.subslides.forEach((c,o)=>{var g;let d;for(let p of c.blocks){if(p.isFragment)break;let u=p.cells.at(-1);u&&(d=i(u))}if(d===void 0){let p=(g=c.blocks[0])==null?void 0:g.cells[0];p&&(d=i(p))}if(d!==void 0){let p=r.get(d);p!=null&&n.set(`${a},${o},-1`,p)}let h=-1;for(let p of c.blocks)if(p.isFragment){h++;for(let b of p.cells)s.set(i(b),{h:a,v:o,f:h});let u=p.cells.at(-1);if(u){let b=r.get(i(u));b!=null&&n.set(`${a},${o},${h}`,b)}}else for(let u of p.cells)s.set(i(u),{h:a,v:o,f:-1})})}),{cellToTarget:s,targetToCellIndex:n}}function va(t,e){let{h:i,v:s,f:n}=e;return t.get(`${i},${s},${n}`)??t.get(`${i},${s},-1`)}function vs({start:t,stop:e,step:i,cells:s,cellToTarget:n,getId:r}){for(let l=t;l!==e;l+=i){let a=n.get(r(s[l]));if(a)return a}}function ba({activeIndex:t,cells:e,cellToTarget:i,getId:s}){if(t==null)return;let n=e[t];return n?i.get(s(n))||(vs({start:t-1,stop:-1,step:-1,cells:e,cellToTarget:i,getId:s})??vs({start:t+1,stop:e.length,step:1,cells:e,cellToTarget:i,getId:s})):void 0}function ka(t,e){let i={h:e.h,v:e.v,f:e.f>=0?e.f:-1};return t.h===i.h&&t.v===i.v&&t.f===i.f?null:i}var ya=Dt();const bs=({cell:t})=>{let[e]=kn(),{theme:i}=ko(),s=xo(t.id),n=Ri(Jl),r=Fl(),l=Ri(Xl),a=(0,T.useRef)(null),c=(0,T.useRef)(null),[o,d]=(0,T.useState)(),h=ke(()=>{Eo({autoInstantiate:l,createNewCell:r.createNewCell})}),g=ke(()=>{}),p=e.display.cell_output,u=t.output!=null,b=Wl({executionTime:t.runElapsedTimeMs??t.lastExecutionTime,status:t.status,errored:t.errored,interrupted:t.interrupted,stopped:t.stopped}),k=Vl({edited:t.edited,interrupted:t.interrupted,staleInputs:t.staleInputs,disabled:t.config.disabled,status:t.status}),N=Ue("marimo-cell","hover-actions-parent","interactive",Ul({needsRun:k,errored:t.errored,stopped:t.stopped,disabled:t.config.disabled,status:t.status})),$=(0,w.jsx)(Ci,{cellId:t.id,status:t.status,output:t.output,stale:Ai(t,!1)}),L=(0,w.jsxs)("div",{className:"absolute top-1 right-2 z-10 flex items-center gap-1.5",children:[(0,w.jsx)(yo,{editing:!0,status:t.status,disabled:t.config.disabled??!1,staleInputs:t.staleInputs,edited:t.edited,interrupted:t.interrupted,elapsedTime:t.runElapsedTimeMs??t.lastExecutionTime,runStartTimestamp:t.runStartTimestamp,lastRunStartTimestamp:t.lastRunStartTimestamp,uninstantiated:b}),(0,w.jsx)(go,{code:t.code,editorView:a.current,currentLanguageAdapter:o,onAfterToggle:h,className:"flex items-center gap-1"}),(0,w.jsxs)("div",{className:"flex items-center shadow-none gap-1",children:[(0,w.jsx)(bo,{edited:t.edited,status:t.status,needsRun:k,connectionState:n.state,config:t.config,onClick:s}),(0,w.jsx)(vo,{status:t.status,connectionState:n.state})]})]}),A=(0,w.jsxs)("div",{tabIndex:-1,className:N,...Li(t.id,t.name),children:[(0,w.jsx)(mo,{theme:i,showPlaceholder:!1,id:t.id,code:t.code,config:t.config,status:t.status,serializedEditorState:t.serializedEditorState,runCell:s,setEditorView:S=>{a.current=S},userConfig:e,editorViewRef:a,editorViewParentRef:c,hasOutput:u,showHiddenCode:g,languageAdapter:o,setLanguageAdapter:d,showLanguageToggles:!1,inlineAiTooltip:!1,outputArea:p,tooltipParentSelector:".reveal-viewport"}),L]});return(0,w.jsxs)(w.Fragment,{children:[p==="above"&&$,A,p==="below"&&$]})},ks=t=>{let e=(0,ya.c)(22),{cell:i}=t,[s]=kn(),n=s.display.cell_output,r;e[0]===i.code?r=e[1]:(r=Co(i.code),e[0]=i.code,e[1]=r);let l=r,a=i.id,c=i.status,o=i.output,d;e[2]===i?d=e[3]:(d=Ai(i,!1),e[2]=i,e[3]=d);let h;e[4]!==i.id||e[5]!==i.output||e[6]!==i.status||e[7]!==d?(h=(0,w.jsx)(Ci,{cellId:a,status:c,output:o,stale:d}),e[4]=i.id,e[5]=i.output,e[6]=i.status,e[7]=d,e[8]=h):h=e[8];let g=h,p;e[9]!==i.id||e[10]!==i.name?(p=Li(i.id,i.name),e[9]=i.id,e[10]=i.name,e[11]=p):p=e[11];let u;e[12]!==l.code||e[13]!==l.language?(u=(0,w.jsx)(eo,{code:l.code,language:l.language,showHideCode:!1}),e[12]=l.code,e[13]=l.language,e[14]=u):u=e[14];let b;e[15]!==p||e[16]!==u?(b=(0,w.jsx)("div",{className:"marimo-cell",...p,children:u}),e[15]=p,e[16]=u,e[17]=b):b=e[17];let k=b,N=n==="above"&&g,$=n==="below"&&g,L;return e[18]!==k||e[19]!==N||e[20]!==$?(L=(0,w.jsxs)(w.Fragment,{children:[N,k,$]}),e[18]=k,e[19]=N,e[20]=$,e[21]=L):L=e[21],L};var wa=Dt(),xa=300;const Sa=t=>{var C;let e=(0,wa.c)(25),{layout:i,setLayout:s,cellId:n,className:r}=t,l=n?((C=i.cells.get(n))==null?void 0:C.speakerNotes)??"":"",[a,c]=(0,T.useState)(l),o=(0,T.useRef)(!1),d;e[0]!==i||e[1]!==s?(d=(_,O)=>{o.current=!1;let M=i.cells.get(_);if(((M==null?void 0:M.speakerNotes)??"")===O)return;let Y=new Map(i.cells);Y.set(_,{...M,speakerNotes:O}),s({...i,cells:Y})},e[0]=i,e[1]=s,e[2]=d):d=e[2];let h=wo(ke(d),xa),g=(0,T.useRef)(n),p,u;e[3]!==n||e[4]!==a||e[5]!==l||e[6]!==h?(p=()=>{if(g.current!==n){h.flush(),o.current=!1,c(l),g.current=n;return}!o.current&&l!==a&&c(l)},u=[n,l,a,h],e[3]=n,e[4]=a,e[5]=l,e[6]=h,e[7]=p,e[8]=u):(p=e[7],u=e[8]),(0,T.useEffect)(p,u);let b,k;e[9]===h?(b=e[10],k=e[11]):(b=()=>()=>{h.flush()},k=[h],e[9]=h,e[10]=b,e[11]=k),(0,T.useEffect)(b,k);let N;e[12]!==n||e[13]!==h?(N=_=>{c(_),n&&(o.current=!0,h(n,_))},e[12]=n,e[13]=h,e[14]=N):N=e[14];let $=N,L;e[15]===r?L=e[16]:(L=Ue("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t",r),e[15]=r,e[16]=L);let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=(0,w.jsxs)("header",{className:"flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[(0,w.jsx)(Le,{className:"h-3.5 w-3.5"}),(0,w.jsx)("span",{children:"Speaker notes"})]}),e[17]=A):A=e[17];let S;e[18]!==n||e[19]!==a||e[20]!==$?(S=(0,w.jsx)("div",{className:"flex-1 min-h-0 p-2",children:n?(0,w.jsx)("textarea",{value:a,onChange:_=>$(_.target.value),onClick:Ti.stopPropagation(),placeholder:"Add notes for this slide. Visible to you in speaker view (press S during presentation).",className:Ue("h-full w-full resize-none rounded-sm border border-input/25 bg-background","px-3 py-2 text-sm leading-relaxed text-foreground placeholder:text-muted-foreground","ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent"),"aria-label":"Speaker notes for the current slide"}):(0,w.jsx)("div",{className:"h-full flex items-center justify-center text-xs text-muted-foreground",children:"Select a slide to add notes."})}),e[18]=n,e[19]=a,e[20]=$,e[21]=S):S=e[21];let B;return e[22]!==L||e[23]!==S?(B=(0,w.jsxs)("section",{className:L,"aria-label":"Speaker notes",onKeyDown:Ea,children:[A,S]}),e[22]=L,e[23]=S,e[24]=B):B=e[24],B};function Ea(t){return t.stopPropagation()}var Ra=`
92
92
 
93
93
  ---
94
94
 
95
- `;const fa=(t,e)=>t.map(i=>{var s;return((s=e.get(i.id))==null?void 0:s.speakerNotes)??""}).filter(i=>i.trim().length>0).join(`
95
+ `;const Aa=(t,e)=>t.map(i=>{var s;return((s=e.get(i.id))==null?void 0:s.speakerNotes)??""}).filter(i=>i.trim().length>0).join(`
96
96
 
97
- `),va=(t,e)=>{let i=t.blocks.map(l=>fa(l.cells,e)),s=t.blocks.map((l,a)=>l.isFragment?"":i[a]).filter(l=>l.length>0).join(`
97
+ `),Ta=(t,e)=>{let i=t.blocks.map(l=>Aa(l.cells,e)),s=t.blocks.map((l,a)=>l.isFragment?"":i[a]).filter(l=>l.length>0).join(`
98
98
 
99
- `),n=new Map,r=[];return t.blocks.forEach((l,a)=>{if(!l.isFragment)return;let c=i[a];c.length>0&&r.push(c);let o=[s,...r].filter(u=>u.length>0).join(ma);o.length>0&&n.set(a,o)}),{slideLevel:s,cumulativeByBlock:n}};var ba=`<!--
99
+ `),n=new Map,r=[];return t.blocks.forEach((l,a)=>{if(!l.isFragment)return;let c=i[a];c.length>0&&r.push(c);let o=[s,...r].filter(d=>d.length>0).join(Ra);o.length>0&&n.set(a,o)}),{slideLevel:s,cumulativeByBlock:n}};var Ca=`<!--
100
100
  NOTE: You need to build the notes plugin after making changes to this file.
101
101
  -->
102
102
  <html lang="en">
@@ -1006,32 +1006,32 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
1006
1006
 
1007
1007
  <\/script>
1008
1008
  </body>
1009
- </html>`;function ni(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $e=ni();function bs(t){$e=t}var Be={exec:()=>null};function j(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,r)=>{let l=typeof r=="string"?r:r.source;return l=l.replace(ae.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var ka=(()=>{try{return!0}catch{return!1}})(),ae={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},ya=/^(?:[ \t]*(?:\n|$))+/,wa=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,xa=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ze=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Sa=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ri=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ks=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ys=j(ks).replace(/bull/g,ri).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ea=j(ks).replace(/bull/g,ri).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ai=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ra=/^[^\n]+/,li=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Aa=j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",li).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ta=j(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ri).getRegex(),mt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",oi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ca=j("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",oi).replace("tag",mt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ws=j(ai).replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mt).getRegex(),ci={blockquote:j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ws).getRegex(),code:wa,def:Aa,fences:xa,heading:Sa,hr:Ze,html:Ca,lheading:ys,list:Ta,newline:ya,paragraph:ws,table:Be,text:Ra},xs=j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mt).getRegex(),La={...ci,lheading:Ea,table:xs,paragraph:j(ai).replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mt).getRegex()},Pa={...ci,html:j(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",oi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Be,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:j(ai).replace("hr",Ze).replace("heading",` *#{1,6} *[^
1010
- ]`).replace("lheading",ys).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ia=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ma=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ss=/^( {2,}|\\)\n(?!\s*$)/,Na=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ft=/[\p{P}\p{S}]/u,di=/[\s\p{P}\p{S}]/u,Es=/[^\s\p{P}\p{S}]/u,za=j(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,di).getRegex(),Rs=/(?!~)[\p{P}\p{S}]/u,$a=/(?!~)[\s\p{P}\p{S}]/u,Ba=/(?:[^\s\p{P}\p{S}]|~)/u,As=/(?![*_])[\p{P}\p{S}]/u,Ha=/(?![*_])[\s\p{P}\p{S}]/u,Da=/(?:[^\s\p{P}\p{S}]|[*_])/u,_a=j(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ka?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ts=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qa=j(Ts,"u").replace(/punct/g,ft).getRegex(),ja=j(Ts,"u").replace(/punct/g,Rs).getRegex(),Cs="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Oa=j(Cs,"gu").replace(/notPunctSpace/g,Es).replace(/punctSpace/g,di).replace(/punct/g,ft).getRegex(),Fa=j(Cs,"gu").replace(/notPunctSpace/g,Ba).replace(/punctSpace/g,$a).replace(/punct/g,Rs).getRegex(),Va=j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Es).replace(/punctSpace/g,di).replace(/punct/g,ft).getRegex(),Ua=j(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,As).getRegex(),Wa=j("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Da).replace(/punctSpace/g,Ha).replace(/punct/g,As).getRegex(),Ka=j(/\\(punct)/,"gu").replace(/punct/g,ft).getRegex(),Za=j(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Qa=j(oi).replace("(?:-->|$)","-->").getRegex(),Xa=j("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Qa).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ga=j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",vt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ls=j(/^!?\[(label)\]\[(ref)\]/).replace("label",vt).replace("ref",li).getRegex(),Ps=j(/^!?\[(ref)\](?:\[\])?/).replace("ref",li).getRegex(),Ya=j("reflink|nolink(?!\\()","g").replace("reflink",Ls).replace("nolink",Ps).getRegex(),Is=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ui={_backpedal:Be,anyPunctuation:Ka,autolink:Za,blockSkip:_a,br:Ss,code:Ma,del:Be,delLDelim:Be,delRDelim:Be,emStrongLDelim:qa,emStrongRDelimAst:Oa,emStrongRDelimUnd:Va,escape:Ia,link:Ga,nolink:Ps,punctuation:za,reflink:Ls,reflinkSearch:Ya,tag:Xa,text:Na,url:Be},Ja={...ui,link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",vt).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vt).getRegex()},hi={...ui,emStrongRDelimAst:Fa,emStrongLDelim:ja,delLDelim:Ua,delRDelim:Wa,url:j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Is).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:j(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Is).getRegex()},el={...hi,br:j(Ss).replace("{2,}","*").getRegex(),text:j(hi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bt={normal:ci,gfm:La,pedantic:Pa},Qe={normal:ui,gfm:hi,breaks:el,pedantic:Ja},tl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ms=t=>tl[t];function fe(t,e){if(e){if(ae.escapeTest.test(t))return t.replace(ae.escapeReplace,Ms)}else if(ae.escapeTestNoEncode.test(t))return t.replace(ae.escapeReplaceNoEncode,Ms);return t}function Ns(t){try{t=encodeURI(t).replace(ae.percentDecode,"%")}catch{return null}return t}function zs(t,e){var n;let i=t.replace(ae.findPipe,(r,l,a)=>{let c=!1,o=l;for(;--o>=0&&a[o]==="\\";)c=!c;return c?"|":" |"}).split(ae.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(ae.slashPipe,"|");return i}function Xe(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s&&t.charAt(s-n-1)===e;)n++;return t.slice(0,s-n)}function il(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function sl(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function $s(t,e,i,s,n){let r=e.href,l=e.title||null,a=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:l,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,c}function nl(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
1009
+ </html>`;function ni(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $e=ni();function ys(t){$e=t}var Be={exec:()=>null};function q(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,r)=>{let l=typeof r=="string"?r:r.source;return l=l.replace(ae.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var La=(()=>{try{return!0}catch{return!1}})(),ae={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Pa=/^(?:[ \t]*(?:\n|$))+/,Ia=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Na=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ma=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ri=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ws=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xs=q(ws).replace(/bull/g,ri).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),za=q(ws).replace(/bull/g,ri).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ai=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,$a=/^[^\n]+/,li=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ba=q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",li).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ha=q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ri).getRegex(),ft="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",oi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Da=q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",oi).replace("tag",ft).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ss=q(ai).replace("hr",Xe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ft).getRegex(),ci={blockquote:q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ss).getRegex(),code:Ia,def:Ba,fences:Na,heading:Ma,hr:Xe,html:Da,lheading:xs,list:Ha,newline:Pa,paragraph:Ss,table:Be,text:$a},Es=q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ft).getRegex(),_a={...ci,lheading:za,table:Es,paragraph:q(ai).replace("hr",Xe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Es).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ft).getRegex()},ja={...ci,html:q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",oi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Be,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:q(ai).replace("hr",Xe).replace("heading",` *#{1,6} *[^
1010
+ ]`).replace("lheading",xs).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},qa=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Oa=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Rs=/^( {2,}|\\)\n(?!\s*$)/,Fa=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,vt=/[\p{P}\p{S}]/u,di=/[\s\p{P}\p{S}]/u,As=/[^\s\p{P}\p{S}]/u,Va=q(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,di).getRegex(),Ts=/(?!~)[\p{P}\p{S}]/u,Ua=/(?!~)[\s\p{P}\p{S}]/u,Wa=/(?:[^\s\p{P}\p{S}]|~)/u,Cs=/(?![*_])[\p{P}\p{S}]/u,Ka=/(?![*_])[\s\p{P}\p{S}]/u,Za=/(?:[^\s\p{P}\p{S}]|[*_])/u,Qa=q(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",La?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ls=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Xa=q(Ls,"u").replace(/punct/g,vt).getRegex(),Ga=q(Ls,"u").replace(/punct/g,Ts).getRegex(),Ps="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ya=q(Ps,"gu").replace(/notPunctSpace/g,As).replace(/punctSpace/g,di).replace(/punct/g,vt).getRegex(),Ja=q(Ps,"gu").replace(/notPunctSpace/g,Wa).replace(/punctSpace/g,Ua).replace(/punct/g,Ts).getRegex(),el=q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,As).replace(/punctSpace/g,di).replace(/punct/g,vt).getRegex(),tl=q(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Cs).getRegex(),il=q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Za).replace(/punctSpace/g,Ka).replace(/punct/g,Cs).getRegex(),sl=q(/\\(punct)/,"gu").replace(/punct/g,vt).getRegex(),nl=q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),rl=q(oi).replace("(?:-->|$)","-->").getRegex(),al=q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",rl).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,ll=q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",bt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Is=q(/^!?\[(label)\]\[(ref)\]/).replace("label",bt).replace("ref",li).getRegex(),Ns=q(/^!?\[(ref)\](?:\[\])?/).replace("ref",li).getRegex(),ol=q("reflink|nolink(?!\\()","g").replace("reflink",Is).replace("nolink",Ns).getRegex(),Ms=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ui={_backpedal:Be,anyPunctuation:sl,autolink:nl,blockSkip:Qa,br:Rs,code:Oa,del:Be,delLDelim:Be,delRDelim:Be,emStrongLDelim:Xa,emStrongRDelimAst:Ya,emStrongRDelimUnd:el,escape:qa,link:ll,nolink:Ns,punctuation:Va,reflink:Is,reflinkSearch:ol,tag:al,text:Fa,url:Be},cl={...ui,link:q(/^!?\[(label)\]\((.*?)\)/).replace("label",bt).getRegex(),reflink:q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bt).getRegex()},hi={...ui,emStrongRDelimAst:Ja,emStrongLDelim:Ga,delLDelim:tl,delRDelim:il,url:q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ms).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:q(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ms).getRegex()},dl={...hi,br:q(Rs).replace("{2,}","*").getRegex(),text:q(hi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},kt={normal:ci,gfm:_a,pedantic:ja},Ge={normal:ui,gfm:hi,breaks:dl,pedantic:cl},ul={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zs=t=>ul[t];function ve(t,e){if(e){if(ae.escapeTest.test(t))return t.replace(ae.escapeReplace,zs)}else if(ae.escapeTestNoEncode.test(t))return t.replace(ae.escapeReplaceNoEncode,zs);return t}function $s(t){try{t=encodeURI(t).replace(ae.percentDecode,"%")}catch{return null}return t}function Bs(t,e){var n;let i=t.replace(ae.findPipe,(r,l,a)=>{let c=!1,o=l;for(;--o>=0&&a[o]==="\\";)c=!c;return c?"|":" |"}).split(ae.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(ae.slashPipe,"|");return i}function Ye(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s&&t.charAt(s-n-1)===e;)n++;return t.slice(0,s-n)}function hl(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function pl(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function Hs(t,e,i,s,n){let r=e.href,l=e.title||null,a=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:l,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,c}function gl(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
1011
1011
  `).map(r=>{let l=r.match(i.other.beginningSpace);if(l===null)return r;let[a]=l;return a.length>=n.length?r.slice(n.length):r}).join(`
1012
- `)}var kt=class{constructor(t){I(this,"options");I(this,"rules");I(this,"lexer");this.options=t||$e}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Xe(i,`
1013
- `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=nl(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Xe(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Xe(e[0],`
1014
- `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=Xe(e[0],`
1012
+ `)}var yt=class{constructor(t){I(this,"options");I(this,"rules");I(this,"lexer");this.options=t||$e}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ye(i,`
1013
+ `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=gl(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ye(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Ye(e[0],`
1014
+ `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=Ye(e[0],`
1015
1015
  `).split(`
1016
1016
  `),s="",n="",r=[];for(;i.length>0;){let l=!1,a=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))a.push(i[c]),l=!0;else if(!l)a.push(i[c]);else break;i=i.slice(c);let o=a.join(`
1017
- `),u=o.replace(this.rules.other.blockquoteSetextReplace,`
1017
+ `),d=o.replace(this.rules.other.blockquoteSetextReplace,`
1018
1018
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
1019
1019
  ${o}`:o,n=n?`${n}
1020
- ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,r,!0),this.lexer.state.top=h,i.length===0)break;let g=r.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,d=p.raw+`
1020
+ ${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,r,!0),this.lexer.state.top=h,i.length===0)break;let g=r.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,u=p.raw+`
1021
1021
  `+i.join(`
1022
- `),b=this.blockquote(d);r[r.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,d=p.raw+`
1022
+ `),b=this.blockquote(u);r[r.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,u=p.raw+`
1023
1023
  `+i.join(`
1024
- `),b=this.list(d);r[r.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=d.substring(r.at(-1).raw.length).split(`
1025
- `);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),c=!1;for(;t;){let u=!1,h="",g="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=sl(e[2].split(`
1026
- `,1)[0],e[1].length),d=t.split(`
1027
- `,1)[0],b=!p.trim(),k=0;if(this.options.pedantic?(k=2,g=p.trimStart()):b?k=e[1].length+1:(k=p.search(this.rules.other.nonSpaceChar),k=k>4?1:k,g=p.slice(k),k+=e[1].length),b&&this.rules.other.blankLine.test(d)&&(h+=d+`
1028
- `,t=t.substring(d.length+1),u=!0),!u){let P=this.rules.other.nextBulletRegex(k),H=this.rules.other.hrRegex(k),M=this.rules.other.fencesBeginRegex(k),A=this.rules.other.headingBeginRegex(k),S=this.rules.other.htmlBeginRegex(k),$=this.rules.other.blockquoteBeginRegex(k);for(;t;){let T=t.split(`
1029
- `,1)[0],_;if(d=T,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),_=d):_=d.replace(this.rules.other.tabCharGlobal," "),M.test(d)||A.test(d)||S.test(d)||$.test(d)||P.test(d)||H.test(d))break;if(_.search(this.rules.other.nonSpaceChar)>=k||!d.trim())g+=`
1030
- `+_.slice(k);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(p)||A.test(p)||H.test(p))break;g+=`
1031
- `+d}b=!d.trim(),h+=T+`
1032
- `,t=t.substring(T.length+1),p=_.slice(k)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((i=u.tokens[0])==null?void 0:i.type)==="text"||((s=u.tokens[0])==null?void 0:s.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(u.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};u.checked=g.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=g.raw+u.tokens[0].raw,u.tokens[0].text=g.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(g)):u.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):u.tokens.unshift(g)}}if(!l.loose){let h=u.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let u of l.items){u.loose=!0;for(let h of u.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=zs(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
1033
- `):[],r={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(zs(a,r.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:r.align[o]})));return r}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let i=e[1].charAt(e[1].length-1)===`
1034
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=Xe(i.slice(0,-1),"\\");if((i.length-r.length)%2==0)return}else{let r=il(e[2],"()");if(r===-2)return;if(r>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),$s(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return $s(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(l=[...r].length,s[3]||s[4]){a+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let u=[...s[0]][0].length,h=t.slice(0,n+s.index+u+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(l=[...r].length,l!==n))continue;if(s[3]||s[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let o=[...s[0]][0].length,u=t.slice(0,n+s.index+o+l),h=u.slice(n,-n);return{type:"del",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let r;do r=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(r!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},he=class Ni{constructor(e){I(this,"tokens");I(this,"options");I(this,"state");I(this,"inlineQueue");I(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||$e,this.options.tokenizer=this.options.tokenizer||new kt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:ae,block:bt.normal,inline:Qe.normal};this.options.pedantic?(i.block=bt.pedantic,i.inline=Qe.pedantic):this.options.gfm&&(i.block=bt.gfm,this.options.breaks?i.inline=Qe.breaks:i.inline=Qe.gfm),this.tokenizer.rules=i}static get rules(){return{block:bt,inline:Qe}}static lex(e,i){return new Ni(i).lex(e)}static lexInline(e,i){return new Ni(i).inlineTokens(e)}lex(e){e=e.replace(ae.carriageReturn,`
1024
+ `),b=this.list(u);r[r.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=u.substring(r.at(-1).raw.length).split(`
1025
+ `);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),c=!1;for(;t;){let d=!1,h="",g="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=pl(e[2].split(`
1026
+ `,1)[0],e[1].length),u=t.split(`
1027
+ `,1)[0],b=!p.trim(),k=0;if(this.options.pedantic?(k=2,g=p.trimStart()):b?k=e[1].length+1:(k=p.search(this.rules.other.nonSpaceChar),k=k>4?1:k,g=p.slice(k),k+=e[1].length),b&&this.rules.other.blankLine.test(u)&&(h+=u+`
1028
+ `,t=t.substring(u.length+1),d=!0),!d){let N=this.rules.other.nextBulletRegex(k),$=this.rules.other.hrRegex(k),L=this.rules.other.fencesBeginRegex(k),A=this.rules.other.headingBeginRegex(k),S=this.rules.other.htmlBeginRegex(k),B=this.rules.other.blockquoteBeginRegex(k);for(;t;){let C=t.split(`
1029
+ `,1)[0],_;if(u=C,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),_=u):_=u.replace(this.rules.other.tabCharGlobal," "),L.test(u)||A.test(u)||S.test(u)||B.test(u)||N.test(u)||$.test(u))break;if(_.search(this.rules.other.nonSpaceChar)>=k||!u.trim())g+=`
1030
+ `+_.slice(k);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(p)||A.test(p)||$.test(p))break;g+=`
1031
+ `+u}b=!u.trim(),h+=C+`
1032
+ `,t=t.substring(C.length+1),p=_.slice(k)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let d of l.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),((i=d.tokens[0])==null?void 0:i.type)==="text"||((s=d.tokens[0])==null?void 0:s.type)==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=g.checked,l.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=g.raw+d.tokens[0].raw,d.tokens[0].text=g.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(g)):d.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):d.tokens.unshift(g)}}if(!l.loose){let h=d.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let d of l.items){d.loose=!0;for(let h of d.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=Bs(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
1033
+ `):[],r={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(Bs(a,r.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:r.align[o]})));return r}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let i=e[1].charAt(e[1].length-1)===`
1034
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=Ye(i.slice(0,-1),"\\");if((i.length-r.length)%2==0)return}else{let r=hl(e[2],"()");if(r===-2)return;if(r>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),Hs(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return Hs(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(l=[...r].length,s[3]||s[4]){a+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let d=[...s[0]][0].length,h=t.slice(0,n+s.index+d+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,l,a=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(l=[...r].length,l!==n))continue;if(s[3]||s[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let o=[...s[0]][0].length,d=t.slice(0,n+s.index+o+l),h=d.slice(n,-n);return{type:"del",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let r;do r=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(r!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},pe=class $i{constructor(e){I(this,"tokens");I(this,"options");I(this,"state");I(this,"inlineQueue");I(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||$e,this.options.tokenizer=this.options.tokenizer||new yt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:ae,block:kt.normal,inline:Ge.normal};this.options.pedantic?(i.block=kt.pedantic,i.inline=Ge.pedantic):this.options.gfm&&(i.block=kt.gfm,this.options.breaks?i.inline=Ge.breaks:i.inline=Ge.gfm),this.tokenizer.rules=i}static get rules(){return{block:kt,inline:Ge}}static lex(e,i){return new $i(i).lex(e)}static lexInline(e,i){return new $i(i).inlineTokens(e)}lex(e){e=e.replace(ae.carriageReturn,`
1035
1035
  `),this.blockTokens(e,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,i=[],s=!1){var n,r,l;for(this.options.pedantic&&(e=e.replace(ae.tabCharGlobal," ").replace(ae.spaceLine,""));e;){let a;if((r=(n=this.options.extensions)==null?void 0:n.block)!=null&&r.some(o=>(a=o.call({lexer:this},e,i))?(e=e.substring(a.raw.length),i.push(a),!0):!1))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let o=i.at(-1);a.raw.length===1&&o!==void 0?o.raw+=`
1036
1036
  `:i.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
1037
1037
  `)?"":`
@@ -1039,15 +1039,15 @@ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
1039
1039
  `+a.text,this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
1040
1040
  `)?"":`
1041
1041
  `)+a.raw,o.text+=`
1042
- `+a.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},i.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),i.push(a);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,u=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},u),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(a=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
1042
+ `+a.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},i.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),i.push(a);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,d=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},d),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(a=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
1043
1043
  `)?"":`
1044
1044
  `)+a.raw,o.text+=`
1045
1045
  `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a),s=c.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
1046
1046
  `)?"":`
1047
1047
  `)+a.raw,o.text+=`
1048
- `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,u,h,g;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,a="";for(;e;){l||(a=""),l=!1;let p;if((h=(u=this.options.extensions)==null?void 0:u.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let d=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,k=e.slice(1),P;this.options.extensions.startInline.forEach(H=>{P=H.call({lexer:this},k),typeof P=="number"&&P>=0&&(b=Math.min(b,P))}),b<1/0&&b>=0&&(d=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(d)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(a=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},yt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||$e}space(t){return""}code({text:t,lang:e,escaped:i}){var r;let s=(r=(e||"").match(ae.notSpaceStart))==null?void 0:r[0],n=t.replace(ae.endingNewline,"")+`
1049
- `;return s?'<pre><code class="language-'+fe(s)+'">'+(i?n:fe(n,!0))+`</code></pre>
1050
- `:"<pre><code>"+(i?n:fe(n,!0))+`</code></pre>
1048
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(a);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,d,h,g;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,a="";for(;e;){l||(a=""),l=!1;let p;if((h=(d=this.options.extensions)==null?void 0:d.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,a)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let u=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,k=e.slice(1),N;this.options.extensions.startInline.forEach($=>{N=$.call({lexer:this},k),typeof N=="number"&&N>=0&&(b=Math.min(b,N))}),b<1/0&&b>=0&&(u=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(u)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(a=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},wt=class{constructor(t){I(this,"options");I(this,"parser");this.options=t||$e}space(t){return""}code({text:t,lang:e,escaped:i}){var r;let s=(r=(e||"").match(ae.notSpaceStart))==null?void 0:r[0],n=t.replace(ae.endingNewline,"")+`
1049
+ `;return s?'<pre><code class="language-'+ve(s)+'">'+(i?n:ve(n,!0))+`</code></pre>
1050
+ `:"<pre><code>"+(i?n:ve(n,!0))+`</code></pre>
1051
1051
  `}blockquote({tokens:t}){return`<blockquote>
1052
1052
  ${this.parser.parse(t)}</blockquote>
1053
1053
  `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
@@ -1063,7 +1063,7 @@ ${this.parser.parse(t)}</blockquote>
1063
1063
  `}tablerow({text:t}){return`<tr>
1064
1064
  ${t}</tr>
1065
1065
  `}tablecell(t){let e=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+`</${i}>
1066
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${fe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=Ns(t);if(n===null)return s;t=n;let r='<a href="'+t+'"';return e&&(r+=' title="'+fe(e)+'"'),r+=">"+s+"</a>",r}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=Ns(t);if(n===null)return fe(i);t=n;let r=`<img src="${t}" alt="${fe(i)}"`;return e&&(r+=` title="${fe(e)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fe(t.text)}},pi=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},pe=class zi{constructor(e){I(this,"options");I(this,"renderer");I(this,"textRenderer");this.options=e||$e,this.options.renderer=this.options.renderer||new yt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pi}static parse(e,i){return new zi(i).parse(e)}static parseInline(e,i){return new zi(i).parseInline(e)}parse(e){var s,n;let i="";for(let r=0;r<e.length;r++){let l=e[r];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let a=l;switch(a.type){case"space":i+=this.renderer.space(a);break;case"hr":i+=this.renderer.hr(a);break;case"heading":i+=this.renderer.heading(a);break;case"code":i+=this.renderer.code(a);break;case"table":i+=this.renderer.table(a);break;case"blockquote":i+=this.renderer.blockquote(a);break;case"list":i+=this.renderer.list(a);break;case"checkbox":i+=this.renderer.checkbox(a);break;case"html":i+=this.renderer.html(a);break;case"def":i+=this.renderer.def(a);break;case"paragraph":i+=this.renderer.paragraph(a);break;case"text":i+=this.renderer.text(a);break;default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,r;let s="";for(let l=0;l<e.length;l++){let a=e[l];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=o||"";continue}}let c=a;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},Ge=(xt=class{constructor(t){I(this,"options");I(this,"block");this.options=t||$e}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?he.lex:he.lexInline}provideParser(){return this.block?pe.parse:pe.parseInline}},I(xt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),I(xt,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),xt),He=new class{constructor(...t){I(this,"defaults",ni());I(this,"options",this.setOptions);I(this,"parse",this.parseMarkdown(!0));I(this,"parseInline",this.parseMarkdown(!1));I(this,"Parser",pe);I(this,"Renderer",yt);I(this,"TextRenderer",pi);I(this,"Lexer",he);I(this,"Tokenizer",kt);I(this,"Hooks",Ge);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let r of t)switch(i=i.concat(e.call(this,r)),r.type){case"table":{let l=r;for(let a of l.header)i=i.concat(this.walkTokens(a.tokens,e));for(let a of l.rows)for(let c of a)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=r;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=r;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{let c=l[a].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let r=e.renderers[n.name];r?e.renderers[n.name]=function(...l){let a=n.renderer.apply(this,l);return a===!1&&(a=r.apply(this,l)),a}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let r=e[n.level];r?r.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new yt(this.defaults);for(let r in i.renderer){if(!(r in n))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let l=r,a=i.renderer[l],c=n[l];n[l]=(...o)=>{let u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new kt(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let l=r,a=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Ge;for(let r in i.hooks){if(!(r in n))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let l=r,a=i.hooks[l],c=n[l];Ge.passThroughHooks.has(r)?n[l]=o=>{if(this.defaults.async&&Ge.passThroughHooksRespectAsync.has(r))return(async()=>{let h=await a.call(n,o);return c.call(n,h)})();let u=a.call(n,o);return c.call(n,u)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await a.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let u=a.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(l){let a=[];return a.push(r.call(this,l)),n&&(a=a.concat(n.call(this,l))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return he.lex(t,e??this.defaults)}parser(t,e){return pe.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return r(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return r(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,a=await(n.hooks?await n.hooks.provideLexer():t?he.lex:he.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?pe.parse:pe.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(r);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?he.lex:he.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let a=(n.hooks?n.hooks.provideParser():t?pe.parse:pe.parseInline)(l,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(l){return r(l)}}}onError(t,e){return i=>{if(i.message+=`
1067
- Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+fe(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function F(t,e){return He.parse(t,e)}F.options=F.setOptions=function(t){return He.setOptions(t),F.defaults=He.defaults,bs(F.defaults),F},F.getDefaults=ni,F.defaults=$e,F.use=function(...t){return He.use(...t),F.defaults=He.defaults,bs(F.defaults),F},F.walkTokens=function(t,e){return He.walkTokens(t,e)},F.parseInline=He.parseInline,F.Parser=pe,F.parser=pe.parse,F.Renderer=yt,F.TextRenderer=pi,F.Lexer=he,F.lexer=he.lex,F.Tokenizer=kt,F.Hooks=Ge,F.parse=F,F.options,F.setOptions,F.use,F.walkTokens,F.parseInline,pe.parse,he.lex;var rl=()=>{let t,e=null,i;function s(){if(e&&!e.closed)e.focus();else{if(e=window.open("about:blank","reveal.js - Notes","width=1100,height=700"),e.marked=F,e.document.write(ba),!e){alert("Speaker view popup failed to open. Please make sure popups are allowed and reopen the speaker view.");return}r()}}function n(h){e&&!e.closed?e.focus():(e=h,window.addEventListener("message",o),u())}function r(){let h=i.getConfig().url,g=typeof h=="string"?h:window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;t=setInterval(function(){e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"connect",state:i.getState(),url:g}),"*")},500),window.addEventListener("message",o)}function l(h,g,p){let d=i[h].apply(i,g);e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"return",result:d,callId:p}),"*")}function a(h){let g=i.getCurrentSlide(),p=g.querySelectorAll("aside.notes"),d=g.querySelector(".current-fragment"),b={namespace:"reveal-notes",type:"state",notes:"",markdown:!1,whitespace:"normal",state:i.getState()};if(g.hasAttribute("data-notes")&&(b.notes=g.getAttribute("data-notes"),b.whitespace="pre-wrap"),d){let k=d.querySelector("aside.notes");k?(b.notes=k.innerHTML,b.markdown=typeof k.getAttribute("data-markdown")=="string",p=null):d.hasAttribute("data-notes")&&(b.notes=d.getAttribute("data-notes"),b.whitespace="pre-wrap",p=null)}p&&p.length&&(p=Array.from(p).filter(k=>k.closest(".fragment")===null),b.notes=p.map(k=>k.innerHTML).join(`
1068
- `),b.markdown=p[0]&&typeof p[0].getAttribute("data-markdown")=="string"),e.postMessage(JSON.stringify(b),"*")}function c(h){try{return window.location.origin===h.source.location.origin}catch{return!1}}function o(h){if(c(h))try{let g=JSON.parse(h.data);g&&g.namespace==="reveal-notes"&&g.type==="connected"?(clearInterval(t),u()):g&&g.namespace==="reveal-notes"&&g.type==="call"&&l(g.methodName,g.arguments,g.callId)}catch{}}function u(){i.on("slidechanged",a),i.on("fragmentshown",a),i.on("fragmenthidden",a),i.on("overviewhidden",a),i.on("overviewshown",a),i.on("paused",a),i.on("resumed",a),i.on("previewiframe",a),i.on("previewimage",a),i.on("previewvideo",a),i.on("closeoverlay",a),a()}return{id:"notes",init:function(h){i=h,/receiver/i.test(window.location.search)||(window.location.search.match(/(\?|\&)notes/gi)===null?window.addEventListener("message",g=>{if(!e&&typeof g.data=="string"){let p;try{p=JSON.parse(g.data)}catch{}p&&p.namespace==="reveal-notes"&&p.type==="heartbeat"&&n(g.source)}}):s(),i.addKeyBinding({keyCode:83,key:"S",description:"Speaker notes view"},function(){s()}))},open:s}},Ye=Ai(),Bs=16/9;function al(t){let e=t.getSlidesElement();if(e)for(let i of e.querySelectorAll("section.stack[data-previous-indexv]"))i.removeAttribute("data-previous-indexv")}var ll=new Set([" ","Spacebar","ArrowRight","ArrowDown","PageDown"]),ol=new Set(["ArrowLeft","ArrowUp","PageUp"]);function cl(t){return ll.has(t.key)?1:ol.has(t.key)?-1:0}function dl(t){let e=(0,Ye.c)(4),i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:960,height:540},e[0]=i):i=e[0];let[s,n]=(0,C.useState)(i),r,l;return e[1]===t?(r=e[2],l=e[3]):(r=()=>{let a=t.current;if(!a)return;let c=new ResizeObserver(o=>{let{width:u,height:h}=o[0].contentRect;if(u<=0||h<=0)return;let g=Math.min(u,h*Bs),p=g/Bs;n({width:Math.round(g),height:Math.round(p)})});return c.observe(a),()=>c.disconnect()},l=[t],e[1]=t,e[2]=r,e[3]=l),(0,C.useEffect)(r,l),s}var Hs=t=>{let e=(0,Ye.c)(6),{text:i}=t,s,n;if(e[0]!==i){let l=i.split(`
1069
- `);s="notes",n=l.map((a,c)=>{let o=c===l.length-1;return a==="---"?(0,x.jsx)("hr",{},c):(0,x.jsxs)(C.Fragment,{children:[a,!o&&(0,x.jsx)("br",{})]},c)}),e[0]=i,e[1]=s,e[2]=n}else s=e[1],n=e[2];let r;return e[3]!==s||e[4]!==n?(r=(0,x.jsx)("aside",{className:s,children:n}),e[3]=s,e[4]=n,e[5]=r):r=e[5],r};Li=function(t){var r;let{cells:e,cellId:i,showCodeOverrides:s,codeToggleEnabled:n}=t;return i==null||!n?!1:(((r=e.get(i))==null?void 0:r.showCode)??!1)||s.has(i)},Ci=function(t){var r;let{cell:e,noOutputIds:i,heldEditCellId:s,slideConfigs:n}=t;return i.has(e.id)||e.id===s?"skip":((r=n.get(e.id))==null?void 0:r.type)??"slide"},Pi=function(t){var T;let e=(0,Ye.c)(15),{activeCell:i,slideConfigs:s,noOutputIds:n}=t,r=(i==null?void 0:i.id)??null,l;e[0]!==i||e[1]!==n?(l=i!=null&&n.has(i.id),e[0]=i,e[1]=n,e[2]=l):l=e[2];let a=l,c=i!=null&&((T=s.get(i.id))==null?void 0:T.type)==="skip"||a,o;e[3]===r?o=e[4]:(o={activeCellId:r,cellId:null},e[3]=r,e[4]=o);let[u,h]=(0,C.useState)(o),g=u.cellId;u.activeCellId===r?a&&g!==r&&(g=r,h({activeCellId:r,cellId:g})):(g=a?r:null,h({activeCellId:r,cellId:g}));let p=!c&&r!=null&&g===r,d=p?g:null,b;e[5]===d?b=e[6]:(b={cellId:d,show:!0},e[5]=d,e[6]=b);let[k,P]=(0,C.useState)(b),H=k.show;k.cellId!==d&&(H=!0,P({cellId:d,show:!0}));let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=()=>P(ul),e[7]=M):M=e[7];let A=be(M),S=c||p?i??null:null,$;return e[8]!==d||e[9]!==H||e[10]!==p||e[11]!==a||e[12]!==S||e[13]!==A?($={parkedPreviewCell:S,isHeldEdit:p,isNoOutputPreview:a,heldEditCellId:d,heldShowsCode:H,toggleHeldShowsCode:A},e[8]=d,e[9]=H,e[10]=p,e[11]=a,e[12]=S,e[13]=A,e[14]=$):$=e[14],$};function ul(t){return{...t,show:!t.show}}function hl(t){switch(t??"center"){case"top":return{margin:"0 20px auto"};case"bottom":return{margin:"auto 20px 0"};default:return{margin:"auto 20px"}}}var Ds=t=>{let e=(0,Ye.c)(24),{subslide:i,resolveShowCode:s,isEditable:n,slideConfigs:r,contentStyle:l}=t,a,c,o,u,h,g;if(e[0]!==l||e[1]!==n||e[2]!==s||e[3]!==r||e[4]!==i){let{slideLevel:P,cumulativeByBlock:H}=va(i,r);c=P;let M=i.blocks.some(A=>A.cells.some(S=>s(S.id)));a=br,g="h-full w-full overflow-auto flex",o=M?"mo-slide-content flex flex-col gap-3":"mo-slide-content",u=l,h=i.blocks.map((A,S)=>{let $=A.cells.map(T=>s(T.id)?n?(0,x.jsx)(fs,{cell:T},T.id):(0,x.jsx)(vs,{cell:T},T.id):(0,x.jsx)(_t,{cellId:T.id,status:T.status,output:T.output,stale:Ht(T,!1)},T.id));if(A.isFragment){let T=H.get(S);return(0,x.jsxs)(ra,{as:"div",children:[$,T&&(0,x.jsx)(Hs,{text:T})]},S)}return(0,x.jsx)(C.Fragment,{children:$},S)}),e[0]=l,e[1]=n,e[2]=s,e[3]=r,e[4]=i,e[5]=a,e[6]=c,e[7]=o,e[8]=u,e[9]=h,e[10]=g}else a=e[5],c=e[6],o=e[7],u=e[8],h=e[9],g=e[10];let p;e[11]!==o||e[12]!==u||e[13]!==h?(p=(0,x.jsx)("div",{className:o,style:u,children:h}),e[11]=o,e[12]=u,e[13]=h,e[14]=p):p=e[14];let d;e[15]!==g||e[16]!==p?(d=(0,x.jsx)("div",{className:g,children:p}),e[15]=g,e[16]=p,e[17]=d):d=e[17];let b;e[18]===c?b=e[19]:(b=c&&(0,x.jsx)(Hs,{text:c}),e[18]=c,e[19]=b);let k;return e[20]!==a||e[21]!==d||e[22]!==b?(k=(0,x.jsxs)(a,{children:[d,b]}),e[20]=a,e[21]=d,e[22]=b,e[23]=k):k=e[23],k};qt=function(t){let{isNoOutputPreview:e,isEditable:i,showCode:s}=t;return e&&i||s};let _s;_s=t=>{let e=(0,Ye.c)(10),{cell:i,isNoOutputPreview:s,isEditable:n,showCode:r}=t;if(qt({isNoOutputPreview:s,isEditable:n,showCode:r})){let h;return e[0]!==i||e[1]!==n?(h=n?(0,x.jsx)(fs,{cell:i}):(0,x.jsx)(vs,{cell:i}),e[0]=i,e[1]=n,e[2]=h):h=e[2],h}let l=i.id,a=i.status,c=i.output,o;e[3]===i?o=e[4]:(o=Ht(i,!1),e[3]=i,e[4]=o);let u;return e[5]!==i.id||e[6]!==i.output||e[7]!==i.status||e[8]!==o?(u=(0,x.jsx)(_t,{cellId:l,status:a,output:c,stale:o}),e[5]=i.id,e[6]=i.output,e[7]=i.status,e[8]=o,e[9]=u):u=e[9],u},wn=({slideCells:t,layout:e,setLayout:i,noOutputIds:s,activeIndex:n,onSlideChange:r,mode:l,configWidth:a,isEditable:c=!1})=>{var st,At,Tt;let o=(0,C.useRef)(null),u=(0,C.useRef)(null),{width:h,height:g}=dl(o),p=Wl()!=null,d=Ri(Bl),b=(0,C.useMemo)(()=>d?[]:[rl],[d]),[k,P]=(0,C.useState)(()=>new Set),H=Xl(t),M=!Ol()&&H,A=n==null?void 0:t[n],S=A??t.at(0),{parkedPreviewCell:$,isHeldEdit:T,isNoOutputPreview:_,heldEditCellId:O,heldShowsCode:N,toggleHeldShowsCode:Y}=Pi({activeCell:A,slideConfigs:e.cells,noOutputIds:s}),B=D=>Li({cells:e.cells,cellId:D,showCodeOverrides:k,codeToggleEnabled:M}),v=(A==null?void 0:A.id)??(S==null?void 0:S.id),R=T?N:B(v),z=M&&v!=null&&(((st=e.cells.get(v))==null?void 0:st.showCode)??!1),Z=(0,C.useMemo)(()=>aa({cells:t,getType:D=>Ci({cell:D,noOutputIds:s,heldEditCellId:O,slideConfigs:e.cells})}),[t,s,e.cells,O]),{cellToTarget:te,targetToCellIndex:se}=(0,C.useMemo)(()=>la({composition:Z,cells:t,getId:D=>D.id}),[Z,t]),Q=((At=e.deck)==null?void 0:At.transition)??"slide",W=hl((Tt=e.deck)==null?void 0:Tt.verticalAlign),ce=(0,C.useMemo)(()=>{let D=new URL(window.location.href);return D.searchParams.set("kiosk","true"),D.searchParams.set("show-chrome","false"),D.toString()},[]),Je=(0,C.useMemo)(()=>({embedded:!0,width:h,height:g,center:!1,minScale:.2,maxScale:2,transition:Q,keyboardCondition:D=>!Ti.fromInput(D),url:ce,scrollActivationWidth:0}),[h,g,Q,ce]),le=be(D=>{let K=ca({activeIndex:n,cells:t,cellToTarget:te,getId:Ae=>Ae.id}),ie=K&&da(D.getIndices(),K);ie&&(D.slide(ie.h,ie.v,ie.f),al(D))});(0,C.useEffect)(()=>{let D=u.current;D!=null&&le(D)},[n,te,t,le]);let St=be(()=>{if(!(v==null||z)){if(T){Y();return}(0,C.startTransition)(()=>P(D=>{let K=new Set(D);return K.has(v)?K.delete(v):K.add(v),K}))}}),gi=be(D=>{var ie;le(D),M&&D.addKeyBinding({keyCode:67,key:"C",description:"Toggle code editor"},St);let K=(ie=D.getSlidesElement())==null?void 0:ie.closest(".reveal");K instanceof HTMLElement&&(K.tabIndex=-1,K.focus({preventScroll:!0}))}),et=be(()=>{if($!=null)return;let D=u.current;if(!D)return;let K=oa(se,D.getIndices());K!=null&&(r==null||r(K))}),mi=be(D=>{if(!$||n==null||Ti.fromInput(D))return;let K=cl(D);if(K===0)return;D.preventDefault(),D.stopPropagation();let ie=n+K;ie<0||ie>=t.length||(r==null||r(ie))}),Et=be(()=>{et()});ql(document,"keydown",mi,{capture:!0});let tt=T?null:_?"Hidden as there is no output":"Skipped in presentation",Rt=T?N:B($==null?void 0:$.id),it=qt({isNoOutputPreview:_,isEditable:c,showCode:Rt}),De=(0,x.jsx)("div",{ref:o,className:"h-full w-full min-w-0 flex items-center justify-center overflow-hidden",children:(0,x.jsxs)("div",{className:"group relative",style:{width:h,height:g},children:[(0,x.jsx)(gr,{deckRef:u,className:"aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",config:Je,onReady:gi,onSlideChange:Et,onFragmentShown:et,onFragmentHidden:et,plugins:b,children:Z.stacks.map((D,K)=>D.subslides.length===1?(0,x.jsx)(Ds,{subslide:D.subslides[0],resolveShowCode:B,isEditable:c,slideConfigs:e.cells,contentStyle:W},K):(0,x.jsx)(kr,{children:D.subslides.map((ie,Ae)=>(0,x.jsx)(Ds,{subslide:ie,resolveShowCode:B,isEditable:c,slideConfigs:e.cells,contentStyle:W},Ae))},K))}),$&&(0,x.jsxs)("div",{className:"absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden","aria-label":tt??void 0,children:[tt&&(0,x.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",children:[(0,x.jsx)(io,{className:"h-3.5 w-3.5"}),(0,x.jsx)("span",{children:tt})]}),(0,x.jsx)("div",{className:"flex-1 overflow-auto flex",children:(0,x.jsx)("div",{className:it?"mo-slide-content flex flex-col gap-3":"mo-slide-content",style:W,children:(0,x.jsx)(_s,{cell:$,isNoOutputPreview:_,isEditable:c,showCode:Rt})})})]},$.id),(0,x.jsxs)("div",{className:"absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",children:[M&&(0,x.jsx)(bn,{content:z?"Code is always shown for this slide":R?"Hide code (C)":"Show code (C)",children:(0,x.jsx)(kn,{"data-testid":"marimo-plugin-slides-toggle-code",variant:"ghost",size:"icon",className:Dt("text-muted-foreground h-7 w-7",R&&"text-foreground bg-muted",z&&"opacity-50 cursor-not-allowed"),"aria-pressed":R,"aria-disabled":z,"aria-label":z?"Code always shown":R?"Hide code":"Show code",onClick:St,children:(0,x.jsx)(to,{className:"h-4 w-4"})})}),(0,x.jsx)(bn,{content:"Fullscreen (F)",children:(0,x.jsx)(kn,{"data-testid":"marimo-plugin-slides-fullscreen",variant:"ghost",size:"icon",className:"text-muted-foreground h-7 w-7","aria-label":"Enter fullscreen",onClick:()=>{var D,K;(K=(D=u.current)==null?void 0:D.getViewportElement())==null||K.requestFullscreen().catch(ie=>{_l.error("Failed to request fullscreen",ie)})},children:(0,x.jsx)(Kl,{className:"h-4 w-4"})})})]})]})});return l==="read"?(0,x.jsx)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:De}):(0,x.jsxs)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:[(0,x.jsxs)(mo,{direction:"vertical",autoSaveId:"marimo:slides:notes-panel",className:"flex-1 min-w-0",children:[(0,x.jsx)(yn,{defaultSize:92,minSize:60,children:De}),(0,x.jsx)(fo,{className:"mo-slides-notes-resize",hitAreaMargins:{coarse:12,fine:4},disabled:p}),(0,x.jsx)(yn,{defaultSize:10,minSize:4,collapsible:!0,collapsedSize:4,children:(0,x.jsx)(pa,{layout:e,setLayout:i,cellId:S==null?void 0:S.id})})]}),(0,x.jsx)(Gl,{configWidth:a,layout:e,setLayout:i,activeConfigCell:S})]})}});export{ko as __tla,Ci as deckSlideType,wn as default,qt as parkedRendersSource,Li as shouldShowCode,Pi as useParkedPreview};
1066
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ve(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=$s(t);if(n===null)return s;t=n;let r='<a href="'+t+'"';return e&&(r+=' title="'+ve(e)+'"'),r+=">"+s+"</a>",r}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=$s(t);if(n===null)return ve(i);t=n;let r=`<img src="${t}" alt="${ve(i)}"`;return e&&(r+=` title="${ve(e)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ve(t.text)}},pi=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},ge=class Bi{constructor(e){I(this,"options");I(this,"renderer");I(this,"textRenderer");this.options=e||$e,this.options.renderer=this.options.renderer||new wt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pi}static parse(e,i){return new Bi(i).parse(e)}static parseInline(e,i){return new Bi(i).parseInline(e)}parse(e){var s,n;let i="";for(let r=0;r<e.length;r++){let l=e[r];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let a=l;switch(a.type){case"space":i+=this.renderer.space(a);break;case"hr":i+=this.renderer.hr(a);break;case"heading":i+=this.renderer.heading(a);break;case"code":i+=this.renderer.code(a);break;case"table":i+=this.renderer.table(a);break;case"blockquote":i+=this.renderer.blockquote(a);break;case"list":i+=this.renderer.list(a);break;case"checkbox":i+=this.renderer.checkbox(a);break;case"html":i+=this.renderer.html(a);break;case"def":i+=this.renderer.def(a);break;case"paragraph":i+=this.renderer.paragraph(a);break;case"text":i+=this.renderer.text(a);break;default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,r;let s="";for(let l=0;l<e.length;l++){let a=e[l];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=o||"";continue}}let c=a;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},Je=(St=class{constructor(t){I(this,"options");I(this,"block");this.options=t||$e}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?pe.lex:pe.lexInline}provideParser(){return this.block?ge.parse:ge.parseInline}},I(St,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),I(St,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),St),He=new class{constructor(...t){I(this,"defaults",ni());I(this,"options",this.setOptions);I(this,"parse",this.parseMarkdown(!0));I(this,"parseInline",this.parseMarkdown(!1));I(this,"Parser",ge);I(this,"Renderer",wt);I(this,"TextRenderer",pi);I(this,"Lexer",pe);I(this,"Tokenizer",yt);I(this,"Hooks",Je);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let r of t)switch(i=i.concat(e.call(this,r)),r.type){case"table":{let l=r;for(let a of l.header)i=i.concat(this.walkTokens(a.tokens,e));for(let a of l.rows)for(let c of a)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=r;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=r;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{let c=l[a].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let r=e.renderers[n.name];r?e.renderers[n.name]=function(...l){let a=n.renderer.apply(this,l);return a===!1&&(a=r.apply(this,l)),a}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let r=e[n.level];r?r.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new wt(this.defaults);for(let r in i.renderer){if(!(r in n))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let l=r,a=i.renderer[l],c=n[l];n[l]=(...o)=>{let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new yt(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let l=r,a=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Je;for(let r in i.hooks){if(!(r in n))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let l=r,a=i.hooks[l],c=n[l];Je.passThroughHooks.has(r)?n[l]=o=>{if(this.defaults.async&&Je.passThroughHooksRespectAsync.has(r))return(async()=>{let h=await a.call(n,o);return c.call(n,h)})();let d=a.call(n,o);return c.call(n,d)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await a.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let d=a.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(l){let a=[];return a.push(r.call(this,l)),n&&(a=a.concat(n.call(this,l))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return pe.lex(t,e??this.defaults)}parser(t,e){return ge.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return r(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return r(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,a=await(n.hooks?await n.hooks.provideLexer():t?pe.lex:pe.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?ge.parse:ge.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(r);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?pe.lex:pe.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let a=(n.hooks?n.hooks.provideParser():t?ge.parse:ge.parseInline)(l,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(l){return r(l)}}}onError(t,e){return i=>{if(i.message+=`
1067
+ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+ve(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function F(t,e){return He.parse(t,e)}F.options=F.setOptions=function(t){return He.setOptions(t),F.defaults=He.defaults,ys(F.defaults),F},F.getDefaults=ni,F.defaults=$e,F.use=function(...t){return He.use(...t),F.defaults=He.defaults,ys(F.defaults),F},F.walkTokens=function(t,e){return He.walkTokens(t,e)},F.parseInline=He.parseInline,F.Parser=ge,F.parser=ge.parse,F.Renderer=wt,F.TextRenderer=pi,F.Lexer=pe,F.lexer=pe.lex,F.Tokenizer=yt,F.Hooks=Je,F.parse=F,F.options,F.setOptions,F.use,F.walkTokens,F.parseInline,ge.parse,pe.lex;var ml=()=>{let t,e=null,i;function s(){if(e&&!e.closed)e.focus();else{if(e=window.open("about:blank","reveal.js - Notes","width=1100,height=700"),e.marked=F,e.document.write(Ca),!e){alert("Speaker view popup failed to open. Please make sure popups are allowed and reopen the speaker view.");return}r()}}function n(h){e&&!e.closed?e.focus():(e=h,window.addEventListener("message",o),d())}function r(){let h=i.getConfig().url,g=typeof h=="string"?h:window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;t=setInterval(function(){e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"connect",state:i.getState(),url:g}),"*")},500),window.addEventListener("message",o)}function l(h,g,p){let u=i[h].apply(i,g);e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"return",result:u,callId:p}),"*")}function a(h){let g=i.getCurrentSlide(),p=g.querySelectorAll("aside.notes"),u=g.querySelector(".current-fragment"),b={namespace:"reveal-notes",type:"state",notes:"",markdown:!1,whitespace:"normal",state:i.getState()};if(g.hasAttribute("data-notes")&&(b.notes=g.getAttribute("data-notes"),b.whitespace="pre-wrap"),u){let k=u.querySelector("aside.notes");k?(b.notes=k.innerHTML,b.markdown=typeof k.getAttribute("data-markdown")=="string",p=null):u.hasAttribute("data-notes")&&(b.notes=u.getAttribute("data-notes"),b.whitespace="pre-wrap",p=null)}p&&p.length&&(p=Array.from(p).filter(k=>k.closest(".fragment")===null),b.notes=p.map(k=>k.innerHTML).join(`
1068
+ `),b.markdown=p[0]&&typeof p[0].getAttribute("data-markdown")=="string"),e.postMessage(JSON.stringify(b),"*")}function c(h){try{return window.location.origin===h.source.location.origin}catch{return!1}}function o(h){if(c(h))try{let g=JSON.parse(h.data);g&&g.namespace==="reveal-notes"&&g.type==="connected"?(clearInterval(t),d()):g&&g.namespace==="reveal-notes"&&g.type==="call"&&l(g.methodName,g.arguments,g.callId)}catch{}}function d(){i.on("slidechanged",a),i.on("fragmentshown",a),i.on("fragmenthidden",a),i.on("overviewhidden",a),i.on("overviewshown",a),i.on("paused",a),i.on("resumed",a),i.on("previewiframe",a),i.on("previewimage",a),i.on("previewvideo",a),i.on("closeoverlay",a),a()}return{id:"notes",init:function(h){i=h,/receiver/i.test(window.location.search)||(window.location.search.match(/(\?|\&)notes/gi)===null?window.addEventListener("message",g=>{if(!e&&typeof g.data=="string"){let p;try{p=JSON.parse(g.data)}catch{}p&&p.namespace==="reveal-notes"&&p.type==="heartbeat"&&n(g.source)}}):s(),i.addKeyBinding({keyCode:83,key:"S",description:"Speaker notes view"},function(){s()}))},open:s}},Oe=Dt(),Ds=16/9;function fl(t){let e=t.getSlidesElement();if(e)for(let i of e.querySelectorAll("section.stack[data-previous-indexv]"))i.removeAttribute("data-previous-indexv")}var vl=new Set([" ","Spacebar","ArrowRight","ArrowDown","PageDown"]),bl=new Set(["ArrowLeft","ArrowUp","PageUp"]);function kl(t){return vl.has(t.key)?1:bl.has(t.key)?-1:0}function yl(t){let e=(0,Oe.c)(4),i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:960,height:540},e[0]=i):i=e[0];let[s,n]=(0,T.useState)(i),r,l;return e[1]===t?(r=e[2],l=e[3]):(r=()=>{let a=t.current;if(!a)return;let c=new ResizeObserver(o=>{let{width:d,height:h}=o[0].contentRect;if(d<=0||h<=0)return;let g=Math.min(d,h*Ds),p=g/Ds;n({width:Math.round(g),height:Math.round(p)})});return c.observe(a),()=>c.disconnect()},l=[t],e[1]=t,e[2]=r,e[3]=l),(0,T.useEffect)(r,l),s}var _s=t=>{let e=(0,Oe.c)(6),{text:i}=t,s,n;if(e[0]!==i){let l=i.split(`
1069
+ `);s="notes",n=l.map((a,c)=>{let o=c===l.length-1;return a==="---"?(0,w.jsx)("hr",{},c):(0,w.jsxs)(T.Fragment,{children:[a,!o&&(0,w.jsx)("br",{})]},c)}),e[0]=i,e[1]=s,e[2]=n}else s=e[1],n=e[2];let r;return e[3]!==s||e[4]!==n?(r=(0,w.jsx)("aside",{className:s,children:n}),e[3]=s,e[4]=n,e[5]=r):r=e[5],r};Ii=function(t){var r;let{cells:e,cellId:i,showCodeOverrides:s,codeToggleEnabled:n}=t;return i==null||!n?!1:(((r=e.get(i))==null?void 0:r.showCode)??!1)||s.has(i)},Pi=function(t){var r;let{cell:e,noOutputIds:i,heldEditCellId:s,slideConfigs:n}=t;return i.has(e.id)||e.id===s?"skip":((r=n.get(e.id))==null?void 0:r.type)??"slide"},Ni=function(t){var C;let e=(0,Oe.c)(15),{activeCell:i,slideConfigs:s,noOutputIds:n}=t,r=(i==null?void 0:i.id)??null,l;e[0]!==i||e[1]!==n?(l=i!=null&&n.has(i.id),e[0]=i,e[1]=n,e[2]=l):l=e[2];let a=l,c=i!=null&&((C=s.get(i.id))==null?void 0:C.type)==="skip"||a,o;e[3]===r?o=e[4]:(o={activeCellId:r,cellId:null},e[3]=r,e[4]=o);let[d,h]=(0,T.useState)(o),g=d.cellId;d.activeCellId===r?a&&g!==r&&(g=r,h({activeCellId:r,cellId:g})):(g=a?r:null,h({activeCellId:r,cellId:g}));let p=!c&&r!=null&&g===r,u=p?g:null,b;e[5]===u?b=e[6]:(b={cellId:u,show:!0},e[5]=u,e[6]=b);let[k,N]=(0,T.useState)(b),$=k.show;k.cellId!==u&&($=!0,N({cellId:u,show:!0}));let L;e[7]===Symbol.for("react.memo_cache_sentinel")?(L=()=>N(wl),e[7]=L):L=e[7];let A=ke(L),S=c||p?i??null:null,B;return e[8]!==u||e[9]!==$||e[10]!==p||e[11]!==a||e[12]!==S||e[13]!==A?(B={parkedPreviewCell:S,isHeldEdit:p,isNoOutputPreview:a,heldEditCellId:u,heldShowsCode:$,toggleHeldShowsCode:A},e[8]=u,e[9]=$,e[10]=p,e[11]=a,e[12]=S,e[13]=A,e[14]=B):B=e[14],B};function wl(t){return{...t,show:!t.show}}function xl(t){switch(t??"center"){case"top":return{margin:"0 20px auto"};case"bottom":return{margin:"auto 20px 0"};default:return{margin:"auto 20px"}}}_t=t=>{let e=(0,Oe.c)(13),{cell:i}=t,s;e[0]!==i.id||e[1]!==i.name?(s=Li(i.id,i.name),e[0]=i.id,e[1]=i.name,e[2]=s):s=e[2];let n=i.id,r=i.status,l=i.output,a;e[3]===i?a=e[4]:(a=Ai(i,!1),e[3]=i,e[4]=a);let c;e[5]!==i.id||e[6]!==i.output||e[7]!==i.status||e[8]!==a?(c=(0,w.jsx)(Ci,{cellId:n,status:r,output:l,stale:a}),e[5]=i.id,e[6]=i.output,e[7]=i.status,e[8]=a,e[9]=c):c=e[9];let o;return e[10]!==s||e[11]!==c?(o=(0,w.jsx)("div",{className:"flex flex-col",...s,children:c}),e[10]=s,e[11]=c,e[12]=o):o=e[12],o};var js=t=>{let e=(0,Oe.c)(24),{subslide:i,resolveShowCode:s,isEditable:n,slideConfigs:r,contentStyle:l}=t,a,c,o,d,h,g;if(e[0]!==l||e[1]!==n||e[2]!==s||e[3]!==r||e[4]!==i){let{slideLevel:N,cumulativeByBlock:$}=Ta(i,r);o=N;let L=i.blocks.some(A=>A.cells.some(S=>s(S.id)));c=yr,a=ga,d=L?"mo-slide-content flex flex-col gap-3":"mo-slide-content",h=l,g=i.blocks.map((A,S)=>{let B=A.cells.map(C=>s(C.id)?n?(0,w.jsx)(bs,{cell:C},C.id):(0,w.jsx)(ks,{cell:C},C.id):(0,w.jsx)(_t,{cell:C},C.id));if(A.isFragment){let C=$.get(S);return(0,w.jsxs)(la,{as:"div",children:[B,C&&(0,w.jsx)(_s,{text:C})]},S)}return(0,w.jsx)(T.Fragment,{children:B},S)}),e[0]=l,e[1]=n,e[2]=s,e[3]=r,e[4]=i,e[5]=a,e[6]=c,e[7]=o,e[8]=d,e[9]=h,e[10]=g}else a=e[5],c=e[6],o=e[7],d=e[8],h=e[9],g=e[10];let p;e[11]!==d||e[12]!==h||e[13]!==g?(p=(0,w.jsx)("div",{className:d,style:h,children:g}),e[11]=d,e[12]=h,e[13]=g,e[14]=p):p=e[14];let u;e[15]!==a||e[16]!==p?(u=(0,w.jsx)(a,{children:p}),e[15]=a,e[16]=p,e[17]=u):u=e[17];let b;e[18]===o?b=e[19]:(b=o&&(0,w.jsx)(_s,{text:o}),e[18]=o,e[19]=b);let k;return e[20]!==c||e[21]!==u||e[22]!==b?(k=(0,w.jsxs)(c,{children:[u,b]}),e[20]=c,e[21]=u,e[22]=b,e[23]=k):k=e[23],k};jt=function(t){let{isNoOutputPreview:e,isEditable:i,showCode:s}=t;return e&&i||s};let qs;qs=t=>{let e=(0,Oe.c)(5),{cell:i,isNoOutputPreview:s,isEditable:n,showCode:r}=t;if(jt({isNoOutputPreview:s,isEditable:n,showCode:r})){let a;return e[0]!==i||e[1]!==n?(a=n?(0,w.jsx)(bs,{cell:i}):(0,w.jsx)(ks,{cell:i}),e[0]=i,e[1]=n,e[2]=a):a=e[2],a}let l;return e[3]===i?l=e[4]:(l=(0,w.jsx)(_t,{cell:i}),e[3]=i,e[4]=l),l},Sn=({slideCells:t,layout:e,setLayout:i,noOutputIds:s,activeIndex:n,onSlideChange:r,mode:l,configWidth:a,isEditable:c=!1})=>{var nt,Tt,Ct;let o=(0,T.useRef)(null),d=(0,T.useRef)(null),{width:h,height:g}=yl(o),p=io()!=null,u=Ri(Yl),b=(0,T.useMemo)(()=>u?[]:[ml],[u]),[k,N]=(0,T.useState)(()=>new Set),$=ao(t),L=!Gl()&&$,A=n==null?void 0:t[n],S=A??t.at(0),{parkedPreviewCell:B,isHeldEdit:C,isNoOutputPreview:_,heldEditCellId:O,heldShowsCode:M,toggleHeldShowsCode:Y}=Ni({activeCell:A,slideConfigs:e.cells,noOutputIds:s}),H=D=>Ii({cells:e.cells,cellId:D,showCodeOverrides:k,codeToggleEnabled:L}),v=(A==null?void 0:A.id)??(S==null?void 0:S.id),R=C?M:H(v),z=L&&v!=null&&(((nt=e.cells.get(v))==null?void 0:nt.showCode)??!1),Z=(0,T.useMemo)(()=>ma({cells:t,getType:D=>Pi({cell:D,noOutputIds:s,heldEditCellId:O,slideConfigs:e.cells})}),[t,s,e.cells,O]),{cellToTarget:te,targetToCellIndex:se}=(0,T.useMemo)(()=>fa({composition:Z,cells:t,getId:D=>D.id}),[Z,t]),Q=((Tt=e.deck)==null?void 0:Tt.transition)??"slide",W=xl((Ct=e.deck)==null?void 0:Ct.verticalAlign),ce=(0,T.useMemo)(()=>{let D=new URL(window.location.href);return D.searchParams.set("kiosk","true"),D.searchParams.set("show-chrome","false"),D.toString()},[]),et=(0,T.useMemo)(()=>({embedded:!0,width:h,height:g,center:!1,minScale:.2,maxScale:2,transition:Q,keyboardCondition:D=>!Ti.fromInput(D),url:ce,scrollActivationWidth:0}),[h,g,Q,ce]),le=ke(D=>{let K=ba({activeIndex:n,cells:t,cellToTarget:te,getId:Ae=>Ae.id}),ie=K&&ka(D.getIndices(),K);ie&&(D.slide(ie.h,ie.v,ie.f),fl(D))});(0,T.useEffect)(()=>{let D=d.current;D!=null&&le(D)},[n,te,t,le]);let Et=ke(()=>{if(!(v==null||z)){if(C){Y();return}(0,T.startTransition)(()=>N(D=>{let K=new Set(D);return K.has(v)?K.delete(v):K.add(v),K}))}}),gi=ke(D=>{var ie;le(D),L&&D.addKeyBinding({keyCode:67,key:"C",description:"Toggle code editor"},Et);let K=(ie=D.getSlidesElement())==null?void 0:ie.closest(".reveal");K instanceof HTMLElement&&(K.tabIndex=-1,K.focus({preventScroll:!0}))}),tt=ke(()=>{if(B!=null)return;let D=d.current;if(!D)return;let K=va(se,D.getIndices());K!=null&&(r==null||r(K))}),mi=ke(D=>{if(!B||n==null||Ti.fromInput(D))return;let K=kl(D);if(K===0)return;D.preventDefault(),D.stopPropagation();let ie=n+K;ie<0||ie>=t.length||(r==null||r(ie))}),Rt=ke(()=>{tt()});Ql(document,"keydown",mi,{capture:!0});let it=C?null:_?"Hidden as there is no output":"Skipped in presentation",At=C?M:H(B==null?void 0:B.id),st=jt({isNoOutputPreview:_,isEditable:c,showCode:At}),De=(0,w.jsx)("div",{ref:o,className:"h-full w-full min-w-0 flex items-center justify-center overflow-hidden",children:(0,w.jsxs)("div",{className:"group relative",style:{width:h,height:g},children:[(0,w.jsx)(fr,{deckRef:d,className:"aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",config:et,onReady:gi,onSlideChange:Rt,onFragmentShown:tt,onFragmentHidden:tt,plugins:b,children:Z.stacks.map((D,K)=>D.subslides.length===1?(0,w.jsx)(js,{subslide:D.subslides[0],resolveShowCode:H,isEditable:c,slideConfigs:e.cells,contentStyle:W},K):(0,w.jsx)(wr,{children:D.subslides.map((ie,Ae)=>(0,w.jsx)(js,{subslide:ie,resolveShowCode:H,isEditable:c,slideConfigs:e.cells,contentStyle:W},Ae))},K))}),B&&(0,w.jsxs)("div",{className:"absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden","aria-label":it??void 0,children:[it&&(0,w.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",children:[(0,w.jsx)(po,{className:"h-3.5 w-3.5"}),(0,w.jsx)("span",{children:it})]}),(0,w.jsx)("div",{className:"flex-1 overflow-auto flex",children:(0,w.jsx)("div",{className:st?"mo-slide-content flex flex-col gap-3":"mo-slide-content",style:W,children:(0,w.jsx)(qs,{cell:B,isNoOutputPreview:_,isEditable:c,showCode:At})})})]},B.id),(0,w.jsxs)("div",{className:"absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",children:[L&&(0,w.jsx)(yn,{content:z?"Code is always shown for this slide":R?"Hide code (C)":"Show code (C)",children:(0,w.jsx)(wn,{"data-testid":"marimo-plugin-slides-toggle-code",variant:"ghost",size:"icon",className:Ue("text-muted-foreground h-7 w-7",R&&"text-foreground bg-muted",z&&"opacity-50 cursor-not-allowed"),"aria-pressed":R,"aria-disabled":z,"aria-label":z?"Code always shown":R?"Hide code":"Show code",onClick:Et,children:(0,w.jsx)(ho,{className:"h-4 w-4"})})}),(0,w.jsx)(yn,{content:"Fullscreen (F)",children:(0,w.jsx)(wn,{"data-testid":"marimo-plugin-slides-fullscreen",variant:"ghost",size:"icon",className:"text-muted-foreground h-7 w-7","aria-label":"Enter fullscreen",onClick:()=>{var D,K;(K=(D=d.current)==null?void 0:D.getViewportElement())==null||K.requestFullscreen().catch(ie=>{Zl.error("Failed to request fullscreen",ie)})},children:(0,w.jsx)(so,{className:"h-4 w-4"})})})]})]})});return l==="read"?(0,w.jsx)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:De}):(0,w.jsxs)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:[(0,w.jsxs)(Ro,{direction:"vertical",autoSaveId:"marimo:slides:notes-panel",className:"flex-1 min-w-0",children:[(0,w.jsx)(xn,{defaultSize:92,minSize:60,children:De}),(0,w.jsx)(Ao,{className:"mo-slides-notes-resize",hitAreaMargins:{coarse:12,fine:4},disabled:p}),(0,w.jsx)(xn,{defaultSize:10,minSize:4,collapsible:!0,collapsedSize:4,children:(0,w.jsx)(Sa,{layout:e,setLayout:i,cellId:S==null?void 0:S.id})})]}),(0,w.jsx)(lo,{configWidth:a,layout:e,setLayout:i,activeConfigCell:S})]})}});export{_t as CellOutputBlock,Lo as __tla,Pi as deckSlideType,Sn as default,jt as parkedRendersSource,Ii as shouldShowCode,Ni as useParkedPreview};