/*! * docsify-tabs * v1.1.2 * https://jhildenbiddle.github.io/docsify-tabs/ * (c) 2018-2019 John Hildenbiddle * MIT license */ !function(){"use strict";!function(t,a){void 0===a&&(a={});var o=a.insertAt;if(t&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css","top"===o&&s.firstChild?s.insertBefore(c,s.firstChild):s.appendChild(c),c.styleSheet?c.styleSheet.cssText=t:c.appendChild(document.createTextNode(t))}}(':root{--docsifytabs-border-color:#ededed;--docsifytabs-border-px:1px;--docsifytabs-margin:1.5em 0;--docsifytabs-tab-background:#f8f8f8;--docsifytabs-tab-background--active:var(--docsifytabs-content-background);--docsifytabs-tab-color:#999;--docsifytabs-tab-color--active:inherit;--docsifytabs-tab-highlight-px:3px;--docsifytabs-tab-highlight-color:var(--theme-color,currentColor);--docsifytabs-tab-padding:0.6em 1em;--docsifytabs-content-background:inherit;--docsifytabs-content-padding:0.5rem 1.75rem}.docsify-tabs:before,.docsify-tabs__tab{z-index:1}.docsify-tabs__tab--active,.docsify-tabs__tab:focus{z-index:2}.docsify-tabs{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.docsify-tabs:before{content:"";-ms-flex-order:0;order:0;-ms-flex:1;flex:1 1}.docsify-tabs__tab{-ms-flex-order:-1;order:-1;position:relative;margin:0;font-size:inherit;appearance:none}.docsify-tabs__content{visibility:hidden;position:absolute;overflow:hidden;height:0;width:100%}.docsify-tabs__tab--active+.docsify-tabs__content{visibility:visible;position:relative;overflow:auto;height:auto}[class*=docsify-tabs--]{margin:1.5em 0;margin:var(--docsifytabs-margin)}[class*=docsify-tabs--] .docsify-tabs__tab{padding:.6em 1em;padding:var(--docsifytabs-tab-padding);background:#f8f8f8;background:var(--docsifytabs-tab-background);color:#999;color:var(--docsifytabs-tab-color)}[class*=docsify-tabs--] .docsify-tabs__tab--active{background:inherit;background:var(--docsifytabs-tab-background--active);color:inherit;color:var(--docsifytabs-tab-color--active)}[class*=docsify-tabs--] .docsify-tabs__content{padding:.5rem 1.75rem;padding:var(--docsifytabs-content-padding);background:inherit;background:var(--docsifytabs-content-background)}.docsify-tabs--classic .docsify-tabs__content,.docsify-tabs--classic .docsify-tabs__tab,.docsify-tabs--classic:before{border-width:1px;border-color:#ededed;border:var(--docsifytabs-border-px) solid var(--docsifytabs-border-color)}.docsify-tabs--classic:before{margin-right:1px;margin-right:var(--docsifytabs-border-px);border-top-width:0;border-left-width:0;border-right-width:0}.docsify-tabs--classic .docsify-tabs__tab:first-of-type{border-top-left-radius:var(--docsifytabs-border-radius-px)}.docsify-tabs--classic .docsify-tabs__tab:last-of-type{border-top-right-radius:var(--docsifytabs-border-radius-px)}.docsify-tabs--classic .docsify-tabs__tab~.docsify-tabs__tab{margin-left:-1px;margin-left:calc(0px - var(--docsifytabs-border-px))}.docsify-tabs--classic .docsify-tabs__tab--active{border-bottom-width:0;box-shadow:inset 0 3px 0 0 currentColor;box-shadow:inset 0 var(--docsifytabs-tab-highlight-px) 0 0 var(--docsifytabs-tab-highlight-color)}.docsify-tabs--classic .docsify-tabs__content{margin-top:-1px;margin-top:calc(0px - var(--docsifytabs-border-px));border-top:0;border-radius:0 ;border-radius:0 var(--docsifytabs-border-radius-px) var(--docsifytabs-border-radius-px) var(--docsifytabs-border-radius-px)}.docsify-tabs--material .docsify-tabs__tab{margin-bottom:2px;margin-bottom:calc(var(--docsifytabs-tab-highlight-px) - var(--docsifytabs-border-px));background:transparent;border:0}.docsify-tabs--material .docsify-tabs__tab--active{box-shadow:0 3px 0 0 currentColor;box-shadow:0 var(--docsifytabs-tab-highlight-px) 0 0 var(--docsifytabs-tab-highlight-color);background:transparent}.docsify-tabs--material .docsify-tabs__content{border-width:1px 0;border-width:var(--docsifytabs-border-px) 0;border-style:solid;border-color:#ededed;border-color:var(--docsifytabs-border-color)}',{insertAt:"top"});var m="tabs:replace",g={tabsContainer:"content",tabBlock:"docsify-tabs",tabButton:"docsify-tabs__tab",tabButtonActive:"docsify-tabs__tab--active",tabContent:"docsify-tabs__content"},h={codeMarkup:/(```[\s\S]*?```)/gm,commentReplaceMarkup:new RegExp("\x3c!-- ".concat(m," (.*) --\x3e")),tabBlockMarkup:/[\r\n]*(\s*)()[\r\n]+([\s|\S]*?)[\r\n\s]+()/m,tabCommentMarkup:/[\r\n]+([\s\S]*?)[\r\n]+(?=)/m},v={persist:!0,sync:!0,theme:"classic",tabComments:!0,tabHeadings:!0};window&&(window.$docsify=window.$docsify||{},window.$docsify.tabs=window.$docsify.tabs||{},Object.keys(window.$docsify.tabs).forEach(function(t){v.hasOwnProperty(t)&&(v[t]=window.$docsify.tabs[t])}),window.$docsify.tabs.version="1.1.2",(v.tabComments||v.tabHeadings)&&(window.$docsify.plugins=[].concat(function(t,a){var o=!1;t.beforeEach(function(t){return(o=h.tabBlockMarkup.test(t))&&(t=function(s){for(var t,a,o=s.match(h.codeMarkup)||[],c=o.map(function(t,a){var o="\x3c!-- ".concat(m," CODEBLOCK").concat(a," --\x3e");return s=s.replace(t,o),o}),e=v.theme?"".concat(g.tabBlock,"--").concat(v.theme):"";null!==(t=h.tabBlockMarkup.exec(s));){var r=t[0],i="",n="",d=v.tabComments&&h.tabCommentMarkup.test(r),b=v.tabHeadings&&h.tabHeadingMarkup.test(r),f=t[1],l=t[2],y=t[4];if(d||b)for(i="\x3c!-- ".concat(m,'
--\x3e'),n="\n".concat(f,"\x3c!-- ").concat(m,"
--\x3e");null!==(a=(v.tabComments?h.tabCommentMarkup.exec(r):null)||(v.tabHeadings?h.tabHeadingMarkup.exec(r):null));){var u=(a[2]||"[Tab]").trim(),p=(a[3]||"").trim();r=r.replace(a[0],["\n".concat(f,"\x3c!-- ").concat(m,' --\x3e"),"\n".concat(f,"\x3c!-- ").concat(m,'
--\x3e'),"\n\n".concat(f).concat(p),"\n\n".concat(f,"\x3c!-- ").concat(m,"
--\x3e")].join(""))}r=(r=r.replace(l,i)).replace(y,n),s=s.replace(t[0],r)}return c.forEach(function(t,a){s=s.replace(t,o[a])}),s}(t)),t}),t.afterEach(function(t,a){o&&(t=function(t){for(var a;null!==(a=h.commentReplaceMarkup.exec(t));){var o=a[0],s=a[1]||"";t=t.replace(o,s)}return t}(t)),a(t)}),t.doneEach(function(){var t,a,c;o&&(t=document.querySelector(".".concat(g.tabsContainer)),a=t?Array.apply(null,t.querySelectorAll(".".concat(g.tabBlock))):[],c=JSON.parse(sessionStorage.getItem(window.location.href))||{},a.forEach(function(t,a){var o=t.querySelector(".".concat(g.tabButton)),s=(v.persist?t.querySelector(".".concat(g.tabButton,'[data-tab="').concat(c[a],'"]')):null)||o;s&&s.classList.add(g.tabButtonActive)}))}),t.mounted(function(){var t=document.querySelector(".".concat(g.tabsContainer));t&&t.addEventListener("click",function(t){!function a(t,o){if(t.classList.contains(g.tabButton)){var s=t,c=s.getAttribute("data-tab"),e=document.querySelector(".".concat(g.tabsContainer)),r=s.parentNode,i=Array.apply(null,r.querySelectorAll(".".concat(g.tabButton))),n=r.offsetTop;if(i.forEach(function(t){return t.classList.remove(g.tabButtonActive)}),s.classList.add(g.tabButtonActive),v.persist){var d=(e?Array.apply(null,e.querySelectorAll(".".concat(g.tabBlock))):[]).indexOf(r),b=JSON.parse(sessionStorage.getItem(window.location.href))||{};b[d]=c,sessionStorage.setItem(window.location.href,JSON.stringify(b))}v.sync&&!o&&((e?Array.apply(null,e.querySelectorAll(".".concat(g.tabButton,'[data-tab="').concat(c,'"]'))):[]).forEach(function(t){a(t,!0)}),window.scrollBy(0,0-(n-r.offsetTop)))}}(t.target)})})},window.$docsify.plugins||[])))}(); //# sourceMappingURL=docsify-tabs.min.js.map