!function(){"use strict";var e={};function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var r=window.ctEvents,o=e.n(r),i=window.ctFrontend;var c=function(e){return function(e,t,n){var r=new RegExp("([?&])"+t+"=.*?(&|#|$)","i");if(e.match(r))return e.replace(r,"$1"+t+"="+n+"$2");var o="";-1!==e.indexOf("#")&&(o=e.replace(/.*#/,"#"),e=e.replace(/#.*/,""));var i=-1!==e.indexOf("?")?"&":"?";return e+i+t+"="+n+o}(e.href,"blocksy_prefix",e.closest("[data-prefix]").dataset.prefix)},a=function(e){f(c(e)).then((function(e){return e.text()})).then((function(t){var r=document.createElement("div");r.innerHTML=t;var i=r.querySelector("#main .entries");if(r.querySelector("title")&&(document.title=r.querySelector("title").innerText),r.querySelector(".hero-section .entry-header")&&document.querySelector(".hero-section .entry-header")){var c=document.querySelector(".hero-section .entry-header");c.insertAdjacentHTML("afterend",r.querySelector(".hero-section .entry-header").outerHTML),c.remove()}var a=document.querySelector("#main .entries");i?(setTimeout((function(){a.innerHTML=i.innerHTML,n(a.children).map((function(e){e.dataset.reveal||(e.dataset.reveal="no")}));var e=document.querySelector("#main .ct-pagination");e&&e.infiniteScroll&&e.infiniteScroll.destroy(),setTimeout((function(){e&&e.remove(),r.querySelector("#main .ct-pagination")&&a.after(r.querySelector("#main .ct-pagination")),o().trigger("blocksy:frontend:init")}))}),200),e.closest(".ct-posts-shortcode")||history.pushState({},"",e.href)):a.innerHTML=""})).catch((function(e){console.warn("Something went wrong.",e)}))},u={},l=[],f=function(e){return u[e]?new Promise((function(t){t(u[e]),window.ct_customizer_localizations||(u[e]=u[e].clone())})):new Promise((function(t){return fetch(e).then((function(n){t(n),window.ct_customizer_localizations||(u[e]=n.clone())}))}))},s=function(e){e.preloaded||(e.preloaded=!0,f(c(e)).then((function(e){return e.text()})).then((function(){n(l).map((function(e){u[c(e)]&&(a(e),l=l.filter((function(t){return t!==e})))}))})))};(0,i.registerDynamicChunk)("blocksy_adv_cpt_filtering",{mount:function(e,t){"click"===t.event.type?(s(e),function(e){e.classList.contains("active")||(e.closest(".ct-dynamic-filter").querySelector(".active")&&e.closest(".ct-dynamic-filter").querySelector(".active").classList.remove("active"),e.classList.add("active"),u[c(e)]?a(e):l.push(e))}(e)):n(document.querySelectorAll(".ct-dynamic-filter a")).map((function(e){return s(e)}))}})}();