!function(){"use strict";!function(t){var e=function(e){return this.each((function(){var n,a,i=t(this),o=i.data(),c=[i],s=this.tagName,l=0;n=t.extend({content:"body",headings:"h1,h2,h3"},{content:o.toc||void 0,headings:o.tocHeadings||void 0},e),a=n.headings.split(","),t(n.content).find(n.headings).attr("id",(function(e,n){return n||function(t){0===(t=t.trim()).length&&(t="?");for(var e=t.replace(/[^a-zA-Z]+/g,"_"),n="",a=1;null!==document.getElementById(e+n);)n="_"+a++;return e+n}(t(this).text())})).each((function(){var e=t(this),i=t.map(a,(function(t,n){return e.is(t)?n:void 0}))[0];if(i>l){var o=c[0].children("li:last")[0];o&&c.unshift(t("<"+s+"/>").appendTo(o))}else c.splice(0,Math.min(l-i,Math.max(c.length-1,0)));var h=e.closest("section").data("order"),d=n.skip;-1===t.inArray(h,d)?(t("<li/>").appendTo(c[0]).append(t("<a/>").text(e.text()).attr("href","#"+e.attr("id"))),l=i):l=i}))}))},n=t.fn.toc;t.fn.toc=e,t.fn.toc.noConflict=function(){return t.fn.toc=n,this},t((function(){e.call(t("[data-toc]"))}))}(jQuery);!function(){if($("div.js-toc_table_default")[0])$(".js-toc_table_default ul").toc({content:"main",headings:"h2,h3,h4,h5,h6"}),$(".js-toc_table").hide();else{var t=$(".js-toc_table"),e=t.data("build"),n=t.data("skip"),a=e||"h2,h3,h4,h5,h6";$(".js-toc_table_list_heading ul").empty().toc({content:"main",headings:a,skip:n})}$(".js-toc_table_list_heading ul li a, .js-toc_table_default ul li a").on("click",(function(t){try{var e=$(this).attr("href");if(e&&$(e).offset()&&$(e).offset().top){t.preventDefault();var n=$(e).offset().top-80;$("html, body").animate({scrollTop:n},1e3)}}catch(t){console.warn(t)}})),$(".js-toc_table_title").on("click",(function(t){t.stopImmediatePropagation(),$(this).toggleClass("active"),$(this).next().slideToggle(500)})),setTimeout((function(){$(".js-toc_table").each((function(){var t=$(this),e=t.children(".js-toc_table_title");3!==t.data("mode")||e.hasClass("active")||(e.addClass("active"),e.next().slideUp(500))}))}),2e3)}()}();