UNPKG

docsify

Version:

A magical documentation generator.

7 lines 185 kB
/*! * Docsify v5.0.0 * https://docsify.js.org * (c) 2017-2026 * MIT license */ !function(){"use strict";function e(e,n){return n.forEach((function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(t){if("default"!==t&&!(t in e)){var i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:function(){return n[t]}})}}))})),Object.freeze(e)}function n(e){const n=Object.create(null);return function(t){const o=i(t)?t:JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}}const t=n((e=>e.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase()))));function i(e){return"string"==typeof e||"number"==typeof e}function o(){}function a(e){return"function"==typeof e}function r(e){const n=e.match(/^([^:/?#]+:)?(?:\/{2,}([^/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof n[1]&&n[1].length>0&&n[1].toLowerCase()!==location.protocol||("string"==typeof n[2]&&n[2].length>0&&n[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host||!!/^\/\\/.test(e))}const c={};function s(e,n=!1){if("string"==typeof e){if(void 0!==window.Vue)return f(e);e=n?f(e):c[e]||(c[e]=f(e))}return e}function u(e,n,t){const i=s(e);i&&(i[t?"outerHTML":"innerHTML"]=n)}const l=document,p=l.body,d=l.head;function f(e,n=":is()"){return"string"!=typeof e?e.querySelector(n):l.querySelector(e)}function g(e,n=":is()"){return Array.from("string"!=typeof e?e.querySelectorAll(n):l.querySelectorAll(e))}function v(e,n){const t=l.createElement(e);return n&&(t.innerHTML=n),t}function h(e,n){return e.appendChild(n)}function m(e,n){return e.insertBefore(n,e.children[0])}function _(e,n,t){a(n)?window.addEventListener(e,n):e.addEventListener(n,t)}function b(e,n=document){const t=n.readyState;if("complete"===t||"interactive"===t)return setTimeout(e,0);n.addEventListener("DOMContentLoaded",e)}var k=Object.freeze({__proto__:null,$:l,appendTo:h,before:m,body:p,create:v,documentReady:b,find:f,findAll:g,getNode:s,head:d,off:function(e,n,t){a(n)?window.removeEventListener(e,n):e.removeEventListener(n,t)},on:_,setHTML:u,style:function(e){h(d,v("style",e))}}),w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,$={exports:{}};var S=(x||(x=1,function(e){var n=function(e){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,i={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof a?new a(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(n,t){var i,a;switch(t=t||{},o.util.type(n)){case"Object":if(a=o.util.objId(n),t[a])return t[a];for(var r in i={},t[a]=i,n)n.hasOwnProperty(r)&&(i[r]=e(n[r],t));return i;case"Array":return a=o.util.objId(n),t[a]?t[a]:(i=[],t[a]=i,n.forEach((function(n,o){i[o]=e(n,t)})),i);default:return n}},getLanguage:function(e){for(;e;){var t=n.exec(e.className);if(t)return t[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,t){e.className=e.className.replace(RegExp(n,"gi"),""),e.classList.add("language-"+t)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(i){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(e){var n=document.getElementsByTagName("script");for(var t in n)if(n[t].src==e)return n[t]}return null}},isActive:function(e,n,t){for(var i="no-"+n;e;){var o=e.classList;if(o.contains(n))return!0;if(o.contains(i))return!1;e=e.parentElement}return!!t}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,n){var t=o.util.clone(o.languages[e]);for(var i in n)t[i]=n[i];return t},insertBefore:function(e,n,t,i){var a=(i=i||o.languages)[e],r={};for(var c in a)if(a.hasOwnProperty(c)){if(c==n)for(var s in t)t.hasOwnProperty(s)&&(r[s]=t[s]);t.hasOwnProperty(c)||(r[c]=a[c])}var u=i[e];return i[e]=r,o.languages.DFS(o.languages,(function(n,t){t===u&&n!=e&&(this[n]=r)})),r},DFS:function e(n,t,i,a){a=a||{};var r=o.util.objId;for(var c in n)if(n.hasOwnProperty(c)){t.call(n,c,n[c],i||c);var s=n[c],u=o.util.type(s);"Object"!==u||a[r(s)]?"Array"!==u||a[r(s)]||(a[r(s)]=!0,e(s,t,c,a)):(a[r(s)]=!0,e(s,t,null,a))}}},plugins:{},highlightAll:function(e,n){o.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,t){var i={callback:t,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),o.hooks.run("before-all-elements-highlight",i);for(var a,r=0;a=i.elements[r++];)o.highlightElement(a,!0===n,i.callback)},highlightElement:function(n,t,i){var a=o.util.getLanguage(n),r=o.languages[a];o.util.setLanguage(n,a);var c=n.parentElement;c&&"pre"===c.nodeName.toLowerCase()&&o.util.setLanguage(c,a);var s={element:n,language:a,grammar:r,code:n.textContent};function u(e){s.highlightedCode=e,o.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,o.hooks.run("after-highlight",s),o.hooks.run("complete",s),i&&i.call(s.element)}if(o.hooks.run("before-sanity-check",s),(c=s.element.parentElement)&&"pre"===c.nodeName.toLowerCase()&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0"),!s.code)return o.hooks.run("complete",s),void(i&&i.call(s.element));if(o.hooks.run("before-highlight",s),s.grammar)if(t&&e.Worker){var l=new Worker(o.filename);l.onmessage=function(e){u(e.data)},l.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else u(o.highlight(s.code,s.grammar,s.language));else u(o.util.encode(s.code))},highlight:function(e,n,t){var i={code:e,grammar:n,language:t};if(o.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=o.tokenize(i.code,i.grammar),o.hooks.run("after-tokenize",i),a.stringify(o.util.encode(i.tokens),i.language)},tokenize:function(e,n){var t=n.rest;if(t){for(var i in t)n[i]=t[i];delete n.rest}var o=new s;return u(o,o.head,e),c(e,o,n,o.head,0),function(e){for(var n=[],t=e.head.next;t!==e.tail;)n.push(t.value),t=t.next;return n}(o)},hooks:{all:{},add:function(e,n){var t=o.hooks.all;t[e]=t[e]||[],t[e].push(n)},run:function(e,n){var t=o.hooks.all[e];if(t&&t.length)for(var i,a=0;i=t[a++];)i(n)}},Token:a};function a(e,n,t,i){this.type=e,this.content=n,this.alias=t,this.length=0|(i||"").length}function r(e,n,t,i){e.lastIndex=n;var o=e.exec(t);if(o&&i&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function c(e,n,t,i,s,p){for(var d in t)if(t.hasOwnProperty(d)&&t[d]){var f=t[d];f=Array.isArray(f)?f:[f];for(var g=0;g<f.length;++g){if(p&&p.cause==d+","+g)return;var v=f[g],h=v.inside,m=!!v.lookbehind,_=!!v.greedy,b=v.alias;if(_&&!v.pattern.global){var k=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,k+"g")}for(var w=v.pattern||v,y=i.next,x=s;y!==n.tail&&!(p&&x>=p.reach);x+=y.value.length,y=y.next){var $=y.value;if(n.length>e.length)return;if(!($ instanceof a)){var S,A=1;if(_){if(!(S=r(w,x,e,m))||S.index>=e.length)break;var E=S.index,T=S.index+S[0].length,R=x;for(R+=y.value.length;E>=R;)R+=(y=y.next).value.length;if(x=R-=y.value.length,y.value instanceof a)continue;for(var L=y;L!==n.tail&&(R<T||"string"==typeof L.value);L=L.next)A++,R+=L.value.length;A--,$=e.slice(x,R),S.index-=x}else if(!(S=r(w,0,$,m)))continue;E=S.index;var j=S[0],C=$.slice(0,E),z=$.slice(E+j.length),q=x+$.length;p&&q>p.reach&&(p.reach=q);var F=y.prev;if(C&&(F=u(n,F,C),x+=C.length),l(n,F,A),y=u(n,F,new a(d,h?o.tokenize(j,h):j,b,j)),z&&u(n,y,z),A>1){var P={cause:d+","+g,reach:q};c(e,n,t,y.prev,x,P),p&&P.reach>p.reach&&(p.reach=P.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function u(e,n,t){var i=n.next,o={value:t,prev:n,next:i};return n.next=o,i.prev=o,e.length++,o}function l(e,n,t){for(var i=n.next,o=0;o<t&&i!==e.tail;o++)i=i.next;n.next=i,i.prev=n,e.length-=o}if(e.Prism=o,a.stringify=function e(n,t){if("string"==typeof n)return n;if(Array.isArray(n)){var i="";return n.forEach((function(n){i+=e(n,t)})),i}var a={type:n.type,content:e(n.content,t),tag:"span",classes:["token",n.type],attributes:{},language:t},r=n.alias;r&&(Array.isArray(r)?Array.prototype.push.apply(a.classes,r):a.classes.push(r)),o.hooks.run("wrap",a);var c="";for(var s in a.attributes)c+=" "+s+'="'+(a.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+c+">"+a.content+"</"+a.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(n){var t=JSON.parse(n.data),i=t.language,a=t.code,r=t.immediateClose;e.postMessage(o.highlight(a,o.languages[i],i)),r&&e.close()}),!1),o):o;var p=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(p&&(o.filename=p.src,p.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var f=document.readyState;"loading"===f||"interactive"===f&&p&&p.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==w&&(w.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var i={};i["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(e){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var t=e.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(void 0!==n&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",i="loading",o="loaded",a="pre[data-src]:not(["+t+'="'+o+'"]):not(['+t+'="'+i+'"])';n.hooks.add("before-highlightall",(function(e){e.selector+=", "+a})),n.hooks.add("before-sanity-check",(function(r){var c=r.element;if(c.matches(a)){r.code="",c.setAttribute(t,i);var s=c.appendChild(document.createElement("CODE"));s.textContent="Loading…";var u=c.getAttribute("data-src"),l=r.language;if("none"===l){var p=(/\.(\w+)$/.exec(u)||[,"none"])[1];l=e[p]||p}n.util.setLanguage(s,l),n.util.setLanguage(c,l);var d=n.plugins.autoloader;d&&d.loadLanguages(l),function(e,n,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.onreadystatechange=function(){4==i.readyState&&(i.status<400&&i.responseText?n(i.responseText):i.status>=400?t("✖ Error "+i.status+" while fetching file: "+i.statusText):t("✖ Error: File does not exist or is empty"))},i.send(null)}(u,(function(e){c.setAttribute(t,o);var i=function(e){var n=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(n){var t=Number(n[1]),i=n[2],o=n[3];return i?o?[t,Number(o)]:[t,void 0]:[t,t]}}(c.getAttribute("data-range"));if(i){var a=e.split(/\r\n?|\n/g),r=i[0],u=null==i[1]?a.length:i[1];r<0&&(r+=a.length),r=Math.max(0,Math.min(r-1,a.length)),u<0&&(u+=a.length),u=Math.max(0,Math.min(u,a.length)),e=a.slice(r,u).join("\n"),c.hasAttribute("data-start")||c.setAttribute("data-start",String(r+1))}s.textContent=e,n.highlightElement(s)}),(function(e){c.setAttribute(t,"failed"),s.textContent=e}))}})),n.plugins.fileHighlight={highlight:function(e){for(var t,i=(e||document).querySelectorAll(a),o=0;t=i[o++];)n.highlightElement(t)}};var r=!1;n.fileHighlight=function(){r||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),r=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}($)),$.exports),A=e({__proto__:null,default:y(S)},[S]);const E=decodeURIComponent,T=encodeURIComponent;function R(e){const n={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("=");n[t[0]]=t[1]&&E(t[1])})),n):n}function L(e,n=[]){const t=[];for(const i in e)n.indexOf(i)>-1||t.push(e[i]?`${T(i)}=${T(e[i])}`.toLowerCase():T(i));return t.length?`?${t.join("&")}`:""}function j(e){const[n,t]=e.split("?");if(!t)return e;const i=new URLSearchParams(t).get("id");return null!==i?`${n}?id=${i}`:n}const C=n((e=>/(:|(\/{2}))/g.test(e))),z=n((e=>e.split(/[?#]/)[0])),q=n((e=>{if(/\/$/g.test(e))return e;const n=e.match(/(\S*\/)[^/]+$/);return n?n[1]:""})),F=n((e=>e.replace(/^\/+/,"/").replace(/([^:])\/{2,}/g,"$1/"))),P=n((e=>{const n=e.replace(/^\//,"").split("/"),t=[];for(const e of n)".."===e?t.pop():"."!==e&&t.push(e);return"/"+t.join("/")}));function M(e){return e.split("/").filter((e=>-1===e.indexOf("#"))).join("/")}function O(...e){return F(e.map(M).join("/"))}const I=n((e=>e.replace("#","?id=")));class N{#e={};constructor(e){this.config=e}#n(e,n,t){const i=Object.keys(n).filter((n=>(this.#e[n]||(this.#e[n]=new RegExp(`^${n}$`))).test(e)&&e!==t))[0];return i?this.#n(e.replace(this.#e[i],n[i]),n,e):e}#t(e,n){const[t,i]=e.split("?"),o=new RegExp(`\\.(${n.replace(/^\./,"")}|html)$`).test(t)?t:/\/$/g.test(t)?`${t}README${n}`:`${t}${n}`;return i?`${o}?${i}`:o}getBasePath(){return this.config.basePath}getFile(e=this.getCurrentPath(),n=!1){const{config:t}=this,i=this.getBasePath(),o="string"==typeof t.ext?t.ext:".md";return e=t.alias?this.#n(e,t.alias):e,e=(e=this.#t(e,o))===`/README${o}`&&t.homepage||e,e=C(e)?e:O(i,e),n&&(e=e.replace(new RegExp(`^${i}`),"")),e}onchange(e=o){e()}getCurrentPath(){throw new Error("Subclass should implement")}normalize(){throw new Error("Subclass should implement")}parse(e){throw new Error("Subclass should implement")}toURL(e,n,t){const i=t&&"#"===e[0],o=this.parse(I(e));if(o.query={...o.query,...n},e=(e=o.path+L(o.query)).replace(/\.md(\?)|\.md$/,"$1"),i){const n=t.indexOf("?");e=(n>0?t.substring(0,n):t)+e}if(this.config.relativePath&&0!==e.indexOf("/")){const n=t.substring(0,t.lastIndexOf("/")+1);return F(P(n+e))}return F("/"+e)}}function B(e){const n=location.href.indexOf("#");location.replace(location.href.slice(0,n>=0?n:0)+"#"+e)}class D extends N{mode="hash";getBasePath(){const e=window.location.pathname||"",n=this.config.basePath,t=e.endsWith(".html")?e+"#/"+n:e+"/"+n;return/^(\/|https?:)/g.test(n)?n:F(t)}getCurrentPath(){const e=location.href,n=e.indexOf("#");return-1===n?"":e.slice(n+1)}onchange(e=o){let n=!1;_("click",(t=>{const i="A"===t.target.tagName?t.target:t.target.parentNode;if(i&&"A"===i.tagName&&!r(i.href)){if(n=!0,["app-name-link","page-link"].includes(i.className))return;i.hash===location.hash&&e({event:t,source:"navigate"})}})),_("hashchange",(t=>{const i=n?"navigate":"history";n=!1,e({event:t,source:i})}))}normalize(){let e=this.getCurrentPath();if(e=I(e),"/"===e.charAt(0))return B(e);B("/"+e)}parse(e=location.href){let n="";const t=e.indexOf("#");t>=0&&(e=e.slice(t+1));const i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,file:this.getFile(e,!0),query:R(n),response:{}}}toURL(e,n,t){return"#"+super.toURL(e,n,t)}}class H extends N{mode="history";getCurrentPath(){const e=this.getBasePath();let n=window.location.pathname;return e&&0===n.indexOf(e)&&(n=n.slice(e.length)),(n||"/")+window.location.search+window.location.hash}onchange(e=o){_("click",(n=>{const t="A"===n.target.tagName?n.target:n.target.parentNode;if(t&&"A"===t.tagName&&!r(t.href)){n.preventDefault();const i=t.href;window.history.pushState({key:i},"",i),e({event:n,source:"navigate"})}})),_("popstate",(n=>{e({event:n,source:"history"})}))}parse(e=location.href){let n="";const t=e.indexOf("?");t>=0&&(n=e.slice(t+1),e=e.slice(0,t));const i=O(location.origin),o=e.indexOf(i);return o>-1&&(e=e.slice(o+i.length)),{path:e,file:this.getFile(e),query:R(n),response:{}}}normalize(){}}let U={};var Z=/([^{]*?)\w(?=\})/g,G={YYYY:"getFullYear",YY:"getYear",MM:function(e){return e.getMonth()+1},DD:"getDate",HH:"getHours",mm:"getMinutes",ss:"getSeconds",fff:"getMilliseconds"};const W=getComputedStyle(document.documentElement,null).getPropertyValue("--_mobile-breakpoint");function V(){return window?.matchMedia?.(`(max-width: ${W})`)?.matches}function Q(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Y={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function X(e){Y=e}var J={exec:()=>null};function K(e,n=""){let t="string"==typeof e?e:e.source,i={replace:(e,n)=>{let o="string"==typeof n?n:n.source;return o=o.replace(ne.caret,"$1"),t=t.replace(e,o),i},getRegex:()=>new RegExp(t,n)};return i}var ee=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),ne={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},te=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ie=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,oe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ae=K(oe).replace(/bull/g,ie).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(),re=K(oe).replace(/bull/g,ie).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(),ce=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,se=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ue=K(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",se).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),le=K(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ie).getRegex(),pe="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",de=/<!--(?:-?>|[\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[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",de).replace("tag",pe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ge=K(ce).replace("hr",te).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",pe).getRegex(),ve={blockquote:K(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ge).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:ue,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:te,html:fe,lheading:ae,list:le,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:ge,table:J,text:/^[^\n]+/},he=K("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",te).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\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",pe).getRegex(),me={...ve,lheading:re,table:he,paragraph:K(ce).replace("hr",te).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pe).getRegex()},_e={...ve,html:K("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",de).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:J,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:K(ce).replace("hr",te).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},be=/^( {2,}|\\)\n(?!\s*$)/,ke=/[\p{P}\p{S}]/u,we=/[\s\p{P}\p{S}]/u,ye=/[^\s\p{P}\p{S}]/u,xe=K(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,we).getRegex(),$e=/(?!~)[\p{P}\p{S}]/u,Se=K(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ee?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ae=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ee=K(Ae,"u").replace(/punct/g,ke).getRegex(),Te=K(Ae,"u").replace(/punct/g,$e).getRegex(),Re="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Le=K(Re,"gu").replace(/notPunctSpace/g,ye).replace(/punctSpace/g,we).replace(/punct/g,ke).getRegex(),je=K(Re,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,$e).getRegex(),Ce=K("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ye).replace(/punctSpace/g,we).replace(/punct/g,ke).getRegex(),ze=K(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ke).getRegex(),qe=K("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,ye).replace(/punctSpace/g,we).replace(/punct/g,ke).getRegex(),Fe=K(/\\(punct)/,"gu").replace(/punct/g,ke).getRegex(),Pe=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(),Me=K(de).replace("(?:--\x3e|$)","--\x3e").getRegex(),Oe=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",Me).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ie=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ne=K(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ie).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Be=K(/^!?\[(label)\]\[(ref)\]/).replace("label",Ie).replace("ref",se).getRegex(),De=K(/^!?\[(ref)\](?:\[\])?/).replace("ref",se).getRegex(),He=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ue={_backpedal:J,anyPunctuation:Fe,autolink:Pe,blockSkip:Se,br:be,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:J,delLDelim:J,delRDelim:J,emStrongLDelim:Ee,emStrongRDelimAst:Le,emStrongRDelimUnd:Ce,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Ne,nolink:De,punctuation:xe,reflink:Be,reflinkSearch:K("reflink|nolink(?!\\()","g").replace("reflink",Be).replace("nolink",De).getRegex(),tag:Oe,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:J},Ze={...Ue,link:K(/^!?\[(label)\]\((.*?)\)/).replace("label",Ie).getRegex(),reflink:K(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ie).getRegex()},Ge={...Ue,emStrongRDelimAst:je,emStrongLDelim:Te,delLDelim:ze,delRDelim:qe,url:K(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",He).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:K(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",He).getRegex()},We={...Ge,br:K(be).replace("{2,}","*").getRegex(),text:K(Ge.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ve={normal:ve,gfm:me,pedantic:_e},Qe={normal:Ue,gfm:Ge,breaks:We,pedantic:Ze},Ye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xe=e=>Ye[e];function Je(e,n){if(n){if(ne.escapeTest.test(e))return e.replace(ne.escapeReplace,Xe)}else if(ne.escapeTestNoEncode.test(e))return e.replace(ne.escapeReplaceNoEncode,Xe);return e}function Ke(e){try{e=encodeURI(e).replace(ne.percentDecode,"%")}catch{return null}return e}function en(e,n){let t=e.replace(ne.findPipe,((e,n,t)=>{let i=!1,o=n;for(;--o>=0&&"\\"===t[o];)i=!i;return i?"|":" |"})).split(ne.splitPipe),i=0;if(t[0].trim()||t.shift(),t.length>0&&!t.at(-1)?.trim()&&t.pop(),n)if(t.length>n)t.splice(n);else for(;t.length<n;)t.push("");for(;i<t.length;i++)t[i]=t[i].trim().replace(ne.slashPipe,"|");return t}function nn(e,n,t){let i=e.length;if(0===i)return"";let o=0;for(;o<i;){if(e.charAt(i-o-1)!==n)break;o++}return e.slice(0,i-o)}function tn(e){let n=e.split("\n"),t=n.length-1;for(;t>=0&&ne.blankLine.test(n[t]);)t--;return n.length-t<=2?e:n.slice(0,t+1).join("\n")}function on(e,n=0){let t=n,i="";for(let n of e)if("\t"===n){let e=4-t%4;i+=" ".repeat(e),t+=e}else i+=n,t++;return i}function an(e,n,t,i,o){let a=n.href,r=n.title||null,c=e[1].replace(o.other.outputLinkReplace,"$1");i.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:t,href:a,title:r,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,s}var rn=class{options;rules;lexer;constructor(e){this.options=e||Y}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let e=this.options.pedantic?n[0]:tn(n[0]),t=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:t}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let e=n[0],t=function(e,n,t){let i=e.match(t.other.indentCodeCompensation);if(null===i)return n;let o=i[1];return n.split("\n").map((e=>{let n=e.match(t.other.beginningSpace);if(null===n)return e;let[i]=n;return i.length>=o.length?e.slice(o.length):e})).join("\n")}(e,n[3]||"",this.rules);return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:t}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let e=n[2].trim();if(this.rules.other.endingHash.test(e)){let n=nn(e,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(e=n.trim())}return{type:"heading",raw:nn(n[0],"\n"),depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:nn(n[0],"\n")}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let e=nn(n[0],"\n").split("\n"),t="",i="",o=[];for(;e.length>0;){let n,a=!1,r=[];for(n=0;n<e.length;n++)if(this.rules.other.blockquoteStart.test(e[n]))r.push(e[n]),a=!0;else{if(a)break;r.push(e[n])}e=e.slice(n);let c=r.join("\n"),s=c.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");t=t?`${t}\n${c}`:c,i=i?`${i}\n${s}`:s;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,o,!0),this.lexer.state.top=u,0===e.length)break;let l=o.at(-1);if("code"===l?.type)break;if("blockquote"===l?.type){let n=l,a=n.raw+"\n"+e.join("\n"),r=this.blockquote(a);o[o.length-1]=r,t=t.substring(0,t.length-n.raw.length)+r.raw,i=i.substring(0,i.length-n.text.length)+r.text;break}if("list"!==l?.type);else{let n=l,a=n.raw+"\n"+e.join("\n"),r=this.list(a);o[o.length-1]=r,t=t.substring(0,t.length-l.raw.length)+r.raw,i=i.substring(0,i.length-n.raw.length)+r.raw,e=a.substring(o.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:t,tokens:o,text:i}}}list(e){let n=this.rules.block.list.exec(e);if(n){let t=n[1].trim(),i=t.length>1,o={type:"list",raw:"",ordered:i,start:i?+t.slice(0,-1):"",loose:!1,items:[]};t=i?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=i?t:"[*+-]");let a=this.rules.other.listItemRegex(t),r=!1;for(;e;){let t=!1,i="",c="";if(!(n=a.exec(e))||this.rules.block.hr.test(e))break;i=n[0],e=e.substring(i.length);let s=on(n[2].split("\n",1)[0],n[1].length),u=e.split("\n",1)[0],l=!s.trim(),p=0;if(this.options.pedantic?(p=2,c=s.trimStart()):l?p=n[1].length+1:(p=s.search(this.rules.other.nonSpaceChar),p=p>4?1:p,c=s.slice(p),p+=n[1].length),l&&this.rules.other.blankLine.test(u)&&(i+=u+"\n",e=e.substring(u.length+1),t=!0),!t){let n=this.rules.other.nextBulletRegex(p),t=this.rules.other.hrRegex(p),o=this.rules.other.fencesBeginRegex(p),a=this.rules.other.headingBeginRegex(p),r=this.rules.other.htmlBeginRegex(p),d=this.rules.other.blockquoteBeginRegex(p);for(;e;){let f,g=e.split("\n",1)[0];if(u=g,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),f=u):f=u.replace(this.rules.other.tabCharGlobal," "),o.test(u)||a.test(u)||r.test(u)||d.test(u)||n.test(u)||t.test(u))break;if(f.search(this.rules.other.nonSpaceChar)>=p||!u.trim())c+="\n"+f.slice(p);else{if(l||s.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(s)||a.test(s)||t.test(s))break;c+="\n"+u}l=!u.trim(),i+=g+"\n",e=e.substring(g.length+1),s=f.slice(p)}}o.loose||(r?o.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(r=!0)),o.items.push({type:"list_item",raw:i,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),o.raw+=i}let c=o.items.at(-1);if(!c)return;c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd(),o.raw=o.raw.trimEnd();for(let e of o.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let n=e.tokens[0];if(!e.task||"text"!==n?.type&&"paragraph"!==n?.type)e.task&&(e.task=!1);else{e.text=e.text.replace(this.rules.other.listReplaceTask,""),n.raw=n.raw.replace(this.rules.other.listReplaceTask,""),n.text=n.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,o.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!o.loose){let n=e.tokens.filter((e=>"space"===e.type)),t=n.length>0&&n.some((e=>this.rules.other.anyLine.test(e.raw)));o.loose=t}}if(o.loose)for(let e of o.items){e.loose=!0;for(let n of e.tokens)"text"===n.type&&(n.type="paragraph")}return o}}html(e){let n=this.rules.block.html.exec(e);if(n){let e=tn(n[0]);return{type:"html",block:!0,raw:e,pre:"pre"===n[1]||"script"===n[1]||"style"===n[1],text:e}}}def(e){let n=this.rules.block.def.exec(e);if(n){let e=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),t=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:e,raw:nn(n[0],"\n"),href:t,title:i}}}table(e){let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let t=en(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:nn(n[0],"\n"),header:[],align:[],rows:[]};if(t.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<t.length;e++)a.header.push({text:t[e],tokens:this.lexer.inline(t[e]),header:!0,align:a.align[e]});for(let e of o)a.rows.push(en(e,a.header.length).map(((e,n)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[n]}))));return a}}lheading(e){let n=this.rules.block.lheading.exec(e);if(n){let e=n[1].trim();return{type:"heading",raw:nn(n[0],"\n"),depth:"="===n[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let e="\n"===n[1].charAt(n[1].length-1)?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){let n=this.rules.inline.link.exec(e);if(n){let e=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let n=nn(e.slice(0,-1),"\\");if((e.length-n.length)%2==0)return}else{let e=function(e,n){if(-1===e.indexOf(n[1]))return-1;let t=0;for(let i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===n[0])t++;else if(e[i]===n[1]&&(t--,t<0))return i;return t>0?-2:-1}(n[2],"()");if(-2===e)return;if(e>-1){let t=(0===n[0].indexOf("!")?5:4)+n[1].length+e;n[2]=n[2].substring(0,e),n[0]=n[0].substring(0,t).trim(),n[3]=""}}let t=n[2],i="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(t);e&&(t=e[1],i=e[3])}else i=n[3]?n[3].slice(1,-1):"";return t=t.trim(),this.rules.other.startAngleBracket.test(t)&&(t=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?t.slice(1):t.slice(1,-1)),an(n,{href:t&&t.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(e,n){let t;if((t=this.rules.inline.reflink.exec(e))||(t=this.rules.inline.nolink.exec(e))){let e=n[(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=t[0].charAt(0);return{type:"text",raw:e,text:e}}return an(t,e,t[0],this.lexer,this.rules)}}emStrong(e,n,t=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(i&&(i[1]||i[2]||i[3]||i[4])&&(!i[4]||!t.match(this.rules.other.unicodeAlphaNumeric))&&(!i[1]&&!i[3]||!t||this.rules.inline.punctuation.exec(t))){let t,o,a=[...i[0]].length-1,r=a,c=0,s="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,n=n.slice(-1*e.length+a);null!==(i=s.exec(n));){if(t=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!t)continue;if(o=[...t].length,i[3]||i[4]){r+=o;continue}if((i[5]||i[6])&&a%3&&!((a+o)%3)){c+=o;continue}if(r-=o,r>0)continue;o=Math.min(o,o+r+c);let n=[...i[0]][0].length,s=e.slice(0,a+i.index+n+o);if(Math.min(a,o)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let u=s.slice(2,-2);return{type:"strong",raw:s,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let n=this.rules.inline.code.exec(e);if(n){let e=n[2].replace(this.rules.other.newLineCharGlobal," "),t=this.rules.other.nonSpaceChar.test(e),i=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return t&&i&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:n[0],text:e}}}br(e){let n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e,n,t=""){let i=this.rules.inline.delLDelim.exec(e);if(i&&(!i[1]||!t||this.rules.inline.punctuation.exec(t))){let t,o,a=[...i[0]].length-1,r=a,c=this.rules.inline.delRDelim;for(c.lastIndex=0,n=n.slice(-1*e.length+a);null!==(i=c.exec(n));){if(t=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!t||(o=[...t].length,o!==a))continue;if(i[3]||i[4]){r+=o;continue}if(r-=o,r>0)continue;o=Math.min(o,o+r);let n=[...i[0]][0].length,c=e.slice(0,a+i.index+n+o),s=c.slice(a,-a);return{type:"del",raw:c,text:s,tokens:this.lexer.inlineTokens(s)}}}}autolink(e){let n=this.rules.inline.autolink.exec(e);if(n){let e,t;return"@"===n[2]?(e=n[1],t="mailto:"+e):(e=n[1],t=e),{type:"link",raw:n[0],text:e,href:t,tokens:[