activeadmin_mitosis_editor 0.1.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 (165) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +17 -0
  3. data/CLAUDE.md +118 -0
  4. data/Gemfile +3 -0
  5. data/LICENSE +21 -0
  6. data/README.md +126 -0
  7. data/RELEASE.md +80 -0
  8. data/Rakefile +2 -0
  9. data/activeadmin_mitosis_editor.gemspec +17 -0
  10. data/app/views/inputs/mitosis_editor_input/_dependencies.html.erb +9 -0
  11. data/app/views/inputs/mitosis_editor_input/_form.html.erb +52 -0
  12. data/bin/console +5 -0
  13. data/bin/setup +14 -0
  14. data/demo/.dockerignore +51 -0
  15. data/demo/.gitattributes +9 -0
  16. data/demo/.gitignore +37 -0
  17. data/demo/.kamal/hooks/docker-setup.sample +3 -0
  18. data/demo/.kamal/hooks/post-app-boot.sample +3 -0
  19. data/demo/.kamal/hooks/post-deploy.sample +14 -0
  20. data/demo/.kamal/hooks/post-proxy-reboot.sample +3 -0
  21. data/demo/.kamal/hooks/pre-app-boot.sample +3 -0
  22. data/demo/.kamal/hooks/pre-build.sample +51 -0
  23. data/demo/.kamal/hooks/pre-connect.sample +47 -0
  24. data/demo/.kamal/hooks/pre-deploy.sample +122 -0
  25. data/demo/.kamal/hooks/pre-proxy-reboot.sample +3 -0
  26. data/demo/.kamal/secrets +20 -0
  27. data/demo/.rubocop.yml +8 -0
  28. data/demo/.ruby-version +1 -0
  29. data/demo/Dockerfile +76 -0
  30. data/demo/Gemfile +78 -0
  31. data/demo/Procfile.dev +2 -0
  32. data/demo/README.md +24 -0
  33. data/demo/Rakefile +6 -0
  34. data/demo/app/admin/articles.rb +12 -0
  35. data/demo/app/admin/dashboard.rb +17 -0
  36. data/demo/app/admin/pages.rb +12 -0
  37. data/demo/app/admin/posts.rb +12 -0
  38. data/demo/app/assets/builds/.keep +0 -0
  39. data/demo/app/assets/builds/active_admin.css +3852 -0
  40. data/demo/app/assets/images/.keep +0 -0
  41. data/demo/app/assets/stylesheets/active_admin.css +3 -0
  42. data/demo/app/assets/stylesheets/application.css +1 -0
  43. data/demo/app/assets/stylesheets/mitosis-editor.css +1 -0
  44. data/demo/app/assets/stylesheets/theme-dark.css +1 -0
  45. data/demo/app/assets/stylesheets/theme-light.css +1 -0
  46. data/demo/app/controllers/application_controller.rb +7 -0
  47. data/demo/app/controllers/articles_controller.rb +7 -0
  48. data/demo/app/controllers/concerns/.keep +0 -0
  49. data/demo/app/helpers/application_helper.rb +2 -0
  50. data/demo/app/helpers/articles_helper.rb +2 -0
  51. data/demo/app/javascript/application.js +3 -0
  52. data/demo/app/javascript/controllers/application.js +9 -0
  53. data/demo/app/javascript/controllers/hello_controller.js +7 -0
  54. data/demo/app/javascript/controllers/index.js +4 -0
  55. data/demo/app/jobs/application_job.rb +7 -0
  56. data/demo/app/mailers/application_mailer.rb +4 -0
  57. data/demo/app/models/application_record.rb +3 -0
  58. data/demo/app/models/article.rb +5 -0
  59. data/demo/app/models/concerns/.keep +0 -0
  60. data/demo/app/models/page.rb +5 -0
  61. data/demo/app/models/post.rb +5 -0
  62. data/demo/app/views/articles/_article.html.erb +12 -0
  63. data/demo/app/views/articles/_article.json.jbuilder +2 -0
  64. data/demo/app/views/articles/_form.html.erb +27 -0
  65. data/demo/app/views/articles/edit.html.erb +12 -0
  66. data/demo/app/views/articles/index.html.erb +16 -0
  67. data/demo/app/views/articles/index.json.jbuilder +1 -0
  68. data/demo/app/views/articles/new.html.erb +11 -0
  69. data/demo/app/views/articles/show.html.erb +10 -0
  70. data/demo/app/views/articles/show.json.jbuilder +1 -0
  71. data/demo/app/views/inputs/mitosis_editor_input/_dependencies.html.erb +17 -0
  72. data/demo/app/views/layouts/application.html.erb +29 -0
  73. data/demo/app/views/layouts/mailer.html.erb +13 -0
  74. data/demo/app/views/layouts/mailer.text.erb +1 -0
  75. data/demo/app/views/pwa/manifest.json.erb +22 -0
  76. data/demo/app/views/pwa/service-worker.js +26 -0
  77. data/demo/bin/brakeman +7 -0
  78. data/demo/bin/bundler-audit +6 -0
  79. data/demo/bin/ci +6 -0
  80. data/demo/bin/dev +8 -0
  81. data/demo/bin/docker-entrypoint +8 -0
  82. data/demo/bin/importmap +4 -0
  83. data/demo/bin/jobs +6 -0
  84. data/demo/bin/kamal +27 -0
  85. data/demo/bin/rails +4 -0
  86. data/demo/bin/rake +4 -0
  87. data/demo/bin/rubocop +8 -0
  88. data/demo/bin/setup +35 -0
  89. data/demo/bin/thrust +5 -0
  90. data/demo/config/application.rb +27 -0
  91. data/demo/config/boot.rb +4 -0
  92. data/demo/config/bundler-audit.yml +5 -0
  93. data/demo/config/cable.yml +17 -0
  94. data/demo/config/cache.yml +16 -0
  95. data/demo/config/ci.rb +23 -0
  96. data/demo/config/credentials.yml.enc +1 -0
  97. data/demo/config/database.yml +41 -0
  98. data/demo/config/deploy.yml +120 -0
  99. data/demo/config/environment.rb +21 -0
  100. data/demo/config/environments/development.rb +78 -0
  101. data/demo/config/environments/production.rb +90 -0
  102. data/demo/config/environments/test.rb +53 -0
  103. data/demo/config/importmap.rb +7 -0
  104. data/demo/config/initializers/active_admin.rb +275 -0
  105. data/demo/config/initializers/activeadmin_mitosis_editor.rb +19 -0
  106. data/demo/config/initializers/assets.rb +7 -0
  107. data/demo/config/initializers/content_security_policy.rb +29 -0
  108. data/demo/config/initializers/filter_parameter_logging.rb +8 -0
  109. data/demo/config/initializers/inflections.rb +16 -0
  110. data/demo/config/locales/en.yml +31 -0
  111. data/demo/config/puma.rb +42 -0
  112. data/demo/config/queue.yml +18 -0
  113. data/demo/config/recurring.yml +15 -0
  114. data/demo/config/routes.rb +16 -0
  115. data/demo/config/storage.yml +27 -0
  116. data/demo/config.ru +6 -0
  117. data/demo/db/cable_schema.rb +11 -0
  118. data/demo/db/cache_schema.rb +12 -0
  119. data/demo/db/migrate/20260215110410_create_active_admin_comments.rb +16 -0
  120. data/demo/db/migrate/20260215110416_create_articles.rb +10 -0
  121. data/demo/db/migrate/20260216124916_create_posts.rb +10 -0
  122. data/demo/db/migrate/20260216124919_create_pages.rb +10 -0
  123. data/demo/db/queue_schema.rb +129 -0
  124. data/demo/db/schema.rb +48 -0
  125. data/demo/db/seeds.rb +9 -0
  126. data/demo/lib/tasks/.keep +0 -0
  127. data/demo/log/.keep +0 -0
  128. data/demo/package-lock.json +1260 -0
  129. data/demo/package.json +13 -0
  130. data/demo/public/400.html +135 -0
  131. data/demo/public/404.html +135 -0
  132. data/demo/public/406-unsupported-browser.html +135 -0
  133. data/demo/public/422.html +135 -0
  134. data/demo/public/500.html +135 -0
  135. data/demo/public/icon.png +0 -0
  136. data/demo/public/icon.svg +3 -0
  137. data/demo/public/robots.txt +1 -0
  138. data/demo/script/.keep +0 -0
  139. data/demo/spec/rails_helper.rb +72 -0
  140. data/demo/spec/spec_helper.rb +94 -0
  141. data/demo/spec/system/admin_articles_spec.rb +22 -0
  142. data/demo/spec/system/mitosis_editor_prism_spec.rb +34 -0
  143. data/demo/spec/system/mitosis_editor_theme_spec.rb +63 -0
  144. data/demo/storage/.keep +0 -0
  145. data/demo/tailwind-active_admin.config.js +17 -0
  146. data/demo/tmp/.keep +0 -0
  147. data/demo/tmp/storage/.keep +0 -0
  148. data/demo/vendor/.keep +0 -0
  149. data/demo/vendor/javascript/.keep +0 -0
  150. data/docs/plans/2026-02-15-mitosis-editor-gem-design.md +70 -0
  151. data/docs/plans/2026-02-15-mitosis-editor-gem-implementation.md +407 -0
  152. data/lib/activeadmin_mitosis_editor/inputs/mitosis_editor_input.rb +29 -0
  153. data/lib/activeadmin_mitosis_editor/railtie.rb +7 -0
  154. data/lib/activeadmin_mitosis_editor/version.rb +3 -0
  155. data/lib/activeadmin_mitosis_editor.rb +13 -0
  156. data/lib/generators/mitosis_editor/styles_generator.rb +23 -0
  157. data/lib/generators/mitosis_editor/templates/_dependencies.html.erb +17 -0
  158. data/lib/generators/mitosis_editor/views_generator.rb +14 -0
  159. data/preview.png +0 -0
  160. data/script/bump-version +78 -0
  161. data/vendor/assets/javascripts/mitosis-editor.js +61 -0
  162. data/vendor/assets/stylesheets/mitosis-editor.css +1 -0
  163. data/vendor/assets/stylesheets/theme-dark.min.css +1 -0
  164. data/vendor/assets/stylesheets/theme-light.min.css +1 -0
  165. metadata +248 -0
@@ -0,0 +1,61 @@
1
+ "use strict";var MitosisEditor=(()=>{var O=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var He=Object.prototype.hasOwnProperty;var Me=(n,e)=>{for(var t in e)O(n,t,{get:e[t],enumerable:!0})},De=(n,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Ie(e))!He.call(n,r)&&r!==t&&O(n,r,{get:()=>e[r],enumerable:!(s=_e(e,r))||s.enumerable});return n};var Be=n=>De(O({},"__esModule",{value:!0}),n);var Ht={};Me(Ht,{Editor:()=>E,EditorPane:()=>$,PreviewPane:()=>P,TwoPanelLayout:()=>C,createEditor:()=>It,highlightMarkdown:()=>H,parseMarkdownToHTML:()=>v});function H(n){return qe(n)}function qe(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Qe=[{key:"b",syntax:{prefix:"**",suffix:"**"}},{key:"i",syntax:{prefix:"*",suffix:"*"}},{key:"k",syntax:{prefix:"[",suffix:"](url)"}},{key:"e",syntax:{prefix:"`",suffix:"`"}},{key:"s",shiftKey:!0,syntax:{prefix:"~~",suffix:"~~"}}],$=class{textarea;highlightOverlay;container;onUpdate;onScroll;constructor(e){this.onUpdate=e.onUpdate??(()=>{}),this.onScroll=e.onScroll??(()=>{}),this.container=document.createElement("div"),this.container.className="mitosis-editor-container",this.textarea=document.createElement("textarea"),this.textarea.className="mitosis-textarea",this.textarea.placeholder="Write markdown here...",this.highlightOverlay=document.createElement("div"),this.highlightOverlay.className="mitosis-highlight",this.textarea.addEventListener("input",()=>this.handleInput()),this.textarea.addEventListener("scroll",()=>this.handleScroll()),this.textarea.addEventListener("keydown",t=>this.handleKeyDown(t)),this.container.appendChild(this.highlightOverlay),this.container.appendChild(this.textarea),e.container.appendChild(this.container)}handleInput(){let e=this.textarea.value;this.highlightOverlay.innerHTML=H(e)+`
2
+ `,this.onUpdate(e)}handleScroll(){let{scrollTop:e,scrollHeight:t}=this.textarea;this.highlightOverlay.scrollTop=e,this.onScroll(e,t)}handleKeyDown(e){if(e.key==="Tab"){e.preventDefault(),this.insertText(" ");return}for(let t of Qe)if(e.key===t.key&&(e.metaKey||e.ctrlKey)&&e.shiftKey===(t.shiftKey??!1)){e.preventDefault(),typeof t.syntax=="string"?this.insertText(t.syntax):this.wrapSelection(t.syntax.prefix,t.syntax.suffix);return}}insertText(e){let t=this.textarea.selectionStart,s=this.textarea.selectionEnd,r=this.textarea.value;this.textarea.value=r.substring(0,t)+e+r.substring(s),this.textarea.selectionStart=this.textarea.selectionEnd=t+e.length,this.textarea.focus(),this.handleInput()}wrapSelection(e,t){let s=this.textarea.selectionStart,r=this.textarea.selectionEnd,l=this.textarea.value,i=l.substring(s,r),o=e+i+t;this.textarea.value=l.substring(0,s)+o+l.substring(r),this.setCursorAfterWrap(i,s,e,o),this.textarea.focus(),this.handleInput()}setCursorAfterWrap(e,t,s,r){e.length===0?this.textarea.selectionStart=this.textarea.selectionEnd=t+s.length:(this.textarea.selectionStart=t,this.textarea.selectionEnd=t+r.length)}setContent(e){this.textarea.value=e,this.handleInput()}getContent(){return this.textarea.value}destroy(){this.textarea.removeEventListener("input",()=>this.handleInput()),this.textarea.removeEventListener("scroll",()=>this.handleScroll()),this.textarea.removeEventListener("keydown",e=>this.handleKeyDown(e)),this.container.remove()}};function K(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var R=K();function pe(n){R=n}var S={exec:()=>null};function p(n,e=""){let t=typeof n=="string"?n:n.source,s={replace:(r,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(x.caret,"$1"),t=t.replace(r,i),s},getRegex:()=>new RegExp(t,e)};return s}var Ne=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,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"),blockquoteBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}>`)},Ze=/^(?:[ \t]*(?:\n|$))+/,Oe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,je=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ue=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,W=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ue=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ge=p(ue).replace(/bull/g,W).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(),Ge=p(ue).replace(/bull/g,W).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(),X=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ke=/^[^\n]+/,F=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,We=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",F).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Xe=p(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,W).getRegex(),Q="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",V=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Fe=p("^ {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",V).replace("tag",Q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),de=p(X).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex(),Ve=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",de).getRegex(),J={blockquote:Ve,code:Oe,def:We,fences:je,heading:Ue,hr:I,html:Fe,lheading:ge,list:Xe,newline:Ze,paragraph:de,table:S,text:Ke},ie=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex(),Je={...J,lheading:Ge,table:ie,paragraph:p(X).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ie).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex()},Ye={...J,html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",V).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:S,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(X).replace("hr",I).replace("heading",` *#{1,6} *[^
3
+ ]`).replace("lheading",ge).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},et=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,tt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ke=/^( {2,}|\\)\n(?!\s*$)/,rt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,N=/[\p{P}\p{S}]/u,Y=/[\s\p{P}\p{S}]/u,fe=/[^\s\p{P}\p{S}]/u,nt=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Y).getRegex(),xe=/(?!~)[\p{P}\p{S}]/u,st=/(?!~)[\s\p{P}\p{S}]/u,it=/(?:[^\s\p{P}\p{S}]|~)/u,me=/(?![*_])[\p{P}\p{S}]/u,lt=/(?![*_])[\s\p{P}\p{S}]/u,at=/(?:[^\s\p{P}\p{S}]|[*_])/u,ot=p(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ne?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),we=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ht=p(we,"u").replace(/punct/g,N).getRegex(),ct=p(we,"u").replace(/punct/g,xe).getRegex(),be="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",pt=p(be,"gu").replace(/notPunctSpace/g,fe).replace(/punctSpace/g,Y).replace(/punct/g,N).getRegex(),ut=p(be,"gu").replace(/notPunctSpace/g,it).replace(/punctSpace/g,st).replace(/punct/g,xe).getRegex(),gt=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,fe).replace(/punctSpace/g,Y).replace(/punct/g,N).getRegex(),dt=p(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,me).getRegex(),kt="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ft=p(kt,"gu").replace(/notPunctSpace/g,at).replace(/punctSpace/g,lt).replace(/punct/g,me).getRegex(),xt=p(/\\(punct)/,"gu").replace(/punct/g,N).getRegex(),mt=p(/^<(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(),wt=p(V).replace("(?:-->|$)","-->").getRegex(),bt=p("^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",wt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),D=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,yt=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",D).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ye=p(/^!?\[(label)\]\[(ref)\]/).replace("label",D).replace("ref",F).getRegex(),Se=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",F).getRegex(),St=p("reflink|nolink(?!\\()","g").replace("reflink",ye).replace("nolink",Se).getRegex(),le=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ee={_backpedal:S,anyPunctuation:xt,autolink:mt,blockSkip:ot,br:ke,code:tt,del:S,delLDelim:S,delRDelim:S,emStrongLDelim:ht,emStrongRDelimAst:pt,emStrongRDelimUnd:gt,escape:et,link:yt,nolink:Se,punctuation:nt,reflink:ye,reflinkSearch:St,tag:bt,text:rt,url:S},Tt={...ee,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",D).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",D).getRegex()},j={...ee,emStrongRDelimAst:ut,emStrongLDelim:ct,delLDelim:dt,delRDelim:ft,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",le).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",le).getRegex()},Rt={...j,br:p(ke).replace("{2,}","*").getRegex(),text:p(j.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},M={normal:J,gfm:Je,pedantic:Ye},A={normal:ee,gfm:j,breaks:Rt,pedantic:Tt},vt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ae=n=>vt[n];function y(n,e){if(e){if(x.escapeTest.test(n))return n.replace(x.escapeReplace,ae)}else if(x.escapeTestNoEncode.test(n))return n.replace(x.escapeReplaceNoEncode,ae);return n}function oe(n){try{n=encodeURI(n).replace(x.percentDecode,"%")}catch{return null}return n}function he(n,e){let t=n.replace(x.findPipe,(l,i,o)=>{let a=!1,c=i;for(;--c>=0&&o[c]==="\\";)a=!a;return a?"|":" |"}),s=t.split(x.splitPipe),r=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(;r<s.length;r++)s[r]=s[r].trim().replace(x.slashPipe,"|");return s}function L(n,e,t){let s=n.length;if(s===0)return"";let r=0;for(;r<s;){let l=n.charAt(s-r-1);if(l===e&&!t)r++;else if(l!==e&&t)r++;else break}return n.slice(0,s-r)}function $t(n,e){if(n.indexOf(e[1])===-1)return-1;let t=0;for(let s=0;s<n.length;s++)if(n[s]==="\\")s++;else if(n[s]===e[0])t++;else if(n[s]===e[1]&&(t--,t<0))return s;return t>0?-2:-1}function Pt(n,e=0){let t=e,s="";for(let r of n)if(r===" "){let l=4-t%4;s+=" ".repeat(l),t+=l}else s+=r,t++;return s}function ce(n,e,t,s,r){let l=e.href,i=e.title||null,o=n[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let a={type:n[0].charAt(0)==="!"?"image":"link",raw:t,href:l,title:i,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}function Ct(n,e,t){let s=n.match(t.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
4
+ `).map(l=>{let i=l.match(t.other.beginningSpace);if(i===null)return l;let[o]=i;return o.length>=r.length?l.slice(r.length):l}).join(`
5
+ `)}var B=class{options;rules;lexer;constructor(n){this.options=n||R}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 t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:L(t,`
6
+ `)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let t=e[0],s=Ct(t,e[3]||"",this.rules);return{type:"code",raw:t,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 t=e[2].trim();if(this.rules.other.endingHash.test(t)){let s=L(t,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(t=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:L(e[0],`
7
+ `)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let t=L(e[0],`
8
+ `).split(`
9
+ `),s="",r="",l=[];for(;t.length>0;){let i=!1,o=[],a;for(a=0;a<t.length;a++)if(this.rules.other.blockquoteStart.test(t[a]))o.push(t[a]),i=!0;else if(!i)o.push(t[a]);else break;t=t.slice(a);let c=o.join(`
10
+ `),h=c.replace(this.rules.other.blockquoteSetextReplace,`
11
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
12
+ ${c}`:c,r=r?`${r}
13
+ ${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=d,t.length===0)break;let u=l.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let f=u,k=f.raw+`
14
+ `+t.join(`
15
+ `),b=this.blockquote(k);l[l.length-1]=b,s=s.substring(0,s.length-f.raw.length)+b.raw,r=r.substring(0,r.length-f.text.length)+b.text;break}else if(u?.type==="list"){let f=u,k=f.raw+`
16
+ `+t.join(`
17
+ `),b=this.list(k);l[l.length-1]=b,s=s.substring(0,s.length-u.raw.length)+b.raw,r=r.substring(0,r.length-f.raw.length)+b.raw,t=k.substring(l.at(-1).raw.length).split(`
18
+ `);continue}}return{type:"blockquote",raw:s,tokens:l,text:r}}}list(n){let e=this.rules.block.list.exec(n);if(e){let t=e[1].trim(),s=t.length>1,r={type:"list",raw:"",ordered:s,start:s?+t.slice(0,-1):"",loose:!1,items:[]};t=s?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=s?t:"[*+-]");let l=this.rules.other.listItemRegex(t),i=!1;for(;n;){let a=!1,c="",h="";if(!(e=l.exec(n))||this.rules.block.hr.test(n))break;c=e[0],n=n.substring(c.length);let d=Pt(e[2].split(`
19
+ `,1)[0],e[1].length),u=n.split(`
20
+ `,1)[0],f=!d.trim(),k=0;if(this.options.pedantic?(k=2,h=d.trimStart()):f?k=e[1].length+1:(k=d.search(this.rules.other.nonSpaceChar),k=k>4?1:k,h=d.slice(k),k+=e[1].length),f&&this.rules.other.blankLine.test(u)&&(c+=u+`
21
+ `,n=n.substring(u.length+1),a=!0),!a){let b=this.rules.other.nextBulletRegex(k),re=this.rules.other.hrRegex(k),ne=this.rules.other.fencesBeginRegex(k),se=this.rules.other.headingBeginRegex(k),Ae=this.rules.other.htmlBeginRegex(k),Le=this.rules.other.blockquoteBeginRegex(k);for(;n;){let Z=n.split(`
22
+ `,1)[0],z;if(u=Z,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),z=u):z=u.replace(this.rules.other.tabCharGlobal," "),ne.test(u)||se.test(u)||Ae.test(u)||Le.test(u)||b.test(u)||re.test(u))break;if(z.search(this.rules.other.nonSpaceChar)>=k||!u.trim())h+=`
23
+ `+z.slice(k);else{if(f||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ne.test(d)||se.test(d)||re.test(d))break;h+=`
24
+ `+u}f=!u.trim(),c+=Z+`
25
+ `,n=n.substring(Z.length+1),d=z.slice(k)}}r.loose||(i?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(i=!0)),r.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),r.raw+=c}let o=r.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let a of r.items){if(this.lexer.state.top=!1,a.tokens=this.lexer.blockTokens(a.text,[]),a.task){if(a.text=a.text.replace(this.rules.other.listReplaceTask,""),a.tokens[0]?.type==="text"||a.tokens[0]?.type==="paragraph"){a.tokens[0].raw=a.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),a.tokens[0].text=a.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}}let c=this.rules.other.listTaskCheckbox.exec(a.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};a.checked=h.checked,r.loose?a.tokens[0]&&["paragraph","text"].includes(a.tokens[0].type)&&"tokens"in a.tokens[0]&&a.tokens[0].tokens?(a.tokens[0].raw=h.raw+a.tokens[0].raw,a.tokens[0].text=h.raw+a.tokens[0].text,a.tokens[0].tokens.unshift(h)):a.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):a.tokens.unshift(h)}}if(!r.loose){let c=a.tokens.filter(d=>d.type==="space"),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));r.loose=h}}if(r.loose)for(let a of r.items){a.loose=!0;for(let c of a.tokens)c.type==="text"&&(c.type="paragraph")}return r}}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 t=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"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:s,title:r}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=he(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
26
+ `):[],l={type:"table",raw:e[0],header:[],align:[],rows:[]};if(t.length===s.length){for(let i of s)this.rules.other.tableAlignRight.test(i)?l.align.push("right"):this.rules.other.tableAlignCenter.test(i)?l.align.push("center"):this.rules.other.tableAlignLeft.test(i)?l.align.push("left"):l.align.push(null);for(let i=0;i<t.length;i++)l.header.push({text:t[i],tokens:this.lexer.inline(t[i]),header:!0,align:l.align[i]});for(let i of r)l.rows.push(he(i,l.header.length).map((o,a)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:l.align[a]})));return l}}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 t=e[1].charAt(e[1].length-1)===`
27
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}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 t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let l=L(t.slice(0,-1),"\\");if((t.length-l.length)%2===0)return}else{let l=$t(e[2],"()");if(l===-2)return;if(l>-1){let i=(e[0].indexOf("!")===0?5:4)+e[1].length+l;e[2]=e[2].substring(0,l),e[0]=e[0].substring(0,i).trim(),e[3]=""}}let s=e[2],r="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],r=l[3])}else r=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(t)?s=s.slice(1):s=s.slice(1,-1)),ce(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let t;if((t=this.rules.inline.reflink.exec(n))||(t=this.rules.inline.nolink.exec(n))){let s=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[s.toLowerCase()];if(!r){let l=t[0].charAt(0);return{type:"text",raw:l,text:l}}return ce(t,r,t[0],this.lexer,this.rules)}}emStrong(n,e,t=""){let s=this.rules.inline.emStrongLDelim.exec(n);if(!(!s||s[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!t||this.rules.inline.punctuation.exec(t))){let r=[...s[0]].length-1,l,i,o=r,a=0,c=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*n.length+r);(s=c.exec(e))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(i=[...l].length,s[3]||s[4]){o+=i;continue}else if((s[5]||s[6])&&r%3&&!((r+i)%3)){a+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+a);let h=[...s[0]][0].length,d=n.slice(0,r+s.index+h+i);if(Math.min(r,i)%2){let f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}let u=d.slice(2,-2);return{type:"strong",raw:d,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return s&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n,e,t=""){let s=this.rules.inline.delLDelim.exec(n);if(s&&(!s[1]||!t||this.rules.inline.punctuation.exec(t))){let r=[...s[0]].length-1,l,i,o=r,a=this.rules.inline.delRDelim;for(a.lastIndex=0,e=e.slice(-1*n.length+r);(s=a.exec(e))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l||(i=[...l].length,i!==r))continue;if(s[3]||s[4]){o+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o);let c=[...s[0]][0].length,h=n.slice(0,r+s.index+c+i),d=h.slice(r,-r);return{type:"del",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let t,s;return e[2]==="@"?(t=e[1],s="mailto:"+t):(t=e[1],s=t),{type:"link",raw:e[0],text:t,href:s,tokens:[{type:"text",raw:t,text:t}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let t,s;if(e[2]==="@")t=e[0],s="mailto:"+t;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);t=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:t,href:s,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},m=class U{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||R,this.options.tokenizer=this.options.tokenizer||new B,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 t={other:x,block:M.normal,inline:A.normal};this.options.pedantic?(t.block=M.pedantic,t.inline=A.pedantic):this.options.gfm&&(t.block=M.gfm,this.options.breaks?t.inline=A.breaks:t.inline=A.gfm),this.tokenizer.rules=t}static get rules(){return{block:M,inline:A}}static lex(e,t){return new U(t).lex(e)}static lexInline(e,t){return new U(t).inlineTokens(e)}lex(e){e=e.replace(x.carriageReturn,`
28
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let s=this.inlineQueue[t];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],s=!1){for(this.options.pedantic&&(e=e.replace(x.tabCharGlobal," ").replace(x.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(i=>(r=i.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let i=t.at(-1);r.raw.length===1&&i!==void 0?i.raw+=`
29
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let i=t.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
30
+ `)?"":`
31
+ `)+r.raw,i.text+=`
32
+ `+r.text,this.inlineQueue.at(-1).src=i.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let i=t.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
33
+ `)?"":`
34
+ `)+r.raw,i.text+=`
35
+ `+r.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let l=e;if(this.options.extensions?.startBlock){let i=1/0,o=e.slice(1),a;this.options.extensions.startBlock.forEach(c=>{a=c.call({lexer:this},o),typeof a=="number"&&a>=0&&(i=Math.min(i,a))}),i<1/0&&i>=0&&(l=e.substring(0,i+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){let i=t.at(-1);s&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
36
+ `)?"":`
37
+ `)+r.raw,i.text+=`
38
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(r),s=l.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let i=t.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(`
39
+ `)?"":`
40
+ `)+r.raw,i.text+=`
41
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(r);continue}if(e){let i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let s=e,r=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)a.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,r.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)l=r[2]?r[2].length:0,s=s.slice(0,r.index+l)+"["+"a".repeat(r[0].length-l-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let i=!1,o="";for(;e;){i||(o=""),i=!1;let a;if(this.options.extensions?.inline?.some(h=>(a=h.call({lexer:this},e,t))?(e=e.substring(a.raw.length),t.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let h=t.at(-1);a.type==="text"&&h?.type==="text"?(h.raw+=a.raw,h.text+=a.text):t.push(a);continue}if(a=this.tokenizer.emStrong(e,s,o)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.del(e,s,o)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),t.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),t.push(a);continue}let c=e;if(this.options.extensions?.startInline){let h=1/0,d=e.slice(1),u;this.options.extensions.startInline.forEach(f=>{u=f.call({lexer:this},d),typeof u=="number"&&u>=0&&(h=Math.min(h,u))}),h<1/0&&h>=0&&(c=e.substring(0,h+1))}if(a=this.tokenizer.inlineText(c)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(o=a.raw.slice(-1)),i=!0;let h=t.at(-1);h?.type==="text"?(h.raw+=a.raw,h.text+=a.text):t.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 t}},q=class{options;parser;constructor(n){this.options=n||R}space(n){return""}code({text:n,lang:e,escaped:t}){let s=(e||"").match(x.notSpaceStart)?.[0],r=n.replace(x.endingNewline,"")+`
42
+ `;return s?'<pre><code class="language-'+y(s)+'">'+(t?r:y(r,!0))+`</code></pre>
43
+ `:"<pre><code>"+(t?r:y(r,!0))+`</code></pre>
44
+ `}blockquote({tokens:n}){return`<blockquote>
45
+ ${this.parser.parse(n)}</blockquote>
46
+ `}html({text:n}){return n}def(n){return""}heading({tokens:n,depth:e}){return`<h${e}>${this.parser.parseInline(n)}</h${e}>
47
+ `}hr(n){return`<hr>
48
+ `}list(n){let e=n.ordered,t=n.start,s="";for(let i=0;i<n.items.length;i++){let o=n.items[i];s+=this.listitem(o)}let r=e?"ol":"ul",l=e&&t!==1?' start="'+t+'"':"";return"<"+r+l+`>
49
+ `+s+"</"+r+`>
50
+ `}listitem(n){return`<li>${this.parser.parse(n.tokens)}</li>
51
+ `}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p>
52
+ `}table(n){let e="",t="";for(let r=0;r<n.header.length;r++)t+=this.tablecell(n.header[r]);e+=this.tablerow({text:t});let s="";for(let r=0;r<n.rows.length;r++){let l=n.rows[r];t="";for(let i=0;i<l.length;i++)t+=this.tablecell(l[i]);s+=this.tablerow({text:t})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
53
+ <thead>
54
+ `+e+`</thead>
55
+ `+s+`</table>
56
+ `}tablerow({text:n}){return`<tr>
57
+ ${n}</tr>
58
+ `}tablecell(n){let e=this.parser.parseInline(n.tokens),t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+`</${t}>
59
+ `}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>${y(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:t}){let s=this.parser.parseInline(t),r=oe(n);if(r===null)return s;n=r;let l='<a href="'+n+'"';return e&&(l+=' title="'+y(e)+'"'),l+=">"+s+"</a>",l}image({href:n,title:e,text:t,tokens:s}){s&&(t=this.parser.parseInline(s,this.parser.textRenderer));let r=oe(n);if(r===null)return y(t);n=r;let l=`<img src="${n}" alt="${t}"`;return e&&(l+=` title="${y(e)}"`),l+=">",l}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:y(n.text)}},te=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""}checkbox({raw:n}){return n}},w=class G{options;renderer;textRenderer;constructor(e){this.options=e||R,this.options.renderer=this.options.renderer||new q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new te}static parse(e,t){return new G(t).parse(e)}static parseInline(e,t){return new G(t).parseInline(e)}parse(e){let t="";for(let s=0;s<e.length;s++){let r=e[s];if(this.options.extensions?.renderers?.[r.type]){let i=r,o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){t+=o||"";continue}}let l=r;switch(l.type){case"space":{t+=this.renderer.space(l);break}case"hr":{t+=this.renderer.hr(l);break}case"heading":{t+=this.renderer.heading(l);break}case"code":{t+=this.renderer.code(l);break}case"table":{t+=this.renderer.table(l);break}case"blockquote":{t+=this.renderer.blockquote(l);break}case"list":{t+=this.renderer.list(l);break}case"checkbox":{t+=this.renderer.checkbox(l);break}case"html":{t+=this.renderer.html(l);break}case"def":{t+=this.renderer.def(l);break}case"paragraph":{t+=this.renderer.paragraph(l);break}case"text":{t+=this.renderer.text(l);break}default:{let i='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return t}parseInline(e,t=this.renderer){let s="";for(let r=0;r<e.length;r++){let l=e[r];if(this.options.extensions?.renderers?.[l.type]){let o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){s+=o||"";continue}}let i=l;switch(i.type){case"escape":{s+=t.text(i);break}case"html":{s+=t.html(i);break}case"link":{s+=t.link(i);break}case"image":{s+=t.image(i);break}case"checkbox":{s+=t.checkbox(i);break}case"strong":{s+=t.strong(i);break}case"em":{s+=t.em(i);break}case"codespan":{s+=t.codespan(i);break}case"br":{s+=t.br(i);break}case"del":{s+=t.del(i);break}case"text":{s+=t.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},_=class{options;block;constructor(n){this.options=n||R}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(){return this.block?m.lex:m.lexInline}provideParser(){return this.block?w.parse:w.parseInline}},Et=class{defaults=K();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=w;Renderer=q;TextRenderer=te;Lexer=m;Tokenizer=B;Hooks=_;constructor(...n){this.use(...n)}walkTokens(n,e){let t=[];for(let s of n)switch(t=t.concat(e.call(this,s)),s.type){case"table":{let r=s;for(let l of r.header)t=t.concat(this.walkTokens(l.tokens,e));for(let l of r.rows)for(let i of l)t=t.concat(this.walkTokens(i.tokens,e));break}case"list":{let r=s;t=t.concat(this.walkTokens(r.items,e));break}default:{let r=s;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(l=>{let i=r[l].flat(1/0);t=t.concat(this.walkTokens(i,e))}):r.tokens&&(t=t.concat(this.walkTokens(r.tokens,e)))}}return t}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{let s={...t};if(s.async=this.defaults.async||s.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let l=e.renderers[r.name];l?e.renderers[r.name]=function(...i){let o=r.renderer.apply(this,i);return o===!1&&(o=l.apply(this,i)),o}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=e[r.level];l?l.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),s.extensions=e),t.renderer){let r=this.defaults.renderer||new q(this.defaults);for(let l in t.renderer){if(!(l in r))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let i=l,o=t.renderer[i],a=r[i];r[i]=(...c)=>{let h=o.apply(r,c);return h===!1&&(h=a.apply(r,c)),h||""}}s.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new B(this.defaults);for(let l in t.tokenizer){if(!(l in r))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let i=l,o=t.tokenizer[i],a=r[i];r[i]=(...c)=>{let h=o.apply(r,c);return h===!1&&(h=a.apply(r,c)),h}}s.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new _;for(let l in t.hooks){if(!(l in r))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let i=l,o=t.hooks[i],a=r[i];_.passThroughHooks.has(l)?r[i]=c=>{if(this.defaults.async&&_.passThroughHooksRespectAsync.has(l))return(async()=>{let d=await o.call(r,c);return a.call(r,d)})();let h=o.call(r,c);return a.call(r,h)}:r[i]=(...c)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(r,c);return d===!1&&(d=await a.apply(r,c)),d})();let h=o.apply(r,c);return h===!1&&(h=a.apply(r,c)),h}}s.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,l=t.walkTokens;s.walkTokens=function(i){let o=[];return o.push(l.call(this,i)),r&&(o=o.concat(r.call(this,i))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return m.lex(n,e??this.defaults)}parser(n,e){return w.parse(n,e??this.defaults)}parseMarkdown(n){return(e,t)=>{let s={...t},r={...this.defaults,...s},l=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return l(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 l(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=n),r.async)return(async()=>{let i=r.hooks?await r.hooks.preprocess(e):e,o=await(r.hooks?await r.hooks.provideLexer():n?m.lex:m.lexInline)(i,r),a=r.hooks?await r.hooks.processAllTokens(o):o;r.walkTokens&&await Promise.all(this.walkTokens(a,r.walkTokens));let c=await(r.hooks?await r.hooks.provideParser():n?w.parse:w.parseInline)(a,r);return r.hooks?await r.hooks.postprocess(c):c})().catch(l);try{r.hooks&&(e=r.hooks.preprocess(e));let i=(r.hooks?r.hooks.provideLexer():n?m.lex:m.lexInline)(e,r);r.hooks&&(i=r.hooks.processAllTokens(i)),r.walkTokens&&this.walkTokens(i,r.walkTokens);let o=(r.hooks?r.hooks.provideParser():n?w.parse:w.parseInline)(i,r);return r.hooks&&(o=r.hooks.postprocess(o)),o}catch(i){return l(i)}}}onError(n,e){return t=>{if(t.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+y(t.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(t);throw t}}},T=new Et;function g(n,e){return T.parse(n,e)}g.options=g.setOptions=function(n){return T.setOptions(n),g.defaults=T.defaults,pe(g.defaults),g};g.getDefaults=K;g.defaults=R;g.use=function(...n){return T.use(...n),g.defaults=T.defaults,pe(g.defaults),g};g.walkTokens=function(n,e){return T.walkTokens(n,e)};g.parseInline=T.parseInline;g.Parser=w;g.parser=w.parse;g.Renderer=q;g.TextRenderer=te;g.Lexer=m;g.lexer=m.lex;g.Tokenizer=B;g.Hooks=_;g.parse=g;var Qt=g.options,Nt=g.setOptions,Zt=g.use,Ot=g.walkTokens,jt=g.parseInline;var Ut=w.parse,Gt=m.lex;function Pe(n){if(typeof n=="function"&&(n={highlight:n}),!n||typeof n.highlight!="function")throw new Error("Must provide highlight function");return typeof n.langPrefix!="string"&&(n.langPrefix="language-"),typeof n.emptyLangClass!="string"&&(n.emptyLangClass=""),{async:!!n.async,walkTokens(e){if(e.type!=="code")return;let t=Te(e.lang);if(n.async)return Promise.resolve(n.highlight(e.text,t,e.lang||"")).then(Re(e));let s=n.highlight(e.text,t,e.lang||"");if(s instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Re(e)(s)},useNewRenderer:!0,renderer:{code(e,t,s){typeof e=="object"&&(s=e.escaped,t=e.lang,e=e.text);let r=Te(t),l=r?n.langPrefix+$e(r):n.emptyLangClass,i=l?` class="${l}"`:"";return e=e.replace(/\n$/,""),`<pre><code${i}>${s?e:$e(e,!0)}
61
+ </code></pre>`}}}}function Te(n){return(n||"").match(/\S*/)[0]}function Re(n){return e=>{typeof e=="string"&&e!==n.text&&(n.escaped=!0,n.text=e)}}var Ce=/[&<>"']/,zt=new RegExp(Ce.source,"g"),Ee=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,At=new RegExp(Ee.source,"g"),Lt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ve=n=>Lt[n];function $e(n,e){if(e){if(Ce.test(n))return n.replace(zt,ve)}else if(Ee.test(n))return n.replace(At,ve);return n}g.use({gfm:!0,breaks:!0});var ze=new WeakSet;function _t(n){ze.has(n)||(g.use(Pe({langPrefix:"language-",highlight(e,t){if(n.highlight)try{let s=n.languages?.[t];return n.highlight(e,s,t)}catch{return e}return e}})),ze.add(n))}function v(n,e){if(!n.trim())return"";e&&_t(e);let t=g(n);return typeof t=="string"?t:""}var P=class{container;content;onScroll;prism;scrollHandler;constructor(e){this.onScroll=e.onScroll??(()=>{}),e.prism!==void 0&&(this.prism=e.prism),this.scrollHandler=()=>this.handleScroll(),this.container=document.createElement("div"),this.container.className="mitosis-preview",this.content=document.createElement("div"),this.content.className="mitosis-preview-content",this.content.addEventListener("scroll",this.scrollHandler),this.container.appendChild(this.content),e.container.appendChild(this.container)}handleScroll(){let{scrollTop:e,scrollHeight:t}=this.content;this.onScroll(e,t)}setContent(e){this.content.innerHTML=v(e,this.prism)}setScrollRatio(e){let t=this.content.scrollHeight-this.content.clientHeight;this.content.scrollTop=t*e}destroy(){this.content.removeEventListener("scroll",this.scrollHandler),this.container.remove()}};var C=class{container;editorPaneContainer;previewPaneContainer;divider;editorPane;previewPane;content="";isDragging=!1;prism;constructor(e){this.content=e.initialContent??"",e.prism!==void 0&&(this.prism=e.prism),this.container=document.createElement("div"),this.container.className="mitosis-layout",this.editorPaneContainer=document.createElement("div"),this.editorPaneContainer.className="mitosis-panel editor-panel",this.divider=document.createElement("div"),this.divider.className="mitosis-divider",this.divider.addEventListener("mousedown",()=>this.startDrag()),this.previewPaneContainer=document.createElement("div"),this.previewPaneContainer.className="mitosis-panel preview-panel",this.editorPane=new $({container:this.editorPaneContainer,onUpdate:s=>this.handleEditorUpdate(s),onScroll:(s,r)=>this.syncScroll(s,r,"editor")});let t={container:this.previewPaneContainer,onScroll:(s,r)=>this.syncScroll(s,r,"preview")};this.prism!==void 0&&(t.prism=this.prism),this.previewPane=new P(t),this.container.appendChild(this.editorPaneContainer),this.container.appendChild(this.divider),this.container.appendChild(this.previewPaneContainer),e.container.appendChild(this.container),this.content&&(this.editorPane.setContent(this.content),this.previewPane.setContent(this.content)),document.addEventListener("mousemove",s=>this.handleDrag(s)),document.addEventListener("mouseup",()=>this.stopDrag())}handleEditorUpdate(e){this.content=e,this.previewPane.setContent(e)}syncScroll(e,t,s){if(s==="editor"){let r=e/t;this.previewPane.setScrollRatio(r)}else{let l=e/t*this.editorPaneContainer.scrollHeight;this.editorPaneContainer.scrollTop=l}}startDrag(){this.isDragging=!0,this.divider.style.background="var(--divider-hover)"}handleDrag(e){if(!this.isDragging)return;let t=this.container.getBoundingClientRect(),r=(e.clientX-t.left)/t.width*100;r>10&&r<90&&(this.editorPaneContainer.style.flex=`0 0 ${r}%`,this.previewPaneContainer.style.flex=`0 0 ${100-r}%`)}stopDrag(){this.isDragging&&(this.isDragging=!1,this.divider.style.background="var(--divider-bg)")}getMarkdown(){return this.editorPane.getContent()}getHTML(){return this.content}getBoth(){return{markdown:this.getMarkdown(),html:this.content}}setContent(e){this.content=e,this.editorPane.setContent(e),this.previewPane.setContent(e)}destroy(){this.editorPane.destroy(),this.previewPane.destroy(),document.removeEventListener("mousemove",e=>this.handleDrag(e)),document.removeEventListener("mouseup",()=>this.stopDrag()),this.container.remove()}};var E=class{layout;container;options;wrapper;currentTheme="light";mediaQuery=null;themeChangeHandler=null;constructor(e){this.options=e,this.container=e.container;let t=e.theme??"auto";if(this.wrapper=document.createElement("div"),this.wrapper.className="mitosis-editor-wrapper",e.cssVars)for(let[r,l]of Object.entries(e.cssVars))this.wrapper.style.setProperty(r,l);this.applyTheme(t),t==="auto"&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.themeChangeHandler=()=>{this.applyTheme("auto")},this.mediaQuery.addEventListener("change",this.themeChangeHandler));let s={container:this.wrapper};e.content!==void 0&&(s.initialContent=e.content),e.prism!==void 0&&(s.prism=e.prism),this.layout=new C(s),this.container.appendChild(this.wrapper)}applyTheme(e){if(e==="auto"){let t=window.matchMedia("(prefers-color-scheme: dark)").matches;this.currentTheme=t?"dark":"light"}else this.currentTheme=e;this.wrapper.setAttribute("data-theme",this.currentTheme)}setTheme(e){this.applyTheme(e),e!=="auto"&&this.mediaQuery&&this.themeChangeHandler&&(this.mediaQuery.removeEventListener("change",this.themeChangeHandler),this.mediaQuery=null,this.themeChangeHandler=null),e==="auto"&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.themeChangeHandler=()=>{this.applyTheme("auto")},this.mediaQuery.addEventListener("change",this.themeChangeHandler))}getTheme(){return this.currentTheme}getMarkdown(){return this.layout.getMarkdown()}getHTML(){return v(this.layout.getMarkdown(),this.options.prism)}getBoth(){let e=this.getMarkdown();return{markdown:e,html:v(e,this.options.prism)}}setMarkdown(e){this.layout.setContent(e)}destroy(){this.layout.destroy(),this.mediaQuery&&this.themeChangeHandler&&this.mediaQuery.removeEventListener("change",this.themeChangeHandler),this.container.innerHTML=""}};function It(n){return new E(n)}return Be(Ht);})();
@@ -0,0 +1 @@
1
+ .mitosis-editor-wrapper{--editor-width:100%;--editor-height:600px;--editor-padding:16px;--editor-border-radius:4px;--divider-width:2px;--editor-font-family:ui-monospace,monospace;--editor-font-size:14px;--editor-line-height:1.6;--editor-bg:#ffffff;--editor-text:#282a36;--editor-border:#e0e0e0;--editor-caret:#000000;--editor-placeholder:#999999;--editor-selection:#b3d9ff;--preview-bg:#ffffff;--preview-text:#282a36;--preview-border:#e0e0e0;--preview-code-bg:#f6f8fa;--preview-link:#0366d6;--divider-bg:#e0e0e0;--divider-hover:#bdbdbd;--scrollbar-width:6px;--scrollbar-track:transparent;--scrollbar-thumb:#c1c1c1;--scrollbar-thumb-hover:#a8a8a8;width:var(--editor-width);height:var(--editor-height);position:relative;font-family:system-ui,-apple-system,sans-serif;box-sizing:border-box}.mitosis-editor-wrapper *,.mitosis-editor-wrapper ::after,.mitosis-editor-wrapper ::before{box-sizing:inherit}.mitosis-editor-container{position:relative;height:100%;overflow:hidden}.mitosis-textarea{position:absolute;top:0;left:0;width:100%;height:100%;padding:var(--editor-padding);outline:0;resize:none;font-family:var(--editor-font-family);font-size:var(--editor-font-size);line-height:var(--editor-line-height);caret-color:var(--editor-caret);z-index:2;color:var(--editor-text);border:1px solid var(--editor-border);border-radius:var(--editor-border-radius);background:var(--editor-bg);border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.mitosis-textarea::placeholder{color:var(--editor-placeholder)}.mitosis-textarea::selection{background:var(--editor-selection)}.mitosis-highlight{position:absolute;top:0;left:0;width:100%;height:100%;padding:var(--editor-padding);pointer-events:none;font-family:var(--editor-font-family);font-size:var(--editor-font-size);line-height:var(--editor-line-height);white-space:pre-wrap;word-wrap:break-word;overflow:auto;z-index:1;color:var(--editor-text)}.mitosis-preview{height:100%;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--preview-border);border-radius:var(--editor-border-radius);background:var(--preview-bg);border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.mitosis-preview-content{padding:var(--editor-padding);overflow:auto;flex:1;background:var(--preview-bg);color:var(--preview-text)}.mitosis-preview-content h1,.mitosis-preview-content h2,.mitosis-preview-content h3,.mitosis-preview-content h4,.mitosis-preview-content h5,.mitosis-preview-content h6{margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.25}.mitosis-preview-content h1{font-size:2em;border-bottom:1px solid var(--preview-border);padding-bottom:.3em}.mitosis-preview-content h2{font-size:1.5em;border-bottom:1px solid var(--preview-border);padding-bottom:.3em}.mitosis-preview-content h3{font-size:1.25em}.mitosis-preview-content h4{font-size:1em}.mitosis-preview-content h5{font-size:.875em}.mitosis-preview-content h6{font-size:.85em;color:var(--preview-text);opacity:.7}.mitosis-preview-content p{margin:1em 0}.mitosis-preview-content ol,.mitosis-preview-content ul{padding-left:2em;margin:1em 0}.mitosis-preview-content li{margin:.25em 0}.mitosis-preview-content code{background:var(--preview-code-bg);padding:.2em .4em;border-radius:3px;font-family:ui-monospace,monospace;font-size:.9em}.mitosis-preview-content pre{background:var(--preview-code-bg);padding:16px;border-radius:6px;overflow:auto;margin:1em 0}.mitosis-preview-content pre code{background:0 0;padding:0}.mitosis-preview-content blockquote{border-left:4px solid var(--preview-border);padding-left:1em;color:var(--preview-text);opacity:.7;margin:1em 0}.mitosis-preview-content img{max-width:100%;height:auto}.mitosis-preview-content a{color:var(--preview-link);text-decoration:none}.mitosis-preview-content a:hover{text-decoration:underline}.mitosis-preview-content hr{border:none;border-top:1px solid var(--preview-border);margin:2em 0}.mitosis-layout{display:flex;height:100%;gap:0;border:1px solid var(--editor-border);border-radius:var(--editor-border-radius);overflow:hidden}.mitosis-layout .mitosis-panel{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--editor-bg)}.mitosis-divider{width:var(--divider-width);cursor:col-resize;border-left:3px solid var(--divider-bg);position:relative;flex-shrink:0;transition:border-color .15s ease}.mitosis-divider:hover{border-color:var(--divider-hover)}.mitosis-editor-wrapper ::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.mitosis-editor-wrapper ::-webkit-scrollbar-track{background:var(--scrollbar-track)}.mitosis-editor-wrapper ::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:3px}.mitosis-editor-wrapper ::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}
@@ -0,0 +1 @@
1
+ .mitosis-editor-wrapper[data-theme=dark]{--editor-bg:#282a36;--editor-text:#f8f8f2;--editor-border:#44475a;--editor-caret:#f8f8f2;--editor-placeholder:#6272a4;--editor-selection:#44475a;--preview-bg:#282a36;--preview-text:#f8f8f2;--preview-border:#44475a;--preview-code-bg:#44475a;--preview-link:#8be9fd;--divider-bg:#21222c;--divider-hover:#44475a}
@@ -0,0 +1 @@
1
+ .mitosis-editor-wrapper[data-theme=light]{--editor-bg:#ffffff;--editor-text:#282a36;--editor-border:#e0e0e0;--editor-caret:#000000;--editor-placeholder:#999999;--editor-selection:#b3d9ff;--preview-bg:#ffffff;--preview-text:#282a36;--preview-border:#e0e0e0;--preview-code-bg:#f6f8fa;--preview-link:#0366d6;--divider-bg:#e0e0e0;--divider-hover:#bdbdbd}
metadata ADDED
@@ -0,0 +1,248 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activeadmin_mitosis_editor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nadiar
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-02-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '6.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '6.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: formtastic
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '6.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '6.0'
55
+ description: Wraps mitosis-js as a custom input for ActiveAdmin forms
56
+ email:
57
+ - codex@nadiar.id
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - CHANGELOG.md
63
+ - CLAUDE.md
64
+ - Gemfile
65
+ - LICENSE
66
+ - README.md
67
+ - RELEASE.md
68
+ - Rakefile
69
+ - activeadmin_mitosis_editor.gemspec
70
+ - app/views/inputs/mitosis_editor_input/_dependencies.html.erb
71
+ - app/views/inputs/mitosis_editor_input/_form.html.erb
72
+ - bin/console
73
+ - bin/setup
74
+ - demo/.dockerignore
75
+ - demo/.gitattributes
76
+ - demo/.gitignore
77
+ - demo/.kamal/hooks/docker-setup.sample
78
+ - demo/.kamal/hooks/post-app-boot.sample
79
+ - demo/.kamal/hooks/post-deploy.sample
80
+ - demo/.kamal/hooks/post-proxy-reboot.sample
81
+ - demo/.kamal/hooks/pre-app-boot.sample
82
+ - demo/.kamal/hooks/pre-build.sample
83
+ - demo/.kamal/hooks/pre-connect.sample
84
+ - demo/.kamal/hooks/pre-deploy.sample
85
+ - demo/.kamal/hooks/pre-proxy-reboot.sample
86
+ - demo/.kamal/secrets
87
+ - demo/.rubocop.yml
88
+ - demo/.ruby-version
89
+ - demo/Dockerfile
90
+ - demo/Gemfile
91
+ - demo/Procfile.dev
92
+ - demo/README.md
93
+ - demo/Rakefile
94
+ - demo/app/admin/articles.rb
95
+ - demo/app/admin/dashboard.rb
96
+ - demo/app/admin/pages.rb
97
+ - demo/app/admin/posts.rb
98
+ - demo/app/assets/builds/.keep
99
+ - demo/app/assets/builds/active_admin.css
100
+ - demo/app/assets/images/.keep
101
+ - demo/app/assets/stylesheets/active_admin.css
102
+ - demo/app/assets/stylesheets/application.css
103
+ - demo/app/assets/stylesheets/mitosis-editor.css
104
+ - demo/app/assets/stylesheets/theme-dark.css
105
+ - demo/app/assets/stylesheets/theme-light.css
106
+ - demo/app/controllers/application_controller.rb
107
+ - demo/app/controllers/articles_controller.rb
108
+ - demo/app/controllers/concerns/.keep
109
+ - demo/app/helpers/application_helper.rb
110
+ - demo/app/helpers/articles_helper.rb
111
+ - demo/app/javascript/application.js
112
+ - demo/app/javascript/controllers/application.js
113
+ - demo/app/javascript/controllers/hello_controller.js
114
+ - demo/app/javascript/controllers/index.js
115
+ - demo/app/jobs/application_job.rb
116
+ - demo/app/mailers/application_mailer.rb
117
+ - demo/app/models/application_record.rb
118
+ - demo/app/models/article.rb
119
+ - demo/app/models/concerns/.keep
120
+ - demo/app/models/page.rb
121
+ - demo/app/models/post.rb
122
+ - demo/app/views/articles/_article.html.erb
123
+ - demo/app/views/articles/_article.json.jbuilder
124
+ - demo/app/views/articles/_form.html.erb
125
+ - demo/app/views/articles/edit.html.erb
126
+ - demo/app/views/articles/index.html.erb
127
+ - demo/app/views/articles/index.json.jbuilder
128
+ - demo/app/views/articles/new.html.erb
129
+ - demo/app/views/articles/show.html.erb
130
+ - demo/app/views/articles/show.json.jbuilder
131
+ - demo/app/views/inputs/mitosis_editor_input/_dependencies.html.erb
132
+ - demo/app/views/layouts/application.html.erb
133
+ - demo/app/views/layouts/mailer.html.erb
134
+ - demo/app/views/layouts/mailer.text.erb
135
+ - demo/app/views/pwa/manifest.json.erb
136
+ - demo/app/views/pwa/service-worker.js
137
+ - demo/bin/brakeman
138
+ - demo/bin/bundler-audit
139
+ - demo/bin/ci
140
+ - demo/bin/dev
141
+ - demo/bin/docker-entrypoint
142
+ - demo/bin/importmap
143
+ - demo/bin/jobs
144
+ - demo/bin/kamal
145
+ - demo/bin/rails
146
+ - demo/bin/rake
147
+ - demo/bin/rubocop
148
+ - demo/bin/setup
149
+ - demo/bin/thrust
150
+ - demo/config.ru
151
+ - demo/config/application.rb
152
+ - demo/config/boot.rb
153
+ - demo/config/bundler-audit.yml
154
+ - demo/config/cable.yml
155
+ - demo/config/cache.yml
156
+ - demo/config/ci.rb
157
+ - demo/config/credentials.yml.enc
158
+ - demo/config/database.yml
159
+ - demo/config/deploy.yml
160
+ - demo/config/environment.rb
161
+ - demo/config/environments/development.rb
162
+ - demo/config/environments/production.rb
163
+ - demo/config/environments/test.rb
164
+ - demo/config/importmap.rb
165
+ - demo/config/initializers/active_admin.rb
166
+ - demo/config/initializers/activeadmin_mitosis_editor.rb
167
+ - demo/config/initializers/assets.rb
168
+ - demo/config/initializers/content_security_policy.rb
169
+ - demo/config/initializers/filter_parameter_logging.rb
170
+ - demo/config/initializers/inflections.rb
171
+ - demo/config/locales/en.yml
172
+ - demo/config/puma.rb
173
+ - demo/config/queue.yml
174
+ - demo/config/recurring.yml
175
+ - demo/config/routes.rb
176
+ - demo/config/storage.yml
177
+ - demo/db/cable_schema.rb
178
+ - demo/db/cache_schema.rb
179
+ - demo/db/migrate/20260215110410_create_active_admin_comments.rb
180
+ - demo/db/migrate/20260215110416_create_articles.rb
181
+ - demo/db/migrate/20260216124916_create_posts.rb
182
+ - demo/db/migrate/20260216124919_create_pages.rb
183
+ - demo/db/queue_schema.rb
184
+ - demo/db/schema.rb
185
+ - demo/db/seeds.rb
186
+ - demo/lib/tasks/.keep
187
+ - demo/log/.keep
188
+ - demo/package-lock.json
189
+ - demo/package.json
190
+ - demo/public/400.html
191
+ - demo/public/404.html
192
+ - demo/public/406-unsupported-browser.html
193
+ - demo/public/422.html
194
+ - demo/public/500.html
195
+ - demo/public/icon.png
196
+ - demo/public/icon.svg
197
+ - demo/public/robots.txt
198
+ - demo/script/.keep
199
+ - demo/spec/rails_helper.rb
200
+ - demo/spec/spec_helper.rb
201
+ - demo/spec/system/admin_articles_spec.rb
202
+ - demo/spec/system/mitosis_editor_prism_spec.rb
203
+ - demo/spec/system/mitosis_editor_theme_spec.rb
204
+ - demo/storage/.keep
205
+ - demo/tailwind-active_admin.config.js
206
+ - demo/tmp/.keep
207
+ - demo/tmp/storage/.keep
208
+ - demo/vendor/.keep
209
+ - demo/vendor/javascript/.keep
210
+ - docs/plans/2026-02-15-mitosis-editor-gem-design.md
211
+ - docs/plans/2026-02-15-mitosis-editor-gem-implementation.md
212
+ - lib/activeadmin_mitosis_editor.rb
213
+ - lib/activeadmin_mitosis_editor/inputs/mitosis_editor_input.rb
214
+ - lib/activeadmin_mitosis_editor/railtie.rb
215
+ - lib/activeadmin_mitosis_editor/version.rb
216
+ - lib/generators/mitosis_editor/styles_generator.rb
217
+ - lib/generators/mitosis_editor/templates/_dependencies.html.erb
218
+ - lib/generators/mitosis_editor/views_generator.rb
219
+ - preview.png
220
+ - script/bump-version
221
+ - vendor/assets/javascripts/mitosis-editor.js
222
+ - vendor/assets/stylesheets/mitosis-editor.css
223
+ - vendor/assets/stylesheets/theme-dark.min.css
224
+ - vendor/assets/stylesheets/theme-light.min.css
225
+ homepage:
226
+ licenses:
227
+ - MIT
228
+ metadata: {}
229
+ post_install_message:
230
+ rdoc_options: []
231
+ require_paths:
232
+ - lib
233
+ required_ruby_version: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ required_rubygems_version: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: '0'
243
+ requirements: []
244
+ rubygems_version: 3.5.20
245
+ signing_key:
246
+ specification_version: 4
247
+ summary: A split-view markdown editor input for ActiveAdmin
248
+ test_files: []