!function(e){"use strict";let t,a;e(window).scroll(function(){e(window).scrollTop()+50>=window.innerHeight?e(".sticky").addClass("nav-sticky"):e(".sticky").removeClass("nav-sticky")}),e(".navbar-nav a").on("click",function(t){const a=e(this);e("html, body").stop().animate({scrollTop:e(a.attr("href")).offset().top-0},1500,"easeInOutExpo"),e(" .navbar-nav").find("li.active").removeClass("active"),e(this).parent("li").addClass("active"),t.preventDefault()}),e("#navbarCollapse").scrollspy({offset:70}),"serviceWorker"in navigator&&navigator.serviceWorker.register("/service-worker.js").then(e=>{e.addEventListener("updatefound",()=>{t=e.installing})}),navigator.serviceWorker.addEventListener("controllerchange",function(){a||(window.location.reload(),a=!0)}),e(function(){e('[data-toggle="tooltip"]').tooltip({trigger:"hover"})}),particlesJS.load("particles-js","./assets/particles.json",function(){}),particlesJS.load("particles-js2","./assets/particles.json",function(){}),VanillaTilt.init(document.querySelectorAll(".box"),{max:25,speed:400})}(jQuery);