text: !function(e,t){"use strict";var a=e.Micro||{};a._tabsElements=[],a.tabs=function(e){var l,s,r,n;if(e){l="string"==typeof e?t.querySelectorAll(e)[0]:e;var i=l.children.length;for(s=0;i>s;s++)l.children[s].dataset.hasOwnProperty("micro")&&"tabs"===l.children[s].dataset.micro&&a._tabsElements.push(l.children[s]);if(!(a._tabsElements.length<=0)){var d=a._tabsElements.length;for(s=0;d>s;s++){var c=a._tabsElements[s],o=[],h=c.children.length;for(r=0;h>r;r++)c.children[r].dataset.hasOwnProperty("title")&&(o.push({title:c.children[r].dataset.title,elem:c.children[r]}),c.children[r].style.display="none",0===r&&(c.children[r].style.display="block",a.removeClass("active",c.children[s])));var v=o.length,m=t.createElement("div");for(a.addClass("tabs-headings",m),n=0;v>n;n++){var p=t.createElement("div");a.addClass("tab-heading",p),p.dataset.target=o[n].title,p.innerHTML=o[n].title,p.addEventListener("click",a._processTabClick,!1),0===n&&a.addClass("active",p),m.appendChild(p)}c.insertBefore(m,c.firstChild)}}}},a._processTabClick=function(e){var t,l=e.target,s=l.parentNode.parentNode,r=l.dataset.target,n=l.parentNode,i=s.children.length;for(t=1;i>t;t++)s.children[t].dataset.title===r&&(r=s.children[t]);for(t=1;i>t;t++)s.children[t].style.display="none",a.removeClass("active",s.children[t]);var d=n.children.length;for(t=0;d>t;t++)a.removeClass("active",n.children[t]);a.addClass("active",l),r.style.display="block",a.addClass("active",r)},a.removeClass=function(e,t){t&&e&&(t.className=t.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),""))},a.addClass=function(e,t){t&&e&&(t.className+=" "+e)},e.Micro=a}(window,document);