"use strict";function section_navs(t){function n(){var t=window.location.hash;t&&$(t).length&&$('a[href="'+t+'"]').click()}function a(t){return t.hasClass("item-heading")||t.parents(".no-nav").length}function i(){var t="";return $(o).each(function(n){var i=$(this);if(!a(i)){var s=i.prop("tagName"),e=i.text(),l="n-"+s;l+=1==n?" active":"",r=n,i.attr("id","wznav_"+r),t+='
'+e+""}}),t}var s=".posts-nav-box",e=_win.bd,l="posts-nav-lists",c="."+l,o=t+" h1,"+t+" h2,"+t+" h3,"+t+" h4",r=0,h=function(){var t=i();t&&($(s).each(function(){var t=$(this),n=t.attr("data-title")||"";n=n&&'",t.append(n+'')}),v(t),setTimeout(function(){n()},20))},v=function(t){$(c).html('"),e.on("click",c+" a",function(){var t=$($(this).attr("href"));return t.parents(".panel").each(function(){var t=$(this).find(".collapse");t.length&&t.collapse("show")}),$(".read-more-open").click(),scrollTopTo(t),!1}),e.scrollspy({target:c,offset:105}),f()},f=function(){var t=".n-H1,.n-H2";$(c+" .bl").each(function(){var n=$(this);n.innerHeight()>380&&n.find(t).each(function(){var n=$(this),a=n.nextUntil(t);a.length&&(a.addClass("yc"),n.append(''))})}),e.on("click",c+" .nav-toggle-collapse",function(){$(this).toggleClass("fa-rotate-90").parent().nextUntil(t).toggleClass("yc")})};$(o).length>2&&h()}section_navs("[data-nav]");