mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
2 lines
64 KiB
JavaScript
2 lines
64 KiB
JavaScript
!function(){function a(a){var b=Object.create(null);return function(c){var d=e(c)?c:JSON.stringify(c),f=b[d];return f||(b[d]=a(c))}}function e(a){return"string"==typeof a||"number"==typeof a}function f(){}function g(a){return"function"==typeof a}function h(){var g,h,a=d({el:"#app",repo:"",maxLevel:6,subMaxLevel:0,loadSidebar:null,loadNavbar:null,homepage:"README.md",coverpage:"",basePath:"",auto2top:!1,name:"",themeColor:"",nameLink:window.location.pathname,autoHeader:!1,executeScript:null,noEmoji:!1,ga:"",ext:".md",mergeNavbar:!1,formatUpdated:"",externalLinkTarget:"_blank",routerMode:"hash",noCompileLinks:[],relativePath:!1},window.$docsify),f=document.currentScript||[].slice.call(document.getElementsByTagName("script")).filter(function(a){return/docsify\./.test(a.src)})[0];if(f){for(g in a)c.call(a,g)&&(h=f.getAttribute("data-"+b(g)),e(h)&&(a[g]=""===h?!0:h));a.loadSidebar===!0&&(a.loadSidebar="_sidebar"+a.ext),a.loadNavbar===!0&&(a.loadNavbar="_navbar"+a.ext),a.coverpage===!0&&(a.coverpage="_coverpage"+a.ext),a.repo===!0&&(a.repo=""),a.name===!0&&(a.name="")}return window.$docsify=a,a}function i(a){var b=["init","mounted","beforeEach","afterEach","doneEach","ready"];a._hooks={},a._lifecycle={},b.forEach(function(b){var c=a._hooks[b]=[];a._lifecycle[b]=function(a){return c.push(a)}})}function j(a,b,c,d){var e,g;void 0===d&&(d=f),e=a._hooks[b],g=function(a){var f,b=e[a];a>=e.length?d(c):"function"==typeof b?2===b.length?b(c,function(b){c=b,g(a+1)}):(f=b(c),c=void 0===f?c:f,g(a+1)):g(a+1)},g(0)}function o(a,b){if(void 0===b&&(b=!1),"string"==typeof a){if("undefined"!=typeof window.Vue)return s(a);a=b?s(a):n[a]||(n[a]=s(a))}return a}function s(a,b){return null!=a?b?a.querySelector(b):p.querySelector(a):void 0}function t(a,b){return[].slice.call(b?a.querySelectorAll(b):p.querySelectorAll(a))}function u(a,b){return a=p.createElement(a),b&&(a.innerHTML=b),a}function v(a,b){return a.appendChild(b)}function w(a,b){return null!=a?a.insertBefore(b,a.children[0]):void 0}function x(a,b,c){null!=a&&(g(b)?window.addEventListener(a,b):a.addEventListener(b,c))}function y(a,b,c){g(b)?window.removeEventListener(a,b):a.removeEventListener(b,c)}function z(a,b,c){a&&a.classList[c?b:"toggle"](c||b)}function A(a){v(r,u("style",a))}function C(a){return a?(/\/\//.test(a)||(a="https://github.com/"+a),a=a.replace(/^git\+/,""),'<a href="'+a+'" class="github-corner" aria-label="View source on Github">'+'<svg viewBox="0 0 250 250" aria-hidden="true">'+'<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>'+'<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>'+'<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>'+"</svg>"+"</a>"):""}function D(a){return'<button class="sidebar-toggle"><div class="sidebar-toggle-button"><span></span><span></span><span></span></div></button><aside class="sidebar">'+(a.name?'<h1 class="app-name"><a class="app-name-link" data-nosearch>'+(a.logo?"<img alt="+a.name+" src="+a.logo+">":a.name)+"</a></h1>":"")+'<div class="sidebar-nav"><!--sidebar--></div>'+"</aside>",'<main><section class="content"><article class="markdown-section" id="main"><!--main--></article></section></main>'}function E(){var a=", 100%, 85%",b="linear-gradient(to left bottom, hsl("+(Math.floor(255*Math.random())+a)+") 0%,"+"hsl("+(Math.floor(255*Math.random())+a)+") 100%)";return'<section
|
||||
|
|
return d.output(a)},f.prototype.output=function(a){for(var d,e,g,h,i,k,b=this,c="";a;)if(i=b.rules.escape.exec(a))a=a.substring(i[0].length),c+=i[1];else if(i=b.rules.autolink.exec(a))a=a.substring(i[0].length),"@"===i[2]?(e=j(b.mangle(i[1])),g="mailto:"+e):(e=j(i[1]),g=e),c+=b.renderer.link(g,null,e);else if(b.inLink||!(i=b.rules.url.exec(a))){if(i=b.rules.tag.exec(a))!b.inLink&&/^<a /i.test(i[0])?b.inLink=!0:b.inLink&&/^<\/a>/i.test(i[0])&&(b.inLink=!1),!b.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?b.inRawBlock=!0:b.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(b.inRawBlock=!1),a=a.substring(i[0].length),c+=b.options.sanitize?b.options.sanitizer?b.options.sanitizer(i[0]):j(i[0]):i[0];else if(i=b.rules.link.exec(a))a=a.substring(i[0].length),b.inLink=!0,g=i[2],b.options.pedantic?(d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(g),d?(g=d[1],h=d[3]):h=""):h=i[3]?i[3].slice(1,-1):"",g=g.trim().replace(/^<([\s\S]*)>$/,"$1"),c+=b.outputLink(i,{href:f.escapes(g),title:f.escapes(h)}),b.inLink=!1;else if((i=b.rules.reflink.exec(a))||(i=b.rules.nolink.exec(a))){if(a=a.substring(i[0].length),d=(i[2]||i[1]).replace(/\s+/g," "),d=b.links[d.toLowerCase()],!d||!d.href){c+=i[0].charAt(0),a=i[0].substring(1)+a;continue}b.inLink=!0,c+=b.outputLink(i,d),b.inLink=!1}else if(i=b.rules.strong.exec(a))a=a.substring(i[0].length),c+=b.renderer.strong(b.output(i[4]||i[3]||i[2]||i[1]));else if(i=b.rules.em.exec(a))a=a.substring(i[0].length),c+=b.renderer.em(b.output(i[6]||i[5]||i[4]||i[3]||i[2]||i[1]));else if(i=b.rules.code.exec(a))a=a.substring(i[0].length),c+=b.renderer.codespan(j(i[2].trim(),!0));else if(i=b.rules.br.exec(a))a=a.substring(i[0].length),c+=b.renderer.br();else if(i=b.rules.del.exec(a))a=a.substring(i[0].length),c+=b.renderer.del(b.output(i[1]));else if(i=b.rules.text.exec(a))a=a.substring(i[0].length),c+=b.inRawBlock?b.renderer.text(i[0]):b.renderer.text(j(b.smartypants(i[0])));else if(a)throw new Error("Infinite loop on byte: "+a.charCodeAt(0))}else{if("@"===i[2])e=j(i[0]),g="mailto:"+e;else{do k=i[0],i[0]=b.rules._backpedal.exec(i[0])[0];while(k!==i[0]);e=j(i[0]),g="www."===i[1]?"http://"+e:e}a=a.substring(i[0].length),c+=b.renderer.link(g,null,e)}return c},f.escapes=function(a){return a?a.replace(f.rules._escapes,"$1"):a},f.prototype.outputLink=function(a,b){var c=b.href,d=b.title?j(b.title):null;return"!"!==a[0].charAt(0)?this.renderer.link(c,d,this.output(a[1])):this.renderer.image(c,d,j(a[1]))},f.prototype.smartypants=function(a){return this.options.smartypants?a.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):a},f.prototype.mangle=function(a){if(!this.options.mangle)return a;for(var e,b="",c=a.length,d=0;c>d;d++)e=a.charCodeAt(d),Math.random()>.5&&(e="x"+e.toString(16)),b+="&#"+e+";";return b},g.prototype.code=function(a,b,c){if(this.options.highlight){var d=this.options.highlight(a,b);null!=d&&d!==a&&(c=!0,a=d)}return b?'<pre><code class="'+this.options.langPrefix+j(b,!0)+'">'+(c?a:j(a,!0))+"</code></pre>\n":"<pre><code>"+(c?a:j(a,!0))+"</code></pre>"},g.prototype.blockquote=function(a){return"<blockquote>\n"+a+"</blockquote>\n"},g.prototype.html=function(a){return a},g.prototype.heading=function(a,b,c){return this.options.headerIds?"<h"+b+' id="'+this.options.headerPrefix+c.toLowerCase().replace(/[^\w]+/g,"-")+'">'+a+"</h"+b+">\n":"<h"+b+">"+a+"</h"+b+">\n"},g.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},g.prototype.list=function(a,b,c){var d=b?"ol":"ul",e=b&&1!==c?' start="'+c+'"':"";return"<"+d+e+">\n"+a+"</"+d+">\n"},g.prototype.listitem=function(a){return"<li>"+a+"</li>\n"},g.prototype.checkbox=function(a){return"<input "+(a?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},g.prototype.paragraph=function(a){return"<p>"+a+"</p>\n"},g.prototype.table=function(a,b){return b&&(b="<tbody>"+b+"</tbody>"),"<table>\n<thead>\n"+a+"</thead>\n"+b+"</table>\n"},g.prototype.tablerow=function(a){return"
|