"use strict";!function(t,u){!function(){if(t(u),t(document),t(".js-sectionscroll").length){var e=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=function(t){return Math.floor(t.getBoundingClientRect().top+250)},o=e?e.getAttribute("href"):this.getAttribute("href");o=o.substr(o.indexOf("#"));var r=document.querySelector(o);if(r){var i=n(r);u.scrollBy({top:i,left:0,behavior:"smooth"});var c=setInterval(function(){var t=u.innerHeight+u.pageYOffset>=document.body.offsetHeight+250;(0===n(r)||t)&&(r.tabIndex="-1",r.focus(),u.history.pushState("","",o),clearInterval(c))},100)}};document.querySelectorAll(".js-sectionscroll").forEach(function(t){return t.onclick=e})}}()}(jQuery,window);