/*! * docsify-themeable * v0.3.0 * https://jhildenbiddle.github.io/docsify-themeable/ * (c) 2018 John Hildenbiddle * MIT license */ !function(){"use strict";function p(e){var n=1 a");e&&(e.parentNode.innerHTML=e.innerHTML)})},function(e,n){e.doneEach(function(){var e=Array.apply(null,document.querySelectorAll("body > nav.app-nav > ul > li")),n=Array.apply(null,document.querySelectorAll(".sidebar > nav > ul > li"));e.forEach(function(n){var t="focus-within";s(n,"span",0),n.addEventListener("focusin",function(e){n.contains(document.activeElement)&&n.classList.add(t)}),n.addEventListener("focusout",function(e){n.contains(document.activeElement)||n.classList.remove(t)})}),n.forEach(function(e){s(e,"span")})})},function(e,n){e.doneEach(function(){Array.apply(null,document.querySelectorAll("pre[data-lang]")).forEach(function(e){var n=e.querySelector("code"),t="language-"+e.getAttribute("data-lang");e.classList.add(t),n.classList.add(t)})})},function(e,n){e.mounted(function(){var e=document.querySelector(".content"),n=setInterval(function(){e.textContent.length&&(document.body.classList.add("ready-fix"),clearInterval(n))},250)}),e.ready(function(){document.body.classList.add("ready-fix")})},function(e,n){e.init(function(){if(!1!==((window.$docsify||{}).themeable||{}).responsiveTables){var e=window.$docsify.markdown=window.$docsify.markdown||{},n=e.renderer=e.renderer||{};e.smartypants=e.smartypants||!0,n.table=n.table||function(e,n){var t='\n
\n \n '+e+"\n "+n+"\n
\n
";try{var r=document.createElement("div"),o=document.head.appendChild(document.createElement("style")).sheet,a="_"+Math.random().toString(36).substr(2,9);r.innerHTML=t;var i=r.querySelector("table");Array.apply(null,i.getElementsByTagName("th")).map(function(e){return e.innerHTML.replace(" "," ")}).forEach(function(e,n){var t="#"+a+" td:nth-child("+(n+1)+')::before{content:"'+e+'";}';o.insertRule(t,o.cssRules.length)}),i.id=a,t=r.innerHTML}catch(e){console.log("Failed to render responsive table: "+e)}return t}}})}],window.$docsify.plugins||[],[function(e,n){e.ready(function(){var e=document.querySelector(".sidebar .search .clear-button");if(e){var n=document.createElement("button");n.className="clear-button",n.setAttribute("aria-label","Clear search"),n.innerHTML='\n \n \n \n \n \n ',e.parentNode.replaceChild(n,e)}})},function(e,n){e.ready(function(){var n=document.querySelector(".sidebar .search"),t=document.querySelector(".sidebar .search input[type=search]"),r=document.querySelector(".sidebar .search .clear-button");n&&n.addEventListener("click",function(e){(e.target===r||r.contains(e.target))&&(n.classList.remove("show"),t.focus())}),t&&t.addEventListener("input",function(e){t.value.length?n.classList.add("show"):n.classList.remove("show")})})},function(e,n){var a=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector;e.doneEach(function(){var o="medium-zoom-image";Array.apply(null,document.querySelectorAll("."+o)).forEach(function(e){var n=a.call(e,"a img"),t=a.call(e,".content img");if(n||!t){var r=e.cloneNode(!0);e.parentNode.replaceChild(r,e),r.classList.remove(o)}})})}]),window.$docsify.themeable=window.$docsify.themeable||{},window.$docsify.themeable.version="0.3.0",window.$docsify.themeable.util={cssVars:function(){x(0