$(()=>{$(".tabButton").each(function(){var e=document.getElementsByTagName("head")[0],t=document.createElement("link"),a=$(this).data("href");t.rel="prefetch",t.as="document",void 0!==(t.href=a)&&e.appendChild(t)})}),$(".tabButton").on("click",function(e){let r=$($(this).attr("data-bs-target"));$(r).is(":empty")&&$.get({url:$(this).data("href"),dataType:"html",success(e){var e=(new DOMParser).parseFromString(e,"text/html"),t=e.getElementsByClassName("module-style");let a=e.getElementsByClassName("module-script"),l=document.getElementsByTagName("head")[0],n=document.getElementsByTagName("body")[0];Array.prototype.filter.call(t,e=>{var t;document.getElementById(e.id)||((t=document.createElement("link")).id=e.id,t.rel="stylesheet",t.type="text/css",t.href=e.href,t.media="all",l.appendChild(t))}),$(r).html($(e.getElementById("tab-content")).html()),setTimeout(()=>{Array.prototype.filter.call(a,e=>{var t=document.createElement("script");t.id=e.id,t.src=e.src,n.appendChild(t)}),$(r).parent().removeClass("loading"),$(r).parent().find("#tab-loading").remove()},200)}})});let tabId=window.location.hash;tabId&&"0"!==tabId.split("-").pop()&&$(tabId).trigger("click");
//# sourceMappingURL=../maps/contents/tabs.min.js.map
