"function"!=typeof window.vcexIsotopeGrids&&(window.vcexIsotopeGrids=function(t){if("function"==typeof Isotope){t&&t.childNodes||(t=document);var e=function(t){!function(t){var e,o,i,n,a,s;o=t.previousElementSibling,n=t.dataset.transitionDuration,a=t.dataset.layoutMode,o&&o.classList.contains("vcex-filter-links")&&(i=o),e="object"==typeof wpex_isotope_params?Object.assign({},wpex_isotope_params):{transformsEnabled:!0,transitionDuration:"0.4s",layoutMode:"masonry"},document.body.classList.contains("rtl")&&(e.isOriginLeft=!1),n&&(e.transitionDuration=parseFloat(n)+"s"),a&&(e.layoutMode=a),e.itemSelector=".vcex-isotope-entry",i&&((s=t.dataset.filter)&&!i.querySelectorAll('[data-filter="'+s+'"]').length&&(s=""),s&&(e.filter=s));var r=new Isotope(t,e);"function"==typeof imagesLoaded&&imagesLoaded(t).on("progress",(function(t,e){r.layout()}))}(t)};t.querySelectorAll(".vcex-isotope-grid").forEach((function(t){t.closest("[data-vc-stretch-content]")?setTimeout((function(){e(t)}),10):e(t)}))}}),"function"!=typeof window.vcexIsotopeGridFilter&&(window.vcexIsotopeGridFilter=function(){"function"==typeof Isotope&&(document.addEventListener("input",(function(t){var e=t.target,o=e.closest(".vcex-filter-links-select");if(o){var i=o.parentNode.querySelector('[data-filter="'+e.value+'"]');i&&i.click()}})),document.addEventListener("click",(function(t){var e,o=t.target,i=o.closest(".vcex-filter-links");if(i&&(e="a"===o.tagName.toLowerCase()?o:o.closest("a"))&&e.hasAttribute("data-filter")){var n=i.nextElementSibling;if(n&&n.classList.contains("vcex-isotope-grid")){var a=o.dataset.filter,s=Isotope.data(n);s&&(s.arrange({filter:a}),s.on("arrangeComplete",(function(){"function"==typeof VcWaypoint&&VcWaypoint.refreshAll(),"function"==typeof Waypoint&&Waypoint.refreshAll()}))),i.querySelectorAll("li").forEach((function(t){t.classList.remove("active")})),o.closest("li").classList.add("active");var r=i.closest(".vcex-module");if(r){var c=r.querySelector(".vcex-filter-links-select select");c&&(c.value=a||"*")}t.preventDefault(),t.stopPropagation()}}})))}),function(){var t=function(){vcexIsotopeGrids(),vcexIsotopeGridFilter()};"interactive"===document.readyState||"complete"===document.readyState?setTimeout(t,0):document.addEventListener("DOMContentLoaded",t,!1)}();