"use strict";function b7pmReady(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}b7pmReady((function(){var e=document.getElementById("b7pm__container"),t=document.getElementById("b7pm__message--button"),n=document.body,i=document.getElementsByTagName("header")[0],o=e?document.querySelector("#b7pm__timestamp").dataset.timestamp:Date.now();function a(){if(0==getComputedStyle(document.body).getPropertyValue("--b7pm-viewcheck"))return!1;for(var e=document.cookie?document.cookie.split(";"):[],t=0,n=e.length;t!=n;++t){var i=e[t],a=i.indexOf("=");if(a>=0){var s=i.substring(0,a),m=i.substring(a+1);if("b7publicmessageClosed"==s&&m==o)return!0}}return!1}function s(){document.documentElement.style.setProperty("--b7pm-height",e.offsetHeight+"px")}e&&!a()?(s(),n.classList.add("b7pm__animation--body-in"),i.classList.add("b7pm__animation__uhb-header-in"),e.classList.add("b7pm__animation--message-in"),t.onclick=function(){n.classList.remove("b7pm__animation--body-in"),i.classList.remove("b7pm__animation__uhb-header-in"),e.classList.remove("b7pm__animation--message-in"),e.offsetHeight,n.classList.add("b7pm__animation--body-out"),i.classList.add("b7pm__animation__uhb-header-out"),e.classList.add("b7pm__animation--message-out"),setTimeout((function(){return i.classList.remove("b7pm__animation__uhb-header-out")}),1e3),document.cookie="b7publicmessageClosed="+o+"; samesite=strict; secure"},window.addEventListener("resize",(function(){s()})),window.addEventListener("scroll",(function(){document.documentElement.style.setProperty("--b7pm-animation-duration-in","0s"),document.documentElement.style.setProperty("--b7pm-animation-duration-in-delay","0s")}))):e&&a()&&(s(),e.style.display="none")}))