(()=>{"use strict";function n(n){return function(n){if(Array.isArray(n))return e(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,t){if(n){if("string"==typeof n)return e(n,t);var o={}.toString.call(n).slice(8,-1);return"Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o?Array.from(n):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(n,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,o=Array(e);t<e;t++)o[t]=n[t];return o}document.addEventListener("DOMContentLoaded",function(){var e=function(){var e=document.querySelector(".ae-anno-announcement-wrapper");if(e){var t=e.querySelectorAll(".ae-anno-announcement"),o=document.querySelector(".ae-anno-announcement__next-button"),r=document.querySelector(".ae-anno-announcement__previous-button"),a=document.querySelector(".ae-anno-announcement__dismiss-button"),c=null!==e.getAttribute("data-announcement-autoplay"),i=parseInt(e.getAttribute("data-announcement-autoplay-delay")||5e3),u=JSON.parse(function(n){for(var e=n+"=",t=document.cookie.split(";"),o=0;o<t.length;o++){for(var r=t[o];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(e))return r.substring(e.length,r.length)}return null}("ae-anno-dismissed-announcements")||"[]"),l=1,s=null,d=function(){c&&i&&(s&&clearInterval(s),s=setInterval(function(){l++,m(l)},i))},m=function(){l>t.length?l=1:l<1&&(l=t.length),t.forEach(function(n){n.style.display="none"}),t[l-1].style.display="block",d()};m(l),o&&o.addEventListener("click",function(){l++,m(l)}),r&&r.addEventListener("click",function(){m(l--)}),a&&a.addEventListener("click",function(){var t=JSON.parse(a.getAttribute("data-announcement-ids"));u.push.apply(u,n(t)),function(n,e,t){var o="";if(t){var r=new Date;r.setTime(r.getTime()+24*t*60*60*1e3),o="; expires=".concat(r.toUTCString())}var a="https:"===window.location.protocol?"; Secure":"";document.cookie="".concat(n,"=").concat(e||"").concat(o,"; path=/; SameSite=Lax").concat(a)}("ae-anno-dismissed-announcements",JSON.stringify(u),365),e.parentNode.removeChild(e)}),d()}},t=document.querySelector('[data-bb-toggle="announcement-lazy-loading"]');if(t){var o=t.getAttribute("data-url");fetch(o,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(function(n){if(!n.ok)throw new Error("Network response was not ok");return n.json()}).then(function(n){var o=n.data,r=document.createElement("template");r.innerHTML=o.trim(),t.replaceWith(r.content),e()}).catch(function(n){console.error("Fetch error:",n)})}else e()})})();