/*! guides 11-10-2022 */
"use strict";var ready=function(e){"loading"!==document.readyState?e():document.addEventListener?document.addEventListener("DOMContentLoaded",e):document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&e()})};function getOpacity(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:100,s=0,n=!!(3<arguments.length&&void 0!==arguments[3]?arguments[3]:0);return isNaN(e)||isNaN(t)||isNaN(o)?(console.info("Can not get opacity due to one variable is not a number"),+n):(s=0<o-t?(e-t)/(o-t):s)<0?0:1<s?1:s}function scrollProgressRelated(e){var t,o;"undefined"==typeof document||void 0===document.body||isNaN(document.body.clientHeight)||(o=window.innerHeight===screen.height?screen.height:window.innerHeight,t=100*window.scrollY/(document.body.clientHeight-o),(o=document.querySelector(".scroll-indicator *"))&&(o.style.width=t+"%"),(o=document.querySelectorAll(".btn-top"))&&o.forEach(function(e){e.style.opacity=getOpacity(t,50,60),50<=t?"block"!==e.style.display&&(e.style.display="block"):"none"!==e.style.display&&(e.style.display="none")}))}"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var o=0;o<this.length;o++)e.call(t,this[o],o,this)},console.info('polyfill "NodeList.forEach" added')),"HTMLCollection"in window&&!HTMLCollection.prototype.forEach&&(HTMLCollection.prototype.forEach=function(e,t){t=t||window;for(var o=0;o<this.length;o++)e.call(t,this[o],o,this)},console.info('polyfill "HTMLCollection.forEach" added')),Array.prototype.includes||(Array.prototype.includes=function(e,t){if(_instanceof(e,RegExp))throw TypeError("first argument must not be a RegExp");return-1!==this.indexOf(e,t=void 0===t?0:t)},console.info('polyfill "Array.includes" added')),Element&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,console.info('polyfill "Element.matches" added'));var passiveSupported=!1;try{var options={get passive(){return!(passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(e){passiveSupported=!1}ready(function(){window.addEventListener("resize",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("scroll",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("click",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("mousedown",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("mousemove",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("mouseup",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("touchstart",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("touchmove",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("touchend",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("touchcancel",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("devicemotion",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("deviceorientation",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("orientationchange",scrollProgressRelated,!!passiveSupported&&{passive:!0}),window.addEventListener("fullscreenchange",scrollProgressRelated,!!passiveSupported&&{passive:!0})});