slidev-theme-watabegg 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/README.ja.md +132 -0
  2. package/README.md +142 -0
  3. package/components/KaTexReveal.vue +64 -0
  4. package/components/QuestionList.vue +252 -0
  5. package/components/TextBox.vue +109 -0
  6. package/dist/404.html +22 -0
  7. package/dist/_redirects +1 -0
  8. package/dist/assets/404-DpjNfLw1.css +1 -0
  9. package/dist/assets/DrawingControls-Cxk9a9ub.css +1 -0
  10. package/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  11. package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  12. package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  13. package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  14. package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  15. package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  16. package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  17. package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  18. package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  19. package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  20. package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  21. package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  22. package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  23. package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  24. package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  25. package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  26. package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  27. package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  28. package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  29. package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  30. package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  31. package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  32. package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  33. package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  34. package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  35. package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  36. package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  37. package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  38. package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  39. package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  40. package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  41. package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  42. package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  43. package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  44. package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  45. package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  46. package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  47. package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  48. package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  49. package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  50. package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  51. package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  52. package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  53. package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  54. package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  55. package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  56. package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  57. package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  58. package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  59. package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  60. package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  61. package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  62. package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  63. package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  64. package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  65. package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  66. package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  67. package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  68. package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  69. package/dist/assets/KaTexReveal-CPYYcbYL.js +261 -0
  70. package/dist/assets/KaTexReveal-DIQR78zC.css +1 -0
  71. package/dist/assets/NoteDisplay-DcLBOPDP.css +1 -0
  72. package/dist/assets/QuestionList-C2CV4WSw.js +56 -0
  73. package/dist/assets/QuestionList-CJKXL5Yq.css +1 -0
  74. package/dist/assets/SlideWrapper-B94O8a9G.css +1 -0
  75. package/dist/assets/entry-DeH8BBA6.css +1 -0
  76. package/dist/assets/index-BVsB-lMI.js +76 -0
  77. package/dist/assets/index-FlrlSOFu.css +1 -0
  78. package/dist/assets/link-Vmiqc0hc.js +1 -0
  79. package/dist/assets/logo-BYkHSa_O.png +0 -0
  80. package/dist/assets/md-8VraByb9.js +1 -0
  81. package/dist/assets/md-Bby241ZI.js +1 -0
  82. package/dist/assets/md-BqJwdePd.js +1 -0
  83. package/dist/assets/md-C0a547wx.js +3 -0
  84. package/dist/assets/md-C3C29Y15.css +1 -0
  85. package/dist/assets/md-CBmwngYy.js +1 -0
  86. package/dist/assets/md-DrNACvG6.js +3 -0
  87. package/dist/assets/md-DyJRgKOq.css +1 -0
  88. package/dist/assets/md-FY1NEgjs.js +1 -0
  89. package/dist/assets/md-RVqvqjSV.js +1 -0
  90. package/dist/assets/md-Un85CPx3.js +1 -0
  91. package/dist/assets/md-fq9C6Jm7.js +1 -0
  92. package/dist/assets/md-lcsTx_QH.css +1 -0
  93. package/dist/assets/md-nHLnZfr4.js +1 -0
  94. package/dist/assets/md-nyxGgl0C.js +1 -0
  95. package/dist/assets/md-rpN_jFpy.css +1 -0
  96. package/dist/assets/md-tn0RQdqM.css +0 -0
  97. package/dist/assets/modules/file-saver-BQwH87cS.js +1 -0
  98. package/dist/assets/modules/shiki-CNnpvYpa.js +1 -0
  99. package/dist/assets/modules/shiki-CozCpemh.css +1 -0
  100. package/dist/assets/modules/unplugin-icons-D4kCmVGc.js +1 -0
  101. package/dist/assets/modules/vue--QWtT9ew.js +40 -0
  102. package/dist/assets/play-D_7yfuao.css +1 -0
  103. package/dist/assets/presenter-BM7ZLO4O.css +1 -0
  104. package/dist/assets/shortcuts-DMsk7WYF.css +1 -0
  105. package/dist/assets/slidev/404-DWvVMASK.js +1 -0
  106. package/dist/assets/slidev/CodeBlockWrapper.vue_vue_type_script_setup_true_lang-DTUx4GGs.js +1 -0
  107. package/dist/assets/slidev/DrawingControls-kHEnsAlc.js +1 -0
  108. package/dist/assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-Bci_r_Jk.js +1 -0
  109. package/dist/assets/slidev/DrawingLayer-BGgDMhMm.js +1 -0
  110. package/dist/assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-Di5pfAKC.js +1 -0
  111. package/dist/assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-B00W6JVQ.js +1 -0
  112. package/dist/assets/slidev/SlideWrapper-n2BtjyCi.js +1 -0
  113. package/dist/assets/slidev/context-Db_2Hcpr.js +1 -0
  114. package/dist/assets/slidev/default-By-tXFz1.js +1 -0
  115. package/dist/assets/slidev/entry-BWgjvGUN.js +1 -0
  116. package/dist/assets/slidev/md-wS_Ed_8x.js +1 -0
  117. package/dist/assets/slidev/notes-Dv602Bu1.js +1 -0
  118. package/dist/assets/slidev/overview-BDs3_v07.js +1 -0
  119. package/dist/assets/slidev/play-CQ4qi9O0.js +2 -0
  120. package/dist/assets/slidev/presenter-CA_kPq3V.js +1 -0
  121. package/dist/assets/slidev/shortcuts-nzRDDQcI.js +4 -0
  122. package/dist/assets/useThemePalette-CeNaXTPl.js +1 -0
  123. package/dist/index.html +22 -0
  124. package/example.md +191 -0
  125. package/global-bottom.vue +70 -0
  126. package/layouts/cover.vue +64 -0
  127. package/layouts/end.vue +33 -0
  128. package/layouts/image-scroll.vue +138 -0
  129. package/layouts/image.vue +22 -0
  130. package/layouts/two-cols.vue +23 -0
  131. package/package.json +43 -0
  132. package/setup/shiki.ts +11 -0
  133. package/setup/shortcuts.ts +18 -0
  134. package/slidev-theme-watabegg-1.0.0.tgz +0 -0
  135. package/styles/globals.css +160 -0
  136. package/styles/index.ts +5 -0
  137. package/styles/layout.css +142 -0
  138. package/utils/colors.ts +57 -0
  139. package/utils/link.ts +17 -0
  140. package/utils/render.ts +5 -0
  141. package/utils/useThemePalette.ts +49 -0
@@ -0,0 +1 @@
1
+ .katex-reveal[data-v-395f9f85]{vertical-align:middle}
@@ -0,0 +1 @@
1
+ .range[data-v-0478cff2]{-webkit-appearance:none;appearance:none;background:transparent}.range[data-v-0478cff2]::-webkit-slider-thumb{-webkit-appearance:none;height:100%;width:var(--thumb-width, .5rem)}.range[data-v-0478cff2]::-moz-range-thumb{height:100%;width:var(--thumb-width, .5rem)}.slidev-note :first-child{margin-top:0}
@@ -0,0 +1,56 @@
1
+ import{d as ze,z as Ae,a as _e,f as P,o as _,F as ve,aj as Ie,g as ie,i as ae,b as oe,m as Ce,av as Pe,T as Le,k as ce,e as Be}from"./modules/vue--QWtT9ew.js";import{u as qe}from"./slidev/context-Db_2Hcpr.js";import{_ as Ee}from"./KaTexReveal-CPYYcbYL.js";import{_ as Ze}from"./index-BVsB-lMI.js";function V(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var I=V();function fe(n){I=n}var q={exec:()=>null};function k(n,e=""){let r=typeof n=="string"?n:n.source,s={replace:(t,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(y.caret,"$1"),r=r.replace(t,l),s},getRegex:()=>new RegExp(r,e)};return s}var y={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,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ 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,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},je=/^(?:[ \t]*(?:\n|$))+/,De=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Me=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Qe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,J=/(?:[*+-]|\d{1,9}[.)])/,de=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xe=k(de).replace(/bull/g,J).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(),Ne=k(de).replace(/bull/g,J).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(),Y=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,We=/^[^\n]+/,ee=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Oe=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ee).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),He=k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,J).getRegex(),F="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",te=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Fe=k("^ {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",te).replace("tag",F).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),be=k(Y).replace("hr",E).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",F).getRegex(),Ge=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",be).getRegex(),re={blockquote:Ge,code:De,def:Oe,fences:Me,heading:Qe,hr:E,html:Fe,lheading:xe,list:He,newline:je,paragraph:be,table:q,text:We},he=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",F).getRegex(),Ke={...re,lheading:Ne,table:he,paragraph:k(Y).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",he).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",F).getRegex()},Xe={...re,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",te).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:q,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(Y).replace("hr",E).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",xe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ue=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ve=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,me=/^( {2,}|\\)\n(?!\s*$)/,Je=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,G=/[\p{P}\p{S}]/u,ne=/[\s\p{P}\p{S}]/u,we=/[^\s\p{P}\p{S}]/u,Ye=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ne).getRegex(),ye=/(?!~)[\p{P}\p{S}]/u,et=/(?!~)[\s\p{P}\p{S}]/u,tt=/(?:[^\s\p{P}\p{S}]|~)/u,rt=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,$e=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,nt=k($e,"u").replace(/punct/g,G).getRegex(),st=k($e,"u").replace(/punct/g,ye).getRegex(),Se="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",lt=k(Se,"gu").replace(/notPunctSpace/g,we).replace(/punctSpace/g,ne).replace(/punct/g,G).getRegex(),it=k(Se,"gu").replace(/notPunctSpace/g,tt).replace(/punctSpace/g,et).replace(/punct/g,ye).getRegex(),at=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,we).replace(/punctSpace/g,ne).replace(/punct/g,G).getRegex(),ot=k(/\\(punct)/,"gu").replace(/punct/g,G).getRegex(),ct=k(/^<(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(),ht=k(te).replace("(?:-->|$)","-->").getRegex(),ut=k("^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",ht).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),W=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pt=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",W).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Re=k(/^!?\[(label)\]\[(ref)\]/).replace("label",W).replace("ref",ee).getRegex(),Te=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",ee).getRegex(),gt=k("reflink|nolink(?!\\()","g").replace("reflink",Re).replace("nolink",Te).getRegex(),se={_backpedal:q,anyPunctuation:ot,autolink:ct,blockSkip:rt,br:me,code:Ve,del:q,emStrongLDelim:nt,emStrongRDelimAst:lt,emStrongRDelimUnd:at,escape:Ue,link:pt,nolink:Te,punctuation:Ye,reflink:Re,reflinkSearch:gt,tag:ut,text:Je,url:q},kt={...se,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",W).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W).getRegex()},K={...se,emStrongRDelimAst:it,emStrongLDelim:st,url:k(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ft={...K,br:k(me).replace("{2,}","*").getRegex(),text:k(K.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:re,gfm:Ke,pedantic:Xe},L={normal:se,gfm:K,breaks:ft,pedantic:kt},dt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ue=n=>dt[n];function R(n,e){if(e){if(y.escapeTest.test(n))return n.replace(y.escapeReplace,ue)}else if(y.escapeTestNoEncode.test(n))return n.replace(y.escapeReplaceNoEncode,ue);return n}function pe(n){try{n=encodeURI(n).replace(y.percentDecode,"%")}catch{return null}return n}function ge(n,e){let r=n.replace(y.findPipe,(i,l,a)=>{let o=!1,h=l;for(;--h>=0&&a[h]==="\\";)o=!o;return o?"|":" |"}),s=r.split(y.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(y.slashPipe,"|");return s}function B(n,e,r){let s=n.length;if(s===0)return"";let t=0;for(;t<s&&n.charAt(s-t-1)===e;)t++;return n.slice(0,s-t)}function xt(n,e){if(n.indexOf(e[1])===-1)return-1;let r=0;for(let s=0;s<n.length;s++)if(n[s]==="\\")s++;else if(n[s]===e[0])r++;else if(n[s]===e[1]&&(r--,r<0))return s;return r>0?-2:-1}function ke(n,e,r,s,t){let i=e.href,l=e.title||null,a=n[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:n[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:l,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,o}function bt(n,e,r){let s=n.match(r.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
3
+ `).map(i=>{let l=i.match(r.other.beginningSpace);if(l===null)return i;let[a]=l;return a.length>=t.length?i.slice(t.length):i}).join(`
4
+ `)}var O=class{options;rules;lexer;constructor(n){this.options=n||I}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let r=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:B(r,`
5
+ `)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let r=e[0],s=bt(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let s=B(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:B(e[0],`
6
+ `)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let r=B(e[0],`
7
+ `).split(`
8
+ `),s="",t="",i=[];for(;r.length>0;){let l=!1,a=[],o;for(o=0;o<r.length;o++)if(this.rules.other.blockquoteStart.test(r[o]))a.push(r[o]),l=!0;else if(!l)a.push(r[o]);else break;r=r.slice(o);let h=a.join(`
9
+ `),u=h.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
11
+ ${h}`:h,t=t?`${t}
12
+ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,i,!0),this.lexer.state.top=d,r.length===0)break;let p=i.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let w=p,b=w.raw+`
13
+ `+r.join(`
14
+ `),$=this.blockquote(b);i[i.length-1]=$,s=s.substring(0,s.length-w.raw.length)+$.raw,t=t.substring(0,t.length-w.text.length)+$.text;break}else if(p?.type==="list"){let w=p,b=w.raw+`
15
+ `+r.join(`
16
+ `),$=this.list(b);i[i.length-1]=$,s=s.substring(0,s.length-p.raw.length)+$.raw,t=t.substring(0,t.length-w.raw.length)+$.raw,r=b.substring(i.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:s,tokens:i,text:t}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r=e[1].trim(),s=r.length>1,t={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let i=this.rules.other.listItemRegex(r),l=!1;for(;n;){let o=!1,h="",u="";if(!(e=i.exec(n))||this.rules.block.hr.test(n))break;h=e[0],n=n.substring(h.length);let d=e[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),p=n.split(`
19
+ `,1)[0],w=!d.trim(),b=0;if(this.options.pedantic?(b=2,u=d.trimStart()):w?b=e[1].length+1:(b=e[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,u=d.slice(b),b+=e[1].length),w&&this.rules.other.blankLine.test(p)&&(h+=p+`
20
+ `,n=n.substring(p.length+1),o=!0),!o){let C=this.rules.other.nextBulletRegex(b),j=this.rules.other.hrRegex(b),D=this.rules.other.fencesBeginRegex(b),c=this.rules.other.headingBeginRegex(b),g=this.rules.other.htmlBeginRegex(b);for(;n;){let x=n.split(`
21
+ `,1)[0],m;if(p=x,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),m=p):m=p.replace(this.rules.other.tabCharGlobal," "),D.test(p)||c.test(p)||g.test(p)||C.test(p)||j.test(p))break;if(m.search(this.rules.other.nonSpaceChar)>=b||!p.trim())u+=`
22
+ `+m.slice(b);else{if(w||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||D.test(d)||c.test(d)||j.test(d))break;u+=`
23
+ `+p}!w&&!p.trim()&&(w=!0),h+=x+`
24
+ `,n=n.substring(x.length+1),d=m.slice(b)}}t.loose||(l?t.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(l=!0));let $=null,Z;this.options.gfm&&($=this.rules.other.listIsTask.exec(u),$&&(Z=$[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),t.items.push({type:"list_item",raw:h,task:!!$,checked:Z,loose:!1,text:u,tokens:[]}),t.raw+=h}let a=t.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o=0;o<t.items.length;o++)if(this.lexer.state.top=!1,t.items[o].tokens=this.lexer.blockTokens(t.items[o].text,[]),!t.loose){let h=t.items[o].tokens.filter(d=>d.type==="space"),u=h.length>0&&h.some(d=>this.rules.other.anyLine.test(d.raw));t.loose=u}if(t.loose)for(let o=0;o<t.items.length;o++)t.items[o].loose=!0;return t}}html(n){let e=this.rules.block.html.exec(n);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let r=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"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:s,title:t}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=ge(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?i.align.push("right"):this.rules.other.tableAlignCenter.test(l)?i.align.push("center"):this.rules.other.tableAlignLeft.test(l)?i.align.push("left"):i.align.push(null);for(let l=0;l<r.length;l++)i.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:i.align[l]});for(let l of t)i.rows.push(ge(l,i.header.length).map((a,o)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:i.align[o]})));return i}}lheading(n){let e=this.rules.block.lheading.exec(n);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(n){let e=this.rules.block.paragraph.exec(n);if(e){let r=e[1].charAt(e[1].length-1)===`
26
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);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(n){let e=this.rules.inline.link.exec(n);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let i=B(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{let i=xt(e[2],"()");if(i===-2)return;if(i>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],t="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(s);i&&(s=i[1],t=i[3])}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),ke(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[s.toLowerCase()];if(!t){let i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return ke(r,t,r[0],this.lexer,this.rules)}}emStrong(n,e,r=""){let s=this.rules.inline.emStrongLDelim.exec(n);if(!(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!r||this.rules.inline.punctuation.exec(r))){let t=[...s[0]].length-1,i,l,a=t,o=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*n.length+t);(s=h.exec(e))!=null;){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(l=[...i].length,s[3]||s[4]){a+=l;continue}else if((s[5]||s[6])&&t%3&&!((t+l)%3)){o+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+o);let u=[...s[0]][0].length,d=n.slice(0,t+s.index+u+l);if(Math.min(t,l)%2){let w=d.slice(1,-1);return{type:"em",raw:d,text:w,tokens:this.lexer.inlineTokens(w)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),t=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&t&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){let e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let r,s;return e[2]==="@"?(r=e[1],s="mailto:"+r):(r=e[1],s=r),{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},T=class X{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||I,this.options.tokenizer=this.options.tokenizer||new O,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 r={other:y,block:Q.normal,inline:L.normal};this.options.pedantic?(r.block=Q.pedantic,r.inline=L.pedantic):this.options.gfm&&(r.block=Q.gfm,this.options.breaks?r.inline=L.breaks:r.inline=L.gfm),this.tokenizer.rules=r}static get rules(){return{block:Q,inline:L}}static lex(e,r){return new X(r).lex(e)}static lexInline(e,r){return new X(r).inlineTokens(e)}lex(e){e=e.replace(y.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],s=!1){for(this.options.pedantic&&(e=e.replace(y.tabCharGlobal," ").replace(y.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(l=>(t=l.call({lexer:this},e,r))?(e=e.substring(t.raw.length),r.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let l=r.at(-1);t.raw.length===1&&l!==void 0?l.raw+=`
28
+ `:r.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let l=r.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=`
29
+ `+t.raw,l.text+=`
30
+ `+t.text,this.inlineQueue.at(-1).src=l.text):r.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let l=r.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=`
31
+ `+t.raw,l.text+=`
32
+ `+t.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title});continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),r.push(t);continue}let i=e;if(this.options.extensions?.startBlock){let l=1/0,a=e.slice(1),o;this.options.extensions.startBlock.forEach(h=>{o=h.call({lexer:this},a),typeof o=="number"&&o>=0&&(l=Math.min(l,o))}),l<1/0&&l>=0&&(i=e.substring(0,l+1))}if(this.state.top&&(t=this.tokenizer.paragraph(i))){let l=r.at(-1);s&&l?.type==="paragraph"?(l.raw+=`
33
+ `+t.raw,l.text+=`
34
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(t),s=i.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let l=r.at(-1);l?.type==="text"?(l.raw+=`
35
+ `+t.raw,l.text+=`
36
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(t);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let s=e,t=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)a.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,t.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(t=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,l="";for(;e;){i||(l=""),i=!1;let a;if(this.options.extensions?.inline?.some(h=>(a=h.call({lexer:this},e,r))?(e=e.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let h=r.at(-1);a.type==="text"&&h?.type==="text"?(h.raw+=a.raw,h.text+=a.text):r.push(a);continue}if(a=this.tokenizer.emStrong(e,s,l)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),r.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),r.push(a);continue}let o=e;if(this.options.extensions?.startInline){let h=1/0,u=e.slice(1),d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},u),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(o=e.substring(0,h+1))}if(a=this.tokenizer.inlineText(o)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(l=a.raw.slice(-1)),i=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=a.raw,h.text+=a.text):r.push(a);continue}if(e){let h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},H=class{options;parser;constructor(n){this.options=n||I}space(n){return""}code({text:n,lang:e,escaped:r}){let s=(e||"").match(y.notSpaceStart)?.[0],t=n.replace(y.endingNewline,"")+`
37
+ `;return s?'<pre><code class="language-'+R(s)+'">'+(r?t:R(t,!0))+`</code></pre>
38
+ `:"<pre><code>"+(r?t:R(t,!0))+`</code></pre>
39
+ `}blockquote({tokens:n}){return`<blockquote>
40
+ ${this.parser.parse(n)}</blockquote>
41
+ `}html({text:n}){return n}heading({tokens:n,depth:e}){return`<h${e}>${this.parser.parseInline(n)}</h${e}>
42
+ `}hr(n){return`<hr>
43
+ `}list(n){let e=n.ordered,r=n.start,s="";for(let l=0;l<n.items.length;l++){let a=n.items[l];s+=this.listitem(a)}let t=e?"ol":"ul",i=e&&r!==1?' start="'+r+'"':"";return"<"+t+i+`>
44
+ `+s+"</"+t+`>
45
+ `}listitem(n){let e="";if(n.task){let r=this.checkbox({checked:!!n.checked});n.loose?n.tokens[0]?.type==="paragraph"?(n.tokens[0].text=r+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&n.tokens[0].tokens[0].type==="text"&&(n.tokens[0].tokens[0].text=r+" "+R(n.tokens[0].tokens[0].text),n.tokens[0].tokens[0].escaped=!0)):n.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(n.tokens,!!n.loose),`<li>${e}</li>
46
+ `}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p>
47
+ `}table(n){let e="",r="";for(let t=0;t<n.header.length;t++)r+=this.tablecell(n.header[t]);e+=this.tablerow({text:r});let s="";for(let t=0;t<n.rows.length;t++){let i=n.rows[t];r="";for(let l=0;l<i.length;l++)r+=this.tablecell(i[l]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
48
+ <thead>
49
+ `+e+`</thead>
50
+ `+s+`</table>
51
+ `}tablerow({text:n}){return`<tr>
52
+ ${n}</tr>
53
+ `}tablecell(n){let e=this.parser.parseInline(n.tokens),r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+e+`</${r}>
54
+ `}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${R(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:r}){let s=this.parser.parseInline(r),t=pe(n);if(t===null)return s;n=t;let i='<a href="'+n+'"';return e&&(i+=' title="'+R(e)+'"'),i+=">"+s+"</a>",i}image({href:n,title:e,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let t=pe(n);if(t===null)return R(r);n=t;let i=`<img src="${n}" alt="${r}"`;return e&&(i+=` title="${R(e)}"`),i+=">",i}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:R(n.text)}},le=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}},z=class U{options;renderer;textRenderer;constructor(e){this.options=e||I,this.options.renderer=this.options.renderer||new H,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new le}static parse(e,r){return new U(r).parse(e)}static parseInline(e,r){return new U(r).parseInline(e)}parse(e,r=!0){let s="";for(let t=0;t<e.length;t++){let i=e[t];if(this.options.extensions?.renderers?.[i.type]){let a=i,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){s+=o||"";continue}}let l=i;switch(l.type){case"space":{s+=this.renderer.space(l);continue}case"hr":{s+=this.renderer.hr(l);continue}case"heading":{s+=this.renderer.heading(l);continue}case"code":{s+=this.renderer.code(l);continue}case"table":{s+=this.renderer.table(l);continue}case"blockquote":{s+=this.renderer.blockquote(l);continue}case"list":{s+=this.renderer.list(l);continue}case"html":{s+=this.renderer.html(l);continue}case"paragraph":{s+=this.renderer.paragraph(l);continue}case"text":{let a=l,o=this.renderer.text(a);for(;t+1<e.length&&e[t+1].type==="text";)a=e[++t],o+=`
55
+ `+this.renderer.text(a);r?s+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):s+=o;continue}default:{let a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return s}parseInline(e,r=this.renderer){let s="";for(let t=0;t<e.length;t++){let i=e[t];if(this.options.extensions?.renderers?.[i.type]){let a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){s+=a||"";continue}}let l=i;switch(l.type){case"escape":{s+=r.text(l);break}case"html":{s+=r.html(l);break}case"link":{s+=r.link(l);break}case"image":{s+=r.image(l);break}case"strong":{s+=r.strong(l);break}case"em":{s+=r.em(l);break}case"codespan":{s+=r.codespan(l);break}case"br":{s+=r.br(l);break}case"del":{s+=r.del(l);break}case"text":{s+=r.text(l);break}default:{let a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return s}},N=class{options;block;constructor(n){this.options=n||I}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}provideLexer(){return this.block?T.lex:T.lexInline}provideParser(){return this.block?z.parse:z.parseInline}},mt=class{defaults=V();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=z;Renderer=H;TextRenderer=le;Lexer=T;Tokenizer=O;Hooks=N;constructor(...n){this.use(...n)}walkTokens(n,e){let r=[];for(let s of n)switch(r=r.concat(e.call(this,s)),s.type){case"table":{let t=s;for(let i of t.header)r=r.concat(this.walkTokens(i.tokens,e));for(let i of t.rows)for(let l of i)r=r.concat(this.walkTokens(l.tokens,e));break}case"list":{let t=s;r=r.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(i=>{let l=t[i].flat(1/0);r=r.concat(this.walkTokens(l,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let i=e.renderers[t.name];i?e.renderers[t.name]=function(...l){let a=t.renderer.apply(this,l);return a===!1&&(a=i.apply(this,l)),a}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[t.level];i?i.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),s.extensions=e),r.renderer){let t=this.defaults.renderer||new H(this.defaults);for(let i in r.renderer){if(!(i in t))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let l=i,a=r.renderer[l],o=t[l];t[l]=(...h)=>{let u=a.apply(t,h);return u===!1&&(u=o.apply(t,h)),u||""}}s.renderer=t}if(r.tokenizer){let t=this.defaults.tokenizer||new O(this.defaults);for(let i in r.tokenizer){if(!(i in t))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let l=i,a=r.tokenizer[l],o=t[l];t[l]=(...h)=>{let u=a.apply(t,h);return u===!1&&(u=o.apply(t,h)),u}}s.tokenizer=t}if(r.hooks){let t=this.defaults.hooks||new N;for(let i in r.hooks){if(!(i in t))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let l=i,a=r.hooks[l],o=t[l];N.passThroughHooks.has(i)?t[l]=h=>{if(this.defaults.async)return Promise.resolve(a.call(t,h)).then(d=>o.call(t,d));let u=a.call(t,h);return o.call(t,u)}:t[l]=(...h)=>{let u=a.apply(t,h);return u===!1&&(u=o.apply(t,h)),u}}s.hooks=t}if(r.walkTokens){let t=this.defaults.walkTokens,i=r.walkTokens;s.walkTokens=function(l){let a=[];return a.push(i.call(this,l)),t&&(a=a.concat(t.call(this,l))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return T.lex(n,e??this.defaults)}parser(n,e){return z.parse(n,e??this.defaults)}parseMarkdown(n){return(e,r)=>{let s={...r},t={...this.defaults,...s},i=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&s.async===!1)return i(new 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 i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));t.hooks&&(t.hooks.options=t,t.hooks.block=n);let l=t.hooks?t.hooks.provideLexer():n?T.lex:T.lexInline,a=t.hooks?t.hooks.provideParser():n?z.parse:z.parseInline;if(t.async)return Promise.resolve(t.hooks?t.hooks.preprocess(e):e).then(o=>l(o,t)).then(o=>t.hooks?t.hooks.processAllTokens(o):o).then(o=>t.walkTokens?Promise.all(this.walkTokens(o,t.walkTokens)).then(()=>o):o).then(o=>a(o,t)).then(o=>t.hooks?t.hooks.postprocess(o):o).catch(i);try{t.hooks&&(e=t.hooks.preprocess(e));let o=l(e,t);t.hooks&&(o=t.hooks.processAllTokens(o)),t.walkTokens&&this.walkTokens(o,t.walkTokens);let h=a(o,t);return t.hooks&&(h=t.hooks.postprocess(h)),h}catch(o){return i(o)}}}onError(n,e){return r=>{if(r.message+=`
56
+ Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+R(r.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(r);throw r}}},v=new mt;function f(n,e){return v.parse(n,e)}f.options=f.setOptions=function(n){return v.setOptions(n),f.defaults=v.defaults,fe(f.defaults),f};f.getDefaults=V;f.defaults=I;f.use=function(...n){return v.use(...n),f.defaults=v.defaults,fe(f.defaults),f};f.walkTokens=function(n,e){return v.walkTokens(n,e)};f.parseInline=v.parseInline;f.Parser=z;f.parser=z.parse;f.Renderer=H;f.TextRenderer=le;f.Lexer=T;f.lexer=T.lex;f.Tokenizer=O;f.Hooks=N;f.parse=f;f.options;f.setOptions;f.use;f.walkTokens;f.parseInline;z.parse;T.lex;const wt=n=>({template:`<div class="inline-block">${f.parse(n)}</div>`}),yt={class:"item-content"},$t=["innerHTML"],St={key:0,class:"item-text"},Rt=ze({__name:"QuestionList",props:{items:{},styles:{default:()=>["decimal-circle","katakana-paren","lower-alpha-paren","decimal-dot"]},level:{default:0},start:{default:()=>[]}},setup(n){qe();const e=n,r=Ae(()=>e.level??0),s=[{start:"$$",end:"$$"},{start:"\\[",end:"\\]"},{start:"\\(",end:"\\)"}],t=c=>{const g=c.trim();for(const{start:x,end:m}of s)if(g.startsWith(x)&&g.endsWith(m))return g.slice(x.length,g.length-m.length).trim();return g},i=c=>{if(!c)return"";const g=c.trim();for(const{start:x,end:m}of s)if(g.startsWith(x)&&g.endsWith(m))return t(g);return""},l=c=>h(c)?!0:!!w(c).trim(),a=c=>typeof c.type!="string"?"":c.type.toLowerCase(),o=c=>typeof c=="object"?typeof c.formula=="string"&&c.formula.trim()?t(c.formula):(c.tex===!0||["katex","tex","math"].includes(a(c)))&&typeof c.text=="string"?t(c.text):i(c.text):i(c)||"",h=c=>!!o(c),u=c=>{if(typeof c=="object"&&typeof c.block=="boolean")return c.block;const x=(typeof c=="string"?c:typeof c.formula=="string"?c.formula:typeof c.text=="string"?c.text:"").trim();return x?x.startsWith("\\(")&&x.endsWith("\\)")||x.startsWith("$")&&x.endsWith("$")&&!x.startsWith("$$")?!1:(x.startsWith("$$")&&x.endsWith("$$")||x.startsWith("\\[")&&x.endsWith("\\]"),!0):!0},d=new Set(["text","items","label","block","type","tex","formula","attrs"]),p=c=>{if(typeof c!="object")return{};if(c.attrs&&typeof c.attrs=="object")return c.attrs;const g={};return Object.keys(c).forEach(x=>{d.has(x)||(g[x]=c[x])}),g},w=c=>(typeof c=="string"?c:c.text)||"",b=c=>typeof c=="object"&&Array.isArray(c.items),$=c=>typeof c=="object"&&Array.isArray(c.items)?c.items:[],Z=c=>{const g=e.items[c];if(typeof g=="object"&&typeof g.label=="string")return g.label;const x=e.styles[r.value]||"decimal-dot",[m,M]=x.split("-"),A=(e.start[r.value]?typeof e.start[r.value]=="number"?e.start[r.value]-1:String(e.start[r.value]).charCodeAt(0)-97:0)+c;let S="";switch(m){case"hiragana":S=j(A);break;case"katakana":S=C(A);break;case"kanji":S=D(A+1);break;case"upperalpha":S=String.fromCharCode(65+A);break;case"loweralpha":S=String.fromCharCode(97+A);break;case"decimal":S=(A+1).toString();break;case"none":return"";default:S=(A+1).toString()}switch(M){case"circle":return`&#x${(9311+A+1).toString(16)};`;case"square":return`[${S}]`;case"paren":return`(${S})`;case"dot":return`${S}.`;case"q":return`問${S}`;case"big-q":return`大問${S}`;case"none":return"";default:return S}},C=c=>{const g="アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン";return g[c%g.length]},j=c=>{const g="あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん";return g[c%g.length]},D=c=>{const g=["一","二","三","四","五","六","七","八","九","十"];return c<=10?g[c-1]:c<=19?"十"+g[c-11]:c.toString()};return(c,g)=>{const x=_e("QuestionList",!0);return _(),P("div",{class:"question-list",style:ce({"--level":r.value})},[(_(!0),P(ve,null,Ie(c.items,(m,M)=>(_(),P("div",{key:M,class:"question-item"},[ie("div",yt,[ie("span",{class:"item-label",innerHTML:Z(M)},null,8,$t),l(m)?(_(),P("span",St,[h(m)?(_(),oe(Ee,Ce({key:0,formula:o(m),block:u(m)},{ref_for:!0},p(m)),null,16,["formula","block"])):(_(),oe(Pe(Le(wt)(w(m))),{key:1}))])):ae("v-if",!0)]),b(m)?(_(),P("div",{key:0,class:"sub-list",style:ce({marginTop:w(m)?"1rem":"0"})},[Be(x,{items:$(m),styles:c.styles,level:r.value+1,start:Array.isArray(c.start)?c.start:[]},null,8,["items","styles","level","start"])],4)):ae("v-if",!0)]))),128))],4)}}}),It=Ze(Rt,[["__scopeId","data-v-2a9b3587"]]);export{It as _};
@@ -0,0 +1 @@
1
+ .question-list[data-v-2a9b3587]{padding-left:calc(var(--level, 0) * 2.5rem)}.question-item[data-v-2a9b3587]{margin-bottom:.6rem}.item-content[data-v-2a9b3587]{display:flex;align-items:baseline;line-height:1.6}.item-label[data-v-2a9b3587]{font-weight:700;color:var(--slidev-theme-primary);margin-right:.75em;min-width:2em;text-align:right}.item-text[data-v-2a9b3587]{flex:1}.item-text[data-v-2a9b3587] p{margin:0}.sub-list[data-v-2a9b3587]{margin-top:1rem}
@@ -0,0 +1 @@
1
+ .slidev-slide-container[data-v-709577ad]{position:relative;width:100%;height:100%;overflow:hidden}.slidev-slide-content[data-v-709577ad]{position:absolute;left:50%;top:50%;overflow:hidden;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .slidev-slide-content[data-v-709577ad]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.exam-prep-footer[data-v-47481d0d]{position:fixed;bottom:0;left:0;right:0;height:3rem;display:flex;justify-content:space-between;align-items:center;padding:0 2rem;background:var(--slidev-theme-background);border-top:1px solid var(--slidev-theme-border);font-size:.9rem;color:var(--slidev-theme-text-secondary);z-index:20}.footer-left[data-v-47481d0d],.footer-right[data-v-47481d0d]{display:flex;flex-direction:column;align-items:center}.disable-view-transition[data-v-df971cfb] *{view-transition-name:none!important}.slidev-page[data-v-df971cfb]{position:absolute;inset:0}
@@ -0,0 +1 @@
1
+ .page-link[data-v-b0a1a229]{height:10rem;min-width:10rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;border-radius:.25rem;background-color:#9ca3af1a;padding:1rem}.page-link[data-v-b0a1a229]:hover{background-color:#9ca3af33}.page-link>svg[data-v-b0a1a229]{font-size:3em;opacity:.5}
@@ -0,0 +1,76 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/md-C0a547wx.js","assets/slidev/CodeBlockWrapper.vue_vue_type_script_setup_true_lang-DTUx4GGs.js","assets/modules/unplugin-icons-D4kCmVGc.js","assets/modules/vue--QWtT9ew.js","assets/slidev/context-Db_2Hcpr.js","assets/useThemePalette-CeNaXTPl.js","assets/modules/shiki-CNnpvYpa.js","assets/modules/shiki-CozCpemh.css","assets/md-DyJRgKOq.css","assets/md-DrNACvG6.js","assets/md-tn0RQdqM.css","assets/md-RVqvqjSV.js","assets/QuestionList-C2CV4WSw.js","assets/KaTexReveal-CPYYcbYL.js","assets/KaTexReveal-DIQR78zC.css","assets/QuestionList-CJKXL5Yq.css","assets/slidev/default-By-tXFz1.js","assets/md-nHLnZfr4.js","assets/md-fq9C6Jm7.js","assets/slidev/md-wS_Ed_8x.js","assets/md-FY1NEgjs.js","assets/md-lcsTx_QH.css","assets/md-Un85CPx3.js","assets/md-8VraByb9.js","assets/md-nyxGgl0C.js","assets/md-BqJwdePd.js","assets/md-CBmwngYy.js","assets/md-rpN_jFpy.css","assets/md-Bby241ZI.js","assets/link-Vmiqc0hc.js","assets/md-C3C29Y15.css","assets/slidev/entry-BWgjvGUN.js","assets/entry-DeH8BBA6.css","assets/slidev/overview-BDs3_v07.js","assets/slidev/NoteDisplay.vue_vue_type_style_index_0_lang-B00W6JVQ.js","assets/NoteDisplay-DcLBOPDP.css","assets/slidev/SlideWrapper-n2BtjyCi.js","assets/SlideWrapper-B94O8a9G.css","assets/slidev/IconButton.vue_vue_type_script_setup_true_lang-Di5pfAKC.js","assets/slidev/notes-Dv602Bu1.js","assets/slidev/presenter-CA_kPq3V.js","assets/slidev/shortcuts-nzRDDQcI.js","assets/shortcuts-DMsk7WYF.css","assets/slidev/DrawingControls.vue_vue_type_style_index_0_lang-Bci_r_Jk.js","assets/DrawingControls-Cxk9a9ub.css","assets/presenter-BM7ZLO4O.css","assets/slidev/play-CQ4qi9O0.js","assets/play-D_7yfuao.css","assets/slidev/404-DWvVMASK.js","assets/404-DpjNfLw1.css"])))=>i.map(i=>d[i]);
2
+ import{z as k,A as Gt,B as so,C as oo,D as hs,r as O,E as He,G as ro,H as io,I as ao,J as ds,K as ee,L as ps,M as q,N as lo,O as co,f as Qt,o as mt,t as uo,d as gs,i as fo,F as ho,g as Ln,P as I,Q as dn,R as po,S as Ct,p as go,T as mo,U as yo,V as vo,W as bo,X as wo,Y as F,Z as ko,_ as ms,$ as Et,a0 as _o,a1 as ys,a2 as So,a3 as Mo,a4 as Oo,a5 as vs,b as Co,a as Eo,a6 as To,a7 as Po,a8 as Lo,a9 as $o,aa as Ao,ab as Ro,ac as No,c as jo}from"./modules/vue--QWtT9ew.js";import{T as Do}from"./modules/shiki-CNnpvYpa.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function t(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=t(o);fetch(o.href,r)}})();const $={theme:"./",title:"Theme Demo",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:"local",monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],download:!1,export:{},info:!1,highlighter:"shiki",twoslash:!0,lineNumbers:!1,colorSchema:"light",routerMode:"history",aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:"",selectable:!1,themeConfig:{},fonts:{sans:['"M PLUS 2"',"ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:['"Fira Code"',"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],webfonts:["M PLUS 2","Fira Code"],provider:"google",local:[],italic:!1,weights:["200","400","600"]},favicon:"https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png",drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:"https://www.plantuml.com/plantuml",codeCopy:!0,author:"watabegg",record:"dev",css:"unocss",presenter:!0,browserExporter:"dev",htmlAttrs:{},transition:null,editor:!0,contextMenu:null,wakeLock:!0,mdc:!1,seoMeta:{},background:"#FFFFFF",subtitle:"slidevのテーマ watabeggの紹介",date:"2025/08/03",link:"https://example.com",color:"blue",slidesTitle:"Theme Demo - Slidev"};function Zt(n,e,t){return Math.min(t,Math.max(e,n))}function Io(...n){return xo(n).reduce((e,t)=>e+t,0)}function Ho(n){return n=n??[],Array.isArray(n)?n:[n]}function xo(n){return Ho(n).flat(1)}function Fo(n){return Array.from(new Set(n))}function $n(...n){let e,t,s;n.length===1?(e=0,s=1,[t]=n):[e,t,s=1]=n;const o=[];let r=e;for(;r<t;)o.push(r),r+=s||1;return o}function Vo(n){return n!=null}function zo(n,e){return Object.fromEntries(Object.entries(n).map(([t,s])=>e(t,s)).filter(Vo))}const ol="build",bs=k(()=>$.aspectRatio),ws=k(()=>$.canvasWidth),Bo=k(()=>Math.ceil(ws.value/bs.value)),Wo=k(()=>zo($.themeConfig||{},(n,e)=>[`--slidev-theme-${n}`,e])),Dt=$.slidesTitle,rl="/",qo=[],Uo=new Set(["link","style","script","noscript"]),Jo=new Set(["title","titleTemplate","script","style","noscript"]),An=new Set(["base","meta","link","style","script","noscript"]),Ko=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Go=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Qo=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Zo=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Yo=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function Yt(n,e={},t){for(const s in n){const o=n[s],r=t?`${t}:${s}`:s;typeof o=="object"&&o!==null?Yt(o,e,r):typeof o=="function"&&(e[r]=o)}return e}const Xo={run:n=>n()},er=()=>Xo,ks=typeof console.createTask<"u"?console.createTask:er;function tr(n,e){const t=e.shift(),s=ks(t);return n.reduce((o,r)=>o.then(()=>s.run(()=>r(...e))),Promise.resolve())}function nr(n,e){const t=e.shift(),s=ks(t);return Promise.all(n.map(o=>s.run(()=>o(...e))))}function It(n,e){for(const t of[...n])t(e)}class sr{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,s={}){if(!e||typeof t!="function")return()=>{};const o=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!s.allowDeprecated){let i=r.message;i||(i=`${o} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let s,o=(...r)=>(typeof s=="function"&&s(),s=void 0,o=void 0,t(...r));return s=this.hook(e,o),s}removeHook(e,t){if(this._hooks[e]){const s=this._hooks[e].indexOf(t);s!==-1&&this._hooks[e].splice(s,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const s=this._hooks[e]||[];delete this._hooks[e];for(const o of s)this.hook(e,o)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Yt(e),s=Object.keys(t).map(o=>this.hook(o,t[o]));return()=>{for(const o of s.splice(0,s.length))o()}}removeHooks(e){const t=Yt(e);for(const s in t)this.removeHook(s,t[s])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(tr,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(nr,e,...t)}callHookWith(e,t,...s){const o=this._before||this._after?{name:t,args:s,context:{}}:void 0;this._before&&It(this._before,o);const r=e(t in this._hooks?[...this._hooks[t]]:[],s);return r instanceof Promise?r.finally(()=>{this._after&&o&&It(this._after,o)}):(this._after&&o&&It(this._after,o),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}}function or(){return new sr}const rr=["name","property","http-equiv"],ir=new Set(["viewport","description","keywords","robots"]);function _s(n){const e=n.split(":");return e.length?Yo.has(e[1]):!1}function Xt(n){const{props:e,tag:t}=n;if(Go.has(t))return t;if(t==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(n.tag==="meta"){for(const s of rr)if(e[s]!==void 0){const o=e[s],r=o.includes(":"),i=ir.has(o),l=!(r||i)&&n.key?`:key:${n.key}`:"";return`${t}:${o}${l}`}}if(n.key)return`${t}:key:${n.key}`;if(e.id)return`${t}:id:${e.id}`;if(Jo.has(t)){const s=n.textContent||n.innerHTML;if(s)return`${t}:content:${s}`}}function Rn(n){const e=n._h||n._d;if(e)return e;const t=n.textContent||n.innerHTML;return t||`${n.tag}:${Object.entries(n.props).map(([s,o])=>`${s}:${String(o)}`).join(",")}`}function yt(n,e,t){typeof n==="function"&&(!t||t!=="titleTemplate"&&!(t[0]==="o"&&t[1]==="n"))&&(n=n());let o;if(e&&(o=e(t,n)),Array.isArray(o))return o.map(r=>yt(r,e));if(o?.constructor===Object){const r={};for(const i of Object.keys(o))r[i]=yt(o[i],e,i);return r}return o}function ar(n,e){const t=n==="style"?new Map:new Set;function s(o){const r=o.trim();if(r)if(n==="style"){const[i,...a]=r.split(":").map(l=>l.trim());i&&a.length&&t.set(i,a.join(":"))}else r.split(" ").filter(Boolean).forEach(i=>t.add(i))}return typeof e=="string"?n==="style"?e.split(";").forEach(s):s(e):Array.isArray(e)?e.forEach(o=>s(o)):e&&typeof e=="object"&&Object.entries(e).forEach(([o,r])=>{r&&r!=="false"&&(n==="style"?t.set(o.trim(),r):s(o))}),t}function Ss(n,e){return n.props=n.props||{},e?n.tag==="templateParams"?(n.props=e,n):(Object.entries(e).forEach(([t,s])=>{if(s===null){n.props[t]=null;return}if(t==="class"||t==="style"){n.props[t]=ar(t,s);return}if(Qo.has(t)){if(["textContent","innerHTML"].includes(t)&&typeof s=="object"){let i=e.type;if(e.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;e.type=i,n.props.type=i,n[t]=JSON.stringify(s)}else n[t]=s;return}const o=String(s),r=t.startsWith("data-");o==="true"||o===""?n.props[t]=r?o:!0:!s&&r&&o==="false"?n.props[t]="false":s!==void 0&&(n.props[t]=s)}),n):n}function lr(n,e){const t=typeof e=="object"&&typeof e!="function"?e:{[n==="script"||n==="noscript"||n==="style"?"innerHTML":"textContent"]:e},s=Ss({tag:n,props:{}},t);return s.key&&Uo.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(o=>({...s,props:{...s.props,content:o}})):s}function cr(n,e){if(!n)return[];typeof n=="function"&&(n=n());const t=(o,r)=>{for(let i=0;i<e.length;i++)r=e[i](o,r);return r};n=t(void 0,n);const s=[];return n=yt(n,t),Object.entries(n||{}).forEach(([o,r])=>{if(r!==void 0)for(const i of Array.isArray(r)?r:[r])s.push(lr(o,i))}),s.flat()}const Nn=(n,e)=>n._w===e._w?n._p-e._p:n._w-e._w,jn={base:-10,title:10},ur={critical:-8,high:-1,low:2},Dn={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},fr=/@import/,ze=n=>n===""||n===!0;function hr(n,e){if(typeof e.tagPriority=="number")return e.tagPriority;let t=100;const s=ur[e.tagPriority]||0,o=n.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Dn;if(e.tag in jn)t=jn[e.tag];else if(e.tag==="meta"){const r=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;r&&(t=Dn.meta[r])}else e.tag==="link"&&e.props.rel?t=o.link[e.props.rel]:e.tag==="script"?ze(e.props.async)?t=o.script.async:e.props.src&&!ze(e.props.defer)&&!ze(e.props.async)&&e.props.type!=="module"&&!e.props.type?.endsWith("json")?t=o.script.sync:ze(e.props.defer)&&e.props.src&&!ze(e.props.async)&&(t=o.script.defer):e.tag==="style"&&(t=e.innerHTML&&fr.test(e.innerHTML)?o.style.imported:o.style.sync);return(t||100)+s}function In(n,e){const t=typeof e=="function"?e(n):e,s=t.key||String(n.plugins.size+1);n.plugins.get(s)||(n.plugins.set(s,t),n.hooks.addHooks(t.hooks||{}))}function dr(n={}){const e=or();e.addHooks(n.hooks||{});const t=!n.document,s=new Map,o=new Map,r=new Set,i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:n,hooks:e,ssr:t,entries:s,headEntries(){return[...s.values()]},use:a=>In(i,a),push(a,l){const c={...l||{}};delete c.head;const f=c._index??i._entryCount++,d={_i:f,input:a,options:c},h={_poll(u=!1){i.dirty=!0,!u&&r.add(f),e.callHook("entries:updated",i)},dispose(){s.delete(f)&&i.invalidate()},patch(u){(!c.mode||c.mode==="server"&&t||c.mode==="client"&&!t)&&(d.input=u,s.set(f,d),h._poll())}};return h.patch(a),h},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await e.callHook("entries:resolve",a);r.size;){const h=r.values().next().value;r.delete(h);const u=s.get(h);if(u){const g={tags:cr(u.input,n.propResolvers||[]).map(p=>Object.assign(p,u.options)),entry:u};await e.callHook("entries:normalize",g),u._tags=g.tags.map((p,m)=>(p._w=hr(i,p),p._p=(u._i<<10)+m,p._d=Xt(p),p))}}let l=!1;a.entries.flatMap(h=>(h._tags||[]).map(u=>({...u,props:{...u.props}}))).sort(Nn).reduce((h,u)=>{const g=String(u._d||u._p);if(!h.has(g))return h.set(g,u);const p=h.get(g);if((u?.tagDuplicateStrategy||(Zo.has(u.tag)?"merge":null)||(u.key&&u.key===p.key?"merge":null))==="merge"){const y={...p.props};Object.entries(u.props).forEach(([v,b])=>y[v]=v==="style"?new Map([...p.props.style||new Map,...b]):v==="class"?new Set([...p.props.class||new Set,...b]):b),h.set(g,{...u,props:y})}else u._p>>10===p._p>>10&&u.tag==="meta"&&_s(g)?(h.set(g,Object.assign([...Array.isArray(p)?p:[p],u],u)),l=!0):(u._w===p._w?u._p>p._p:u?._w<p?._w)&&h.set(g,u);return h},a.tagMap);const c=a.tagMap.get("title"),f=a.tagMap.get("titleTemplate");if(i._title=c?.textContent,f){const h=f?.textContent;if(i._titleTemplate=h,h){let u=typeof h=="function"?h(c?.textContent):h;typeof u=="string"&&!i.plugins.has("template-params")&&(u=u.replace("%s",c?.textContent||"")),c?u===null?a.tagMap.delete("title"):a.tagMap.set("title",{...c,textContent:u}):(f.tag="title",f.textContent=u)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(Nn)),await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),await e.callHook("tags:afterResolve",a);const d=[];for(const h of a.tags){const{innerHTML:u,tag:g,props:p}=h;if(Ko.has(g)&&!(Object.keys(p).length===0&&!h.innerHTML&&!h.textContent)&&!(g==="meta"&&!p.content&&!p["http-equiv"]&&!p.charset)){if(g==="script"&&u){if(p.type?.endsWith("json")){const m=typeof u=="string"?u:JSON.stringify(u);h.innerHTML=m.replace(/</g,"\\u003C")}else typeof u=="string"&&(h.innerHTML=u.replace(new RegExp(`</${g}`,"g"),`<\\/${g}`));h._d=Xt(h)}d.push(h)}}return d},invalidate(){for(const a of s.values())r.add(a._i);i.dirty=!0,e.callHook("entries:updated",i)}};return(n?.plugins||[]).forEach(a=>In(i,a)),i.hooks.callHook("init",i),n.init?.forEach(a=>a&&i.push(a)),i}const pr=(n,e)=>so(e)?Gt(e):e,Ms="usehead";function gr(n){return{install(t){t.config.globalProperties.$unhead=n,t.config.globalProperties.$head=n,t.provide(Ms,n)}}.install}function mr(){if(oo()){const n=hs(Ms);if(!n)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return n}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function yr(n,e={}){const t=e.head||mr();return t.ssr?t.push(n||{},e):vr(t,n,e)}function vr(n,e,t={}){const s=O(!1);let o;return He(()=>{const i=s.value?{}:yt(e,pr);o?o.patch(i):o=n.push(i,t)}),ds()&&(ro(()=>{o.dispose()}),io(()=>{s.value=!0}),ao(()=>{s.value=!1})),o}function en(n){if(n===!1||n==="false")return null;if(n==null||n===!0||n==="true")return"+1";if(typeof n=="string"&&"+-".includes(n[0]))return n;const e=+n;return Number.isNaN(e)?(console.error(`Invalid "at" prop value: ${n}`),null):e<=0?(console.warn(`[Slidev] "at" prop value must be greater than 0, but got ${n}, has been set to 1`),1):e}function br(n){return Array.isArray(n)?[en(n[0]),en(n[1])]:null}function Os(n,e=0,t){const s=O(!1);let o=new Map,r=new Map;const i={get current(){return Zt(+n.value,e,i.total)},set current(a){n.value=s.value?Zt(a,e,i.total):a},clicksStart:e,get relativeSizeMap(){return o},get maxMap(){return r},get isMounted(){return s.value},setup(){ps(()=>{s.value=!0,r=q(r),lo(n)||(i.current=n.value)}),co(()=>{s.value=!1,o=new Map,r=new Map})},calculateSince(a,l=1){const c=en(a);if(c==null)return null;let f,d,h;if(typeof c=="string"){const u=i.currentOffset,g=+c;f=u+g,d=u+g+l-1,h=g+l-1}else f=c,d=c+l-1,h=0;return{start:f,end:+Number.POSITIVE_INFINITY,max:d,delta:h,currentOffset:k(()=>i.current-f),isCurrent:k(()=>i.current===f),isActive:k(()=>i.current>=f)}},calculateRange(a){const l=br(a);if(l==null)return null;const[c,f]=l;let d,h,u;return typeof c=="string"?(d=i.currentOffset+ +c,u=+c):(d=c,u=0),typeof f=="string"?(h=d+ +f,u+=+f):h=f,{start:d,end:h,max:h,delta:u,currentOffset:k(()=>i.current-d),isCurrent:k(()=>i.current===d),isActive:k(()=>d<=i.current&&i.current<h)}},calculate(a){return Array.isArray(a)?i.calculateRange(a):i.calculateSince(a)},register(a,l){if(!l)return;const{delta:c,max:f}=l;o.set(a,c),r.set(a,f)},unregister(a){o.delete(a),r.delete(a)},get currentOffset(){return Io(...o.values())},get total(){return t??(s.value?Math.max(0,...r.values()):0)}};return i}function wr(n,e=0){const t=n?.meta.slide?.frontmatter.clicksStart??0,s=O(Math.max(Gt(e),t));return ee(()=>Gt(e),o=>{s.value=Math.max(o,t)}),Os(s,t,n?.meta?.clicks)}const kr="modulepreload",_r=function(n){return"/"+n},Hn={},R=function(e,t,s){let o=Promise.resolve();if(t&&t.length>0){let l=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");o=l(t.map(c=>{if(c=_r(c),c in Hn)return;Hn[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":kr,f||(h.as="script"),h.crossOrigin="",h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),f)return new Promise((u,g)=>{h.addEventListener("load",u),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},Sr=(n,e)=>{const t=n.__vccOpts||n;for(const[s,o]of e)t[s]=o;return t},Mr={},Or={class:"px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono"};function Cr(n,e){return mt(),Qt("div",Or,uo("Failed to fetch this slide. Please check your network connection."))}const U=Sr(Mr,[["render",Cr]]),Er={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},Tr=gs({__name:"SlideLoading",setup(n){const e=O(!1);return ps(()=>{setTimeout(()=>{e.value=!0},200)}),(t,s)=>(mt(),Qt("div",Er,[e.value?(mt(),Qt(ho,{key:0},[s[0]||(s[0]=Ln("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1)),s[1]||(s[1]=Ln("div",null,"Loading slide...",-1))],64)):fo("v-if",!0)]))}}),Pr={theme:"./",title:"Theme Demo",subtitle:"slidevのテーマ watabeggの紹介",author:"watabegg",date:"2025/08/03",link:"https://example.com",color:"blue"},he=I(Pr),Lr=q({get layout(){return he.layout},get transition(){return he.transition},get class(){return he.class},get clicks(){return he.clicks},get name(){return he.name},get preload(){return he.preload},slide:{content:"",revision:"gxagt8",frontmatterRaw:`theme: ./
3
+ title: Theme Demo
4
+ subtitle: slidevのテーマ watabeggの紹介
5
+ author: watabegg
6
+ date: '2025/08/03'
7
+ link: 'https://example.com'
8
+ color: blue
9
+ `,note:"",title:"Theme Demo",index:0,noteHTML:"",raw:"",frontmatter:he,filepath:"",start:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),$r={layout:"two-cols",title:"2カラムレイアウト"},de=I($r),Ar=q({get layout(){return de.layout},get transition(){return de.transition},get class(){return de.class},get clicks(){return de.clicks},get name(){return de.name},get preload(){return de.preload},slide:{content:"",revision:"nmzfos",frontmatterRaw:`layout: two-cols
10
+ title: 2カラムレイアウト
11
+ `,note:"",title:"2カラムレイアウト",index:1,noteHTML:"",raw:"",frontmatter:de,filepath:"",start:28,id:1,no:2},__clicksContext:null,__preloaded:!1}),Rr={},pe=I(Rr),Nr=q({get layout(){return pe.layout},get transition(){return pe.transition},get class(){return pe.class},get clicks(){return pe.clicks},get name(){return pe.name},get preload(){return pe.preload},slide:{content:"",revision:"-w4foa1",note:"",title:"QuestionList 基本",level:1,index:2,noteHTML:"",raw:"",frontmatter:pe,filepath:"",start:51,id:2,no:3},__clicksContext:null,__preloaded:!1}),jr={},ge=I(jr),Dr=q({get layout(){return ge.layout},get transition(){return ge.transition},get class(){return ge.class},get clicks(){return ge.clicks},get name(){return ge.name},get preload(){return ge.preload},slide:{content:"",revision:"-pl23ft",note:"",title:"QuestionList start 指定",level:1,index:3,noteHTML:"",raw:"",frontmatter:ge,filepath:"",start:71,id:3,no:4},__clicksContext:null,__preloaded:!1}),Ir={},me=I(Ir),Hr=q({get layout(){return me.layout},get transition(){return me.transition},get class(){return me.class},get clicks(){return me.clicks},get name(){return me.name},get preload(){return me.preload},slide:{content:"",revision:"-yppr6w",note:"",title:"KaTeX と QuestionList",level:1,index:4,noteHTML:"",raw:"",frontmatter:me,filepath:"",start:84,id:4,no:5},__clicksContext:null,__preloaded:!1}),xr={layout:"center"},ye=I(xr),Fr=q({get layout(){return ye.layout},get transition(){return ye.transition},get class(){return ye.class},get clicks(){return ye.clicks},get name(){return ye.name},get preload(){return ye.preload},slide:{content:"",revision:"-aag5wa",frontmatterRaw:`layout: center
12
+ `,note:"",title:"KaTeX と Markdown の混在",level:1,index:5,noteHTML:"",raw:"",frontmatter:ye,filepath:"",start:96,id:5,no:6},__clicksContext:null,__preloaded:!1}),Vr={layout:"image",image:"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&w=2370&q=80"},ve=I(Vr),zr=q({get layout(){return ve.layout},get transition(){return ve.transition},get class(){return ve.class},get clicks(){return ve.clicks},get name(){return ve.name},get preload(){return ve.preload},slide:{content:"",revision:"-h41o89",frontmatterRaw:`layout: image
13
+ image: 'https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&w=2370&q=80'
14
+ `,note:"",index:6,noteHTML:"",raw:"",frontmatter:ve,filepath:"",start:123,id:6,no:7},__clicksContext:null,__preloaded:!1}),Br={},be=I(Br),Wr=q({get layout(){return be.layout},get transition(){return be.transition},get class(){return be.class},get clicks(){return be.clicks},get name(){return be.name},get preload(){return be.preload},slide:{content:"",revision:"423wci",note:"",title:"ユーティリティ",level:1,index:7,noteHTML:"",raw:"",frontmatter:be,filepath:"",start:134,id:7,no:8},__clicksContext:null,__preloaded:!1}),qr={},we=I(qr),Ur=q({get layout(){return we.layout},get transition(){return we.transition},get class(){return we.class},get clicks(){return we.clicks},get name(){return we.name},get preload(){return we.preload},slide:{content:"",revision:"-hxndbf",note:"",title:"フッターとショートカット",level:1,index:8,noteHTML:"",raw:"",frontmatter:we,filepath:"",start:145,id:8,no:9},__clicksContext:null,__preloaded:!1}),Jr={},ke=I(Jr),Kr=q({get layout(){return ke.layout},get transition(){return ke.transition},get class(){return ke.class},get clicks(){return ke.clicks},get name(){return ke.name},get preload(){return ke.preload},slide:{content:"",revision:"-lhju2h",note:"",title:"まとめ",level:1,index:9,noteHTML:"",raw:"",frontmatter:ke,filepath:"",start:155,id:9,no:10},__clicksContext:null,__preloaded:!1}),Gr={},_e=I(Gr),Qr=q({get layout(){return _e.layout},get transition(){return _e.transition},get class(){return _e.class},get clicks(){return _e.clicks},get name(){return _e.name},get preload(){return _e.preload},slide:{content:"",revision:"5oot7k",note:"",title:"終了",level:1,index:10,noteHTML:"",raw:"",frontmatter:_e,filepath:"",start:166,id:10,no:11},__clicksContext:null,__preloaded:!1}),Zr={layout:"image-scroll",image:"https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=2400&q=80"},Se=I(Zr),Yr=q({get layout(){return Se.layout},get transition(){return Se.transition},get class(){return Se.class},get clicks(){return Se.clicks},get name(){return Se.name},get preload(){return Se.preload},slide:{content:"",revision:"-t33hfp",frontmatterRaw:`layout: image-scroll
15
+ image: 'https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=2400&q=80'
16
+ `,note:"",title:"image-scroll レイアウト",level:1,index:11,noteHTML:"",raw:"",frontmatter:Se,filepath:"",start:175,id:11,no:12},__clicksContext:null,__preloaded:!1}),Xr={layout:"end"},Me=I(Xr),ei=q({get layout(){return Me.layout},get transition(){return Me.transition},get class(){return Me.class},get clicks(){return Me.clicks},get name(){return Me.name},get preload(){return Me.preload},slide:{content:"",revision:"e7p1jl",frontmatterRaw:`layout: end
17
+ `,note:"",index:12,noteHTML:"",raw:"",frontmatter:Me,filepath:"",start:188,id:12,no:13},__clicksContext:null,__preloaded:!1}),Z=new Array(13),K=(n,e)=>po({loader:e,delay:300,loadingComponent:Tr,errorComponent:U,onError:t=>console.error("Failed to load slide "+(n+1),t)}),xn=async()=>{try{return Z[0]??=await R(()=>import("./md-C0a547wx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))}catch(n){return console.error("slide failed to load",n),U}},Fn=async()=>{try{return Z[1]??=await R(()=>import("./md-DrNACvG6.js"),__vite__mapDeps([9,1,2,3,4,6,7,10]))}catch(n){return console.error("slide failed to load",n),U}},Vn=async()=>{try{return Z[2]??=await R(()=>import("./md-RVqvqjSV.js"),__vite__mapDeps([11,12,3,4,13,14,15,16,6,7]))}catch(n){return console.error("slide failed to load",n),U}},zn=async()=>{try{return Z[3]??=await R(()=>import("./md-nHLnZfr4.js"),__vite__mapDeps([17,12,3,4,13,14,15,16,6,7]))}catch(n){return console.error("slide failed to load",n),U}},Bn=async()=>{try{return Z[4]??=await R(()=>import("./md-fq9C6Jm7.js"),__vite__mapDeps([18,13,3,4,14,16,6,7]))}catch(n){return console.error("slide failed to load",n),U}},Wn=async()=>{try{return Z[5]??=await R(()=>import("./slidev/md-wS_Ed_8x.js"),__vite__mapDeps([19,12,3,4,13,14,15,6,7]))}catch(n){return console.error("slide failed to load",n),U}},qn=async()=>{try{return Z[6]??=await R(()=>import("./md-FY1NEgjs.js"),__vite__mapDeps([20,3,4,6,7,21]))}catch(n){return console.error("slide failed to load",n),U}},Un=async()=>{try{return Z[7]??=await R(()=>import("./md-Un85CPx3.js"),__vite__mapDeps([22,3,16,4,6,7]))}catch(n){return console.error("slide failed to load",n),U}},Jn=async()=>{try{return Z[8]??=await R(()=>import("./md-8VraByb9.js"),__vite__mapDeps([23,3,16,4,6,7]))}catch(n){return console.error("slide failed to load",n),U}},Kn=async()=>{try{return Z[9]??=await R(()=>import("./md-nyxGgl0C.js"),__vite__mapDeps([24,3,16,4,6,7]))}catch(n){return console.error("slide failed to load",n),U}},Gn=async()=>{try{return Z[10]??=await R(()=>import("./md-BqJwdePd.js"),__vite__mapDeps([25,3,16,4,6,7]))}catch(n){return console.error("slide failed to load",n),U}},Qn=async()=>{try{return Z[11]??=await R(()=>import("./md-CBmwngYy.js"),__vite__mapDeps([26,3,4,6,7,27]))}catch(n){return console.error("slide failed to load",n),U}},Zn=async()=>{try{return Z[12]??=await R(()=>import("./md-Bby241ZI.js"),__vite__mapDeps([28,3,4,29,6,7,30]))}catch(n){return console.error("slide failed to load",n),U}},ti=[{no:1,meta:Lr,load:xn,component:K(0,xn)},{no:2,meta:Ar,load:Fn,component:K(1,Fn)},{no:3,meta:Nr,load:Vn,component:K(2,Vn)},{no:4,meta:Dr,load:zn,component:K(3,zn)},{no:5,meta:Hr,load:Bn,component:K(4,Bn)},{no:6,meta:Fr,load:Wn,component:K(5,Wn)},{no:7,meta:zr,load:qn,component:K(6,qn)},{no:8,meta:Wr,load:Un,component:K(7,Un)},{no:9,meta:Ur,load:Jn,component:K(8,Jn)},{no:10,meta:Kr,load:Kn,component:K(9,Kn)},{no:11,meta:Qr,load:Gn,component:K(10,Gn)},{no:12,meta:Yr,load:Qn,component:K(11,Qn)},{no:13,meta:ei,load:Zn,component:K(12,Zn)}],se=dn(ti);function Cs(n,e){if(!e||e==="all"||e==="*")return $n(1,n+1);if(e==="none")return[];const t=[];for(const s of e.split(/[,;]/g))if(!s.includes("-"))t.push(+s);else{const[o,r]=s.split("-",2);t.push(...$n(+o,r?+r+1:n+1))}return Fo(t).filter(s=>s<=n).sort((s,o)=>s-o)}const Tt="$$slidev-clicks-context",pn="$$slidev-page",Es="$$slidev-slide-element",ni="$$slidev-slide-scale",si="$$slidev-context",il="$$slidev-route",gn="$$slidev-render-context",oi="$$slidev-fontmatter",ri="$$slidev-slide-zoom",ct="slidev-vclick-target",Be="slidev-vclick-hidden",We="slidev-vclick-fade",Ht="slidev-vclick-hidden-explicitly",xt="slidev-vclick-current",Ft="slidev-vclick-prior",ut=999999,ii=["localhost","127.0.0.1"],ai=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom","dragPos","lang"],al=[...ai,"theme","titleTemplate","info","author","keywords","presenter","browserExporter","download","exportFilename","export","highlighter","lineNumbers","monaco","monacoTypesSource","monacoTypesAdditionalPackages","monacoRunAdditionalDeps","remoteAssets","selectable","record","colorSchema","routerMode","aspectRatio","canvasWidth","themeConfig","favicon","plantUmlServer","fonts","defaults","drawings","htmlAttrs","mdc","contextMenu","wakeLock","seoMeta"];function li(n,e,{mode:t="replace"}={}){const s=Ct();return k({get(){const o=s.currentRoute.value.query[n];return o==null?e:Array.isArray(o)?o.filter(Boolean):o},set(o){go(()=>{(s.currentRoute.value.query[n]??e?.toString())!==o.toString()&&s[mo(t)]({query:{...s.currentRoute.value.query,[n]:`${o}`===e?void 0:o}})})}})}function Pt(n){return se.value.find(e=>e.no===+n||e.meta.slide?.frontmatter.routeAlias===n)}function Ne(n,e,t=!1){(typeof n=="number"||typeof n=="string")&&(n=Pt(n));const s=n.meta.slide?.frontmatter.routeAlias??n.no;return t?`/export/${s}`:e?`/presenter/${s}`:`/${s}`}const ci={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function ui(n,e=!1){if(!n||(typeof n=="string"&&(n={name:n}),!n.name))return;let t=n.name.includes("|")?n.name:ci[n.name]||n.name;if(t.includes("|")){const[s,o]=t.split("|").map(r=>r.trim());t=e?o:s}if(t)return{...n,name:t}}function fi(n,e,t){let s=n>0?t?.meta?.transition:e?.meta?.transition;return s||(s=$.transition||void 0),ui(s,n<0)}const ll=O(!1),cl=O(!1),ul=O(!1),hi=O(!1),mn=O(!1),fl=O(!1),hl=O(!0),dl=ko({xs:460,..._o}),vt=vo(),pl=yo(),gl=k(()=>vt.height.value-vt.width.value/bs.value>120),ml=bo(Et?document.body:null),Ts=wo(),yl=k(()=>["INPUT","TEXTAREA"].includes(Ts.value?.tagName||"")),vl=k(()=>["BUTTON","A"].includes(Ts.value?.tagName||""));F("slidev-camera","default",{listenToStorageChanges:!1});F("slidev-mic","default",{listenToStorageChanges:!1});const di=F("slidev-scale",0),bl=F("slidev-wake-lock",!0),wl=F("slidev-hide-cursor-idle",!0);F("slidev-skip-export-pdf-tip",!1);F("slidev-export-capture-delay",400,{listenToStorageChanges:!1});const kl=F("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),pi=F("slidev-show-editor",!1,{listenToStorageChanges:!1}),gi=F("slidev-editor-vertical",!1,{listenToStorageChanges:!1}),mi=F("slidev-editor-width",Et?window.innerWidth*.4:318,{listenToStorageChanges:!1}),yi=F("slidev-editor-height",Et?window.innerHeight*.4:300,{listenToStorageChanges:!1}),tt=dn(null),bt=F("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),nt=F("slidev-presenter-layout",1,{listenToStorageChanges:!1}),tn={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},vi=F("slidev-viewer-css-filter",tn,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),_l=k(()=>Object.keys(tn).some(n=>vi.value[n]!==tn[n]));function Sl(){nt.value=nt.value+1,nt.value>3&&(nt.value=1)}function Ml(){bt.value=Math.min(2,bt.value+.1)}function Ol(){bt.value=Math.max(.5,bt.value-.1)}const Cl=ms(hi),st=F("slidev-sync-directions",{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function Ps(n,e,t=1){const s=e.meta.slide.level??t;s&&s>t&&n.length>0?Ps(n[n.length-1].children,e,t+1):n.push({no:e.no,children:[],level:t,titleLevel:s,path:Ne(e.meta.slide?.frontmatter?.routeAlias??e.no,!1),hideInToc:!!e.meta?.slide?.frontmatter?.hideInToc,title:e.meta?.slide?.title})}function Ls(n,e,t=!1,s,o){return n.map(r=>{const i={...r,active:r.no===o?.value,hasActiveParent:t};return i.children.length>0&&(i.children=Ls(i.children,e,i.active||i.hasActiveParent,i,o)),s&&(i.active||i.activeParent)&&(s.activeParent=!0),i})}function $s(n,e=1){return n.filter(t=>!t.hideInToc).map(t=>({...t,children:$s(t.children,e+1)}))}function bi(n,e,t){const s=k(()=>n.value.filter(r=>r.meta?.slide?.title).reduce((r,i)=>(Ps(r,i),r),[])),o=k(()=>Ls(s.value,t.value,void 0,void 0,e));return k(()=>$s(o.value))}function wi(n,e,t=O(0),s,o,r){const i=k(()=>se.value.length),a=O(0),l=O(0),c=k(()=>Ne(n.value,s.value)),f=k(()=>n.value.no),d=k(()=>n.value.meta?.layout||(f.value===1?"cover":"default")),h=k(()=>e.value.current),u=k(()=>e.value.clicksStart),g=k(()=>e.value.total),p=k(()=>se.value[Math.min(se.value.length,f.value+1)-1]),m=k(()=>se.value[Math.max(1,f.value-1)-1]),y=k(()=>f.value<se.value.length||h.value<g.value),v=k(()=>f.value>1||h.value>0),b=k(()=>o.value?void 0:fi(a.value,n.value,m.value));ee(n,(N,P)=>{a.value=N.no-P.no});async function w(N){return!1}const _=bi(se,f,n);async function C(){l.value=1,g.value<=t.value?await D():t.value+=1}async function T(){l.value=-1,t.value<=u.value?await z(!0):t.value-=1}async function D(N=!1){l.value=1,f.value<se.value.length&&await M(f.value+1,N&&!o.value?ut:void 0)}async function z(N=!1){l.value=-1,f.value>1&&await M(f.value-1,N&&!o.value?ut:void 0)}function le(){return M(1)}function Y(){return M(i.value)}async function M(N,P=0,ie=!1){mn.value=!1;const ce=f.value!==N,Ve=P!==t.value,J=Pt(N)?.meta,A=J?.slide?.frontmatter.clicksStart??0;P=Zt(P,A,J?.__clicksContext?.total??ut),(ie||ce||Ve)&&await r?.push({path:Ne(N,s.value,r.currentRoute.value.name==="export"),query:{...r.currentRoute.value.query,clicks:P===0?void 0:P.toString(),embedded:location.search.includes("embedded")?"true":void 0}})}function E(){r?.push({path:Ne(f.value,!0),query:{...r.currentRoute.value.query}})}function H(){r?.push({path:Ne(f.value,!1),query:{...r.currentRoute.value.query}})}return{slides:se,total:i,currentPath:c,currentSlideNo:f,currentPage:f,currentSlideRoute:n,currentLayout:d,currentTransition:b,clicksDirection:l,nextRoute:p,prevRoute:m,clicksContext:e,clicks:h,clicksStart:u,clicksTotal:g,hasNext:y,hasPrev:v,tocTree:_,navDirection:a,openInEditor:w,next:C,prev:T,go:M,goLast:Y,goFirst:le,nextSlide:D,prevSlide:z,enterPresenter:E,exitPresenter:H}}const ki=ys(()=>{const n=Ct(),e=So(),t=k(()=>(n?.currentRoute?.value?.query,new URLSearchParams(location.search))),s=k(()=>t.value.has("print")||e.name==="export"),o=O(t.value.get("print")==="clicks"),r=k(()=>t.value.has("embedded")),i=k(()=>e.name==="play"),a=k(()=>e.name==="presenter"),l=k(()=>e.name==="notes"),c=k(()=>!a.value&&(!$.remote||t.value.get("password")===$.remote)),f=k(()=>!!e.params.no),d=k(()=>f.value?Pt(e.params.no)?.no??1:1),h=k(()=>se.value[d.value-1]),u=O(Cs(se.value.length,e?.query?.range)),g=li("clicks","0"),p=k(()=>y(h.value)),m=k({get(){let v=+(g.value||0);return Number.isNaN(v)&&(v=0),v},set(v){mn.value=!1,g.value=v.toString()}});function y(v){if(v?.meta?.__clicksContext)return v.meta.__clicksContext;const b=v.no,w=Os(k({get(){return d.value===b?Math.max(+(g.value??0),w.clicksStart):d.value>b?ut:w.clicksStart},set(_){d.value===b&&(g.value=_.toString())}}),v?.meta.slide?.frontmatter.clicksStart??0,v?.meta.clicks);return v?.meta&&(v.meta.__clicksContext=w),w}return{router:n,currentRoute:k(()=>e),isPrintMode:s,isPrintWithClicks:o,isEmbedded:r,isPlaying:i,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:f,currentSlideNo:d,currentSlideRoute:h,clicksContext:p,queryClicksRaw:g,queryClicks:m,printRange:u,getPrimaryClicks:y}}),Fe=ys(()=>{const n=ki(),e=Ct(),t=wi(n.currentSlideRoute,n.clicksContext,n.queryClicks,n.isPresenter,n.isPrintMode,e);return ee([t.total,n.currentRoute],async()=>{const s=n.currentRoute.value.params.no;n.hasPrimarySlide.value&&!Pt(s)&&(s&&s!=="index.html"?await t.go(t.total.value,0,!0):await t.go(1,0,!0))},{flush:"pre",immediate:!0}),{...t,...n}}),Yn=Mo(),Vt=F("slidev-color-schema","auto"),Xn=k(()=>$.colorSchema!=="auto"),As=k({get(){return Xn.value?$.colorSchema==="dark":Vt.value==="auto"?Yn.value:Vt.value==="dark"},set(n){Xn.value||(Vt.value=n===Yn.value?"auto":n?"dark":"light")}}),El=ms(As);if(Et){const n="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";ee(As,e=>{const t=window.document.createElement("style");t.appendChild(document.createTextNode(n)),window.document.head.appendChild(t);const s=document.querySelector("html");s.classList.toggle("dark",e),s.classList.toggle("light",!e),window.getComputedStyle(t).opacity,document.head.removeChild(t)},{immediate:!0})}function _i(){const{isPrintMode:n}=Fe();Oo(k(()=>n.value?`
18
+ @page {
19
+ size: ${ws.value}px ${Bo.value}px;
20
+ margin: 0px;
21
+ }
22
+
23
+ * {
24
+ transition: none !important;
25
+ transition-duration: 0s !important;
26
+ }`:""))}const yn=Symbol.for("yaml.alias"),Si=Symbol.for("yaml.document"),Te=Symbol.for("yaml.map"),Rs=Symbol.for("yaml.pair"),vn=Symbol.for("yaml.scalar"),Ye=Symbol.for("yaml.seq"),re=Symbol.for("yaml.node.type"),Pe=n=>!!n&&typeof n=="object"&&n[re]===yn,Lt=n=>!!n&&typeof n=="object"&&n[re]===Si,Ns=n=>!!n&&typeof n=="object"&&n[re]===Te,x=n=>!!n&&typeof n=="object"&&n[re]===Rs,j=n=>!!n&&typeof n=="object"&&n[re]===vn,bn=n=>!!n&&typeof n=="object"&&n[re]===Ye;function Q(n){if(n&&typeof n=="object")switch(n[re]){case Te:case Ye:return!0}return!1}function V(n){if(n&&typeof n=="object")switch(n[re]){case yn:case Te:case vn:case Ye:return!0}return!1}const js=n=>(j(n)||Q(n))&&!!n.anchor,Oe=Symbol("break visit"),Mi=Symbol("skip children"),Ke=Symbol("remove node");function $t(n,e){const t=Oi(e);Lt(n)?je(null,n.contents,t,Object.freeze([n]))===Ke&&(n.contents=null):je(null,n,t,Object.freeze([]))}$t.BREAK=Oe;$t.SKIP=Mi;$t.REMOVE=Ke;function je(n,e,t,s){const o=Ci(n,e,t,s);if(V(o)||x(o))return Ei(n,s,o),je(n,o,t,s);if(typeof o!="symbol"){if(Q(e)){s=Object.freeze(s.concat(e));for(let r=0;r<e.items.length;++r){const i=je(r,e.items[r],t,s);if(typeof i=="number")r=i-1;else{if(i===Oe)return Oe;i===Ke&&(e.items.splice(r,1),r-=1)}}}else if(x(e)){s=Object.freeze(s.concat(e));const r=je("key",e.key,t,s);if(r===Oe)return Oe;r===Ke&&(e.key=null);const i=je("value",e.value,t,s);if(i===Oe)return Oe;i===Ke&&(e.value=null)}}return o}function Oi(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function Ci(n,e,t,s){if(typeof t=="function")return t(n,e,s);if(Ns(e))return t.Map?.(n,e,s);if(bn(e))return t.Seq?.(n,e,s);if(x(e))return t.Pair?.(n,e,s);if(j(e))return t.Scalar?.(n,e,s);if(Pe(e))return t.Alias?.(n,e,s)}function Ei(n,e,t){const s=e[e.length-1];if(Q(s))s.items[n]=t;else if(x(s))n==="key"?s.key=t:s.value=t;else if(Lt(s))s.contents=t;else{const o=Pe(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}function Ds(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return!0}function Je(n,e,t,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let o=0,r=s.length;o<r;++o){const i=s[o],a=Je(n,s,String(o),i);a===void 0?delete s[o]:a!==i&&(s[o]=a)}else if(s instanceof Map)for(const o of Array.from(s.keys())){const r=s.get(o),i=Je(n,s,o,r);i===void 0?s.delete(o):i!==r&&s.set(o,i)}else if(s instanceof Set)for(const o of Array.from(s)){const r=Je(n,s,o,o);r===void 0?s.delete(o):r!==o&&(s.delete(o),s.add(r))}else for(const[o,r]of Object.entries(s)){const i=Je(n,s,o,r);i===void 0?delete s[o]:i!==r&&(s[o]=i)}return n.call(e,t,s)}function oe(n,e,t){if(Array.isArray(n))return n.map((s,o)=>oe(s,String(o),t));if(n&&typeof n.toJSON=="function"){if(!t||!js(n))return n.toJSON(e,t);const s={aliasCount:0,count:1,res:void 0};t.anchors.set(n,s),t.onCreate=r=>{s.res=r,delete t.onCreate};const o=n.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof n=="bigint"&&!t?.keep?Number(n):n}class wn{constructor(e){Object.defineProperty(this,re,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:o,reviver:r}={}){if(!Lt(e))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},a=oe(this,"",i);if(typeof o=="function")for(const{count:l,res:c}of i.anchors.values())o(c,l);return typeof r=="function"?Je(r,{"":a},"",a):a}}class Ti extends wn{constructor(e){super(yn),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let s;t?.aliasResolveCache?s=t.aliasResolveCache:(s=[],$t(e,{Node:(r,i)=>{(Pe(i)||js(i))&&s.push(i)}}),t&&(t.aliasResolveCache=s));let o;for(const r of s){if(r===this)break;r.anchor===this.source&&(o=r)}return o}toJSON(e,t){if(!t)return{source:this.source};const{anchors:s,doc:o,maxAliasCount:r}=t,i=this.resolve(o,t);if(!i){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=s.get(i);if(a||(oe(i,null,t),a=s.get(i)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=ft(o,i,s)),a.count*a.aliasCount>r)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,s){const o=`*${this.source}`;if(e){if(Ds(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${o} `}return o}}function ft(n,e,t){if(Pe(e)){const s=e.resolve(n),o=t&&s&&t.get(s);return o?o.count*o.aliasCount:0}else if(Q(e)){let s=0;for(const o of e.items){const r=ft(n,o,t);r>s&&(s=r)}return s}else if(x(e)){const s=ft(n,e.key,t),o=ft(n,e.value,t);return Math.max(s,o)}return 1}const Is=n=>!n||typeof n!="function"&&typeof n!="object";class L extends wn{constructor(e){super(vn),this.value=e}toJSON(e,t){return t?.keep?this.value:oe(this.value,e,t)}toString(){return String(this.value)}}L.BLOCK_FOLDED="BLOCK_FOLDED";L.BLOCK_LITERAL="BLOCK_LITERAL";L.PLAIN="PLAIN";L.QUOTE_DOUBLE="QUOTE_DOUBLE";L.QUOTE_SINGLE="QUOTE_SINGLE";function Pi(n,e,t){return t.find(s=>s.identify?.(n)&&!s.format)}function wt(n,e,t){if(Lt(n)&&(n=n.contents),V(n))return n;if(x(n)){const d=t.schema[Te].createNode?.(t.schema,null,t);return d.items.push(n),d}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:s,onAnchor:o,onTagObj:r,schema:i,sourceObjects:a}=t;let l;if(s&&n&&typeof n=="object"){if(l=a.get(n),l)return l.anchor??(l.anchor=o(n)),new Ti(l.anchor);l={anchor:null,node:null},a.set(n,l)}let c=Pi(n,e,i.tags);if(!c){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const d=new L(n);return l&&(l.node=d),d}c=n instanceof Map?i[Te]:Symbol.iterator in Object(n)?i[Ye]:i[Te]}r&&(r(c),delete t.onTagObj);const f=c?.createNode?c.createNode(t.schema,n,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,n,t):new L(n);return c.default||(f.tag=c.tag),l&&(l.node=f),f}function es(n,e,t){let s=t;for(let o=e.length-1;o>=0;--o){const r=e[o];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const i=[];i[r]=s,s=i}else s=new Map([[r,s]])}return wt(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const Li=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class Hs extends wn{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(s=>V(s)||x(s)?s.clone(e):s),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Li(e))this.add(t);else{const[s,...o]=e,r=this.get(s,!0);if(Q(r))r.addIn(o,t);else if(r===void 0&&this.schema)this.set(s,es(this.schema,o,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${o}`)}}deleteIn(e){const[t,...s]=e;if(s.length===0)return this.delete(t);const o=this.get(t,!0);if(Q(o))return o.deleteIn(s);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...o]=e,r=this.get(s,!0);return o.length===0?!t&&j(r)?r.value:r:Q(r)?r.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!x(t))return!1;const s=t.value;return s==null||e&&j(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){const[t,...s]=e;if(s.length===0)return this.has(t);const o=this.get(t,!0);return Q(o)?o.hasIn(s):!1}setIn(e,t){const[s,...o]=e;if(o.length===0)this.set(s,t);else{const r=this.get(s,!0);if(Q(r))r.setIn(o,t);else if(r===void 0&&this.schema)this.set(s,es(this.schema,o,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${o}`)}}}const $i=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function Ze(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const De=(n,e,t)=>n.endsWith(`
27
+ `)?Ze(t,e):t.includes(`
28
+ `)?`
29
+ `+Ze(t,e):(n.endsWith(" ")?"":" ")+t,xs="flow",nn="block",ht="quoted";function At(n,e,t="flow",{indentAtStart:s,lineWidth:o=80,minContentWidth:r=20,onFold:i,onOverflow:a}={}){if(!o||o<0)return n;o<r&&(r=0);const l=Math.max(1+r,1+o-e.length);if(n.length<=l)return n;const c=[],f={};let d=o-e.length;typeof s=="number"&&(s>o-Math.max(2,r)?c.push(0):d=o-s);let h,u,g=!1,p=-1,m=-1,y=-1;t===nn&&(p=ts(n,p,e.length),p!==-1&&(d=p+l));for(let b;b=n[p+=1];){if(t===ht&&b==="\\"){switch(m=p,n[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}y=p}if(b===`
30
+ `)t===nn&&(p=ts(n,p,e.length)),d=p+e.length+l,h=void 0;else{if(b===" "&&u&&u!==" "&&u!==`
31
+ `&&u!==" "){const w=n[p+1];w&&w!==" "&&w!==`
32
+ `&&w!==" "&&(h=p)}if(p>=d)if(h)c.push(h),d=h+l,h=void 0;else if(t===ht){for(;u===" "||u===" ";)u=b,b=n[p+=1],g=!0;const w=p>y+1?p-2:m-1;if(f[w])return n;c.push(w),f[w]=!0,d=w+l,h=void 0}else g=!0}u=b}if(g&&a&&a(),c.length===0)return n;i&&i();let v=n.slice(0,c[0]);for(let b=0;b<c.length;++b){const w=c[b],_=c[b+1]||n.length;w===0?v=`
33
+ ${e}${n.slice(0,_)}`:(t===ht&&f[w]&&(v+=`${n[w]}\\`),v+=`
34
+ ${e}${n.slice(w+1,_)}`)}return v}function ts(n,e,t){let s=e,o=e+1,r=n[o];for(;r===" "||r===" ";)if(e<o+t)r=n[++e];else{do r=n[++e];while(r&&r!==`
35
+ `);s=e,o=e+1,r=n[o]}return s}const Rt=(n,e)=>({indentAtStart:e?n.indent.length:n.indentAtStart,lineWidth:n.options.lineWidth,minContentWidth:n.options.minContentWidth}),Nt=n=>/^(%|---|\.\.\.)/m.test(n);function Ai(n,e,t){if(!e||e<0)return!1;const s=e-t,o=n.length;if(o<=s)return!1;for(let r=0,i=0;r<o;++r)if(n[r]===`
36
+ `){if(r-i>s)return!0;if(i=r+1,o-i<=s)return!1}return!0}function Ge(n,e){const t=JSON.stringify(n);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:s}=e,o=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(Nt(n)?" ":"");let i="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(i+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{i+=t.slice(a,l);const f=t.substr(l+2,4);switch(f){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:f.substr(0,2)==="00"?i+="\\x"+f.substr(2):i+=t.substr(l,6)}l+=5,a=l+1}break;case"n":if(s||t[l+2]==='"'||t.length<o)l+=1;else{for(i+=t.slice(a,l)+`
37
+
38
+ `;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)i+=`
39
+ `,l+=2;i+=r,t[l+2]===" "&&(i+="\\"),l+=1,a=l+1}break;default:l+=1}return i=a?i+t.slice(a):t,s?i:At(i,r,ht,Rt(e,!1))}function sn(n,e){if(e.options.singleQuote===!1||e.implicitKey&&n.includes(`
40
+ `)||/[ \t]\n|\n[ \t]/.test(n))return Ge(n,e);const t=e.indent||(Nt(n)?" ":""),s="'"+n.replace(/'/g,"''").replace(/\n+/g,`$&
41
+ ${t}`)+"'";return e.implicitKey?s:At(s,t,xs,Rt(e,!1))}function Ie(n,e){const{singleQuote:t}=e.options;let s;if(t===!1)s=Ge;else{const o=n.includes('"'),r=n.includes("'");o&&!r?s=sn:r&&!o?s=Ge:s=t?sn:Ge}return s(n,e)}let on;try{on=new RegExp(`(^|(?<!
42
+ ))
43
+ +(?!
44
+ |$)`,"g")}catch{on=/\n+(?!\n|$)/g}function dt({comment:n,type:e,value:t},s,o,r){const{blockQuote:i,commentString:a,lineWidth:l}=s.options;if(!i||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return Ie(t,s);const c=s.indent||(s.forceBlockIndent||Nt(t)?" ":""),f=i==="literal"?!0:i==="folded"||e===L.BLOCK_FOLDED?!1:e===L.BLOCK_LITERAL?!0:!Ai(t,l,c.length);if(!t)return f?`|
45
+ `:`>
46
+ `;let d,h;for(h=t.length;h>0;--h){const _=t[h-1];if(_!==`
47
+ `&&_!==" "&&_!==" ")break}let u=t.substring(h);const g=u.indexOf(`
48
+ `);g===-1?d="-":t===u||g!==u.length-1?(d="+",r&&r()):d="",u&&(t=t.slice(0,-u.length),u[u.length-1]===`
49
+ `&&(u=u.slice(0,-1)),u=u.replace(on,`$&${c}`));let p=!1,m,y=-1;for(m=0;m<t.length;++m){const _=t[m];if(_===" ")p=!0;else if(_===`
50
+ `)y=m;else break}let v=t.substring(0,y<m?y+1:m);v&&(t=t.substring(v.length),v=v.replace(/\n+/g,`$&${c}`));let w=(p?c?"2":"1":"")+d;if(n&&(w+=" "+a(n.replace(/ ?[\r\n]+/g," ")),o&&o()),!f){const _=t.replace(/\n+/g,`
51
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let C=!1;const T=Rt(s,!0);i!=="folded"&&e!==L.BLOCK_FOLDED&&(T.onOverflow=()=>{C=!0});const D=At(`${v}${_}${u}`,c,nn,T);if(!C)return`>${w}
52
+ ${c}${D}`}return t=t.replace(/\n+/g,`$&${c}`),`|${w}
53
+ ${c}${v}${t}${u}`}function Ri(n,e,t,s){const{type:o,value:r}=n,{actualString:i,implicitKey:a,indent:l,indentStep:c,inFlow:f}=e;if(a&&r.includes(`
54
+ `)||f&&/[[\]{},]/.test(r))return Ie(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||f||!r.includes(`
55
+ `)?Ie(r,e):dt(n,e,t,s);if(!a&&!f&&o!==L.PLAIN&&r.includes(`
56
+ `))return dt(n,e,t,s);if(Nt(r)){if(l==="")return e.forceBlockIndent=!0,dt(n,e,t,s);if(a&&l===c)return Ie(r,e)}const d=r.replace(/\n+/g,`$&
57
+ ${l}`);if(i){const h=p=>p.default&&p.tag!=="tag:yaml.org,2002:str"&&p.test?.test(d),{compat:u,tags:g}=e.doc.schema;if(g.some(h)||u?.some(h))return Ie(r,e)}return a?d:At(d,l,xs,Rt(e,!1))}function Ni(n,e,t,s){const{implicitKey:o,inFlow:r}=e,i=typeof n.value=="string"?n:Object.assign({},n,{value:String(n.value)});let{type:a}=n;a!==L.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(a=L.QUOTE_DOUBLE);const l=f=>{switch(f){case L.BLOCK_FOLDED:case L.BLOCK_LITERAL:return o||r?Ie(i.value,e):dt(i,e,t,s);case L.QUOTE_DOUBLE:return Ge(i.value,e);case L.QUOTE_SINGLE:return sn(i.value,e);case L.PLAIN:return Ri(i,e,t,s);default:return null}};let c=l(a);if(c===null){const{defaultKeyType:f,defaultStringType:d}=e.options,h=o&&f||d;if(c=l(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}function ji(n,e){const t=Object.assign({blockQuote:!0,commentString:$i,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},n.schema.toStringOptions,e);let s;switch(t.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:n,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:s,options:t}}function Di(n,e){if(e.tag){const o=n.filter(r=>r.tag===e.tag);if(o.length>0)return o.find(r=>r.format===e.format)??o[0]}let t,s;if(j(e)){s=e.value;let o=n.filter(r=>r.identify?.(s));if(o.length>1){const r=o.filter(i=>i.test);r.length>0&&(o=r)}t=o.find(r=>r.format===e.format)??o.find(r=>!r.format)}else s=e,t=n.find(o=>o.nodeClass&&s instanceof o.nodeClass);if(!t){const o=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${o} value`)}return t}function Ii(n,e,{anchors:t,doc:s}){if(!s.directives)return"";const o=[],r=(j(n)||Q(n))&&n.anchor;r&&Ds(r)&&(t.add(r),o.push(`&${r}`));const i=n.tag??(e.default?null:e.tag);return i&&o.push(s.directives.tagString(i)),o.join(" ")}function kt(n,e,t,s){if(x(n))return n.toString(e,t,s);if(Pe(n)){if(e.doc.directives)return n.toString(e);if(e.resolvedAliases?.has(n))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(n):e.resolvedAliases=new Set([n]),n=n.resolve(e.doc)}let o;const r=V(n)?n:e.doc.createNode(n,{onTagObj:l=>o=l});o??(o=Di(e.doc.schema.tags,r));const i=Ii(r,o,e);i.length>0&&(e.indentAtStart=(e.indentAtStart??0)+i.length+1);const a=typeof o.stringify=="function"?o.stringify(r,e,t,s):j(r)?Ni(r,e,t,s):r.toString(e,t,s);return i?j(r)||a[0]==="{"||a[0]==="["?`${i} ${a}`:`${i}
58
+ ${e.indent}${a}`:a}function Hi({key:n,value:e},t,s,o){const{allNullValues:r,doc:i,indent:a,indentStep:l,options:{commentString:c,indentSeq:f,simpleKeys:d}}=t;let h=V(n)&&n.comment||null;if(d){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Q(n)||!V(n)&&typeof n=="object"){const T="With simple keys, collection cannot be used as a key value";throw new Error(T)}}let u=!d&&(!n||h&&e==null&&!t.inFlow||Q(n)||(j(n)?n.type===L.BLOCK_FOLDED||n.type===L.BLOCK_LITERAL:typeof n=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!u&&(d||!r),indent:a+l});let g=!1,p=!1,m=kt(n,t,()=>g=!0,()=>p=!0);if(!u&&!t.inFlow&&m.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0}if(t.inFlow){if(r||e==null)return g&&s&&s(),m===""?"?":u?`? ${m}`:m}else if(r&&!d||e==null&&u)return m=`? ${m}`,h&&!g?m+=De(m,t.indent,c(h)):p&&o&&o(),m;g&&(h=null),u?(h&&(m+=De(m,t.indent,c(h))),m=`? ${m}
59
+ ${a}:`):(m=`${m}:`,h&&(m+=De(m,t.indent,c(h))));let y,v,b;V(e)?(y=!!e.spaceBefore,v=e.commentBefore,b=e.comment):(y=!1,v=null,b=null,e&&typeof e=="object"&&(e=i.createNode(e))),t.implicitKey=!1,!u&&!h&&j(e)&&(t.indentAtStart=m.length+1),p=!1,!f&&l.length>=2&&!t.inFlow&&!u&&bn(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let w=!1;const _=kt(e,t,()=>w=!0,()=>p=!0);let C=" ";if(h||y||v){if(C=y?`
60
+ `:"",v){const T=c(v);C+=`
61
+ ${Ze(T,t.indent)}`}_===""&&!t.inFlow?C===`
62
+ `&&(C=`
63
+
64
+ `):C+=`
65
+ ${t.indent}`}else if(!u&&Q(e)){const T=_[0],D=_.indexOf(`
66
+ `),z=D!==-1,le=t.inFlow??e.flow??e.items.length===0;if(z||!le){let Y=!1;if(z&&(T==="&"||T==="!")){let M=_.indexOf(" ");T==="&"&&M!==-1&&M<D&&_[M+1]==="!"&&(M=_.indexOf(" ",M+1)),(M===-1||D<M)&&(Y=!0)}Y||(C=`
67
+ ${t.indent}`)}}else(_===""||_[0]===`
68
+ `)&&(C="");return m+=C+_,t.inFlow?w&&s&&s():b&&!w?m+=De(m,t.indent,c(b)):p&&o&&o(),m}function xi(n,e){(n==="debug"||n==="warn")&&console.warn(e)}const ot="<<",zt={identify:n=>n===ot||typeof n=="symbol"&&n.description===ot,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new L(Symbol(ot)),{addToJSMap:Fs}),stringify:()=>ot},Fi=(n,e)=>(zt.identify(e)||j(e)&&(!e.type||e.type===L.PLAIN)&&zt.identify(e.value))&&n?.doc.schema.tags.some(t=>t.tag===zt.tag&&t.default);function Fs(n,e,t){if(t=n&&Pe(t)?t.resolve(n.doc):t,bn(t))for(const s of t.items)Bt(n,e,s);else if(Array.isArray(t))for(const s of t)Bt(n,e,s);else Bt(n,e,t)}function Bt(n,e,t){const s=n&&Pe(t)?t.resolve(n.doc):t;if(!Ns(s))throw new Error("Merge sources must be maps or map aliases");const o=s.toJSON(null,n,Map);for(const[r,i]of o)e instanceof Map?e.has(r)||e.set(r,i):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0});return e}function Vs(n,e,{key:t,value:s}){if(V(t)&&t.addToJSMap)t.addToJSMap(n,e,s);else if(Fi(n,t))Fs(n,e,s);else{const o=oe(t,"",n);if(e instanceof Map)e.set(o,oe(s,o,n));else if(e instanceof Set)e.add(o);else{const r=Vi(t,o,n),i=oe(s,r,n);r in e?Object.defineProperty(e,r,{value:i,writable:!0,enumerable:!0,configurable:!0}):e[r]=i}}return e}function Vi(n,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(V(n)&&t?.doc){const s=ji(t.doc,{});s.anchors=new Set;for(const r of t.anchors.keys())s.anchors.add(r.anchor);s.inFlow=!0,s.inStringifyKey=!0;const o=n.toString(s);if(!t.mapKeyWarned){let r=JSON.stringify(o);r.length>40&&(r=r.substring(0,36)+'..."'),xi(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(e)}function kn(n,e,t){const s=wt(n,void 0,t),o=wt(e,void 0,t);return new ae(s,o)}class ae{constructor(e,t=null){Object.defineProperty(this,re,{value:Rs}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return V(t)&&(t=t.clone(e)),V(s)&&(s=s.clone(e)),new ae(t,s)}toJSON(e,t){const s=t?.mapAsMap?new Map:{};return Vs(t,s,this)}toString(e,t,s){return e?.doc?Hi(this,e,t,s):JSON.stringify(this)}}function zs(n,e,t){return(e.inFlow??n.flow?Bi:zi)(n,e,t)}function zi({comment:n,items:e},t,{blockItemPrefix:s,flowChars:o,itemIndent:r,onChompKeep:i,onComment:a}){const{indent:l,options:{commentString:c}}=t,f=Object.assign({},t,{indent:r,type:null});let d=!1;const h=[];for(let g=0;g<e.length;++g){const p=e[g];let m=null;if(V(p))!d&&p.spaceBefore&&h.push(""),_t(t,h,p.commentBefore,d),p.comment&&(m=p.comment);else if(x(p)){const v=V(p.key)?p.key:null;v&&(!d&&v.spaceBefore&&h.push(""),_t(t,h,v.commentBefore,d))}d=!1;let y=kt(p,f,()=>m=null,()=>d=!0);m&&(y+=De(y,r,c(m))),d&&m&&(d=!1),h.push(s+y)}let u;if(h.length===0)u=o.start+o.end;else{u=h[0];for(let g=1;g<h.length;++g){const p=h[g];u+=p?`
69
+ ${l}${p}`:`
70
+ `}}return n?(u+=`
71
+ `+Ze(c(n),l),a&&a()):d&&i&&i(),u}function Bi({items:n},e,{flowChars:t,itemIndent:s}){const{indent:o,indentStep:r,flowCollectionPadding:i,options:{commentString:a}}=e;s+=r;const l=Object.assign({},e,{indent:s,inFlow:!0,type:null});let c=!1,f=0;const d=[];for(let g=0;g<n.length;++g){const p=n[g];let m=null;if(V(p))p.spaceBefore&&d.push(""),_t(e,d,p.commentBefore,!1),p.comment&&(m=p.comment);else if(x(p)){const v=V(p.key)?p.key:null;v&&(v.spaceBefore&&d.push(""),_t(e,d,v.commentBefore,!1),v.comment&&(c=!0));const b=V(p.value)?p.value:null;b?(b.comment&&(m=b.comment),b.commentBefore&&(c=!0)):p.value==null&&v?.comment&&(m=v.comment)}m&&(c=!0);let y=kt(p,l,()=>m=null);g<n.length-1&&(y+=","),m&&(y+=De(y,s,a(m))),!c&&(d.length>f||y.includes(`
72
+ `))&&(c=!0),d.push(y),f=d.length}const{start:h,end:u}=t;if(d.length===0)return h+u;if(!c){const g=d.reduce((p,m)=>p+m.length+2,2);c=e.options.lineWidth>0&&g>e.options.lineWidth}if(c){let g=h;for(const p of d)g+=p?`
73
+ ${r}${o}${p}`:`
74
+ `;return`${g}
75
+ ${o}${u}`}else return`${h}${i}${d.join(" ")}${i}${u}`}function _t({indent:n,options:{commentString:e}},t,s,o){if(s&&o&&(s=s.replace(/^\n+/,"")),s){const r=Ze(e(s),n);t.push(r.trimStart())}}function Ee(n,e){const t=j(e)?e.value:e;for(const s of n)if(x(s)&&(s.key===e||s.key===t||j(s.key)&&s.key.value===t))return s}class Ae extends Hs{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Te,e),this.items=[]}static from(e,t,s){const{keepUndefined:o,replacer:r}=s,i=new this(e),a=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||o)&&i.items.push(kn(l,c,s))};if(t instanceof Map)for(const[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(const l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}add(e,t){let s;x(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new ae(e,e?.value):s=new ae(e.key,e.value);const o=Ee(this.items,s.key),r=this.schema?.sortMapEntries;if(o){if(!t)throw new Error(`Key ${s.key} already set`);j(o.value)&&Is(s.value)?o.value.value=s.value:o.value=s.value}else if(r){const i=this.items.findIndex(a=>r(s,a)<0);i===-1?this.items.push(s):this.items.splice(i,0,s)}else this.items.push(s)}delete(e){const t=Ee(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const o=Ee(this.items,e)?.value;return(!t&&j(o)?o.value:o)??void 0}has(e){return!!Ee(this.items,e)}set(e,t){this.add(new ae(e,t),!0)}toJSON(e,t,s){const o=s?new s:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(o);for(const r of this.items)Vs(t,o,r);return o}toString(e,t,s){if(!e)return JSON.stringify(this);for(const o of this.items)if(!x(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),zs(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}class Bs extends Hs{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ye,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=rt(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const s=rt(e);if(typeof s!="number")return;const o=this.items[s];return!t&&j(o)?o.value:o}has(e){const t=rt(e);return typeof t=="number"&&t<this.items.length}set(e,t){const s=rt(e);if(typeof s!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[s];j(o)&&Is(t)?o.value=t:this.items[s]=t}toJSON(e,t){const s=[];t?.onCreate&&t.onCreate(s);let o=0;for(const r of this.items)s.push(oe(r,String(o++),t));return s}toString(e,t,s){return e?zs(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t}):JSON.stringify(this)}static from(e,t,s){const{replacer:o}=s,r=new this(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let a of t){if(typeof o=="function"){const l=t instanceof Set?a:String(i++);a=o.call(t,l,a)}r.items.push(wt(a,void 0,s))}}return r}}function rt(n){let e=j(n)?n.value:n;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function Wi(n,e,t){const{replacer:s}=t,o=new Bs(n);o.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let i of e){typeof s=="function"&&(i=s.call(e,String(r++),i));let a,l;if(Array.isArray(i))if(i.length===2)a=i[0],l=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const c=Object.keys(i);if(c.length===1)a=c[0],l=i[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=i;o.items.push(kn(a,l,t))}return o}class _n extends Bs{constructor(){super(),this.add=Ae.prototype.add.bind(this),this.delete=Ae.prototype.delete.bind(this),this.get=Ae.prototype.get.bind(this),this.has=Ae.prototype.has.bind(this),this.set=Ae.prototype.set.bind(this),this.tag=_n.tag}toJSON(e,t){if(!t)return super.toJSON(e);const s=new Map;t?.onCreate&&t.onCreate(s);for(const o of this.items){let r,i;if(x(o)?(r=oe(o.key,"",t),i=oe(o.value,r,t)):r=oe(o,"",t),s.has(r))throw new Error("Ordered maps must not include duplicate keys");s.set(r,i)}return s}static from(e,t,s){const o=Wi(e,t,s),r=new this;return r.items=o.items,r}}_n.tag="tag:yaml.org,2002:omap";class Sn extends Ae{constructor(e){super(e),this.tag=Sn.tag}add(e){let t;x(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new ae(e.key,null):t=new ae(e,null),Ee(this.items,t.key)||this.items.push(t)}get(e,t){const s=Ee(this.items,e);return!t&&x(s)?j(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const s=Ee(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new ae(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);throw new Error("Set items must all have null values")}static from(e,t,s){const{replacer:o}=s,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof o=="function"&&(i=o.call(t,i,i)),r.items.push(kn(i,null,s));return r}}Sn.tag="tag:yaml.org,2002:set";new Set("0123456789ABCDEFabcdef");new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");new Set(",[]{}");new Set(` ,[]{}
76
+ \r `);function Mn(n=5){const e=[],t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=t.length;for(let o=0;o<n;o++)e.push(t.charAt(Math.floor(Math.random()*s)));return e.join("")}function Tl(n,e,t,s){const o=Cs(e+t-1,n);for(let r=0;r<e;r++){const i=s(r),a=o.includes(r+t);for(const l of i)l.classList.toggle("slidev-code-highlighted",a),l.classList.toggle("slidev-code-dishonored",!a),l.classList.toggle("highlighted",a),l.classList.toggle("dishonored",!a)}}function Ws(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10)}function te(n,e,t){Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!1})}const ue=I({});let qi=[],Ui=[];te(ue,"$syncUp",!0);te(ue,"$syncDown",!0);te(ue,"$paused",!1);te(ue,"$onSet",n=>qi.push(n));te(ue,"$onPatch",n=>Ui.push(n));Ws();te(ue,"$patch",async()=>!1);const Ji={channels:[],enabled:!0,init(n,e,t,s=!1){let o;if(!s)o=new BroadcastChannel(n),o.addEventListener("message",r=>e(r.data)),this.channels.push(o);else if(s){this.listener=function(i){i&&i.key===n&&i.newValue&&e(JSON.parse(i.newValue))},window.addEventListener("storage",this.listener);const r=window.localStorage.getItem(n);r&&e(JSON.parse(r))}return(r,i=!1)=>{this.enabled&&(!s&&o&&!i&&o.postMessage(vs(r)),s&&!i&&window.localStorage.setItem(n,JSON.stringify(r)))}},disable(){this.enabled=!1,this.channels.forEach(n=>n.close()),this.listener&&window.removeEventListener("storage",this.listener)}},Ki=I([Ji]),Gi=new Map,ns=O({});function qs(n,e,t=!1){const s=[];let o=!1,r=!1,i,a;const l=I(e);function c(u){s.push(u)}function f(u,g){l[u]!==g&&(clearTimeout(i),o=!0,l[u]=g,i=setTimeout(()=>o=!1,0))}function d(u){o||(clearTimeout(a),r=!0,Object.entries(u).forEach(([g,p])=>{l[g]=p}),a=setTimeout(()=>r=!1,0))}function h(u){Gi.set(u,{onUpdate:d,persist:t,state:l}),ns.value[u]=Ki.map(p=>p.init(u,d,l,t)).filter(p=>!!p);function g(){ns.value[u].forEach(p=>p?.(vs(l),r)),o||s.forEach(p=>p(l))}ee(l,g,{deep:!0})}return{init:h,onPatch:c,onUpdate:d,patch:f,state:l}}const{init:Qi,onPatch:Pl,patch:Ll,state:$l}=qs(ue,ue,!1),Le=I({page:0,clicks:0});let Zi=[],Yi=[];te(Le,"$syncUp",!0);te(Le,"$syncDown",!0);te(Le,"$paused",!1);te(Le,"$onSet",n=>Zi.push(n));te(Le,"$onPatch",n=>Yi.push(n));Ws();te(Le,"$patch",async()=>!1);const{init:Xi,onPatch:ea,patch:it,state:Al}=qs(Le,{page:1,clicks:0,clicksTotal:0});function ta(){const n=ds().appContext.app,e=I({nav:Fe(),configs:$,themeConfigs:k(()=>$.themeConfig)});n.provide(gn,O("none")),n.provide(si,e),n.provide(pn,k(()=>e.nav.currentSlideNo)),n.provide(Tt,dn(wr()));for(const h of qo)h();const{clicksContext:t,currentSlideNo:s,hasPrimarySlide:o,isNotesViewer:r,isPresenter:i,isPrintMode:a}=Fe();yr({title:Dt,htmlAttrs:$.htmlAttrs}),_i(),Xi(`${Dt} - shared`),Qi(`${Dt} - drawings`);const l=`${location.origin}_${Mn()}`,c=k(()=>i.value?"presenter":"viewer");function f(){(i.value?st.value.presenterSend:st.value.viewerSend)&&(r.value||a.value||!i.value&&!ii.includes(location.host.split(":")[0])||(it("page",+s.value),it("clicks",t.value.current),it("clicksTotal",t.value.total),it("lastUpdate",{id:l,type:c.value,time:new Date().getTime()})))}const d=Ct();d.afterEach(f),ee(t,f),ea(h=>{(i.value?st.value.presenterReceive:st.value.viewerReceive)&&(!o.value||a.value||h.lastUpdate?.type!==c.value&&(+h.page==+s.value&&+t.value.current==+h.clicks||(mn.value=!1,d.replace({path:Ne(h.page,i.value),query:{...d.currentRoute.value.query,clicks:h.clicks||0}}))))})}const na=gs({__name:"App",setup(n){return ta(),He(()=>{for(const[e,t]of Object.entries(Wo.value))document.body.style.setProperty(e,t.toString())}),(e,t)=>{const s=Eo("RouterView");return mt(),Co(s)}}}),sa=[];async function Us(n,e={}){const t=e.document||n.resolvedOptions.document;if(!t||!n.dirty)return;const s={shouldRender:!0,tags:[]};if(await n.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return n._domUpdatePromise||(n._domUpdatePromise=new Promise(async o=>{const r=new Map,i=new Promise(u=>{n.resolveTags().then(g=>{u(g.map(p=>{const m=r.get(p._d)||0,y={tag:p,id:(m?`${p._d}:${m}`:p._d)||Rn(p),shouldRender:!0};return p._d&&_s(p._d)&&r.set(p._d,m+1),y}))})});let a=n._dom;if(!a){a={title:t.title,elMap:new Map().set("htmlAttrs",t.documentElement).set("bodyAttrs",t.body)};for(const u of["body","head"]){const g=t[u]?.children;for(const p of g){const m=p.tagName.toLowerCase();if(!An.has(m))continue;const y=Ss({tag:m,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((v,b)=>(v[b]=p.getAttribute(b),v),{})||{}});if(y.key=p.getAttribute("data-hid")||void 0,y._d=Xt(y)||Rn(y),a.elMap.has(y._d)){let v=1,b=y._d;for(;a.elMap.has(b);)b=`${y._d}:${v++}`;a.elMap.set(b,p)}else a.elMap.set(y._d,p)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(u,g,p){const m=`${u}:${g}`;a.sideEffects[m]=p,delete a.pendingSideEffects[m]}function c({id:u,$el:g,tag:p}){const m=p.tag.endsWith("Attrs");a.elMap.set(u,g),m||(p.textContent&&p.textContent!==g.textContent&&(g.textContent=p.textContent),p.innerHTML&&p.innerHTML!==g.innerHTML&&(g.innerHTML=p.innerHTML),l(u,"el",()=>{g?.remove(),a.elMap.delete(u)}));for(const y in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,y))continue;const v=p.props[y];if(y.startsWith("on")&&typeof v=="function"){const w=g?.dataset;if(w&&w[`${y}fired`]){const _=y.slice(0,-5);v.call(g,new Event(_.substring(2)))}g.getAttribute(`data-${y}`)!==""&&((p.tag==="bodyAttrs"?t.defaultView:g).addEventListener(y.substring(2),v.bind(g)),g.setAttribute(`data-${y}`,""));continue}const b=`attr:${y}`;if(y==="class"){if(!v)continue;for(const w of v)m&&l(u,`${b}:${w}`,()=>g.classList.remove(w)),!g.classList.contains(w)&&g.classList.add(w)}else if(y==="style"){if(!v)continue;for(const[w,_]of v)l(u,`${b}:${w}`,()=>{g.style.removeProperty(w)}),g.style.setProperty(w,_)}else v!==!1&&v!==null&&(g.getAttribute(y)!==v&&g.setAttribute(y,v===!0?"":String(v)),m&&l(u,b,()=>g.removeAttribute(y)))}}const f=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const u of h){const{tag:g,shouldRender:p,id:m}=u;if(p){if(g.tag==="title"){t.title=g.textContent,l("title","",()=>t.title=a.title);continue}u.$el=u.$el||a.elMap.get(m),u.$el?c(u):An.has(g.tag)&&f.push(u)}}for(const u of f){const g=u.tag.tagPosition||"head";u.$el=t.createElement(u.tag.tag),c(u),d[g]=d[g]||t.createDocumentFragment(),d[g].appendChild(u.$el)}for(const u of h)await n.hooks.callHook("dom:renderTag",u,t,l);d.head&&t.head.appendChild(d.head),d.bodyOpen&&t.body.insertBefore(d.bodyOpen,t.body.firstChild),d.bodyClose&&t.body.appendChild(d.bodyClose);for(const u in a.pendingSideEffects)a.pendingSideEffects[u]();n._dom=a,await n.hooks.callHook("dom:rendered",{renders:h}),o()}).finally(()=>{n._domUpdatePromise=void 0,n.dirty=!1})),n._domUpdatePromise}function oa(n={}){const e=n.domOptions?.render||Us;n.document=n.document||(typeof window<"u"?document:void 0);const t=n.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return dr({...n,plugins:[...n.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[t?JSON.parse(t):!1,...n.init||[]]})}function ra(n,e){let t=0;return()=>{const s=++t;e(()=>{t===s&&n()})}}function ia(n={}){const e=oa({domOptions:{render:ra(()=>Us(e),t=>setTimeout(t,0))},...n});return e.install=gr(e),e}function Rl(n,e=""){const t=["slidev-page",e],s=n?.meta?.slide?.no;return s!=null&&t.push(`slidev-page-${s}`),t.filter(Boolean).join(" ")}async function Nl(){const{saveAs:n}=await R(async()=>{const{saveAs:e}=await import("./modules/file-saver-BQwH87cS.js").then(t=>t.F);return{saveAs:e}},[]);n(typeof $.download=="string"?$.download:$.exportFilename?`${$.exportFilename}.pdf`:"/slidev-exported.pdf",`${$.title}.pdf`)}function xe(n,e,t){return(n.instance?.$).provides[e]??t}function aa(){return{install(n){n.directive("click",{name:"v-click",mounted(e,t){const s=pt(e,t,t.value);s!=null&&(e.classList.toggle(ct,!0),e.dataset.slidevClicksStart=String(s.start),Number.isFinite(s.end)&&(e.dataset.slidevClicksEnd=String(s.end)),e.watchStopHandle=He(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?We:Be,o),e.classList.toggle(Ht,o)):e.classList.toggle(s.flagFade?We:Be,!o),e.classList.toggle(xt,r),e.classList.toggle(Ft,i)}))},unmounted:Wt}),n.directive("after",{name:"v-after",mounted(e,t){const s=pt(e,t,"+0");s!=null&&(e.classList.toggle(ct,!0),e.watchStopHandle=He(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;s.flagHide?(e.classList.toggle(s.flagFade?We:Be,o),e.classList.toggle(Ht,o)):e.classList.toggle(s.flagFade?We:Be,!o),e.classList.toggle(xt,r),e.classList.toggle(Ft,i)}))},unmounted:Wt}),n.directive("click-hide",{name:"v-click-hide",mounted(e,t){const s=pt(e,t,t.value,!0);s!=null&&(e.classList.toggle(ct,!0),e.watchStopHandle=He(()=>{const o=s.isActive.value,r=s.isCurrent.value,i=o&&!r;e.classList.toggle(s.flagFade?We:Be,o),e.classList.toggle(Ht,o),e.classList.toggle(xt,r),e.classList.toggle(Ft,i)}))},unmounted:Wt})}}}const Js=new Map;function pt(n,e,t,s=!1){const o=xe(e,Tt)?.value;if(!n||!o)return null;const r=s||e.modifiers.hide!==!1&&e.modifiers.hide!=null,i=e.modifiers.fade!==!1&&e.modifiers.fade!=null,a=o.calculate(t);if(!a)return null;o.register(n,a);const l=k(()=>r?!a.isActive.value:a.isActive.value),c=k(()=>l.value?"shown":Number.isFinite(a.end)?o.current<a.start?"before":"after":r?"after":"before"),f={...a,isShown:l,visibilityState:c,flagFade:i,flagHide:r};return Js.set(n,f),f}function Wt(n,e){n.classList.toggle(ct,!1),xe(e,Tt)?.value?.unregister(n),n.watchStopHandle?.()}function la(n=hs(Es,O())){const e=To(n),t=ee([pi,gi,mi,yi,di,vt.width,vt.height],()=>{setTimeout(e.update,300)},{flush:"post",immediate:!0});return{...e,stop:t}}function ca(n){return()=>{}}function ua(n,e,t,s=!1){function o(A){return n?xe(n,A):Lo(A)}const r=o(gn),i=o(oi)??{},a=o(pn),l=k(()=>ca(a.value)),c=o(ni)??O(1),f=o(ri)??O(1),{left:d,top:h,stop:u}=la(o(Es)??O()),{isPrintMode:g}=Fe(),p=["slide","presenter"].includes(r.value)&&!g.value;let m=n?"directive":"prop",y=Mn(),v;if(Array.isArray(e)?v=e:typeof e=="string"&&e.includes(",")?v=e.split(",").map(Number):e!=null&&(m="frontmatter",y=`${e}`,e=i?.dragPos?.[y],v=e?.split(",").map(Number)),m!=="frontmatter"&&!t)throw new Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");const b=[u],w=!s&&e!=null&&!Number.isFinite(v?.[3]);v??=[Number.NaN,Number.NaN,0];const _=O(v[2]),C=O(v[0]+v[2]/2),T=O(s?0:v[4]??0),D=k(()=>T.value*Math.PI/180),z=k(()=>Math.sin(D.value)),le=k(()=>Math.cos(D.value)),Y=O(),M=O({left:0,top:0,width:0,height:0}),E=O(0);function H(){if(!Y.value)return;const A=Y.value.getBoundingClientRect();M.value={left:A.left/f.value,top:A.top/f.value,width:A.width/f.value,height:A.height/f.value},E.value=(M.value.width+M.value.height)/c.value/(Math.abs(z.value)+Math.abs(le.value))-_.value}b.push(ee(_,H,{flush:"post"}));const N=O(v[3]??0),P=w?k({get:()=>(w?E.value:N.value)||0,set:A=>!w&&(N.value=A)}):N,ie=w?O(v[1]):O(v[1]+v[3]/2),ce=w?k({get:()=>ie.value+P.value/2,set:A=>ie.value=A-P.value/2}):ie,Ve=k(()=>Number.isFinite(C.value)?{position:"absolute",zIndex:100,left:`${C.value-_.value/2}px`,top:`${ce.value-P.value/2}px`,width:`${_.value}px`,height:w?void 0:`${P.value}px`,transformOrigin:"center center",transform:`rotate(${T.value}deg)`}:{position:"absolute",zIndex:100});b.push(ee([C,ce,_,P,T],([A,et,En,Tn,Pn])=>{let $e=[A-En/2,et-Tn/2,En].map(Math.round).join();w?$e+=m==="directive"?",NaN":",_":$e+=`,${Math.round(Tn)}`,Math.round(Pn)!==0&&($e+=`,${Math.round(Pn)}`),m==="directive"&&($e=`[${$e}]`),l.value(y,$e,m,t)}));const J={dragId:y,dataSource:m,markdownSource:t,isArrow:s,zoom:f,autoHeight:w,x0:C,y0:ce,width:_,height:P,rotate:T,container:Y,containerStyle:Ve,watchStopHandles:b,dragging:k(()=>tt.value===J),mounted(){p&&(H(),e||setTimeout(()=>{H(),C.value=(M.value.left+M.value.width/2-d.value)/c.value,ce.value=(M.value.top-h.value)/c.value,_.value=M.value.width/c.value,P.value=M.value.height/c.value},100))},unmounted(){p&&J.stopDragging()},startDragging(){p&&(H(),tt.value=J)},stopDragging(){p&&tt.value===J&&(tt.value=null)}};return b.push(Po(Y,A=>{const et=document.querySelector("#drag-control-container");et&&A.target&&et.contains(A.target)||J.stopDragging()}),ee($o(),A=>{A||J.stopDragging()})),J}function fa(){return{install(n){n.directive("drag",{name:"v-drag",created(e,t,s){const o=ua(t,t.value,s.props?.markdownSource);s.props&&(s.props={...s.props},delete s.props.markdownSource),o.container.value=e,e.draggingState=o,e.dataset.dragId=o.dragId,o.watchStopHandles.push(ee(o.containerStyle,r=>{for(const[i,a]of Object.entries(r))a&&(e.style[i]=a)},{immediate:!0})),e.addEventListener("dblclick",o.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){const t=e.draggingState;t.unmounted(),e.removeEventListener("dblclick",t.startDragging),t.watchStopHandles.forEach(s=>s())}})}}}function Ks(){return Math.floor(Math.random()*2**31)}class ha{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function rn(n,e,t){if(n&&n.length){const[s,o]=e,r=Math.PI/180*t,i=Math.cos(r),a=Math.sin(r);for(const l of n){const[c,f]=l;l[0]=(c-s)*i-(f-o)*a+s,l[1]=(c-s)*a+(f-o)*i+o}}}function da(n,e,t){const s=[];n.forEach(o=>s.push(...o)),rn(s,e,t)}function pa(n,e){return n[0]===e[0]&&n[1]===e[1]}function ga(n,e,t,s=1){const o=t,r=Math.max(e,.1),i=n[0]&&n[0][0]&&typeof n[0][0]=="number"?[n]:n,a=[0,0];if(o)for(const c of i)rn(c,a,o);const l=ma(i,r,s);if(o){for(const c of i)rn(c,a,-o);da(l,a,-o)}return l}function ma(n,e,t){const s=[];for(const c of n){const f=[...c];pa(f[0],f[f.length-1])||f.push([f[0][0],f[0][1]]),f.length>2&&s.push(f)}const o=[];e=Math.max(e,.1);const r=[];for(const c of s)for(let f=0;f<c.length-1;f++){const d=c[f],h=c[f+1];if(d[1]!==h[1]){const u=Math.min(d[1],h[1]);r.push({ymin:u,ymax:Math.max(d[1],h[1]),x:u===d[1]?d[0]:h[0],islope:(h[0]-d[0])/(h[1]-d[1])})}}if(r.sort((c,f)=>c.ymin<f.ymin?-1:c.ymin>f.ymin?1:c.x<f.x?-1:c.x>f.x?1:c.ymax===f.ymax?0:(c.ymax-f.ymax)/Math.abs(c.ymax-f.ymax)),!r.length)return o;let i=[],a=r[0].ymin,l=0;for(;i.length||r.length;){if(r.length){let c=-1;for(let d=0;d<r.length&&!(r[d].ymin>a);d++)c=d;r.splice(0,c+1).forEach(d=>{i.push({s:a,edge:d})})}if(i=i.filter(c=>!(c.edge.ymax<=a)),i.sort((c,f)=>c.edge.x===f.edge.x?0:(c.edge.x-f.edge.x)/Math.abs(c.edge.x-f.edge.x)),(t!==1||l%e===0)&&i.length>1)for(let c=0;c<i.length;c=c+2){const f=c+1;if(f>=i.length)break;const d=i[c].edge,h=i[f].edge;o.push([[Math.round(d.x),a],[Math.round(h.x),a]])}a+=t,i.forEach(c=>{c.edge.x=c.edge.x+t*c.edge.islope}),l++}return o}function Xe(n,e){var t;const s=e.hachureAngle+90;let o=e.hachureGap;o<0&&(o=e.strokeWidth*4),o=Math.round(Math.max(o,.1));let r=1;return e.roughness>=1&&(((t=e.randomizer)===null||t===void 0?void 0:t.next())||Math.random())>.7&&(r=o),ga(n,o,s,r||1)}class On{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const s=Xe(e,t);return{type:"fillSketch",ops:this.renderLines(s,t)}}renderLines(e,t){const s=[];for(const o of e)s.push(...this.helper.doubleLineOps(o[0][0],o[0][1],o[1][0],o[1][1],t));return s}}function jt(n){const e=n[0],t=n[1];return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}class ya extends On{fillPolygons(e,t){let s=t.hachureGap;s<0&&(s=t.strokeWidth*4),s=Math.max(s,.1);const o=Object.assign({},t,{hachureGap:s}),r=Xe(e,o),i=Math.PI/180*t.hachureAngle,a=[],l=s*.5*Math.cos(i),c=s*.5*Math.sin(i);for(const[d,h]of r)jt([d,h])&&a.push([[d[0]-l,d[1]+c],[...h]],[[d[0]+l,d[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,t)}}}class va extends On{fillPolygons(e,t){const s=this._fillPolygons(e,t),o=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),r=this._fillPolygons(e,o);return s.ops=s.ops.concat(r.ops),s}}class ba{constructor(e){this.helper=e}fillPolygons(e,t){t=Object.assign({},t,{hachureAngle:0});const s=Xe(e,t);return this.dotsOnLines(s,t)}dotsOnLines(e,t){const s=[];let o=t.hachureGap;o<0&&(o=t.strokeWidth*4),o=Math.max(o,.1);let r=t.fillWeight;r<0&&(r=t.strokeWidth/2);const i=o/4;for(const a of e){const l=jt(a),c=l/o,f=Math.ceil(c)-1,d=l-f*o,h=(a[0][0]+a[1][0])/2-o/4,u=Math.min(a[0][1],a[1][1]);for(let g=0;g<f;g++){const p=u+d+g*o,m=h-i+Math.random()*2*i,y=p-i+Math.random()*2*i,v=this.helper.ellipse(m,y,r,r,t);s.push(...v.ops)}}return{type:"fillSketch",ops:s}}}class wa{constructor(e){this.helper=e}fillPolygons(e,t){const s=Xe(e,t);return{type:"fillSketch",ops:this.dashedLine(s,t)}}dashedLine(e,t){const s=t.dashOffset<0?t.hachureGap<0?t.strokeWidth*4:t.hachureGap:t.dashOffset,o=t.dashGap<0?t.hachureGap<0?t.strokeWidth*4:t.hachureGap:t.dashGap,r=[];return e.forEach(i=>{const a=jt(i),l=Math.floor(a/(s+o)),c=(a+o-l*(s+o))/2;let f=i[0],d=i[1];f[0]>d[0]&&(f=i[1],d=i[0]);const h=Math.atan((d[1]-f[1])/(d[0]-f[0]));for(let u=0;u<l;u++){const g=u*(s+o),p=g+s,m=[f[0]+g*Math.cos(h)+c*Math.cos(h),f[1]+g*Math.sin(h)+c*Math.sin(h)],y=[f[0]+p*Math.cos(h)+c*Math.cos(h),f[1]+p*Math.sin(h)+c*Math.sin(h)];r.push(...this.helper.doubleLineOps(m[0],m[1],y[0],y[1],t))}}),r}}class ka{constructor(e){this.helper=e}fillPolygons(e,t){const s=t.hachureGap<0?t.strokeWidth*4:t.hachureGap,o=t.zigzagOffset<0?s:t.zigzagOffset;t=Object.assign({},t,{hachureGap:s+o});const r=Xe(e,t);return{type:"fillSketch",ops:this.zigzagLines(r,o,t)}}zigzagLines(e,t,s){const o=[];return e.forEach(r=>{const i=jt(r),a=Math.round(i/(2*t));let l=r[0],c=r[1];l[0]>c[0]&&(l=r[1],c=r[0]);const f=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let d=0;d<a;d++){const h=d*2*t,u=(d+1)*2*t,g=Math.sqrt(2*Math.pow(t,2)),p=[l[0]+h*Math.cos(f),l[1]+h*Math.sin(f)],m=[l[0]+u*Math.cos(f),l[1]+u*Math.sin(f)],y=[p[0]+g*Math.cos(f+Math.PI/4),p[1]+g*Math.sin(f+Math.PI/4)];o.push(...this.helper.doubleLineOps(p[0],p[1],y[0],y[1],s),...this.helper.doubleLineOps(y[0],y[1],m[0],m[1],s))}}),o}}const B={};function _a(n,e){let t=n.fillStyle||"hachure";if(!B[t])switch(t){case"zigzag":B[t]||(B[t]=new ya(e));break;case"cross-hatch":B[t]||(B[t]=new va(e));break;case"dots":B[t]||(B[t]=new ba(e));break;case"dashed":B[t]||(B[t]=new wa(e));break;case"zigzag-line":B[t]||(B[t]=new ka(e));break;case"hachure":default:t="hachure",B[t]||(B[t]=new On(e));break}return B[t]}const Sa=0,an=1,Gs=2,at={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Ma(n){const e=new Array;for(;n!=="";)if(n.match(/^([ \t\r\n,]+)/))n=n.substr(RegExp.$1.length);else if(n.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:Sa,text:RegExp.$1},n=n.substr(RegExp.$1.length);else if(n.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:an,text:`${parseFloat(RegExp.$1)}`},n=n.substr(RegExp.$1.length);else return[];return e[e.length]={type:Gs,text:""},e}function qt(n,e){return n.type===e}function Cn(n){const e=[],t=Ma(n);let s="BOD",o=0,r=t[o];for(;!qt(r,Gs);){let i=0;const a=[];if(s==="BOD")if(r.text==="M"||r.text==="m")o++,i=at[r.text],s=r.text;else return Cn("M0,0"+n);else qt(r,an)?i=at[s]:(o++,i=at[r.text],s=r.text);if(o+i<t.length){for(let l=o;l<o+i;l++){const c=t[l];if(qt(c,an))a[a.length]=+c.text;else throw new Error("Param not a number: "+s+","+c.text)}if(typeof at[s]=="number"){const l={key:s,data:a};e.push(l),o+=i,r=t[o],s==="M"&&(s="L"),s==="m"&&(s="l")}else throw new Error("Bad segment: "+s)}else throw new Error("Path data ended short")}return e}function Qs(n){let e=0,t=0,s=0,o=0;const r=[];for(const{key:i,data:a}of n)switch(i){case"M":r.push({key:"M",data:[...a]}),[e,t]=a,[s,o]=a;break;case"m":e+=a[0],t+=a[1],r.push({key:"M",data:[e,t]}),s=e,o=t;break;case"L":r.push({key:"L",data:[...a]}),[e,t]=a;break;case"l":e+=a[0],t+=a[1],r.push({key:"L",data:[e,t]});break;case"C":r.push({key:"C",data:[...a]}),e=a[4],t=a[5];break;case"c":{const l=a.map((c,f)=>f%2?c+t:c+e);r.push({key:"C",data:l}),e=l[4],t=l[5];break}case"Q":r.push({key:"Q",data:[...a]}),e=a[2],t=a[3];break;case"q":{const l=a.map((c,f)=>f%2?c+t:c+e);r.push({key:"Q",data:l}),e=l[2],t=l[3];break}case"A":r.push({key:"A",data:[...a]}),e=a[5],t=a[6];break;case"a":e+=a[5],t+=a[6],r.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,t]});break;case"H":r.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],r.push({key:"H",data:[e]});break;case"V":r.push({key:"V",data:[...a]}),t=a[0];break;case"v":t+=a[0],r.push({key:"V",data:[t]});break;case"S":r.push({key:"S",data:[...a]}),e=a[2],t=a[3];break;case"s":{const l=a.map((c,f)=>f%2?c+t:c+e);r.push({key:"S",data:l}),e=l[2],t=l[3];break}case"T":r.push({key:"T",data:[...a]}),e=a[0],t=a[1];break;case"t":e+=a[0],t+=a[1],r.push({key:"T",data:[e,t]});break;case"Z":case"z":r.push({key:"Z",data:[]}),e=s,t=o;break}return r}function Zs(n){const e=[];let t="",s=0,o=0,r=0,i=0,a=0,l=0;for(const{key:c,data:f}of n){switch(c){case"M":e.push({key:"M",data:[...f]}),[s,o]=f,[r,i]=f;break;case"C":e.push({key:"C",data:[...f]}),s=f[4],o=f[5],a=f[2],l=f[3];break;case"L":e.push({key:"L",data:[...f]}),[s,o]=f;break;case"H":s=f[0],e.push({key:"L",data:[s,o]});break;case"V":o=f[0],e.push({key:"L",data:[s,o]});break;case"S":{let d=0,h=0;t==="C"||t==="S"?(d=s+(s-a),h=o+(o-l)):(d=s,h=o),e.push({key:"C",data:[d,h,...f]}),a=f[0],l=f[1],s=f[2],o=f[3];break}case"T":{const[d,h]=f;let u=0,g=0;t==="Q"||t==="T"?(u=s+(s-a),g=o+(o-l)):(u=s,g=o);const p=s+2*(u-s)/3,m=o+2*(g-o)/3,y=d+2*(u-d)/3,v=h+2*(g-h)/3;e.push({key:"C",data:[p,m,y,v,d,h]}),a=u,l=g,s=d,o=h;break}case"Q":{const[d,h,u,g]=f,p=s+2*(d-s)/3,m=o+2*(h-o)/3,y=u+2*(d-u)/3,v=g+2*(h-g)/3;e.push({key:"C",data:[p,m,y,v,u,g]}),a=d,l=h,s=u,o=g;break}case"A":{const d=Math.abs(f[0]),h=Math.abs(f[1]),u=f[2],g=f[3],p=f[4],m=f[5],y=f[6];d===0||h===0?(e.push({key:"C",data:[s,o,m,y,m,y]}),s=m,o=y):(s!==m||o!==y)&&(Ys(s,o,m,y,d,h,u,g,p).forEach(function(b){e.push({key:"C",data:b})}),s=m,o=y);break}case"Z":e.push({key:"Z",data:[]}),s=r,o=i;break}t=c}return e}function Oa(n){return Math.PI*n/180}function qe(n,e,t){const s=n*Math.cos(t)-e*Math.sin(t),o=n*Math.sin(t)+e*Math.cos(t);return[s,o]}function Ys(n,e,t,s,o,r,i,a,l,c){const f=Oa(i);let d=[],h=0,u=0,g=0,p=0;if(c)[h,u,g,p]=c;else{[n,e]=qe(n,e,-f),[t,s]=qe(t,s,-f);const M=(n-t)/2,E=(e-s)/2;let H=M*M/(o*o)+E*E/(r*r);H>1&&(H=Math.sqrt(H),o=H*o,r=H*r);const N=a===l?-1:1,P=o*o,ie=r*r,ce=P*ie-P*E*E-ie*M*M,Ve=P*E*E+ie*M*M,J=N*Math.sqrt(Math.abs(ce/Ve));g=J*o*E/r+(n+t)/2,p=J*-r*M/o+(e+s)/2,h=Math.asin(parseFloat(((e-p)/r).toFixed(9))),u=Math.asin(parseFloat(((s-p)/r).toFixed(9))),n<g&&(h=Math.PI-h),t<g&&(u=Math.PI-u),h<0&&(h=Math.PI*2+h),u<0&&(u=Math.PI*2+u),l&&h>u&&(h=h-Math.PI*2),!l&&u>h&&(u=u-Math.PI*2)}let m=u-h;if(Math.abs(m)>Math.PI*120/180){const M=u,E=t,H=s;l&&u>h?u=h+Math.PI*120/180*1:u=h+Math.PI*120/180*-1,t=g+o*Math.cos(u),s=p+r*Math.sin(u),d=Ys(t,s,E,H,o,r,i,0,l,[u,M,g,p])}m=u-h;const y=Math.cos(h),v=Math.sin(h),b=Math.cos(u),w=Math.sin(u),_=Math.tan(m/4),C=4/3*o*_,T=4/3*r*_,D=[n,e],z=[n+C*v,e-T*y],le=[t+C*w,s-T*b],Y=[t,s];if(z[0]=2*D[0]-z[0],z[1]=2*D[1]-z[1],c)return[z,le,Y].concat(d);{d=[z,le,Y].concat(d);const M=[];for(let E=0;E<d.length;E+=3){const H=qe(d[E][0],d[E][1],f),N=qe(d[E+1][0],d[E+1][1],f),P=qe(d[E+2][0],d[E+2][1],f);M.push([H[0],H[1],N[0],N[1],P[0],P[1]])}return M}}const Ca={randOffset:Pa,randOffsetWithRange:La,ellipse:ln,doubleLineOps:$a};function X(n,e,t,s,o){return{type:"path",ops:fe(n,e,t,s,o)}}function Qe(n,e,t){const s=(n||[]).length;if(s>2){const o=[];for(let r=0;r<s-1;r++)o.push(...fe(n[r][0],n[r][1],n[r+1][0],n[r+1][1],t));return e&&o.push(...fe(n[s-1][0],n[s-1][1],n[0][0],n[0][1],t)),{type:"path",ops:o}}else if(s===2)return X(n[0][0],n[0][1],n[1][0],n[1][1],t);return{type:"path",ops:[]}}function Ea(n,e){return Qe(n,!0,e)}function Xs(n,e,t,s,o){const r=[[n,e],[n+t,e],[n+t,e+s],[n,e+s]];return Ea(r,o)}function ss(n,e){if(n.length){const s=typeof n[0][0]=="number"?[n]:n,o=lt(s[0],1*(1+e.roughness*.2),e),r=e.disableMultiStroke?[]:lt(s[0],1.5*(1+e.roughness*.22),is(e));for(let i=1;i<s.length;i++){const a=s[i];if(a.length){const l=lt(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:lt(a,1.5*(1+e.roughness*.22),is(e));for(const f of l)f.op!=="move"&&o.push(f);for(const f of c)f.op!=="move"&&r.push(f)}}return{type:"path",ops:o.concat(r)}}return{type:"path",ops:[]}}function ln(n,e,t,s,o){const r=eo(t,s,o);return cn(n,e,o,r).opset}function eo(n,e,t){const s=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(n/2,2)+Math.pow(e/2,2))/2)),o=Math.ceil(Math.max(t.curveStepCount,t.curveStepCount/Math.sqrt(200)*s)),r=Math.PI*2/o;let i=Math.abs(n/2),a=Math.abs(e/2);const l=1-t.curveFitting;return i+=S(i*l,t),a+=S(a*l,t),{increment:r,rx:i,ry:a}}function cn(n,e,t,s){const[o,r]=as(s.increment,n,e,s.rx,s.ry,1,s.increment*St(.1,St(.4,1,t),t),t);let i=Mt(o,null,t);if(!t.disableMultiStroke&&t.roughness!==0){const[a]=as(s.increment,n,e,s.rx,s.ry,1.5,0,t),l=Mt(a,null,t);i=i.concat(l)}return{estimatedPoints:r,opset:{type:"path",ops:i}}}function os(n,e,t,s,o,r,i,a,l){const c=n,f=e;let d=Math.abs(t/2),h=Math.abs(s/2);d+=S(d*.01,l),h+=S(h*.01,l);let u=o,g=r;for(;u<0;)u+=Math.PI*2,g+=Math.PI*2;g-u>Math.PI*2&&(u=0,g=Math.PI*2);const p=Math.PI*2/l.curveStepCount,m=Math.min(p/2,(g-u)/2),y=ls(m,c,f,d,h,u,g,1,l);if(!l.disableMultiStroke){const v=ls(m,c,f,d,h,u,g,1.5,l);y.push(...v)}return i&&(a?y.push(...fe(c,f,c+d*Math.cos(u),f+h*Math.sin(u),l),...fe(c,f,c+d*Math.cos(g),f+h*Math.sin(g),l)):y.push({op:"lineTo",data:[c,f]},{op:"lineTo",data:[c+d*Math.cos(u),f+h*Math.sin(u)]})),{type:"path",ops:y}}function rs(n,e){const t=Zs(Qs(Cn(n))),s=[];let o=[0,0],r=[0,0];for(const{key:i,data:a}of t)switch(i){case"M":{r=[a[0],a[1]],o=[a[0],a[1]];break}case"L":s.push(...fe(r[0],r[1],a[0],a[1],e)),r=[a[0],a[1]];break;case"C":{const[l,c,f,d,h,u]=a;s.push(...Aa(l,c,f,d,h,u,r,e)),r=[h,u];break}case"Z":s.push(...fe(r[0],r[1],o[0],o[1],e)),r=[o[0],o[1]];break}return{type:"path",ops:s}}function Ut(n,e){const t=[];for(const s of n)if(s.length){const o=e.maxRandomnessOffset||0,r=s.length;if(r>2){t.push({op:"move",data:[s[0][0]+S(o,e),s[0][1]+S(o,e)]});for(let i=1;i<r;i++)t.push({op:"lineTo",data:[s[i][0]+S(o,e),s[i][1]+S(o,e)]})}}return{type:"fillPath",ops:t}}function Re(n,e){return _a(e,Ca).fillPolygons(n,e)}function Ta(n,e,t,s,o,r,i){const a=n,l=e;let c=Math.abs(t/2),f=Math.abs(s/2);c+=S(c*.01,i),f+=S(f*.01,i);let d=o,h=r;for(;d<0;)d+=Math.PI*2,h+=Math.PI*2;h-d>Math.PI*2&&(d=0,h=Math.PI*2);const u=(h-d)/i.curveStepCount,g=[];for(let p=d;p<=h;p=p+u)g.push([a+c*Math.cos(p),l+f*Math.sin(p)]);return g.push([a+c*Math.cos(h),l+f*Math.sin(h)]),g.push([a,l]),Re([g],i)}function Pa(n,e){return S(n,e)}function La(n,e,t){return St(n,e,t)}function $a(n,e,t,s,o){return fe(n,e,t,s,o,!0)}function is(n){const e=Object.assign({},n);return e.randomizer=void 0,n.seed&&(e.seed=n.seed+1),e}function to(n){return n.randomizer||(n.randomizer=new ha(n.seed||0)),n.randomizer.next()}function St(n,e,t,s=1){return t.roughness*s*(to(t)*(e-n)+n)}function S(n,e,t=1){return St(-n,n,e,t)}function fe(n,e,t,s,o,r=!1){const i=r?o.disableMultiStrokeFill:o.disableMultiStroke,a=un(n,e,t,s,o,!0,!1);if(i)return a;const l=un(n,e,t,s,o,!0,!0);return a.concat(l)}function un(n,e,t,s,o,r,i){const a=Math.pow(n-t,2)+Math.pow(e-s,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let f=o.maxRandomnessOffset||0;f*f*100>a&&(f=l/10);const d=f/2,h=.2+to(o)*.2;let u=o.bowing*o.maxRandomnessOffset*(s-e)/200,g=o.bowing*o.maxRandomnessOffset*(n-t)/200;u=S(u,o,c),g=S(g,o,c);const p=[],m=()=>S(d,o,c),y=()=>S(f,o,c),v=o.preserveVertices;return i?p.push({op:"move",data:[n+(v?0:m()),e+(v?0:m())]}):p.push({op:"move",data:[n+(v?0:S(f,o,c)),e+(v?0:S(f,o,c))]}),i?p.push({op:"bcurveTo",data:[u+n+(t-n)*h+m(),g+e+(s-e)*h+m(),u+n+2*(t-n)*h+m(),g+e+2*(s-e)*h+m(),t+(v?0:m()),s+(v?0:m())]}):p.push({op:"bcurveTo",data:[u+n+(t-n)*h+y(),g+e+(s-e)*h+y(),u+n+2*(t-n)*h+y(),g+e+2*(s-e)*h+y(),t+(v?0:y()),s+(v?0:y())]}),p}function lt(n,e,t){if(!n.length)return[];const s=[];s.push([n[0][0]+S(e,t),n[0][1]+S(e,t)]),s.push([n[0][0]+S(e,t),n[0][1]+S(e,t)]);for(let o=1;o<n.length;o++)s.push([n[o][0]+S(e,t),n[o][1]+S(e,t)]),o===n.length-1&&s.push([n[o][0]+S(e,t),n[o][1]+S(e,t)]);return Mt(s,null,t)}function Mt(n,e,t){const s=n.length,o=[];if(s>3){const r=[],i=1-t.curveTightness;o.push({op:"move",data:[n[1][0],n[1][1]]});for(let a=1;a+2<s;a++){const l=n[a];r[0]=[l[0],l[1]],r[1]=[l[0]+(i*n[a+1][0]-i*n[a-1][0])/6,l[1]+(i*n[a+1][1]-i*n[a-1][1])/6],r[2]=[n[a+1][0]+(i*n[a][0]-i*n[a+2][0])/6,n[a+1][1]+(i*n[a][1]-i*n[a+2][1])/6],r[3]=[n[a+1][0],n[a+1][1]],o.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[3][0],r[3][1]]})}}else s===3?(o.push({op:"move",data:[n[1][0],n[1][1]]}),o.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[2][0],n[2][1]]})):s===2&&o.push(...un(n[0][0],n[0][1],n[1][0],n[1][1],t,!0,!0));return o}function as(n,e,t,s,o,r,i,a){const l=a.roughness===0,c=[],f=[];if(l){n=n/4,f.push([e+s*Math.cos(-n),t+o*Math.sin(-n)]);for(let d=0;d<=Math.PI*2;d=d+n){const h=[e+s*Math.cos(d),t+o*Math.sin(d)];c.push(h),f.push(h)}f.push([e+s*Math.cos(0),t+o*Math.sin(0)]),f.push([e+s*Math.cos(n),t+o*Math.sin(n)])}else{const d=S(.5,a)-Math.PI/2;f.push([S(r,a)+e+.9*s*Math.cos(d-n),S(r,a)+t+.9*o*Math.sin(d-n)]);const h=Math.PI*2+d-.01;for(let u=d;u<h;u=u+n){const g=[S(r,a)+e+s*Math.cos(u),S(r,a)+t+o*Math.sin(u)];c.push(g),f.push(g)}f.push([S(r,a)+e+s*Math.cos(d+Math.PI*2+i*.5),S(r,a)+t+o*Math.sin(d+Math.PI*2+i*.5)]),f.push([S(r,a)+e+.98*s*Math.cos(d+i),S(r,a)+t+.98*o*Math.sin(d+i)]),f.push([S(r,a)+e+.9*s*Math.cos(d+i*.5),S(r,a)+t+.9*o*Math.sin(d+i*.5)])}return[f,c]}function ls(n,e,t,s,o,r,i,a,l){const c=r+S(.1,l),f=[];f.push([S(a,l)+e+.9*s*Math.cos(c-n),S(a,l)+t+.9*o*Math.sin(c-n)]);for(let d=c;d<=i;d=d+n)f.push([S(a,l)+e+s*Math.cos(d),S(a,l)+t+o*Math.sin(d)]);return f.push([e+s*Math.cos(i),t+o*Math.sin(i)]),f.push([e+s*Math.cos(i),t+o*Math.sin(i)]),Mt(f,null,l)}function Aa(n,e,t,s,o,r,i,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let f=[0,0];const d=a.disableMultiStroke?1:2,h=a.preserveVertices;for(let u=0;u<d;u++)u===0?l.push({op:"move",data:[i[0],i[1]]}):l.push({op:"move",data:[i[0]+(h?0:S(c[0],a)),i[1]+(h?0:S(c[0],a))]}),f=h?[o,r]:[o+S(c[u],a),r+S(c[u],a)],l.push({op:"bcurveTo",data:[n+S(c[u],a),e+S(c[u],a),t+S(c[u],a),s+S(c[u],a),f[0],f[1]]});return l}function Ue(n){return[...n]}function cs(n,e=0){const t=n.length;if(t<3)throw new Error("A curve must have at least three points.");const s=[];if(t===3)s.push(Ue(n[0]),Ue(n[1]),Ue(n[2]),Ue(n[2]));else{const o=[];o.push(n[0],n[0]);for(let a=1;a<n.length;a++)o.push(n[a]),a===n.length-1&&o.push(n[a]);const r=[],i=1-e;s.push(Ue(o[0]));for(let a=1;a+2<o.length;a++){const l=o[a];r[0]=[l[0],l[1]],r[1]=[l[0]+(i*o[a+1][0]-i*o[a-1][0])/6,l[1]+(i*o[a+1][1]-i*o[a-1][1])/6],r[2]=[o[a+1][0]+(i*o[a][0]-i*o[a+2][0])/6,o[a+1][1]+(i*o[a][1]-i*o[a+2][1])/6],r[3]=[o[a+1][0],o[a+1][1]],s.push(r[1],r[2],r[3])}}return s}function Ra(n,e){return Math.sqrt(gt(n,e))}function gt(n,e){return Math.pow(n[0]-e[0],2)+Math.pow(n[1]-e[1],2)}function Na(n,e,t){const s=gt(e,t);if(s===0)return gt(n,e);let o=((n[0]-e[0])*(t[0]-e[0])+(n[1]-e[1])*(t[1]-e[1]))/s;return o=Math.max(0,Math.min(1,o)),gt(n,Ce(e,t,o))}function Ce(n,e,t){return[n[0]+(e[0]-n[0])*t,n[1]+(e[1]-n[1])*t]}function ja(n,e){const t=n[e+0],s=n[e+1],o=n[e+2],r=n[e+3];let i=3*s[0]-2*t[0]-r[0];i*=i;let a=3*s[1]-2*t[1]-r[1];a*=a;let l=3*o[0]-2*r[0]-t[0];l*=l;let c=3*o[1]-2*r[1]-t[1];return c*=c,i<l&&(i=l),a<c&&(a=c),i+a}function fn(n,e,t,s){const o=s||[];if(ja(n,e)<t){const r=n[e+0];o.length?Ra(o[o.length-1],r)>1&&o.push(r):o.push(r),o.push(n[e+3])}else{const i=n[e+0],a=n[e+1],l=n[e+2],c=n[e+3],f=Ce(i,a,.5),d=Ce(a,l,.5),h=Ce(l,c,.5),u=Ce(f,d,.5),g=Ce(d,h,.5),p=Ce(u,g,.5);fn([i,f,u,p],0,t,o),fn([p,g,h,c],0,t,o)}return o}function Da(n,e){return Ot(n,0,n.length,e)}function Ot(n,e,t,s,o){const r=o||[],i=n[e],a=n[t-1];let l=0,c=1;for(let f=e+1;f<t-1;++f){const d=Na(n[f],i,a);d>l&&(l=d,c=f)}return Math.sqrt(l)>s?(Ot(n,e,c+1,s,r),Ot(n,c,t,s,r)):(r.length||r.push(i),r.push(a)),r}function hn(n,e=.15,t){const s=[],o=(n.length-1)/3;for(let r=0;r<o;r++){const i=r*3;fn(n,i,e,s)}return t&&t>0?Ot(s,0,s.length,t):s}function Ia(n,e,t){const s=Cn(n),o=Zs(Qs(s)),r=[];let i=[],a=[0,0],l=[];const c=()=>{l.length>=4&&i.push(...hn(l,e)),l=[]},f=()=>{c(),i.length&&(r.push(i),i=[])};for(const{key:h,data:u}of o)switch(h){case"M":f(),a=[u[0],u[1]],i.push(a);break;case"L":c(),i.push([u[0],u[1]]);break;case"C":if(!l.length){const g=i.length?i[i.length-1]:a;l.push([g[0],g[1]])}l.push([u[0],u[1]]),l.push([u[2],u[3]]),l.push([u[4],u[5]]);break;case"Z":c(),i.push([a[0],a[1]]);break}if(f(),!t)return r;const d=[];for(const h of r){const u=Da(h,t);u.length&&d.push(u)}return d}const G="none";class Ha{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Ks()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,s){return{shape:e,sets:t||[],options:s||this.defaultOptions}}line(e,t,s,o,r){const i=this._o(r);return this._d("line",[X(e,t,s,o,i)],i)}rectangle(e,t,s,o,r){const i=this._o(r),a=[],l=Xs(e,t,s,o,i);if(i.fill){const c=[[e,t],[e+s,t],[e+s,t+o],[e,t+o]];i.fillStyle==="solid"?a.push(Ut([c],i)):a.push(Re([c],i))}return i.stroke!==G&&a.push(l),this._d("rectangle",a,i)}ellipse(e,t,s,o,r){const i=this._o(r),a=[],l=eo(s,o,i),c=cn(e,t,i,l);if(i.fill)if(i.fillStyle==="solid"){const f=cn(e,t,i,l).opset;f.type="fillPath",a.push(f)}else a.push(Re([c.estimatedPoints],i));return i.stroke!==G&&a.push(c.opset),this._d("ellipse",a,i)}circle(e,t,s,o){const r=this.ellipse(e,t,s,s,o);return r.shape="circle",r}linearPath(e,t){const s=this._o(t);return this._d("linearPath",[Qe(e,!1,s)],s)}arc(e,t,s,o,r,i,a=!1,l){const c=this._o(l),f=[],d=os(e,t,s,o,r,i,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const u=os(e,t,s,o,r,i,!0,!1,h);u.type="fillPath",f.push(u)}else f.push(Ta(e,t,s,o,r,i,c));return c.stroke!==G&&f.push(d),this._d("arc",f,c)}curve(e,t){const s=this._o(t),o=[],r=ss(e,s);if(s.fill&&s.fill!==G)if(s.fillStyle==="solid"){const i=ss(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else{const i=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const f of c)f.length<3?i.push(...f):f.length===3?i.push(...hn(cs([f[0],f[0],f[1],f[2]]),10,(1+s.roughness)/2)):i.push(...hn(cs(f),10,(1+s.roughness)/2))}i.length&&o.push(Re([i],s))}return s.stroke!==G&&o.push(r),this._d("curve",o,s)}polygon(e,t){const s=this._o(t),o=[],r=Qe(e,!0,s);return s.fill&&(s.fillStyle==="solid"?o.push(Ut([e],s)):o.push(Re([e],s))),s.stroke!==G&&o.push(r),this._d("polygon",o,s)}path(e,t){const s=this._o(t),o=[];if(!e)return this._d("path",o,s);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const r=s.fill&&s.fill!=="transparent"&&s.fill!==G,i=s.stroke!==G,a=!!(s.simplification&&s.simplification<1),l=a?4-4*(s.simplification||1):(1+s.roughness)/2,c=Ia(e,1,l),f=rs(e,s);if(r)if(s.fillStyle==="solid")if(c.length===1){const d=rs(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));o.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else o.push(Ut(c,s));else o.push(Re(c,s));return i&&(a?c.forEach(d=>{o.push(Qe(d,!1,s))}):o.push(f)),this._d("path",o,s)}opsToPath(e,t){let s="";for(const o of e.ops){const r=typeof t=="number"&&t>=0?o.data.map(i=>+i.toFixed(t)):o.data;switch(o.op){case"move":s+=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}return s.trim()}toPaths(e){const t=e.sets||[],s=e.options||this.defaultOptions,o=[];for(const r of t){let i=null;switch(r.type){case"path":i={d:this.opsToPath(r),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:G};break;case"fillPath":i={d:this.opsToPath(r),stroke:G,strokeWidth:0,fill:s.fill||G};break;case"fillSketch":i=this.fillSketch(r,s);break}i&&o.push(i)}return o}fillSketch(e,t){let s=t.fillWeight;return s<0&&(s=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||G,strokeWidth:s,fill:G}}_mergedShape(e){return e.filter((t,s)=>s===0?!0:t.op!=="move")}}const no="http://www.w3.org/2000/svg",xa=800;let Jt=null;function Fa(){return Jt||(Jt=new Ha().defaultOptions),Jt}function Kt(n,e,t){return{...Fa(),maxRandomnessOffset:2,roughness:n==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:n!=="double",disableMultiStrokeFill:!1,seed:e,...t}}function Va(n){const e=n.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const t=e;if(t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}}return[5,5,5,5]}function za(n,e,t,s,o,r){const i=[];let a=t.strokeWidth||2;const l=Va(t),c=t.animate===void 0?!0:!!t.animate,f=t.iterations||2,d=t.rtl?1:0,h=Kt("single",r,t);switch(t.type){case"underline":{const u=e.y+e.h+l[2];for(let g=d;g<f+d;g++)g%2?i.push(X(e.x+e.w,u,e.x,u,h)):i.push(X(e.x,u,e.x+e.w,u,h));break}case"strike-through":{const u=e.y+e.h/2;for(let g=d;g<f+d;g++)g%2?i.push(X(e.x+e.w,u,e.x,u,h)):i.push(X(e.x,u,e.x+e.w,u,h));break}case"box":{const u=e.x-l[3],g=e.y-l[0],p=e.w+(l[1]+l[3]),m=e.h+(l[0]+l[2]);for(let y=0;y<f;y++)i.push(Xs(u,g,p,m,h));break}case"bracket":{const u=Array.isArray(t.brackets)?t.brackets:t.brackets?[t.brackets]:["right"],g=e.x-l[3]*2,p=e.x+e.w+l[1]*2,m=e.y-l[0]*2,y=e.y+e.h+l[2]*2;for(const v of u){let b;switch(v){case"bottom":b=[[g,e.y+e.h],[g,y],[p,y],[p,e.y+e.h]];break;case"top":b=[[g,e.y],[g,m],[p,m],[p,e.y]];break;case"left":b=[[e.x,m],[g,m],[g,y],[e.x,y]];break;case"right":b=[[e.x+e.w,m],[p,m],[p,y],[e.x+e.w,y]];break}b&&i.push(Qe(b,!1,h))}break}case"crossed-off":{const u=e.x,g=e.y,p=u+e.w,m=g+e.h;for(let y=d;y<f+d;y++)y%2?i.push(X(p,m,u,g,h)):i.push(X(u,g,p,m,h));for(let y=d;y<f+d;y++)y%2?i.push(X(u,m,p,g,h)):i.push(X(p,g,u,m,h));break}case"circle":{const u=Kt("double",r,t),g=e.w+(l[1]+l[3]),p=e.h+(l[0]+l[2]),m=e.x-l[3]+g/2,y=e.y-l[0]+p/2,v=Math.floor(f/2),b=f-v*2;for(let w=0;w<v;w++)i.push(ln(m,y,g,p,u));for(let w=0;w<b;w++)i.push(ln(m,y,g,p,h));break}case"highlight":{const u=Kt("highlight",r,t);a=e.h*.95;const g=e.y+e.h/2;for(let p=d;p<f+d;p++)p%2?i.push(X(e.x+e.w,g,e.x,g,u)):i.push(X(e.x,g,e.x+e.w,g,u));break}}if(i.length){const u=Ba(i),g=[],p=[];let m=0;const y=(v,b,w)=>v.setAttribute(b,w);for(const v of u){const b=document.createElementNS(no,"path");if(y(b,"d",v),y(b,"fill","none"),y(b,"stroke",t.color||"currentColor"),y(b,"stroke-width",`${a}`),t.opacity!==void 0&&y(b,"style",`opacity:${t.opacity}`),c){const w=b.getTotalLength();g.push(w),m+=w}n.appendChild(b),p.push(b)}if(c){let v=0;for(let b=0;b<p.length;b++){const w=p[b],_=g[b],C=m?o*(_/m):0,T=s+v,D=w.style;D.strokeDashoffset=`${_}`,D.strokeDasharray=`${_}`,D.animation=`rough-notation-dash ${C}ms ease-out ${T}ms forwards`,v+=C}return us(o+s)}}return us(0)}function us(n){return new Promise(e=>setTimeout(e,n))}function Ba(n){const e=[];for(const t of n){let s="";for(const o of t.ops){const r=o.data;switch(o.op){case"move":s.trim()&&e.push(s.trim()),s=`M${r[0]} ${r[1]} `;break;case"bcurveTo":s+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":s+=`L${r[0]} ${r[1]} `;break}}s.trim()&&e.push(s.trim())}return e}function Wa(){if(!window.__rno_kf_s){const n=window.__rno_kf_s=document.createElement("style");n.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(n)}}var qa=Object.defineProperty,Ua=(n,e,t)=>e in n?qa(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ne=(n,e,t)=>(Ua(n,typeof e!="symbol"?e+"":e,t),t);class Ja{constructor(e,t){ne(this,"_state","unattached"),ne(this,"_config"),ne(this,"_resizing",!1),ne(this,"_ro"),ne(this,"_seed",Ks()),ne(this,"_e"),ne(this,"_svg"),ne(this,"_lastSizes",[]),ne(this,"_animationDelay",0),ne(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),ne(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,t){this._config[e]!==t&&(this._config[e]=t,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){Wa();const e=this._svg=document.createElementNS(no,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const t=e.style;t.position="absolute",t.top="0",t.left="0",t.overflow="visible",t.pointerEvents="none",t.width="100px",t.height="100px";const s=this._config.type==="highlight";if(this._e.insertAdjacentElement(s?"beforebegin":"afterend",e),this._state="not-showing",s){const o=window.getComputedStyle(this._e).position;(!o||o==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let t=0;t<e.length;t++)if(!this.isSameRect(e[t],this._lastSizes[t]))return!0}else return!0}return!1}isSameRect(e,t){const s=(o,r)=>Math.round(o)===Math.round(r);return s(e.x,t.x)&&s(e.y,t.y)&&s(e.w,t.w)&&s(e.h,t.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,t){let s=this._config;t&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const o=this.rects();let r=0;o.forEach(c=>r+=c.w);const i=s.animationDuration||xa;let a=0;const l=[];for(let c=0;c<o.length;c++){const f=o[c],d=i*(f.w/r);l.push(za(e,o[c],s,a+this._animationDelay+(this._config.delay||0),d,this._seed)),a+=d}return this._lastSizes=o,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const t=this._e.getClientRects();for(let s=0;s<t.length;s++)e.push(this.svgRect(this._svg,t[s]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,t){const s=e.getBoundingClientRect(),o=t;return{x:(o.x||o.left)-(s.x||s.left),y:(o.y||o.top)-(s.y||s.top),w:o.width,h:o.height}}}function Ka(n,e){return new Ja(n,e)}function W(n,e){return n.class=[n.class,e].filter(Boolean).join(" "),n}const fs={box:n=>Object.assign(n,{type:"box"}),circle:n=>Object.assign(n,{type:"circle"}),underline:n=>Object.assign(n,{type:"underline"}),highlight:n=>Object.assign(n,{type:"highlight"}),"strike-through":n=>Object.assign(n,{type:"strike-through"}),"crossed-off":n=>Object.assign(n,{type:"crossed-off"}),bracket:n=>Object.assign(n,{type:"bracket"}),strike:n=>Object.assign(n,{type:"strike-through"}),cross:n=>Object.assign(n,{type:"crossed-off"}),crossed:n=>Object.assign(n,{type:"crossed-off"}),linethrough:n=>Object.assign(n,{type:"strike-through"}),"line-through":n=>Object.assign(n,{type:"strike-through"}),black:n=>W(n,"text-black"),blue:n=>W(n,"text-blue"),cyan:n=>W(n,"text-cyan"),gray:n=>W(n,"text-gray"),green:n=>W(n,"text-green"),indigo:n=>W(n,"text-indigo"),lime:n=>W(n,"text-lime"),orange:n=>W(n,"text-orange"),pink:n=>W(n,"text-pink"),purple:n=>W(n,"text-purple"),red:n=>W(n,"text-red"),teal:n=>W(n,"text-teal"),white:n=>W(n,"text-white"),yellow:n=>W(n,"text-yellow")},Ga=[[/^delay-?(\d+)?$/,(n,e,t)=>{const s=(n[1]?Number.parseInt(n[1]):t)||300;return e.delay=s,e}],[/^(?:op|opacity)-?(\d+)?$/,(n,e,t)=>{const s=(n[1]?Number.parseInt(n[1]):t)||100;return e.opacity=s/100,e}]];function Qa(){return{install(n){n.directive("mark",{name:"v-mark",mounted:(e,t)=>{const{isPrintMode:s}=Fe(),o=k(()=>{const a=typeof t.value=="object"&&!Array.isArray(t.value)?{...t.value}:{at:t.value};let l={at:a.at};const c=Object.entries(t.modifiers).filter(([d,h])=>{if(fs[d])return l=fs[d](l,h),!1;for(const[u,g]of Ga){const p=d.match(u);if(p)return l=g(p,l,h),!1}return!0});c.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",c);const f={...l,...a};return f.type||="underline",s.value&&(f.animationDuration=1),f}),r=Ka(e,o.value),i=pt(e,t,o.value.at);if(!i){r.show();return}e.watchStopHandle=He(()=>{let a;o.value.class&&(r.class=o.value.class),o.value.color&&(r.color=o.value.color);const l=o.value.at;l===!0?a=!0:l===!1?a=!1:a=i.isActive.value,a!=null&&(a?r.show():r.hide())})},unmounted:e=>{e.watchStopHandle?.()}})}}}function Za(){return{install(n){const e=Ao();n.directive("motion",{name:"v-motion",mounted(t,s,o,r){const i=xe(s,Tt),a=xe(s,pn),l=xe(s,gn),{currentPage:c,clicks:f,isPrintMode:d}=Fe(),h=o.props={...o.props},u={...h.initial,...h.variants?.["slidev-initial"]},g={...h.enter,...h.variants?.["slidev-enter"]},p={...h.leave,...h.variants?.["slidev-leave"]};delete h.initial,delete h.enter,delete h.leave;const m=`${Mn()}-`,y=[];for(const b of Object.keys(h))if(b.startsWith("click-")){const w=b.slice(6),_=w.includes("-")?w.split("-").map(Number):+w,C=m+w;y.push({id:C,at:_,variant:{...h[b]},info:i?.value.calculate(_)}),delete h[b]}y.sort((b,w)=>(Array.isArray(b.at)?b.at[0]:b.at)-(Array.isArray(w.at)?w.at[0]:w.at)),e.created(t,s,o,r),e.mounted(t,s,o,r);const v=t.motionInstance;v.clickIds=y.map(b=>b.id),v.set(u),v.watchStopHandle=ee([a,c,f].filter(Boolean),()=>{const b=Js.get(t)?.visibilityState.value??"shown";if(!i?.value||!["slide","presenter"].includes(l?.value??"")){const w={...u,...g};for(const{variant:_}of y)Object.assign(w,_);v.set(w)}else if(d.value||a?.value===c.value)if(b==="shown"){const w={...u,...g};for(const{variant:_,info:C}of y)(!C||C.isActive.value)&&Object.assign(w,_);d.value?v.set(w):v.apply(w)}else v.apply(b==="before"?u:p);else v.apply((a?.value??-1)>c.value?u:p)},{immediate:!0})},unmounted(t){t.motionInstance.watchStopHandle()}})}}}const Ya=[];function Xa(){const n=[];function e(t){if(!$.remote||$.remote===t.query.password)return!0;if($.remote&&t.query.password===void 0){const s=prompt("Enter password");if($.remote===s)return!0}return t.params.no?{path:`/${t.params.no}`}:{path:""}}return n.push({name:"entry",path:"/entry",component:()=>R(()=>import("./slidev/entry-BWgjvGUN.js"),__vite__mapDeps([31,3,6,7,32])),beforeEnter:e},{name:"overview",path:"/overview",component:()=>R(()=>import("./slidev/overview-BDs3_v07.js"),__vite__mapDeps([33,2,3,34,35,36,4,5,29,37,38,6,7])),beforeEnter:e},{name:"notes",path:"/notes",component:()=>R(()=>import("./slidev/notes-Dv602Bu1.js"),__vite__mapDeps([39,3,34,35,38,6,7])),beforeEnter:e},{name:"presenter",path:"/presenter/:no",component:()=>R(()=>import("./slidev/presenter-CA_kPq3V.js"),__vite__mapDeps([40,3,36,4,5,29,37,41,2,38,6,7,42,34,35,43,44,45])),beforeEnter:e},{path:"/presenter",redirect:{path:"/presenter/1"}}),n.push({name:"play",path:"/:no",component:()=>R(()=>import("./slidev/play-CQ4qi9O0.js"),__vite__mapDeps([46,3,36,4,5,29,37,41,2,38,6,7,42,47]))},{path:"",redirect:{path:"/1"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>R(()=>import("./slidev/404-DWvVMASK.js"),__vite__mapDeps([48,3,6,7,49]))}),Ya.reduce((t,s)=>s(t),n)}async function el(n){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const t=Ro({history:No("/"),routes:Xa()});n.use(t),n.use(ia()),n.use(aa()),n.use(Qa()),n.use(fa()),n.use(Za()),n.use(Do,{container:"#twoslash-container"});const s={app:n,router:t};for(const o of sa)await o(s)}async function tl(){const n=jo(na);await el(n),n.mount("#app")}tl();export{tt as $,vi as A,tn as B,ut as C,gi as D,bl as E,Cl as F,ol as G,vt as H,ul as I,Ts as J,di as K,st as L,dl as M,Nl as N,Sl as O,_l as P,se as Q,hi as R,Pt as S,ni as T,la as U,ws as V,Bo as W,pl as X,mn as Y,fl as Z,Sr as _,Fe as a,hl as a0,vl as a1,yl as a2,$l as a3,Ll as a4,Pl as a5,te as a6,Ws as a7,qs as a8,bs as a9,Es as aa,il as ab,oi as ac,pn as ad,gn as ae,Tt as af,ri as ag,Rl as ah,Mn as ai,Be as aj,Tl as ak,si as al,al as am,ai as an,As as b,wr as c,Al as d,Os as e,ml as f,Ne as g,nt as h,Xn as i,pi as j,bt as k,Ml as l,Ol as m,kl as n,Zt as o,rl as p,wl as q,$n as r,Dt as s,El as t,yr as u,$ as v,R as w,ll as x,cl as y,gl as z};