(()=>{"use strict";const e="flexa-notice-";function t(e){e.style.display="none"}function o(e){e.classList.add("flexa-bg-loaded"),e.removeAttribute("data-flexa-lazy-bg")}function n(){(function(){const o=function(){try{const e="__flexa_notice_test__";return window.localStorage.setItem(e,"1"),window.localStorage.removeItem(e),!0}catch(e){return!1}}();document.querySelectorAll(".flexa-notice[data-flexa-notice]").forEach(n=>{const r=n.getAttribute("data-flexa-notice")||"",a="1"===n.getAttribute("data-remember");if(a&&o&&r&&"1"===window.localStorage.getItem(e+r))return void t(n);const c=n.querySelector(".flexa-notice__dismiss");c&&c.addEventListener("click",()=>{if(t(n),a&&o&&r)try{window.localStorage.setItem(e+r,"1")}catch(e){}})})})(),function(){const e=document.querySelectorAll("[data-flexa-lazy-bg]");if(!e.length)return;if(void 0===window.IntersectionObserver)return void e.forEach(o);const t=new window.IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(o(e.target),t.unobserve(e.target))})},{rootMargin:"200px 0px"});e.forEach(e=>t.observe(e))}()}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()})();