function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e);var n=t.element||!1,r=t.callback||!1,i=!t.hasOwnProperty("once")||t.once,o=!!t.hasOwnProperty("trigger")&&t.trigger;if("IntersectionObserver"in window){var a=!0,s=new IntersectionObserver((function(e,t){e.forEach((function(e){if("leaveView"===o?!e.isIntersecting:e.isIntersecting){if(a&&"leaveView"===o)return void(a=!1);n&&r&&r(e.target),i&&t.unobserve(e.target)}}))}),{threshold:t.threshold||0,root:t.root||null,rootMargin:(null==t?void 0:t.rootMargin)||"0px"});n instanceof Element&&s.observe(n)}else{var c=!1,l=function(){!1===c&&(c=!0,n.getBoundingClientRect().top<=window.innerHeight&&n.getBoundingClientRect().bottom>=0&&"none"!==window.getComputedStyle(n).display&&n&&r&&r(n),c=!1)};l(),document.addEventListener("scroll",l),window.addEventListener("resize",l),window.addEventListener("orientationchange",l)}}));function BricksIsInViewport(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function bricksQuerySelectorAll(e,t){if(Array.isArray(t)){var n=[];return t.forEach((function(t){n=n.concat(Array.prototype.slice.apply(e.querySelectorAll(t)))})),n}return Array.prototype.slice.apply(e.querySelectorAll(t))}var bricksUtils={subscribeEvents:function(e,t,n){t.forEach((function(t){e.addEventListener(t,(function(e){n(e)}))}))},subscribejQueryEvents:function(e,t,n){"undefined"!=typeof jQuery&&t.forEach((function(t){jQuery(e).on(t,(function(e){n(e)}))}))},maybeRunOnceInteractions:function(e,t){var n=window.bricksData.interactions.findIndex((function(e){return e===t}));-1!==n&&(null!=t&&t.runOnce&&window.bricksData.interactions.splice(n,1),bricksInteractionCallbackExecution(e,t))},hideOrShowLoadMoreButtons:function(e){var t=window.bricksData.queryLoopInstances[e]||!1;if(t||"all"===e){if("all"===e)for(var n in window.bricksData.queryLoopInstances)window.bricksData.queryLoopInstances.hasOwnProperty(n)&&bricksUtils.hideOrShowLoadMoreButtons(n);var r=window.bricksData.interactions.filter((function(t){return"loadMore"===t.action&&t.loadMoreQuery===e}));if(r.length){var i=t.pages)t({page:a,maxPages:s});else{var c=window.bricksData.restApiUrl.concat("load_query_page"),l={postId:window.bricksData.postId,queryElementId:i,queryVars:o.queryVars,page:a,nonce:window.bricksData.nonce};if("1"===window.bricksData.useQueryFilter){var d=[];if(window.bricksData.filterInstances&&Object.keys(window.bricksData.filterInstances).length>0)d=Object.values(window.bricksData.filterInstances).filter((function(e){return e.targetQueryId===i})).map((function(e){return e.filterId}));if(d.length){var u=bricksGetFiltersArgs(i);u.paged=a,l={postId:window.bricksData.postId,queryElementId:i,queryArgs:u||!1,filterIds:d,nonce:window.bricksData.nonce,baseUrl:window.bricksData.baseUrl},c=window.bricksData.restApiUrl.concat("query_result")}}window.bricksData.queryLoopInstances[i].isLoading=1,document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:i}}));var p=new XMLHttpRequest;p.open("POST",c,!0),p.setRequestHeader("Content-Type","application/json; charset=UTF-8"),p.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),p.onreadystatechange=function(){if(p.readyState===XMLHttpRequest.DONE){var n=p.status;if(0===n||n>=200&&n<400){var r=JSON.parse(p.response),c=(null==r?void 0:r.html)||!1,l=(null==r?void 0:r.styles)||!1,d=(null==r?void 0:r.popups)||!1;c&&e.insertAdjacentHTML("afterend",c),d&&document.body.insertAdjacentHTML("beforeend",d),l&&document.body.insertAdjacentHTML("beforeend",l),window.bricksData.queryLoopInstances[i].page=a}window.bricksData.queryLoopInstances[i].isLoading=0,t({page:a,maxPages:s}),bricksUtils.hideOrShowLoadMoreButtons(i),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:i}})),window.bricksData.isotopeInstances[i]&&bricksUtils.updateIsotopeInstance(i),setTimeout((function(){var e,t=Array.from(null===(e=o.resultsContainer)||void 0===e?void 0:e.querySelectorAll(".brxe-".concat(i,":not(.brx-popup)"))).pop();document.dispatchEvent(new CustomEvent("bricks/ajax/load_page/completed",{detail:{queryTrailElement:t,queryId:i}})),o.infiniteScroll&&(t.dataset.queryElementId=i,BricksIsInViewport(t)?bricksQueryLoadPage(t):new BricksIntersect({element:t,callback:function(e){return bricksQueryLoadPage(e)},once:!0,rootMargin:o.observerMargin}))}),250)}},p.send(JSON.stringify(l))}}}))}var bricksQueryPaginationFn=new BricksFunction({parentNode:document,selector:".brx-ajax-pagination a",subscribeEvents:["bricks/ajax/pagination/completed","bricks/ajax/query_result/displayed"],eachElement:function(e){var t;null!==(t=e.dataset)&&void 0!==t&&t.ajaxPagination||(e.dataset.ajaxPagination=1,e.addEventListener("click",(function(e){var t,n=e.currentTarget,r=n.getAttribute("href"),i=n.closest(".brx-ajax-pagination"),o=null==i||null===(t=i.dataset)||void 0===t?void 0:t.queryElementId,a=document.querySelector(".brxe-".concat(o));if(a){e.preventDefault(),document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:o}}));var s=new XMLHttpRequest;s.open("GET",r,!0),s.responseType="document",s.onload=function(){if(this.readyState===XMLHttpRequest.DONE){var e=this.status;if(0===e||e>=200&&e<400){var t=this.responseXML,n=a.parentNode,s=document.createElement("div");s.style.display="none",a.insertAdjacentElement("beforebegin",s),n.querySelectorAll(".brxe-".concat(o,":not(.brx-popup)")).forEach((function(e){return e.remove()})),t.querySelectorAll(".brxe-".concat(o,":not(.brx-popup)")).forEach((function(e){return s.insertAdjacentElement("beforebegin",e)})),s.remove(),document.querySelectorAll('.brx-popup[data-popup-loop="'.concat(o,'"]')).forEach((function(e){return e.remove()})),t.querySelectorAll('.brx-popup[data-popup-loop="'.concat(o,'"]')).forEach((function(e){return document.body.insertAdjacentElement("beforeend",e)}));var c=t.querySelector("#bricks-frontend-inline-inline-css"),l=document.querySelector("#bricks-frontend-inline-inline-css");l&&c&&l.replaceWith(c);var d=t.querySelector("#bricks-dynamic-data-inline-css"),u=document.querySelector("#bricks-dynamic-data-inline-css");u&&d&&u.replaceWith(d);var p=t.querySelector('.brx-ajax-pagination[data-query-element-id="'.concat(o,'"]'));i.replaceWith(p),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:o}})),document.dispatchEvent(new CustomEvent("bricks/ajax/pagination/completed",{detail:{queryId:o}})),window.history.pushState({},"",r)}}},s.send()}})))}});function bricksQueryPagination(){bricksQueryPaginationFn.run()}function bricksStickyHeader(){var e=document.querySelector("#brx-header.sticky");if(e){var t,n,r=document.querySelector(".bricks-site-logo"),i=-1,o=e.hasAttribute("data-slide-up-after")?e.getAttribute("data-slide-up-after"):0;r&&(t=r.getAttribute("data-bricks-logo"),n=r.getAttribute("data-bricks-logo-inverse"));var a=function(){var a=window.pageYOffset;a>0?(e.classList.add("scrolling"),r&&n&&r.src!==n&&(r.src=n,r.srcset="")):(e.classList.remove("scrolling"),r&&t&&r.src!==t&&(r.src=t)),o&&(a>i&&i>=0?a>o&&(e.classList.add("slide-up"),e.classList.add("sliding")):(e.classList.remove("slide-up"),setTimeout((function(){e.classList.remove("sliding")}),400))),i=a};window.addEventListener("scroll",a),a()}}function bricksOnePageNavigation(){var e=document.getElementById("bricks-one-page-navigation");if(bricksIsFrontend&&e){var t=bricksQuerySelectorAll(document,"#brx-content > *"),n=[],r="",i="",o="";t&&(t.forEach((function(t){(r=t.getAttribute("id"))&&(n.push(r),o=document.createElement("li"),(i=document.createElement("a")).classList.add("bricks-one-page-".concat(r)),i.setAttribute("href","#".concat(r)),o.appendChild(i),e.appendChild(o))})),window.addEventListener("load",a),window.addEventListener("resize",a),document.addEventListener("scroll",a))}function a(){var e=window.scrollY;n.forEach((function(t){var n=document.getElementById(t),r=n.offsetTop,i=r+n.offsetHeight;e>=r-1&&e=l&&(d?e.seekTo(c||0,!0):(e.pauseVideo(),clearInterval(n)))}),1e3)},onStateChange:function(t){d&&t.data==YT.PlayerState.ENDED&&e.seekTo(c||0,!0)}}})}}),100)}if(v){if(!document.querySelector('script[src="https://player.vimeo.com/api/player.js"]')){var h=document.createElement("script");h.src="https://player.vimeo.com/api/player.js";var w=document.getElementsByTagName("script")[0];w.parentNode.insertBefore(h,w)}bricksIsFrontend&&e.querySelector("video")&&e.removeChild(e.querySelector("video")),u=document.createElement("div"),e.appendChild(u);var x=n.split("/").pop(),L=setInterval((function(){if(window.Vimeo&&Vimeo.Player){clearInterval(L);var e=new Vimeo.Player(u,{id:x,width:640,autoplay:!0,controls:!1,background:!0,loop:d&&!c});c&&e.on("loaded",(function(){e.setCurrentTime(c)})),l&&e.on("timeupdate",(function(t){t.seconds>=l&&(d?(e.setCurrentTime(c||0),e.play()):e.pause())})),e.on("ended",(function(){d&&e.setCurrentTime(c||0).then((function(t){e.play()}))}))}}),100)}}else if(u=e.querySelector("video")){var S,E,I=null===(S=u.closest("[data-script-id]"))||void 0===S?void 0:S.getAttribute("data-script-id");d?u.hasAttribute("loop")||u.setAttribute("loop",""):u.removeAttribute("loop"),bricksIsFrontend||(u.currentTime=c||0),null!==(E=window.bricksData.videoInstances)&&void 0!==E&&E[I]||(window.bricksData.videoInstances[I]={}),window.bricksData.videoInstances[I].startTime=c,window.bricksData.videoInstances[I].endTime=l,window.bricksData.videoInstances[I].videoLoop=d;u.classList.contains("listening")||!c&&!l||(u.classList.add("listening"),u.addEventListener("loadedmetadata",(function(){window.bricksData.videoInstances[I].startTime&&(this.currentTime=window.bricksData.videoInstances[I].startTime,this.play())})),u.addEventListener("timeupdate",(function(){this.currentTime>=(window.bricksData.videoInstances[I].endTime||this.duration)-.25&&(window.bricksData.videoInstances[I].videoLoop?(this.currentTime=window.bricksData.videoInstances[I].startTime,u.paused&&this.play()):this.pause())})),u.addEventListener("ended",(function(){window.bricksData.videoInstances[I].videoLoop&&window.bricksData.videoInstances[I].startTime&&(this.currentTime=window.bricksData.videoInstances[I].startTime,this.play())})))}i&&(u.style.transform="translate(-50%, -50%) scale(".concat(i,")")),bricksIsFrontend?e.classList.contains("bricks-lazy-video")&&new BricksIntersect({element:e,callback:function(e){e.classList.remove("bricks-lazy-video"),p?e.appendChild(u):u.src=n}}):p?e.appendChild(u):u.src=n,e.classList.add("loaded"),new ResizeObserver((function(t){var n,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=void 0;if(i.contentBoxSize)o=(Array.isArray(i.contentBoxSize)?i.contentBoxSize[0]:i.contentBoxSize).inlineSize;else o=i.contentRect.width;var c=e.clientHeight,l=o*s/a;l',showHideAnimationType:i},a=new PhotoSwipeLightbox(o);if(a.on("itemData",(function(t){var n=document.querySelector(".pswp__container"),r=e.getAttribute("data-pswp-video-url"),i=e.getAttribute("data-pswp-width"),o=e.getAttribute("data-pswp-height");if(i&&(i.includes("%")||i.includes("vw"))&&(i=window.innerWidth*(parseInt(i)/100)),o&&(o.includes("%")||o.includes("vh"))&&(o=window.innerHeight*(parseInt(o)/100)),i||(i=1280),o&&720!=o||(o=Math.round(i/16*9)),!n&&r){var a=bricksGetLightboxVideoNode(r);t.itemData={html:a.outerHTML,width:i,height:o}}})),a.on("contentAppend",(function(e){var t=e.content;if(t.element){var n=t.element.querySelector("video");n&&n.play()}})),t.classList.contains("brxe-carousel")){var s,c=t.getAttribute("data-script-id");null!==(s=bricksData.swiperInstances)&&void 0!==s&&null!==(s=s[c])&&void 0!==s&&s.loopedSlides&&(a.addFilter("numItems",(function(e,t){if(t.gallery){var n=0;t.gallery.classList.contains("brxe-carousel")&&(n=t.gallery.querySelectorAll(".swiper-slide-duplicate").length),e=e>n?e-n:e}return e})),a.addFilter("clickedIndex",(function(e,t){var n=t.target.closest(".swiper-slide");if(n){var r=bricksData.swiperInstances[c].slides.map((function(e,t){return{slide:e,index:t}})).filter(Boolean);if(r.length){var i=parseInt(n.dataset.swiperSlideIndex),o=r.filter((function(e){return e.slide.dataset.swiperSlideIndex==i}));o.length&&(e=o[0].index)}}return e})))}a.init()}});function bricksPhotoswipe(){bricksPhotoswipeFn.run()}function bricksGetLightboxVideoNode(e){if(e){hasContent=!0;var t=!1;if(-1!==e.indexOf("youtube.com")&&(t=!0,e=e.replace("watch?v=","embed/"),e+="?autoplay=1",e+="&rel=0"),-1!==e.indexOf("vimeo.com")&&(t=!0,-1===e.indexOf("player.vimeo.com/video")&&(e=e.replace("vimeo.com","player.vimeo.com/video")),e+="?autoplay=1"),t){var n=document.createElement("iframe");return n.setAttribute("src",e),n.setAttribute("allow","autoplay"),n.setAttribute("allowfullscreen",1),n}var r=document.createElement("video");return r.setAttribute("src",e),r.setAttribute("controls",1),r.setAttribute("playsinline",1),r}}var bricksAccordionFn=new BricksFunction({parentNode:document,selector:".brxe-accordion, .brxe-accordion-nested",forceReinit:!0,eachElement:function(e){var t,n,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;e.style.transitionProperty="height, margin, padding",e.style.transitionDuration="".concat(t,"ms"),e.style.height="".concat(e.offsetHeight,"px"),e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0;var n=e.parentNode;window.setTimeout((function(){e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),n.classList.remove("brx-open")}),t)},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return"none"===window.getComputedStyle(e).display?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;e.style.removeProperty("display");var n=window.getComputedStyle(e).display;"none"===n&&(n="block"),e.style.display=n;var r=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.transitionProperty="height, margin, padding",e.style.transitionDuration="".concat(t,"ms"),e.style.height="".concat(r,"px"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom");var i=e.parentNode;window.setTimeout((function(){e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),i.classList.add("brx-open")}),t)}(e,t):r(e,t)},o=Array.from(e.children),a=e.hasAttribute("data-transition")?isNaN(e.dataset.transition)?0:e.dataset.transition:200,s=null===(t=e.dataset.scriptArgs)||void 0===t?void 0:t.includes("expandFirstItem"),c=null===(n=e.dataset.scriptArgs)||void 0===n?void 0:n.includes("independentToggle"),l=window.location.hash||"";(o=o.filter((function(e){return e.classList.contains("brxe-section")||e.classList.contains("brxe-container")||e.classList.contains("brxe-block")||e.classList.contains("brxe-div")||e.classList.contains("accordion-item")}))).forEach((function(t,n){0===n&&s&&t.classList.add("brx-open");var o=null!=t&&t.id&&!t.id.startsWith("brxe-")?"#".concat(t.id):"";o&&o===l&&t.classList.add("brx-open"),t.classList.contains("listening")||(t.classList.add("listening"),t.addEventListener("click",(function(t){var n=t.target.closest(".accordion-title-wrapper");if(n){var s=n.parentNode;if(s){var l=s.querySelector(".accordion-content-wrapper");if(l){if(t.stopPropagation(),!c){var d=e.querySelectorAll(".brx-open");d.length&&d.forEach((function(e){var t=e.querySelector(".accordion-content-wrapper");t&&t!==l&&r(t,a)}))}var u=!s.classList.contains("brx-open");o&&u?history.replaceState(null,null,o):history.replaceState(null,null," "),i(l,a)}}}})))}))}});function bricksAccordion(){bricksAccordionFn.run()}var bricksAnimatedTypingFn=new BricksFunction({parentNode:document,selector:".brxe-animated-typing",windowVariableCheck:["Typed"],eachElement:function(e){var t,n=e.dataset.scriptId;try{t=JSON.parse(e.dataset.scriptArgs)}catch(e){return!1}var r=e.querySelector(".typed");r&&(window.bricksData.animatedTypingInstances[n]&&!e.closest(".brxe-slider-nested.splide")&&window.bricksData.animatedTypingInstances[n].destroy(),t.hasOwnProperty("strings")&&t.strings&&(Array.isArray(t.strings)&&!t.strings.toString()||(window.bricksData.animatedTypingInstances[n]=new Typed(r,t))))}});function bricksAnimatedTyping(){bricksAnimatedTypingFn.run()}var bricksAudioFn=new BricksFunction({parentNode:document,selector:".brxe-audio",windowVariableCheck:["MediaElementPlayer"],eachElement:function(e){var t=e.querySelector("audio");if(t)new MediaElementPlayer(t)}});function bricksAudio(){bricksAudioFn.run()}var bricksPostReadingTimeFn=new BricksFunction({parentNode:document,selector:".brxe-post-reading-time",eachElement:function(e){var t=e.dataset.contentSelector||".brxe-post-content",n=document.querySelector(t);if(n||(n=document.querySelector("#brx-content")),n){var r=e.getAttribute("data-wpm")||200,i=e.getAttribute("data-prefix")||"",o=e.getAttribute("data-suffix")||"",a=n.textContent.split(" ").length,s=Math.ceil(a/parseInt(r));e.textContent=i+s+o}}});function bricksPostReadingTime(){bricksPostReadingTimeFn.run()}var bricksCountdownFn=new BricksFunction({parentNode:document,selector:".brxe-countdown",eachElement:function(e){countdown=function(e,t,n){var r=6e4*(("+"===t.timezone[3]?1:-1)*(60*parseInt(t.timezone.substring(4,6))+parseInt(t.timezone.substring(7,9)))),i=6e4*-(new Date).getTimezoneOffset(),o=t.date.replace(" ","T"),a=new Date(o).getTime()+i-r-(new Date).getTime();if(a<=0){if(clearInterval(e.dataset.bricksCountdownId),"hide"===t.action)return void(e.innerHTML="");if("text"===t.action)return void(e.innerHTML=t.actionText)}n&&(e.innerHTML="",t.fields.forEach((function(t){if(t.format){var n=document.createElement("div");if(n.classList.add("field"),t.prefix){var r=document.createElement("span");r.classList.add("prefix"),r.innerHTML=t.prefix,n.appendChild(r)}var i=document.createElement("span");if(i.classList.add("format"),n.appendChild(i),t.suffix){var o=document.createElement("span");o.classList.add("suffix"),o.innerHTML=t.suffix,n.appendChild(o)}e.appendChild(n)}})));var s=bricksQuerySelectorAll(e,".field"),c=Math.floor(a/864e5),l=Math.floor(a%864e5/36e5),d=Math.floor(a%36e5/6e4),u=Math.floor(a%6e4/1e3);t.fields.forEach((function(e,t){if(e.format&&s[t]){var n=e.format.toLowerCase();n.includes("%d")?(e.format.includes("%D")&&c<=9&&(c="0".concat(c)),s[t].querySelector(".format").innerHTML=n.replace("%d",a<=0?0:c)):n.includes("%h")?(e.format.includes("%H")&&l<=9&&(l="0".concat(l)),s[t].querySelector(".format").innerHTML=n.replace("%h",a<=0?0:l)):n.includes("%m")?(e.format.includes("%M")&&d<=9&&(d="0".concat(d)),s[t].querySelector(".format").innerHTML=n.replace("%m",a<=0?0:d)):n.includes("%s")&&(e.format.includes("%S")&&u<=9&&(u="0".concat(u)),s[t].querySelector(".format").innerHTML=n.replace("%s",a<=0?0:u))}}))};var t=e.dataset.bricksCountdownOptions;try{t=JSON.parse(t)}catch(e){return!1}if(t.hasOwnProperty("date")&&t.hasOwnProperty("fields")){var n=e.dataset.bricksCountdownId;n&&clearInterval(n),countdown(e,t,!0),n=setInterval(countdown,1e3,e,t,!1),e.dataset.bricksCountdownId=n}}});function bricksCountdown(){bricksCountdownFn.run()}var bricksCounterFn=new BricksFunction({parentNode:document,selector:".brxe-counter",subscribeEvents:["bricks/popup/open","bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/query_result/displayed"],forceReinit:function(e,t){return e.closest(".brx-popup")},eachElement:function(e){var t,n=e.dataset.bricksCounterOptions;try{n=JSON.parse(n)}catch(e){return!1}var r=e.querySelector(".count"),i=n.hasOwnProperty("countFrom")?parseInt(n.countFrom):0,o=n.hasOwnProperty("countTo")?parseInt(n.countTo):100,a=n.hasOwnProperty("duration")?parseInt(n.duration):1e3,s=null===(t=n)||void 0===t?void 0:t.separator;a<500&&(a=500);var c=a/(o-i),l=1;c<16&&(l=Math.ceil(16/c),c=16);var d=function(){var e=r.innerText.replace(/\D/g,""),t=(e=isNaN(e)?i:parseInt(e))+l=o)return clearInterval(r.dataset.counterId),void delete r.dataset.counterId;n.thousands&&s?r.innerText=t.toLocaleString("en-US").replaceAll(",",s):n.thousands?r.innerText=t.toLocaleString():r.innerText=t},u=function(){r.innerText=i,null==r.dataset.counterId&&(r.dataset.counterId=setInterval(d,c))},p=r.closest(".brx-popup");p?p.classList.contains("hide")||u():new BricksIntersect({element:e,callback:u})},listenerHandler:function(e){var t;if(null!=e&&e.type)if("bricks/popup/open"===e.type){var n={parentNode:null!==(t=e.details)&&void 0!==t&&t.popupElement?e.details.popupElement:document};bricksCounterFn.run(n)}else bricksCounterFn.run()}});function bricksCounter(){bricksCounterFn.run()}var bricksTableOfContentsFn=new BricksFunction({parentNode:document,selector:".brxe-post-toc",eachElement:function(e){var t=e.dataset.scriptId;window.bricksData.tocbotInstances[t]&&tocbot.destroy();var n=e.dataset.contentSelector||".brxe-post-content",r=document.querySelector(n);if(r||(r=document.querySelector("#brx-content"))&&(n="#brx-content"),r){var i=e.dataset.headingSelectors||"h2, h3",o=r.querySelectorAll(i),a={};o.forEach((function(e){if(!e.id||a[e.id]){var n=function(e,t){var n=e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[!@#$%^&*()=:;,.„“"'`]/gi,"").replace(/\//gi,"-").split(" ").join("-");if(/^\d/.test(n))return"".concat(t,"-").concat(n);return n}(e.textContent,t);a[n]?(a[n]++,n="".concat(n,"-").concat(a[n])):a[n]=1,e.id=n}else a[e.id]=1})),headingsOffset=parseInt(e.dataset.headingsOffset)||0;var s=e.hasAttribute("data-smooth-scroll"),c={tocSelector:'.brxe-post-toc[data-script-id="'.concat(t,'"]'),contentSelector:n,headingSelector:i,ignoreSelector:e.dataset.ignoreSelector||".toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:e.dataset.collapseInactive?0:6,scrollSmooth:headingsOffset,scrollSmoothDuration:s&&headingsOffset?420:0,scrollSmoothOffset:headingsOffset?-headingsOffset:0,headingsOffset:headingsOffset,throttleTimeout:0,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,orderedList:!1,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0};tocbot.init(c),window.bricksData.tocbotInstances[t]=tocbot}}});function bricksTableOfContents(){bricksTableOfContentsFn.run()}var bricksFormFn=new BricksFunction({parentNode:document,selector:".brxe-form",eachElement:function(e){var t=e.getAttribute("data-element-id");function n(e){var t=e.value.trim(),r=e.getAttribute("data-error-message"),i=e.closest(".form-group"),o=!1;if(e.hasAttribute("required")&&!t&&(o=!0),"number"===e.type){var a=parseFloat(e.getAttribute("min")),s=parseFloat(e.getAttribute("max")),c=parseFloat(t);(null!==a&&cs)&&(o=!0)}"email"===e.type&&(o=!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)),"url"===e.type&&(o=!/^(https?:\/\/)?([\w.-]+)\.([a-z.]{2,6})([\/\w.-]*)*\/?$/.test(t)),e.hasAttribute("required")||""!=t||(o=!1);var l=i.querySelector(".form-group-error-message");l||((l=document.createElement("div")).classList.add("form-group-error-message"),i.appendChild(l)),o?(l.innerText=r,l.classList.add("show"),e.addEventListener("input",(function(){n(e)}))):(l.innerText="",l.classList.remove("show"),e.removeEventListener("input",(function(){n(e)})))}bricksQuerySelectorAll(e,'input[type="checkbox"]').forEach((function(t){t.required&&t.addEventListener("click",(function(n){var r=t.getAttribute("name"),i=bricksQuerySelectorAll(e,'input[name="'.concat(r,'"]')),o=!1;i.forEach((function(e){!0===e.checked&&(o=!0)})),o?i.forEach((function(e){e.required=!1})):i.forEach((function(e){e.required=!0}))}))})),e.querySelectorAll('input:not([type="hidden"]):not([type="file"]), textarea').forEach((function(e){if(e.getAttribute("data-error-message")&&bricksIsFrontend){var t=e.getAttribute("value")?"input":"blur";e.addEventListener(t,(function(){n(e)}))}})),bricksQuerySelectorAll(e,".flatpickr").forEach((function(e){var t=e.dataset.bricksDatepickerOptions;t&&((t=JSON.parse(t)).disableMobile=!0,t.onReady=function(e,t,n){var r=n.altInput.previousElementSibling?n.altInput.previousElementSibling.getAttribute("aria-label"):"Date";n.altInput.setAttribute("aria-label",r||"Date")},flatpickr(e,t))}));var r={};bricksQuerySelectorAll(e,"input[type=file]").forEach((function(t){var n=t.getAttribute("data-files-ref"),i=t.getAttribute("data-maxsize")||!1,o=t.getAttribute("data-limit")||!1;i=!!i&&1024*parseInt(i)*1024,t.addEventListener("change",(function(a){var s=a.target.files,c=s.length,l=t.getAttribute("name");if(c)for(var d=e.querySelector('.file-result[data-files-ref="'.concat(n,'"]')),u=function(){var e=s[p],t=!1,n=d.cloneNode(!0);if(o&&r.hasOwnProperty(l)&&r[l].length>=o&&(t="limit"),i&&e.size>i&&(t="size"),t)n.classList.add("danger"),n.innerHTML=n.getAttribute("data-error-".concat(t)).replace("%s",e.name),setTimeout((function(){n.remove()}),5e3);else{r.hasOwnProperty(l)||(r[l]=[]),r[l].push(e),n.classList.add("show");var a=n.querySelector(".text"),c=n.querySelector(".remove");a.innerHTML=e.name,c.setAttribute("data-name",e.name),c.setAttribute("data-field",l),c.addEventListener("click",(function(e){for(var t=e.target.getAttribute("data-name"),i=e.target.getAttribute("data-field"),o=r[i],a=0;a"}))}else w.innerHTML=v.data.message;if(k.appendChild(w),null!==(b=v.data)&&void 0!==b&&b.info){var L=document.createElement("div"),S=document.createElement("div");S.innerHTML=v.data.info.join("
"),k.appendChild(L),L.appendChild(S)}else k.classList.add(v.data.type);if(t.appendChild(k),o.classList.remove("sending"),v.success){t.reset(),n={};var E=bricksQuerySelectorAll(t,".file-result");null!==E&&E.forEach((function(e){e.remove()}))}else{var I=t.querySelector(".cf-turnstile"),A=I?I.querySelector("iframe"):null,T=A?A.id:null;T&&turnstile.reset(T)}}},u.send(a)}function bricksRegenerateNonceAndResubmit(e,t,n,r){var i=new XMLHttpRequest;i.open("POST",window.bricksData.ajaxUrl+"?t="+(new Date).getTime(),!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE){var o=i.responseText;window.bricksData.formNonce=o,bricksSubmitForm(e,t,n,r,!0)}},i.send("action=bricks_regenerate_form_nonce")}var bricksIsotopeFn=new BricksFunction({parentNode:document,selector:".bricks-layout-wrapper.isotope",windowVariableCheck:["Isotope"],eachElement:function(e){var t,n=!1,r="";e.classList.contains("brxe-image-gallery")?(n=e.getAttribute("data-script-id"),r="image-gallery"):(n=null===(t=e.closest(".brxe-posts"))||void 0===t?void 0:t.getAttribute("data-script-id"),r="posts");var i={itemSelector:".bricks-layout-item",percentPosition:!0},o=e.getAttribute("data-layout");"grid"===o?(i.layoutMode="fitRows",i.fitRows={gutter:".bricks-gutter-sizer"}):"masonry"!==o&&"metro"!==o||(i.masonry={columnWidth:".bricks-isotope-sizer",gutter:".bricks-gutter-sizer"});var a=new Isotope(e,i),s=e.parentNode.querySelector(".bricks-isotope-filters");s&&s.addEventListener("click",(function(e){var t=e.target.getAttribute("data-filter"),n=s.querySelector("li.active");t&&bricksIsFrontend&&(n&&n.classList.remove("active"),e.target.classList.add("active"),a.arrange({filter:t}))})),window.bricksData.isotopeInstances[n]={elementId:n,instance:a,layout:o,filters:s,options:i,element:e,elementName:r}}});function bricksIsotope(){bricksIsotopeFn.run()}var bricksMapFn=new BricksFunction({parentNode:document,selector:".brxe-map",eachElement:function(e,t){setTimeout((function(){var t=function(){var t=e.dataset.bricksMapOptions;if(!t)return!1;try{return JSON.parse(t)}catch(e){return!1}}();if(t){var n=Array.isArray(null==t?void 0:t.addresses)?t.addresses:[{address:"Berlin, Germany"}],r=[],i={};null!=t&&t.marker&&(i.icon={url:t.marker},null!=t&&t.markerHeight&&null!=t&&t.markerWidth&&(i.icon.scaledSize=new google.maps.Size(parseInt(t.markerWidth),parseInt(t.markerHeight))));var o={};null!=t&&t.markerActive&&(o={url:t.markerActive},null!=t&&t.markerActiveHeight&&null!=t&&t.markerActiveWidth&&(o.scaledSize=new google.maps.Size(parseInt(t.markerActiveWidth),parseInt(t.markerActiveHeight))));var a=[],s=new google.maps.LatLngBounds,c="auto";t.draggable?t.scrollwheel&&t.draggable?c="cooperative":!t.scrollwheel&&t.draggable&&(c="greedy"):c="none",t.disableDefaultUI&&(t.fullscreenControl=!1,t.mapTypeControl=!1,t.streetViewControl=!1,t.zoomControl=!1);var l=t.zoom?parseInt(t.zoom):12,d={zoom:l,gestureHandling:c,fullscreenControl:t.fullscreenControl,mapTypeControl:t.mapTypeControl,streetViewControl:t.streetViewControl,zoomControl:t.zoomControl,disableDefaultUI:t.disableDefaultUI};if(null!=t&&t.styles)try{d.styles=JSON.parse(t.styles)}catch(e){}t.zoomControl&&(null!=t&&t.maxZoom&&(d.maxZoom=parseInt(t.maxZoom)),null!=t&&t.minZoom&&(d.minZoom=parseInt(t.minZoom)));for(var u=new google.maps.Map(e,d),p=0;p"));v&&(p+='

'.concat(v,"

"));f&&(p+='
    ',(f=f.split("\n")).length&&f.forEach((function(e){p+="
  • ".concat(e,"
  • ")})),p+="
");m.length&&(p+='
    ',m.forEach((function(t){p+="
  • ",t.thumbnail&&t.src&&(p+=''),p+=''),p+=""),p+="
  • "})),p+="
");if(p){var y=parseInt(null==e?void 0:e.infoWidth)||300,g={content:p,disableAutoPan:!0,pixelOffset:new google.maps.Size(0,0),alignBottom:!1,infoBoxClearance:new google.maps.Size(20,20),enableEventPropagation:!1,zIndex:1001,boxStyle:{opacity:1,zIndex:999,top:0,left:0,width:"".concat(y,"px")}};void 0!==window.jQuery&&(g.closeBoxURL="",g.content+='×');var k=new InfoBox(g);k.open(u,c),a.push(k),setTimeout((function(){var e=k.div_.offsetHeight,t=u.getProjection().fromLatLngToPoint(c.getPosition()),n=u.getProjection().fromPointToLatLng(new google.maps.Point(t.x,t.y-e*function(){var e=u.getCenter(),t=u.getZoom(),n=1,r=u.getProjection().fromLatLngToPoint(new google.maps.LatLng(e.lat()-n/Math.pow(2,t),e.lng()-n/Math.pow(2,t))),i=u.getProjection().fromLatLngToPoint(new google.maps.LatLng(e.lat()+n/Math.pow(2,t),e.lng()+n/Math.pow(2,t)));return Math.abs(i.x-r.x)}()/2));u.panTo(n)}),100),google.maps.event.addListener(k,"domready",(function(e){m.length&&bricksPhotoswipe(),void 0!==window.jQuery&&jQuery(".close").on("click",(function(){k.close(),null!=i&&i.icon&&c.setIcon(i.icon),n.length>1&&(s.extend(t),u.fitBounds(s),u.panToBounds(s))}))}))}}(e)})),s.extend(t),u.fitBounds(s),u.panToBounds(s),1===n.length)var d=google.maps.event.addListener(u,"idle",(function(){u.setZoom(l),google.maps.event.removeListener(d)}))}}),1e3*t)}});function bricksMap(){bricksMapFn.run()}var bricksPieChartFn=new BricksFunction({parentNode:document,selector:".brxe-pie-chart",windowVariableCheck:["EasyPieChart"],eachElement:function(e){new BricksIntersect({element:e,callback:function(e){var t=e.getElementsByTagName("canvas");t.length&&t[0].remove();var n=function(t){var n=t.match(/var\((--[^)]+)\)/);if(n){var r=n[1];return getComputedStyle(e).getPropertyValue(r).trim()}return t},r=n(e.dataset.barColor),i=n(e.dataset.trackColor);new EasyPieChart(e,{size:e.dataset.size&&e.dataset.size>0?e.dataset.size:160,lineWidth:e.dataset.lineWidth,barColor:r,trackColor:i,lineCap:e.dataset.lineCap,scaleColor:e.dataset.scaleColor,scaleLength:e.dataset.scaleLength,rotate:0})},threshold:1})}});function bricksPieChart(){bricksPieChartFn.run()}var bricksPricingTablesFn=new BricksFunction({parentNode:document,selector:".brxe-pricing-tables",eachElement:function(e){var t=bricksQuerySelectorAll(e,".tab"),n=bricksQuerySelectorAll(e,".pricing-table");t.forEach((function(e){e.classList.contains("listening")||(e.classList.add("listening"),e.addEventListener("click",(function(){e.classList.contains("active")||(n.forEach((function(e){e.classList.toggle("active")})),t.forEach((function(e){e.classList.remove("active")})),e.classList.add("active"))})))}))}});function bricksPricingTables(){bricksPricingTablesFn.run()}var bricksPostReadingProgressBarFn=new BricksFunction({parentNode:document,selector:".brxe-post-reading-progress-bar",eachElement:function(e){var t=!!e.dataset.contentSelector&&document.querySelector(e.dataset.contentSelector);window.addEventListener("scroll",(function(){var n=window.scrollY,r=document.documentElement.scrollHeight-document.documentElement.clientHeight;if(t){var i=t.getBoundingClientRect();r=i.height,n=i.top>0?0:-i.top}e.setAttribute("value",Math.ceil(n/r*100))}))}});function bricksPostReadingProgressBar(){bricksPostReadingProgressBarFn.run()}var bricksProgressBarFn=new BricksFunction({parentNode:document,selector:".brxe-progress-bar .bar span",eachElement:function(e){new BricksIntersect({element:e,callback:function(){e.dataset.width&&setTimeout((function(){e.style.width=e.dataset.width}),"slow")},threshold:1})}});function bricksProgressBar(){bricksProgressBarFn.run()}var bricksSplideFn=new BricksFunction({parentNode:document,selector:".brxe-slider-nested.splide",windowVariableCheck:["Splide"],forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){var t,n=bricksQuerySelectorAll(e,[".splide__list > .brxe-container",".splide__list > .brxe-block",".splide__list > .brxe-div"]);n.forEach((function(e){e.classList.add("splide__slide"),e.dataset.id=e.id}));var r=e.dataset.scriptId;window.bricksData.splideInstances.hasOwnProperty(r)&&window.bricksData.splideInstances[r].destroy();var i=new Splide(e);i.mount();var o={};try{o=JSON.parse(e.dataset.splide)}catch(e){console.warn("bricksSplide: Error parsing JSON of data-script-args",r)}if(null!==(t=o)&&void 0!==t&&t.autoHeight){var a=function(){try{var e,t=null==i||null===(e=i.Components)||void 0===e?void 0:e.Slides;if(!t)return void console.error("Slides component is undefined:",r);var o=t.getAt(i.index),a=null==o?void 0:o.slide;if(!a)return void console.error("Slide is undefined:",r);var s=a.parentElement;if(!s)return void console.error("Parent element is undefined:",r);var c=0;n.forEach((function(e){e.classList.contains("is-visible")&&e.offsetHeight>c&&(c=e.offsetHeight)})),c||(c=a.offsetHeight),s.style.height="".concat(c,"px")}catch(e){console.error("An error occurred while updating the height:",e,r)}};i?(a(),"function"==typeof i.on?(i.on("move resize",a),i.on("moved",a)):console.error("splideInstance.on is not a function")):console.error("splideInstance is undefined")}window.bricksData.splideInstances[r]=i,n.forEach((function(t,n){if(t.dataset.id){t.id=t.dataset.id;var r=e.querySelector(".splide__pagination");if(r){var i=r.querySelector("li:nth-child(".concat(n+1,") .splide__pagination__page"));i&&i.setAttribute("aria-controls",t.id)}}if(!t.classList.contains("bricks-lazy-hidden")){var o=t.getAttribute("style")||"";t.dataset.style&&(o+=t.dataset.style,t.setAttribute("style",o))}}))}});function bricksSplide(){bricksSplideFn.run()}var bricksSwiperFn=new BricksFunction({parentNode:document,selector:".bricks-swiper-container",windowVariableCheck:["Swiper"],forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){var t;try{t=JSON.parse(e.dataset.scriptArgs)}catch(n){console.warn("bricksSwiper: Error parsing JSON of data-script-args",e),t={}}var n=e.classList.contains("[class*=brxe-]")?e:e.closest("[class*=brxe-]");if(n){bricksQuerySelectorAll(e,[".splide__list > .brxe-container",".splide__list > .brxe-block",".splide__list > .brxe-div"]).forEach((function(e){return e.classList.add("swiper-slide")}));var r=n.dataset.scriptId,i=window.bricksData.swiperInstances.hasOwnProperty(r)?window.bricksData.swiperInstances[r]:void 0;i&&i.destroy(),t.observer=!1,t.observeParents=!0,t.resizeObserver=!0,t.slidesToShow=t.hasOwnProperty("slidesToShow")?t.slidesToShow:1,t.slidesPerGroup=t.hasOwnProperty("slidesPerGroup")?t.slidesPerGroup:1,t.speed=t.hasOwnProperty("speed")?parseInt(t.speed):300,t.effect=t.hasOwnProperty("effect")?t.effect:"slide",t.spaceBetween=t.hasOwnProperty("spaceBetween")?t.spaceBetween:0,t.initialSlide=t.hasOwnProperty("initialSlide")?t.initialSlide:0,t.keyboard={enabled:bricksIsFrontend,onlyInViewport:!0,pageUpDown:!1},t.watchOverflow=!0,t.hasOwnProperty("effect")&&"flip"===t.effect&&(t.flipEffect={slideShadows:!1}),t.hasOwnProperty("effect")&&"fade"===t.effect&&(t.fadeEffect={crossFade:!0}),t.navigation&&(t.navigation={prevEl:n.querySelector(".bricks-swiper-button-prev"),nextEl:n.querySelector(".bricks-swiper-button-next")}),t.pagination&&(t.pagination={el:n.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},1==t.dynamicBullets&&(delete t.dynamicBullets,t.pagination.dynamicBullets=!0)),i=new Swiper(e,t),window.bricksData.swiperInstances[r]=i}}});function bricksSwiper(){bricksSwiperFn.run()}var bricksVideoFn=new BricksFunction({parentNode:document,selector:".brxe-video",eachElement:function(e){bricksIsFrontend&&e.addEventListener("click",(function(){var t=e.querySelector(".bricks-video-overlay"),n=e.querySelector(".bricks-video-overlay-icon");t&&t.remove(),n&&n.remove()}));var t=e.querySelector("video");if(t){if(window.hasOwnProperty("Plyr")){var n,r=e.dataset.scriptId,i=e.querySelector(".bricks-plyr"),o=(null===(n=window.bricksData)||void 0===n||null===(n=n.videoInstances)||void 0===n?void 0:n[r])||void 0;o&&o.destroy(),i&&(o=new Plyr(i)),window.bricksData.videoInstances[r]=o}t.setAttribute("playsinline",!0)}}});function bricksVideo(){bricksVideoFn.run()}function bricksFacebookSDK(){if(document.querySelector(".brxe-facebook-page")){var e=window.bricksData.hasOwnProperty("locale")?window.bricksData.locale:"en_US",t=window.bricksData.hasOwnProperty("facebookAppId")?window.bricksData.facebookAppId:null,n="https://connect.facebook.net/".concat(e,"/sdk.js"),r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){if(4==this.readyState&&200==this.status){var e=document.createElement("script");e.type="text/javascript",e.id="bricks-facebook-page-sdk",e.appendChild(document.createTextNode(r.responseText)),document.body.appendChild(e),FB.init({appId:t,version:"v3.3",xfbml:!0})}},r.send()}}var bricksPrettifyFn=new BricksFunction({parentNode:document,selector:".prettyprint.prettyprinted",run:function(){if(window.hasOwnProperty("PR")){PR.prettyPrint();var e=bricksQuerySelectorAll(document,".prettyprint.prettyprinted");!bricksIsFrontend&&e.length&&e.forEach((function(e){e.classList.remove("prettyprinted"),PR.prettyPrint()}))}}});function bricksPrettify(){bricksPrettifyFn.run()}function bricksSkipLinks(){var e=bricksQuerySelectorAll(document,".skip-link");e&&e.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=document.getElementById(e.href.split("#")[1]);n&&(n.setAttribute("tabindex","-1"),n.addEventListener("blur",(function(){n.removeAttribute("tabindex")}),{once:!0}),n.focus())}))}))}var bricksInteractionsFn=new BricksFunction({parentNode:document,selector:"[data-interactions]",frontEndOnly:!0,eachElement:function(e){var t,n=[];try{n=JSON.parse(e.dataset.interactions)}catch(e){return console.info("error:bricksInteractions",e),!1}var r=(null===(t=e.dataset)||void 0===t?void 0:t.interactionId)||!1;n&&r&&(n.forEach((function(t){var n,i=!1;if(null!=t&&t.trigger){if("scroll"===t.trigger){var o=0;if(null!=t&&t.scrollOffset)if((o=null==t?void 0:t.scrollOffset.replace("px","")).includes("%"))o=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)/100*parseInt(o);else o.includes("vh")&&(o=window.innerHeight/100*parseInt(o));t.scrollOffset=o}else"mouseleaveWindow"===t.trigger&&(t.trigger="mouseleave",i=!0);if(e)switch(t.el=e,t.groupId=i?"document":r,null!==(n=window.bricksData)&&void 0!==n&&n.interactions||(window.bricksData.interactions=[]),window.bricksData.interactions.push(t),t.trigger){case"click":case"mouseover":case"mouseenter":case"mouseleave":case"focus":case"blur":(i?document.documentElement:e).addEventListener(t.trigger,bricksInteractionCallback,{once:null==t?void 0:t.runOnce});break;case"animationEnd":var a=(null==t?void 0:t.animationId)||!1;if(!a){var s=window.bricksData.interactions.filter((function(e){return e.groupId===r&&"startAnimation"===e.action&&e.id!==t.id}));s.length&&(a=s[s.length-1].id)}a&&a!==t.id&&document.addEventListener("bricks/animation/end/".concat(a),(function(n){bricksInteractionCallbackExecution(e,t)}),{once:null==t?void 0:t.runOnce});break;case"contentLoaded":var c=(null==t?void 0:t.delay)||0;c&&c.includes("ms")?c=parseInt(c):c&&c.includes("s")&&(c=1e3*parseFloat(c)),setTimeout((function(){bricksInteractionCallbackExecution(e,t)}),c);break;case"enterView":case"leaveView":new BricksIntersect({element:e,callback:function(e){return bricksInteractionCallbackExecution(e,t)},once:null==t?void 0:t.runOnce,trigger:null==t?void 0:t.trigger});break;case"showPopup":case"hidePopup":var l="showPopup"===t.trigger?"bricks/popup/open":"bricks/popup/close";document.addEventListener(l,(function(n){var r,i=(null===(r=n.detail)||void 0===r?void 0:r.popupElement)||!1;i&&i===e&&bricksUtils.maybeRunOnceInteractions(e,t)}));break;case"ajaxStart":case"ajaxEnd":var d="ajaxStart"===t.trigger?"bricks/ajax/start":"bricks/ajax/end",u=(null==t?void 0:t.ajaxQueryId)||!1;if(!u)return;document.addEventListener(d,(function(n){var r,i=(null===(r=n.detail)||void 0===r?void 0:r.queryId)||!1;i&&i===u&&bricksUtils.maybeRunOnceInteractions(e,t)}));break;case"formSubmit":case"formSuccess":case"formError":var p=null==t?void 0:t.formId;if(!p)return;var b="bricks/form/".concat(t.trigger.replace("form","").toLowerCase());document.addEventListener(b,(function(n){var r,i=null===(r=n.detail)||void 0===r?void 0:r.elementId;i&&i===(p=(p=p.replace("#","")).replace("brxe-",""))&&bricksUtils.maybeRunOnceInteractions(e,t)}))}}})),bricksUtils.hideOrShowLoadMoreButtons("all"))}});function bricksInteractions(){bricksInteractionsFn.run()}function bricksPopups(){document.addEventListener("bricks/popup/open",(function(e){var t,n,r=(null===(t=e.detail)||void 0===t?void 0:t.popupElement)||!1;if(r&&bricksIsFrontend){setTimeout((function(){var e,t,n;if(null===(e=r.dataset)||void 0===e||!e.popupDisableAutoFocus){var i=bricksGetFocusables(r);i.length&&i[0].focus()}null!==(t=r.dataset)&&void 0!==t&&t.popupScrollToTop&&(null===(n=r.querySelector(".brx-popup-content"))||void 0===n||n.scrollTo(0,0))}),100);var i=function(e){return function(e,t){if("Tab"===e.key){e.preventDefault();var n=bricksGetFocusables(t);if(!n.length)return;var r=n.indexOf(document.activeElement),i=n[e.shiftKey?r-1:r+1];i?i.focus():n[0].focus()}}(e,r)};document.addEventListener("keydown",i),document.addEventListener("bricks/popup/close",(function(){document.removeEventListener("keydown",i)}));var o=(null===(n=r.dataset)||void 0===n?void 0:n.popupCloseOn)||"backdrop-esc";if(o.includes("esc")){var a=function(e){return function(e,t){"Escape"===e.key&&bricksClosePopup(t)}(e,r)};document.addEventListener("keyup",a),document.addEventListener("bricks/popup/close",(function(){document.removeEventListener("keyup",a)}))}if(o.includes("backdrop")){var s=function(e){return function(e,t){e.target.classList.contains("brx-popup-backdrop")&&bricksClosePopup(t)}(e,r)};document.addEventListener("click",s),document.addEventListener("bricks/popup/close",(function(){document.removeEventListener("click",s)}))}}}))}function bricksScrollInteractions(){var e,t=Array.isArray(null===(e=window.bricksData)||void 0===e?void 0:e.interactions)?window.bricksData.interactions:[],n=window.scrollY,r=[];t.forEach((function(e,t){"scroll"===(null==e?void 0:e.trigger)&&n>=e.scrollOffset&&(bricksInteractionCallbackExecution(e.el,e),null!=e&&e.runOnce&&r.push(t))})),r.forEach((function(e){window.bricksData.interactions.splice(e,1)}))}function bricksInteractionCallback(e){var t;if("click"===(null==e?void 0:e.type)){var n;if("A"===e.target.tagName&&"#"!==e.target.getAttribute("href")&&null!==(n=e.target.getAttribute("href"))&&void 0!==n&&n.startsWith("#"))return;e.preventDefault()}var r=(null==e||null===(t=e.currentTarget)||void 0===t||null===(t=t.dataset)||void 0===t?void 0:t.interactionId)||"document";window.bricksData.interactions.filter((function(e){return e.groupId===r})).forEach((function(t){(null==t?void 0:t.trigger)===e.type&&bricksInteractionCallbackExecution(t.el,t)}))}function bricksInteractionCallbackExecution(e,t){var n,r,i;switch((null==t?void 0:t.target)||"self"){case"custom":null!=t&&t.targetSelector&&(i=bricksQuerySelectorAll(document,t.targetSelector));break;case"popup":var o;if(null!=t&&t.templateId)null!==(o=e.dataset)&&void 0!==o&&o.interactionLoopId&&(i=bricksQuerySelectorAll(document,'.brx-popup[data-popup-id="'.concat(t.templateId,'"][data-popup-loop-id="').concat(e.dataset.interactionLoopId,'"]'))),i&&i.length||(i=bricksQuerySelectorAll(document,'.brx-popup[data-popup-id="'.concat(t.templateId,'"]')));break;default:i=e}if(i)if(i=Array.isArray(i)?i:[i],bricksInteractionCheckConditions(t))switch(null==t?void 0:t.action){case"show":case"hide":i.forEach((function(n){if(null!=n&&n.classList.contains("brx-popup"))if("show"===t.action){var r,i={};null!=t&&t.popupContextId&&(i.popupContextId=t.popupContextId),null!=t&&t.popupContextType&&(i.popupContextType=t.popupContextType),null!==(r=e.dataset)&&void 0!==r&&r.interactionLoopId&&(i.loopId=e.dataset.interactionLoopId),bricksOpenPopup(n,0,i)}else"hide"===t.action&&bricksClosePopup(n);else"hide"===t.action?n.style.display="none":"none"===n.style.display?(n.style.display=null,"none"===window.getComputedStyle(n).display&&(n.style.display="block")):n.style.display="block"}));break;case"setAttribute":case"removeAttribute":case"toggleAttribute":var a=null==t?void 0:t.actionAttributeKey;a&&i.forEach((function(e){var n=(null==t?void 0:t.actionAttributeValue)||"";"class"===a?(n?n.split(" "):[]).forEach((function(n){"setAttribute"===t.action?e.classList.add(n):"removeAttribute"===t.action?e.classList.remove(n):e.classList.toggle(n)})):"setAttribute"===t.action?e.setAttribute(a,n):"removeAttribute"===t.action||e.hasAttribute(a)?e.removeAttribute(a):e.setAttribute(a,n)}));break;case"scrollTo":var s=i[0];if(!s||!s.scrollIntoView)return;var c=(null==t?void 0:t.scrollToOffset)||0,l=(null==t?void 0:t.scrollToDelay)||1;setTimeout((function(){"string"==typeof c&&(c=c.replace("px",""));var e=s.getBoundingClientRect().top;window.scrollBy(0,e-parseInt(c))}),parseInt(l));break;case"storageAdd":case"storageRemove":case"storageCount":var d=null==t?void 0:t.storageType,u=null==t?void 0:t.actionAttributeKey,p=t.hasOwnProperty("actionAttributeValue")?t.actionAttributeValue:0;if(d&&u)if("storageAdd"===t.action)bricksStorageSetItem(d,u,p);else if("storageRemove"===t.action)bricksStorageRemoveItem(d,u);else if("storageCount"===t.action){var b=bricksStorageGetItem(d,u);bricksStorageSetItem(d,u,(b=b?parseInt(b):0)+1)}break;case"startAnimation":var v=null==t?void 0:t.animationType;v&&i.forEach((function(e){var n,r=1e3,i=null===(n=e)||void 0===n?void 0:n.classList.contains("brx-popup");if(i&&(e=e.querySelector(".brx-popup-content")),null!=t&&t.animationDuration&&(e.style.animationDuration=t.animationDuration,t.animationDuration.includes("ms")?r=parseInt(t.animationDuration):t.animationDuration.includes("s")&&(r=1e3*parseFloat(t.animationDuration))),null!=t&&t.animationDelay&&(e.style.animationDelay=t.animationDelay,t.animationDelay.includes("ms")?r+=parseInt(t.animationDelay):t.animationDelay.includes("s")&&(r+=1e3*parseFloat(t.animationDelay))),i&&"showPopup"!==t.trigger&&"hidePopup"!==t.trigger){var o=e.parentNode;v.includes("In")&&bricksOpenPopup(o,r)}e.classList.add("brx-animated"),e.setAttribute("data-animation",v),e.setAttribute("data-animation-id",t.id||""),bricksAnimationFn.run({elementsToAnimate:[e],removeAfterMs:r})}));break;case"loadMore":var f=null==t?void 0:t.loadMoreQuery,m=null===(n=window.bricksData.queryLoopInstances)||void 0===n?void 0:n[f];if(!m)return;var y=Array.from(null===(r=m.resultsContainer)||void 0===r?void 0:r.querySelectorAll(".brxe-".concat(f,":not(.brx-popup)"))).pop();y&&(e.classList.contains("is-loading")||(e.classList.add("is-loading"),y.dataset.queryElementId=f,bricksQueryLoadPage(y).then((function(t){e.classList.remove("is-loading"),bricksUtils.hideOrShowLoadMoreButtons(f)}))));break;case"javascript":if(null!=t&&t.jsFunction){var g,k=null!==(g=window[t.jsFunction])&&void 0!==g&&g;if(t.jsFunction.includes(".")){var h=t.jsFunction.split("."),w=window;h.forEach((function(e){w=w[e]})),"function"==typeof w&&(k=w)}if(k&&"function"==typeof k){var x={source:e,targets:i},L={};null!=t&&t.jsFunctionArgs&&Array.isArray(t.jsFunctionArgs)&&t.jsFunctionArgs.forEach((function(e,t){if(null!=e&&e.jsFunctionArg&&null!=e&&e.id){var n=e.id,r=e.jsFunctionArg;"%brx%"===e.jsFunctionArg&&(n=e.jsFunctionArg,r=x),L[n]=r}})),i.forEach((function(e){null!=L&&L["%brx%"]&&(L["%brx%"].target=e),Object.keys(L).length?k.apply(void 0,_toConsumableArray(Object.keys(L).map((function(e){return L[e]})))):k()}))}else console.error('Bricks interaction: Custom JavaScript function "'.concat(t.jsFunction,'" not found.'))}}else if("startAnimation"===(null==t?void 0:t.action))i.forEach((function(e){e.removeAttribute("data-interaction-hidden-on-load")}))}function bricksOpenPopup(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(bricksIsFrontend&&(e&&(e.nodeType===Node.ELEMENT_NODE?t=e:e&&(t=document.querySelector('.brx-popup[data-popup-id="'.concat(e,'"]')))),t)){var i=t.dataset.popupId;bricksPopupCheckLimit(t)&&bricksPopupCheckBreakpoint(t)&&(t.classList.remove("hide"),t.dataset.popupBodyScroll||document.body.classList.add("no-scroll"),bricksSetVh(),bricksFetchPopupContent(t,r).then((function(e){if(""!==e){t.querySelector(".brx-popup-content").innerHTML=e;var r=new CustomEvent("bricks/ajax/popup/loaded",{detail:{popupId:i,popupElement:t}});document.dispatchEvent(r)}var o=new CustomEvent("bricks/popup/open",{detail:{popupId:i,popupElement:t}});document.dispatchEvent(o),setTimeout((function(){bricksCounter()}),n),bricksPopupCounter(t)})))}}function bricksFetchPopupContent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){var i;if((null===(i=e.dataset)||void 0===i?void 0:i.popupAjax)||!1){e.querySelector(".brx-popup-content").innerHTML="";var o=e.dataset.popupId,a={postId:window.bricksData.postId,popupId:o,nonce:window.bricksData.nonce,popupContextId:!1,popupContextType:"post",isLooping:!1,popupLoopId:!1,queryElementId:!1};if(null!=t&&t.loopId&&(a.isLooping=!0),null!=t&&t.popupContextId&&(a.popupContextId=t.popupContextId,null!=t&&t.popupContextType&&(a.popupContextType=t.popupContextType)),null!=t&&t.loopId&&!a.popupContextId){var s=t.loopId.split(":");4===s.length&&6===s[0].length&&(a.queryElementId=s[0],a.popupLoopId=t.loopId)}var c=window.bricksData.restApiUrl.concat("load_popup_content");document.dispatchEvent(new CustomEvent("bricks/ajax/popup/start",{detail:{popupId:o,popupElement:e}}));var l=new XMLHttpRequest;l.open("POST",c,!0),l.setRequestHeader("Content-Type","application/json; charset=UTF-8"),l.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),l.onreadystatechange=function(){if(l.readyState===XMLHttpRequest.DONE){var t=l.status,r="";if(0===t||t>=200&&t<400){var i=JSON.parse(l.response),a=(null==i?void 0:i.html)||!1,s=(null==i?void 0:i.styles)||!1,c=(null==i?void 0:i.popups)||!1,d=(null==i?void 0:i.error)||!1;d&&console.error("error:bricksFetchPopupContent",d),a&&(r=a),s&&(r+=s),c&&Object.keys(c).length&&Object.entries(c).forEach((function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];document.querySelector('.brx-popup[data-popup-id="'.concat(n,'"]'))||document.body.insertAdjacentHTML("beforeend",r)}))}n(r),document.dispatchEvent(new CustomEvent("bricks/ajax/popup/end",{detail:{popupId:o,popupElement:e}}))}},l.send(JSON.stringify(a))}else n("")}))}function bricksClosePopup(e){var t;if(bricksIsFrontend&&(e&&(e.nodeType===Node.ELEMENT_NODE?t=e:e&&(t=document.querySelector('.brx-popup[data-popup-id="'.concat(e,'"]')))),t)){var n=t.dataset.popupId;t.classList.add("hide"),t.dataset.popupBodyScroll||document.querySelectorAll(".brx-popup:not(.hide):not([data-popup-body-scroll])").length||document.body.classList.remove("no-scroll");var r=new CustomEvent("bricks/popup/close",{detail:{popupId:n,popupElement:t}});document.dispatchEvent(r)}}function bricksPopupCheckLimit(e){var t,n,r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.popupLimits,i=null==e||null===(n=e.dataset)||void 0===n?void 0:n.popupId;if(!r)return!0;try{r=JSON.parse(r)}catch(e){return console.info("error:bricksPopupCheckLimit",e),!0}var o=!1;return Object.entries(r).forEach((function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1],a=bricksStorageGetItem(n,"brx_popup_".concat(i,"_total"));a=a?parseInt(a):0,o=o||a>=r})),!o}function bricksPopupCheckBreakpoint(e){var t;if(null==e||null===(t=e.classList)||void 0===t||!t.contains("brx-popup"))return!1;var n=parseInt(e.getAttribute("data-popup-show-at"));if(n&&window.innerWidth=n&&window.innerWidth<=r})))return!1;return!0}function bricksPopupCounter(e){var t,n,r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.popupLimits,i=null==e||null===(n=e.dataset)||void 0===n?void 0:n.popupId;if(r){try{r=JSON.parse(r)}catch(e){return console.info("error:bricksPopupCounter",e),!0}Object.entries(r).forEach((function(e){var t=_slicedToArray(e,2),n=t[0],r=(t[1],bricksStorageGetItem(n,"brx_popup_".concat(i,"_total")));r=r?parseInt(r):0,bricksStorageSetItem(n,"brx_popup_".concat(i,"_total"),r+1)}))}}function bricksInteractionCheckConditions(e){if(!Array.isArray(null==e?void 0:e.interactionConditions))return!0;var t=(null==e?void 0:e.interactionConditionsRelation)||"and",n="and"===t,r=function(e){return isNaN(e)?0:parseFloat(e)};return e.interactionConditions.forEach((function(e){var i=null==e?void 0:e.conditionType,o=(null==e?void 0:e.storageKey)||!1,a=!1;if(i&&o){var s=(null==e?void 0:e.storageCompare)||"exists",c=null==e?void 0:e.storageCompareValue,l=bricksStorageGetItem(i,o);switch(s){case"exists":a=null!==l;break;case"notExists":a=null===l;break;case"==":a=l==c;break;case"!=":a=l!=c;break;case">=":a=r(l)>=r(c);break;case"<=":a=r(l)<=r(c);break;case">":a=r(l)>r(c);break;case"<":a=r(l) button.brxe-toggle");s&&(s.classList.add("is-active"),s.setAttribute("aria-expanded",!0))}else{t.style.visibility="visible";var c=t.dataset.toggleScriptId,l=document.querySelector('button[data-script-id="'.concat(c,'"]'));l&&(l.setAttribute("aria-expanded",!1),l.classList.remove("is-active"),l.focus()),"offset"===t.dataset.effect&&(document.body.style.marginTop&&(document.body.style.margin="0"),setTimeout((function(){document.body.style.margin=null,document.body.style.overflow=null,document.body.style.transition=null}),r)),setTimeout((function(){t.style.visibility=null,t.dataset.noScroll&&(document.body.classList.remove("no-scroll"),bricksSubmenuPosition())}),r)}}}))}));e.forEach((function(e){t.observe(e,{attributes:!0,attributeFilter:["class"]});var n=e.querySelector(".brx-offcanvas-backdrop");n&&n.addEventListener("click",(function(e){bricksOffcanvasClose("backdrop")}))})),document.addEventListener("keyup",(function(e){"Escape"===e.key&&bricksOffcanvasClose("esc")}))}}}function bricksOffcanvasClose(e){bricksQuerySelectorAll(document,".brxe-offcanvas.brx-open").forEach((function(t){var n;(((null===(n=t.dataset)||void 0===n?void 0:n.closeOn)||"backdrop-esc").includes(e)||"force"===e)&&t.classList.remove("brx-open")}))}function bricksToggleDisplay(){var e=bricksQuerySelectorAll(document,".brxe-toggle");e.length&&e.forEach((function(e){!e.closest(".brx-nav-nested-items")||e.parentNode.classList.contains("brx-nav-nested-items")||e.parentNode.classList.contains("brx-toggle-div")||("none"===window.getComputedStyle(e).display?e.parentNode.style.display="none":e.parentNode.style.display=null)}))}function bricksToggle(){if(bricksIsFrontend){var e=bricksQuerySelectorAll(document,".brxe-toggle");e.length&&(bricksToggleDisplay(),e.forEach((function(e){e.addEventListener("click",(function(t){var n,r,i;t.preventDefault();var o=(null===(n=e.dataset)||void 0===n?void 0:n.selector)||".brxe-offcanvas",a=(null===(r=e.dataset)||void 0===r?void 0:r.attribute)||"class",s=(null===(i=e.dataset)||void 0===i?void 0:i.value)||"brx-open",c=!!o&&document.querySelector(o);if(c||(c=e.closest(".brxe-nav-nested")),c||(c=e.closest(".brxe-offcanvas")),c){document.querySelector(".brx-has-megamenu")&&(t.target.closest('[data-effect="offset"]')||bricksSubmenuPosition(0)),e.dataset.scriptId&&!c.dataset.toggleScriptId&&(c.dataset.toggleScriptId=e.dataset.scriptId);var l="true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",!l),e.classList.toggle("is-active"),"class"===a?e.closest(".brxe-nav-nested")&&"brx-open"===s&&c.classList.contains("brx-open")?(c.classList.add("brx-closing"),setTimeout((function(){c.classList.remove("brx-closing"),c.classList.remove("brx-open")}),200)):c.classList.toggle(s):c.getAttribute(a)?c.removeAttribute(a):c.setAttribute(a,s);var d=bricksGetFocusables(c);d.length&&d[0].focus()}}))})))}}function bricksSubmenuToggle(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toggle",n=!!e.parentNode.classList.contains("brx-submenu-toggle")&&e.parentNode.parentNode;if(n){if(e.closest(".brx-has-multilevel")){var r=n.parentNode.closest(".active");r&&!r.classList.contains("brx-has-megamenu")&&r.classList.remove("active"),setTimeout((function(){var e=n.querySelector("ul")||n.querySelector(".brx-dropdown-content");if(e){var t=bricksGetFocusables(e);t.length&&t[0].focus()}}),100)}"add"===t?(n.classList.add("open"),n.classList.add("active")):"remove"===t?(n.classList.remove("open"),n.classList.remove("active")):n.classList.toggle("open"),e.setAttribute("aria-expanded",n.classList.contains("open"))}}function bricksSubmenuListeners(){var e=bricksQuerySelectorAll(document,".bricks-nav-menu .menu-item-has-children"),t=bricksQuerySelectorAll(document,".brxe-dropdown");(e=e.concat(t)).forEach((function(e){e.closest("[data-static]")||e.closest(".brx-has-multilevel")||e.classList.contains("active")||(e.addEventListener("mouseenter",(function(t){if(!e.closest(".show-mobile-menu")&&!e.closest(".brxe-nav-nested.brx-open")&&"click"!==e.getAttribute("data-toggle")){var n=t.target.querySelector('[aria-expanded="false"]');n&&bricksSubmenuToggle(n)}})),e.addEventListener("mouseleave",(function(t){if(!e.closest(".show-mobile-menu")&&!e.closest(".brxe-nav-nested.brx-open")&&"click"!==e.getAttribute("data-toggle")){var n=t.target.querySelector('[aria-expanded="true"]');if(n){var r=n.closest(".menu-item");if(r||(r=n.closest(".brxe-dropdown")),r&&r.classList.contains("active"))return;bricksSubmenuToggle(n)}}})))})),document.addEventListener("keyup",(function(e){if("Escape"===e.key){var t=e.target.closest(".open"),n=e.target.closest(".brx-has-multilevel");if(t&&!n){var r=t.querySelector(".brx-submenu-toggle button[aria-expanded]");r&&(bricksSubmenuToggle(r,"remove"),r&&r.focus())}else{bricksQuerySelectorAll(document,'.brx-submenu-toggle > button[aria-expanded="true"]').forEach((function(e){e&&bricksSubmenuToggle(e,"remove")}))}}else"Tab"!==e.key||e.shiftKey||setTimeout((function(){bricksQuerySelectorAll(document,'[aria-expanded="true"]').forEach((function(e){var t=e.closest(".menu-item");t||(t=e.closest(".brxe-dropdown")),(t&&!t.contains(document.activeElement)||"BODY"===document.activeElement.tagName)&&bricksSubmenuToggle(e)}))}),0)})),document.addEventListener("click",(function(e){var t="A"===e.target.nodeName&&e.target.hasAttribute("href")?e.target.getAttribute("href"):"";if(t&&t.includes("#"))if("#"===t||"/#"===t)e.preventDefault();else{var n=t.split("#")[1];if(e.target.closest(".brxe-offcanvas")&&bricksOffcanvasClose("force"),e.target.closest(".brxe-nav-nested.brx-open")){bricksNavNestedClose();var r=document.getElementById(n);r&&setTimeout((function(){r.scrollIntoView()}),200)}var i=document.getElementById(n);if(i){var o=i.classList.contains("woocommerce-Tabs-panel"),a=i.querySelector(".accordion-title-wrapper");if(a&&!o)return void a.click();var s=i.closest(".tab-title");s&&!o&&s.click();var c=e.target.closest(".brx-popup");c&&!c.contains(i)&&bricksClosePopup(c)}}var l=e.target.closest(".brx-submenu-toggle");if(l){var d="hover",u=l.closest("[data-toggle]");u&&(d=u.getAttribute("data-toggle")),l.closest(".brxe-nav-menu.show-mobile-menu")&&(d="click"),l.closest(".brxe-nav-nested.brx-open")&&(d="click");var p="hover"===d?e.target.closest("[aria-expanded]"):l.querySelector("button[aria-expanded]");if(0===e.detail||"click"===d||"both"===d||(p=null),p){bricksSubmenuToggle(p);var b=l.parentNode;b.classList.toggle("active"),setTimeout((function(){b.classList.contains("active")&&b.classList.add("open"),p.setAttribute("aria-expanded",b.classList.contains("open"))}),0)}}bricksQuerySelectorAll(document,'.brx-submenu-toggle > button[aria-expanded="true"]').forEach((function(t){var n=t.closest("li");n||(n=t.closest(".brxe-dropdown")),n&&!n.contains(e.target)&&(bricksSubmenuToggle(t),n.classList.remove("active"))}))}))}function bricksSubmenuPosition(){setTimeout((function(){var e=document.body.clientWidth;bricksQuerySelectorAll(document,".brx-submenu-toggle").forEach((function(t){var n=t.parentNode,r=n.querySelector(".brx-megamenu")||n.querySelector(".brx-dropdown-content")||n.querySelector("ul");if((r.querySelector('[aria-current="page"]')&&t.classList.add("aria-current"),!n.hasAttribute("data-static"))&&r)if(n.classList.contains("brx-has-megamenu")){var i=n.dataset.megaMenu,o=n.dataset.megaMenuVertical,a=document.body;if(i){var s=document.querySelector(i);s&&(a=s)}var c=n.getBoundingClientRect(),l=a.getBoundingClientRect();if(r.style.left="-".concat(c.left-l.left,"px"),r.style.minWidth="".concat(l.width,"px"),o){var d=document.querySelector(o);if(d){var u=d.getBoundingClientRect();r.style.top="".concat(c.height+u.bottom-c.bottom,"px")}}}else{r.classList.contains("brx-multilevel-overflow-right")&&r.classList.remove("brx-multilevel-overflow-right"),r.classList.contains("brx-submenu-overflow-right")&&r.classList.remove("brx-submenu-overflow-right"),r.classList.contains("brx-sub-submenu-overflow-right")&&r.classList.remove("brx-sub-submenu-overflow-right");var p=r.getBoundingClientRect(),b=p.width,v=p.right,f=Math.ceil(p.left);if(b>e)r.style.left="-".concat(f,"px"),r.style.minWidth="".concat(e,"px");else if(v>e){var m=r.closest(".brx-has-multilevel"),y=!n.parentNode.closest(".menu-item")&&!n.parentNode.closest(".brxe-dropdown");m?r.classList.add("brx-multilevel-overflow-right"):y?r.classList.add("brx-submenu-overflow-right"):r.classList.add("brx-sub-submenu-overflow-right")}else f<0&&(r.style.left="100%",r.style.right="auto")}}))}),arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}function bricksMultilevelMenu(){bricksQuerySelectorAll(document,".brxe-nav-nested.multilevel").forEach((function(e){var t=e.getAttribute("data-back-text");e.querySelectorAll(".brxe-dropdown").forEach((function(e){e.classList.add("brx-has-multilevel"),e.setAttribute("data-toggle","click"),e.setAttribute("data-back-text",t)}))})),bricksQuerySelectorAll(document,".brx-has-multilevel").forEach((function(e){var t=e.getAttribute("data-back-text")||"Back";bricksQuerySelectorAll(e,"ul").forEach((function(e,n){if(0!==n){var r=document.createElement("a");r.classList.add("brx-multilevel-back"),r.setAttribute("href","#"),r.innerText=t;var i=document.createElement("li");i.classList.add("menu-item"),i.appendChild(r),e.insertBefore(i,e.firstChild),r.addEventListener("click",(function(e){e.preventDefault();var t=e.target.closest(".active");if(t){t.classList.remove("open"),t.classList.remove("active");var n=t.querySelector(".brx-submenu-toggle > button");n&&n.setAttribute("aria-expanded",!1);var r=t.parentNode.closest(".open");if(r){r.classList.add("active");var i=r.querySelector("ul");if(i){var o=bricksGetFocusables(i);o.length&&o[0].focus()}}}}))}}))}))}function bricksNavMenuMobile(){var e=bricksQuerySelectorAll(document,".bricks-mobile-menu-toggle");if(e.length){var t=new MutationObserver((function(e){bricksSetVh(),e.forEach((function(e){e.target.classList.contains("show-mobile-menu")?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}))}));e.forEach((function(e){var n=e.closest(".brxe-nav-menu");t.observe(n,{attributes:!0,attributeFilter:["class"]})})),document.addEventListener("click",(function(e){if(mobileMenuToggle=e.target.closest(".bricks-mobile-menu-toggle"),mobileMenuToggle){var t=mobileMenuToggle.closest(".brxe-nav-menu");t.classList.toggle("show-mobile-menu");var n=t.classList.contains("show-mobile-menu");mobileMenuToggle.setAttribute("aria-expanded",n),n&&setTimeout((function(){var e=bricksGetFocusables(t.querySelector(".bricks-mobile-menu-wrapper"));e.length&&e[0].focus()}),10)}})),document.addEventListener("click",(function(e){var t=e.target.closest(".brxe-nav-menu");if(t)if(e.target.classList.contains("bricks-mobile-menu-overlay"))t.classList.remove("show-mobile-menu"),t.querySelector(".bricks-mobile-menu-toggle").setAttribute("aria-expanded",!1);else if(e.target.closest(".bricks-mobile-menu-wrapper")){var n="A"===e.target.tagName?e.target.getAttribute("href"):"";n.length>1&&n.includes("#")&&(t.classList.remove("show-mobile-menu"),t.querySelector(".bricks-mobile-menu-toggle").setAttribute("aria-expanded",!1))}})),document.addEventListener("keyup",(function(e){if("Escape"===e.key){var t=document.querySelector(".brxe-nav-menu.show-mobile-menu");if(t){t.classList.remove("show-mobile-menu");var n=t.querySelector("bricks-mobile-menu-toggle");n&&(n.setAttribute("aria-expanded",!1),setTimeout((function(){n.focus()}),10))}}}))}}function bricksGetFocusables(e){var t=e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])');return Array.prototype.filter.call(t,(function(e){return"none"!==window.getComputedStyle(e).display}))}var bricksIsFrontend,bricksPauseMediaFn=new BricksFunction({parentNode:document,selector:'video, audio, iframe[src*="youtube"], iframe[src*="vimeo"]',subscribeEvents:["bricks/popup/close"],forceReinit:!0,eachElement:function(e){if("VIDEO"!==e.tagName&&"AUDIO"!==e.tagName||!e.pause||"function"!=typeof e.pause){if("IFRAME"===e.tagName){var t=e.getAttribute("src"),n=t.includes("youtube"),r=n?{event:"command",func:"pauseVideo",args:""}:{method:"pause"};if(t.includes("vimeo")||n)return void e.contentWindow.postMessage(JSON.stringify(r),"*")}}else e.pause()},listenerHandler:function(e){var t;if(null!=e&&e.type&&"bricks/popup/close"===e.type){var n=null==e||null===(t=e.detail)||void 0===t?void 0:t.popupElement;n&&bricksPauseMediaFn.run({parentNode:n})}}});function bricksGetQueryResult(e,t){return new Promise((function(n,r){if(e){var i=window.bricksData.queryLoopInstances[e]||!1;if(i)if(null!=i&&i.isLoading)r("Query result is already loading");else{var o=window.bricksData.restApiUrl.concat("query_result"),a=[];if(window.bricksData.filterInstances&&Object.keys(window.bricksData.filterInstances).length>0)a=Object.values(window.bricksData.filterInstances).filter((function(t){return t.targetQueryId===e})).reduce((function(e,t){return"range"===t.filterType&&t.currentValue[0]==t.min&&t.currentValue[1]==t.max?(e[t.filterId]=["",""],e):(e[t.filterId]=t.currentValue,e)}),{});var s={postId:window.bricksData.postId,queryElementId:e,queryArgs:t||!1,pageFilters:window.bricksData.pageFilters||!1,filters:a,nonce:window.bricksData.nonce,baseUrl:window.bricksData.baseUrl};window.bricksData.queryLoopInstances[e].isLoading=1,document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:e}}));var c=new XMLHttpRequest;c.open("POST",o,!0),c.setRequestHeader("Content-Type","application/json; charset=UTF-8"),c.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),c.onreadystatechange=function(){if(c.readyState===XMLHttpRequest.DONE){var t=c.status;if(0===t||t>=200&&t<400){var i=JSON.parse(c.response);window.bricksData.queryLoopInstances[e].isLoading=0;var o=(null==i?void 0:i.error)||!1;o?(console.error("error: bricksGetQueryResult",o),r(o)):n(i),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:e}})),history.pushState("",document.title,window.bricksData.baseUrl),document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/completed",{detail:{queryId:e}}))}}},c.send(JSON.stringify(s))}else r("Query instance not found")}else r("No queryId provided")}))}function bricksDisplayQueryResult(e,t,n){var r,i=(null==n?void 0:n.html)||!1,o=(null==n?void 0:n.styles)||!1,a=(null==n?void 0:n.popups)||!1,s=(null==n?void 0:n.pagination)||!1,c=(null==n?void 0:n.updated_query)||!1,l=(null==n?void 0:n.updated_filters)||!1,d=window.bricksData.filterInstances[e]||!1,u=window.bricksData.queryLoopInstances[t]||!1,p=(null==u?void 0:u.resultsContainer)||!1;if(d&&u&&p){var b=p.querySelector(".bricks-gutter-sizer"),v=p.querySelector(".bricks-isotope-sizer"),f=p.querySelectorAll(".brxe-".concat(t,", .bricks-posts-nothing-found")),m=document.createNodeIterator(p,NodeFilter.SHOW_COMMENT,{acceptNode:function(e){return e.nodeValue==="brx-loop-start-".concat(t)}}).nextNode(),y=f.length>0||m;if(y&&p.querySelectorAll(".brxe-".concat(t,", .bricks-posts-nothing-found")).forEach((function(e){return e.remove()})),i)if(y){if(m){var g=i.match(/<\s*([a-z0-9]+)([^>]+)?>/i),k=null;(k=!g||"td"!==g[1]&&"tr"!==g[1]?document.createElement("div"):document.createElement("tbody")).innerHTML=i;var h=Array.from(k.childNodes);h.reverse(),h.forEach((function(e){var t,n;m.nextSibling?null===(t=m.parentNode)||void 0===t||t.insertBefore(e,m.nextSibling):null===(n=m.parentNode)||void 0===n||n.appendChild(e)})),k.remove()}}else p.insertAdjacentHTML("beforeend",i);if(b&&p.appendChild(b),v&&p.appendChild(v),document.querySelectorAll('.brx-popup[data-popup-loop="'.concat(t,'"]')).forEach((function(e){return e.remove()})),a&&document.body.insertAdjacentHTML("beforeend",a),o){var w=document.querySelector("#brx-query-styles-".concat(t));w||((w=document.createElement("style")).id="brx-query-styles-".concat(t),document.body.appendChild(w)),w.innerHTML=o}var x=Object.values(window.bricksData.filterInstances).filter((function(e){return e.targetQueryId===t&&"pagination"===e.filterType}));if(s){var L=document.createElement("div");L.innerHTML=s,L.style.display="none";var S=L.querySelector(".bricks-pagination");S&&x.forEach((function(e){var t,n=e.filterElement;null===(t=n.querySelector(".bricks-pagination"))||void 0===t||t.replaceWith(S),"hidden"===window.getComputedStyle(n).visibility&&(n.style.visibility="visible")})),L.remove()}else x.forEach((function(e){e.filterElement.style.visibility="hidden"}));if(void 0!==(null==c?void 0:c.count))document.querySelectorAll('span[data-brx-qr-count="'.concat(t,'"]')).forEach((function(e){e.innerHTML=c.count}));if(void 0!==(null==c||null===(r=c.query_vars)||void 0===r?void 0:r.paged)&&(window.bricksData.queryLoopInstances[t].page=parseInt(c.query_vars.paged)),void 0!==(null==c?void 0:c.max_num_pages)&&(window.bricksData.queryLoopInstances[t].maxPages=parseInt(c.max_num_pages)),l)for(var E in l){var I=l[E],A=window.bricksData.filterInstances[E]||!1;if(A&&"search"!==A.filterType){var T=document.createElement("div");T.innerHTML=I;var C=T.childNodes[0];A.filterElement.replaceWith(C),A.filterElement=C,T.remove()}}bricksUtils.hideOrShowLoadMoreButtons(t),document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/displayed",{detail:{queryId:t}})),window.bricksData.isotopeInstances[t]&&bricksUtils.updateIsotopeInstance(t),u.infiniteScroll&&setTimeout((function(){var e,n=Array.from(null===(e=u.resultsContainer)||void 0===e?void 0:e.querySelectorAll(".brxe-".concat(t,":not(.brx-popup)"))).pop();n&&(n.dataset.queryElementId=t,BricksIsInViewport(n)?bricksQueryLoadPage(n):new BricksIntersect({element:n,callback:function(e){return bricksQueryLoadPage(e)},once:!0,rootMargin:u.observerMargin}))}),250)}}function bricksSetVh(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--bricks-vh","".concat(e,"px"))}var bricksTimeouts={};document.addEventListener("DOMContentLoaded",(function(e){bricksIsFrontend=document.body.classList.contains("bricks-is-frontend"),bricksMultilevelMenu(),bricksNavMenuMobile(),bricksStickyHeader(),bricksOnePageNavigation(),bricksSkipLinks(),bricksFacebookSDK(),bricksSearchToggle(),bricksPopups(),bricksSwiper(),bricksSplide(),bricksPhotoswipe(),bricksPrettify(),bricksAccordion(),bricksAnimatedTyping(),bricksAudio(),bricksCountdown(),bricksCounter(),bricksTableOfContents(),bricksIsotope(),bricksPricingTables(),bricksVideo(),bricksLazyLoad(),bricksAnimation(),bricksPieChart(),bricksPostReadingProgressBar(),bricksProgressBar(),bricksForm(),bricksInitQueryLoopInstances(),bricksQueryPagination(),bricksInteractions(),bricksAlertDismiss(),bricksTabs(),bricksVideoOverlayClickDetector(),bricksBackgroundVideoInit(),bricksPostReadingTime(),bricksNavNested(),bricksOffcanvas(),bricksToggle(),bricksSubmenuListeners(),bricksSubmenuPosition(250),bricksAjaxLoader(),window.addEventListener("resize",(function(){Object.keys(bricksTimeouts).forEach((function(e){clearTimeout(bricksTimeouts[e])})),bricksIsFrontend?bricksTimeouts.bricksVh=setTimeout(bricksSetVh,250):(bricksTimeouts.bricksSwiper=setTimeout(bricksSwiper,250),bricksTimeouts.bricksSplide=setTimeout(bricksSplide,250)),bricksTimeouts.bricksSubmenuPosition=setTimeout(bricksSubmenuPosition,250),bricksTimeouts.bricksToggleDisplay=setTimeout(bricksToggleDisplay,100)})),setTimeout((function(){var e;(Array.isArray(null===(e=window.bricksData)||void 0===e?void 0:e.interactions)?window.bricksData.interactions:[]).find((function(e){return"scroll"===(null==e?void 0:e.trigger)}))&&document.addEventListener("scroll",bricksScrollInteractions)}),100)}));