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 _readOnlyError(e){throw new TypeError('"'+e+'" is read-only')}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);n<t;n++)r[n]=e[n];return r}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:String(t)}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var BricksIntersect=_createClass((function e(){var t=arguments.length>0&&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.page<t.maxPages;r.forEach((function(e){i?e.el.classList.remove("brx-load-more-hidden"):e.el.classList.add("brx-load-more-hidden")}))}}},updateIsotopeInstance:function(e){var t,n,r=window.bricksData.isotopeInstances[e]||!1;r&&(null===(t=r.instance)||void 0===t||t.reloadItems(),null===(n=r.instance)||void 0===n||n.arrange())}},BricksFunction=function(){function e(t){var n,r,i,o,a=this;_classCallCheck(this,e),_defineProperty(this,"_customRun",null),_defineProperty(this,"_customEachElement",null),_defineProperty(this,"_customListenerHandler",null),_defineProperty(this,"_customAddEventListeners",null),_defineProperty(this,"_settings",{}),_defineProperty(this,"_initializedElements",new Set);var s={parentNode:document,selector:"",subscribeEvents:["bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/popup/loaded","bricks/ajax/query_result/displayed"],subscribejQueryEvents:[],forceReinit:!1,frontEndOnly:!1,windowVariableCheck:[],additionalActions:[]};Object.assign(s,t),this._settings=s,this._customRun=null!==(n=null==t?void 0:t.run)&&void 0!==n?n:null,this._customEachElement=null!==(r=null==t?void 0:t.eachElement)&&void 0!==r?r:null,this._customListenerHandler=null!==(i=null==t?void 0:t.listenerHandler)&&void 0!==i?i:null,this._customAddEventListeners=null!==(o=null==t?void 0:t.addEventListeners)&&void 0!==o?o:null,this.cleanUpInitElements=this.cleanUpInitElements.bind(this),this.run=this.run.bind(this),this.eachElement=this.eachElement.bind(this),this.listenerHandler=this.listenerHandler.bind(this),this.addEventListeners=this.addEventListeners.bind(this),document.addEventListener("DOMContentLoaded",(function(){if(a.addEventListeners(),a._settings.additionalActions.length){var e,t=_createForOfIteratorHelper(a._settings.additionalActions);try{for(t.s();!(e=t.n()).done;){var n=e.value;"function"==typeof n&&n.call(a)}}catch(e){t.e(e)}finally{t.f()}}}))}return _createClass(e,[{key:"functionCanRun",value:function(){if(this._settings.frontEndOnly&&!document.body.classList.contains("bricks-is-frontend"))return!1;if(this._settings.windowVariableCheck.length){var e,t=_createForOfIteratorHelper(this._settings.windowVariableCheck);try{for(t.s();!(e=t.n()).done;){var n,r=e.value.split("."),i=window,o=_createForOfIteratorHelper(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(!i.hasOwnProperty(a)){i=!1;break}i=i[a]}}catch(e){o.e(e)}finally{o.f()}if(!i)return!1}}catch(e){t.e(e)}finally{t.f()}}return!0}},{key:"cleanUpInitElements",value:function(){var e,t=_createForOfIteratorHelper(this._initializedElements);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.isConnected||this._initializedElements.delete(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"eachElement",value:function(e){this._customEachElement&&"function"==typeof this._customEachElement&&this._customEachElement.call(this,e)}},{key:"run",value:function(e){var t=this;if(this.functionCanRun())if(this.cleanUpInitElements(),this._customRun&&"function"==typeof this._customRun)this._customRun.call(this,e);else{var n=Object.assign({},this._settings);e&&Object.keys(e).forEach((function(t){n.hasOwnProperty(t)&&(n[t]=e[t])}));var r=bricksQuerySelectorAll(n.parentNode,n.selector);r.length&&r.forEach((function(e,r){if(n.forceReinit&&("function"==typeof n.forceReinit?n.forceReinit.call(t,e,r):n.forceReinit))return void t.eachElement(e,r);if(t._initializedElements.has(e)){var i=Array.from(t._initializedElements).find((function(t){return t===e}));i.isConnected||(t._initializedElements.delete(i),t._initializedElements.add(e,r),t.eachElement(e,r))}else t._initializedElements.add(e),t.eachElement(e,r)}))}}},{key:"listenerHandler",value:function(e){this._customListenerHandler&&"function"==typeof this._customListenerHandler?this._customListenerHandler.call(this,e):null!=e&&e.type&&(e.type,this.run())}},{key:"addEventListeners",value:function(){this.functionCanRun()&&(this._customAddEventListeners&&"function"==typeof this._customAddEventListeners?this._customAddEventListeners.call(this):(this._settings.subscribeEvents.length&&bricksUtils.subscribeEvents(document,this._settings.subscribeEvents,this.listenerHandler),this._settings.subscribejQueryEvents.length&&bricksUtils.subscribejQueryEvents(document,this._settings.subscribejQueryEvents,this.listenerHandler)))}}]),e}(),bricksLazyLoadFn=new BricksFunction({parentNode:document,selector:".bricks-lazy-hidden",subscribejQueryEvents:["updated_cart_totals"],eachElement:function(e){var t=window.bricksData.offsetLazyLoad||300;new BricksIntersect({element:e,callback:function(e){!function(e){if(e.classList.add("wait"),e.dataset.src&&(e.src=e.dataset.src,delete e.dataset.src),e.dataset.sizes&&(e.sizes=e.dataset.sizes,delete e.dataset.sizes),e.dataset.srcset&&(e.srcset=e.dataset.srcset,delete e.dataset.srcset),e.dataset.style){var t=e.getAttribute("style")||"";t+=e.dataset.style,e.setAttribute("style",t),e.classList.contains("splide__slide")||delete e.dataset.style}e.classList.remove("bricks-lazy-hidden"),e.classList.remove("wait"),e.classList.contains("bricks-lazy-load-isotope")&&bricksIsotope()}(e)},rootMargin:"".concat(t,"px")})},listenerHandler:function(e){setTimeout((function(){bricksLazyLoadFn.run()}),100)}});function bricksLazyLoad(){bricksLazyLoadFn.run()}var bricksAnimationFn=new BricksFunction({parentNode:document,selector:".brx-animated",removeAfterMs:3e3,eachElement:function(e){new BricksIntersect({element:e,callback:function(e){var t=e.dataset.animation;t&&(e.classList.add("brx-animate-".concat(t)),e.removeAttribute("data-animation"),e.addEventListener("animationend",(function(){var n;if(e.classList.remove("brx-animate-".concat(t)),e.classList.contains("brx-popup-content")&&t.includes("Out")){var r=e.closest(".brx-popup");r&&bricksClosePopup(r)}var i=null===(n=e.dataset)||void 0===n?void 0:n.animationId;if(i){var o=new CustomEvent("bricks/animation/end/".concat(i),{detail:{el:e}});document.dispatchEvent(o)}}),{once:!0}))}})},run:function(e){var t=bricksAnimationFn,n=(null==e?void 0:e.elementsToAnimate)||bricksQuerySelectorAll(t._settings.parentNode,t._settings.selector);t.removeAfterMs=(null==e?void 0:e.removeAfterMs)||t.removeAfterMs,n.forEach((function(e){t.eachElement(e)}))}});function bricksAnimation(){bricksAnimationFn.run()}var bricksInitQueryLoopInstancesFn=new BricksFunction({parentNode:document,selector:".brx-query-trail",subscribeEvents:["bricks/ajax/load_page/completed"],eachElement:function(e){var t,n,r,i,o,a,s=(null===(t=e.dataset)||void 0===t?void 0:t.observerMargin)||"1px",c=null===(n=e.dataset)||void 0===n?void 0:n.queryElementId,l=null===(r=e.dataset)||void 0===r?void 0:r.queryVars,d=e.classList.contains("bricks-isotope-sizer"),u=e.classList.contains("brx-infinite-scroll"),p=null===(i=e.dataset)||void 0===i?void 0:i.brxAjaxLoader,b=null===(o=e.dataset)||void 0===o?void 0:o.brxLiveSearch,v=document.querySelector(".brxe-".concat(c));a=v?null==v?void 0:v.parentNode:e.parentNode,window.bricksData.queryLoopInstances[c]={page:e.dataset.page,maxPages:e.dataset.maxPages,queryVars:l,observerMargin:s,infiniteScroll:u,isPostsElement:d,ajaxLoader:p,isLiveSearch:b,resultsContainer:a},window.bricksData.useQueryFilter&&(a.contains(e)?e.insertAdjacentHTML("beforebegin","\x3c!--brx-loop-start-".concat(c,"--\x3e")):a.insertAdjacentHTML("beforeend","\x3c!--brx-loop-start-".concat(c,"--\x3e")));var f=d?e.previousElementSibling:Array.from(document.querySelectorAll(".brxe-".concat(c,":not(.brx-popup)"))).pop();d||e.remove(),f&&u&&(f.dataset.queryElementId=c,new BricksIntersect({element:f,callback:function(e){return bricksQueryLoadPage(e)},once:1,rootMargin:s}))}});function bricksInitQueryLoopInstances(){bricksInitQueryLoopInstancesFn.run()}function bricksAjaxLoader(){var e=function(e){var t="";switch(e){case"default":t='<div class="brx-loading-default"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';break;case"ellipsis":t='<div class="brx-loading-ellipsis"><div></div><div></div><div></div><div></div></div>';break;case"ring":t='<div class="brx-loading-ring"><div></div><div></div><div></div><div></div></div>';break;case"dual-ring":t='<div class="brx-loading-dual-ring"></div>';break;case"facebook":t='<div class="brx-loading-facebook"><div></div><div></div><div></div></div>';break;case"roller":t='<div class="brx-loading-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';break;case"ripple":t='<div class="brx-loading-ripple"><div></div><div></div></div>';break;case"spinner":t='<div class="brx-loading-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>'}return t};document.addEventListener("bricks/ajax/start",(function(t){var n=t.detail.queryId||!1;if(n){var r=window.bricksData.queryLoopInstances[n]||!1;if(r){var i=JSON.parse((null==r?void 0:r.ajaxLoader)||!1),o=(null==i?void 0:i.animation)||!1;if(o){var a,s,c=!(null==i||!i.selector)&&document.querySelector(i.selector);if(!c)c=null!==(a=Array.from(null===(s=r.resultsContainer)||void 0===s?void 0:s.querySelectorAll(".brxe-".concat(n,":not(.brx-popup)"))).pop())&&void 0!==a?a:r.resultsContainer;if(c){var l=c.nodeName.toLowerCase(),d=document.createElement(l);d.classList.add("brx-loading-animation"),d.dataset.ajaxLoaderQueryId=n,null!=i&&i.color&&d.style.setProperty("--brx-loader-color",i.color),null!=i&&i.scale&&(d.style.transform="scale(".concat(i.scale,")")),d.innerHTML=e(o),c.insertAdjacentElement(null!=i&&i.selector?"beforeend":"afterend",d)}}}}})),document.addEventListener("bricks/ajax/end",(function(e){var t;(null!=e&&null!==(t=e.detail)&&void 0!==t&&t.queryId?document.querySelectorAll('.brx-loading-animation[data-ajax-loader-query-id="'.concat(e.detail.queryId,'"]')):[]).forEach((function(e){return e.remove()}))})),document.addEventListener("bricks/ajax/popup/start",(function(t){var n,r=t.detail.popupElement||!1;if(r){var i=JSON.parse((null===(n=r.dataset)||void 0===n?void 0:n.brxAjaxLoader)||!1),o=(null==i?void 0:i.animation)||!1;if(o){var a=!(null==i||!i.selector)&&document.querySelector(i.selector);if(a||(a=r.querySelector(".brx-popup-content")),a){var s=a.nodeName.toLowerCase(),c=document.createElement(s);c.classList.add("brx-loading-animation"),c.dataset.ajaxLoaderPopupId=r.dataset.popupId,null!=i&&i.color&&c.style.setProperty("--brx-loader-color",i.color),null!=i&&i.scale&&(c.style.transform="scale(".concat(i.scale,")")),c.innerHTML=e(o),a.insertAdjacentElement("afterbegin",c)}}}})),document.addEventListener("bricks/ajax/popup/end",(function(e){var t;(null!=e&&null!==(t=e.detail)&&void 0!==t&&t.popupId?document.querySelectorAll('.brx-loading-animation[data-ajax-loader-popup-id="'.concat(e.detail.popupId,'"]')):[]).forEach((function(e){return e.remove()}))}))}function bricksQueryLoadPage(e){return new Promise((function(t,n){var r,i=e.dataset.queryElementId,o=null===(r=window.bricksData.queryLoopInstances)||void 0===r?void 0:r[i];if(o&&(null==o||!o.isLoading)){var a=parseInt(o.page||1)+1,s=parseInt(o.maxPages||1);if(a>s)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,lang:window.bricksData.language||!1};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,lang:window.bricksData.language||!1},c=window.bricksData.restApiUrl.concat("query_result")}}window.bricksData.queryLoopInstances[i].isLoading=1,document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:i}})),"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(c=c.concat("?lang="+window.bricksData.language));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]&&setTimeout((function(){bricksUtils.updateIsotopeInstance(i)}),0),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,i=document.createElement("div");i.style.display="none",a.insertAdjacentElement("beforebegin",i),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 i.insertAdjacentElement("beforebegin",e)})),i.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 s=t.querySelector("#bricks-frontend-inline-inline-css"),c=document.querySelector("#bricks-frontend-inline-inline-css");c&&s&&c.replaceWith(s);var l=t.querySelector("#bricks-dynamic-data-inline-css"),d=document.querySelector("#bricks-dynamic-data-inline-css");d&&l&&d.replaceWith(l);var u=document.querySelectorAll('.brx-ajax-pagination[data-query-element-id="'.concat(o,'"]'));u.length>0&&u.forEach((function(e){var n=t.querySelector("#".concat(e.id,'.brx-ajax-pagination[data-query-element-id="').concat(o,'"]'));n&&e.replaceWith(n)})),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<i-1?document.querySelector(".bricks-one-page-".concat(t)).classList.add("active"):document.querySelector(".bricks-one-page-".concat(t)).classList.remove("active")}))}}function bricksSearchToggle(){bricksQuerySelectorAll(document,".brxe-search").forEach((function(e){var t=e.querySelector(".toggle"),n=e.querySelector(".bricks-search-overlay");if(t&&n){var r=n.previousElementSibling;document.addEventListener("keyup",(function(e){"Escape"===e.key&&("visible"===window.getComputedStyle(n).visibility&&(n.classList.remove("show"),r.focus(),r.setAttribute("aria-expanded",!1)))})),t.addEventListener("click",(function(){n.classList.toggle("show"),t.setAttribute("aria-expanded","false"===t.getAttribute("aria-expanded")),setTimeout((function(){e.querySelector("input[type=search]").focus()}),200)})),n.querySelector(".close").addEventListener("click",(function(){n.classList.remove("show"),r.focus(),r.setAttribute("aria-expanded",!1)}))}}))}var bricksAlertDismissFn=new BricksFunction({parentNode:document,selector:".brxe-alert svg",eachElement:function(e){e.addEventListener("click",(function(){e.closest(".brxe-alert").remove()}))}});function bricksAlertDismiss(){bricksAlertDismissFn.run()}var bricksTabsFn=new BricksFunction({parentNode:document,selector:".brxe-tabs, .brxe-tabs-nested",eachElement:function(e){var t=window.location.hash,n=e.querySelector(".tab-title"),r=n?Array.from(n.parentNode.children).filter((function(e){return e.classList.contains("tab-title")})):[],i=e.querySelector(".tab-pane"),o=i?Array.from(i.parentNode.children).filter((function(e){return e.classList.contains("tab-pane")})):[];if(r.length&&o.length){r.forEach((function(t,n){t.addEventListener("click",(function(){var i=null,a=null;r.forEach((function(e,r){r===n?(t.classList.add("brx-open"),i=t):e.classList.remove("brx-open")})),o.forEach((function(e,t){t===n?(e.classList.add("brx-open"),a=e):e.classList.remove("brx-open")}));var s=null!=t&&t.id&&!t.id.startsWith("brxe-")?"#".concat(t.id):"";s?history.replaceState(null,null,s):history.replaceState(null,null," "),document.dispatchEvent(new CustomEvent("bricks/tabs/changed",{detail:{elementId:e.getAttribute("data-script-id"),activeIndex:n,activeTitle:i,activePane:a}}))}))}));var a=0;if(t){var s=r.findIndex((function(e){return(null==e?void 0:e.id)&&!e.id.startsWith("brxe-")&&e.id===t.replace("#","")}));a=-1!==s?s:0}r[a]&&r[a].classList.add("brx-open"),o[a]&&o[a].classList.add("brx-open")}}});function bricksTabs(){bricksTabsFn.run()}var bricksVideoOverlayClickDetectorFn=new BricksFunction({parentNode:document,selector:".bricks-video-overlay, .bricks-video-overlay-icon, .bricks-video-preview-image",frontEndOnly:!0,eachElement:function(e){e.addEventListener("click",(function(e){var t=e.target.closest(".brxe-video");if(t){var n=t.querySelector(".bricks-video-preview-image");if(n){var r=document.createElement("iframe");_toConsumableArray(n.attributes).forEach((function(e){"class"!==e.name&&"style"!==e.name&&("data-iframe-src"!==e.name?r.setAttribute(e.name,e.value):r.setAttribute("src",e.value))})),n.replaceWith(r)}var i=t.querySelector("iframe");i&&i.getAttribute("src")&&(i.src+="&autoplay=1");var o=t.querySelector("video");o&&o.play()}}))}});function bricksVideoOverlayClickDetector(){bricksVideoOverlayClickDetectorFn.run()}var bricksBackgroundVideoInitFn=new BricksFunction({parentNode:document,selector:".bricks-background-video-wrapper",forceReinit:function(e,t){return!bricksIsFrontend},eachElement:function(e){if(!e.classList.contains("loaded")){var t,n=e.getAttribute("data-background-video-url");if(n){var r=parseInt(e.getAttribute("data-background-video-show-at-breakpoint"));if(!(r&&window.innerWidth<r)){var i=e.getAttribute("data-background-video-scale"),o=e.getAttribute("data-background-video-ratio")||"16:9",a=parseInt(o.split(":")[0]||16),s=parseInt(o.split(":")[1]||9),c=parseInt(e.getAttribute("data-background-video-start"))||0,l=parseInt(e.getAttribute("data-background-video-end"))||0,d=1==e.getAttribute("data-background-video-loop");l<c&&(l=0);var u,p=!1,b=!1,v=!1;if(-1!==n.indexOf("youtube.com")){if(p=!0,b=!0,-1!==n.indexOf("watch?v=")){var f=n.lastIndexOf("=");t=n.slice(f+1)}else if(-1!==n.indexOf("embed/")){var m=n.lastIndexOf("/");t=n.slice(m+1)}n=n.replace("watch?v=","embed/")}if(-1!==n.indexOf("vimeo.com")&&(p=!0,v=!0,-1===n.indexOf("player.vimeo.com/video")&&(n=n.replace("vimeo.com","player.vimeo.com/video"))),p){if(b){if(!document.querySelector('script[src="https://www.youtube.com/iframe_api"]')){var g=document.createElement("script");g.src="https://www.youtube.com/iframe_api";var y=document.getElementsByTagName("script")[0];y.parentNode.insertBefore(g,y)}u=document.createElement("div"),bricksIsFrontend&&e.querySelector("video")&&e.removeChild(e.querySelector("video")),e.appendChild(u);var k=setInterval((function(){if(window.YT&&YT.Player){clearInterval(k);var e=new YT.Player(u,{width:"640",height:"360",videoId:t,playerVars:{autoplay:1,controls:0,start:c||void 0,mute:1,rel:0,showinfo:0,modestbranding:1,cc_load_policy:0,iv_load_policy:3,autohide:0,loop:0,playlist:t,enablejsapi:1},events:{onReady:function(t){if(l)var n=setInterval((function(){e.getCurrentTime()>=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 E,S,I=null===(E=u.closest("[data-script-id]"))||void 0===E?void 0:E.getAttribute("data-script-id");d?u.hasAttribute("loop")||u.setAttribute("loop",""):u.removeAttribute("loop"),bricksIsFrontend||(u.currentTime=c||0),null!==(S=window.bricksData.videoInstances)&&void 0!==S&&S[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<c&&(l=c,o=c*a/s),u.style.width="".concat(o,"px"),u.style.height="".concat(l,"px")}}catch(e){r.e(e)}finally{r.f()}})).observe(e)}}}}});function bricksBackgroundVideoInit(){bricksBackgroundVideoInitFn.run()}var bricksPhotoswipeFn=new BricksFunction({parentNode:document,selector:".bricks-lightbox",windowVariableCheck:["PhotoSwipeLightbox"],eachElement:function(e){var t=e,n="A"===e.tagName?"":"a",r=e.getAttribute("data-pswp-id"),i=e.getAttribute("data-animation-type")||"zoom";r&&(n=bricksQuerySelectorAll(document,'[data-pswp-id="'.concat(r,'"]')));var o={mainClass:"brx",gallery:t,counter:!t.classList.contains("brxe-carousel"),children:n,pswpModule:PhotoSwipe5,closeSVG:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',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(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;t.style.transitionProperty="height, margin, padding",t.style.transitionDuration="".concat(n,"ms"),t.style.height="".concat(t.offsetHeight,"px"),t.offsetHeight,t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0;var r=t.parentNode;window.setTimeout((function(){t.style.display="none",t.style.removeProperty("height"),t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property"),r.classList.remove("brx-open"),document.dispatchEvent(new CustomEvent("bricks/accordion/close",{detail:{elementId:e.getAttribute("data-script-id"),closeItem:r}}))}),n)},i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return"none"===window.getComputedStyle(t).display?function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;t.style.removeProperty("display");var r=window.getComputedStyle(t).display;"none"===r&&(r="block"),t.style.display=r;var i=t.offsetHeight;t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0,t.offsetHeight,t.style.transitionProperty="height, margin, padding",t.style.transitionDuration="".concat(n,"ms"),t.style.height="".concat(i,"px"),t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom");var o=t.parentNode;window.setTimeout((function(){t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property"),o.classList.add("brx-open"),document.dispatchEvent(new CustomEvent("bricks/accordion/open",{detail:{elementId:e.getAttribute("data-script-id"),openItem:o}}))}),n)}(t,n):r(t,n)},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?e+l:o;if(e>=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){if(e.isValidationNeeded){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&&c<a||null!==s&&c>s)&&(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?(e.isValidationNeeded=!1,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)}))),setTimeout((function(){e.isValidationNeeded=!0}),300)}}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=function(){e.isValidationNeeded&&n(e)};e.addEventListener("input",t),e.addEventListener("blur",t),e.isValidationNeeded=!0}})),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<o.length;a++)if(o[a].name===t){r[l].splice(a,1);break}n.remove()}))}d.parentNode.insertBefore(n,d.nextSibling)},p=0;p<c;p++)u()}))})),e.addEventListener("submit",(function(n){var i;if(n.preventDefault(),bricksIsFrontend){var o=e.querySelector("[data-hcaptcha-widget-id]"),a=o?o.getAttribute("data-hcaptcha-widget-id"):"";if("function"==typeof(null===(i=window)||void 0===i||null===(i=i.hcaptcha)||void 0===i?void 0:i.execute)&&document.querySelector('.h-captcha[data-size="invisible"]'))hcaptcha.execute(a,{async:!0}).then((function(){bricksSubmitForm(t,e,r,null)})).catch((function(e){console.warn(e)}));else{var s=document.getElementById("recaptcha-".concat(t)),c=e.querySelector(".recaptcha-error");if(s){var l=s.getAttribute("data-key");if(l)try{grecaptcha.ready((function(){try{grecaptcha.execute(l,{action:"bricks_form_submit"}).then((function(n){c.classList.remove("show"),bricksSubmitForm(t,e,r,n)})).catch((function(t){c.classList.add("show"),e.querySelector(".alert").innerText="Google reCaptcha ".concat(t)}))}catch(t){c.classList.add("show"),e.querySelector(".alert").innerText="Google reCaptcha ".concat(t)}}))}catch(t){c.classList.add("show"),e.querySelector(".alert").innerText="Google reCaptcha ".concat(t)}else c.classList.add("show")}else bricksSubmitForm(t,e,r,null)}}}))}});function bricksForm(){bricksFormFn.run()}function bricksSubmitForm(e,t,n,r,i){var o=t.querySelector("button[type=submit]");o.classList.add("sending");var a=new FormData(t);a.append("action","bricks_form_submit"),a.append("postId",window.bricksData.postId),a.append("formId",e),a.append("recaptchaToken",r||""),a.append("nonce",window.bricksData.formNonce),a.append("referrer",location.toString());var s=t.getAttribute("data-global-id");s&&a.append("globalId",s);var c=function(e){n[e].forEach((function(t){a.append("".concat(e,"[]"),t,t.name)}))};for(var l in n)c(l);document.dispatchEvent(new CustomEvent("bricks/form/submit",{detail:{elementId:e,formData:a}}));var d=window.bricksData.ajaxUrl,u=new XMLHttpRequest;u.open("POST",d,!0),u.onreadystatechange=function(){var s,c,l,d,p,b,v=function(e){try{return JSON.parse(e)}catch(e){return null}}(u.response);if(window.bricksData.debug&&console.warn("bricks_form_submit",u,v),v&&4==(null==u?void 0:u.readyState)){var f,m,g,y;if("invalid_nonce"===(null==v||null===(s=v.data)||void 0===s?void 0:s.code)){if(!i)return void bricksRegenerateNonceAndResubmit(e,t,n,r)}else v.success&&"success"===(null===(m=v.data)||void 0===m?void 0:m.type)?f="bricks/form/success":v.success&&"error"!==(null===(g=v.data)||void 0===g?void 0:g.type)||(f="bricks/form/error");if(f&&document.dispatchEvent(new CustomEvent(f,{detail:{elementId:e,formData:a,res:v}})),!v.success||"mailchimp"!==(null===(c=v.data)||void 0===c?void 0:c.action)&&"sendgrid"!==(null===(l=v.data)||void 0===l?void 0:l.action)||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"bricksNewsletterSignup"})),v.success&&null!==(d=v.data)&&void 0!==d&&d.redirectTo)setTimeout((function(){window.location.href=v.data.redirectTo}),parseInt(null===(y=v.data)||void 0===y?void 0:y.redirectTimeout)||0);t.querySelector(".message")&&t.querySelector(".message").remove();var k=document.createElement("div");k.classList.add("message");var h,w=document.createElement("div");if(w.classList.add("text"),null!==(p=v.data)&&void 0!==p&&p.message)if(null!==(h=v.data.message)&&void 0!==h&&h.errors){var x=v.data.message.errors;Object.keys(x).forEach((function(e){w.innerHTML+=x[e][0]+"<br>"}))}else w.innerHTML=v.data.message;if(k.appendChild(w),null!==(b=v.data)&&void 0!==b&&b.info){var L=document.createElement("div"),E=document.createElement("div");E.innerHTML=v.data.info.join("<br>"),k.appendChild(L),L.appendChild(E)}else k.classList.add(v.data.type);if(t.appendChild(k),o.classList.remove("sending"),v.success){t.reset(),n={};var S=bricksQuerySelectorAll(t,".file-result");null!==S&&S.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",forceReinit:!0,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");if(bricksIsFrontend&&window.bricksData.isotopeInstances[n])bricksUtils.updateIsotopeInstance(n);else{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");if(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}))})),bricksIsFrontend){var c=e.querySelectorAll("img");if(c.length){var l=c.length,d=0,u=20,p=function(){Math.round(d/l*100)>=u&&(a.layout(),u+=20)};c.forEach((function(e){e.complete&&0!==e.naturalHeight?(d++,p()):(e.addEventListener("load",(function(){d++,p()})),e.addEventListener("error",(function(){d++,p()})))}))}}window.bricksData.isotopeInstances[n]={elementId:n,instance:a,layout:o,filters:s,options:i,element:e,elementName:r}}},listenerHandler:function(e){setTimeout((function(){bricksIsotopeFn.run()}),100)}});function bricksIsotope(){bricksIsotopeFn.run()}function bricksIsotopeListeners(){document.addEventListener("bricks/tabs/changed",(function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.activePane)||!1;if(n){var r=n.querySelectorAll(".bricks-layout-wrapper.isotope[data-script-id]");r.length&&r.forEach((function(e){var t=e.getAttribute("data-script-id");setTimeout((function(){bricksUtils.updateIsotopeInstance(t)}),0)}))}})),document.addEventListener("bricks/accordion/open",(function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.openItem)||!1;if(n){var r=n.querySelectorAll(".bricks-layout-wrapper.isotope[data-script-id]");r.length&&r.forEach((function(e){var t=e.getAttribute("data-script-id");setTimeout((function(){bricksUtils.updateIsotopeInstance(t)}),0)}))}}))}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<n.length;p++){var b=n[p];if(null!=b&&b.latitude&&null!=b&&b.longitude)f(b,{lat:parseFloat(b.latitude),lng:parseFloat(b.longitude)});else if(null!=b&&b.address){(new google.maps.Geocoder).geocode({address:b.address},v(b))}}null!=t&&t.type&&u.setMapTypeId(t.type)}function v(e){return function(t,n){if("OK"===n){var r=t[0].geometry.location;f(e,r)}else console.warn("Geocode error:",n)}}function f(e,t){i.map=u,i.position=t;var c=new google.maps.Marker(i);if(c.setMap(u),r.push(c),google.maps.event.addListener(c,"click",(function(){!function(e){var l;null!=i&&i.icon&&r.forEach((function(e){e.setIcon(i.icon)}));a.forEach((function(e){e.hide()})),null!==(l=o)&&void 0!==l&&l.url&&c.setIcon(o);var d,p="",b=(null==e?void 0:e.infoTitle)||!1,v=(null==e?void 0:e.infoSubtitle)||!1,f=(null==e?void 0:e.infoOpeningHours)||!1,m=(null==e?void 0:e.infoImages)||{};Array.isArray(m)||(m=Array.isArray(null===(d=m)||void 0===d?void 0:d.images)?m.images:[]);b&&(p+='<h3 class="title">'.concat(b,"</h3>"));v&&(p+='<p class="subtitle">'.concat(v,"</p>"));f&&(p+='<ul class="content">',(f=f.split("\n")).length&&f.forEach((function(e){p+="<li>".concat(e,"</li>")})),p+="</ul>");m.length&&(p+='<ul class="images bricks-lightbox">',m.forEach((function(t){p+="<li>",t.thumbnail&&t.src&&(p+='<a\n\t\t\t\t\t\t\t\t\tdata-pswp-src="'.concat(t.src,'"\n\t\t\t\t\t\t\t\t\tdata-pswp-width="').concat((null==t?void 0:t.width)||376,'"\n\t\t\t\t\t\t\t\t\tdata-pswp-height="').concat((null==t?void 0:t.height)||376,'"\n\t\t\t\t\t\t\t\t\tdata-pswp-id="').concat(e.id,'">'),p+='<img src="'.concat(t.thumbnail,'"/>'),p+="</a>"),p+="</li>"})),p+="</ul>");if(p){var g=parseInt(null==e?void 0:e.infoWidth)||300,y={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(g,"px")}};void 0!==window.jQuery&&(y.closeBoxURL="",y.content+='<span class="close">×</span>');var k=new InfoBox(y);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.hasAttribute("autoplay")&&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")||e.target.classList.contains("brx-popup"))&&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 g=Array.from(null===(r=m.resultsContainer)||void 0===r?void 0:r.querySelectorAll(".brxe-".concat(f,":not(.brx-popup)"))).pop();g&&(e.classList.contains("is-loading")||(e.classList.add("is-loading"),g.dataset.queryElementId=f,bricksQueryLoadPage(g).then((function(t){e.classList.remove("is-loading"),bricksUtils.hideOrShowLoadMoreButtons(f)}))));break;case"javascript":if(null!=t&&t.jsFunction){var y,k=null!==(y=window[t.jsFunction])&&void 0!==y&&y;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,a=Date.now();return Object.entries(r).forEach((function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];if("timeStorageInHours"===n){var s=parseInt(bricksStorageGetItem("localStorage","brx_popup_".concat(i,"_lastShown")));a<s+36e5*r&&(o=!0)}else{var c=bricksStorageGetItem(n,"brx_popup_".concat(i,"_total"));c=c?parseInt(c):0,o=o||c>=r}})),!o&&r.timeStorageInHours&&bricksStorageSetItem("localStorage","brx_popup_".concat(i,"_lastShown"),a.toString()),!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)return!1;var r=e.getAttribute("data-popup-show-on-widths"),i=r?r.split(","):[];if(i.length&&!i.some((function(e){var t=_slicedToArray(e.split("-").map((function(e){var t=Number(e);return isNaN(t)?(console.error("Invalid width value: ".concat(e)),0):t})),2),n=t[0],r=t[1];return 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)<r(c)}}else a=!0;n="and"===t?n&&a:n||a})),n}function bricksStorageGetItem(e,t){if(t){var n;try{switch(e){case"windowStorage":n=window.hasOwnProperty(t)?window[t]:null;break;case"sessionStorage":n=sessionStorage.getItem(t);break;case"localStorage":n=localStorage.getItem(t)}}catch(e){console.info("error:bricksStorageGetItem",e)}return n}}function bricksStorageSetItem(e,t,n){if(t)try{switch(e){case"windowStorage":window[t]=n;break;case"sessionStorage":sessionStorage.setItem(t,n);break;case"localStorage":localStorage.setItem(t,n)}}catch(e){console.info("error:bricksStorageSetItem",e)}}function bricksStorageRemoveItem(e,t){if(t)try{switch(e){case"windowStorage":delete window[t];break;case"sessionStorage":sessionStorage.removeItem(t);break;case"localStorage":localStorage.removeItem(t)}}catch(e){console.info("error:bricksStorageRemoveItem",e)}}function bricksNavNested(){if(bricksIsFrontend){var e=new MutationObserver((function(e){e.forEach((function(e){if("attributes"===e.type&&"class"===e.attributeName){var t=e.target;if(t.classList.contains("brx-open")){bricksSetVh(),document.body.classList.add("no-scroll");var n=t.querySelector(".brx-nav-nested-items button.brxe-toggle");if(n)setTimeout((function(){n.classList.add("is-active"),n.setAttribute("aria-expanded",!0),n.focus()}),10);else{var r=bricksGetFocusables(t);r.length&&r[0].focus()}}else{document.body.classList.remove("no-scroll");var i=t.dataset.toggleScriptId,o=document.querySelector('button[data-script-id="'.concat(i,'"]'));o&&(o.setAttribute("aria-expanded",!1),o.classList.remove("is-active"),o.focus())}}}))})),t=bricksQuerySelectorAll(document,".brxe-nav-nested");t.length&&(t.forEach((function(t){e.observe(t,{attributes:!0,attributeFilter:["class"]})})),document.addEventListener("keyup",(function(e){"Escape"===e.key&&bricksNavNestedClose()})),document.addEventListener("click",(function(e){var t=e.target.closest(".brxe-nav-nested"),n=e.target.closest(".brxe-toggle");t||n||bricksNavNestedClose()})))}}function bricksNavNestedClose(){bricksQuerySelectorAll(document,".brxe-nav-nested.brx-open").forEach((function(e){e.classList.add("brx-closing"),setTimeout((function(){e.classList.remove("brx-closing"),e.classList.remove("brx-open")}),200)}))}function bricksOffcanvas(){if(bricksIsFrontend){var e=bricksQuerySelectorAll(document,".brxe-offcanvas");if(e.length){var t=new MutationObserver((function(e){e.forEach((function(e){if("attributes"===e.type&&"class"===e.attributeName){var t=e.target,n=t.querySelector(".brx-offcanvas-inner"),r=n?r=1e3*parseFloat(window.getComputedStyle(n).getPropertyValue("transition-duration")):200;if(t.classList.contains("brx-open")){if(bricksSetVh(),"offset"===t.dataset.effect&&n){var i=t.getAttribute("data-direction"),o=window.getComputedStyle(n).getPropertyValue("transition");document.body.style.margin="0",document.body.style.transition=o.replace("transform","margin"),"top"===i?document.body.style.marginTop="".concat(n.offsetHeight,"px"):"bottom"===i?document.body.style.marginTop="-".concat(n.offsetHeight,"px"):"left"===i?(document.body.style.marginLeft="".concat(n.offsetWidth,"px"),document.body.style.overflowX="hidden"):"right"===i&&(document.body.style.marginLeft="-".concat(n.offsetWidth,"px"),document.body.style.overflowX="hidden")}t.dataset.noScroll&&document.body.classList.add("no-scroll");var a=bricksGetFocusables(t);a.length&&a[0].focus();var s=t.querySelector(".brx-offcanvas-inner > 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)}))}var bricksToggleFn=new BricksFunction({parentNode:document,selector:".brxe-toggle",frontEndOnly:!0,eachElement: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 bricksToggle(){bricksIsFrontend&&(bricksToggleDisplay(),bricksToggleFn.run())}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.firstChild&&i.firstChild.classList.contains("accordion-title-wrapper")?i.firstChild:null;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"),g=!n.parentNode.closest(".menu-item")&&!n.parentNode.closest(".brxe-dropdown");m?r.classList.add("brx-multilevel-overflow-right"):g?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){var t=e.target.closest(".bricks-mobile-menu-toggle");if(t){var n=t.closest(".brxe-nav-menu");n.classList.toggle("show-mobile-menu");var r=n.classList.contains("show-mobile-menu");t.setAttribute("aria-expanded",r),t.setAttribute("aria-label",r?window.bricksData.i18n.closeMobileMenu:window.bricksData.i18n.openMobileMenu),r&&setTimeout((function(){var e=bricksGetFocusables(n.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){var n=t.querySelector(".bricks-mobile-menu-toggle");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),n.setAttribute("aria-expanded",!1),n.setAttribute("aria-label",window.bricksData.i18n.openMobileMenu);else if(e.target.closest(".bricks-mobile-menu-wrapper")){var r="A"===e.target.tagName?e.target.getAttribute("href"):"";r.length>1&&r.includes("#")&&(t.classList.remove("show-mobile-menu"),n.setAttribute("aria-expanded",!1),n.setAttribute("aria-label",window.bricksData.i18n.openMobileMenu))}}})),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),n.setAttribute("aria-label",window.bricksData.i18n.openMobileMenu),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,lang:window.bricksData.language||!1};"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(o.concat("?lang="+window.bricksData.language),_readOnlyError("url")),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.updated_query)||!1,c=(null==n?void 0:n.updated_filters)||!1,l=window.bricksData.filterInstances[e]||!1,d=window.bricksData.queryLoopInstances[t]||!1,u=(null==d?void 0:d.resultsContainer)||!1;if(l&&d&&u){var p=u.querySelector(".bricks-gutter-sizer"),b=u.querySelector(".bricks-isotope-sizer"),v=u.querySelectorAll(".brxe-".concat(t,", .bricks-posts-nothing-found")),f=document.createNodeIterator(u,NodeFilter.SHOW_COMMENT,{acceptNode:function(e){return e.nodeValue==="brx-loop-start-".concat(t)}}).nextNode(),m=v.length>0||f;if(m&&u.querySelectorAll(".brxe-".concat(t,", .bricks-posts-nothing-found")).forEach((function(e){return e.remove()})),i)if(m){if(f){var g=i.match(/<\s*([a-z0-9]+)([^>]+)?>/i),y=null;(y=!g||"td"!==g[1]&&"tr"!==g[1]?document.createElement("div"):document.createElement("tbody")).innerHTML=i;var k=Array.from(y.childNodes);k.reverse(),k.forEach((function(e){var t,n;f.nextSibling?null===(t=f.parentNode)||void 0===t||t.insertBefore(e,f.nextSibling):null===(n=f.parentNode)||void 0===n||n.appendChild(e)})),y.remove()}}else u.insertAdjacentHTML("beforeend",i);if(p&&u.appendChild(p),b&&u.appendChild(b),document.querySelectorAll('.brx-popup[data-popup-loop="'.concat(t,'"]')).forEach((function(e){return e.remove()})),a&&document.body.insertAdjacentHTML("beforeend",a),o){var h=document.querySelector("#brx-query-styles-".concat(t));h||((h=document.createElement("style")).id="brx-query-styles-".concat(t),document.body.appendChild(h)),h.innerHTML=o}if(void 0!==(null==s?void 0:s.count))document.querySelectorAll('span[data-brx-qr-count="'.concat(t,'"]')).forEach((function(e){e.innerHTML=s.count}));if(void 0!==(null==s||null===(r=s.query_vars)||void 0===r?void 0:r.paged)&&(window.bricksData.queryLoopInstances[t].page=parseInt(s.query_vars.paged)),void 0!==(null==s?void 0:s.max_num_pages)&&(window.bricksData.queryLoopInstances[t].maxPages=parseInt(s.max_num_pages)),c)for(var w in c){var x=c[w],L=window.bricksData.filterInstances[w]||!1;if(L&&"search"!==L.filterType){var E=document.createElement("div");E.innerHTML=x;var S=E.childNodes[0];L.filterElement.replaceWith(S),L.filterElement=S,E.remove()}}bricksUtils.hideOrShowLoadMoreButtons(t),document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/displayed",{detail:{queryId:t}})),window.bricksData.isotopeInstances[t]&&bricksUtils.updateIsotopeInstance(t),d.infiniteScroll&&setTimeout((function(){var e,n=Array.from(null===(e=d.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:d.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(),bricksPricingTables(),bricksVideo(),bricksLazyLoad(),bricksAnimation(),bricksPieChart(),bricksPostReadingProgressBar(),bricksProgressBar(),bricksForm(),bricksInitQueryLoopInstances(),bricksQueryPagination(),bricksInteractions(),bricksAlertDismiss(),bricksTabs(),bricksVideoOverlayClickDetector(),bricksBackgroundVideoInit(),bricksPostReadingTime(),bricksNavNested(),bricksOffcanvas(),bricksToggle(),bricksSubmenuListeners(),bricksSubmenuPosition(250),bricksAjaxLoader(),bricksIsotope(),bricksIsotopeListeners(),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)}));
