diff --git a/docs/assets/js/docify.js b/docs/assets/js/docify.js index 287ff480..95e33828 100644 --- a/docs/assets/js/docify.js +++ b/docs/assets/js/docify.js @@ -425,11 +425,41 @@ * Init progress component */ function init() { + var progress_bg = create('div'); + var progress_title = create('h2'); + var progress_box = create('div'); + var progress_bar = create('div'); var div = create('div'); - - div.classList.add('progress'); - appendTo(body, div); + progress_title.innerText = "Docs Loading...." + progress_title.style.textAlign = "center" + progress_title.style.marginTop = "-50px" + progress_bg.style.position = "fixed"; + progress_bg.style.top = "0px"; + progress_bg.style.left = "0px"; + progress_bg.style.width = "100%"; + progress_bg.style.height = "100%"; + progress_bg.style.background = "white"; + progress_bg.style.zIndex = "9999"; + progress_bar.classList.add('progress'); + progress_bar.style.width = "100%"; + progress_bar.style.height = "50px"; + progress_bar.style.borderRadius = "50px"; + // div.classList.add('progress'); + div.classList.add('progress-bar'); + div.classList.add('progress-bar-striped'); + div.classList.add('progress-bar-animated'); + progress_box.style.position = "fixed"; + progress_box.style.top = "50%"; + progress_box.style.left = "50%"; + progress_box.style.width = "50%"; + progress_box.style.transform = "translate(-50%,-50%)"; + appendTo(progress_bar, div); + appendTo(progress_box, progress_title); + appendTo(progress_box, progress_bar); + appendTo(progress_bg, progress_box); + appendTo(body, progress_bg); barEl = div; + barE2 = progress_bg; } /** * Render progress bar @@ -451,13 +481,14 @@ } barEl.style.opacity = 1; - barEl.style.width = num >= 95 ? '100%' : num + '%'; - + barEl.innerText = num + "%"; + barEl.style.width = num >= 95 ? '100%' : num + '%'; if (num >= 95) { clearTimeout(timeId); timeId = setTimeout(function (_) { barEl.style.opacity = 0; barEl.style.width = '0%'; + barE2.style.display = "none"; }, 200); } } @@ -4353,7 +4384,9 @@ html = formatUpdated(html, opt.updatedAt, this$1.config.formatUpdated); } - callHook(this$1, 'afterEach', html, function (text) { completeLoading();return renderMain.call(this$1, text); }); + // callHook(this$1, 'afterEach', html, function (text) { completeLoading();return renderMain.call(this$1, text); }); + callHook(this$1, 'afterEach', html, function (text) {return renderMain.call(this$1, text); }); + }; if (this$1.isHTML) { html = this$1.result = text; diff --git a/docs/assets/js/docify.min.js b/docs/assets/js/docify.min.js index 26e541f4..436c45b9 100644 --- a/docs/assets/js/docify.min.js +++ b/docs/assets/js/docify.min.js @@ -1,441 +1,18 @@ -(function(){function cached(fn){var cache=Object.create(null);return function(str){var key=isPrimitive(str)?str:JSON.stringify(str);var hit=cache[key];return hit||(cache[key]=fn(str))}} -var hyphenate=cached(function(str){return str.replace(/([A-Z])/g,function(m){return'-'+m.toLowerCase();})});var hasOwn=Object.prototype.hasOwnProperty;var merge=Object.assign||function(to){var arguments$1=arguments;for(var i=1;i=queue.length){next(data);}else if(typeof hook==='function'){if(hook.length===2){hook(data,function(result){data=result;step(index+1);});}else{var result=hook(data);data=result===undefined?data:result;step(index+1);}}else{step(index+1);}};step(0);} -var inBrowser=!false;var isMobile=inBrowser&&document.body.clientWidth<=600;var supportsPushState=inBrowser&&(function(){return(window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/))})();var cacheNode={};function getNode(el,noCache){if(noCache===void 0)noCache=false;if(typeof el==='string'){if(typeof window.Vue!=='undefined'){return find(el)} -el=noCache?find(el):cacheNode[el]||(cacheNode[el]=find(el));} -return el} -var $=inBrowser&&document;var body=inBrowser&&$.body;var head=inBrowser&&$.head;function find(el,node){if(el==null)return;return node?el.querySelector(node):$.querySelector(el)} -function findAll(el,node){return[].slice.call(node?el.querySelectorAll(node):$.querySelectorAll(el))} -function create(node,tpl){node=$.createElement(node);if(tpl){node.innerHTML=tpl;} -return node} -function appendTo(target,el){return target.appendChild(el)} -function before(target,el){if(target==null)return;return target.insertBefore(el,target.children[0])} -function on(el,type,handler){if(el==null)return;isFn(type)?window.addEventListener(el,type):el.addEventListener(type,handler);} -function off(el,type,handler){isFn(type)?window.removeEventListener(el,type):el.removeEventListener(type,handler);} -function toggleClass(el,type,val){el&&el.classList[val?type:'toggle'](val||type);} -function style(content){appendTo(head,create('style',content));} -var dom=Object.freeze({getNode:getNode,$:$,body:body,head:head,find:find,findAll:findAll,create:create,appendTo:appendTo,before:before,on:on,off:off,toggleClass:toggleClass,style:style});function corner(data){if(!data){return''} -if(!/\/\//.test(data)){data='https://github.com/'+data;} -data=data.replace(/^git\+/,'');return(""+''+'')} -function main(config){var aside=''+'';return(("
")+'
'+'
'+'
'+'
')} -function cover(){var SL=', 100%, 85%';var bgc='linear-gradient(to left bottom, '+"hsl("+(Math.floor(Math.random()*255)+SL)+") 0%,"+"hsl("+(Math.floor(Math.random()*255)+SL)+") 100%)";return("
"+'
'+'
'+'
')} -function tree(toc,tpl){if(tpl===void 0)tpl='';if(!toc||!toc.length){return''} -var innerHTML='';toc.forEach(function(node){innerHTML+="
  • "+(node.title)+"
  • ";if(node.children){innerHTML+=tree(node.children,tpl);}});return tpl.replace('{inner}',innerHTML)} -function helper(className,content){return("

    "+(content.slice(5).trim())+"

    ")} -function theme(color){return("")} -var barEl;var timeId;function init(){var div=create('div');div.classList.add('progress');appendTo(body,div);barEl=div;} -function progressbar(ref){var loaded=ref.loaded;var total=ref.total;var step=ref.step;var num;!barEl&&init();if(step){num=parseInt(barEl.style.width||0,10)+step;num=num>80?80:num;}else{num=Math.floor(loaded/total*100);} -barEl.style.opacity=1;barEl.style.width=num>=95?'100%':num+'%';if(num>=95){clearTimeout(timeId);timeId=setTimeout(function(_){barEl.style.opacity=0;barEl.style.width='0%';},200);}} -var cache={};function get(url,hasBar,headers){if(hasBar===void 0)hasBar=false;if(headers===void 0)headers={};var xhr=new XMLHttpRequest();var on=function(){xhr.addEventListener.apply(xhr,arguments);};var cached$$1=cache[url];if(cached$$1){return{then:function(cb){return cb(cached$$1.content,cached$$1.opt);},abort:noop}} -xhr.open('GET',url);for(var i in headers){if(hasOwn.call(headers,i)){xhr.setRequestHeader(i,headers[i]);}} -xhr.send();return{then:function(success,error){if(error===void 0)error=noop;if(hasBar){var id=setInterval(function(_){return progressbar({step:Math.floor(Math.random()*5+1)});},500);on('progress',progressbar);on('loadend',function(evt){progressbar(evt);clearInterval(id);});} -on('error',error);on('load',function(ref){var target=ref.target;if(target.status>=400){error(target);}else{var result=(cache[url]={content:target.response,opt:{updatedAt:xhr.getResponseHeader('last-modified')}});success(result.content,result.opt);}});},abort:function(_){return xhr.readyState!==4&&xhr.abort();}}} -function replaceVar(block,color){block.innerHTML=block.innerHTML.replace(/var\(\s*--theme-color.*?\)/g,color);} -function cssVars(color){if(window.CSS&&window.CSS.supports&&window.CSS.supports('(--v:red)')){return} -var styleBlocks=findAll('style:not(.inserted),link');[].forEach.call(styleBlocks,function(block){if(block.nodeName==='STYLE'){replaceVar(block,color);}else if(block.nodeName==='LINK'){var href=block.getAttribute('href');if(!/\.css$/.test(href)){return} -get(href).then(function(res){var style$$1=create('style',res);head.appendChild(style$$1);replaceVar(style$$1,color);});}});} -var RGX=/([^{]*?)\w(?=\})/g;var dict={YYYY:'getFullYear',YY:'getYear',MM:function(d){return d.getMonth()+1;},DD:'getDate',HH:'getHours',mm:'getMinutes',ss:'getSeconds'};function tinydate(str){var parts=[],offset=0;str.replace(RGX,function(key,_,idx){parts.push(str.substring(offset,idx-1));offset=idx+=key.length+1;parts.push(function(d){return('00'+(typeof dict[key]==='string'?d[dict[key]]():dict[key](d))).slice(-key.length);});});if(offset!==str.length){parts.push(str.substring(offset));} -return function(arg){var out='',i=0,d=arg||new Date();for(;i ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:'^ {0,3}(?:' -+'<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)' -+'|comment[^\\n]*(\\n+|$)' -+'|<\\?[\\s\\S]*?\\?>\\n*' -+'|\\n*' -+'|\\n*' -+'|)[\\s\\S]*?(?:\\n{2,}|$)' -+'|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)' -+'|(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)' -+')',def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;block.def=edit(block.def).replace('label',block._label).replace('title',block._title).getRegex();block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=edit(block.item,'gm').replace(/bull/g,block.bullet).getRegex();block.list=edit(block.list).replace(/bull/g,block.bullet).replace('hr','\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))').replace('def','\\n+(?='+block.def.source+')').getRegex();block._tag='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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr' -+'|track|ul';block._comment=//;block.html=edit(block.html,'i').replace('comment',block._comment).replace('tag',block._tag).replace('attribute',/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();block.paragraph=edit(block.paragraph).replace('hr',block.hr).replace('heading',block.heading).replace('lheading',block.lheading).replace('tag',block._tag).getRegex();block.blockquote=edit(block.blockquote).replace('paragraph',block.paragraph).getRegex();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=edit(block.paragraph).replace('(?!','(?!' -+block.gfm.fences.source.replace('\\1','\\2')+'|' -+block.list.source.replace('\\1','\\3')+'|').getRegex();block.tables=merge({},block.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});block.pedantic=merge({},block.normal,{html:edit('^ *(?:comment *(?:\\n|\\s*$)' -+'|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)' -+'|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))').replace('comment',block._comment).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/});function Lexer(options){this.tokens=[];this.tokens.links=Object.create(null);this.options=options||marked.defaults;this.rules=block.normal;if(this.options.pedantic){this.rules=block.pedantic;}else if(this.options.gfm){if(this.options.tables){this.rules=block.tables;}else{this.rules=block.gfm;}}} -Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src);};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,'\n').replace(/\t/g,' ').replace(/\u00a0/g,' ').replace(/\u2424/g,'\n');return this.token(src,true);};Lexer.prototype.token=function(src,top){var this$1=this;src=src.replace(/^ +$/gm,'');var next,loose,cap,bull,b,item,listStart,listItems,t,space,i,tag,l,isordered,istask,ischecked;while(src){if(cap=this$1.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this$1.tokens.push({type:'space'});}} -if(cap=this$1.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,'');this$1.tokens.push({type:'code',text:!this$1.options.pedantic?rtrim(cap,'\n'):cap});continue;} -if(cap=this$1.rules.fences.exec(src)){src=src.substring(cap[0].length);this$1.tokens.push({type:'code',lang:cap[2],text:cap[3]||''});continue;} -if(cap=this$1.rules.heading.exec(src)){src=src.substring(cap[0].length);this$1.tokens.push({type:'heading',depth:cap[1].length,text:cap[2]});continue;} -if(top&&(cap=this$1.rules.nptable.exec(src))){item={type:'table',header:splitCells(cap[1].replace(/^ *| *\| *$/g,'')),align:cap[2].replace(/^ *|\| *$/g,'').split(/ *\| */),cells:cap[3]?cap[3].replace(/\n$/,'').split('\n'):[]};if(item.header.length===item.align.length){src=src.substring(cap[0].length);for(i=0;i ?/gm,'');this$1.token(cap,top);this$1.tokens.push({type:'blockquote_end'});continue;} -if(cap=this$1.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];isordered=bull.length>1;listStart={type:'list_start',ordered:isordered,start:isordered?+bull:'',loose:false};this$1.tokens.push(listStart);cap=cap[0].match(this$1.rules.item);listItems=[];next=false;l=cap.length;i=0;for(;i1&&b.length>1)){src=cap.slice(i+1).join('\n')+src;i=l-1;}} -loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==='\n';if(!loose){loose=next;}} -if(loose){listStart.loose=true;} -istask=/^\[[ xX]\] /.test(item);ischecked=undefined;if(istask){ischecked=item[1]!==' ';item=item.replace(/^\[[ xX]\] +/,'');} -t={type:'list_item_start',task:istask,checked:ischecked,loose:loose};listItems.push(t);this$1.tokens.push(t);this$1.token(item,false);this$1.tokens.push({type:'list_item_end'});} -if(listStart.loose){l=listItems.length;i=0;for(;i?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noop,tag:'^comment' -+'|^' -+'|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>' -+'|^<\\?[\\s\\S]*?\\?>' -+'|^' -+'|^',link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s])__(?!_)|^\*\*([^\s])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noop,text:/^(`+|[^`])[\s\S]*?(?=[\\?@\[\]\\^_`{|}~])/g;inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline._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])?)+(?![-_])/;inline.autolink=edit(inline.autolink).replace('scheme',inline._scheme).replace('email',inline._email).getRegex();inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline.tag=edit(inline.tag).replace('comment',block._comment).replace('attribute',inline._attribute).getRegex();inline._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/;inline._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f\\]*\)|[^\s\x00-\x1f()\\])*?)/;inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline.link=edit(inline.link).replace('label',inline._label).replace('href',inline._href).replace('title',inline._title).getRegex();inline.reflink=edit(inline.reflink).replace('label',inline._label).getRegex();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:edit(/^!?\[(label)\]\((.*?)\)/).replace('label',inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace('label',inline._label).getRegex()});inline.gfm=merge({},inline.normal,{escape:edit(inline.escape).replace('])','~|])').getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:edit(inline.text).replace(']|','~]|').replace('|$','|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&\'*+/=?^_`{\\|}~-]+@|$').getRegex()});inline.gfm.url=edit(inline.gfm.url).replace('email',inline.gfm._extended_email).getRegex();inline.breaks=merge({},inline.gfm,{br:edit(inline.br).replace('{2,}','*').getRegex(),text:edit(inline.gfm.text).replace('{2,}','*').getRegex()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer();this.renderer.options=this.options;if(!this.links){throw new Error('Tokens array requires a `links` property.');} -if(this.options.pedantic){this.rules=inline.pedantic;}else if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks;}else{this.rules=inline.gfm;}}} -InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src);};InlineLexer.prototype.output=function(src){var this$1=this;var out='',link,text,href,title,cap,prevCapZero;while(src){if(cap=this$1.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue;} -if(cap=this$1.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==='@'){text=escape(this$1.mangle(cap[1]));href='mailto:'+text;}else{text=escape(cap[1]);href=text;} -out+=this$1.renderer.link(href,null,text);continue;} -if(!this$1.inLink&&(cap=this$1.rules.url.exec(src))){if(cap[2]==='@'){text=escape(cap[0]);href='mailto:'+text;}else{do{prevCapZero=cap[0];cap[0]=this$1.rules._backpedal.exec(cap[0])[0];}while(prevCapZero!==cap[0]);text=escape(cap[0]);if(cap[1]==='www.'){href='http://'+text;}else{href=text;}} -src=src.substring(cap[0].length);out+=this$1.renderer.link(href,null,text);continue;} -if(cap=this$1.rules.tag.exec(src)){if(!this$1.inLink&&/^/i.test(cap[0])){this$1.inLink=false;} -if(!this$1.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(cap[0])){this$1.inRawBlock=true;}else if(this$1.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(cap[0])){this$1.inRawBlock=false;} -src=src.substring(cap[0].length);out+=this$1.options.sanitize?this$1.options.sanitizer?this$1.options.sanitizer(cap[0]):escape(cap[0]):cap[0];continue;} -if(cap=this$1.rules.link.exec(src)){src=src.substring(cap[0].length);this$1.inLink=true;href=cap[2];if(this$1.options.pedantic){link=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(href);if(link){href=link[1];title=link[3];}else{title='';}}else{title=cap[3]?cap[3].slice(1,-1):'';} -href=href.trim().replace(/^<([\s\S]*)>$/,'$1');out+=this$1.outputLink(cap,{href:InlineLexer.escapes(href),title:InlineLexer.escapes(title)});this$1.inLink=false;continue;} -if((cap=this$1.rules.reflink.exec(src))||(cap=this$1.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g,' ');link=this$1.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue;} -this$1.inLink=true;out+=this$1.outputLink(cap,link);this$1.inLink=false;continue;} -if(cap=this$1.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.strong(this$1.output(cap[4]||cap[3]||cap[2]||cap[1]));continue;} -if(cap=this$1.rules.em.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.em(this$1.output(cap[6]||cap[5]||cap[4]||cap[3]||cap[2]||cap[1]));continue;} -if(cap=this$1.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.codespan(escape(cap[2].trim(),true));continue;} -if(cap=this$1.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.br();continue;} -if(cap=this$1.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.del(this$1.output(cap[1]));continue;} -if(cap=this$1.rules.text.exec(src)){src=src.substring(cap[0].length);if(this$1.inRawBlock){out+=this$1.renderer.text(cap[0]);}else{out+=this$1.renderer.text(escape(this$1.smartypants(cap[0])));} -continue;} -if(src){throw new Error('Infinite loop on byte: '+src.charCodeAt(0));}} -return out;};InlineLexer.escapes=function(text){return text?text.replace(InlineLexer.rules._escapes,'$1'):text;};InlineLexer.prototype.outputLink=function(cap,link){var href=link.href,title=link.title?escape(link.title):null;return cap[0].charAt(0)!=='!'?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]));};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants){return text;} -return text.replace(/---/g,'\u2014').replace(/--/g,'\u2013').replace(/(^|[-\u2014/(\[{"\s])'/g,'$1\u2018').replace(/'/g,'\u2019').replace(/(^|[-\u2014/(\[{\u2018\s])"/g,'$1\u201c').replace(/"/g,'\u201d').replace(/\.{3}/g,'\u2026');};InlineLexer.prototype.mangle=function(text){if(!this.options.mangle){return text;} -var out='',l=text.length,i=0,ch;for(;i0.5){ch='x'+ch.toString(16);} -out+='&#'+ch+';';} -return out;};function Renderer(options){this.options=options||marked.defaults;} -Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out;}} -if(!lang){return'
    '
    -+(escaped?code:escape(code,true))
    -+'
    ';} -return'
    '
    -+(escaped?code:escape(code,true))
    -+'
    \n';};Renderer.prototype.blockquote=function(quote){return'
    \n'+quote+'
    \n';};Renderer.prototype.html=function(html){return html;};Renderer.prototype.heading=function(text,level,raw){if(this.options.headerIds){return'' -+text -+'\n';} -return''+text+'\n';};Renderer.prototype.hr=function(){return this.options.xhtml?'
    \n':'
    \n';};Renderer.prototype.list=function(body,ordered,start){var type=ordered?'ol':'ul',startatt=(ordered&&start!==1)?(' start="'+start+'"'):'';return'<'+type+startatt+'>\n'+body+'\n';};Renderer.prototype.listitem=function(text){return'
  • '+text+'
  • \n';};Renderer.prototype.checkbox=function(checked){return' ';};Renderer.prototype.paragraph=function(text){return'

    '+text+'

    \n';};Renderer.prototype.table=function(header,body){if(body){body=''+body+'';} -return'\n' -+'\n' -+header -+'\n' -+body -+'
    \n';};Renderer.prototype.tablerow=function(content){return'\n'+content+'\n';};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?'th':'td';var tag=flags.align?'<'+type+' align="'+flags.align+'">':'<'+type+'>';return tag+content+'\n';};Renderer.prototype.strong=function(text){return''+text+'';};Renderer.prototype.em=function(text){return''+text+'';};Renderer.prototype.codespan=function(text){return''+text+'';};Renderer.prototype.br=function(){return this.options.xhtml?'
    ':'
    ';};Renderer.prototype.del=function(text){return''+text+'';};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,'').toLowerCase();}catch(e){return text;} -if(prot.indexOf('javascript:')===0||prot.indexOf('vbscript:')===0||prot.indexOf('data:')===0){return text;}} -if(this.options.baseUrl&&!originIndependentUrl.test(href)){href=resolveUrl(this.options.baseUrl,href);} -try{href=encodeURI(href).replace(/%25/g,'%');}catch(e){return text;} -var out='
    ';return out;};Renderer.prototype.image=function(href,title,text){if(this.options.baseUrl&&!originIndependentUrl.test(href)){href=resolveUrl(this.options.baseUrl,href);} -var out=''+text+'':'>';return out;};Renderer.prototype.text=function(text){return text;};function TextRenderer(){} -TextRenderer.prototype.strong=TextRenderer.prototype.em=TextRenderer.prototype.codespan=TextRenderer.prototype.del=TextRenderer.prototype.text=function(text){return text;};TextRenderer.prototype.link=TextRenderer.prototype.image=function(href,title,text){return''+text;};TextRenderer.prototype.br=function(){return'';};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer();this.renderer=this.options.renderer;this.renderer.options=this.options;} -Parser.parse=function(src,options){var parser=new Parser(options);return parser.parse(src);};Parser.prototype.parse=function(src){var this$1=this;this.inline=new InlineLexer(src.links,this.options);this.inlineText=new InlineLexer(src.links,merge({},this.options,{renderer:new TextRenderer()}));this.tokens=src.reverse();var out='';while(this.next()){out+=this$1.tok();} -return out;};Parser.prototype.next=function(){return this.token=this.tokens.pop();};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0;};Parser.prototype.parseText=function(){var this$1=this;var body=this.token.text;while(this.peek().type==='text'){body+='\n'+this$1.next().text;} -return this.inline.output(body);};Parser.prototype.tok=function(){var this$1=this;switch(this.token.type){case'space':{return'';} -case'hr':{return this.renderer.hr();} -case'heading':{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,unescape(this.inlineText.output(this.token.text)));} -case'code':{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);} -case'table':{var header='',body='',i,row,cell,j;cell='';for(i=0;i"']/;escape.escapeReplace=/[&<>"']/g;escape.replacements={'&':'&','<':'<','>':'>','"':'"',"'":'''};escape.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/;escape.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function unescape(html){return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(_,n){n=n.toLowerCase();if(n==='colon'){return':';} -if(n.charAt(0)==='#'){return n.charAt(1)==='x'?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1));} -return'';});} -function edit(regex,opt){regex=regex.source||regex;opt=opt||'';return{replace:function(name,val){val=val.source||val;val=val.replace(/(^|[^\[])\^/g,'$1');regex=regex.replace(name,val);return this;},getRegex:function(){return new RegExp(regex,opt);}};} -function resolveUrl(base,href){if(!baseUrls[' '+base]){if(/^[^:]+:\/*[^/]*$/.test(base)){baseUrls[' '+base]=base+'/';}else{baseUrls[' '+base]=rtrim(base,'/',true);}} -base=baseUrls[' '+base];if(href.slice(0,2)==='//'){return base.replace(/:[\s\S]*/,':')+href;}else if(href.charAt(0)==='/'){return base.replace(/(:\/*[^/]*)[\s\S]*/,'$1')+href;}else{return base+href;}} -var baseUrls={};var originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function noop(){} -noop.exec=noop;function merge(obj){var arguments$1=arguments;var i=1,target,key;for(;i=0&&str[curr]==='\\'){escaped=!escaped;} -if(escaped){return'|';}else{return' |';}}),cells=row.split(/ \|/),i=0;if(cells.length>count){cells.splice(count);}else{while(cells.lengthAn error occurred:

    '
    -+escape(e.message+'',true)
    -+'
    ';} -throw e;}} -marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked;};marked.getDefaults=function(){return{baseUrl:null,breaks:false,gfm:true,headerIds:true,headerPrefix:'',highlight:null,langPrefix:'language-',mangle:true,pedantic:false,renderer:new Renderer(),sanitize:false,sanitizer:null,silent:false,smartLists:false,smartypants:false,tables:true,xhtml:false};};marked.defaults=marked.getDefaults();marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.TextRenderer=TextRenderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;{module.exports=marked;}})(commonjsGlobal||(typeof window!=='undefined'?window:commonjsGlobal));});var prism=createCommonjsModule(function(module){var _self=(typeof window!=='undefined')?window:((typeof WorkerGlobalScope!=='undefined'&&self instanceof WorkerGlobalScope)?self:{});var Prism=(function(){var lang=/\blang(?:uage)?-([\w-]+)\b/i;var uniqueId=0;var _=_self.Prism={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function(tokens){if(tokens instanceof Token){return new Token(tokens.type,_.util.encode(tokens.content),tokens.alias);}else if(_.util.type(tokens)==='Array'){return tokens.map(_.util.encode);}else{return tokens.replace(/&/g,'&').replace(/text.length){return;} -if(str instanceof Token){continue;} -if(greedy&&i!=strarr.length-1){pattern.lastIndex=pos;var match=pattern.exec(text);if(!match){break;} -var from=match.index+(lookbehind?match[1].length:0),to=match.index+match[0].length,k=i,p=pos;for(var len=strarr.length;k=p){++i;pos=p;}} -if(strarr[i]instanceof Token){continue;} -delNum=k-i;str=text.slice(pos,p);match.index-=pos;}else{pattern.lastIndex=0;var match=pattern.exec(str),delNum=1;} -if(!match){if(oneshot){break;} -continue;} -if(lookbehind){lookbehindLength=match[1]?match[1].length:0;} -var from=match.index+lookbehindLength,match=match[0].slice(lookbehindLength),to=from+match.length,before=str.slice(0,from),after=str.slice(to);var args=[i,delNum];if(before){++i;pos+=before.length;args.push(before);} -var wrapped=new Token(token,inside?_.tokenize(match,inside):match,alias,match,greedy);args.push(wrapped);if(after){args.push(after);} -Array.prototype.splice.apply(strarr,args);if(delNum!=1) -{_.matchGrammar(text,strarr,grammar,i,pos,true,token);} -if(oneshot) -{break;}}}}},tokenize:function(text,grammar,language){var strarr=[text];var rest=grammar.rest;if(rest){for(var token in rest){grammar[token]=rest[token];} -delete grammar.rest;} -_.matchGrammar(text,strarr,grammar,0,0,false);return strarr;},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[];hooks[name].push(callback);},run:function(name,env){var callbacks=_.hooks.all[name];if(!callbacks||!callbacks.length){return;} -for(var i=0,callback;callback=callbacks[i++];){callback(env);}}}};var Token=_.Token=function(type,content,alias,matchedStr,greedy){this.type=type;this.content=content;this.alias=alias;this.length=(matchedStr||"").length|0;this.greedy=!!greedy;};Token.stringify=function(o,language,parent){if(typeof o=='string'){return o;} -if(_.util.type(o)==='Array'){return o.map(function(element){return Token.stringify(element,language,o);}).join('');} -var env={type:o.type,content:Token.stringify(o.content,language,parent),tag:'span',classes:['token',o.type],attributes:{},language:language,parent:parent};if(o.alias){var aliases=_.util.type(o.alias)==='Array'?o.alias:[o.alias];Array.prototype.push.apply(env.classes,aliases);} -_.hooks.run('wrap',env);var attributes=Object.keys(env.attributes).map(function(name){return name+'="'+(env.attributes[name]||'').replace(/"/g,'"')+'"';}).join(' ');return'<'+env.tag+' class="'+env.classes.join(' ')+'"'+(attributes?' '+attributes:'')+'>'+env.content+'';};if(!_self.document){if(!_self.addEventListener){return _self.Prism;} -if(!_.disableWorkerMessageHandler){_self.addEventListener('message',function(evt){var message=JSON.parse(evt.data),lang=message.language,code=message.code,immediateClose=message.immediateClose;_self.postMessage(_.highlight(code,_.languages[lang],lang));if(immediateClose){_self.close();}},false);} -return _self.Prism;} -var script=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();if(script){_.filename=script.src;if(!_.manual&&!script.hasAttribute('data-manual')){if(document.readyState!=="loading"){if(window.requestAnimationFrame){window.requestAnimationFrame(_.highlightAll);}else{window.setTimeout(_.highlightAll,16);}} -else{document.addEventListener('DOMContentLoaded',_.highlightAll);}}} -return _self.Prism;})();if('object'!=='undefined'&&module.exports){module.exports=Prism;} -if(typeof commonjsGlobal!=='undefined'){commonjsGlobal.Prism=Prism;} -Prism.languages.markup={'comment'://,'prolog':/<\?[\s\S]+?\?>/,'doctype'://i,'cdata'://i,'tag':{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:true,inside:{'tag':{pattern:/^<\/?[^\s>\/]+/i,inside:{'punctuation':/^<\/?/,'namespace':/^[^\s>\/:]+:/}},'attr-value':{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{'punctuation':[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:true}]}},'punctuation':/\/?>/,'attr-name':{pattern:/[^\s>\/]+/,inside:{'namespace':/^[^\s>\/:]+:/}}}},'entity':/&#?[\da-z]{1,8};/i};Prism.languages.markup['tag'].inside['attr-value'].inside['entity']=Prism.languages.markup['entity'];Prism.hooks.add('wrap',function(env){if(env.type==='entity'){env.attributes['title']=env.content.replace(/&/,'&');}});Prism.languages.xml=Prism.languages.markup;Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.css={'comment':/\/\*[\s\S]*?\*\//,'atrule':{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{'rule':/@[\w-]+/}},'url':/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,'selector':/[^{}\s][^{};]*?(?=\s*\{)/,'string':{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:true},'property':/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,'important':/\B!important\b/i,'function':/[-a-z0-9]+(?=\()/i,'punctuation':/[(){};:]/};Prism.languages.css['atrule'].inside.rest=Prism.languages.css;if(Prism.languages.markup){Prism.languages.insertBefore('markup','tag',{'style':{pattern:/()[\s\S]*?(?=<\/style>)/i,lookbehind:true,inside:Prism.languages.css,alias:'language-css',greedy:true}});Prism.languages.insertBefore('inside','attr-value',{'style-attr':{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{'attr-name':{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},'punctuation':/^\s*=\s*['"]|['"]\s*$/,'attr-value':{pattern:/.+/i,inside:Prism.languages.css}},alias:'language-css'}},Prism.languages.markup.tag);} -Prism.languages.clike={'comment':[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:true},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:true,greedy:true}],'string':{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:true},'class-name':{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:true,inside:{punctuation:/[.\\]/}},'keyword':/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,'boolean':/\b(?:true|false)\b/,'function':/[a-z0-9_]+(?=\()/i,'number':/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,'operator':/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,'punctuation':/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend('clike',{'keyword':/\b(?: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|var|void|while|with|yield)\b/,'number':/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,'function':/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,'operator':/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});Prism.languages.insertBefore('javascript','keyword',{'regex':{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:true,greedy:true},'function-variable':{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:'function'},'constant':/\b[A-Z][A-Z\d_]*\b/});Prism.languages.insertBefore('javascript','string',{'template-string':{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:true,inside:{'interpolation':{pattern:/\${[^}]+}/,inside:{'interpolation-punctuation':{pattern:/^\${|}$/,alias:'punctuation'},rest:null}},'string':/[\s\S]+/}}});Prism.languages.javascript['template-string'].inside['interpolation'].inside.rest=Prism.languages.javascript;if(Prism.languages.markup){Prism.languages.insertBefore('markup','tag',{'script':{pattern:/()[\s\S]*?(?=<\/script>)/i,lookbehind:true,inside:Prism.languages.javascript,alias:'language-javascript',greedy:true}});} -Prism.languages.js=Prism.languages.javascript;(function(){if(typeof self==='undefined'||!self.Prism||!self.document||!document.querySelector){return;} -self.Prism.fileHighlight=function(){var Extensions={'js':'javascript','py':'python','rb':'ruby','ps1':'powershell','psm1':'powershell','sh':'bash','bat':'batch','h':'c','tex':'latex'};Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function(pre){var src=pre.getAttribute('data-src');var language,parent=pre;var lang=/\blang(?:uage)?-([\w-]+)\b/i;while(parent&&!lang.test(parent.className)){parent=parent.parentNode;} -if(parent){language=(pre.className.match(lang)||[,''])[1];} -if(!language){var extension=(src.match(/\.(\w+)$/)||[,''])[1];language=Extensions[extension]||extension;} -var code=document.createElement('code');code.className='language-'+language;pre.textContent='';code.textContent='Loading…';pre.appendChild(code);var xhr=new XMLHttpRequest();xhr.open('GET',src,true);xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status<400&&xhr.responseText){code.textContent=xhr.responseText;Prism.highlightElement(code);} -else if(xhr.status>=400){code.textContent='✖ Error '+xhr.status+' while fetching file: '+xhr.statusText;} -else{code.textContent='✖ Error: File does not exist or is empty';}}};xhr.send(null);});if(Prism.plugins.toolbar){Prism.plugins.toolbar.registerButton('download-file',function(env){var pre=env.element.parentNode;if(!pre||!/pre/i.test(pre.nodeName)||!pre.hasAttribute('data-src')||!pre.hasAttribute('data-download-link')){return;} -var src=pre.getAttribute('data-src');var a=document.createElement('a');a.textContent=pre.getAttribute('data-download-link-label')||'Download';a.setAttribute('download','');a.href=src;return a;});}};document.addEventListener('DOMContentLoaded',self.Prism.fileHighlight);})();});function genTree(toc,maxLevel){var headlines=[];var last={};toc.forEach(function(headline){var level=headline.level||1;var len=level-1;if(level>maxLevel){return} -if(last[len]){last[len].children=(last[len].children||[]).concat(headline);}else{headlines.push(headline);} -last[level]=headline;});return headlines} -var cache$1={};var re=/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g;function lower(string){return string.toLowerCase()} -function slugify(str){if(typeof str!=='string'){return''} -var slug=str.trim().replace(/[A-Z]+/g,lower).replace(/<[^>\d]+>/g,'').replace(re,'').replace(/\s/g,'-').replace(/-+/g,'-').replace(/^(\d)/,'_$1');var count=cache$1[slug];count=hasOwn.call(cache$1,slug)?count+1:0;cache$1[slug]=count;if(count){slug=slug+'-'+count;} -return slug} -slugify.clear=function(){cache$1={};};function replace(m,$1){return''+$1+''} -function emojify(text){return text.replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g,function(m){return m.replace(/:/g,'__colon__');}).replace(/:(\w+?):/ig,(inBrowser&&window.emojify)||replace).replace(/__colon__/g,':')} -var decode=decodeURIComponent;var encode=encodeURIComponent;function parseQuery(query){var res={};query=query.trim().replace(/^(\?|#|&)/,'');if(!query){return res} -query.split('&').forEach(function(param){var parts=param.replace(/\+/g,' ').split('=');res[parts[0]]=parts[1]&&decode(parts[1]);});return res} -function stringifyQuery(obj,ignores){if(ignores===void 0)ignores=[];var qs=[];for(var key in obj){if(ignores.indexOf(key)>-1){continue} -qs.push(obj[key]?((encode(key))+"="+(encode(obj[key]))).toLowerCase():encode(key));} -return qs.length?("?"+(qs.join('&'))):''} -var isAbsolutePath=cached(function(path){return/(:|(\/{2}))/g.test(path)});var getParentPath=cached(function(path){return/\/$/g.test(path)?path:(path=path.match(/(\S*\/)[^/]+$/))?path[1]:''});var cleanPath=cached(function(path){return path.replace(/^\/+/,'/').replace(/([^:])\/{2,}/g,'$1/')});var resolvePath=cached(function(path){var segments=path.replace(/^\//,'').split('/');var resolved=[];for(var i=0,len=segments.length;i=keys.length){return;} -for(var i=0;i-1){++j;var before=s.substring(0,index);var middle=new Prism.Token(language,Prism.tokenize(t,env.grammar,language),'language-'+language,t);var after=s.substring(index+('___'+language.toUpperCase()+k+'___').length);var replacement;if(before||after){replacement=[before,middle,after].filter(function(v){return!!v;});walkTokens(replacement);}else{replacement=middle;} -if(typeof token==='string'){Array.prototype.splice.apply(tokens,[i,1].concat(replacement));}else{token.content=replacement;} -if(j>=keys.length){break;}}}else if(token.content&&typeof token.content!=='string'){walkTokens(token.content);}}};walkTokens(env.tokens);}}});var cachedLinks={};function getAndRemoveConfig(str){if(str===void 0)str='';var config={};if(str){str=str.replace(/^'/,'').replace(/'$/,'').replace(/(?:^|\s):([\w-]+)=?([\w-]+)?/g,function(m,key,value){config[key]=(value&&value.replace(/"/g,''))||true;return''}).trim();} -return{str:str,config:config}} -var compileMedia={markdown:function markdown(url){return{url:url}},mermaid:function mermaid(url){return{url:url}},iframe:function iframe(url,title){return{html:("")}},video:function video(url,title){return{html:("")}},audio:function audio(url,title){return{html:("")}},code:function code(url,title){var lang=url.match(/\.(\w+)$/);lang=title||(lang&&lang[1]);if(lang==='md'){lang='markdown';} -return{url:url,lang:lang}}};var Compiler=function Compiler(config,router){var this$1=this;this.config=config;this.router=router;this.cacheTree={};this.toc=[];this.cacheTOC={};this.linkTarget=config.externalLinkTarget||'_blank';this.contentBase=router.getBasePath();var renderer=this._initRenderer();var compile;var mdConf=config.markdown||{};if(isFn(mdConf)){compile=mdConf(marked,renderer);}else{marked.setOptions(merge(mdConf,{renderer:merge(renderer,mdConf.renderer)}));compile=marked;} -this._marked=compile;this.compile=function(text){var isCached=true;var result=cached(function(_){isCached=false;var html='';if(!text){return text} -if(isPrimitive(text)){html=compile(text);}else{html=compile.parser(text);} -html=config.noEmoji?html:emojify(html);slugify.clear();return html})(text);var curFileName=this$1.router.parse().file;if(isCached){this$1.toc=this$1.cacheTOC[curFileName];}else{this$1.cacheTOC[curFileName]=[].concat(this$1.toc);} -return result};};Compiler.prototype.compileEmbed=function compileEmbed(href,title){var ref=getAndRemoveConfig(title);var str=ref.str;var config=ref.config;var embed;title=str;if(config.include){if(!isAbsolutePath(href)){href=getPath(this.contentBase,getParentPath(this.router.getCurrentPath()),href);} -var media;if(config.type&&(media=compileMedia[config.type])){embed=media.call(this,href,title);embed.type=config.type;}else{var type='code';if(/\.(md|markdown)/.test(href)){type='markdown';}else if(/\.mmd/.test(href)){type='mermaid';}else if(/\.html?/.test(href)){type='iframe';}else if(/\.(mp4|ogg)/.test(href)){type='video';}else if(/\.mp3/.test(href)){type='audio';} -embed=compileMedia[type].call(this,href,title);embed.type=type;} -embed.fragment=config.fragment;return embed}};Compiler.prototype._matchNotCompileLink=function _matchNotCompileLink(link){var links=this.config.noCompileLinks||[];for(var i=0;i
    "+str+"")};origin.code=renderer.code=function(code,lang){if(lang===void 0)lang='';code=code.replace(/@DOCSIFY_QM@/g,'`');var hl=prism.highlight(code,prism.languages[lang]||prism.languages.markup);return("
    "+hl+"
    ")};origin.link=renderer.link=function(href,title,text){if(title===void 0)title='';var attrs='';var ref=getAndRemoveConfig(title);var str=ref.str;var config=ref.config;title=str;if(!isAbsolutePath(href)&&!_self._matchNotCompileLink(href)&&!config.ignore){if(href===_self.config.homepage){href='README';} -href=router.toURL(href,null,router.getCurrentPath());}else{attrs+=href.indexOf('mailto:')===0?'':(" target=\""+linkTarget+"\"");} -if(config.target){attrs+=' target='+config.target;} -if(config.disabled){attrs+=' disabled';href='javascript:void(0)';} -if(title){attrs+=" title=\""+title+"\"";} -return(""+text+"")};origin.paragraph=renderer.paragraph=function(text){var result;if(/^!>/.test(text)){result=helper('tip',text);}else if(/^\?>/.test(text)){result=helper('warn',text);}else{result="

    "+text+"

    ";} -return result};origin.image=renderer.image=function(href,title,text){var url=href;var attrs='';var ref=getAndRemoveConfig(title);var str=ref.str;var config=ref.config;title=str;if(config['no-zoom']){attrs+=' data-no-zoom';} -if(title){attrs+=" title=\""+title+"\"";} -var size=config.size;if(size){var sizes=size.split('x');if(sizes[1]){attrs+='width='+sizes[0]+' height='+sizes[1];}else{attrs+='width='+sizes[0];}} -if(!isAbsolutePath(href)){url=getPath(contentBase,getParentPath(router.getCurrentPath()),href);} -return("\""+text+"\""+attrs+"")};origin.list=renderer.list=function(body,ordered,start){var isTaskList=/
  • /.test(body.split('class="task-list"')[0]);var isStartReq=start&&start>1;var tag=ordered?'ol':'ul';var tagAttrs=[(isTaskList?'class="task-list"':''),(isStartReq?("start=\""+start+"\""):'')].join(' ').trim();return("<"+tag+" "+tagAttrs+">"+body+"")};origin.listitem=renderer.listitem=function(text){var isTaskItem=/^(]*>)/.test(text);var html=isTaskItem?("
  • "):("
  • "+text+"
  • ");return html};renderer.origin=origin;return renderer};Compiler.prototype.sidebar=function sidebar(text,level){var ref=this;var toc=ref.toc;var currentPath=this.router.getCurrentPath();var html='';if(text){html=this.compile(text);}else{for(var i=0;i{inner}');this.cacheTree[currentPath]=tree$$1;} -return'';};Compiler.prototype.subSidebar=function subSidebar(level){if(!level){this.toc=[];return} -var currentPath=this.router.getCurrentPath();var ref=this;var cacheTree=ref.cacheTree;var toc=ref.toc;toc[0]&&toc[0].ignoreAllSubs&&toc.splice(0);toc[0]&&toc[0].level===1&&toc.shift();for(var i=0;i=coverHeight||cover.classList.contains('hidden')){toggleClass(body,'add','sticky');}else{toggleClass(body,'remove','sticky');}} -function getAndActive(router,el,isParent,autoTitle){el=getNode(el);var links=[];if(el!=null){links=findAll(el,'a');} -var hash=decodeURI(router.toURL(router.getCurrentPath()));var target;links.sort(function(a,b){return b.href.length-a.href.length;}).forEach(function(a){var href=a.getAttribute('href');var node=isParent?a.parentNode:a;if(hash.indexOf(href)===0&&!target){target=a;toggleClass(node,'add','active');}else{toggleClass(node,'remove','active');}});if(autoTitle){$.title=target?(target.title||((target.innerText)+" - "+title)):title;} -return target} -var _createClass=function(){function defineProperties(target,props){for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,Tweezer);this.duration=opts.duration||1000;this.ease=opts.easing||this._defaultEase;this.start=opts.start;this.end=opts.end;this.frame=null;this.next=null;this.isRunning=false;this.events={};this.direction=this.startthis.end&&lastTick>=this.next}[this.direction];}},{key:'_defaultEase',value:function _defaultEase(t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;} -return-c/2*(--t*(t-2)-1)+b;}}]);return Tweezer;}();var nav={};var hoverOver=false;var scroller=null;var enableScrollEvent=true;var coverHeight=0;function scrollTo(el){if(scroller){scroller.stop();} -enableScrollEvent=false;scroller=new Tweezer({start:window.pageYOffset,end:el.getBoundingClientRect().top+window.pageYOffset,duration:500}).on('tick',function(v){return window.scrollTo(0,v);}).on('done',function(){enableScrollEvent=true;scroller=null;}).begin();} -function highlight(path){if(!enableScrollEvent){return} -var sidebar=getNode('.sidebar');var anchors=findAll('.anchor');var wrap=find(sidebar,'.sidebar-nav');var active=find(sidebar,'li.active');var doc=document.documentElement;var top=((doc&&doc.scrollTop)||document.body.scrollTop)-coverHeight;var last;for(var i=0,len=anchors.length;itop){if(!last){last=node;} -break}else{last=node;}} -if(!last){return} -var li=nav[getNavKey(decodeURIComponent(path),last.getAttribute('data-id'))];if(!li||li===active){return} -active&&active.classList.remove('active');li.classList.add('active');active=li;if(!hoverOver&&body.classList.contains('sticky')){var height=sidebar.clientHeight;var curOffset=0;var cur=active.offsetTop+active.clientHeight+40;var isInView=active.offsetTop>=wrap.scrollTop&&cur<=wrap.scrollTop+height;var notThan=cur-curOffset\n"+text+"\n")}];embedToken.links={};}else{embedToken=[{type:'html',text:text}];embedToken.links={};}} -cb({token:token,embedToken:embedToken});if(++count>=step){cb({});}}})(token);if(token.embed.url){{get(token.embed.url).then(next);}}else{next(token.embed.html);}}} -function prerenderEmbed(ref,done){var compiler=ref.compiler;var raw=ref.raw;if(raw===void 0)raw='';var fetch=ref.fetch;var hit=cached$1[raw];if(hit){var copy=hit.slice();copy.links=hit.links;return done(copy)} -var compile=compiler._marked;var tokens=compile.lexer(raw);var embedTokens=[];var linkRE=compile.InlineLexer.rules.link;var links=tokens.links;tokens.forEach(function(token,index){if(token.type==='paragraph'){token.text=token.text.replace(new RegExp(linkRE.source,'g'),function(src,filename,href,title){var embed=compiler.compileEmbed(href,title);if(embed){embedTokens.push({index:index,embed:embed});} -return src});}});var moveIndex=0;walkFetchEmbed({compile:compile,embedTokens:embedTokens,fetch:fetch},function(ref){var embedToken=ref.embedToken;var token=ref.token;if(token){var index=token.index+moveIndex;merge(links,embedToken.links);tokens=tokens.slice(0,index).concat(embedToken,tokens.slice(index+1));moveIndex+=embedToken.length-1;}else{cached$1[raw]=tokens.concat();tokens.links=cached$1[raw].links=links;done(tokens);}});} -function executeScript(){var script=findAll('.markdown-section>script').filter(function(s){return!/template/.test(s.type);})[0];if(!script){return false} -var code=script.innerText.trim();if(!code){return false} -setTimeout(function(_){window.__EXECUTE_RESULT__=new Function(code)();},0);} -function formatUpdated(html,updated,fn){updated=typeof fn==='function'?fn(updated):typeof fn==='string'?tinydate(fn)(new Date(updated)):updated;return html.replace(/{docsify-updated}/g,updated)} -function renderMain(html){if(!html){html='

    404 - Not found

    ';} -this._renderTo('.markdown-section',html);!this.config.loadSidebar&&this._renderSidebar();if(this.config.executeScript!==false&&typeof window.Vue!=='undefined'&&!executeScript()){setTimeout(function(_){var vueVM=window.__EXECUTE_RESULT__;vueVM&&vueVM.$destroy&&vueVM.$destroy();window.__EXECUTE_RESULT__=new window.Vue().$mount('#main');},0);}else{this.config.executeScript&&executeScript();}} -function renderNameLink(vm){var el=getNode('.app-name-link');var nameLink=vm.config.nameLink;var path=vm.route.path;if(!el){return} -if(isPrimitive(vm.config.nameLink)){el.setAttribute('href',nameLink);}else if(typeof nameLink==='object'){var match=Object.keys(nameLink).filter(function(key){return path.indexOf(key)>-1;})[0];el.setAttribute('href',nameLink[match]);}} -function renderMixin(proto){proto._renderTo=function(el,content,replace){var node=getNode(el);if(node){node[replace?'outerHTML':'innerHTML']=content;}};proto._renderSidebar=function(text){var ref=this.config;var maxLevel=ref.maxLevel;var subMaxLevel=ref.subMaxLevel;var loadSidebar=ref.loadSidebar;this._renderTo('.sidebar-nav',this.compiler.sidebar(text,maxLevel));var activeEl=getAndActive(this.router,'.sidebar-nav',true,true);if(loadSidebar&&activeEl){activeEl.parentNode.innerHTML+=this.compiler.subSidebar(subMaxLevel)||'';}else{this.compiler.subSidebar();} -this._bindEventOnRendered(activeEl);};proto._bindEventOnRendered=function(activeEl){var ref=this.config;var autoHeader=ref.autoHeader;var auto2top=ref.auto2top;scrollActiveSidebar(this.router);if(autoHeader&&activeEl){var main$$1=getNode('#main');var firstNode=main$$1.children[0];if(firstNode&&firstNode.tagName!=='H1'){var h1=create('h1');h1.innerText=activeEl.innerText;before(main$$1,h1);}} -auto2top&&scroll2Top(auto2top);};proto._renderMain=function(text,opt,next){var this$1=this;if(opt===void 0)opt={};if(!text){return renderMain.call(this,text)} -callHook(this,'beforeEach',text,function(result){var html;var callback=function(){if(opt.updatedAt){html=formatUpdated(html,opt.updatedAt,this$1.config.formatUpdated);} -callHook(this$1,'afterEach',html,function(text){completeLoading();return renderMain.call(this$1,text);});};if(this$1.isHTML){html=this$1.result=text;callback();next();}else{prerenderEmbed({compiler:this$1.compiler,raw:result},function(tokens){html=this$1.compiler.compile(tokens);callback();next();});}});};proto._updateRender=function(){renderNameLink(this);};} -function initRender(vm){var config=vm.config;vm.compiler=new Compiler(config,vm.router);if(inBrowser){window.__current_docsify_compiler__=vm.compiler;} -var id=config.el||'#app';var navEl=find('nav')||create('nav');var el=find(id);var html='';var navAppendToTarget=body;if(el){if(config.repo){html+=corner(config.repo);} -if(config.coverpage){html+=cover();} -if(config.logo){var isBase64=/^data:image/.test(config.logo);var isExternal=/(?:http[s]?:)?\/\//.test(config.logo);var isRelative=/^\./.test(config.logo);if(!isBase64&&!isExternal&&!isRelative){config.logo=getPath(vm.router.getBasePath(),config.logo);}} -html+=main(config);vm._renderTo(el,html,true);}else{vm.rendered=true;} -if(config.mergeNavbar&&isMobile){navAppendToTarget=find('.sidebar');}else{navEl.classList.add('app-nav');if(!config.repo){navEl.classList.add('no-badge');}} -if(config.loadNavbar){before(navAppendToTarget,navEl);} -if(config.themeColor){$.head.appendChild(create('div',theme(config.themeColor)).firstElementChild);cssVars(config.themeColor);} -vm._updateRender();toggleClass(body,'ready');} -var cached$2={};function getAlias(path,alias,last){var match=Object.keys(alias).filter(function(key){var re=cached$2[key]||(cached$2[key]=new RegExp(("^"+key+"$")));return re.test(path)&&path!==last})[0];return match?getAlias(path.replace(cached$2[match],alias[match]),alias,path):path} -function getFileName(path,ext){return new RegExp(("\\.("+(ext.replace(/^\./,''))+"|html)$"),'g').test(path)?path:/\/$/g.test(path)?(path+"README"+ext):(""+path+ext)} -var History=function History(config){this.config=config;};History.prototype.getBasePath=function getBasePath(){return this.config.basePath};History.prototype.getFile=function getFile(path,isRelative){if(path===void 0)path=this.getCurrentPath();var ref=this;var config=ref.config;var base=this.getBasePath();var ext=typeof config.ext==='string'?config.ext:'.md';path=config.alias?getAlias(path,config.alias):path;path=getFileName(path,ext);path=path===("/README"+ext)?config.homepage||path:path;path=isAbsolutePath(path)?path:getPath(base,path);if(isRelative){path=path.replace(new RegExp(("^"+base)),'');} -return path};History.prototype.onchange=function onchange(cb){if(cb===void 0)cb=noop;cb();};History.prototype.getCurrentPath=function getCurrentPath(){};History.prototype.normalize=function normalize(){};History.prototype.parse=function parse(){};History.prototype.toURL=function toURL(path,params,currentRoute){var local=currentRoute&&path[0]==='#';var route=this.parse(replaceSlug(path));route.query=merge({},route.query,params);path=route.path+stringifyQuery(route.query);path=path.replace(/\.md(\?)|\.md$/,'$1');if(local){var idIndex=currentRoute.indexOf('?');path=(idIndex>0?currentRoute.substring(0,idIndex):currentRoute)+path;} -if(this.config.relativePath&&path.indexOf('/')!==0){var currentDir=currentRoute.substring(0,currentRoute.lastIndexOf('/')+1);return cleanPath(resolvePath(currentDir+path))} -return cleanPath('/'+path)};function replaceHash(path){var i=location.href.indexOf('#');location.replace(location.href.slice(0,i>=0?i:0)+'#'+path);} -var HashHistory=(function(History$$1){function HashHistory(config){History$$1.call(this,config);this.mode='hash';} -if(History$$1)HashHistory.__proto__=History$$1;HashHistory.prototype=Object.create(History$$1&&History$$1.prototype);HashHistory.prototype.constructor=HashHistory;HashHistory.prototype.getBasePath=function getBasePath(){var path=window.location.pathname||'';var base=this.config.basePath;return/^(\/|https?:)/g.test(base)?base:cleanPath(path+'/'+base)};HashHistory.prototype.getCurrentPath=function getCurrentPath(){var href=location.href;var index=href.indexOf('#');return index===-1?'':href.slice(index+1)};HashHistory.prototype.onchange=function onchange(cb){if(cb===void 0)cb=noop;on('hashchange',cb);};HashHistory.prototype.normalize=function normalize(){var path=this.getCurrentPath();path=replaceSlug(path);if(path.charAt(0)==='/'){return replaceHash(path)} -replaceHash('/'+path);};HashHistory.prototype.parse=function parse(path){if(path===void 0)path=location.href;var query='';var hashIndex=path.indexOf('#');if(hashIndex>=0){path=path.slice(hashIndex+1);} -var queryIndex=path.indexOf('?');if(queryIndex>=0){query=path.slice(queryIndex+1);path=path.slice(0,queryIndex);} -return{path:path,file:this.getFile(path,true),query:parseQuery(query)}};HashHistory.prototype.toURL=function toURL(path,params,currentRoute){return'#'+History$$1.prototype.toURL.call(this,path,params,currentRoute)};return HashHistory;}(History));var HTML5History=(function(History$$1){function HTML5History(config){History$$1.call(this,config);this.mode='history';} -if(History$$1)HTML5History.__proto__=History$$1;HTML5History.prototype=Object.create(History$$1&&History$$1.prototype);HTML5History.prototype.constructor=HTML5History;HTML5History.prototype.getCurrentPath=function getCurrentPath(){var base=this.getBasePath();var path=window.location.pathname;if(base&&path.indexOf(base)===0){path=path.slice(base.length);} -return(path||'/')+window.location.search+window.location.hash};HTML5History.prototype.onchange=function onchange(cb){if(cb===void 0)cb=noop;on('click',function(e){var el=e.target.tagName==='A'?e.target:e.target.parentNode;if(el.tagName==='A'&&!/_blank/.test(el.target)){e.preventDefault();var url=el.href;window.history.pushState({key:url},'',url);cb();}});on('popstate',cb);};HTML5History.prototype.parse=function parse(path){if(path===void 0)path=location.href;var query='';var queryIndex=path.indexOf('?');if(queryIndex>=0){query=path.slice(queryIndex+1);path=path.slice(0,queryIndex);} -var base=getPath(location.origin);var baseIndex=path.indexOf(base);if(baseIndex>-1){path=path.slice(baseIndex+base.length);} -return{path:path,file:this.getFile(path),query:parseQuery(query)}};return HTML5History;}(History));function routerMixin(proto){proto.route={};} -var lastRoute={};function updateRender(vm){vm.router.normalize();vm.route=vm.router.parse();body.setAttribute('data-page',vm.route.file);} -function initRouter(vm){var config=vm.config;var mode=config.routerMode||'hash';var router;if(mode==='history'&&supportsPushState){router=new HTML5History(config);}else{router=new HashHistory(config);} -vm.router=router;updateRender(vm);lastRoute=vm.route;router.onchange(function(_){updateRender(vm);vm._updateRender();if(lastRoute.path===vm.route.path){vm.$resetEvents();return} -vm.$fetch();lastRoute=vm.route;});} -function eventMixin(proto){proto.$resetEvents=function(){scrollIntoView(this.route.path,this.route.query.id);if(this.config.loadNavbar){getAndActive(this.router,'nav');}};} -function initEvent(vm){btn('button.sidebar-toggle',vm.router);collapse('.sidebar',vm.router);if(vm.config.coverpage){!isMobile&&on('scroll',sticky);}else{body.classList.add('sticky');}} -function loadNested(path,qs,file,next,vm,first){path=first?path:path.replace(/\/$/,'');path=getParentPath(path);if(!path){return} -get(vm.router.getFile(path+file)+qs,false,vm.config.requestHeaders).then(next,function(_){return loadNested(path,qs,file,next,vm);});} -function fetchMixin(proto){var last;var abort=function(){return last&&last.abort&&last.abort();};var request=function(url,hasbar,requestHeaders){abort();last=get(url,true,requestHeaders);return last};var get404Path=function(path,config){var notFoundPage=config.notFoundPage;var ext=config.ext;var defaultPath='_404'+(ext||'.md');var key;var path404;switch(typeof notFoundPage){case'boolean':path404=defaultPath;break -case'string':path404=notFoundPage;break -case'object':key=Object.keys(notFoundPage).sort(function(a,b){return b.length-a.length;}).find(function(key){return path.match(new RegExp('^'+key));});path404=(key&¬FoundPage[key])||defaultPath;break -default:break} -return path404};proto._loadSideAndNav=function(path,qs,loadSidebar,cb){var this$1=this;return function(){if(!loadSidebar){return cb()} -var fn=function(result){this$1._renderSidebar(result);cb();};loadNested(path,qs,loadSidebar,fn,this$1,true);}};proto._fetch=function(cb){var this$1=this;if(cb===void 0)cb=noop;var ref=this.route;var path=ref.path;var query=ref.query;var qs=stringifyQuery(query,['id']);var ref$1=this.config;var loadNavbar=ref$1.loadNavbar;var requestHeaders=ref$1.requestHeaders;var loadSidebar=ref$1.loadSidebar;var file=this.router.getFile(path);var req=request(file+qs,true,requestHeaders);this.isHTML=/\.html$/g.test(file);req.then(function(text,opt){return this$1._renderMain(text,opt,this$1._loadSideAndNav(path,qs,loadSidebar,cb));},function(_){this$1._fetchFallbackPage(file,qs,cb)||this$1._fetch404(file,qs,cb);});loadNavbar&&loadNested(path,qs,loadNavbar,function(text){return this$1._renderNav(text);},this,true);};proto._fetchCover=function(){var this$1=this;var ref=this.config;var coverpage=ref.coverpage;var requestHeaders=ref.requestHeaders;var query=this.route.query;var root=getParentPath(this.route.path);if(coverpage){var path=null;var routePath=this.route.path;if(typeof coverpage==='string'){if(routePath==='/'){path=coverpage;}}else if(Array.isArray(coverpage)){path=coverpage.indexOf(routePath)>-1&&'_coverpage';}else{var cover=coverpage[routePath];path=cover===true?'_coverpage':cover;} -var coverOnly=Boolean(path)&&this.config.onlyCover;if(path){path=this.router.getFile(root+path);this.coverIsHTML=/\.html$/g.test(path);get(path+stringifyQuery(query,['id']),false,requestHeaders).then(function(text){return this$1._renderCover(text,coverOnly);});}else{this._renderCover(null,coverOnly);} -return coverOnly}};proto.$fetch=function(cb){var this$1=this;if(cb===void 0)cb=noop;var done=function(){callHook(this$1,'doneEach');cb();};var onlyCover=this._fetchCover();if(onlyCover){done();}else{this._fetch(function(){this$1.$resetEvents();done();});}};proto._fetchFallbackPage=function(path,qs,cb){var this$1=this;if(cb===void 0)cb=noop;var ref=this.config;var requestHeaders=ref.requestHeaders;var fallbackLanguages=ref.fallbackLanguages;var loadSidebar=ref.loadSidebar;if(!fallbackLanguages){return false} -var local=path.split('/')[1];if(fallbackLanguages.indexOf(local)===-1){return false} -var newPath=path.replace(new RegExp(("^/"+local)),'');var req=request(newPath+qs,true,requestHeaders);req.then(function(text,opt){return this$1._renderMain(text,opt,this$1._loadSideAndNav(path,qs,loadSidebar,cb));},function(){return this$1._fetch404(path,qs,cb);});return true};proto._fetch404=function(path,qs,cb){var this$1=this;if(cb===void 0)cb=noop;var ref=this.config;var loadSidebar=ref.loadSidebar;var requestHeaders=ref.requestHeaders;var notFoundPage=ref.notFoundPage;var fnLoadSideAndNav=this._loadSideAndNav(path,qs,loadSidebar,cb);if(notFoundPage){var path404=get404Path(path,this.config);request(this.router.getFile(path404),true,requestHeaders).then(function(text,opt){return this$1._renderMain(text,opt,fnLoadSideAndNav);},function(){return this$1._renderMain(null,{},fnLoadSideAndNav);});return true} -this._renderMain(null,{},fnLoadSideAndNav);return false};} -function initFetch(vm){var ref=vm.config;var loadSidebar=ref.loadSidebar;if(vm.rendered){var activeEl=getAndActive(vm.router,'.sidebar-nav',true,true);if(loadSidebar&&activeEl){activeEl.parentNode.innerHTML+=window.__SUB_SIDEBAR__;} -vm._bindEventOnRendered(activeEl);vm.$resetEvents();callHook(vm,'doneEach');callHook(vm,'ready');}else{vm.$fetch(function(_){return callHook(vm,'ready');});}} -function initMixin(proto){proto._init=function(){var vm=this;vm.config=config();initLifecycle(vm);initPlugin(vm);callHook(vm,'init');initRouter(vm);initRender(vm);initEvent(vm);initFetch(vm);callHook(vm,'mounted');};} -function initPlugin(vm){[].concat(vm.config.plugins).forEach(function(fn){return isFn(fn)&&fn(vm._lifecycle,vm);});} -var util=Object.freeze({cached:cached,hyphenate:hyphenate,hasOwn:hasOwn,merge:merge,isPrimitive:isPrimitive,noop:noop,isFn:isFn,inBrowser:inBrowser,isMobile:isMobile,supportsPushState:supportsPushState,parseQuery:parseQuery,stringifyQuery:stringifyQuery,isAbsolutePath:isAbsolutePath,getParentPath:getParentPath,cleanPath:cleanPath,resolvePath:resolvePath,getPath:getPath,replaceSlug:replaceSlug});function initGlobalAPI(){window.Docsify={util:util,dom:dom,get:get,slugify:slugify,version:'4.9.4'};window.DocsifyCompiler=Compiler;window.marked=marked;window.Prism=prism;} -function ready(callback){var state=document.readyState;if(state==='complete'||state==='interactive'){return setTimeout(callback,0)} -document.addEventListener('DOMContentLoaded',callback);} -function Docsify(){this._init();} -var proto=Docsify.prototype;initMixin(proto);routerMixin(proto);renderMixin(proto);fetchMixin(proto);eventMixin(proto);initGlobalAPI();ready(function(_){return new Docsify();});}()); \ No newline at end of file +(function(){function cached(fn){var cache=Object.create(null);return function(str){var key=isPrimitive(str)?str:JSON.stringify(str);var hit=cache[key];return hit||(cache[key]=fn(str))}}var hyphenate=cached(function(str){return str.replace(/([A-Z])/g,function(m){return"-"+m.toLowerCase()})});var hasOwn=Object.prototype.hasOwnProperty;var merge=Object.assign||function(to){var arguments$1=arguments;for(var i=1;i=queue.length){next(data)}else{if(typeof hook==="function"){if(hook.length===2){hook(data,function(result){data=result;step(index+1)})}else{var result=hook(data);data=result===undefined?data:result;step(index+1)}}else{step(index+1)}}};step(0)}var inBrowser=!false;var isMobile=inBrowser&&document.body.clientWidth<=600;var supportsPushState=inBrowser&&(function(){return(window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/))})();var cacheNode={};function getNode(el,noCache){if(noCache===void 0){noCache=false}if(typeof el==="string"){if(typeof window.Vue!=="undefined"){return find(el)}el=noCache?find(el):cacheNode[el]||(cacheNode[el]=find(el))}return el}var $=inBrowser&&document;var body=inBrowser&&$.body;var head=inBrowser&&$.head;function find(el,node){if(el==null){return}return node?el.querySelector(node):$.querySelector(el)}function findAll(el,node){return[].slice.call(node?el.querySelectorAll(node):$.querySelectorAll(el))}function create(node,tpl){node=$.createElement(node);if(tpl){node.innerHTML=tpl}return node}function appendTo(target,el){return target.appendChild(el)}function before(target,el){if(target==null){return}return target.insertBefore(el,target.children[0])}function on(el,type,handler){if(el==null){return}isFn(type)?window.addEventListener(el,type):el.addEventListener(type,handler)}function off(el,type,handler){isFn(type)?window.removeEventListener(el,type):el.removeEventListener(type,handler)}function toggleClass(el,type,val){el&&el.classList[val?type:"toggle"](val||type)}function style(content){appendTo(head,create("style",content))}var dom=Object.freeze({getNode:getNode,$:$,body:body,head:head,find:find,findAll:findAll,create:create,appendTo:appendTo,before:before,on:on,off:off,toggleClass:toggleClass,style:style});function corner(data){if(!data){return""}if(!/\/\//.test(data)){data="https://github.com/"+data}data=data.replace(/^git\+/,"");return(''+'"+"") +}function main(config){var aside='"+'";return(("
    ")+'
    '+'
    '+"
    "+"
    ")}function cover(){var SL=", 100%, 85%";var bgc="linear-gradient(to left bottom, "+"hsl("+(Math.floor(Math.random()*255)+SL)+") 0%,"+"hsl("+(Math.floor(Math.random()*255)+SL)+") 100%)";return('
    '+'
    '+'
    '+"
    ")}function tree(toc,tpl){if(tpl===void 0){tpl='
      {inner}
    '}if(!toc||!toc.length){return""}var innerHTML="";toc.forEach(function(node){innerHTML+='
  • '+(node.title)+"
  • ";if(node.children){innerHTML+=tree(node.children,tpl)}});return tpl.replace("{inner}",innerHTML)}function helper(className,content){return('

    '+(content.slice(5).trim())+"

    ")}function theme(color){return("")}var barEl;var timeId;function init(){var progress_bg=create("div");var progress_title=create("h2");var progress_box=create("div");var progress_bar=create("div");var div=create("div");progress_title.innerText="Docs Loading....";progress_title.style.textAlign="center";progress_title.style.marginTop="-50px";progress_bg.style.position="fixed";progress_bg.style.top="0px";progress_bg.style.left="0px";progress_bg.style.width="100%";progress_bg.style.height="100%";progress_bg.style.background="white";progress_bg.style.zIndex="9999";progress_bar.classList.add("progress");progress_bar.style.width="100%";progress_bar.style.height="50px";progress_bar.style.borderRadius="50px";div.classList.add("progress-bar");div.classList.add("progress-bar-striped");div.classList.add("progress-bar-animated");progress_box.style.position="fixed";progress_box.style.top="50%";progress_box.style.left="50%";progress_box.style.width="50%";progress_box.style.transform="translate(-50%,-50%)";appendTo(progress_bar,div);appendTo(progress_box,progress_title);appendTo(progress_box,progress_bar);appendTo(progress_bg,progress_box);appendTo(body,progress_bg);barEl=div;barE2=progress_bg}function progressbar(ref){var loaded=ref.loaded;var total=ref.total;var step=ref.step;var num;!barEl&&init();if(step){num=parseInt(barEl.style.width||0,10)+step;num=num>80?80:num}else{num=Math.floor(loaded/total*100)}barEl.style.opacity=1;barEl.innerText=num+"%";barEl.style.width=num>=95?"100%":num+"%";if(num>=95){clearTimeout(timeId);timeId=setTimeout(function(_){barEl.style.opacity=0;barEl.style.width="0%";barE2.style.display="none"},200)}}var cache={};function get(url,hasBar,headers){if(hasBar===void 0){hasBar=false}if(headers===void 0){headers={}}var xhr=new XMLHttpRequest();var on=function(){xhr.addEventListener.apply(xhr,arguments)};var cached$$1=cache[url];if(cached$$1){return{then:function(cb){return cb(cached$$1.content,cached$$1.opt)},abort:noop}}xhr.open("GET",url);for(var i in headers){if(hasOwn.call(headers,i)){xhr.setRequestHeader(i,headers[i])}}xhr.send();return{then:function(success,error){if(error===void 0){error=noop}if(hasBar){var id=setInterval(function(_){return progressbar({step:Math.floor(Math.random()*5+1)})},500);on("progress",progressbar);on("loadend",function(evt){progressbar(evt);clearInterval(id)})}on("error",error);on("load",function(ref){var target=ref.target;if(target.status>=400){error(target)}else{var result=(cache[url]={content:target.response,opt:{updatedAt:xhr.getResponseHeader("last-modified")}});success(result.content,result.opt)}})},abort:function(_){return xhr.readyState!==4&&xhr.abort()}}}function replaceVar(block,color){block.innerHTML=block.innerHTML.replace(/var\(\s*--theme-color.*?\)/g,color)}function cssVars(color){if(window.CSS&&window.CSS.supports&&window.CSS.supports("(--v:red)")){return}var styleBlocks=findAll("style:not(.inserted),link");[].forEach.call(styleBlocks,function(block){if(block.nodeName==="STYLE"){replaceVar(block,color)}else{if(block.nodeName==="LINK"){var href=block.getAttribute("href");if(!/\.css$/.test(href)){return}get(href).then(function(res){var style$$1=create("style",res);head.appendChild(style$$1);replaceVar(style$$1,color)})}}})}var RGX=/([^{]*?)\w(?=\})/g;var dict={YYYY:"getFullYear",YY:"getYear",MM:function(d){return d.getMonth()+1},DD:"getDate",HH:"getHours",mm:"getMinutes",ss:"getSeconds"};function tinydate(str){var parts=[],offset=0;str.replace(RGX,function(key,_,idx){parts.push(str.substring(offset,idx-1));offset=idx+=key.length+1;parts.push(function(d){return("00"+(typeof dict[key]==="string"?d[dict[key]]():dict[key](d))).slice(-key.length) +})});if(offset!==str.length){parts.push(str.substring(offset))}return function(arg){var out="",i=0,d=arg||new Date();for(;i ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:"+"<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)"+"|comment[^\\n]*(\\n+|$)"+"|<\\?[\\s\\S]*?\\?>\\n*"+"|\\n*"+"|\\n*"+"|)[\\s\\S]*?(?:\\n{2,}|$)"+"|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)"+"|(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)"+")",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex();block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=edit(block.item,"gm").replace(/bull/g,block.bullet).getRegex();block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex();block._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr"+"|track|ul";block._comment=//;block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();block.paragraph=edit(block.paragraph).replace("hr",block.hr).replace("heading",block.heading).replace("lheading",block.lheading).replace("tag",block._tag).getRegex();block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=edit(block.paragraph).replace("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|").getRegex();block.tables=merge({},block.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});block.pedantic=merge({},block.normal,{html:edit("^ *(?:comment *(?:\\n|\\s*$)"+"|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)"+"|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",block._comment).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/});function Lexer(options){this.tokens=[];this.tokens.links=Object.create(null);this.options=options||marked.defaults;this.rules=block.normal;if(this.options.pedantic){this.rules=block.pedantic}else{if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top){var this$1=this;src=src.replace(/^ +$/gm,"");var next,loose,cap,bull,b,item,listStart,listItems,t,space,i,tag,l,isordered,istask,ischecked;while(src){if(cap=this$1.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this$1.tokens.push({type:"space"})}}if(cap=this$1.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,""); +this$1.tokens.push({type:"code",text:!this$1.options.pedantic?rtrim(cap,"\n"):cap});continue}if(cap=this$1.rules.fences.exec(src)){src=src.substring(cap[0].length);this$1.tokens.push({type:"code",lang:cap[2],text:cap[3]||""});continue}if(cap=this$1.rules.heading.exec(src)){src=src.substring(cap[0].length);this$1.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this$1.rules.nptable.exec(src))){item={type:"table",header:splitCells(cap[1].replace(/^ *| *\| *$/g,"")),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3]?cap[3].replace(/\n$/,"").split("\n"):[]};if(item.header.length===item.align.length){src=src.substring(cap[0].length);for(i=0;i ?/gm,"");this$1.token(cap,top);this$1.tokens.push({type:"blockquote_end"});continue}if(cap=this$1.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];isordered=bull.length>1;listStart={type:"list_start",ordered:isordered,start:isordered?+bull:"",loose:false};this$1.tokens.push(listStart);cap=cap[0].match(this$1.rules.item);listItems=[];next=false;l=cap.length;i=0;for(;i1&&b.length>1)){src=cap.slice(i+1).join("\n")+src;i=l-1}}loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==="\n";if(!loose){loose=next}}if(loose){listStart.loose=true}istask=/^\[[ xX]\] /.test(item);ischecked=undefined;if(istask){ischecked=item[1]!==" ";item=item.replace(/^\[[ xX]\] +/,"")}t={type:"list_item_start",task:istask,checked:ischecked,loose:loose};listItems.push(t);this$1.tokens.push(t);this$1.token(item,false);this$1.tokens.push({type:"list_item_end"})}if(listStart.loose){l=listItems.length;i=0;for(;i?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noop,tag:"^comment"+"|^"+"|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>"+"|^<\\?[\\s\\S]*?\\?>"+"|^"+"|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s])__(?!_)|^\*\*([^\s])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noop,text:/^(`+|[^`])[\s\S]*?(?=[\\?@\[\]\\^_`{|}~])/g;inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline._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])?)+(?![-_])/;inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex();inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline.tag=edit(inline.tag).replace("comment",block._comment).replace("attribute",inline._attribute).getRegex();inline._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/;inline._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f\\]*\)|[^\s\x00-\x1f()\\])*?)/;inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex();inline.reflink=edit(inline.reflink).replace("label",inline._label).getRegex();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()});inline.gfm=merge({},inline.normal,{escape:edit(inline.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:edit(inline.text).replace("]|","~]|").replace("|$","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|$").getRegex()});inline.gfm.url=edit(inline.gfm.url).replace("email",inline.gfm._extended_email).getRegex();inline.breaks=merge({},inline.gfm,{br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("{2,}","*").getRegex()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer();this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.pedantic){this.rules=inline.pedantic}else{if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks}else{this.rules=inline.gfm}}}}InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src)};InlineLexer.prototype.output=function(src){var this$1=this;var out="",link,text,href,title,cap,prevCapZero;while(src){if(cap=this$1.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue}if(cap=this$1.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==="@"){text=escape(this$1.mangle(cap[1]));href="mailto:"+text}else{text=escape(cap[1]);href=text}out+=this$1.renderer.link(href,null,text);continue}if(!this$1.inLink&&(cap=this$1.rules.url.exec(src))){if(cap[2]==="@"){text=escape(cap[0]);href="mailto:"+text}else{do{prevCapZero=cap[0];cap[0]=this$1.rules._backpedal.exec(cap[0])[0]}while(prevCapZero!==cap[0]);text=escape(cap[0]);if(cap[1]==="www."){href="http://"+text}else{href=text}}src=src.substring(cap[0].length);out+=this$1.renderer.link(href,null,text);continue}if(cap=this$1.rules.tag.exec(src)){if(!this$1.inLink&&/^/i.test(cap[0])){this$1.inLink=false}}if(!this$1.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(cap[0])){this$1.inRawBlock=true}else{if(this$1.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(cap[0])){this$1.inRawBlock=false}}src=src.substring(cap[0].length);out+=this$1.options.sanitize?this$1.options.sanitizer?this$1.options.sanitizer(cap[0]):escape(cap[0]):cap[0];continue}if(cap=this$1.rules.link.exec(src)){src=src.substring(cap[0].length);this$1.inLink=true;href=cap[2];if(this$1.options.pedantic){link=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(href);if(link){href=link[1];title=link[3]}else{title=""}}else{title=cap[3]?cap[3].slice(1,-1):""}href=href.trim().replace(/^<([\s\S]*)>$/,"$1");out+=this$1.outputLink(cap,{href:InlineLexer.escapes(href),title:InlineLexer.escapes(title)});this$1.inLink=false;continue}if((cap=this$1.rules.reflink.exec(src))||(cap=this$1.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g," ");link=this$1.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue}this$1.inLink=true;out+=this$1.outputLink(cap,link);this$1.inLink=false;continue}if(cap=this$1.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.strong(this$1.output(cap[4]||cap[3]||cap[2]||cap[1]));continue}if(cap=this$1.rules.em.exec(src)){src=src.substring(cap[0].length); +out+=this$1.renderer.em(this$1.output(cap[6]||cap[5]||cap[4]||cap[3]||cap[2]||cap[1]));continue}if(cap=this$1.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.codespan(escape(cap[2].trim(),true));continue}if(cap=this$1.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.br();continue}if(cap=this$1.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this$1.renderer.del(this$1.output(cap[1]));continue}if(cap=this$1.rules.text.exec(src)){src=src.substring(cap[0].length);if(this$1.inRawBlock){out+=this$1.renderer.text(cap[0])}else{out+=this$1.renderer.text(escape(this$1.smartypants(cap[0])))}continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return out};InlineLexer.escapes=function(text){return text?text.replace(InlineLexer.rules._escapes,"$1"):text};InlineLexer.prototype.outputLink=function(cap,link){var href=link.href,title=link.title?escape(link.title):null;return cap[0].charAt(0)!=="!"?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants){return text}return text.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")};InlineLexer.prototype.mangle=function(text){if(!this.options.mangle){return text}var out="",l=text.length,i=0,ch;for(;i0.5){ch="x"+ch.toString(16)}out+="&#"+ch+";"}return out};function Renderer(options){this.options=options||marked.defaults}Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out}}if(!lang){return"
    "+(escaped?code:escape(code,true))+"
    "}return'
    '+(escaped?code:escape(code,true))+"
    \n"};Renderer.prototype.blockquote=function(quote){return"
    \n"+quote+"
    \n"};Renderer.prototype.html=function(html){return html};Renderer.prototype.heading=function(text,level,raw){if(this.options.headerIds){return"'+text+"\n"}return""+text+"\n"};Renderer.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"};Renderer.prototype.list=function(body,ordered,start){var type=ordered?"ol":"ul",startatt=(ordered&&start!==1)?(' start="'+start+'"'):"";return"<"+type+startatt+">\n"+body+"\n"};Renderer.prototype.listitem=function(text){return"
  • "+text+"
  • \n"};Renderer.prototype.checkbox=function(checked){return" "};Renderer.prototype.paragraph=function(text){return"

    "+text+"

    \n"};Renderer.prototype.table=function(header,body){if(body){body=""+body+""}return"\n"+"\n"+header+"\n"+body+"
    \n"};Renderer.prototype.tablerow=function(content){return"\n"+content+"\n"};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td";var tag=flags.align?"<"+type+' align="'+flags.align+'">':"<"+type+">";return tag+content+"\n"};Renderer.prototype.strong=function(text){return""+text+""};Renderer.prototype.em=function(text){return""+text+""};Renderer.prototype.codespan=function(text){return""+text+""};Renderer.prototype.br=function(){return this.options.xhtml?"
    ":"
    "};Renderer.prototype.del=function(text){return""+text+""};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return text}if(prot.indexOf("javascript:")===0||prot.indexOf("vbscript:")===0||prot.indexOf("data:")===0){return text}}if(this.options.baseUrl&&!originIndependentUrl.test(href)){href=resolveUrl(this.options.baseUrl,href)}try{href=encodeURI(href).replace(/%25/g,"%")}catch(e){return text}var out='
    ";return out};Renderer.prototype.image=function(href,title,text){if(this.options.baseUrl&&!originIndependentUrl.test(href)){href=resolveUrl(this.options.baseUrl,href)}var out=''+text+'":">";return out};Renderer.prototype.text=function(text){return text};function TextRenderer(){}TextRenderer.prototype.strong=TextRenderer.prototype.em=TextRenderer.prototype.codespan=TextRenderer.prototype.del=TextRenderer.prototype.text=function(text){return text};TextRenderer.prototype.link=TextRenderer.prototype.image=function(href,title,text){return""+text};TextRenderer.prototype.br=function(){return"" +};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer();this.renderer=this.options.renderer;this.renderer.options=this.options}Parser.parse=function(src,options){var parser=new Parser(options);return parser.parse(src)};Parser.prototype.parse=function(src){var this$1=this;this.inline=new InlineLexer(src.links,this.options);this.inlineText=new InlineLexer(src.links,merge({},this.options,{renderer:new TextRenderer()}));this.tokens=src.reverse();var out="";while(this.next()){out+=this$1.tok()}return out};Parser.prototype.next=function(){return this.token=this.tokens.pop()};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};Parser.prototype.parseText=function(){var this$1=this;var body=this.token.text;while(this.peek().type==="text"){body+="\n"+this$1.next().text}return this.inline.output(body)};Parser.prototype.tok=function(){var this$1=this;switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,unescape(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var header="",body="",i,row,cell,j;cell="";for(i=0;i"']/;escape.escapeReplace=/[&<>"']/g;escape.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"};escape.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/;escape.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function unescape(html){return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(_,n){n=n.toLowerCase();if(n==="colon"){return":"}if(n.charAt(0)==="#"){return n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1))}return""})}function edit(regex,opt){regex=regex.source||regex;opt=opt||"";return{replace:function(name,val){val=val.source||val;val=val.replace(/(^|[^\[])\^/g,"$1");regex=regex.replace(name,val);return this},getRegex:function(){return new RegExp(regex,opt)}}}function resolveUrl(base,href){if(!baseUrls[" "+base]){if(/^[^:]+:\/*[^/]*$/.test(base)){baseUrls[" "+base]=base+"/"}else{baseUrls[" "+base]=rtrim(base,"/",true)}}base=baseUrls[" "+base];if(href.slice(0,2)==="//"){return base.replace(/:[\s\S]*/,":")+href}else{if(href.charAt(0)==="/"){return base.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+href}else{return base+href}}}var baseUrls={};var originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function noop(){}noop.exec=noop;function merge(obj){var arguments$1=arguments;var i=1,target,key;for(;i=0&&str[curr]==="\\"){escaped=!escaped}if(escaped){return"|"}else{return" |"}}),cells=row.split(/ \|/),i=0;if(cells.length>count){cells.splice(count)}else{while(cells.lengthAn error occurred:

    "+escape(e.message+"",true)+"
    "}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.getDefaults=function(){return{baseUrl:null,breaks:false,gfm:true,headerIds:true,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:true,pedantic:false,renderer:new Renderer(),sanitize:false,sanitizer:null,silent:false,smartLists:false,smartypants:false,tables:true,xhtml:false}};marked.defaults=marked.getDefaults();marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.TextRenderer=TextRenderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;module.exports=marked})(commonjsGlobal||(typeof window!=="undefined"?window:commonjsGlobal))});var prism=createCommonjsModule(function(module){var _self=(typeof window!=="undefined")?window:((typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope)?self:{});var Prism=(function(){var lang=/\blang(?:uage)?-([\w-]+)\b/i;var uniqueId=0;var _=_self.Prism={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function(tokens){if(tokens instanceof Token){return new Token(tokens.type,_.util.encode(tokens.content),tokens.alias)}else{if(_.util.type(tokens)==="Array"){return tokens.map(_.util.encode)}else{return tokens.replace(/&/g,"&").replace(/text.length){return}if(str instanceof Token){continue}if(greedy&&i!=strarr.length-1){pattern.lastIndex=pos;var match=pattern.exec(text);if(!match){break}var from=match.index+(lookbehind?match[1].length:0),to=match.index+match[0].length,k=i,p=pos;for(var len=strarr.length;k=p){++i;pos=p}}if(strarr[i] instanceof Token){continue}delNum=k-i;str=text.slice(pos,p);match.index-=pos}else{pattern.lastIndex=0;var match=pattern.exec(str),delNum=1}if(!match){if(oneshot){break}continue}if(lookbehind){lookbehindLength=match[1]?match[1].length:0}var from=match.index+lookbehindLength,match=match[0].slice(lookbehindLength),to=from+match.length,before=str.slice(0,from),after=str.slice(to);var args=[i,delNum];if(before){++i;pos+=before.length;args.push(before)}var wrapped=new Token(token,inside?_.tokenize(match,inside):match,alias,match,greedy);args.push(wrapped);if(after){args.push(after)}Array.prototype.splice.apply(strarr,args);if(delNum!=1){_.matchGrammar(text,strarr,grammar,i,pos,true,token)}if(oneshot){break}}}}},tokenize:function(text,grammar,language){var strarr=[text];var rest=grammar.rest;if(rest){for(var token in rest){grammar[token]=rest[token]}delete grammar.rest}_.matchGrammar(text,strarr,grammar,0,0,false);return strarr},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[];hooks[name].push(callback)},run:function(name,env){var callbacks=_.hooks.all[name];if(!callbacks||!callbacks.length){return}for(var i=0,callback;callback=callbacks[i++];){callback(env)}}}};var Token=_.Token=function(type,content,alias,matchedStr,greedy){this.type=type;this.content=content;this.alias=alias;this.length=(matchedStr||"").length|0;this.greedy=!!greedy};Token.stringify=function(o,language,parent){if(typeof o=="string"){return o}if(_.util.type(o)==="Array"){return o.map(function(element){return Token.stringify(element,language,o)}).join("")}var env={type:o.type,content:Token.stringify(o.content,language,parent),tag:"span",classes:["token",o.type],attributes:{},language:language,parent:parent};if(o.alias){var aliases=_.util.type(o.alias)==="Array"?o.alias:[o.alias];Array.prototype.push.apply(env.classes,aliases) +}_.hooks.run("wrap",env);var attributes=Object.keys(env.attributes).map(function(name){return name+'="'+(env.attributes[name]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+env.tag+' class="'+env.classes.join(" ")+'"'+(attributes?" "+attributes:"")+">"+env.content+""};if(!_self.document){if(!_self.addEventListener){return _self.Prism}if(!_.disableWorkerMessageHandler){_self.addEventListener("message",function(evt){var message=JSON.parse(evt.data),lang=message.language,code=message.code,immediateClose=message.immediateClose;_self.postMessage(_.highlight(code,_.languages[lang],lang));if(immediateClose){_self.close()}},false)}return _self.Prism}var script=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();if(script){_.filename=script.src;if(!_.manual&&!script.hasAttribute("data-manual")){if(document.readyState!=="loading"){if(window.requestAnimationFrame){window.requestAnimationFrame(_.highlightAll)}else{window.setTimeout(_.highlightAll,16)}}else{document.addEventListener("DOMContentLoaded",_.highlightAll)}}}return _self.Prism})();if("object"!=="undefined"&&module.exports){module.exports=Prism}if(typeof commonjsGlobal!=="undefined"){commonjsGlobal.Prism=Prism}Prism.languages.markup={"comment"://,"prolog":/<\?[\s\S]+?\?>/,"doctype"://i,"cdata"://i,"tag":{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:true,inside:{"tag":{pattern:/^<\/?[^\s>\/]+/i,inside:{"punctuation":/^<\/?/,"namespace":/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{"punctuation":[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:true}]}},"punctuation":/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{"namespace":/^[^\s>\/:]+:/}}}},"entity":/&#?[\da-z]{1,8};/i};Prism.languages.markup["tag"].inside["attr-value"].inside["entity"]=Prism.languages.markup["entity"];Prism.hooks.add("wrap",function(env){if(env.type==="entity"){env.attributes["title"]=env.content.replace(/&/,"&")}});Prism.languages.xml=Prism.languages.markup;Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.css={"comment":/\/\*[\s\S]*?\*\//,"atrule":{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{"rule":/@[\w-]+/}},"url":/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,"selector":/[^{}\s][^{};]*?(?=\s*\{)/,"string":{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:true},"property":/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,"important":/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,"punctuation":/[(){};:]/};Prism.languages.css["atrule"].inside.rest=Prism.languages.css;if(Prism.languages.markup){Prism.languages.insertBefore("markup","tag",{"style":{pattern:/()[\s\S]*?(?=<\/style>)/i,lookbehind:true,inside:Prism.languages.css,alias:"language-css",greedy:true}});Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},"punctuation":/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)}Prism.languages.clike={"comment":[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:true},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:true,greedy:true}],"string":{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:true},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:true,inside:{punctuation:/[.\\]/}},"keyword":/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(?:true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,"number":/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,"operator":/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,"punctuation":/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"keyword":/\b(?: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|var|void|while|with|yield)\b/,"number":/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,"function":/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,"operator":/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});Prism.languages.insertBefore("javascript","keyword",{"regex":{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:true,greedy:true},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"},"constant":/\b[A-Z][A-Z\d_]*\b/}); +Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:true,inside:{"interpolation":{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:null}},"string":/[\s\S]+/}}});Prism.languages.javascript["template-string"].inside["interpolation"].inside.rest=Prism.languages.javascript;if(Prism.languages.markup){Prism.languages.insertBefore("markup","tag",{"script":{pattern:/()[\s\S]*?(?=<\/script>)/i,lookbehind:true,inside:Prism.languages.javascript,alias:"language-javascript",greedy:true}})}Prism.languages.js=Prism.languages.javascript;(function(){if(typeof self==="undefined"||!self.Prism||!self.document||!document.querySelector){return}self.Prism.fileHighlight=function(){var Extensions={"js":"javascript","py":"python","rb":"ruby","ps1":"powershell","psm1":"powershell","sh":"bash","bat":"batch","h":"c","tex":"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(pre){var src=pre.getAttribute("data-src");var language,parent=pre;var lang=/\blang(?:uage)?-([\w-]+)\b/i;while(parent&&!lang.test(parent.className)){parent=parent.parentNode}if(parent){language=(pre.className.match(lang)||[,""])[1]}if(!language){var extension=(src.match(/\.(\w+)$/)||[,""])[1];language=Extensions[extension]||extension}var code=document.createElement("code");code.className="language-"+language;pre.textContent="";code.textContent="Loading…";pre.appendChild(code);var xhr=new XMLHttpRequest();xhr.open("GET",src,true);xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status<400&&xhr.responseText){code.textContent=xhr.responseText;Prism.highlightElement(code)}else{if(xhr.status>=400){code.textContent="✖ Error "+xhr.status+" while fetching file: "+xhr.statusText}else{code.textContent="✖ Error: File does not exist or is empty"}}}};xhr.send(null)});if(Prism.plugins.toolbar){Prism.plugins.toolbar.registerButton("download-file",function(env){var pre=env.element.parentNode;if(!pre||!/pre/i.test(pre.nodeName)||!pre.hasAttribute("data-src")||!pre.hasAttribute("data-download-link")){return}var src=pre.getAttribute("data-src");var a=document.createElement("a");a.textContent=pre.getAttribute("data-download-link-label")||"Download";a.setAttribute("download","");a.href=src;return a})}};document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight)})()});function genTree(toc,maxLevel){var headlines=[];var last={};toc.forEach(function(headline){var level=headline.level||1;var len=level-1;if(level>maxLevel){return}if(last[len]){last[len].children=(last[len].children||[]).concat(headline)}else{headlines.push(headline)}last[level]=headline});return headlines}var cache$1={};var re=/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g;function lower(string){return string.toLowerCase()}function slugify(str){if(typeof str!=="string"){return""}var slug=str.trim().replace(/[A-Z]+/g,lower).replace(/<[^>\d]+>/g,"").replace(re,"").replace(/\s/g,"-").replace(/-+/g,"-").replace(/^(\d)/,"_$1");var count=cache$1[slug];count=hasOwn.call(cache$1,slug)?count+1:0;cache$1[slug]=count;if(count){slug=slug+"-"+count}return slug}slugify.clear=function(){cache$1={}};function replace(m,$1){return''+$1+''}function emojify(text){return text.replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g,function(m){return m.replace(/:/g,"__colon__")}).replace(/:(\w+?):/ig,(inBrowser&&window.emojify)||replace).replace(/__colon__/g,":")}var decode=decodeURIComponent;var encode=encodeURIComponent;function parseQuery(query){var res={};query=query.trim().replace(/^(\?|#|&)/,"");if(!query){return res}query.split("&").forEach(function(param){var parts=param.replace(/\+/g," ").split("=");res[parts[0]]=parts[1]&&decode(parts[1])});return res}function stringifyQuery(obj,ignores){if(ignores===void 0){ignores=[]}var qs=[];for(var key in obj){if(ignores.indexOf(key)>-1){continue}qs.push(obj[key]?((encode(key))+"="+(encode(obj[key]))).toLowerCase():encode(key))}return qs.length?("?"+(qs.join("&"))):""}var isAbsolutePath=cached(function(path){return/(:|(\/{2}))/g.test(path)});var getParentPath=cached(function(path){return/\/$/g.test(path)?path:(path=path.match(/(\S*\/)[^/]+$/))?path[1]:""});var cleanPath=cached(function(path){return path.replace(/^\/+/,"/").replace(/([^:])\/{2,}/g,"$1/")});var resolvePath=cached(function(path){var segments=path.replace(/^\//,"").split("/");var resolved=[];for(var i=0,len=segments.length;i=keys.length){return}for(var i=0;i-1){++j;var before=s.substring(0,index);var middle=new Prism.Token(language,Prism.tokenize(t,env.grammar,language),"language-"+language,t);var after=s.substring(index+("___"+language.toUpperCase()+k+"___").length);var replacement;if(before||after){replacement=[before,middle,after].filter(function(v){return !!v});walkTokens(replacement)}else{replacement=middle}if(typeof token==="string"){Array.prototype.splice.apply(tokens,[i,1].concat(replacement))}else{token.content=replacement}if(j>=keys.length){break}}}else{if(token.content&&typeof token.content!=="string"){walkTokens(token.content)}}}};walkTokens(env.tokens)}}});var cachedLinks={};function getAndRemoveConfig(str){if(str===void 0){str=""}var config={};if(str){str=str.replace(/^'/,"").replace(/'$/,"").replace(/(?:^|\s):([\w-]+)=?([\w-]+)?/g,function(m,key,value){config[key]=(value&&value.replace(/"/g,""))||true;return""}).trim()}return{str:str,config:config}}var compileMedia={markdown:function markdown(url){return{url:url}},mermaid:function mermaid(url){return{url:url}},iframe:function iframe(url,title){return{html:('")}},video:function video(url,title){return{html:('")}},audio:function audio(url,title){return{html:('")}},code:function code(url,title){var lang=url.match(/\.(\w+)$/);lang=title||(lang&&lang[1]);if(lang==="md"){lang="markdown"}return{url:url,lang:lang}}};var Compiler=function Compiler(config,router){var this$1=this;this.config=config;this.router=router;this.cacheTree={};this.toc=[];this.cacheTOC={};this.linkTarget=config.externalLinkTarget||"_blank";this.contentBase=router.getBasePath();var renderer=this._initRenderer();var compile;var mdConf=config.markdown||{};if(isFn(mdConf)){compile=mdConf(marked,renderer)}else{marked.setOptions(merge(mdConf,{renderer:merge(renderer,mdConf.renderer)}));compile=marked}this._marked=compile;this.compile=function(text){var isCached=true;var result=cached(function(_){isCached=false;var html="";if(!text){return text}if(isPrimitive(text)){html=compile(text)}else{html=compile.parser(text)}html=config.noEmoji?html:emojify(html);slugify.clear();return html})(text);var curFileName=this$1.router.parse().file;if(isCached){this$1.toc=this$1.cacheTOC[curFileName]}else{this$1.cacheTOC[curFileName]=[].concat(this$1.toc)}return result}};Compiler.prototype.compileEmbed=function compileEmbed(href,title){var ref=getAndRemoveConfig(title);var str=ref.str;var config=ref.config;var embed;title=str;if(config.include){if(!isAbsolutePath(href)){href=getPath(this.contentBase,getParentPath(this.router.getCurrentPath()),href)}var media;if(config.type&&(media=compileMedia[config.type])){embed=media.call(this,href,title);embed.type=config.type}else{var type="code";if(/\.(md|markdown)/.test(href)){type="markdown"}else{if(/\.mmd/.test(href)){type="mermaid"}else{if(/\.html?/.test(href)){type="iframe"}else{if(/\.(mp4|ogg)/.test(href)){type="video"}else{if(/\.mp3/.test(href)){type="audio"}}}}}embed=compileMedia[type].call(this,href,title);embed.type=type}embed.fragment=config.fragment;return embed}};Compiler.prototype._matchNotCompileLink=function _matchNotCompileLink(link){var links=this.config.noCompileLinks||[];for(var i=0;i
    '+str+"")};origin.code=renderer.code=function(code,lang){if(lang===void 0){lang=""}code=code.replace(/@DOCSIFY_QM@/g,"`");var hl=prism.highlight(code,prism.languages[lang]||prism.languages.markup);return('
    '+hl+"
    ")};origin.link=renderer.link=function(href,title,text){if(title===void 0){title=""}var attrs="";var ref=getAndRemoveConfig(title);var str=ref.str;var config=ref.config;title=str;if(!isAbsolutePath(href)&&!_self._matchNotCompileLink(href)&&!config.ignore){if(href===_self.config.homepage){href="README"}href=router.toURL(href,null,router.getCurrentPath())}else{attrs+=href.indexOf("mailto:")===0?"":(' target="'+linkTarget+'"')}if(config.target){attrs+=" target="+config.target}if(config.disabled){attrs+=" disabled";href="javascript:void(0)"}if(title){attrs+=' title="'+title+'"'}return('"+text+"")};origin.paragraph=renderer.paragraph=function(text){var result;if(/^!>/.test(text)){result=helper("tip",text)}else{if(/^\?>/.test(text)){result=helper("warn",text)}else{result="

    "+text+"

    "}}return result};origin.image=renderer.image=function(href,title,text){var url=href;var attrs="";var ref=getAndRemoveConfig(title);var str=ref.str;var config=ref.config;title=str;if(config["no-zoom"]){attrs+=" data-no-zoom"}if(title){attrs+=' title="'+title+'"'}var size=config.size;if(size){var sizes=size.split("x");if(sizes[1]){attrs+="width="+sizes[0]+" height="+sizes[1]}else{attrs+="width="+sizes[0]}}if(!isAbsolutePath(href)){url=getPath(contentBase,getParentPath(router.getCurrentPath()),href)}return(''+text+'")};origin.list=renderer.list=function(body,ordered,start){var isTaskList=/
  • /.test(body.split('class="task-list"')[0]);var isStartReq=start&&start>1;var tag=ordered?"ol":"ul";var tagAttrs=[(isTaskList?'class="task-list"':""),(isStartReq?('start="'+start+'"'):"")].join(" ").trim();return("<"+tag+" "+tagAttrs+">"+body+"")};origin.listitem=renderer.listitem=function(text){var isTaskItem=/^(]*>)/.test(text);var html=isTaskItem?('
  • "):("
  • "+text+"
  • ");return html};renderer.origin=origin;return renderer};Compiler.prototype.sidebar=function sidebar(text,level){var ref=this;var toc=ref.toc;var currentPath=this.router.getCurrentPath();var html="";if(text){html=this.compile(text)}else{for(var i=0;i{inner}");this.cacheTree[currentPath]=tree$$1}return""};Compiler.prototype.subSidebar=function subSidebar(level){if(!level){this.toc=[];return}var currentPath=this.router.getCurrentPath();var ref=this;var cacheTree=ref.cacheTree;var toc=ref.toc;toc[0]&&toc[0].ignoreAllSubs&&toc.splice(0);toc[0]&&toc[0].level===1&&toc.shift();for(var i=0;i=coverHeight||cover.classList.contains("hidden")){toggleClass(body,"add","sticky")}else{toggleClass(body,"remove","sticky")}}function getAndActive(router,el,isParent,autoTitle){el=getNode(el);var links=[];if(el!=null){links=findAll(el,"a")}var hash=decodeURI(router.toURL(router.getCurrentPath()));var target;links.sort(function(a,b){return b.href.length-a.href.length}).forEach(function(a){var href=a.getAttribute("href");var node=isParent?a.parentNode:a;if(hash.indexOf(href)===0&&!target){target=a;toggleClass(node,"add","active")}else{toggleClass(node,"remove","active")}}); +if(autoTitle){$.title=target?(target.title||((target.innerText)+" - "+title)):title}return target}var _createClass=function(){function defineProperties(target,props){for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,Tweezer);this.duration=opts.duration||1000;this.ease=opts.easing||this._defaultEase;this.start=opts.start;this.end=opts.end;this.frame=null;this.next=null;this.isRunning=false;this.events={};this.direction=this.startthis.end&&lastTick>=this.next}[this.direction]}},{key:"_defaultEase",value:function _defaultEase(t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b}return -c/2*(--t*(t-2)-1)+b}}]);return Tweezer}();var nav={};var hoverOver=false;var scroller=null;var enableScrollEvent=true;var coverHeight=0;function scrollTo(el){if(scroller){scroller.stop()}enableScrollEvent=false;scroller=new Tweezer({start:window.pageYOffset,end:el.getBoundingClientRect().top+window.pageYOffset,duration:500}).on("tick",function(v){return window.scrollTo(0,v)}).on("done",function(){enableScrollEvent=true;scroller=null}).begin()}function highlight(path){if(!enableScrollEvent){return}var sidebar=getNode(".sidebar");var anchors=findAll(".anchor");var wrap=find(sidebar,".sidebar-nav");var active=find(sidebar,"li.active");var doc=document.documentElement;var top=((doc&&doc.scrollTop)||document.body.scrollTop)-coverHeight;var last;for(var i=0,len=anchors.length;itop){if(!last){last=node}break}else{last=node}}if(!last){return}var li=nav[getNavKey(decodeURIComponent(path),last.getAttribute("data-id"))];if(!li||li===active){return}active&&active.classList.remove("active");li.classList.add("active");active=li;if(!hoverOver&&body.classList.contains("sticky")){var height=sidebar.clientHeight;var curOffset=0;var cur=active.offsetTop+active.clientHeight+40;var isInView=active.offsetTop>=wrap.scrollTop&&cur<=wrap.scrollTop+height;var notThan=cur-curOffset\n'+text+"\n")}];embedToken.links={}}else{embedToken=[{type:"html",text:text}];embedToken.links={}}}}}cb({token:token,embedToken:embedToken});if(++count>=step){cb({})}}})(token);if(token.embed.url){get(token.embed.url).then(next)}else{next(token.embed.html)}}}function prerenderEmbed(ref,done){var compiler=ref.compiler;var raw=ref.raw;if(raw===void 0){raw=""}var fetch=ref.fetch;var hit=cached$1[raw];if(hit){var copy=hit.slice();copy.links=hit.links;return done(copy)}var compile=compiler._marked;var tokens=compile.lexer(raw);var embedTokens=[];var linkRE=compile.InlineLexer.rules.link;var links=tokens.links;tokens.forEach(function(token,index){if(token.type==="paragraph"){token.text=token.text.replace(new RegExp(linkRE.source,"g"),function(src,filename,href,title){var embed=compiler.compileEmbed(href,title);if(embed){embedTokens.push({index:index,embed:embed})}return src})}});var moveIndex=0;walkFetchEmbed({compile:compile,embedTokens:embedTokens,fetch:fetch},function(ref){var embedToken=ref.embedToken;var token=ref.token;if(token){var index=token.index+moveIndex;merge(links,embedToken.links);tokens=tokens.slice(0,index).concat(embedToken,tokens.slice(index+1));moveIndex+=embedToken.length-1}else{cached$1[raw]=tokens.concat();tokens.links=cached$1[raw].links=links;done(tokens)}})}function executeScript(){var script=findAll(".markdown-section>script").filter(function(s){return !/template/.test(s.type)})[0];if(!script){return false}var code=script.innerText.trim();if(!code){return false}setTimeout(function(_){window.__EXECUTE_RESULT__=new Function(code)()},0)}function formatUpdated(html,updated,fn){updated=typeof fn==="function"?fn(updated):typeof fn==="string"?tinydate(fn)(new Date(updated)):updated;return html.replace(/{docsify-updated}/g,updated)}function renderMain(html){if(!html){html="

    404 - Not found

    "}this._renderTo(".markdown-section",html);!this.config.loadSidebar&&this._renderSidebar();if(this.config.executeScript!==false&&typeof window.Vue!=="undefined"&&!executeScript()){setTimeout(function(_){var vueVM=window.__EXECUTE_RESULT__;vueVM&&vueVM.$destroy&&vueVM.$destroy();window.__EXECUTE_RESULT__=new window.Vue().$mount("#main")},0)}else{this.config.executeScript&&executeScript()}}function renderNameLink(vm){var el=getNode(".app-name-link");var nameLink=vm.config.nameLink;var path=vm.route.path;if(!el){return}if(isPrimitive(vm.config.nameLink)){el.setAttribute("href",nameLink)}else{if(typeof nameLink==="object"){var match=Object.keys(nameLink).filter(function(key){return path.indexOf(key)>-1})[0];el.setAttribute("href",nameLink[match])}}}function renderMixin(proto){proto._renderTo=function(el,content,replace){var node=getNode(el);if(node){node[replace?"outerHTML":"innerHTML"]=content}};proto._renderSidebar=function(text){var ref=this.config;var maxLevel=ref.maxLevel;var subMaxLevel=ref.subMaxLevel;var loadSidebar=ref.loadSidebar;this._renderTo(".sidebar-nav",this.compiler.sidebar(text,maxLevel));var activeEl=getAndActive(this.router,".sidebar-nav",true,true);if(loadSidebar&&activeEl){activeEl.parentNode.innerHTML+=this.compiler.subSidebar(subMaxLevel)||""}else{this.compiler.subSidebar()}this._bindEventOnRendered(activeEl)};proto._bindEventOnRendered=function(activeEl){var ref=this.config;var autoHeader=ref.autoHeader;var auto2top=ref.auto2top;scrollActiveSidebar(this.router);if(autoHeader&&activeEl){var main$$1=getNode("#main");var firstNode=main$$1.children[0];if(firstNode&&firstNode.tagName!=="H1"){var h1=create("h1");h1.innerText=activeEl.innerText;before(main$$1,h1)}}auto2top&&scroll2Top(auto2top)};proto._renderMain=function(text,opt,next){var this$1=this;if(opt===void 0){opt={}}if(!text){return renderMain.call(this,text)}callHook(this,"beforeEach",text,function(result){var html;var callback=function(){if(opt.updatedAt){html=formatUpdated(html,opt.updatedAt,this$1.config.formatUpdated)}callHook(this$1,"afterEach",html,function(text){return renderMain.call(this$1,text)})};if(this$1.isHTML){html=this$1.result=text;callback();next()}else{prerenderEmbed({compiler:this$1.compiler,raw:result},function(tokens){html=this$1.compiler.compile(tokens); +callback();next()})}})};proto._updateRender=function(){renderNameLink(this)}}function initRender(vm){var config=vm.config;vm.compiler=new Compiler(config,vm.router);if(inBrowser){window.__current_docsify_compiler__=vm.compiler}var id=config.el||"#app";var navEl=find("nav")||create("nav");var el=find(id);var html="";var navAppendToTarget=body;if(el){if(config.repo){html+=corner(config.repo)}if(config.coverpage){html+=cover()}if(config.logo){var isBase64=/^data:image/.test(config.logo);var isExternal=/(?:http[s]?:)?\/\//.test(config.logo);var isRelative=/^\./.test(config.logo);if(!isBase64&&!isExternal&&!isRelative){config.logo=getPath(vm.router.getBasePath(),config.logo)}}html+=main(config);vm._renderTo(el,html,true)}else{vm.rendered=true}if(config.mergeNavbar&&isMobile){navAppendToTarget=find(".sidebar")}else{navEl.classList.add("app-nav");if(!config.repo){navEl.classList.add("no-badge")}}if(config.loadNavbar){before(navAppendToTarget,navEl)}if(config.themeColor){$.head.appendChild(create("div",theme(config.themeColor)).firstElementChild);cssVars(config.themeColor)}vm._updateRender();toggleClass(body,"ready")}var cached$2={};function getAlias(path,alias,last){var match=Object.keys(alias).filter(function(key){var re=cached$2[key]||(cached$2[key]=new RegExp(("^"+key+"$")));return re.test(path)&&path!==last})[0];return match?getAlias(path.replace(cached$2[match],alias[match]),alias,path):path}function getFileName(path,ext){return new RegExp(("\\.("+(ext.replace(/^\./,""))+"|html)$"),"g").test(path)?path:/\/$/g.test(path)?(path+"README"+ext):(""+path+ext)}var History=function History(config){this.config=config};History.prototype.getBasePath=function getBasePath(){return this.config.basePath};History.prototype.getFile=function getFile(path,isRelative){if(path===void 0){path=this.getCurrentPath()}var ref=this;var config=ref.config;var base=this.getBasePath();var ext=typeof config.ext==="string"?config.ext:".md";path=config.alias?getAlias(path,config.alias):path;path=getFileName(path,ext);path=path===("/README"+ext)?config.homepage||path:path;path=isAbsolutePath(path)?path:getPath(base,path);if(isRelative){path=path.replace(new RegExp(("^"+base)),"")}return path};History.prototype.onchange=function onchange(cb){if(cb===void 0){cb=noop}cb()};History.prototype.getCurrentPath=function getCurrentPath(){};History.prototype.normalize=function normalize(){};History.prototype.parse=function parse(){};History.prototype.toURL=function toURL(path,params,currentRoute){var local=currentRoute&&path[0]==="#";var route=this.parse(replaceSlug(path));route.query=merge({},route.query,params);path=route.path+stringifyQuery(route.query);path=path.replace(/\.md(\?)|\.md$/,"$1");if(local){var idIndex=currentRoute.indexOf("?");path=(idIndex>0?currentRoute.substring(0,idIndex):currentRoute)+path}if(this.config.relativePath&&path.indexOf("/")!==0){var currentDir=currentRoute.substring(0,currentRoute.lastIndexOf("/")+1);return cleanPath(resolvePath(currentDir+path))}return cleanPath("/"+path)};function replaceHash(path){var i=location.href.indexOf("#");location.replace(location.href.slice(0,i>=0?i:0)+"#"+path)}var HashHistory=(function(History$$1){function HashHistory(config){History$$1.call(this,config);this.mode="hash"}if(History$$1){HashHistory.__proto__=History$$1}HashHistory.prototype=Object.create(History$$1&&History$$1.prototype);HashHistory.prototype.constructor=HashHistory;HashHistory.prototype.getBasePath=function getBasePath(){var path=window.location.pathname||"";var base=this.config.basePath;return/^(\/|https?:)/g.test(base)?base:cleanPath(path+"/"+base)};HashHistory.prototype.getCurrentPath=function getCurrentPath(){var href=location.href;var index=href.indexOf("#");return index===-1?"":href.slice(index+1)};HashHistory.prototype.onchange=function onchange(cb){if(cb===void 0){cb=noop}on("hashchange",cb)};HashHistory.prototype.normalize=function normalize(){var path=this.getCurrentPath();path=replaceSlug(path);if(path.charAt(0)==="/"){return replaceHash(path)}replaceHash("/"+path)};HashHistory.prototype.parse=function parse(path){if(path===void 0){path=location.href}var query="";var hashIndex=path.indexOf("#");if(hashIndex>=0){path=path.slice(hashIndex+1)}var queryIndex=path.indexOf("?");if(queryIndex>=0){query=path.slice(queryIndex+1);path=path.slice(0,queryIndex)}return{path:path,file:this.getFile(path,true),query:parseQuery(query)}};HashHistory.prototype.toURL=function toURL(path,params,currentRoute){return"#"+History$$1.prototype.toURL.call(this,path,params,currentRoute)};return HashHistory}(History));var HTML5History=(function(History$$1){function HTML5History(config){History$$1.call(this,config);this.mode="history"}if(History$$1){HTML5History.__proto__=History$$1}HTML5History.prototype=Object.create(History$$1&&History$$1.prototype);HTML5History.prototype.constructor=HTML5History;HTML5History.prototype.getCurrentPath=function getCurrentPath(){var base=this.getBasePath();var path=window.location.pathname;if(base&&path.indexOf(base)===0){path=path.slice(base.length) +}return(path||"/")+window.location.search+window.location.hash};HTML5History.prototype.onchange=function onchange(cb){if(cb===void 0){cb=noop}on("click",function(e){var el=e.target.tagName==="A"?e.target:e.target.parentNode;if(el.tagName==="A"&&!/_blank/.test(el.target)){e.preventDefault();var url=el.href;window.history.pushState({key:url},"",url);cb()}});on("popstate",cb)};HTML5History.prototype.parse=function parse(path){if(path===void 0){path=location.href}var query="";var queryIndex=path.indexOf("?");if(queryIndex>=0){query=path.slice(queryIndex+1);path=path.slice(0,queryIndex)}var base=getPath(location.origin);var baseIndex=path.indexOf(base);if(baseIndex>-1){path=path.slice(baseIndex+base.length)}return{path:path,file:this.getFile(path),query:parseQuery(query)}};return HTML5History}(History));function routerMixin(proto){proto.route={}}var lastRoute={};function updateRender(vm){vm.router.normalize();vm.route=vm.router.parse();body.setAttribute("data-page",vm.route.file)}function initRouter(vm){var config=vm.config;var mode=config.routerMode||"hash";var router;if(mode==="history"&&supportsPushState){router=new HTML5History(config)}else{router=new HashHistory(config)}vm.router=router;updateRender(vm);lastRoute=vm.route;router.onchange(function(_){updateRender(vm);vm._updateRender();if(lastRoute.path===vm.route.path){vm.$resetEvents();return}vm.$fetch();lastRoute=vm.route})}function eventMixin(proto){proto.$resetEvents=function(){scrollIntoView(this.route.path,this.route.query.id);if(this.config.loadNavbar){getAndActive(this.router,"nav")}}}function initEvent(vm){btn("button.sidebar-toggle",vm.router);collapse(".sidebar",vm.router);if(vm.config.coverpage){!isMobile&&on("scroll",sticky)}else{body.classList.add("sticky")}}function loadNested(path,qs,file,next,vm,first){path=first?path:path.replace(/\/$/,"");path=getParentPath(path);if(!path){return}get(vm.router.getFile(path+file)+qs,false,vm.config.requestHeaders).then(next,function(_){return loadNested(path,qs,file,next,vm)})}function fetchMixin(proto){var last;var abort=function(){return last&&last.abort&&last.abort()};var request=function(url,hasbar,requestHeaders){abort();last=get(url,true,requestHeaders);return last};var get404Path=function(path,config){var notFoundPage=config.notFoundPage;var ext=config.ext;var defaultPath="_404"+(ext||".md");var key;var path404;switch(typeof notFoundPage){case"boolean":path404=defaultPath;break;case"string":path404=notFoundPage;break;case"object":key=Object.keys(notFoundPage).sort(function(a,b){return b.length-a.length}).find(function(key){return path.match(new RegExp("^"+key))});path404=(key&¬FoundPage[key])||defaultPath;break;default:break}return path404};proto._loadSideAndNav=function(path,qs,loadSidebar,cb){var this$1=this;return function(){if(!loadSidebar){return cb()}var fn=function(result){this$1._renderSidebar(result);cb()};loadNested(path,qs,loadSidebar,fn,this$1,true)}};proto._fetch=function(cb){var this$1=this;if(cb===void 0){cb=noop}var ref=this.route;var path=ref.path;var query=ref.query;var qs=stringifyQuery(query,["id"]);var ref$1=this.config;var loadNavbar=ref$1.loadNavbar;var requestHeaders=ref$1.requestHeaders;var loadSidebar=ref$1.loadSidebar;var file=this.router.getFile(path);var req=request(file+qs,true,requestHeaders);this.isHTML=/\.html$/g.test(file);req.then(function(text,opt){return this$1._renderMain(text,opt,this$1._loadSideAndNav(path,qs,loadSidebar,cb))},function(_){this$1._fetchFallbackPage(file,qs,cb)||this$1._fetch404(file,qs,cb)});loadNavbar&&loadNested(path,qs,loadNavbar,function(text){return this$1._renderNav(text)},this,true)};proto._fetchCover=function(){var this$1=this;var ref=this.config;var coverpage=ref.coverpage;var requestHeaders=ref.requestHeaders;var query=this.route.query;var root=getParentPath(this.route.path);if(coverpage){var path=null;var routePath=this.route.path;if(typeof coverpage==="string"){if(routePath==="/"){path=coverpage}}else{if(Array.isArray(coverpage)){path=coverpage.indexOf(routePath)>-1&&"_coverpage"}else{var cover=coverpage[routePath];path=cover===true?"_coverpage":cover}}var coverOnly=Boolean(path)&&this.config.onlyCover;if(path){path=this.router.getFile(root+path);this.coverIsHTML=/\.html$/g.test(path);get(path+stringifyQuery(query,["id"]),false,requestHeaders).then(function(text){return this$1._renderCover(text,coverOnly)})}else{this._renderCover(null,coverOnly)}return coverOnly}};proto.$fetch=function(cb){var this$1=this;if(cb===void 0){cb=noop}var done=function(){callHook(this$1,"doneEach");cb()};var onlyCover=this._fetchCover();if(onlyCover){done()}else{this._fetch(function(){this$1.$resetEvents();done()})}};proto._fetchFallbackPage=function(path,qs,cb){var this$1=this;if(cb===void 0){cb=noop}var ref=this.config;var requestHeaders=ref.requestHeaders;var fallbackLanguages=ref.fallbackLanguages;var loadSidebar=ref.loadSidebar;if(!fallbackLanguages){return false}var local=path.split("/")[1];if(fallbackLanguages.indexOf(local)===-1){return false}var newPath=path.replace(new RegExp(("^/"+local)),""); +var req=request(newPath+qs,true,requestHeaders);req.then(function(text,opt){return this$1._renderMain(text,opt,this$1._loadSideAndNav(path,qs,loadSidebar,cb))},function(){return this$1._fetch404(path,qs,cb)});return true};proto._fetch404=function(path,qs,cb){var this$1=this;if(cb===void 0){cb=noop}var ref=this.config;var loadSidebar=ref.loadSidebar;var requestHeaders=ref.requestHeaders;var notFoundPage=ref.notFoundPage;var fnLoadSideAndNav=this._loadSideAndNav(path,qs,loadSidebar,cb);if(notFoundPage){var path404=get404Path(path,this.config);request(this.router.getFile(path404),true,requestHeaders).then(function(text,opt){return this$1._renderMain(text,opt,fnLoadSideAndNav)},function(){return this$1._renderMain(null,{},fnLoadSideAndNav)});return true}this._renderMain(null,{},fnLoadSideAndNav);return false}}function initFetch(vm){var ref=vm.config;var loadSidebar=ref.loadSidebar;if(vm.rendered){var activeEl=getAndActive(vm.router,".sidebar-nav",true,true);if(loadSidebar&&activeEl){activeEl.parentNode.innerHTML+=window.__SUB_SIDEBAR__}vm._bindEventOnRendered(activeEl);vm.$resetEvents();callHook(vm,"doneEach");callHook(vm,"ready")}else{vm.$fetch(function(_){return callHook(vm,"ready")})}}function initMixin(proto){proto._init=function(){var vm=this;vm.config=config();initLifecycle(vm);initPlugin(vm);callHook(vm,"init");initRouter(vm);initRender(vm);initEvent(vm);initFetch(vm);callHook(vm,"mounted")}}function initPlugin(vm){[].concat(vm.config.plugins).forEach(function(fn){return isFn(fn)&&fn(vm._lifecycle,vm)})}var util=Object.freeze({cached:cached,hyphenate:hyphenate,hasOwn:hasOwn,merge:merge,isPrimitive:isPrimitive,noop:noop,isFn:isFn,inBrowser:inBrowser,isMobile:isMobile,supportsPushState:supportsPushState,parseQuery:parseQuery,stringifyQuery:stringifyQuery,isAbsolutePath:isAbsolutePath,getParentPath:getParentPath,cleanPath:cleanPath,resolvePath:resolvePath,getPath:getPath,replaceSlug:replaceSlug});function initGlobalAPI(){window.Docsify={util:util,dom:dom,get:get,slugify:slugify,version:"4.9.4"};window.DocsifyCompiler=Compiler;window.marked=marked;window.Prism=prism}function ready(callback){var state=document.readyState;if(state==="complete"||state==="interactive"){return setTimeout(callback,0)}document.addEventListener("DOMContentLoaded",callback)}function Docsify(){this._init()}var proto=Docsify.prototype;initMixin(proto);routerMixin(proto);renderMixin(proto);fetchMixin(proto);eventMixin(proto);initGlobalAPI();ready(function(_){return new Docsify()})}()); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 497c32f6..9d40f013 100755 --- a/docs/index.html +++ b/docs/index.html @@ -16,7 +16,7 @@ - -->