Si apre in una nuova scheda
<!-- Extracted from pasted content that could not be mapped to a specific element or class. -->
<link rel="stylesheet" href="https://motion.brickslibrary.com/wp-content/themes/bricks/assets/css/frontend-layer.min.css?ver=1788566244">
<link rel="stylesheet" href="https://motion.brickslibrary.com/wp-content/themes/bricks-child/style.css?ver=1758260779">
<link rel="stylesheet" href="https://motion.brickslibrary.com/wp-content/themes/bricks/assets/css/libs/themify-icons-layer.min.css?ver=1788566244">
<link rel="stylesheet" href="https://motion.brickslibrary.com/wp-content/themes/bricks/assets/css/libs/animate-layer.min.css?ver=1788566244">
/* Extracted from pasted content that could not be mapped to a specific element or class. */
body {
  visibility: hidden;
}

body {
  visibility: inherit;
}

img:is([sizes=auto i],[sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px;
}

.wp-block-button__link {
  color: #fff;
  background-color: #32373c;
  border-radius: 9999px;
  box-shadow: none;
  text-decoration: none;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  font-size: 1.125em;
}

.wp-block-file__button {
  background: #32373c;
  color: #fff;
  text-decoration: none;
}

.wp-block-button {
  --wp--preset--dimension--25: 25%;
  --wp--preset--dimension--50: 50%;
  --wp--preset--dimension--75: 75%;
  --wp--preset--dimension--100: 100%;
}

:where(body) {
  margin: 0;
}

:where(.is-layout-flex) {
  gap: 0.5em;
}

:where(.is-layout-grid) {
  gap: 0.5em;
}

body .is-layout-flex {
  display: flex;
}

.is-layout-flex {
  flex-wrap: wrap;
  align-items: center;
}

.is-layout-flex > :is(*, div) {
  margin: 0;
}

body .is-layout-grid {
  display: grid;
}

.is-layout-grid > :is(*, div) {
  margin: 0;
}

body {
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}

:root :where(.wp-element-button, .wp-block-button__link) {
  background-color: #32373c;
  border-width: 0;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  padding-top: calc(0.667em + 2px);
  padding-right: calc(1.333em + 2px);
  padding-bottom: calc(0.667em + 2px);
  padding-left: calc(1.333em + 2px);
  text-decoration: none;
  text-transform: inherit;
}

.has-black-color {
  color: var(--wp--preset--color--black) !important;
}

.has-cyan-bluish-gray-color {
  color: var(--wp--preset--color--cyan-bluish-gray) !important;
}

.has-white-color {
  color: var(--wp--preset--color--white) !important;
}

.has-pale-pink-color {
  color: var(--wp--preset--color--pale-pink) !important;
}

.has-vivid-red-color {
  color: var(--wp--preset--color--vivid-red) !important;
}

.has-luminous-vivid-orange-color {
  color: var(--wp--preset--color--luminous-vivid-orange) !important;
}

.has-luminous-vivid-amber-color {
  color: var(--wp--preset--color--luminous-vivid-amber) !important;
}

.has-light-green-cyan-color {
  color: var(--wp--preset--color--light-green-cyan) !important;
}

.has-vivid-green-cyan-color {
  color: var(--wp--preset--color--vivid-green-cyan) !important;
}

.has-pale-cyan-blue-color {
  color: var(--wp--preset--color--pale-cyan-blue) !important;
}

.has-vivid-cyan-blue-color {
  color: var(--wp--preset--color--vivid-cyan-blue) !important;
}

.has-vivid-purple-color {
  color: var(--wp--preset--color--vivid-purple) !important;
}

.has-black-background-color {
  background-color: var(--wp--preset--color--black) !important;
}

.has-cyan-bluish-gray-background-color {
  background-color: var(--wp--preset--color--cyan-bluish-gray) !important;
}

.has-white-background-color {
  background-color: var(--wp--preset--color--white) !important;
}

.has-pale-pink-background-color {
  background-color: var(--wp--preset--color--pale-pink) !important;
}

.has-vivid-red-background-color {
  background-color: var(--wp--preset--color--vivid-red) !important;
}

.has-luminous-vivid-orange-background-color {
  background-color: var(--wp--preset--color--luminous-vivid-orange) !important;
}

.has-luminous-vivid-amber-background-color {
  background-color: var(--wp--preset--color--luminous-vivid-amber) !important;
}

.has-light-green-cyan-background-color {
  background-color: var(--wp--preset--color--light-green-cyan) !important;
}

.has-vivid-green-cyan-background-color {
  background-color: var(--wp--preset--color--vivid-green-cyan) !important;
}

.has-pale-cyan-blue-background-color {
  background-color: var(--wp--preset--color--pale-cyan-blue) !important;
}

.has-vivid-cyan-blue-background-color {
  background-color: var(--wp--preset--color--vivid-cyan-blue) !important;
}

.has-vivid-purple-background-color {
  background-color: var(--wp--preset--color--vivid-purple) !important;
}

.has-black-border-color {
  border-color: var(--wp--preset--color--black) !important;
}

.has-cyan-bluish-gray-border-color {
  border-color: var(--wp--preset--color--cyan-bluish-gray) !important;
}

.has-white-border-color {
  border-color: var(--wp--preset--color--white) !important;
}

.has-pale-pink-border-color {
  border-color: var(--wp--preset--color--pale-pink) !important;
}

.has-vivid-red-border-color {
  border-color: var(--wp--preset--color--vivid-red) !important;
}

.has-luminous-vivid-orange-border-color {
  border-color: var(--wp--preset--color--luminous-vivid-orange) !important;
}

.has-luminous-vivid-amber-border-color {
  border-color: var(--wp--preset--color--luminous-vivid-amber) !important;
}

.has-light-green-cyan-border-color {
  border-color: var(--wp--preset--color--light-green-cyan) !important;
}

.has-vivid-green-cyan-border-color {
  border-color: var(--wp--preset--color--vivid-green-cyan) !important;
}

.has-pale-cyan-blue-border-color {
  border-color: var(--wp--preset--color--pale-cyan-blue) !important;
}

.has-vivid-cyan-blue-border-color {
  border-color: var(--wp--preset--color--vivid-cyan-blue) !important;
}

.has-vivid-purple-border-color {
  border-color: var(--wp--preset--color--vivid-purple) !important;
}

.has-vivid-cyan-blue-to-vivid-purple-gradient-background {
  background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;
}

.has-light-green-cyan-to-vivid-green-cyan-gradient-background {
  background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;
}

.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background {
  background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;
}

.has-luminous-vivid-orange-to-vivid-red-gradient-background {
  background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;
}

.has-very-light-gray-to-cyan-bluish-gray-gradient-background {
  background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;
}

.has-cool-to-warm-spectrum-gradient-background {
  background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;
}

.has-blush-light-purple-gradient-background {
  background: var(--wp--preset--gradient--blush-light-purple) !important;
}

.has-blush-bordeaux-gradient-background {
  background: var(--wp--preset--gradient--blush-bordeaux) !important;
}

.has-luminous-dusk-gradient-background {
  background: var(--wp--preset--gradient--luminous-dusk) !important;
}

.has-pale-ocean-gradient-background {
  background: var(--wp--preset--gradient--pale-ocean) !important;
}

.has-electric-grass-gradient-background {
  background: var(--wp--preset--gradient--electric-grass) !important;
}

.has-midnight-gradient-background {
  background: var(--wp--preset--gradient--midnight) !important;
}

.has-small-font-size {
  font-size: var(--wp--preset--font-size--small) !important;
}

.has-medium-font-size {
  font-size: var(--wp--preset--font-size--medium) !important;
}

.has-large-font-size {
  font-size: var(--wp--preset--font-size--large) !important;
}

.has-x-large-font-size {
  font-size: var(--wp--preset--font-size--x-large) !important;
}

body .tox.tox-silver-sink.tox-tinymce-aux, body .tox.tox-tinymce-aux, body .tox-shadowhost {
  z-index: 10001;
}

html {
  scroll-behavior: smooth;
}

html {
  background-color: var(--bg-ultra-dark);
}

body {
  color: var(--text-dark);
  background: none;
}

h1 {
  line-height: 1.2;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

h2 {
  line-height: 1.2;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

h3 {
  line-height: 1.2;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

h4 {
  line-height: 1.2;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

h5 {
  line-height: 1.2;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

h6 {
  line-height: 1.2;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-dark);
}

body.bricks-is-frontend :focus-visible {
  outline: none;
}

@supports not selector(:focus-visible) { body.bricks-is-frontend :focus {outline: none; }}

.brxe-container {
  width: 90rem;
  padding-top: 4rem;
  padding-right: 5%;
  padding-bottom: 4rem;
  padding-left: 5%;
}

.woocommerce main.site-main {
  width: 90rem;
}

:root .bricks-button[class*="primary"] {
  color: var(--white);
  border: 1px solid var(--primary);
  border-radius: var(--border-radius-primary);
}

:root .bricks-button[class*="primary"]:not(.outline) {
  background-color: var(--primary);
}

.bricks-button {
  font-weight: 500;
}

.bricks-button.md {
  padding-top: 0.8rem;
  padding-right: 1.6rem;
  padding-bottom: 0.8rem;
  padding-left: 1.6rem;
}

:root .bricks-button[class*="secondary"] {
  border: 1px solid var(--text-dark);
  border-radius: var(--border-radius-primary);
  color: var(--text-dark);
}

:root .bricks-button[class*="secondary"]:not(.outline) {
  background-color: rgba(255, 0, 0, 0);
}

:root .bricks-button[class*="secondary"]:hover {
  border-color: var(--heading-dark);
  color: var(--heading-dark);
}

:root .bricks-button[class*="primary"]:not(.outline):hover {
  background-color: var(--primary-hover);
}

:root .bricks-button[class*="primary"]:hover {
  border-color: var(--primary-hover);
}

:root .bricks-button[class*="light"]:where(:not(.bricks-lightbox)) {
  border-radius: var(--border-radius-primary);
}

@media (min-width: 600px) {
  h1.brxe-heading {
    font-size: 2.2rem;
  }
}

@media (min-width: 801px) {
  h1.brxe-heading {
    font-size: 3rem;
  }

  h2.brxe-heading {
    font-size: 2.4rem;
  }

  h3.brxe-heading {
    font-size: 1.8rem;
  }
}

@media (min-width: 1025px) {
  h1.brxe-heading {
    font-size: 3.6rem;
  }

  .brxe-container {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.popup-two--close-icon {
  font-size: 1.5rem;
  color: var(--heading-dark);
  fill: var(--heading-dark);
  padding-top: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.5rem;
  transition: var(--transition-primary);
}

.popup-two--close-icon:hover {
  color: var(--primary-hover);
  fill: var(--primary-hover);
}

.popup-one--close-icon {
  font-size: 1rem;
  color: var(--white);
  fill: var(--white);
}

:root[data-brx-theme="dark"] {
  --primary: #007fff;
  --primary-hover: #0059b2;
  --primary-light: #99ccf3;
  --heading-light: #e7ebf0;
  --heading-dark: #132f4c;
  --text-light: #cdd2d7;
  --text-dark: #2d3843;
  --bg-light: #f8fafb;
  --bg-medium: #f3f6f9;
  --bg-ultra-dark: #102742;
  --bg-dark: #0d2d4f;
  --border-light: #e0e3e7;
  --border-dark: #1e4976;
  --white: #ffffff;
  --black: #000000;
}

.brxe-popup-2867 .brx-popup-content {
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  width: 100vw;
}

.brxe-popup-2687.brx-popup .brx-popup-backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

.brxe-popup-2687 .brx-popup-content {
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  background-color: rgba(255, 255, 255, 0);
}

.brxe-popup-2687.brx-popup {
  padding-right: 5%;
  padding-left: 5%;
}

@media (min-width: 801px) {
  .brxe-popup-2687 .brx-popup-content {
    width: 45rem;
  }
}

#bricks-toolbar .new-tab {
  display: flex!important;
}

.hero-four {
  height: calc(var(--vh,1vh) * 100);
}

.brx-popup-content {
  overflow: visible;
}
// Extracted from pasted content. Enable execution only if you trust this code.
window.MOTIONPAGE_FRONT={version:"3.2.10"}
// Extracted from pasted content. Enable execution only if you trust this code.
document.addEventListener("DOMContentLoaded",()=>(document.body.style.visibility="inherit"));
// Extracted from pasted content. Enable execution only if you trust this code.
(function() { let savedTheme = localStorage.getItem("brx_mode"); let defaultMode = "light"; let currentTheme = savedTheme || defaultMode; if (currentTheme === "auto") { let prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)").matches; document.documentElement.dataset.brxTheme = prefersDarkScheme ? "dark" : "light"; } else { document.documentElement.dataset.brxTheme = currentTheme; } })(); //# sourceURL=bricks-dl-mode-js-after
Scroll

Our process

Research & Discovery

Don't over think it. Can you slack it to me? incentivization eat our own dog food, and can you slack it to me?, but i don't want to drain the whole swamp, i just want to shoot some alligators herding

Ideation & Strategy

Paddle on both sides old boys club, for zoom meeting at 2:30 today, organic growth. Can you champion this run it up the flagpole, ping the boss and circle back, nor on your plate big picture, for i am dead inside, but sea change.

Design & Development

Enough to wash your face time to open the kimono, for run it up the flag pole target rich environment, or peel the onion fire up your browser, but we need to harvest synergy effects. Let's circle back to that first-order optimal strategies.

Go Live

Cloud strategy shelfware, yet get buy-in, net net workflow ecosystem guerrilla marketing. Bottleneck mice cross-pollination you gotta smoke test your hypothesis gain alignment. Screw the pooch prioritize these line items.

Scroll
// Extracted from pasted content. Enable execution only if you trust this code.
var bricksData = {"debug":"","locale":"en_US","ajaxUrl":"https://motion.brickslibrary.com/wp-admin/admin-ajax.php","restApiUrl":"https://motion.brickslibrary.com/wp-json/bricks/v1/","nonce":"2b1dc0f8f7","formNonce":"49b5ad5f84","wpRestNonce":"3c671f06dc","postId":"3773","recaptchaIds":[],"animatedTypingInstances":[],"videoInstances":[],"splideInstances":[],"tocbotInstances":[],"swiperInstances":[],"queryLoopInstances":[],"interactions":[],"filterInstances":[],"isotopeInstances":[],"activeFiltersCountInstances":[],"googleMapInstances":[],"leafletMapInstances":[],"choicesInstances":[],"facebookAppId":"","headerPosition":"top","offsetLazyLoad":"300","baseUrl":"https://motion.brickslibrary.com/motion-examples/horizontal-scroll-one/","useQueryFilter":"","pageFilters":[],"language":"","wpmlUrlFormat":"","multilangPlugin":"","i18n":{"choicesjs":{"noChoicesText":"No choices to choose from","noResultsText":"No results found","removeItemIconText":"Remove item","search":"Search"},"close":"Close","closeMobileMenu":"Close mobile menu","firstSlide":"Go to first slide","hidePassword":"Hide password","lastSlide":"Go to last slide","locationContent":"Location content","locationSubtitle":"Location subtitle","locationTitle":"Location title","nextSlide":"Next slide","noLocationsFound":"No locations found","openAccordion":"Open accordion","openMobileMenu":"Open mobile menu","pause":"Pause autoplay","play":"Start autoplay","prevSlide":"Previous slide","queryUpdated":"Results updated.","queryUpdatedPage":"Results updated. Page %s.","remove":"Remove","showPassword":"Show password","slideX":"Go to slide %s","splide":{"carousel":"carousel","select":"Select a slide to show","slide":"slide","slideLabel":"%s of %s"},"swiper":{"paginationBulletMessage":"Go to slide {{index}}","slideLabelMessage":"{{index}} / {{slidesLength}}"},"zoom":"Zoom"},"selectedFilters":[],"filterNiceNames":[],"bricksGoogleMarkerScript":"https://motion.brickslibrary.com/wp-content/themes/bricks/assets/js/libs/bricks-google-marker.min.js?v=2.3.12","infoboxScript":"https://motion.brickslibrary.com/wp-content/themes/bricks/assets/js/libs/infobox.min.js?v=2.3.12","markerClustererScript":"https://motion.brickslibrary.com/wp-content/themes/bricks/assets/js/libs/markerclusterer.min.js?v=2.3.12","mainQueryId":"","activeSearchTemplate":"0","defaultMode":"light"}; //# sourceURL=bricks-scripts-js-extra
// Extracted from pasted content. Enable execution only if you trust this code.
window._$W = window;document.addEventListener("DOMContentLoaded",()=>{document.body.style.overflowX="hidden";gsap.registerPlugin({name:"transition",init(t,e,r){return this.target=t,this.tween=r,this.reverting=gsap.core.reverting||function(){},!!t.style},render(t,{target:e,tween:r,reverting:i}){e.style.transition=(1===r.progress()||!r._time&&i())&&"isFromStart"!==r.data?"":"unset"}});gsap.defaults({duration:1,transition:"unset"});gsap.config({nullTargetWarn:false});if(!matchMedia("(prefers-reduced-motion: reduce)").matches){window._mp_1683532243=gsap.timeline().to(".text-five--wrapper",{ease:"none",repeat:-1,xPercent:-100,duration:20},0);if(matchMedia("screen and (min-width: 992px)").matches){_$W._mp_1683546404=gsap.timeline({scrollTrigger:{scrub:!0,trigger:".horizontal-scroll-one",start:"top",end:"bottom",pin:".horizontal-scroll-one",pinSpacing:"margin"}}).to(".horizontal-scroll-one",{ease:"none",x:"-150vw",duration:10},0);}_$W._mp_1722582020=gsap.timeline().to(".mega-menu-six--header__toggle-line-mid",{autoAlpha:0,duration:.2},0).to(".mega-menu-six--header__toggle-line-top",{rotation:-45,y:"0.32rem",duration:.2},0).to(".mega-menu-six--header__toggle-line-bottom",{rotation:45,y:"-0.315rem",duration:.2},0).fromTo(".mega-menu-six",{scale:1.3,rotation:-7,yPercent:-150},{scale:1,rotation:0,ease:"power4",yPercent:0},0).to("main",{scale:1.5,rotation:7,ease:"power4",yPercent:50,position:"absolute",inset:0},.1).pause(),gsap.utils.toArray(".mega-menu-six--header__toggle").forEach(item=>{null==item||item.addEventListener("click",e=>{e.preventDefault(),e.detail&&1!==e.detail||(1===_mp_1722582020.progress()?_mp_1722582020.reverse():_mp_1722582020.play())})});_$W._mp_1758332749=gsap.timeline().to(".header-4--trigger__line-mid",{autoAlpha:0,duration:.2},0).to(".header-4--trigger__line-top",{rotation:-45,y:"4.75px",duration:.2},0).to(".header-4--trigger__line-bottom",{rotation:45,y:"-4.75px",duration:.2},0).to(".header-4--nav__bg",{scale:1.04,ease:"power1.inOut",height:"13.5rem",duration:.4},0).to(".header-4--nav-list-item",{stagger:{from:"start",each:.05},ease:"none",autoAlpha:1,visibility:"visible",duration:.3},.1).pause(),gsap.utils.toArray(".header-4--trigger").forEach(item=>{null==item||item.addEventListener("click",e=>{e.preventDefault(),e.detail&&1!==e.detail||(1===_mp_1758332749.progress()?_mp_1758332749.reverse():_mp_1758332749.play())})});}_$W._mp_refresher=(t=0)=>{ScrollTrigger&&setTimeout((()=>{ScrollTrigger.sort(),ScrollTrigger.getAll().forEach((r)=>r.refresh())}),t)},addEventListener("load",(()=>_mp_refresher(92)));}); //# sourceURL=mp-ScrollTrigger-js-after
=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 ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t
e.length)&&(t=e.length);for(var n=0,r=Array(t);n
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=!1,s=new IntersectionObserver(function(e,t){e.forEach(function(e){var s="leaveView"===o?!e.isIntersecting&&a:e.isIntersecting;"leaveView"===o&&e.isIntersecting&&(a=!0),s&&(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))},getQueryTrailSelectorId:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||(e&&e.includes("-")?e.split("-")[0]:e)},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=parseInt(t.page)
0&&i.instance.remove(o),i.instance.layout();var a=i.instance.element.querySelectorAll(":scope > *:not(.bricks-isotope-sizer):not(.bricks-gutter-sizer)");return a.length>0&&a.forEach(function(e){i.instance.items.find(function(t){return t.element===e})||i.instance.appended(e)}),void bricksUtils.updateIsotopeOnImageLoad(e)}null===(t=i.instance)||void 0===t||t.reloadItems(),null===(n=i.instance)||void 0===n||n.layout(),null===(r=i.instance)||void 0===r||r.arrange(),bricksUtils.updateIsotopeOnImageLoad(e)}},updateIsotopeOnImageLoad:function(e){if(document.body.classList.contains("bricks-is-frontend")){var t=window.bricksData.isotopeInstances[e]||!1;if(t){var n=Array.from(t.instance.element.querySelectorAll("img")).filter(function(e){return!e.complete||0===e.naturalHeight});if(0!==n.length){var r=0,i=!1,o=function(){i||(i=!0,requestAnimationFrame(function(){t.instance.layout(),i=!1}))},a=Math.min(3,Math.max(1,Math.ceil(n.length/5))),s=Date.now();n.forEach(function(e){var i=function(){r++;var c=Date.now();r%a===0||c-s>500||r===n.length?(t.instance.layout(),s=c):o(),e.removeEventListener("load",i),e.removeEventListener("error",i)};e.complete&&0!==e.naturalHeight?(r++,o()):(e.addEventListener("load",i),e.addEventListener("error",i))})}else t.instance.layout()}}},setOffcanvasToggleAriaLabel:function(e,t){var n,r,i;if(e){var o=(null===(n=e.dataset)||void 0===n?void 0:n.ariaLabelOpen)||e.getAttribute("aria-label"),a=(null===(r=e.dataset)||void 0===r?void 0:r.ariaLabelClose)||(null===(i=window.bricksData)||void 0===i||null===(i=i.i18n)||void 0===i?void 0:i.close);o&&a&&(e.dataset.ariaLabelOpen||(e.dataset.ariaLabelOpen=o),e.setAttribute("aria-label",t?a:o))}},toggleAction:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(null===(t=e.dataset)||void 0===t?void 0:t.selector)||".brxe-offcanvas",a=(null===(n=e.dataset)||void 0===n?void 0:n.attribute)||"class",s=(null===(r=e.dataset)||void 0===r?void 0:r.value)||"brx-open";i&&(o=(null==i?void 0:i.selector)||o,a=(null==i?void 0:i.attribute)||a,s=(null==i?void 0:i.value)||s);var 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")&&(e.closest('[data-effect="offset"]')||bricksSubmenuPosition(0));var l,d,u,p,b=!1;if(b="class"===a?c.classList.contains(s):c.getAttribute(a)===s,e.setAttribute("aria-expanded",!b),b)e.classList.remove("is-active");else if(e.classList.add("is-active"),null!==(l=e.dataset)&&void 0!==l&&l.scriptId||null!==(d=e.dataset)&&void 0!==d&&d.interactionId)c.dataset.toggleScriptId=(null===(u=e.dataset)||void 0===u?void 0:u.scriptId)||(null===(p=e.dataset)||void 0===p?void 0:p.interactionId);c.classList.contains("brxe-offcanvas")&&bricksUtils.setOffcanvasToggleAriaLabel(e,!b);var v="off";"class"===a?e.closest(".brxe-nav-nested")&&"brx-open"===s&&c.classList.contains("brx-open")?(v="on",c.classList.add("brx-closing"),setTimeout(function(){c.classList.remove("brx-closing"),c.classList.remove("brx-open")},200)):(v=c.classList.contains(s)?"on":"off",c.classList.toggle(s)):c.getAttribute(a)?(v="on",c.removeAttribute(a)):(v="off",c.setAttribute(a,s));var f,m=!1;if(c.classList.contains("brxe-offcanvas"))m="true"===(null===(f=c.dataset)||void 0===f?void 0:f.noAutoFocus)||!1,c.classList.remove("brx-closing");c.classList.contains("brxe-nav-nested")&&(m=!0),m||"off"!==v||bricksFocusOnFirstFocusableElement(c)}},debounce:function(e,t,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||e.apply(i,o)},t),a&&e.apply(i,o)}},maybeAbortXhr:function(e){var t=window.bricksData.queryLoopInstances[e]||!1;return t?(t.xhr&&(t.xhr.abort(),t.xhrAborted=!0),t.xhrAborted):t.xhrAborted},getPageNumberFromUrl:function(e){var t,n=1,r=new URL(e);if(r.searchParams.has("paged"))n=parseInt(r.searchParams.get("paged"));else if(e===(null===(t=window.bricksData)||void 0===t?void 0:t.baseUrl))n=1;else{var i=r.pathname.split("/").filter(function(e){return""!==e});n=i[i.length-1],isNaN(n)&&(n=1)}return n=parseInt(n)},getQueryResultStatsData:function(e){var t,n=(null==e||null===(t=e.dataset)||void 0===t?void 0:t.brxQrStatsData)||!1;if(!n)return!1;try{return JSON.parse(n)}catch(e){return!1}},updateQueryResultStats:function(e,t,n){var r={count:0,start:0,end:0};if("dom"===t){var i=n.querySelector('span[data-brx-qr-count="'.concat(e,'"]'));i&&(r.count=i.innerHTML);var o=n.querySelector('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]'));if(o){var a=bricksUtils.getQueryResultStatsData(o);a&&(void 0!==(null==a?void 0:a.start)&&(r.start=a.start),void 0!==(null==a?void 0:a.end)&&(r.end=a.end),void 0!==(null==a?void 0:a.total)&&(r.count=a.total))}}else void 0!==(null==n?void 0:n.count)&&(r.count=n.count),void 0!==(null==n?void 0:n.start)&&(r.start=n.start),void 0!==(null==n?void 0:n.end)&&(r.end=n.end);if(void 0!==(null==r?void 0:r.count)){var s=parseInt(r.count||0),c=parseInt(r.start||0),l=parseInt(r.end||0);document.querySelectorAll('span[data-brx-qr-count="'.concat(e,'"]')).forEach(function(e){e.innerHTML=s}),document.querySelectorAll('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]')).forEach(function(e){var t=bricksUtils.getQueryResultStatsData(e);if(t){var n="string"==typeof(null==t?void 0:t.statsFormat)?t.statsFormat:"",r="string"==typeof(null==t?void 0:t.oneResultText)?t.oneResultText:"",i="string"==typeof(null==t?void 0:t.noResultsText)?t.noResultsText:"";if(s<1)e.innerHTML=i;else if(1===s)e.innerHTML=r;else{var o=n.replace("%start%",c).replace("%end%",l).replace("%total%",s);e.innerHTML=o}}})}},toggleMapInfoBox:function(e){var t,n;if(window.google&&window.google.maps){var r=e.el,i=e.action;if(r){var o=(null===(t=r.dataset)||void 0===t?void 0:t.brxInfoboxOpen)||!1,a=(null===(n=r.dataset)||void 0===n?void 0:n.brxInfoboxMapId)||!1;if(o&&a){var s=window.bricksData.googleMapInstances[a];if(s){var c=s.locations.find(function(e){return e.id===o});if(c&&c.marker){var l=c.infoBox;"openAddress"===i?l&&null!=l&&l.div_||google.maps.event.trigger(c.marker,"click"):l&&null!=l&&l.div_&&(google.maps.event.trigger(l,"closeclick"),l.close())}}}}}},closeAllSubmenus:function(e){var t=e.closest(".open"),n=e.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")})}},rebuildSplide:function(e){var t=window.bricksData.splideInstances[e]||!1;if(t){if(t.destroy(),delete window.bricksData.splideInstances[e],window.bricksSplideFn&&window.bricksSplideFn._initializedElements){var n=t.root;window.bricksSplideFn._initializedElements.has(n)&&window.bricksSplideFn._initializedElements.delete(n)}window.bricksSplideFn&&window.bricksSplideFn.run()}},photoswipeGetId:function(e){return e.getAttribute("data-pswp-id")||e.getAttribute("data-lightbox-id")},photoswipeDestroy:function(e){null!=e&&e.bricksPhotoswipe&&(e.bricksPhotoswipe.destroy(),delete e.bricksPhotoswipe)},imageGalleryGetLoadMoreSettings:function(e){var t;if(null==e||null===(t=e.dataset)||void 0===t||!t.brxLoadMoreSettings)return{};try{return JSON.parse(e.dataset.brxLoadMoreSettings)}catch(e){return{}}},imageGalleryResolveLoadMoreValue:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"initial",o=Number.parseInt(null!==(e=null==r?void 0:r[i])&&void 0!==e?e:"0",10),a=(null==r||null===(t=r.responsive)||void 0===t?void 0:t[i])||{},s=Array.isArray(null==r?void 0:r.breakpoints)?r.breakpoints:[];if(!s.length||!a||"object"!==_typeof(a))return Number.isNaN(o)?0:Math.max(0,o);var c=s.find(function(e){return!0===(null==e?void 0:e.base)})||s.find(function(e){return"desktop"===(null==e?void 0:e.key)});if(!c)return Number.isNaN(o)?0:Math.max(0,o);var l=Number.parseInt(null!==(n=null==c?void 0:c.width)&&void 0!==n?n:"0",10),d=[c].concat(_toConsumableArray(s.filter(function(e){var t,n=Number.parseInt(null!==(t=null==e?void 0:e.width)&&void 0!==t?t:"0",10);return!0!==(null==e?void 0:e.base)&&n>l}).sort(function(e,t){var n,r;return Number.parseInt(null!==(n=null==e?void 0:e.width)&&void 0!==n?n:"0",10)-Number.parseInt(null!==(r=null==t?void 0:t.width)&&void 0!==r?r:"0",10)})),_toConsumableArray(s.filter(function(e){var t,n=Number.parseInt(null!==(t=null==e?void 0:e.width)&&void 0!==t?t:"0",10);return!0!==(null==e?void 0:e.base)&&n
l?r=window.innerWidth>=n:n
1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null==e?void 0:e.querySelector(":scope > .brx-gallery-load-more-template");if(!r||!r.content||t<=0)return[];var i=Array.from(r.content.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}).slice(0,t);if(!i.length)return[];var o=document.createDocumentFragment(),a=e.querySelector(":scope > .bricks-isotope-sizer"),s=e.querySelector(":scope > .brx-gallery-load-more-trail"),c=a||s||r;return i.forEach(function(e){null!=n&&n.animate&&e.classList.add("brx-gallery-item-reveal"),o.appendChild(e)}),e.insertBefore(o,c),null!=n&&n.animate&&i.forEach(function(e){setTimeout(function(){e.classList.remove("brx-gallery-item-reveal")},300)}),i},imageGalleryLoadMoreSync:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=[];"all"===t?n=bricksQuerySelectorAll(document,'.brxe-image-gallery[data-brx-load-more="gallery"]'):null!=t&&null!==(e=t.matches)&&void 0!==e&&e.call(t,'.brxe-image-gallery[data-brx-load-more="gallery"]')?n=[t]:"string"==typeof t&&(n=bricksQuerySelectorAll(document,'.brxe-image-gallery[data-brx-load-more="gallery"][data-script-id="'.concat(t,'"]'))),n.forEach(function(e){var t,n,r,i=e.querySelector(":scope > .brx-gallery-load-more-template");if(i&&i.content){var o=bricksUtils.imageGalleryGetResolvedLoadMoreSettings(e),a=Array.from(e.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}),s=Array.from(i.content.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}),c=Number.parseInt(null!==(t=null==o?void 0:o.total)&&void 0!==t?t:"".concat(a.length+s.length),10),l=Number.parseInt(null!==(n=null==o?void 0:o.initial)&&void 0!==n?n:"0",10),d=l>0&&l
d){var p=a.slice(d);if(p.length){var b=document.createDocumentFragment();p.forEach(function(e){b.appendChild(e)}),i.content.insertBefore(b,i.content.firstChild),u=!0}}else if(a.length
0}if(u){if(bricksLazyLoad(),e.classList.contains("isotope")){var v,f=null===(v=e.dataset)||void 0===v?void 0:v.scriptId;f&&bricksUtils.updateIsotopeInstance(f)}e.classList.contains("bricks-lightbox")&&bricksPhotoswipe(),null!=o&&o.infinite&&(delete e.dataset.brxGalleryInfiniteInit,void 0!==bricksGalleryInfiniteScrollFn&&bricksGalleryInfiniteScrollFn.run({forceReinit:function(t){return t===e}}))}var m=(null===(r=e.dataset)||void 0===r?void 0:r.scriptId)||"all";bricksUtils.imageGalleryLoadMoreButtonVisibility(m)}})},imageGalleryLoadMoreButtonVisibility:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=Array.isArray(null===(e=window.bricksData)||void 0===e?void 0:e.interactions)?window.bricksData.interactions:[];if(n.length){n.forEach(function(e){if("loadMoreGallery"===(null==e?void 0:e.action)&&null!=e&&e.loadMoreTargetSelector&&null!=e&&e.el){var n=[];try{n=bricksQuerySelectorAll(document,e.loadMoreTargetSelector)}catch(e){return}if((n=n.filter(function(e){return e.matches&&e.matches('.brxe-image-gallery[data-brx-load-more="gallery"]')})).length){if("all"!==t)if(!n.some(function(e){var n;return(null===(n=e.dataset)||void 0===n?void 0:n.scriptId)===t}))return;n.some(function(e){return function(e){if(!e||!e.matches||!e.matches('.brxe-image-gallery[data-brx-load-more="gallery"]'))return!1;var t=e.querySelector(":scope > .brx-gallery-load-more-template");return!(!t||!t.content||!t.content.querySelector("li.bricks-layout-item"))}(e)})?e.el.classList.remove("brx-load-more-hidden"):e.el.classList.add("brx-load-more-hidden")}else e.el.classList.add("brx-load-more-hidden")}})}},imageGalleryLoadMore:function(e){var t;if(!e||!e.matches(".brxe-image-gallery"))return!1;var n=e.querySelector(":scope > .brx-gallery-load-more-template");if(!n||!n.content)return!1;var r=bricksUtils.imageGalleryGetResolvedLoadMoreSettings(e),i=Number.parseInt((null==r?void 0:r.step)||"0",10),o=Array.from(n.content.children).filter(function(e){return e.matches&&e.matches("li.bricks-layout-item")}),a=i>0?Math.min(i,o.length):o.length;if(!a)return!1;bricksUtils.imageGalleryAppendDeferredItems(e,a,{animate:!0});var s=e.querySelector(":scope > .brx-gallery-load-more-trail");if(bricksLazyLoad(),e.classList.contains("isotope")){var c=e.dataset.scriptId;c&&bricksUtils.updateIsotopeInstance(c)}e.classList.contains("bricks-lightbox")&&bricksPhotoswipe();var l=null!==n.content.querySelector("li.bricks-layout-item");!l&&s&&s.remove();var d=(null===(t=e.dataset)||void 0===t?void 0:t.scriptId)||"all";return bricksUtils.imageGalleryLoadMoreButtonVisibility(d),l}},BricksFunction=function(){return _createClass(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()}}}),window.bricksFunctions||(window.bricksFunctions=[]),window.bricksFunctions.push(this)},[{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)))}}])}();function reinitBricksFunctions(){window.bricksFunctionInstances&&window.bricksFunctionInstances.forEach(function(e){e&&"function"==typeof e.run&&e.run()})}if("undefined"!=typeof window){window.bricksFunctionInstances=window.bricksFunctionInstances||[];var OriginalBricksFunction=BricksFunction;window.BricksFunction=function(){function e(t){var n;return _classCallCheck(this,e),n=_callSuper(this,e,[t]),window.bricksFunctionInstances.push(n),n}return _inherits(e,OriginalBricksFunction),_createClass(e)}(),Object.setPrototypeOf(window.BricksFunction.prototype,OriginalBricksFunction.prototype),Object.setPrototypeOf(window.BricksFunction,OriginalBricksFunction),void 0!==BricksFunction&&(BricksFunction=window.BricksFunction)}function bricksBlockEditorIntegration(){if(document.body.classList.contains("block-editor-page")){var e=function(){var t=document.querySelector(".wp-block-post-content");t?(new MutationObserver(function(){clearTimeout(window.bricksReinitTimeout),window.bricksReinitTimeout=setTimeout(reinitBricksFunctions,300)}).observe(t,{childList:!0,subtree:!0}),setTimeout(reinitBricksFunctions,200)):setTimeout(e,100)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}}var 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.closest(".bricks-masonry"))){var t,n=null!==(t=e.closest(".bricks-masonry").getAttribute("data-script-id"))&&void 0!==t&&t;n&&e.addEventListener("load",function(){bricksUtils.updateIsotopeInstance(n)})}if(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 r=e.getAttribute("style")||"";r+=e.dataset.style,e.setAttribute("style",r),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(e.style.animationDuration="",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 bricksMotionParallax=function(){var e=new WeakMap,t=new Set,n=new Set,r=null,i=!1,o=!1;function a(){i=!1,r=null,n.forEach(function(e){e()})}function s(){i||(i=!0,r=window.requestAnimationFrame(a))}function c(){var e=n.size>0;e&&!o&&(window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s,{passive:!0}),window.addEventListener("orientationchange",s,{passive:!0}),o=!0),!e&&o&&(window.removeEventListener("scroll",s),window.removeEventListener("resize",s),window.removeEventListener("orientationchange",s),o=!1,r&&(window.cancelAnimationFrame(r),r=null,i=!1))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=parseFloat(e);return Number.isFinite(n)?n/100:t}function d(e){if(!e)return arguments.length>1&&void 0!==arguments[1]?arguments[1]:"50%";return{left:"0%",right:"100%",top:"0%",bottom:"100%",center:"50%"}[e.trim().toLowerCase()]||e}function u(n){var r=e.get(n);if(t.delete(n),r){var i;if(r.cleanupFns.forEach(function(e){"function"==typeof e&&e()}),r.hasElementParallax&&(n.style.translate=r.originalInlineTranslate||""),r.hasBackgroundParallax)n.style.backgroundPosition=null!==(i=r.originalInlineBackgroundPosition)&&void 0!==i?i:"";e.delete(n)}}var p=new BricksFunction({parentNode:document,selector:"[data-brx-motion-parallax]",forceReinit:!0,eachElement:function(r){var i,o,a,p;u(r);try{var b;p=JSON.parse(null===(b=r.dataset)||void 0===b?void 0:b.brxMotionParallax)}catch(e){return}if(p){var v=!0===(null===(i=p)||void 0===i?void 0:i.element),f=!0===(null===(o=p)||void 0===o?void 0:o.background),m=null===(a=p)||void 0===a?void 0:a.startVisiblePercent,g=parseFloat(m),y=Number.isFinite(g)?Math.min(Math.max(g,0),100):0;if(v||f){var k=function(e,t){var r=t.hasElementParallax,i=t.hasBackgroundParallax,o=t.progressStart,a=t.originalInlineTranslate,u=t.originalInlineBackgroundPosition,p=[],b=window.matchMedia("(prefers-reduced-motion: reduce)"),v="50%",f="50%";if(i){e.style.backgroundPosition=u||"";var m=window.getComputedStyle(e);v=d(m.backgroundPositionX,"50%"),f=d(m.backgroundPositionY,"50%")}var g=0,y=0,k=0,w=function(){var t,n,o,a=window.getComputedStyle(e);r&&(g=l(null===(t=a.getPropertyValue("--brx-motion-parallax-speed-x"))||void 0===t?void 0:t.trim()),y=l(null===(n=a.getPropertyValue("--brx-motion-parallax-speed-y"))||void 0===n?void 0:n.trim())),i&&(k=l(null===(o=a.getPropertyValue("--brx-motion-background-speed"))||void 0===o?void 0:o.trim()))};w();var h=e.getBoundingClientRect(),x=window.scrollY||window.pageYOffset||0,S=x+h.top,L=h.height,E=function(){w(),e.style.translate="",h=e.getBoundingClientRect(),x=window.scrollY||window.pageYOffset||0,S=x+h.top,L=h.height,s()};window.addEventListener("resize",E),document.addEventListener("load",E),document.addEventListener("bricks/tabs/changed",E),document.addEventListener("bricks/accordion/open",E),document.addEventListener("bricks/accordion/close",E),document.addEventListener("bricks/ajax/nodes_added",E),document.addEventListener("bricks/ajax/load_page/completed",E),document.addEventListener("bricks/ajax/query_result/displayed",E),document.addEventListener("bricks/ajax/pagination/completed",E),p.push(function(){window.removeEventListener("resize",E),document.removeEventListener("load",E),document.removeEventListener("bricks/tabs/changed",E),document.removeEventListener("bricks/accordion/open",E),document.removeEventListener("bricks/accordion/close",E),document.removeEventListener("bricks/ajax/nodes_added",E),document.removeEventListener("bricks/ajax/load_page/completed",E),document.removeEventListener("bricks/ajax/query_result/displayed",E),document.removeEventListener("bricks/ajax/pagination/completed",E)});var I=function(){if(b.matches)return r&&(e.style.translate="0px 0px"),void(i&&(e.style.backgroundPosition="".concat(v," ").concat(f)));var t=window.innerHeight||document.documentElement.clientHeight,n=window.scrollY||window.pageYOffset||0,a=Math.max(S-t,0),s=t+L||1,c=Math.min(Math.max((n-a)/s,0),1),l=Math.min(Math.max(o,0),1),d=Math.max(1-l,1e-4),u=Math.max(c-l,0)/d*.5;if(r){var p=window.innerWidth||document.documentElement.clientWidth,m=u*g*p,w=u*y*t;e.style.translate="".concat(m.toFixed(2),"px ").concat(w.toFixed(2),"px")}if(i){var h=u*k*t;e.style.backgroundPosition="".concat(v," calc(").concat(f," + ").concat(h.toFixed(2),"px)")}};return n.add(I),c(),p.push(function(){n.delete(I),c()}),I(),{cleanupFns:p,hasElementParallax:r,hasBackgroundParallax:i,originalInlineTranslate:a,originalInlineBackgroundPosition:u}}(r,{hasElementParallax:v,hasBackgroundParallax:f,progressStart:y/100,originalInlineTranslate:r.style.translate||"",originalInlineBackgroundPosition:r.style.backgroundPosition});e.set(r,k),t.add(r)}}}});return function(e){t.forEach(function(e){e.isConnected||u(e)}),s(),p.run(e)}}(),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,c,l,d,u=(null===(t=e.dataset)||void 0===t?void 0:t.observerMargin)||"1px",p=(null===(n=e.dataset)||void 0===n?void 0:n.observerDelay)||0,b=(null===(r=e.dataset)||void 0===r?void 0:r.queryComponentId)||!1,v=null===(i=e.dataset)||void 0===i?void 0:i.queryElementId,f=null===(o=e.dataset)||void 0===o?void 0:o.queryVars,m=(null===(a=e.dataset)||void 0===a?void 0:a.originalQueryVars)||"[]",g=e.classList.contains("bricks-isotope-sizer"),y=e.classList.contains("brx-infinite-scroll"),k=null===(s=e.dataset)||void 0===s?void 0:s.brxAjaxLoader,w=null===(c=e.dataset)||void 0===c?void 0:c.brxLiveSearch,h=null===(l=e.dataset)||void 0===l?void 0:l.brxDisableUrlParams,x=document.querySelector('[data-brx-loop-start="'.concat(v,'"]'));x?(null==x||x.insertAdjacentHTML("beforebegin","\x3c!--brx-loop-start-".concat(v,"--\x3e")),x.removeAttribute("data-brx-loop-start")):e.insertAdjacentHTML("beforebegin","\x3c!--brx-loop-start-".concat(v,"--\x3e"));var S=(null==x?void 0:x.parentNode)||e.parentNode;window.bricksData.queryLoopInstances[v]={componentId:b,start:e.dataset.start,end:e.dataset.end,page:e.dataset.page,maxPages:e.dataset.maxPages,queryVars:f,originalQueryVars:m,observerMargin:u,observerDelay:p,infiniteScroll:y,isPostsElement:g,ajaxLoader:k,isLiveSearch:w,disableUrlParams:h,resultsContainer:S,xhr:null,xhrAborted:!1};var L=bricksUtils.getQueryTrailSelectorId(v,b),E=g?e.previousElementSibling:Array.from(S.querySelectorAll(".brxe-".concat(L,":not(.brx-popup)"))).pop();if(e.removeAttribute("data-query-vars"),e.removeAttribute("data-original-query-vars"),e.closest(".brxe-slider-nested.splide")&&(null===(d=e.parentNode)||void 0===d?void 0:d.classList.contains("splide__list"))){var I,A=(null===(I=e.closest(".brxe-slider-nested.splide").dataset)||void 0===I?void 0:I.scriptId)||!1;if(A){["bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/query_result/displayed"].forEach(function(e){document.addEventListener(e,function(){bricksUtils.rebuildSplide(A)})})}}g||e.remove(),E&&y&&(E.dataset.queryElementId=v,new BricksIntersect({element:E,callback:function(e){return bricksQueryLoadPage(e)},once:1,rootMargin:u}))}});function bricksInitQueryLoopInstances(){bricksInitQueryLoopInstancesFn.run()}function bricksAjaxLoader(){var e=function(e){var t="";switch(e){case"default":t='
';break;case"ellipsis":t='
';break;case"ring":t='
';break;case"dual-ring":t='
';break;case"facebook":t='
';break;case"roller":t='
';break;case"ripple":t='
';break;case"spinner":t='
'}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=!(null==i||!i.selector)&&document.querySelector(i.selector);if(!a){var s,c,l=bricksUtils.getQueryTrailSelectorId(n,(null==r?void 0:r.componentId)||!1);a=null!==(s=Array.from(null===(c=r.resultsContainer)||void 0===c?void 0:c.querySelectorAll(".brxe-".concat(l,":not(.brx-popup)"))).pop())&&void 0!==s?s:r.resultsContainer}if(a){var d=a.nodeName.toLowerCase(),u=document.createElement(d);u.classList.add("brx-loading-animation"),u.dataset.ajaxLoaderQueryId=n,null!=i&&i.color&&u.style.setProperty("--brx-loader-color",i.color),null!=i&&i.scale&&(u.style.transform="scale(".concat(i.scale,")")),u.innerHTML=e(o),a.insertAdjacentElement(null!=i&&i.selector?"beforeend":"afterend",u)}}}}}),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 bricksQueryResultsA11y(){var e=new Map,t=new Set,n=new Map,r=new Map,i=function(e,t){var n=function(e,t){var n,r,i,o,a=(null===(n=window.bricksData.i18n)||void 0===n?void 0:n.queryUpdated)||"",s=document.querySelector('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]')),c=(null==s||null===(r=s.textContent)||void 0===r?void 0:r.trim())||"";if(c)return"".concat(a," ").concat(c).trim();var l=(null===(i=window.bricksData.queryLoopInstances[e])||void 0===i?void 0:i.page)||!1,d=(null===(o=window.bricksData.i18n)||void 0===o?void 0:o.queryUpdatedPage)||"";return t&&l&&d?d.replace("%s",l):a}(e,t);if(n){var i=function(e){var t="brx-query-results-status-".concat(e),n=document.getElementById(t);return n||((n=document.createElement("div")).id=t,n.className="screen-reader-text",n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),document.body.appendChild(n)),n}(e);clearTimeout(r.get(e)),i.textContent="",r.set(e,setTimeout(function(){i.textContent=n,r.delete(e)},50))}},o=function(e,t){e&&(i(e,t),t&&function(e){var t=window.bricksData.queryLoopInstances[e]||!1,n=(null==t?void 0:t.resultsContainer)||!1;n&&window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){var r=bricksUtils.getQueryTrailSelectorId(e,t.componentId||!1),i=n.querySelector(".brxe-".concat(r,":not(.brx-popup), .bricks-posts-nothing-found"));i||(i=document.querySelector('.brxe-query-results-summary[data-brx-qr-stats="'.concat(e,'"]'))),i&&"function"==typeof i.focus&&(i.hasAttribute("tabindex")||(i.setAttribute("tabindex","-1"),i.addEventListener("blur",function(){return i.removeAttribute("tabindex")},{once:!0})),i.focus())})})}(e))};document.addEventListener("click",function(e){var r,i=e.target||!1;if(i&&"function"==typeof i.closest){var o=i.closest(".brx-ajax-pagination a")||!1;if(o&&"function"==typeof o.closest){var a=o.closest(".brx-ajax-pagination")||!1,s=(null==a||null===(r=a.dataset)||void 0===r?void 0:r.queryElementId)||!1,c=window.bricksData.queryLoopInstances[s]||!1;s&&null!=c&&c.resultsContainer&&(clearTimeout(n.get(s)),t.add(s))}}}),document.addEventListener("bricks/ajax/start",function(t){var n,r,i=(null===(n=t.detail)||void 0===n?void 0:n.queryId)||!1,o=(null===(r=window.bricksData.queryLoopInstances[i])||void 0===r?void 0:r.resultsContainer)||!1;if(i&&o){var a=e.get(i),s=((null==a?void 0:a.requestVersion)||0)+1;e.set(i,{element:o,previousValue:a?a.previousValue:o.getAttribute("aria-busy"),requestVersion:s}),o.setAttribute("aria-busy","true")}}),document.addEventListener("bricks/ajax/end",function(r){var i,o=(null===(i=r.detail)||void 0===i?void 0:i.queryId)||!1;if(o){var a=e.get(o);a&&setTimeout(function(){var t,n,r,i=window.bricksData.queryLoopInstances[o]||!1;null!=i&&i.isLoading||(null===(t=e.get(o))||void 0===t?void 0:t.requestVersion)!==a.requestVersion||(n=a.element,r=a.previousValue,null!=n&&n.isConnected&&(null===r?n.removeAttribute("aria-busy"):n.setAttribute("aria-busy",r)),e.delete(o))},0),n.set(o,setTimeout(function(){t.delete(o),n.delete(o)},0))}}),document.addEventListener("bricks/ajax/query_result/displayed",function(e){var r,i=(null===(r=e.detail)||void 0===r?void 0:r.queryId)||!1,a=t.has(i);clearTimeout(n.get(i)),n.delete(i),t.delete(i),o(i,a)}),document.addEventListener("bricks/ajax/pagination/completed",function(e){var r,i,a=(null===(r=e.detail)||void 0===r?void 0:r.queryId)||!1;clearTimeout(n.get(a)),n.delete(a),t.delete(a),null!==(i=e.detail)&&void 0!==i&&i.queryUpdated&&o(a,!0)})}function bricksQueryLoadPage(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r,i){var o,a=e.dataset.queryElementId,s=null===(o=window.bricksData.queryLoopInstances)||void 0===o?void 0:o[a];if(s&&(null==s||!s.isLoading||n)){var c=(null==s?void 0:s.componentId)||!1,l=parseInt(s.page||1)+1,d=parseInt(s.maxPages||1);if(l>d)r({page:l,maxPages:d});else{var u=window.bricksData.restApiUrl.concat("load_query_page"),p={postId:window.bricksData.postId,queryElementId:a,componentId:c,queryVars:s.queryVars,page:l,nonce:window.bricksData.nonce,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()};if("1"===window.bricksData.useQueryFilter&&"function"==typeof window.bricksUtils.getFiltersForQuery&&"function"==typeof window.bricksUtils.getSelectedFiltersForQuery){var b=[];if(window.bricksData.filterInstances&&Object.keys(window.bricksData.filterInstances).length>0)b=Object.values(window.bricksData.filterInstances).filter(function(e){return e.targetQueryId===a}).map(function(e){return e.filterId});if(b.length){var v=window.bricksUtils.getFiltersForQuery(a,"filterId"),f=window.bricksUtils.getSelectedFiltersForQuery(a),m=window.bricksUtils.getDynamicTagsForParse(a),g="[]"===(null==s?void 0:s.originalQueryVars)?null==s?void 0:s.queryVars:null==s?void 0:s.originalQueryVars;p={postId:window.bricksData.postId,queryElementId:a,originalQueryVars:g,pageFilters:window.bricksData.pageFilters||!1,filters:v,infinitePage:l,selectedFilters:f,afTags:m,nonce:window.bricksData.nonce,baseUrl:window.bricksData.baseUrl,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()},u=window.bricksData.restApiUrl.concat("query_result")}}window.bricksData.queryLoopInstances[a].isLoading=1,n||document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:a}})),"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(u=u.concat("?lang="+window.bricksData.language));var y=new XMLHttpRequest;y.open("POST",u,!0),y.setRequestHeader("Content-Type","application/json; charset=UTF-8"),y.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),y.onreadystatechange=function(){if(y.readyState===XMLHttpRequest.DONE){var t,o,u=y.status;try{o=JSON.parse(y.response)}catch(e){o=null}if(0===u||u>=200&&u<400){var p,b,v,f,m=(null===(p=o)||void 0===p?void 0:p.html)||!1,g=(null===(b=o)||void 0===b?void 0:b.styles)||!1,k=(null===(v=o)||void 0===v?void 0:v.popups)||!1,w=(null===(f=o)||void 0===f?void 0:f.updated_query)||!1;m&&(m=m.replace(/
/g,""),e.insertAdjacentHTML("afterend",m)),k&&document.body.insertAdjacentHTML("beforeend",k),document.dispatchEvent(new CustomEvent("bricks/ajax/nodes_added",{detail:{queryId:a}})),g&&document.body.insertAdjacentHTML("beforeend",g),w&&(w.start=parseInt(s.start),bricksUtils.updateQueryResultStats(a,"query",w)),window.bricksData.queryLoopInstances[a].page=l,void 0!==(null==w?void 0:w.max_num_pages)&&(window.bricksData.queryLoopInstances[a].maxPages=parseInt(w.max_num_pages))}else{if(403===u&&"rest_cookie_invalid_nonce"===(null===(t=o)||void 0===t?void 0:t.code)&&!n)return void bricksRegenerateNonceAndRetryQueryLoadPage(e).then(r).catch(i);console.error("Request failed with status ".concat(u))}window.bricksData.queryLoopInstances[a].isLoading=0,r({page:l,maxPages:d}),bricksUtils.hideOrShowLoadMoreButtons(a),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:a}})),setTimeout(function(){var e,t=bricksUtils.getQueryTrailSelectorId(a,c),n=Array.from((null===(e=s.resultsContainer)||void 0===e?void 0:e.querySelectorAll(".brxe-".concat(t,":not(.brx-popup)")))||[]).pop();document.dispatchEvent(new CustomEvent("bricks/ajax/load_page/completed",{detail:{queryTrailElement:n,queryId:a}})),n&&s.infiniteScroll&&(n.dataset.queryElementId=a,BricksIsInViewport(n)?bricksQueryLoadPage(n):new BricksIntersect({element:n,callback:function(e){return bricksQueryLoadPage(e)},once:!0,rootMargin:s.observerMargin}))},250)}},t?y.send(JSON.stringify(p)):setTimeout(function(){y.send(JSON.stringify(p))},parseInt(s.observerDelay))}}})}function bricksRegenerateNonceAndRetryQueryLoadPage(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("POST",window.bricksData.ajaxUrl,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE)if(r.status>=200&&r.status<400){var i;try{i=JSON.parse(r.responseText)}catch(e){return void n("Invalid response from server when regenerating nonce")}i.success&&i.data?(window.bricksData.nonce=i.data.bricks_nonce,window.bricksData.wpRestNonce=i.data.rest_nonce,bricksQueryLoadPage(e,!0,!0).then(t).catch(n)):n("Failed to regenerate nonces: Invalid response structure")}else n("Failed to regenerate nonce")},r.send("action=bricks_regenerate_query_nonce")})}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;if(function(e){var t,n=!0;if(!window.bricksData.useQueryFilter||"function"!=typeof window.bricksUtils.getFiltersForQuery)return n;var r=e.closest(".brx-ajax-pagination"),i=(null==r||null===(t=r.dataset)||void 0===t?void 0:t.queryElementId)||!1;if(i){var o=bricksUtils.getFiltersForQuery(i);(o=o.filter(function(e){return"pagination"!==e.filterType})).length>0&&(n=!1)}return n}(i)){var a=parseInt(bricksUtils.getPageNumberFromUrl(r));a<1||(e.preventDefault(),bricksAjaxPagination(n,o,a))}}))}});function bricksAjaxPagination(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Promise(function(i,o){if(t){var a=e.getAttribute("href"),s=window.bricksData.queryLoopInstances[t]||!1,c=e.closest(".brx-ajax-pagination"),l=(null==s?void 0:s.componentId)||!1,d=(null==s?void 0:s.resultsContainer)||!1;if(s&&d){var u=window.bricksData.restApiUrl.concat("load_query_page"),p={postId:window.bricksData.postId,queryElementId:t,componentId:s.componentId||!1,queryVars:s.queryVars,page:n,nonce:window.bricksData.nonce,paginationId:c.dataset.paginationId,baseUrl:window.bricksData.baseUrl,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()};r||document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:t}})),"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(u=u.concat("?lang="+window.bricksData.language));var b=new XMLHttpRequest;b.open("POST",u,!0),b.setRequestHeader("Content-Type","application/json; charset=UTF-8"),b.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),b.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE){var s,u,p=this.status,v=!1;try{u=JSON.parse(b.response)}catch(e){u=null}if(0===p||p>=200&&p<400){var f,m,g,y,k;v=!0;var w=(null===(f=u)||void 0===f?void 0:f.html)||!1,h=(null===(m=u)||void 0===m?void 0:m.styles)||!1,x=(null===(g=u)||void 0===g?void 0:g.popups)||!1,S=(null===(y=u)||void 0===y?void 0:y.pagination)||!1,L=(null===(k=u)||void 0===k?void 0:k.updated_query)||!1,E=bricksUtils.getQueryTrailSelectorId(t,l),I=d.querySelector(".bricks-gutter-sizer"),A=d.querySelector(".bricks-isotope-sizer"),q=d.querySelectorAll(".brxe-".concat(E,", .bricks-posts-nothing-found")),T=document.createNodeIterator(d,NodeFilter.SHOW_COMMENT,{acceptNode:function(e){return e.nodeValue==="brx-loop-start-".concat(t)}}).nextNode(),F=q.length>0||T;if(F&&d.querySelectorAll(".brxe-".concat(E,", .bricks-posts-nothing-found")).forEach(function(e){return e.remove()}),w)if(F){if(T){var C=w.match(/<\s*([a-z0-9]+)([^>]+)?>/i),P=null;(P=!C||"td"!==C[1]&&"tr"!==C[1]?document.createElement("div"):document.createElement("tbody")).innerHTML=w;var D=Array.from(P.childNodes);D.reverse(),D.forEach(function(e){var t,n;T.nextSibling?null===(t=T.parentNode)||void 0===t||t.insertBefore(e,T.nextSibling):null===(n=T.parentNode)||void 0===n||n.appendChild(e)}),P.remove()}}else d.insertAdjacentHTML("beforeend",w);if(I&&d.appendChild(I),A&&d.appendChild(A),document.querySelectorAll('.brx-popup[data-popup-loop="'.concat(t,'"]')).forEach(function(e){return e.remove()}),x&&document.body.insertAdjacentHTML("beforeend",x),S){var _=(new DOMParser).parseFromString(S,"text/html").querySelector(".bricks-pagination");_&&(c.innerHTML="",c.appendChild(_))}if(document.dispatchEvent(new CustomEvent("bricks/ajax/nodes_added",{detail:{queryId:t}})),h){var N=document.querySelector("#brx-query-styles-".concat(t));N||((N=document.createElement("style")).id="brx-query-styles-".concat(t),document.body.appendChild(N)),N.innerHTML=h}L&&(void 0!==(null==L?void 0:L.start)&&(window.bricksData.queryLoopInstances[t].start=parseInt(L.start)),bricksUtils.updateQueryResultStats(t,"query",L)),window.bricksData.queryLoopInstances[t].page=n,window.history.pushState({},"",a)}else{if(403===p&&"rest_cookie_invalid_nonce"===(null===(s=u)||void 0===s?void 0:s.code)&&!r)return void bricksRegenerateNonceAndRetryAjaxPagination(e,t,n).then(i).catch(o);console.error("Request failed with status ".concat(p))}i(),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:t}})),document.dispatchEvent(new CustomEvent("bricks/ajax/pagination/completed",{detail:{queryId:t,queryUpdated:v}})),bricksUtils.hideOrShowLoadMoreButtons(t)}},b.send(JSON.stringify(p))}else o("Query instance not found")}else o("Query ID is missing")})}function bricksRegenerateNonceAndRetryAjaxPagination(e,t,n){return new Promise(function(r,i){var o=new XMLHttpRequest;o.open("POST",window.bricksData.ajaxUrl,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE)if(o.status>=200&&o.status<400){var a;try{a=JSON.parse(o.responseText)}catch(e){return void i("Invalid response from server when regenerating nonce")}a.success&&a.data?(window.bricksData.nonce=a.data.bricks_nonce,window.bricksData.wpRestNonce=a.data.rest_nonce,bricksAjaxPagination(e,t,n,!0).then(r).catch(i)):i("Failed to regenerate nonces: Invalid response structure")}else i("Failed to regenerate nonce")},o.send("action=bricks_regenerate_query_nonce")})}function bricksQueryPagination(){bricksQueryPaginationFn.run()}function bricksStickyHeader(){var e=document.querySelector("#brx-header.brx-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(){if(!document.body.classList.contains("no-scroll")){var a=window.scrollY;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&&!document.querySelector(".bricks-search-overlay.show")&&(a>i&&i>=0?a>o&&(e.classList.contains("slide-up")||e.classList.add("sliding"),e.classList.add("slide-up")):(e.classList.contains("slide-up")&&e.classList.add("sliding"),e.classList.remove("slide-up"))),i=a}};e.addEventListener("transitionend",function(t){"transform"===t.propertyName&&e.classList.remove("sliding")}),window.addEventListener("scroll",a),a()}}function bricksOnePageNavigation(){var e=document.getElementById("bricks-one-page-navigation");if(bricksIsFrontend&&e){var t=bricksQuerySelectorAll(document,"#brx-content > *"),n=[],r="",i="",o="";t&&(t.forEach(function(t){(r=t.getAttribute("id"))&&(n.push(r),o=document.createElement("li"),(i=document.createElement("a")).classList.add("bricks-one-page-".concat(r)),i.setAttribute("href","#".concat(r)),o.appendChild(i),e.appendChild(o))}),window.addEventListener("load",a),window.addEventListener("resize",a),document.addEventListener("scroll",a))}function a(){var e=window.scrollY;n.forEach(function(t){var n=document.getElementById(t),r=n.offsetTop,i=r+n.offsetHeight;e>=r-1&&e
=l&&(d?e.seekTo(c||0,!0):(e.pauseVideo(),clearInterval(n)))},1e3)},onStateChange:function(t){d&&t.data==YT.PlayerState.ENDED&&e.seekTo(c||0,!0),t.data==YT.PlayerState.PLAYING&&k()}}})}},100)}if(f){if(!document.querySelector('script[src="https://player.vimeo.com/api/player.js"]')){var E,I=document.createElement("script");!bricksIsFrontend&&null!==(E=window.bricksData)&&void 0!==E&&E.builderCloudflareRocketLoader&&I.setAttribute("data-cfasync","false"),I.src="https://player.vimeo.com/api/player.js";var A=document.getElementsByTagName("script")[0];A.parentNode.insertBefore(I,A)}bricksIsFrontend&&e.querySelector("video")&&e.removeChild(e.querySelector("video")),g=document.createElement("div");var q=y();q&&e.appendChild(q),e.appendChild(g);var T=n.split("/").pop(),F=setInterval(function(){if(window.Vimeo&&Vimeo.Player){clearInterval(F);var e=new Vimeo.Player(g,{id:T,width:640,autoplay:!0,controls:!1,background:!0,loop:d&&!c});q&&e.on("play",function(){k()}),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(g=e.querySelector("video")){var C,P,D=null===(C=g.closest("[data-script-id]"))||void 0===C?void 0:C.getAttribute("data-script-id");d?g.hasAttribute("loop")||g.setAttribute("loop",""):g.removeAttribute("loop"),bricksIsFrontend||(g.currentTime=c||0),null!==(P=window.bricksData.videoInstances)&&void 0!==P&&P[D]||(window.bricksData.videoInstances[D]={}),window.bricksData.videoInstances[D].startTime=c,window.bricksData.videoInstances[D].endTime=l,window.bricksData.videoInstances[D].videoLoop=d;g.classList.contains("listening")||!c&&!l||(g.classList.add("listening"),g.addEventListener("loadedmetadata",function(){window.bricksData.videoInstances[D].startTime&&(this.currentTime=window.bricksData.videoInstances[D].startTime,this.play())}),g.addEventListener("timeupdate",function(){this.currentTime>=(window.bricksData.videoInstances[D].endTime||this.duration)-.25&&(window.bricksData.videoInstances[D].videoLoop?(this.currentTime=window.bricksData.videoInstances[D].startTime,g.paused&&this.play()):this.pause())}),g.addEventListener("ended",function(){window.bricksData.videoInstances[D].videoLoop&&window.bricksData.videoInstances[D].startTime&&(this.currentTime=window.bricksData.videoInstances[D].startTime,this.play())}))}i&&(g.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"),b?e.appendChild(g):g.src=n}}):b?e.appendChild(g):g.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
',closeTitle:window.bricksData.i18n.close,zoomTitle:window.bricksData.i18n.zoom,arrowPrevTitle:window.bricksData.i18n.prevSlide,arrowNextTitle:window.bricksData.i18n.nextSlide,showHideAnimationType:i},a=null,s=null,c=null;r?n.forEach(function(e){if(e.classList.contains("has-lightbox-thumbnails"))a=e;else{var t=e.closest(".has-lightbox-thumbnails");t&&(a=t)}if(e.getAttribute("data-lightbox-padding"))s=e;else{var n=e.closest("[data-lightbox-padding]");n&&(s=n)}if(e.classList.contains("has-lightbox-caption"))c=e;else{var r=e.closest(".has-lightbox-caption");r&&(c=r)}}):e.classList.contains("has-lightbox-thumbnails")&&(a=e);var l=(a||s||e).getAttribute("data-lightbox-padding");l&&(o.padding=JSON.parse(l));var d=e.getAttribute("data-lightbox-image-click");d&&(o.imageClickAction=d);var u=new PhotoSwipeLightbox(o),p=function(e){return!(null==e||!e.src||null==e||!e.msrc||e.src===e.msrc)};if(u.addFilter("placeholderSrc",function(e,t){return e&&p(null==t?void 0:t.data)?t.data.src:e}),u.on("closingAnimationStart",function(){var e,t,n,r,i,o=null===(e=u.pswp)||void 0===e?void 0:e.currSlide,a=null===(t=u.pswp)||void 0===t||null===(t=t.options)||void 0===t?void 0:t.hideAnimationDuration;if(p(null==o?void 0:o.data)&&a){var s=(null===(n=u.pswp)||void 0===n||null===(n=n.options)||void 0===n?void 0:n.easing)||"cubic-bezier(.4,0,.22,1)";[null==o||null===(r=o.content)||void 0===r?void 0:r.element,null==o||null===(i=o.content)||void 0===i||null===(i=i.placeholder)||void 0===i?void 0:i.element].filter(Boolean).forEach(function(e){e.style.transition="opacity ".concat(a,"ms ").concat(s),e.style.opacity="0"})}}),"none"===i&&u.addFilter("useContentPlaceholder",function(e,t){return!1}),"undefined"!=typeof PhotoSwipeDynamicCaption&&(c||e).classList.contains("has-lightbox-caption")){new PhotoSwipeDynamicCaption(u,{type:"below",captionContent:function(e){return e.data.element.getAttribute("data-lightbox-caption")}});u.on("init",function(){u.pswp.on("dynamicCaptionMeasureSize",function(e){var t;if("aside"!==(null===(t=e.slide)||void 0===t||null===(t=t.dynamicCaption)||void 0===t?void 0:t.type)){var n=function(e){if(null==e||!e.element)return 0;var t=e.element.querySelector(".pswp__thumbnail-nav-wrapper"),n=parseFloat(getComputedStyle(e.element).getPropertyValue("--pswp-thumbnail-nav-offset"))||0;return t?t.offsetHeight+n:0}(u.pswp);n&&(e.captionSize.y+=n)}})})}if(a&&(u.on("uiRegister",function(){u.pswp.ui.registerElement({name:"thumbnail-navigation",className:"pswp__thumbnail-nav-wrapper",appendTo:"wrapper",onInit:function(n,i){var s=document.createElement("div");s.className="pswp__thumbnail-nav";var c=[],l=function(){i.element&&(i.element.classList.add("pswp--has-thumbnail-nav"),i.element.style.setProperty("--pswp-thumbnail-nav-height","".concat(n.offsetHeight,"px")))},d=[];d=r?bricksQuerySelectorAll(document,'[data-pswp-id="'.concat(r,'"][data-pswp-src]')):e.querySelectorAll("a[data-pswp-src]");var u=[];d.forEach(function(e){if(!e.parentNode.classList.contains("swiper-slide-duplicate")){var t=e.getAttribute("href");t&&!u.includes(t)&&u.push(t)}}),u.forEach(function(e,t){var n=document.createElement("img");n.src=e,n.dataset.index=t,c.push(n);var r=a.getAttribute("data-lightbox-thumbnail-size");r&&(n.style.width=isNaN(r)?r:r+"px"),s.appendChild(n)}),n.appendChild(s),l();var p=new ResizeObserver(l);p.observe(n),c.forEach(function(e){e.addEventListener("load",l)}),i.on("resize",l),i.on("destroy",function(){p.disconnect(),c.forEach(function(e){e.removeEventListener("load",l)})}),s.addEventListener("click",function(e){var n=parseInt(e.target.getAttribute("data-index"));if(Number.isInteger(n)){if(s.setAttribute("data-active-index",n),null!=o&&o.loop&&(n+=2),t.classList.contains("brxe-carousel")){var r=t.getAttribute("data-script-id"),a=bricksData.swiperInstances[r].slides.map(function(e,t){return{slide:e,index:t,pswpIndex:Number(e.dataset.swiperSlideIndex)}}).filter(function(e){return!e.slide.classList.contains("swiper-slide-duplicate")&&e.pswpIndex===n});a.length&&(n=a[0].index)}i.goTo(n)}})}})}),u.on("change",function(){var e=document.querySelector(".pswp__thumbnail-nav");if(e){var t=e.querySelector(".active");t&&t.classList.remove("active");var n=u.pswp.currSlide.data.element.dataset.pswpIndex||u.pswp.currIndex;if(t=e.querySelector('img[data-index="'.concat(n,'"'))){t.classList.add("active");var r=t.getBoundingClientRect(),i=e.offsetWidth/2-t.offsetLeft-r.width/2;i+=(window.innerWidth-e.offsetWidth)/2,e.style.transform="translateX("+i+"px)"}}})),u.on("itemData",function(t){var n=document.querySelector(".brx .pswp__container"),r=e.getAttribute("data-pswp-video-url"),i=e.getAttribute("data-pswp-width"),o=e.getAttribute("data-pswp-height"),a=1==e.getAttribute("data-no-controls")?0:1,s=1==e.getAttribute("data-muted");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 c=bricksGetLightboxVideoNode(r,a,s);t.itemData={html:c.outerHTML,width:i,height:o}}}),u.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 b,v=t.getAttribute("data-script-id");null!==(b=bricksData.swiperInstances)&&void 0!==b&&null!==(b=b[v])&&void 0!==b&&b.loopedSlides&&(u.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}),u.addFilter("clickedIndex",function(e,t){var n=t.target.closest(".swiper-slide");if(n){var r=bricksData.swiperInstances[v].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}))}e.bricksPhotoswipe=u,u.init()}});function bricksPhotoswipe(){bricksPhotoswipeFn.run()}function bricksGetLightboxVideoNode(e,t,n){if(e){hasContent=!0;var r=!1;if(-1!==e.indexOf("youtube.com")||-1!==e.indexOf("youtu.be")){r=!0;var i=bricksGetYouTubeVideoLinkData(e);if(e=i.url,i.id){var o=-1!==e.indexOf("?")?"&":"?";e+=o+"autoplay=1",e+="&rel=0",t||(e+="&controls=0"),n&&(e+="&mute=1")}}if(-1!==e.indexOf("vimeo.com"))-1!==e.indexOf("/progressive_redirect/")?r=!1:(r=!0,-1===e.indexOf("player.vimeo.com/video")&&(e=e.replace("vimeo.com","player.vimeo.com/video")),e+="?autoplay=1",t||(e+="&controls=0"));if(r){var a=document.createElement("iframe");return a.setAttribute("src",e),a.setAttribute("allow","autoplay"),a.setAttribute("allowfullscreen",1),a}var s=document.createElement("video");return s.setAttribute("src",e),t&&s.setAttribute("controls",1),s.setAttribute("playsinline",1),s}}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.display="block",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;r.classList.remove("brx-open"),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"),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;o.classList.add("brx-open"),window.setTimeout(function(){t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property"),document.dispatchEvent(new CustomEvent("bricks/accordion/open",{detail:{elementId:e.getAttribute("data-script-id"),openItem:o}}))},n)}(t,n):r(t,n)},o=function(e){var t;e.classList.add("brx-open");var n=null!==(t=e.querySelector(".accordion-title-wrapper"))&&void 0!==t&&t;n&&n.setAttribute("aria-expanded","true")},a=Array.from(e.children),s=e.hasAttribute("data-transition")?isNaN(e.dataset.transition)?0:e.dataset.transition:200,c=null===(t=e.dataset.scriptArgs)||void 0===t?void 0:t.includes("expandFirstItem"),l=null===(n=e.dataset.scriptArgs)||void 0===n?void 0:n.includes("independentToggle"),d=!!c&&["0"];!1===d&&e.hasAttribute("data-expand-item")&&(d=e.getAttribute("data-expand-item").split(","));var u=window.location.hash||"";(a=a.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){d&&d.includes(n.toString())&&o(t);var a=null!=t&&t.id&&!t.id.startsWith("brxe-")?"#".concat(t.id):"";if(a&&a===u&&o(t),!t.classList.contains("listening")){t.classList.add("listening"),t.addEventListener("click",function(t){var n=t.target.closest(".accordion-title-wrapper");if(n){var o=n.parentNode;if(o){var c=o.querySelector(".accordion-content-wrapper");if(c)if(!t.target.closest(".bricks-active-selector-detector")){if(t.stopPropagation(),!l){var d=e.querySelectorAll(":scope > .brx-open");d.length&&d.forEach(function(e){var t=e.querySelector(".accordion-content-wrapper");t&&t!==c&&(r(t,s),t.previousElementSibling.setAttribute("aria-label",window.bricksData.i18n.openAccordion),t.previousElementSibling.setAttribute("aria-expanded","false"))})}var u=!o.classList.contains("brx-open");a&&u?history.replaceState(null,null,a):history.replaceState(null,null," "),i(c,s),o.classList.contains("brx-open")?n.setAttribute("aria-expanded","true"):n.setAttribute("aria-expanded","false")}}}});var c=t.querySelector(".accordion-title-wrapper")||t;"button"===c.getAttribute("role")&&c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c.click())})}})}});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");if(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()))){Array.isArray(t.strings)&&(t.strings=t.strings.map(function(e){return e.replace(/&/g,"&")})),window.bricksData.animatedTypingInstances[n]=new Typed(r,t);var i=e.closest(".brx-popup:not([data-popup-ajax])");i&&document.addEventListener("bricks/popup/open",function(e){e.detail.popupElement===i&&window.bricksData.animatedTypingInstances[n].reset()})}}});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.getAttribute("data-wpm"),n=e.getAttribute("data-cpm");if(t||n){var r=e.dataset.contentSelector||".brxe-post-content",i=e.closest("[data-query-loop-index]"),o=i?i.querySelector(r):document.querySelector(r);if(o||(o=document.querySelector("#brx-content")),o){var a,s=e.getAttribute("data-prefix")||"",c=e.getAttribute("data-suffix")||"",l=o.textContent,d=1.5,u=2.5;if(n){var p=l.replace(/\s+/g,"").length;a=Math.ceil(p/parseInt(n))}else{var b=function(e){var t,n=0,r=0,i="",o=_createForOfIteratorHelper(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=v(a);"chinese"===s?n++:"japanese"===s?r++:i+=a}}catch(e){o.e(e)}finally{o.f()}var c=n/d,l=r/u;return i=function(e,t){var n=new RegExp("\\S{".concat(15,",}"),"g");return e.replace(n,function(e){return e.match(new RegExp(".{1,".concat(t,"}"),"g")).join(" ")})}(i,5),c+l+i.split(/\s+/).filter(function(e){return e.length>0}).length}(l);a=Math.ceil(b/parseInt(t))}e.textContent=s+a+c}}function v(e){return/[\u4e00-\u9fa5]/.test(e)?"chinese":/[\u3040-\u30FF]/.test(e)?"japanese":"other"}}});function bricksPostReadingTime(){bricksPostReadingTimeFn.run()}var bricksCountdownFn=new BricksFunction({parentNode:document,selector:".brxe-countdown",eachElement:function(e){countdown=function(e,t,n){var r=6e4*(("+"===t.timezone[3]?1:-1)*(60*parseInt(t.timezone.substring(4,6))+parseInt(t.timezone.substring(7,9)))),i=6e4*-(new Date).getTimezoneOffset(),o=t.date.replace(" ","T"),a=new Date(o).getTime()+i-r-(new Date).getTime();if(a<=0){if(clearInterval(e.dataset.bricksCountdownId),"hide"===t.action)return void(e.innerHTML="");if("text"===t.action)return void(e.innerHTML=t.actionText)}n&&(e.innerHTML="",t.fields.forEach(function(t){if(t.format){var n=document.createElement("div");if(n.classList.add("field"),t.prefix){var r=document.createElement("span");r.classList.add("prefix"),r.innerHTML=t.prefix,n.appendChild(r)}var i=document.createElement("span");if(i.classList.add("format"),n.appendChild(i),t.suffix){var o=document.createElement("span");o.classList.add("suffix"),o.innerHTML=t.suffix,n.appendChild(o)}e.appendChild(n)}}));var s=bricksQuerySelectorAll(e,".field"),c=Math.floor(a/864e5),l=Math.floor(a%864e5/36e5),d=Math.floor(a%36e5/6e4),u=Math.floor(a%6e4/1e3);t.fields.forEach(function(e,t){if(e.format&&s[t]){var n=e.format.toLowerCase();n.includes("%d")?(e.format.includes("%D")&&c<=9&&(c="0".concat(c)),s[t].querySelector(".format").innerHTML=n.replace("%d",a<=0?0:c)):n.includes("%h")?(e.format.includes("%H")&&l<=9&&(l="0".concat(l)),s[t].querySelector(".format").innerHTML=n.replace("%h",a<=0?0:l)):n.includes("%m")?(e.format.includes("%M")&&d<=9&&(d="0".concat(d)),s[t].querySelector(".format").innerHTML=n.replace("%m",a<=0?0:d)):n.includes("%s")&&(e.format.includes("%S")&&u<=9&&(u="0".concat(u)),s[t].querySelector(".format").innerHTML=n.replace("%s",a<=0?0:u))}})};var t=e.dataset.bricksCountdownOptions;try{t=JSON.parse(t)}catch(e){return!1}if(t.hasOwnProperty("date")&&t.hasOwnProperty("fields")){var n=e.dataset.bricksCountdownId;n&&clearInterval(n),countdown(e,t,!0),n=setInterval(countdown,1e3,e,t,!1),e.dataset.bricksCountdownId=n}}});function bricksCountdown(){bricksCountdownFn.run()}var bricksCounterFn=new BricksFunction({parentNode:document,selector:".brxe-counter",subscribeEvents:["bricks/popup/open","bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/query_result/displayed"],forceReinit:function(e,t){return e.closest(".brx-popup")},eachElement:function(e){var t,n=e.dataset.bricksCounterOptions;try{n=JSON.parse(n)}catch(e){return!1}var r=e.querySelector(".count"),i=n.hasOwnProperty("countFrom")?parseInt(n.countFrom):0,o=n.hasOwnProperty("countTo")?parseInt(n.countTo):100,a=n.hasOwnProperty("duration")?parseInt(n.duration):1e3,s=null===(t=n)||void 0===t?void 0:t.separator;a<500&&(a=500);var c=a/(o-i),l=1;c<16&&(l=Math.ceil(16/c),c=16);var d=function(){var e=r.innerText.replace(/\D/g,""),t=(e=isNaN(e)?i:parseInt(e))+l
=o)return clearInterval(r.dataset.counterId),void delete r.dataset.counterId;n.thousands&&s?r.innerText=t.toLocaleString("en-US").replaceAll(",",s):n.thousands?r.innerText=t.toLocaleString():r.innerText=t},u=function(){r.innerText=i,null==r.dataset.counterId&&(r.dataset.counterId=setInterval(d,c))},p=r.closest(".brx-popup");p?p.classList.contains("hide")||u():new BricksIntersect({element:e,callback:u})},listenerHandler:function(e){var t;if(null!=e&&e.type)if("bricks/popup/open"===e.type){var n={parentNode:null!==(t=e.details)&&void 0!==t&&t.popupElement?e.details.popupElement:document};bricksCounterFn.run(n)}else bricksCounterFn.run()}});function bricksCounter(){bricksCounterFn.run()}var bricksTableOfContentsFn=new BricksFunction({parentNode:document,selector:".brxe-post-toc",forceReinit:!0,eachElement:function(e){if(null!==e.offsetParent&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))n(e);else{var t=new IntersectionObserver(function(r){r.forEach(function(r){r.isIntersecting&&(n(e),t.disconnect())})},{threshold:.1});t.observe(e)}function n(e){window.tocbot&&window.tocbot.destroy();var t=e.dataset.scriptId,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});var s=parseInt(e.dataset.headingsOffset)||0,c=e.hasAttribute("data-smooth-scroll"),l={tocSelector:'.brxe-post-toc[data-script-id="'.concat(t,'"]'),contentSelector:n,headingSelector:i,ignoreSelector:e.dataset.ignoreSelector||".toc-ignore",hasInnerContainers:!0,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:s,scrollSmoothDuration:c&&s?420:0,scrollSmoothOffset:s?-s:0,headingsOffset:s,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};window.tocbot.init(l)}}}});function bricksTableOfContents(){bricksTableOfContentsFn.run()}var bricksFormFn=new BricksFunction({parentNode:document,selector:".brxe-form",eachElement:function(e){var t=e.getAttribute("data-element-id"),n="true"===e.getAttribute("data-validate-all-fields"),r=JSON.parse(e.getAttribute("data-validation-disabled-on"))||[];function i(e,t){e.addEventListener("dragstart",function(t){e.classList.add("dragging"),e.style.opacity="0.5",t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/html",e.innerHTML)}),e.addEventListener("dragend",function(n){e.style.opacity="1",e.classList.remove("dragging"),function(e){var t=e.parentNode.querySelector('input[type="hidden"]');if(!t)return;var n=e.querySelectorAll(".image-preview"),r=[];n.forEach(function(e){var t=e.querySelector("img");t&&t.dataset.attachmentId&&r.push(t.dataset.attachmentId)}),t.value=r.join(",")}(t)}),e.addEventListener("dragover",function(n){n.preventDefault(),n.dataTransfer.dropEffect="move";var r=t.querySelector(".dragging");if(r&&r!==e){var i=Array.from(t.querySelectorAll(".image-preview"));i.indexOf(r)
0&&r.on("open",function(){var e=r.state().get("selection");o.forEach(function(t){var n=wp.media.attachment(t);n.fetch(),e.add(n)})})}r.open()})}),bricksQuerySelectorAll(e,".choose-files.remove").forEach(function(e){var t=e.closest(".gallery-preview")||e.closest(".image-preview");if(t){if(!e.dataset.attachmentId){var n=e.parentNode.querySelector("img");n&&n.dataset.attachmentId&&(e.dataset.attachmentId=n.dataset.attachmentId)}o(e,t)}}),bricksQuerySelectorAll(e,".gallery-preview").forEach(function(e){e.querySelectorAll(".image-preview").forEach(function(t){t.setAttribute("draggable","true"),t.style.cursor="move",i(t,e)})});var s=e.querySelectorAll('input:not([type="hidden"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]), textarea');s.forEach(function(e){e.getAttribute("data-error-message")&&bricksIsFrontend&&(r.includes("input")||e.addEventListener("input",window.bricksUtils.debounce(function(){d(e)},300)),r.includes("blur")||e.addEventListener("blur",window.bricksUtils.debounce(function(){d(e)},300)))}),e.querySelectorAll('input[type="checkbox"], input[type="radio"]').forEach(function(e){var t=e.closest(".form-group");t&&t.getAttribute("data-error-message")&&bricksIsFrontend&&(r.includes("input")&&r.includes("blur")||e.addEventListener("change",function(){u(e)}))});var c=e.querySelectorAll("select");function l(e,t,n){var r=e.querySelector(".form-group-error-message");r||((r=document.createElement("div")).classList.add("form-group-error-message"),e.appendChild(r)),t&&n?(r.innerText=n,r.classList.add("show")):(r.innerText="",r.classList.remove("show"))}function d(e){var t=e.value.trim(),n=e.getAttribute("data-error-message"),r=e.closest(".form-group"),i=!1,o=e.hasAttribute("required")||"true"===e.dataset.wasRequired;if(o&&!t&&(i=!0),"number"===e.type){var a=parseFloat(e.getAttribute("min")),s=parseFloat(e.getAttribute("max")),c=parseFloat(t);(null!==a&&c
s)&&(i=!0)}return"email"===e.type&&(i=!function(e){var t=e.split("@")[0],n=/^\.|\.$|\.\./.test(t);return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)&&!n}(t)),"url"===e.type&&(i=!/^(https?:\/\/)?([\w.-]+)\.([a-z.]{2,6})([\/\w.-]*)*\/?$/.test(t)),o||""!=t||(i=!1),l(r,i,n),!i}function u(e){var t=e.closest(".form-group");if(!t)return!0;var n=e.type,r=e.getAttribute("name"),i=t.querySelectorAll('input[type="'.concat(n,'"][name="').concat(r,'"]')),o=!1;i.forEach(function(e){e.checked&&(o=!0)});var a=t.getAttribute("data-error-message"),s=!1;return e.hasAttribute("required")&&!o&&(s=!0),l(t,s,a),!s}function p(e,t){var n=e.closest(".form-group");if(!n)return!0;var r=e.getAttribute("data-error-message"),i=!1;if(e.hasAttribute("required")||"true"===e.dataset.required){var o=e.getAttribute("name"),a=e.files&&e.files.length>0,s=t.hasOwnProperty(o)&&t[o].length>0,c=n.querySelector('input[name^="bricks_form_existing_files"]');a||s||c||(i=!0)}return l(n,i,r),!i}function b(e){var t=e.closest(".form-group");if(!t)return!0;var n=e.getAttribute("data-error-message"),r=!1;e.hasAttribute("required")&&(e.value.trim()||(r=!0));return l(t,r,n),!r}c.forEach(function(e){e.getAttribute("data-error-message")&&bricksIsFrontend&&(r.includes("input")&&r.includes("blur")||e.addEventListener("change",function(){return d(e)}))}),e.querySelectorAll(".password-toggle").forEach(function(e){var t=e.previousElementSibling;t&&t.type.match(/password|text/)&&e.addEventListener("click",function(){var n="password"===t.type;t.type=n?"text":"password",e.setAttribute("aria-label",n?window.bricksData.i18n.hidePassword:window.bricksData.i18n.showPassword),e.querySelector(".show-password").classList.toggle("hide"),e.querySelector(".hide-password").classList.toggle("hide")})}),bricksQuerySelectorAll(e,".flatpickr").forEach(function(e){var t=e.dataset.bricksDatepickerOptions;t&&((t=JSON.parse(t)).disableMobile=!0,t.onReady=function(e,t,n){if(n.altInput){var r=n.altInput.previousElementSibling?n.altInput.previousElementSibling.getAttribute("aria-label"):"Date";n.altInput.setAttribute("aria-label",r||"Date")}},flatpickr(e,t))});var v={},f=bricksQuerySelectorAll(e,"input[type=file]");f.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.getAttribute("data-error-message")||r.includes("input")&&r.includes("blur")||!bricksIsFrontend||t.addEventListener("change",function(){p(t,v)}),t.addEventListener("change",function(a){var s=a.target.files,c=s.length,l=t.getAttribute("name"),d=0;if(o&&(d=e.querySelectorAll('.file-result.existing-file[data-files-ref="'.concat(n,'"]')).length),c){for(var u=e.querySelector('.file-result[data-files-ref="'.concat(n,'"]')),b=function(){var e=s[f],n=!1,a=u.cloneNode(!0),c=v.hasOwnProperty(l)?v[l].length:0;if(o&&c+d>=o&&(n="limit"),i&&e.size>i&&(n="size"),a.classList.add("show"),n){a.classList.add("danger"),a.querySelector(".text").remove(),a.querySelector(".remove").remove();var b=a.querySelector("svg"),m=a.getAttribute("data-error-".concat(n)).replace("%s",e.name);a.insertAdjacentHTML("afterbegin",m),b.addEventListener("click",function(){a.remove()})}else{v.hasOwnProperty(l)||(v[l]=[]),v[l].push(e);var g=a.querySelector(".text"),y=a.querySelector(".remove");a.querySelector("svg").remove(),g.innerHTML=e.name,y.setAttribute("data-name",e.name),y.setAttribute("data-field",l),y.addEventListener("click",function(e){for(var n=e.target.getAttribute("data-name"),i=e.target.getAttribute("data-field"),o=v[i],s=0;s
"})}else L.innerHTML=f.data.message;if(x.appendChild(L),null!==(v=f.data)&&void 0!==v&&v.info){var I=document.createElement("div"),A=document.createElement("div");A.innerHTML=f.data.info.join("
"),x.appendChild(I),I.appendChild(A)}else x.classList.add(f.data.type);if(p){var q=function(){x.classList.add("closing"),setTimeout(function(){null==x||x.remove()},200)};if(p.closeButton){var T=document.createElement("button");T.classList.add("close"),T.innerHTML='
',x.appendChild(T),T.addEventListener("click",function(e){e.preventDefault(),q()})}var F=null==p?void 0:p.closeAfter;F&&setTimeout(function(){q()},parseInt(F))}if(t.appendChild(x),c.classList.remove("sending"),h&&(c.disabled=!1,t.dataset.submitting="false"),f.success){var C;if(0!=(null==f||null===(C=f.data)||void 0===C?void 0:C.reset)){for(var P in t.reset(),n)delete n[P];var D=bricksQuerySelectorAll(t,".file-result.show");null!==D&&D.forEach(function(e){e.remove()}),bricksQuerySelectorAll(t,".image-preview .remove").forEach(function(e){e.click()})}if(window.top!=window.self&&!t.querySelector('input[name="brx_pp_temp_id"]')){var _=window.top.document.querySelector("button.wp-auth-check-close");_&&_.click()}}else{var N=t.querySelector(".cf-turnstile"),O=bricksGetTurnstileWidgetReference(N),M=N?N.querySelector('input[name="cf-turnstile-response"]'):null;N&&void 0!==window.turnstile&&O&&(turnstile.reset(O),t.dataset.brxTurnstileRefresh="true",M&&(M.value=""));var R=bricksQuerySelectorAll(t,".file-result.show.danger");null!==R&&R.forEach(function(e){e.remove()})}}},w.send(d)}}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")}window.bricksTurnstileCallback=function(e){if(window.bricksPendingTurnstileSubmission){var t=window.bricksPendingTurnstileSubmission;window.bricksPendingTurnstileSubmission=null,bricksSubmitForm(t.elementId,t.form,t.files,null)}},window.bricksTurnstileErrorCallback=function(e){if(window.bricksPendingTurnstileSubmission){var t=window.bricksPendingTurnstileSubmission;window.bricksPendingTurnstileSubmission=null,bricksSubmitForm(t.elementId,t.form,t.files,null)}};var bricksTinyMCEFn=new BricksFunction({parentNode:document,selector:".brxe-form .form-field-richtext",windowVariableCheck:["tinymce"],eachElement:function(e){var t=e.getAttribute("data-tinymce-settings");t=t?JSON.parse(t):{};var n=window.tinymce8||window.tinymce;e.hasAttribute("required")&&(e.removeAttribute("required"),e.dataset.wasRequired="true"),n.init(_objectSpread(_objectSpread({},t),{},{selector:"#".concat(e.id),suffix:".min",license_key:"gpl",setup:function(t){t.ui.registry.addButton("bricks_add_media",{text:"Add Media",icon:"image",onAction:function(){var e=window.wp.media({title:"Insert Media",button:{text:"Insert"},multiple:!1});e.on("select",function(){var n=e.state().get("selection").first().toJSON();t.insertContent('
').concat(n.alt,'
'))}),e.open()}});var n=e.getAttribute("data-error-message");t.on("change",window.bricksUtils.debounce(function(){t.save(),n&&e.dispatchEvent(new Event("input",{bubbles:!0}))},300)),n&&(t.on("keyup",window.bricksUtils.debounce(function(){t.save(),e.dispatchEvent(new Event("input",{bubbles:!0}))},300)),t.on("blur",window.bricksUtils.debounce(function(){t.save(),e.dispatchEvent(new Event("blur",{bubbles:!0}))},300)))}}))}});function bricksTinyMCE(){bricksTinyMCEFn.run()}var bricksIsotopeFn=new BricksFunction({parentNode:document,selector:".bricks-layout-wrapper.isotope",forceReinit:!0,windowVariableCheck:["Isotope"],eachElement:function(e){var t=!1,n="";if(e.classList.contains("bricks-masonry"))t=e.getAttribute("data-script-id"),n="masonry-element";else if(e.classList.contains("brxe-image-gallery"))t=e.getAttribute("data-script-id"),n="image-gallery";else{var r;t=null===(r=e.closest(".brxe-posts"))||void 0===r?void 0:r.getAttribute("data-script-id"),n="posts"}if(t&&n){if(bricksIsFrontend&&window.bricksData.isotopeInstances[t]){var i;if(null!==(i=window.bricksData.isotopeInstances[t].element)&&void 0!==i&&i.isConnected)return void bricksUtils.updateIsotopeInstance(t);window.bricksData.isotopeInstances[t].instance.destroy(),delete window.bricksData.isotopeInstances[t]}else window.bricksData.isotopeInstances[t]&&(window.bricksData.isotopeInstances[t].instance.destroy(),delete window.bricksData.isotopeInstances[t]);var o={},a=e.getAttribute("data-layout");if("masonry-element"===n){var s,c,l;a="masonry";var d=e.getAttribute("data-brx-masonry-json")||"{}",u={};try{u=JSON.parse(d)}catch(e){console.error("Bricks: Invalid JSON data for Masonry element")}var p=(null===(s=u)||void 0===s?void 0:s.transitionDuration)||"0.4s",b=(null===(c=u)||void 0===c?void 0:c.transitionMode)||"scale";if(o={itemSelector:".bricks-masonry > *:not(.bricks-isotope-sizer):not(.bricks-gutter-sizer)",percentPosition:!0,masonry:{columnWidth:".bricks-isotope-sizer",gutter:".bricks-gutter-sizer",horizontalOrder:(null===(l=u)||void 0===l?void 0:l.horizontalOrder)||!1},transitionDuration:p},"0s"===p||"0"===p)o.hiddenStyle={opacity:1},o.visibleStyle={opacity:1},o.instantLayout=!0;else switch(b){case"fade":o.hiddenStyle={opacity:0},o.visibleStyle={opacity:1};break;case"slideLeft":o.hiddenStyle={opacity:0,transform:"translateX(-50%)"},o.visibleStyle={opacity:1,transform:"translateX(0)"};break;case"slideRight":o.hiddenStyle={opacity:0,transform:"translateX(50%)"},o.visibleStyle={opacity:1,transform:"translateX(0)"};break;case"skew":o.hiddenStyle={opacity:0,transform:"skew(20deg)"},o.visibleStyle={opacity:1,transform:"skew(0)"}}}else o={itemSelector:".bricks-layout-item",percentPosition:!0},"grid"===a?(o.layoutMode="fitRows",o.fitRows={gutter:".bricks-gutter-sizer"}):"masonry"!==a&&"metro"!==a||(o.masonry={columnWidth:".bricks-isotope-sizer",gutter:".bricks-gutter-sizer"});var v=new Isotope(e,o);setTimeout(function(){e.classList.remove("isotope-before-init")},250);var f=e.parentNode.querySelector(".bricks-isotope-filters");f&&f.addEventListener("click",function(e){var t=e.target.getAttribute("data-filter"),n=f.querySelector("li.active");t&&bricksIsFrontend&&(n&&n.classList.remove("active"),e.target.classList.add("active"),v.arrange({filter:t}))}),window.bricksData.isotopeInstances[t]={elementId:t,instance:v,layout:a,filters:f,options:o,element:e,elementName:n},bricksUtils.updateIsotopeOnImageLoad(t)}},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)})}}),document.addEventListener("bricks/ajax/nodes_added",function(e){var t,n,r=null==e||null===(t=e.detail)||void 0===t?void 0:t.queryId;if(r){var i,o=window.bricksData.queryLoopInstances[r]||!1;if(o)if((null===(n=o.resultsContainer)||void 0===n||null===(n=n.classList)||void 0===n?void 0:n.contains("bricks-masonry"))||window.bricksData.isotopeInstances[r])if(window.bricksData.isotopeInstances[r])bricksUtils.updateIsotopeInstance(r);else bricksUtils.updateIsotopeInstance(null===(i=o.resultsContainer)||void 0===i?void 0:i.getAttribute("data-script-id"))}}),document.addEventListener("bricks/megamenu/repositioned",function(e){var t,n=(null===(t=e.detail)||void 0===t?void 0:t.submenu)||!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)})}}),window.addEventListener("load",function(){bricksIsotope()})}var bricksMapLeafletFn=new BricksFunction({parentNode:document,selector:".brxe-map-leaflet",eachElement:function(e,t){var n=JSON.parse(e.dataset.mapOptions),r=e.dataset.scriptId||e.id||"leaflet-map-".concat(t),i=function(){var e=[];return n.layers.forEach(function(t){var n=t.name,r=t.url,i=_objectWithoutProperties(t,_excluded);e[n]=L.tileLayer(r,i)}),e}(),o=Object.values(i);o.length&&(n.map.layers=o[0]);var a=L.map(e,n.map);o.length>1&&L.control.layers(i).addTo(a),function(){for(var e=0;e
2&&void 0!==arguments[2]?arguments[2]:500,r=window.setInterval(function(){window[e]&&(window.clearInterval(r),t(window[e]))},n)}("L",function(){setTimeout(function(){bricksMapLeafletFn.run()},bricksIsFrontend?0:1e3)})}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={};try{(i=JSON.parse(e.dataset.splide)).i18n={prev:window.bricksData.i18n.prevSlide,next:window.bricksData.i18n.nextSlide,first:window.bricksData.i18n.firstSlide,last:window.bricksData.i18n.lastSlide,slideX:window.bricksData.i18n.slideX,pageX:window.bricksData.i18n.slideX,play:window.bricksData.i18n.play,pause:window.bricksData.i18n.pause,carousel:window.bricksData.i18n.splide.carousel,select:window.bricksData.i18n.splide.select,slide:window.bricksData.i18n.splide.slide,slideLabel:window.bricksData.i18n.splide.slideLabel}}catch(e){console.warn("bricksSplide: Error parsing JSON of data-script-args",r)}"auto"===i.direction&&(i.direction="rtl"===document.dir?"rtl":"ltr",e.dataset.splide=JSON.stringify(_objectSpread(_objectSpread({},i),{},{i18n:void 0})));var o=new Splide(e,i);if(o.mount(),null!==(t=i)&&void 0!==t&&t.autoHeight){var a=function(){try{var e,t=null==o||null===(e=o.Components)||void 0===e?void 0:e.Slides;if(!t)return void console.error("Slides component is undefined:",r);var i=t.getAt(o.index),a=null==i?void 0:i.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)}};o?(a(),"function"==typeof o.on?(o.on("move resize",a),o.on("moved",a)):console.error("splideInstance.on is not a function")):console.error("splideInstance is undefined")}window.bricksData.splideInstances[r]=o,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()}function bricksSplideListeners(){var e=function(e){var t;if(e){var n=null!==(t=e.matches)&&void 0!==t&&t.call(e,".brxe-slider-nested.splide")?[e]:[];(n=[].concat(_toConsumableArray(n),_toConsumableArray(e.querySelectorAll(".brxe-slider-nested.splide")))).forEach(function(e){var t,n,r=null==e||null===(t=e.dataset)||void 0===t?void 0:t.scriptId,i=!!r&&(null===(n=window.bricksData)||void 0===n||null===(n=n.splideInstances)||void 0===n?void 0:n[r]);i&&(e.querySelector('iframe[data-bricks-video-preview-iframe="true"][src*="autoplay=1"][src*="youtube"], iframe[data-bricks-video-preview-iframe="true"][src*="autoplay=1"][src*="vimeo"]')||window.requestAnimationFrame(function(){e.isConnected&&i.refresh()}))})}};document.addEventListener("bricks/tabs/changed",function(t){var n;e(null===(n=t.detail)||void 0===n?void 0:n.activePane)}),document.addEventListener("bricks/accordion/open",function(t){var n;e(null===(n=t.detail)||void 0===n?void 0:n.openItem)})}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)),t.a11y={prevSlideMessage:window.bricksData.i18n.prevSlide,nextSlideMessage:window.bricksData.i18n.nextSlide,firstSlideMessage:window.bricksData.i18n.firstSlide,lastSlideMessage:window.bricksData.i18n.lastSlide,paginationBulletMessage:window.bricksData.i18n.swiper.paginationBulletMessage,slideLabelMessage:window.bricksData.i18n.swiper.slideLabelMessage},i=new Swiper(e,t),window.bricksData.swiperInstances[r]=i}}});function bricksSwiper(){bricksSwiperFn.run()}function bricksSwiperUpdateBreakpoints(){var e;Object.keys((null===(e=window.bricksData)||void 0===e?void 0:e.swiperInstances)||{}).forEach(function(e){var t=window.bricksData.swiperInstances[e];t&&!t.destroyed&&("function"==typeof t.setBreakpoint&&t.setBreakpoint(),"function"==typeof t.update&&t.update())})}var bricksVideoFn=new BricksFunction({parentNode:document,selector:".brxe-video",eachElement:function(e){if(bricksIsFrontend){var t=function(){var t=e.querySelector(".bricks-video-overlay"),n=e.querySelector(".bricks-video-overlay-icon");t&&t.remove(),n&&n.remove()};e.addEventListener("click",t),e.addEventListener("keydown",function(n){"Enter"!==n.key&&" "!==n.key||t(),e.querySelector("video")||"Enter"!==n.key&&" "!==n.key||n.preventDefault()})}var n=e.querySelector("video");if(n){if(window.hasOwnProperty("Plyr")){var r,i=e.dataset.scriptId,o=e.querySelector(".bricks-plyr"),a=(null===(r=window.bricksData)||void 0===r||null===(r=r.videoInstances)||void 0===r?void 0:r[i])||void 0;a&&a.destroy(),o&&(a=new Plyr(o)),window.bricksData.videoInstances[i]=a}n.hasAttribute("autoplay")&&n.setAttribute("playsinline",!0),n.addEventListener("play",function(){this.setAttribute("data-is-loaded","true")})}}});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,n=document.createElement("script");!bricksIsFrontend&&null!==(e=window.bricksData)&&void 0!==e&&e.builderCloudflareRocketLoader&&n.setAttribute("data-cfasync","false"),n.type="text/javascript",n.id="bricks-facebook-page-sdk",n.appendChild(document.createTextNode(r.responseText)),document.body.appendChild(n),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 bricksGalleryInfiniteScrollFn=new BricksFunction({parentNode:document,selector:'.brxe-image-gallery[data-brx-load-more="gallery"]',eachElement:function(e){var t,n,r=bricksUtils.imageGalleryGetResolvedLoadMoreSettings(e);if((1==(null==r?void 0:r.infinite)||!1)&&"true"!==(null===(t=e.dataset)||void 0===t?void 0:t.brxGalleryInfiniteInit)){e.dataset.brxGalleryInfiniteInit="true";var i=function(){return e.querySelector(":scope > .brx-gallery-load-more-trail")},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:600;if(null==e||""===e)return t;if("number"==typeof e)return Math.max(0,parseInt(e));if("string"==typeof e){if(e.includes("ms"))return Math.max(0,parseInt(e));if(e.includes("s"))return Math.max(0,Math.round(1e3*parseFloat(e)));var n=parseInt(e);return isNaN(n)?t:Math.max(0,n)}return t}(null==r?void 0:r.scrollDelay,600),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200px";if(null==e||""===e)return t;if("number"==typeof e)return"".concat(Math.max(1,parseInt(e)),"px");if("string"==typeof e&&e.includes("px")){var n=parseInt(e);return isNaN(n)?t:"".concat(Math.max(1,n),"px")}return t}(null!==(n=null==r?void 0:r.scrollOffset)&&void 0!==n?n:null==r?void 0:r.observerMargin,"200px"),s=!1,c=null,l=Date.now()+o,d=0,u=function(){var e=i();if(e){var t=++d;new BricksIntersect({element:e,once:!0,threshold:0,rootMargin:a,callback:function(){t===d&&p()}})}},p=function(){if(!s&&!c){var t=Math.max(0,l-Date.now());c=setTimeout(function(){c=null,s=!0;var t=bricksUtils.imageGalleryLoadMore(e);if(s=!1,l=Date.now()+o,t){var n=i();n&&BricksIsInViewport(n)?p():u()}},t)}},b=i();b&&(BricksIsInViewport(b)?p():u())}}});function bricksGalleryInfiniteScroll(){bricksGalleryInfiniteScrollFn.run()}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,function(e){return bricksInteractionCallback(e,t)},{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":new BricksIntersect({element:e,callback:function(e){"startAnimation"===t.action&&Array.from(e.classList).some(function(e){return e.startsWith("brx-animate-")})||bricksInteractionCallbackExecution(e,t)},once:null==t?void 0:t.runOnce,trigger:null==t?void 0:t.trigger,rootMargin:null==t?void 0:t.rootMargin});break;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)});break;case"filterOptionEmpty":case"filterOptionNotEmpty":var v=(null==t?void 0:t.filterElementId)||!1;if(!v)return;v=(v=v.replace("#","")).replace("brxe-","");var f="bricks/filter/option/".concat(t.trigger.replace("filterOption","").toLowerCase());document.addEventListener(f,function(n){var r,i=(null===(r=n.detail)||void 0===r?void 0:r.filterElementIds)||[];i.length&&i.includes(v)&&bricksUtils.maybeRunOnceInteractions(e,t)});break;case"wooAddedToCart":case"wooAddingToCart":case"wooRemovedFromCart":case"wooUpdateCart":case"wooCouponApplied":case"wooCouponRemoved":if("undefined"==typeof jQuery)return;var m=null;"wooAddedToCart"===t.trigger?m="added_to_cart":"wooAddingToCart"===t.trigger?m="adding_to_cart":"wooRemovedFromCart"===t.trigger?m="item_removed_from_classic_cart":"wooUpdateCart"===t.trigger?m="updated_cart_totals":"wooCouponApplied"===t.trigger?m="applied_coupon applied_coupon_in_checkout":"wooCouponRemoved"===t.trigger&&(m="removed_coupon removed_coupon_in_checkout"),m&&jQuery(document.body).on(m,function(n){bricksUtils.maybeRunOnceInteractions(e,t)})}}}),bricksUtils.hideOrShowLoadMoreButtons("all"))}});function bricksInteractions(){bricksInteractionsFn.run()}function bricksTrapFocus(e,t){if("Tab"===e.key){var n=bricksGetVisibleFocusables(t),r=n[0],i=n[n.length-1];e.shiftKey?document.activeElement===r&&(i.focus(),e.preventDefault()):document.activeElement===i&&(r.focus(),e.preventDefault())}}function bricksFocusOnFirstFocusableElement(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=bricksGetFocusables(e)[0];if(n)if(t){var r=0;requestAnimationFrame(function e(){!function(e){var t=window.getComputedStyle(e);if("none"===t.display||"visible"!==t.visibility||parseFloat(t.opacity)<.1)return!1;var n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&!(n.bottom<0||n.top>window.innerHeight||n.right<0||n.left>window.innerWidth)}(n)?r++<60?requestAnimationFrame(e):console.warn("Element never became focusable:",n):n.focus()})}else n.focus()}function bricksPopups(){var e=null;document.addEventListener("bricks/popup/open",function(t){var n,r,i,o,a=(null===(n=t.detail)||void 0===n?void 0:n.popupElement)||!1;if(a&&bricksIsFrontend&&!a.classList.contains("brx-infobox-popup")){var s,c=(null===(r=a.dataset)||void 0===r?void 0:r.popupCloseOn)||"backdrop-esc";if(c.includes("esc")){var l=function(e){return function(e,t){"Escape"===e.key&&bricksClosePopup(t)}(e,a)};document.addEventListener("keyup",l),document.addEventListener("bricks/popup/close",function(){document.removeEventListener("keyup",l)})}if(c.includes("backdrop")){var d=function(e){return function(e,t){(e.target.classList.contains("brx-popup-backdrop")||e.target.classList.contains("brx-popup"))&&bricksClosePopup(t)}(e,a)};document.addEventListener("click",d),document.addEventListener("bricks/popup/close",function(){document.removeEventListener("click",d)})}if(e=document.activeElement,null!==(i=a.dataset)&&void 0!==i&&i.popupScrollToTop)null===(s=a.querySelector(".brx-popup-content"))||void 0===s||s.scrollTo(0,0);if(null===(o=a.dataset)||void 0===o||!o.popupDisableAutoFocus){var u=bricksGetFocusables(a),p=u.length>0?u[0]:null;if(p){var b;null===(b=a.querySelector(".brx-popup-content"))||void 0===b||b.scrollTo(0,0);var v=p.getBoundingClientRect(),f=a.querySelector(".brx-popup-content").getBoundingClientRect(),m=v.top-f.top+a.scrollTop-10;a.querySelector(".brx-popup-content").scrollTo({top:m})}}setTimeout(function(){var e,t,n;(null!==(e=a.dataset)&&void 0!==e&&e.popupDisableAutoFocus||bricksFocusOnFirstFocusableElement(a),null!==(t=a.dataset)&&void 0!==t&&t.popupScrollToTop)&&(null===(n=a.querySelector(".brx-popup-content"))||void 0===n||n.scrollTo({top:0,left:0,behavior:"smooth"}))},100);var g=function(e){return bricksTrapFocus(e,a)};document.addEventListener("keydown",g),document.addEventListener("bricks/popup/close",function(){document.removeEventListener("keydown",g),e&&e.focus()})}})}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(e.id))}),r.forEach(function(e){window.bricksData.interactions=window.bricksData.interactions.filter(function(t){return t.id!==e})})}function bricksInteractionCallback(e,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;null!=t&&t.disablePreventDefault||e.preventDefault()}bricksInteractionCallbackExecution(t.el,t)}function bricksInteractionCallbackExecution(e,t){var n,r,i,o=["clearForm","storageAdd","storageRemove","storageCount","loadMore","toggleOffCanvas","openAddress","closeAddress"].includes(null==t?void 0:t.action),a=(null==t?void 0:t.target)||"self";if(!o)switch(a){case"custom":null!=t&&t.targetSelector&&(i=bricksQuerySelectorAll(document,t.targetSelector));break;case"popup":var s;if(null!=t&&t.templateId)null!==(s=e.dataset)&&void 0!==s&&s.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;case"offcanvas":null!=t&&t.offCanvasSelector&&(i=e);break;default:i=e}if(o||i)if(Array.isArray(i)||(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 c=null==t?void 0:t.actionAttributeKey;c&&i.forEach(function(e){var n=(null==t?void 0:t.actionAttributeValue)||"";"class"===c?(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(c,n):"removeAttribute"===t.action||e.hasAttribute(c)?e.removeAttribute(c):e.setAttribute(c,n)});break;case"scrollTo":var l=i[0];if(!l||!l.scrollIntoView)return;var d=(null==t?void 0:t.scrollToOffset)||0,u=(null==t?void 0:t.scrollToDelay)||1;setTimeout(function(){"string"==typeof d&&(d=d.replace("px",""));var e=l.getBoundingClientRect().top;window.scrollBy(0,e-parseInt(d))},parseInt(u));break;case"clearForm":var p=null==t?void 0:t.targetFormSelector,b=null;if(["formSubmit","formSuccess","formError"].includes(t.trigger)){var v=null==t?void 0:t.formId;v=(v=v.replace("#","")).replace("brxe-",""),b=document.querySelectorAll('.brxe-form[data-element-id="'.concat(v,'"]'))}else b=p?document.querySelectorAll(p):document.querySelectorAll("form");b&&b.length&&b.forEach(function(e){e.querySelectorAll("input, textarea, select").forEach(function(e){"hidden"!==e.type&&("SELECT"===e.tagName?e.selectedIndex=0:"TEXTAREA"===e.tagName?e.value="":"checkbox"===e.type||"radio"===e.type?e.checked=!1:e.value="")}),e.querySelectorAll(".file-result.show > .bricks-button.remove").forEach(function(e){e.click()})});break;case"click":i&&i.length&&i.forEach(function(e){e.click()});break;case"storageAdd":case"storageRemove":case"storageCount":var f=null==t?void 0:t.storageType,m=null==t?void 0:t.actionAttributeKey,g=t.hasOwnProperty("actionAttributeValue")?t.actionAttributeValue:0;if(f&&m)if("storageAdd"===t.action)bricksStorageSetItem(f,m,g);else if("storageRemove"===t.action)bricksStorageRemoveItem(f,m);else if("storageCount"===t.action){var y=bricksStorageGetItem(f,m);bricksStorageSetItem(f,m,(y=y?parseInt(y):0)+1)}break;case"startAnimation":var k=null==t?void 0:t.animationType;if(k){var w=0;null!=t&&t.animationDelay&&(t.animationDelay.includes("ms")?w=parseInt(t.animationDelay):t.animationDelay.includes("s")&&(w=1e3*parseFloat(t.animationDelay))),setTimeout(function(){i.forEach(function(n){var r,i=1e3,o=null===(r=n)||void 0===r?void 0:r.classList.contains("brx-popup");if(o&&(n=n.querySelector(".brx-popup-content")),null!=t&&t.animationDuration&&(n.style.animationDuration=t.animationDuration,t.animationDuration.includes("ms")?i=parseInt(t.animationDuration):t.animationDuration.includes("s")&&(i=1e3*parseFloat(t.animationDuration))),null!=t&&t.animationDelay&&(i+=w),o&&"showPopup"!==t.trigger&&"hidePopup"!==t.trigger){var a,s=n.parentNode,c={};null!=t&&t.popupContextId&&(c.popupContextId=t.popupContextId),null!=t&&t.popupContextType&&(c.popupContextType=t.popupContextType),null!==(a=e.dataset)&&void 0!==a&&a.interactionLoopId&&(c.loopId=e.dataset.interactionLoopId),k.includes("In")&&bricksOpenPopup(s,i,c)}n.classList.add("brx-animated"),n.setAttribute("data-animation",k),n.setAttribute("data-animation-id",t.id||""),bricksAnimationFn.run({elementsToAnimate:[n],removeAfterMs:i})})},w)}break;case"loadMore":var h=null==t?void 0:t.loadMoreQuery,x=null===(n=window.bricksData.queryLoopInstances)||void 0===n?void 0:n[h];if(!x)return;var S=(null==x?void 0:x.componentId)||!1,L=bricksUtils.getQueryTrailSelectorId(h,S),E=Array.from(null===(r=x.resultsContainer)||void 0===r?void 0:r.querySelectorAll(".brxe-".concat(L,":not(.brx-popup)"))).pop();E&&(e.classList.contains("is-loading")||(e.classList.add("is-loading"),E.dataset.queryElementId=h,S&&(E.dataset.queryComponentId=S),bricksQueryLoadPage(E,!0).then(function(t){e.classList.remove("is-loading"),bricksUtils.hideOrShowLoadMoreButtons(h)})));break;case"loadMoreGallery":var I=t.loadMoreTargetSelector||"";if(I)bricksQuerySelectorAll(document,I).forEach(function(e){e.matches&&e.matches('.brxe-image-gallery[data-brx-load-more="gallery"]')&&bricksUtils.imageGalleryLoadMore(e)});break;case"javascript":if(null!=t&&t.jsFunction){var A,q=null!==(A=window[t.jsFunction])&&void 0!==A&&A;if(t.jsFunction.includes(".")){var T=t.jsFunction.split("."),F=window;T.forEach(function(e){F=F[e]}),"function"==typeof F&&(q=F)}if(q&&"function"==typeof q){var C={source:e,targets:i},P={};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=C),P[n]=r}}),i.forEach(function(e){null!=P&&P["%brx%"]&&(P["%brx%"].target=e),Object.keys(P).length?q.apply(void 0,_toConsumableArray(Object.keys(P).map(function(e){return P[e]}))):q()})}else console.error('Bricks interaction: Custom JavaScript function "'.concat(t.jsFunction,'" not found.'))}break;case"toggleOffCanvas":var D=(null==t?void 0:t.offCanvasSelector)||!1;if(!D)return;bricksUtils.toggleAction(e,{selector:D});break;case"openAddress":case"closeAddress":bricksUtils.toggleMapInfoBox(t)}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 bricksGetCurrentUrlParams(){var e={};try{new URLSearchParams(window.location.search).forEach(function(t,n){void 0===e[n]?e[n]=t:Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]})}catch(e){console.warn("Failed to parse URL parameters:",e)}return e}function bricksFetchPopupContent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r,i){var o;if((null===(o=e.dataset)||void 0===o?void 0:o.popupAjax)||!1){e.querySelector(".brx-popup-content").innerHTML="";var a=e.dataset.popupId,s={postId:window.bricksData.postId,popupId:a,nonce:window.bricksData.nonce,popupContextId:!1,popupContextType:"post",isLooping:!1,popupLoopId:!1,queryElementId:!1,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,urlParams:bricksGetCurrentUrlParams()};if(null!=t&&t.loopId&&(s.isLooping=!0),null!=t&&t.popupContextId&&(s.popupContextId=t.popupContextId,null!=t&&t.popupContextType&&(s.popupContextType=t.popupContextType)),null!=t&&t.loopId&&!s.popupContextId){var c=t.loopId.split(":");c.length>=4&&c[0].length>=6&&(s.queryElementId=c[0],s.popupLoopId=t.loopId)}var l,d=window.bricksData.restApiUrl.concat("load_popup_content");if("wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(d=d.concat("?lang="+window.bricksData.language)),document.dispatchEvent(new CustomEvent("bricks/ajax/popup/start",{detail:{popupId:a,popupElement:e}})),s.isLooping)null===(l=e.querySelector(".brx-popup-backdrop"))||void 0===l||l.removeAttribute("data-query-loop-index");var u=new XMLHttpRequest;u.open("POST",d,!0),u.setRequestHeader("Content-Type","application/json; charset=UTF-8"),u.setRequestHeader("X-WP-Nonce",window.bricksData.wpRestNonce),u.onreadystatechange=function(){if(u.readyState===XMLHttpRequest.DONE){var o,c,l=u.status,d="";try{c=JSON.parse(u.response)}catch(e){console.error("Error parsing response:",e)}if(0===l||l>=200&&l<400){var p,b,v,f,m,g,y=(null===(p=c)||void 0===p?void 0:p.html)||!1,k=(null===(b=c)||void 0===b?void 0:b.styles)||!1,w=(null===(v=c)||void 0===v?void 0:v.popups)||!1,h=(null===(f=c)||void 0===f?void 0:f.error)||!1,x=(null===(m=c)||void 0===m?void 0:m.contentClasses)||!1;if(h&&console.error("error:bricksFetchPopupContent",h),y&&(d=y),k&&(d+=k),x){var S=e.querySelector(".brx-popup-content.brx-woo-quick-view");if(S){var L,E=["brx-popup-content","brxe-container","brx-woo-quick-view"];S.classList.forEach(function(e){E.includes(e)||S.classList.remove(e)}),(L=S.classList).add.apply(L,_toConsumableArray(x)),document.body.classList.contains("woocommerce")||S.classList.add("woocommerce")}}if(w&&Object.keys(w).length&&Object.entries(w).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)}),s.isLooping)null===(g=e.querySelector(".brx-popup-backdrop"))||void 0===g||g.setAttribute("data-query-loop-index",0)}else if("rest_cookie_invalid_nonce"===(null===(o=c)||void 0===o?void 0:o.code)&&!n)return void bricksRegenerateNonceAndRetryPopup(e,t).then(r).catch(i);r(d),document.dispatchEvent(new CustomEvent("bricks/ajax/popup/end",{detail:{popupId:a,popupElement:e}}))}},u.send(JSON.stringify(s))}else r("")})}function bricksRegenerateNonceAndRetryPopup(e,t){return new Promise(function(n,r){var i=new XMLHttpRequest;i.open("POST",window.bricksData.ajaxUrl,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(i.status>=200&&i.status<400){var o;try{o=JSON.parse(i.responseText)}catch(e){return void r("Invalid response from server when regenerating nonce")}o.success&&o.data?(window.bricksData.nonce=o.data.bricks_nonce,window.bricksData.wpRestNonce=o.data.rest_nonce,bricksFetchPopupContent(e,t,!0).then(n).catch(r)):r("Failed to regenerate nonces: Invalid response structure")}else r("Failed to regenerate nonce")},i.send("action=bricks_regenerate_query_nonce")})}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
=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&&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)
li, .brx-nav-nested-items > .brxe-dropdown"),isInDropdown:null!==t.closest(".brx-dropdown-content"),isInSubmenuToggle:null!==t.closest(".brx-submenu-toggle"),getNextFocusable:bricksGetNextMenuFocusableInSubmenuToggle,getPreviousFocusable:bricksGetPreviousMenuFocusableInSubmenuToggle,getLastFocusableInSubmenuToggle:bricksMenuGetLastFocusableInSubmenuToggle,focusNextElement:function(e){return bricksMenuFocusNextElement(e,".brx-nav-nested-items")},focusPreviousElement:function(e){return bricksMenuFocusPreviousElement(e,".brx-nav-nested-items")},focusFirstElement:bricksMenuFocusFirstElement,focusLastElement:bricksMenuFocusLastElement,closeSubmenu:function(e){return bricksSubmenuToggle(e,"remove")}})})}),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)})}var bricksNavMenuFn=new BricksFunction({parentNode:document,selector:".brxe-nav-menu",eachElement:function(e){e.addEventListener("keydown",function(e){var t=document.activeElement;bricksHandleMenuKeyNavigation(e,{isTopLevel:null!==t.closest(".bricks-nav-menu > li"),isInDropdown:null!==t.closest(".sub-menu"),isInSubmenuToggle:null!==t.closest(".brx-submenu-toggle"),getNextFocusable:bricksGetNextMenuFocusableInSubmenuToggle,getPreviousFocusable:bricksGetPreviousMenuFocusableInSubmenuToggle,getLastFocusableInSubmenuToggle:bricksMenuGetLastFocusableInSubmenuToggle,focusNextElement:function(e){return bricksMenuFocusNextElement(e,".bricks-nav-menu")},focusPreviousElement:function(e){return bricksMenuFocusPreviousElement(e,".bricks-nav-menu")},focusFirstElement:bricksMenuFocusFirstElement,focusLastElement:bricksMenuFocusLastElement,closeSubmenu:function(e){e.setAttribute("aria-expanded","false"),e.closest(".menu-item-has-children").classList.remove("open")}})})}});function bricksNavMenu(){bricksNavMenuFn.run()}function bricksHandleMenuKeyNavigation(e,t){var n=t.isTopLevel,r=t.isInDropdown,i=t.isInSubmenuToggle,o=t.getNextFocusable,a=t.getPreviousFocusable,s=t.getLastFocusableInSubmenuToggle,c=t.focusNextElement,l=t.focusPreviousElement,d=t.focusFirstElement,u=t.focusLastElement,p=(t.closeSubmenu,e.key),b=document.activeElement;["ArrowDown","ArrowRight","ArrowUp","ArrowLeft","Home","End"].includes(p)&&e.preventDefault();var v="rtl"===document.dir||"rtl"===document.documentElement.dir||null!==b.closest('[dir="rtl"]');switch(p){case"ArrowDown":if(n)if(i){var f=b.closest(".brx-submenu-toggle"),m=f.nextElementSibling,g=f.querySelector("button[aria-expanded]");if(m&&(m.classList.contains("brx-dropdown-content")||m.classList.contains("sub-menu"))&&g&&"true"===g.getAttribute("aria-expanded")){var y=m.querySelector("a, button");y&&y.focus()}else c(b)}else c(b);else r&&c(b);break;case v?"ArrowLeft":"ArrowRight":if(n)if(i){var k=o(b,v);k?k.focus():c(b.closest(".brxe-dropdown, .menu-item"))}else c(b);break;case"ArrowUp":if(n)l(b);else if(r){if(!l(b)){var w=b.closest(".brxe-dropdown").querySelector(".brx-submenu-toggle");if(w){var h=s(w,v);h&&h.focus()}}}break;case v?"ArrowRight":"ArrowLeft":if(n)if(i){var x=a(b,v);x?x.focus():l(b.closest(".brxe-dropdown, .menu-item"))}else l(b);else if(r){if(!l(b)){var S=b.closest(".brxe-dropdown").querySelector(".brx-submenu-toggle");if(S){var L=s(S,v);L&&L.focus()}}}break;case"Home":d(r?b.closest(".sub-menu, .brx-dropdown-content"):b.closest(".bricks-nav-menu, .brx-nav-nested-items"));break;case"End":u(r?b.closest(".sub-menu, .brx-dropdown-content"):b.closest(".bricks-nav-menu, .brx-nav-nested-items"))}}function bricksMenuFocusNextElement(e,t){if(!e)return null;var n=e.closest("ul")||e.closest(t);if(!n)return null;var r,i=Array.from(n.children).filter(function(e){return e.querySelector("a, button, .brx-submenu-toggle")}),o=i.findIndex(function(t){return t.contains(e)}),a=i[o+1];if(!a)return null;if(a.querySelector(".brx-submenu-toggle")){var s=a.querySelector(".brx-submenu-toggle"),c=s.querySelector("a"),l=s.querySelector("button");r=c||l}else r=a.querySelector("a")||a.querySelector("button");return r&&r.focus(),r}function bricksMenuFocusPreviousElement(e,t){if(!e)return null;var n=e.closest("ul")||e.closest(t);if(!n)return null;var r,i=Array.from(n.children).filter(function(e){return e.querySelector("a, button, .brx-submenu-toggle")}),o=i.findIndex(function(t){return t.contains(e)}),a=i[o-1];return a?((r=a.querySelector(".brx-submenu-toggle")?a.querySelector(".brx-submenu-toggle button")||a.querySelector(".brx-submenu-toggle a"):a.querySelector("a")||a.querySelector("button")||a.querySelector(".brx-submenu-toggle"))&&r.focus(),r):null}function bricksMenuFocusFirstElement(e){var t=bricksGetFocusables(e);if(t.length>0){var n=t[0];if(n.classList.contains("brx-submenu-toggle")){var r=n.querySelector("a, button");r&&r.focus()}else n.focus()}}function bricksMenuFocusLastElement(e){var t=bricksGetFocusables(e);if(t.length>0)for(var n=t.length-1;n>=0;n--){var r=t[n];if(bricksIsElementVisible(r)){if(!r.classList.contains("brx-submenu-toggle"))return void r.focus();var i=r.querySelector("button")||r.querySelector("a");if(i&&bricksIsElementVisible(i))return void i.focus()}}}function bricksGetNextMenuFocusableInSubmenuToggle(e,t){var n=e.closest(".brx-submenu-toggle"),r=Array.from(n.querySelectorAll("a, button"));return"a"===e.tagName.toLowerCase()?r[1]:null}function bricksGetPreviousMenuFocusableInSubmenuToggle(e,t){var n=e.closest(".brx-submenu-toggle"),r=Array.from(n.querySelectorAll("a, button"));return"button"===e.tagName.toLowerCase()&&r.find(function(e){return"a"===e.tagName.toLowerCase()})||null}function bricksMenuGetLastFocusableInSubmenuToggle(e,t){var n=Array.from(e.querySelectorAll("a, button"));return t?n[0]:n[n.length-1]}function bricksIsElementVisible(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return t.width>0&&t.height>0&&"hidden"!==n.visibility&&"none"!==n.display}function bricksOffcanvas(){if(bricksIsFrontend){var e=bricksQuerySelectorAll(document,".brxe-offcanvas");if(e.length){var t=e.some(function(e){return e.classList.contains("brx-open")&&"offset"===e.dataset.effect}),n=function(e){var n=e.querySelector(".brx-offcanvas-inner"),r=n?r=1e3*parseFloat(window.getComputedStyle(n).getPropertyValue("transition-duration")):200;if(e.classList.contains("brx-open")){var i,o;if(bricksSetVh(),"offset"===e.dataset.effect&&n){var a=e.getAttribute("data-direction"),s=window.getComputedStyle(n).getPropertyValue("transition");document.body.style.margin="0",t||(document.body.style.transition=s.replace("transform","margin"));var c="rtl"===document.dir||"rtl"===document.documentElement.dir;"top"===a?document.body.style.marginTop="".concat(n.offsetHeight,"px"):"bottom"===a?document.body.style.marginTop="-".concat(n.offsetHeight,"px"):"left"===a?(c?document.body.style.marginRight="-".concat(n.offsetWidth,"px"):document.body.style.marginLeft="".concat(n.offsetWidth,"px"),document.body.style.overflowX="hidden"):"right"===a&&(c?document.body.style.marginRight="".concat(n.offsetWidth,"px"):document.body.style.marginLeft="-".concat(n.offsetWidth,"px"),document.body.style.overflowX="hidden"),t&&setTimeout(function(){document.body.style.transition=s.replace("transform","margin")},0),t=!1}if(e.addEventListener("keydown",function(t){return bricksTrapFocus(t,e)}),e.dataset.noScroll&&document.body.classList.add("no-scroll"),"true"!==(null===(i=e.dataset)||void 0===i?void 0:i.noAutoFocus)&&bricksFocusOnFirstFocusableElement(e),"true"===(null===(o=e.dataset)||void 0===o?void 0:o.scrollToTop)){var l=e.querySelector(".brx-offcanvas-inner");l&&(l.scrollTop=0)}var d=e.querySelectorAll('.brx-offcanvas-inner button.brxe-toggle, .brx-offcanvas-inner [data-brx-toggle-offcanvas="true"]');d.length&&d.forEach(function(t){var n,r=!1,i=(null===(n=t.dataset)||void 0===n?void 0:n.selector)||".brxe-offcanvas";if(i){var o=document.querySelectorAll(i)||[];r=Array.from(o).includes(e)}else r=!0;r&&(t.classList.add("is-active"),t.setAttribute("aria-expanded",!0),bricksUtils.setOffcanvasToggleAriaLabel(t,!0))})}else{e.classList.add("brx-closing");var u=e.dataset.toggleScriptId,p=document.querySelector('button[data-script-id="'.concat(u,'"], [data-interaction-id="').concat(u,'"][data-brx-toggle-offcanvas]'));p&&(p.setAttribute("aria-expanded",!1),p.classList.remove("is-active"),bricksUtils.setOffcanvasToggleAriaLabel(p,!1),p.focus()),"offset"===e.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(){e.classList.remove("brx-closing"),e.dataset.noScroll&&(document.body.classList.remove("no-scroll"),bricksSubmenuPosition())},r)}},r=new MutationObserver(function(e){e.forEach(function(e){if("attributes"===e.type&&"class"===e.attributeName){var t=e.oldValue||"",r=e.target.classList,i=t.split(" "),o=Array.from(r);if(i.includes("brx-closing")||o.includes("brx-closing"))return;n(e.target)}})});e.forEach(function(e){r.observe(e,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0});var t=e.querySelector(".brx-offcanvas-backdrop");t&&t.addEventListener("click",function(e){bricksOffcanvasClose("backdrop")}),e.classList.contains("brx-open")&&n(e)}),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");var r=t.querySelectorAll('.brx-offcanvas-inner > button.brxe-toggle, .brx-offcanvas-inner > [data-brx-toggle-offcanvas="true"]');r.length&&r.forEach(function(e){e.classList.remove("is-active"),e.setAttribute("aria-expanded",!1),bricksUtils.setOffcanvasToggleAriaLabel(e,!1)})})}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",bricksNavNestedClose()):e.parentNode.style.display=null)})}function bricksNavMenuMobileToggleDisplay(){bricksQuerySelectorAll(document,".bricks-mobile-menu-toggle").forEach(function(e){e.parentNode.classList.contains("show-mobile-menu")&&("none"===window.getComputedStyle(e).display&&e.click())})}var bricksToggleFn=new BricksFunction({parentNode:document,selector:".brxe-toggle",frontEndOnly:!0,eachElement:function(e){e.addEventListener("click",function(t){t.preventDefault(),bricksUtils.toggleAction(e)})}});function bricksToggle(){bricksIsFrontend&&(bricksToggleDisplay(),bricksToggleFn.run())}var bricksToggleModeFn=new BricksFunction({parentNode:document,selector:".brxe-toggle-mode",frontEndOnly:!0,eachElement:function(e){e.addEventListener("click",function(e){e.preventDefault();var t="dark"===document.documentElement.dataset.brxTheme?"light":"dark";document.documentElement.dataset.brxTheme=t,localStorage.setItem("brx_mode",t)})}});function bricksToggleMode(){bricksIsFrontend&&bricksToggleModeFn.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");e&&bricksFocusOnFirstFocusableElement(e)},100)}if("add"===t?(n.classList.add("open"),n.classList.add("active")):"remove"===t?(n.classList.remove("open"),n.classList.remove("active")):n.classList.toggle("open"),n.classList.contains("brxe-dropdown")){var i=n.querySelector(".brx-dropdown-content");if(i&&n.classList.contains("open")){var o=function(e){if(null==e||!e.propertyName||!["color","background-color","border-color","box-shadow","visibility","opacity","filter"].includes(e.propertyName)){var t=n.getBoundingClientRect(),r=i.getBoundingClientRect(),o=parseFloat(window.getComputedStyle(i).borderTopWidth),a=r.top+o-t.bottom;n.style.setProperty("--brx-dropdown-height-before","".concat(a,"px"))}};n.style.getPropertyValue("--brx-dropdown-height-before")||i.addEventListener("transitionend",o),o()}}e.setAttribute("aria-expanded",n.classList.contains("open"))}}var bricksSubmenuListenersFn=new BricksFunction({parentNode:document,selector:".bricks-nav-menu .menu-item-has-children, .brxe-dropdown",eachElement:function(e){if(!(e.closest("[data-static]")||e.closest(".brx-has-multilevel")||e.classList.contains("active"))){var t=function(t){return t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)};e.addEventListener("mouseenter",function(n){if(!t(n)&&!e.closest(".show-mobile-menu")&&!e.closest(".brxe-nav-nested.brx-open")&&"click"!==e.getAttribute("data-toggle")){var r=e.querySelector(':scope > .brx-submenu-toggle > [aria-expanded="false"]');r&&(r.closest(".brxe-dropdown.open")||r.closest(".bricks-menu-item.open")||bricksUtils.closeAllSubmenus(r),bricksSubmenuToggle(r))}}),e.addEventListener("mouseleave",function(n){if(!t(n)&&!e.closest(".show-mobile-menu")&&!e.closest(".brxe-nav-nested.brx-open")&&"click"!==e.getAttribute("data-toggle")){var r=e.querySelector(':scope > .brx-submenu-toggle > [aria-expanded="true"]');if(r){var i=r.closest(".menu-item");if(i||(i=r.closest(".brxe-dropdown")),i&&i.classList.contains("active"))return;bricksSubmenuToggle(r)}}})}}});function bricksSubmenuListeners(){function e(e,t,n){var r="hover";if(e.hasAttribute("data-toggle"))r=e.getAttribute("data-toggle");else{var i=e.closest("[data-toggle]");i&&(r=i.getAttribute("data-toggle"))}e.closest(".brxe-nav-menu.show-mobile-menu")&&(r="click"),e.closest(".brxe-nav-nested.brx-open")&&(r="click");var o="hover"===r?t.target.closest("[aria-expanded]"):e.querySelector(n?".brx-submenu-toggle button[aria-expanded]":"button[aria-expanded]");if(0===t.detail||"click"===r||"both"===r||(o=null),o){bricksSubmenuToggle(o);var a=n?e:e.parentNode;a.classList.toggle("active"),setTimeout(function(){a.classList.contains("active")&&a.classList.add("open"),o.setAttribute("aria-expanded",a.classList.contains("open"))},0)}}bricksSubmenuListenersFn.run(),document.addEventListener("keyup",function(e){"Escape"===e.key?bricksUtils.closeAllSubmenus(e.target):"Tab"===e.key&&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,"remove")})},0)}),document.addEventListener("click",function(t){var n=t.target,r=null;if(n&&"A"!==n.nodeName&&(n=n.closest("a[href]")),n&&(r=n.getAttribute("href")),r&&r.includes("#"))if("#"===r||"/#"===r)t.preventDefault();else{var i=r.split("#")[1];if(t.target.closest(".brxe-offcanvas")&&bricksOffcanvasClose("force"),t.target.closest(".brxe-nav-nested.brx-open")){bricksNavNestedClose();var o=document.getElementById(i);o&&setTimeout(function(){o.scrollIntoView()},200)}var a=document.getElementById(i);if(a){var s=a.classList.contains("woocommerce-Tabs-panel"),c=a.firstChild&&a.firstChild.classList&&a.firstChild.classList.contains("accordion-title-wrapper")?a.firstChild:null;if(c&&!s)return void c.click();var l=a.closest(".tab-title");l&&!s&&l.click();var d=t.target.closest(".brx-popup");d&&!d.contains(a)&&bricksClosePopup(d)}}var u=t.target.closest(".brx-submenu-toggle"),p=t.target.closest(".brxe-dropdown"),b=t.target.closest(".brx-dropdown-content");!p||b&&b.parentNode===p?u&&e(u,t,!1):e(p,t,!0),bricksQuerySelectorAll(document,'.brx-submenu-toggle > button[aria-expanded="true"]').forEach(function(e){var n=e.closest("li");n||(n=e.closest(".brxe-dropdown")),n&&!n.contains(t.target)&&(bricksSubmenuToggle(e),n.classList.remove("active"))})}),bricksQuerySelectorAll(document,".brx-submenu-toggle").forEach(function(e){var t=e.parentNode,n=t.querySelector(".brx-megamenu")||t.querySelector(".brx-dropdown-content")||t.querySelector("ul");n&&n.querySelector('[aria-current="page"]')&&e.classList.add("aria-current")})}var bricksSubmenuPositionFn=new BricksFunction({parentNode:document,selector:".brx-submenu-toggle",forceReinit:!0,eachElement:function(e){var t=e.parentNode,n=t.querySelector(".brx-megamenu")||t.querySelector(".brx-dropdown-content")||t.querySelector("ul");if(n&&(n.classList.add("brx-submenu-positioned"),!t.hasAttribute("data-static"))){var r=document.body.clientWidth;if(t.classList.contains("brx-has-megamenu")){var i=t.dataset.megaMenu,o=t.dataset.megaMenuVertical,a=document.body;if(i){var s=document.querySelector(i);s&&(a=s)}var c=t.getBoundingClientRect(),l=a.getBoundingClientRect();if(n.style.left="-".concat(c.left-l.left,"px"),n.style.minWidth="".concat(l.width,"px"),o){var d=document.querySelector(o);if(d){var u=d.getBoundingClientRect();n.style.top="".concat(c.height+u.bottom-c.bottom,"px")}}bricksIsFrontend&&document.dispatchEvent(new CustomEvent("bricks/megamenu/repositioned",{detail:{menuItem:t,submenu:n}}))}else{n.classList.contains("brx-multilevel-overflow-right")&&n.classList.remove("brx-multilevel-overflow-right"),n.classList.contains("brx-submenu-overflow-right")&&n.classList.remove("brx-submenu-overflow-right"),n.classList.contains("brx-sub-submenu-overflow-right")&&n.classList.remove("brx-sub-submenu-overflow-right");var p=!t.parentNode.closest(".menu-item")&&!t.parentNode.closest(".brxe-dropdown"),b=n.getBoundingClientRect(),v=b.width,f=b.right,m=Math.ceil(b.left);if(v>r)n.style.left="-".concat(m,"px"),n.style.minWidth="".concat(r,"px");else if(f>r){n.closest(".brx-has-multilevel")?n.classList.add("brx-multilevel-overflow-right"):p?n.classList.add("brx-submenu-overflow-right"):n.classList.add("brx-sub-submenu-overflow-right")}else m<0&&(n.style.left=p?"0":"100%",n.style.right="auto")}}}});function bricksSubmenuPosition(){setTimeout(function(){bricksSubmenuPositionFn.run()},arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}function bricksSubmenuWindowResizeHandler(){var e,t,n,r=function(){var r=window.innerWidth,i=window.innerHeight,o=document.body.clientWidth;r===e&&o===n||(clearTimeout(t),bricksQuerySelectorAll(document,".brx-submenu-toggle").forEach(function(e){var t=e.parentNode,n=t.querySelector(".brx-megamenu")||t.querySelector(".brx-dropdown-content")||t.querySelector("ul");n&&n.classList.remove("brx-submenu-positioned")}),t=setTimeout(bricksSubmenuPosition,250),e=r,n=o)},i=function(){var t=window.innerWidth,o=window.innerHeight;requestAnimationFrame(function(){t===window.innerWidth&&o===window.innerHeight?(e=t,n=document.body.clientWidth,window.addEventListener("resize",r)):i()})};i(),window.bricksData&&!window.bricksData.bodyResizeObserver&&(window.bricksData.bodyResizeObserver=new ResizeObserver(function(e){var t,i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){t.value.contentRect.width!==n&&r()}}catch(e){i.e(e)}finally{i.f()}}),window.bricksData.bodyResizeObserver.observe(document.body))}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");i&&bricksFocusOnFirstFocusableElement(i)}}})}})})}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"]})});var n=null;document.addEventListener("click",function(e){var t=e.target.closest(".bricks-mobile-menu-toggle");if(t){var r=t.closest(".brxe-nav-menu");r.classList.toggle("show-mobile-menu");var i=r.classList.contains("show-mobile-menu"),o=i?window.bricksData.i18n.closeMobileMenu:window.bricksData.i18n.openMobileMenu;t.setAttribute("aria-expanded",i),t.setAttribute("aria-label",o),i?(n=document.activeElement,setTimeout(function(){bricksFocusOnFirstFocusableElement(r.querySelector(".bricks-mobile-menu-wrapper")),r.addEventListener("keydown",function(e){r.classList.contains("show-mobile-menu")&&bricksTrapFocus(e,r)})},100)):n&&n.focus()}}),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))}}})}}var bricksBackToTopFn=new BricksFunction({parentNode:document,selector:".brxe-back-to-top",eachElement:function(e){e.hasAttribute("data-move-focus-to-top")&&document.body.setAttribute("tabindex","-1"),e.addEventListener("click",function(t){if(t.preventDefault(),window.scrollTo({top:0,behavior:e.hasAttribute("data-smooth-scroll")?"smooth":"auto"}),e.hasAttribute("data-move-focus-to-top")){var n=e.hasAttribute("data-smooth-scroll")?100:0;setTimeout(function(){document.body.focus({preventScroll:!0})},n)}});var t=e.dataset.visibleAfter||0,n=e.classList.contains("up");if(t||n){var r=0;window.addEventListener("scroll",function(){var i=document.documentElement.scrollTop,o=!0;n&&(o=!(i>r),r=i),(o=!!(window.scrollY>t&&o))?e.classList.add("visible"):e.classList.remove("visible")})}}});function bricksBackToTop(){bricksBackToTopFn.run()}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!e.hasAttribute("inert")&&!e.closest("[inert]")&&"none"!==window.getComputedStyle(e).display})}function bricksGetVisibleFocusables(e){return bricksGetFocusables(e).filter(function(e){return e.getClientRects().length>0&&"visible"===window.getComputedStyle(e).visibility&&!e.matches(":disabled")&&e.tabIndex>=0})}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})}}}),bricksAnchorLinksFn=new BricksFunction({parentNode:document,selector:'a[data-brx-anchor][href*="#"]',frontEndOnly:!0,eachElement:function(e){var t,n=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\/+$/,"")||"/"},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.closest(".menu-item")||!1;t?(e.setAttribute("aria-current","page"),n&&e.closest(".menu-item").classList.add("current-menu-item")):(e.removeAttribute("aria-current"),n&&e.closest(".menu-item").classList.remove("current-menu-item"))},i=window.location.hash||!1;if(i&&i.length>1){var o=function(e){try{return new URL(e.getAttribute("href"),window.location.href)}catch(e){return!1}}(e),a=!(null==o||!o.hash)&&o.hash.substring(1);if(a&&a===i.substring(1)&&((t=o)&&t.origin===window.location.origin&&n(t.pathname)===n(window.location.pathname))){var s=e.closest(".bricks-nav-menu, .brxe-nav-nested")||!1;if(s)s.querySelectorAll(".menu-item").forEach(function(e){var t=e.querySelectorAll("a:not([data-brx-anchor])");t.length>0&&(e.classList.remove("current-menu-item"),t.forEach(function(e){e.removeAttribute("aria-current")}))});r(e)}}e.addEventListener("click",function(t){var n=e.closest(".bricks-nav-menu, .brxe-nav-nested")||!1;n&&n.querySelectorAll(".menu-item").forEach(function(e){e.classList.remove("current-menu-item"),e.querySelectorAll('a[aria-current="page"]').forEach(function(e){e.removeAttribute("aria-current")})});r(e)})}});function bricksAnchorLinks(){bricksAnchorLinksFn.run()}function bricksGetQueryResult(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r,i){if(e)if("function"==typeof window.bricksUtils.getFiltersForQuery){var o=window.bricksData.queryLoopInstances[e]||!1;if(o){n||bricksUtils.maybeAbortXhr(e);var a=window.bricksData.restApiUrl.concat("query_result"),s=window.bricksUtils.getFiltersForQuery(e,"filterId"),c=window.bricksUtils.getSelectedFiltersForQuery(e),l=window.bricksUtils.getDynamicTagsForParse(e),d="[]"===(null==o?void 0:o.originalQueryVars)?null==o?void 0:o.queryVars:null==o?void 0:o.originalQueryVars,u={postId:window.bricksData.postId,queryElementId:e,originalQueryVars:d,pageFilters:window.bricksData.pageFilters||!1,filters:s,selectedFilters:c,afTags:l,nonce:window.bricksData.nonce,baseUrl:window.bricksData.baseUrl,lang:window.bricksData.language||!1,mainQueryId:window.bricksData.mainQueryId||!1,activeSearchTemplate:window.bricksData.activeSearchTemplate||!1,urlParams:bricksGetCurrentUrlParams()};"wpml"!==window.bricksData.multilangPlugin||!window.location.search.includes("lang=")&&3==window.bricksData.wpmlUrlFormat||(a=a.concat("?lang="+window.bricksData.language)),window.bricksData.queryLoopInstances[e].isLoading=1,n||window.bricksData.queryLoopInstances[e].xhrAborted||document.dispatchEvent(new CustomEvent("bricks/ajax/start",{detail:{queryId:e,isPopState:t}}));var p=new XMLHttpRequest;window.bricksData.queryLoopInstances[e].xhr=p,p.open("POST",a,!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 t;window.bricksData.queryLoopInstances[e].xhr===p&&(window.bricksData.queryLoopInstances[e].xhr=null,window.bricksData.queryLoopInstances[e].xhrAborted=!1);var o,a=p.status;try{o=JSON.parse(p.response)}catch(e){return void i("Invalid response from server")}if(0===a||a>=200&&a<400){var s;window.bricksData.queryLoopInstances[e].isLoading=0;var c=(null===(s=o)||void 0===s?void 0:s.error)||!1;c?(console.error("error: bricksGetQueryResult",c),i(c)):r(o),document.dispatchEvent(new CustomEvent("bricks/ajax/end",{detail:{queryId:e}})),document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/completed",{detail:{queryId:e}}))}else"rest_cookie_invalid_nonce"===(null===(t=o)||void 0===t?void 0:t.code)?n?i("Nonce verification failed after refresh"):bricksRegenerateNonceAndRetryQuery(e).then(r).catch(i):i("Request failed with status ".concat(a))}},p.send(JSON.stringify(u))}else i("Query instance not found")}else i("Query filters JS not loaded");else i("No queryId provided")})}function bricksRegenerateNonceAndRetryQuery(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("POST",window.bricksData.ajaxUrl,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE)if(r.status>=200&&r.status<400){var i;try{i=JSON.parse(r.responseText)}catch(e){return void n("Invalid response from server when regenerating nonce")}if(i.success&&i.data){window.bricksData.nonce=i.data.bricks_nonce,window.bricksData.wpRestNonce=i.data.rest_nonce;bricksGetQueryResult(e,!1,!0).then(t).catch(n)}else n("Failed to regenerate nonces: Invalid response structure")}else n("Failed to regenerate nonce")},r.send("action=bricks_regenerate_query_nonce")})}function bricksDisplayQueryResult(e,t){var n,r=(null==t?void 0:t.html)||!1,i=(null==t?void 0:t.styles)||!1,o=(null==t?void 0:t.popups)||!1,a=(null==t?void 0:t.updated_query)||!1,s=(null==t?void 0:t.updated_filters)||!1,c=(null==t?void 0:t.parsed_af_tags)||!1,l=window.bricksData.queryLoopInstances[e]||!1,d=(null==l?void 0:l.resultsContainer)||!1;if(l&&d){var u=(null==l?void 0:l.componentId)||!1,p=bricksUtils.getQueryTrailSelectorId(e,u),b=d.querySelector(".bricks-gutter-sizer"),v=d.querySelector(".bricks-isotope-sizer"),f=d.querySelectorAll(".brxe-".concat(p,", .bricks-posts-nothing-found")),m=document.createNodeIterator(d,NodeFilter.SHOW_COMMENT,{acceptNode:function(t){return t.nodeValue==="brx-loop-start-".concat(e)}}).nextNode(),g=f.length>0||m;if(g&&d.querySelectorAll(".brxe-".concat(p,", .bricks-posts-nothing-found")).forEach(function(e){return e.remove()}),r)if(g){if(m){var y=r.match(/<\s*([a-z0-9]+)([^>]+)?>/i),k=null;(k=!y||"td"!==y[1]&&"tr"!==y[1]?document.createElement("div"):document.createElement("tbody")).innerHTML=r;var w=Array.from(k.childNodes);w.reverse(),w.forEach(function(e){var t,n;m.nextSibling?null===(t=m.parentNode)||void 0===t||t.insertBefore(e,m.nextSibling):null===(n=m.parentNode)||void 0===n||n.appendChild(e)}),k.remove()}}else d.insertAdjacentHTML("beforeend",r);if(b&&d.appendChild(b),v&&d.appendChild(v),document.querySelectorAll('.brx-popup[data-popup-loop="'.concat(e,'"]')).forEach(function(e){return e.remove()}),o&&document.body.insertAdjacentHTML("beforeend",o),document.dispatchEvent(new CustomEvent("bricks/ajax/nodes_added",{detail:{queryId:e}})),i){var h=document.querySelector("#brx-query-styles-".concat(e));h||((h=document.createElement("style")).id="brx-query-styles-".concat(e),document.body.appendChild(h)),h.innerHTML=i}if(a&&bricksUtils.updateQueryResultStats(e,"query",a),c&&window.bricksUtils.updateParsedDynamicTags(e,c),void 0!==(null==a||null===(n=a.query_vars)||void 0===n?void 0:n.paged)&&(window.bricksData.queryLoopInstances[e].page=parseInt(a.query_vars.paged)),void 0!==(null==a?void 0:a.max_num_pages)&&(window.bricksData.queryLoopInstances[e].maxPages=parseInt(a.max_num_pages)),void 0!==(null==a?void 0:a.start)&&(window.bricksData.queryLoopInstances[e].start=parseInt(a.start)),void 0!==(null==a?void 0:a.end)&&(window.bricksData.queryLoopInstances[e].end=parseInt(a.end)),s)for(var x in s){var S=s[x],L=window.bricksData.filterInstances[x]||!1;if(L&&("search"!==L.filterType&&"datepicker"!==L.filterType)){var E=document.createElement("div");E.innerHTML=S;var I=E.childNodes[0];"select"===L.filterType&&L.choicesInstance&&"function"==typeof L.choicesInstance.destroy&&(L.choicesInstance.destroy(),I=I.querySelector("select.brxe-filter-select")),L.filterElement.replaceWith(I),L.filterElement=I,E.remove()}}bricksUtils.hideOrShowLoadMoreButtons(e),document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/displayed",{detail:{queryId:e}})),l.infiniteScroll&&setTimeout(function(){var t,n=Array.from(null===(t=l.resultsContainer)||void 0===t?void 0:t.querySelectorAll(".brxe-".concat(p,":not(.brx-popup)"))).pop();n&&(n.dataset.queryElementId=e,BricksIsInViewport(n)?bricksQueryLoadPage(n):new BricksIntersect({element:n,callback:function(e){return bricksQueryLoadPage(e)},once:!0,rootMargin:l.observerMargin}))},250)}}function bricksGetYouTubeVideoLinkData(e){if(!e)return{url:"",id:null};var t=e.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|shorts\/|live\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i);if(t&&t[1]){var n=t[1],r="https://www.youtube.com/embed/".concat(n);try{var i=new URL(e),o=new URLSearchParams(i.search);o.delete("v");var a=o.toString();a&&(r+="?"+a)}catch(e){console.warn("Failed to parse URL parameters:",e)}return{url:r,id:n}}return{url:e,id:null}}function bricksSetVh(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--bricks-vh","".concat(e,"px"))}function bricksRunAllFunctions(){window.bricksFunctions&&window.bricksFunctions.forEach(function(e){e.run&&"function"==typeof e.run&&e.run()})}var bricksTimeouts={};document.addEventListener("DOMContentLoaded",function(e){bricksIsFrontend=document.body.classList.contains("bricks-is-frontend"),bricksBlockEditorIntegration(),bricksNavMenu(),bricksMultilevelMenu(),bricksNavMenuMobile(),bricksStickyHeader(),bricksOnePageNavigation(),bricksSkipLinks(),bricksFacebookSDK(),bricksSearchToggle(),bricksPopups(),bricksSwiper(),bricksSplide(),bricksSplideListeners(),bricksPhotoswipe(),bricksTinyMCE(),bricksPrettify(),bricksAccordion(),bricksAnimatedTyping(),bricksAudio(),bricksCountdown(),bricksCounter(),bricksTableOfContents(),bricksPricingTables(),bricksVideo(),bricksLazyLoad(),bricksAnimation(),bricksMotionParallax(),bricksPieChart(),bricksPostReadingProgressBar(),bricksProgressBar(),bricksForm(),bricksInitQueryLoopInstances(),bricksQueryPagination(),bricksInteractions(),bricksAlertDismiss(),bricksTabs(),bricksVideoOverlayClickDetector(),bricksBackgroundVideoInit(),bricksPostReadingTime(),bricksBackToTop(),bricksMapLeaflet(),bricksNavNested(),bricksOffcanvas(),bricksToggle(),bricksToggleMode(),bricksSubmenuListeners(),bricksSubmenuPosition(250),bricksAjaxLoader(),bricksQueryResultsA11y(),bricksAnchorLinks(),bricksUtils.imageGalleryLoadMoreSync("all"),bricksGalleryInfiniteScroll(),bricksUtils.imageGalleryLoadMoreButtonVisibility("all"),bricksIsotope(),bricksIsotopeListeners(),window.addEventListener("load",bricksSubmenuWindowResizeHandler),window.addEventListener("resize",function(){Object.keys(bricksTimeouts).forEach(function(e){clearTimeout(bricksTimeouts[e])}),bricksIsFrontend?(bricksTimeouts.bricksVh=setTimeout(bricksSetVh,250),bricksTimeouts.bricksSwiperBreakpoints=setTimeout(bricksSwiperUpdateBreakpoints,250)):(bricksTimeouts.bricksSwiper=setTimeout(bricksSwiper,250),bricksTimeouts.bricksSplide=setTimeout(bricksSplide,250)),bricksTimeouts.tabsAdjustLayoutOnMobile=setTimeout(bricksTabsAccordionLayoutOnMobile,250),bricksTimeouts.bricksMotionParallax=setTimeout(bricksMotionParallax,150),bricksTimeouts.bricksToggleDisplay=setTimeout(bricksToggleDisplay,100),bricksTimeouts.bricksNavMenuMobileToggleDisplay=setTimeout(bricksNavMenuMobileToggleDisplay,100)}),["bricks/ajax/pagination/completed","bricks/ajax/load_page/completed","bricks/ajax/popup/loaded","bricks/ajax/query_result/displayed"].forEach(function(e){document.addEventListener(e,function(){bricksUtils.imageGalleryLoadMoreSync("all")})}),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)}); /* From https://motion.brickslibrary.com/wp-content/plugins/motionpage/assets/js/gsap/gsap.min.js?ver=3.13.0 (70.7KB) */ /*! * GSAP 3.13.0 * https://gsap.com * * @license Copyright 2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license. * @author: Jack Doyle, jack@greensock.com */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return"string"==typeof t}function s(t){return"function"==typeof t}function t(t){return"number"==typeof t}function u(t){return void 0===t}function v(t){return"object"==typeof t}function w(t){return!1!==t}function x(){return"undefined"!=typeof window}function y(t){return s(t)||r(t)}function P(t){return(i=yt(t,ot))&&ze}function Q(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function R(t,e){return!e&&console.warn(t)}function S(t,e){return t&&(ot[t]=e)&&i&&(i[t]=e)||ot}function T(){return 0}function ea(t){var e,r,i=t[0];if(v(i)||s(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=gt.length;r--&&!gt[r].targetTest(i););e=gt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Zt(t[r],e)))||t.splice(r,1);return t}function fa(t){return t._gsap||ea(Ot(t))[0]._gsap}function ga(t,e,r){return(r=t[e])&&s(r)?t[e]():u(r)&&t.getAttribute&&t.getAttribute(e)||r}function ha(t,e){return(t=t.split(",")).forEach(e)||t}function ia(t){return Math.round(1e5*t)/1e5||0}function ja(t){return Math.round(1e7*t)/1e7||0}function ka(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function la(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i
a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e}function za(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function Aa(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0}function Ba(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function Da(t,e,r,i){return t._startAt&&(L?t._startAt.revert(ht):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function Fa(t){return t._repeat?Tt(t._tTime,t=t.duration()+t._rDelay)*t:0}function Ha(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function Ia(t){return t._end=ja(t._start+(t._tDur/Math.abs(t._ts||t._rts||U)||0))}function Ja(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=ja(r._time-(0
U)&&e.render(r,!0)),Ba(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur
(n=Math.abs(n))&&(a=i,o=n);return a}function ub(t){return Aa(t),t.scrollTrigger&&t.scrollTrigger.kill(!!L),t.progress()<1&&Pt(t,"onInterrupt"),t}function xb(t){if(t)if(t=!t.name&&t.default||t,x()||t.headless){var e=t.name,r=s(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:T,render:ue,add:Vt,kill:de,modifier:he,rawVars:0},a={targetTest:0,get:0,getSetter:ie,aliases:{},register:0};if(Ft(),t!==i){if(pt[e])return;ra(i,ra(va(t,n),a)),yt(i.prototype,yt(n,va(t,a))),pt[i.prop=e]=i,t.targetTest&&(gt.push(i),ft[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}S(e,i),t.register&&t.register(ze,i,ge)}else Ct.push(t)}function Ab(t,e,r){return(6*(t+=t<0?1:1
>16,e>>8&St,e&St]:0:Dt.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),Dt[e])p=Dt[e];else if("#"===e.charAt(0)){if(e.length<6&&(e="#"+(n=e.charAt(1))+n+(a=e.charAt(2))+a+(s=e.charAt(3))+s+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&St,p&St,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&St,e&St]}else if("hsl"===e.substr(0,3))if(p=c=e.match(tt),r){if(~e.indexOf("="))return p=e.match(et),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,u=p[1]/100,n=2*(h=p[2]/100)-(a=h<=.5?h*(u+1):h+u-h*u),3
=N?u.endTime(!1):t._dur;return r(e)&&(isNaN(e)||e in o)?(a=e.charAt(0),s="%"===e.substr(-1),n=e.indexOf("="),"<"===a||">"===a?(0<=n&&(e=e.replace(/=/,"")),("<"===a?u._start:u.endTime(0<=u._repeat))+(parseFloat(e.substr(1))||0)*(s?(n<0?u:i).totalDuration()/100:1)):n<0?(e in o||(o[e]=h),o[e]):(a=parseFloat(e.charAt(n-1)+e.substr(n+1)),s&&i&&(a=a/100*($(i)?i[0]:i).totalDuration()),1
=r&&t
e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start
=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0
=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0
=i&&(a instanceof Jt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return r(t)?this.removeLabel(t):s(t)?this.killTweensOf(t):(t.parent===this&&za(this,t),t===this._recent&&(this._recent=this._last),Ba(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ja(Rt.time-(0
r:!r||s.isActive())&&n.push(s):(i=s.getTweensOf(a,r)).length&&n.push.apply(n,i),s=s._next;return n},e.tweenTo=function tweenTo(t,e){e=e||{};var r,i=this,n=xt(i,t),a=e.startAt,s=e.onStart,o=e.onStartParams,u=e.immediateRender,h=Jt.to(i,ra({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||U,onStart:function onStart(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());h._dur!==t&&Sa(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,ra({startAt:{time:xt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),sb(this,xt(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),sb(this,xt(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+U)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return Ba(this)},e.invalidate=function invalidate(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return i.prototype.invalidate.call(this,t)},e.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Ba(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=N;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,La(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Sa(a,a===I&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(I._ts&&(oa(I,Ha(t,I)),f=Rt.frame),Rt.frame>=mt){mt+=X.autoSleep||120;var e=I._first;if((!e||!e._ts)&&X.autoSleep&&Rt._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Rt.sleep()}}},Timeline}(Nt);ra(Qt.prototype,{_lock:0,_hasPause:0,_forcing:0});function bc(t,e,i,n,a,o){var u,h,l,f;if(pt[t]&&!1!==(u=new pt[t]).init(a,u.rawVars?e[t]:function _processVars(t,e,i,n,a){if(s(t)&&(t=Gt(t,a,e,i,n)),!v(t)||t.style&&t.nodeType||$(t)||J(t))return r(t)?Gt(t,a,e,i,n):t;var o,u={};for(o in t)u[o]=Gt(t[o],a,e,i,n);return u}(e[t],n,a,o,i),i,n,o)&&(i._pt=h=new ge(i._pt,a,t,0,1,u.render,u,0,u.priority),i!==d))for(l=i._ptLookup[i._targets.indexOf(a)],f=u._props.length;f--;)l[u._props[f]]=h;return u}function hc(t,r,e,i){var n,a,s=r.ease||i||"power1.inOut";if($(r))a=e[t]||(e[t]=[]),r.forEach(function(t,e){return a.push({t:e/(r.length-1)*100,v:t,e:s})});else for(n in r)a=e[n]||(e[n]=[]),"ease"===n||a.push({t:parseFloat(t),v:r[n],e:s})}var Ut,qt,Vt=function _addPropTween(t,e,i,n,a,o,u,h,l,f){s(n)&&(n=n(a||0,t,o));var d,c=t[e],p="get"!==i?i:s(c)?l?t[e.indexOf("set")||!s(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():c,_=s(c)?l?re:te:$t;if(r(n)&&(~n.indexOf("random(")&&(n=pb(n)),"="===n.charAt(1)&&(!(d=ka(p,n)+(Za(p)||0))&&0!==d||(n=d))),!f||p!==n||qt)return isNaN(p*n)||""===n?(c||e in t||Q(e,n),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,c,p,_=new ge(this._pt,t,e,0,1,oe,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(c=~(i+="").indexOf("random("))&&(i=pb(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:d,c:"="===l.charAt(1)?ka(d,l)-d:parseFloat(l)-d,m:h&&h<4?Math.round:0},m=it.lastIndex);return _.c=m
")}),s.duration();else{for(l in u={},x)"ease"===l||"easeEach"===l||hc(l,x[l],u,x.easeEach);for(l in u)for(C=u[l].sort(function(t,e){return t.t-e.t}),o=z=0;o
=t._tDur||e<0)&&t.ratio===u&&(u&&Aa(t,1),r||L||(Pt(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),E.prototype.invalidate.call(this,t)},e.resetTo=function resetTo(t,e,r,i,n){c||Rt.wake(),this._ts||this.play();var a,s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Wt(this,s),a=this._ease(s/this._dur),function _updatePropTweens(t,e,r,i,n,a,s,o){var u,h,l,f,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],l=t._ptLookup,f=t._targets.length;f--;){if((u=l[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return qt=1,t.vars[e]="+=0",Wt(t,s),qt=0,o?R(e+" not eligible for reset"):1;d.push(u)}for(f=d.length;f--;)(u=(h=d[f])._pt||h).s=!i&&0!==i||n?u.s+(i||0)+a*u.c:i,u.c=r-u.s,h.e&&(h.e=ia(r)+Za(h.e)),h.b&&(h.b=u.s+Za(h.b))}(this,t,e,r,i,a,s,n)?this.resetTo(t,e,r,i,1):(Ja(this,0),this.parent||ya(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ub(this):this.scrollTrigger&&this.scrollTrigger.kill(!!L),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ut&&!0!==Ut.vars.overwrite)._first||ub(this),this.parent&&i!==this.timeline.totalDuration()&&Sa(this,this._dur*this.timeline._tDur/i,0,1),this}var n,a,s,o,u,h,l,f=this._targets,d=t?Ot(t):f,c=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return"all"===e&&(this._pt=0),ub(this);for(n=this._op=this._op||[],"all"!==e&&(r(e)&&(u={},ha(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?fa(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=yt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexOf(f[l]))for(u in a=c[l],"all"===e?(n[l]=e,o=a,s={}):(s=n[l]=n[l]||{},o=e),o)(h=a&&a[u])&&("kill"in h.d&&!0!==h.d.kill(u)||za(this,h,"_pt"),delete a[u]),"all"!==s&&(s[u]=1);return this._initted&&!this._pt&&p&&ub(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return Wa(1,arguments)},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return Wa(2,arguments)},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return I.killTweensOf(t,e,r)},Tween}(Nt);ra(Jt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ha("staggerTo,staggerFrom,staggerFromTo",function(r){Jt[r]=function(){var t=new Qt,e=kt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function pc(t,e,r){return t.setAttribute(e,r)}function xc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var $t=function _setterPlain(t,e,r){return t[e]=r},te=function _setterFunc(t,e,r){return t[e](r)},re=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},ie=function _getSetter(t,e){return s(t[e])?te:u(t[e])&&t.setAttribute?pc:$t},ne=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},se=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},oe=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},ue=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},he=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},de=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?za(this,i,"_pt"):i.dep||(e=1),i=r;return!e},_e=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ge=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=xc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||ne,this.d=s||this,this.set=o||$t,this.pr=u||0,(this._next=t)&&(t._prev=this)}ha(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ft[t]=1}),ot.TweenMax=ot.TweenLite=Jt,ot.TimelineLite=ot.TimelineMax=Qt,I=new Qt({sortChildren:!1,defaults:Z,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),X.stringFilter=Gb;function Fc(t){return(be[t]||Me).map(function(t){return t()})}function Gc(){var t=Date.now(),o=[];2
=Math.abs(r)?t:r}function P(){(Ae=Se.core.globals().ScrollTrigger)&&Ae.core&&function _integrate(){var e=Ae.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,ze),n.push.apply(n,Ye),ze=t,Ye=n,o=function _bridge(e,t){return r[e](t)}}()}function Q(e){return Se=e||r(),!ke&&Se&&"undefined"!=typeof document&&document.body&&(Te=window,Me=(Ce=document).documentElement,Ee=Ce.body,t=[Te,Ce,Me,Ee],Se.utils.clamp,Be=Se.core.context||function(){},Oe="onpointerenter"in Ee?"pointer":"mouse",Pe=E.isTouch=Te.matchMedia&&Te.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Te||0
=i,n=Math.abs(t)>=i;k&&(r||n)&&k(se,e,t,me,ye),r&&(m&&0
Math.abs(t)?"x":"y",oe=!0),"y"!==ae&&(me[2]+=e,se._vx.update(e,!0)),"x"!==ae&&(ye[2]+=t,se._vy.update(t,!0)),n?ee=ee||requestAnimationFrame(kf):kf()}function nf(e){if(!hf(e,1)){var t=(e=N(e,s)).clientX,r=e.clientY,n=t-se.x,i=r-se.y,o=se.isDragging;se.x=t,se.y=r,(o||(n||i)&&(Math.abs(se.startX-t)>=a||Math.abs(se.startY-r)>=a))&&(re=o?2:1,o||(se.isDragging=!0),mf(n,i))}}function qf(e){return e.touches&&1
=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=o(e);return!t||Math.abs(n-e)
r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in q?q[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function Eb(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=Fe.createElement("div"),g=Ma(r)||"fixed"===z(r,"pinType"),h=-1!==e.indexOf("scroller"),v=g?We:r,b=-1!==e.indexOf("start"),m=b?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(y+=(n===qe?I:Y)+":"+(o+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=b,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+n.op.d2],X(p,0,n,b),p}function Jb(){return 34
We.clientWidth)||(ze.cache++,v?T=T||requestAnimationFrame(Z):Z(),st||V("scrollStart"),st=at())}function Lb(){y=Xe.innerWidth,m=Xe.innerHeight}function Mb(e){ze.cache++,!0!==e&&(Ke||h||Fe.fullscreenElement||Fe.webkitFullscreenElement||b&&y===Xe.innerWidth&&!(Math.abs(Xe.innerHeight-m)>.25*Xe.innerHeight))||c.restart(!0)}function Pb(){return yb(ne,"scrollEnd",Pb)||Mt(!0)}function Sb(e){for(var t=0;t
t,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)}),$b(!1),et=0,r.forEach(function(e){return e&&e.render&&e.render(-1)}),ze.forEach(function(e){Ua(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),Ub(_,1),c.pause(),Ct++,Z(rt=2),kt.forEach(function(e){return Ua(e.vars.onRefresh)&&e.vars.onRefresh(e)}),rt=ne.isRefreshing=!1,V("refresh")}else xb(ne,"scrollEnd",Pb)},j=0,Et=1,Z=function _updateAll(e){if(2===e||!rt&&!k){ne.isUpdating=!0,it&&it.update(0);var t=kt.length,r=at(),n=50<=r-D,i=t&&kt[0].scroll();if(Et=i
=Ra(be,he)){if(oe&&Ae()&&!de)for(o=oe.parentNode;o&&o!==We;)o._pinOffset&&(B-=o._pinOffset,I-=o._pinOffset),o=o.parentNode}else i=nb(ae),s=he===qe,a=Ae(),Q=parseFloat(K(he.a))+w,!y&&1
=I})},ke.update=function(e,t,r){if(!de||r||e){var n,i,o,a,s,l,c,u=!0===rt?re:ke.scroll(),f=e?0:(u-B)/F,d=f<0?0:1
u+(u-D)/(at()-Ve)*E&&(d=.9999)),d!==p&&ke.enabled){if(a=(s=(n=ke.isActive=!!d&&d<1)!=(!!p&&p<1))||!!d!=!!p,ke.direction=p
=Ra(be,he),fe)if(e||!n&&!l)pc(ae,V);else{var g=_t(ae,!0),h=u-B;pc(ae,We,g.top+(he===qe?h:0)+xt,g.left+(he===qe?0:h)+xt)}Pt(n||l?W:G),$&&d<1&&n||b(Q+(1!==d||l?0:j))}}else b(Ja(Q+j*d));!ue||A.tween||Ke||ot||te.restart(!0),T&&(s||ce&&d&&(d<1||!tt))&&Je(T.targets).forEach(function(e){return e.classList[n||ce?"add":"remove"](T.className)}),!k||ve||e||k(ke),a&&!Ke?(ve&&(c&&("complete"===o?O.pause().totalProgress(1):"reset"===o?O.restart(!0).pause():"restart"===o?O.restart(!0):O[o]()),k&&k(ke)),!s&&tt||(C&&s&&Ya(ke,C),xe[i]&&Ya(ke,xe[i]),ce&&(1===d?ke.kill(!1,1):xe[i]=0),s||xe[i=1===d?1:3]&&Ya(ke,xe[i])),pe&&!n&&Math.abs(ke.getVelocity())>(Va(pe)?pe:2500)&&(Xa(ke.callbackAnimation),ee?ee.progress(1):Xa(O,"reverse"===o?1:!d,1))):ve&&k&&!Ke&&k(ke)}if(x){var v=de?u/de.duration()*(de._caScrollDist||0):u;y(v+(q._isFlipped?1:0)),x(v)}S&&S(-u/de.duration()*(de._caScrollDist||0))}},ke.enable=function(e,t){ke.enabled||(ke.enabled=!0,xb(be,"resize",Mb),me||xb(be,"scroll",Kb),Te&&xb(ScrollTrigger,"refreshInit",Te),!1!==e&&(ke.progress=Oe=0,R=D=Ee=Ae()),!1!==t&&ke.refresh())},ke.getTween=function(e){return e&&A?A.tween:ee},ke.setPositions=function(e,t,r,n){if(de){var i=de.scrollTrigger,o=de.duration(),a=i.end-i.start;e=i.start+a*e/o,t=i.start+a*t/o}ke.refresh(!1,!1,{start:Ea(e,r&&!!ke._startClamp),end:Ea(t,r&&!!ke._endClamp)},n),ke.update()},ke.adjustPinSpacing=function(e){if(Z&&e){var t=Z.indexOf(he.d)+1;Z[t]=parseFloat(Z[t])+e+xt,Z[1]=parseFloat(Z[1])+e+xt,Pt(Z)}},ke.disable=function(e,t){if(ke.enabled&&(!1!==e&&ke.revert(!0,!0),ke.enabled=ke.isActive=!1,t||ee&&ee.pause(),re=0,n&&(n.uncache=1),Te&&yb(ScrollTrigger,"refreshInit",Te),te&&(te.pause(),A.tween&&A.tween.kill()&&(A.tween=0)),!me)){for(var r=kt.length;r--;)if(kt[r].scroller===be&&kt[r]!==ke)return;yb(be,"resize",Mb),me||yb(be,"scroll",Kb)}},ke.kill=function(e,t){ke.disable(e,t),ee&&!t&&ee.kill(),a&&delete Tt[a];var r=kt.indexOf(ke);0<=r&&kt.splice(r,1),r===je&&0
o&&(b()>o?a.progress(1)&&b(o):a.resetTo("scrollY",o))}Wa(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n,o,l,i,a,c,u,s,f=e.normalizeScrollX,t=e.momentum,r=e.allowNestedScroll,d=e.onRelease,p=J(e.target)||Ue,g=Ne.core.globals().ScrollSmoother,h=g&&g.get(),v=R&&(e.content&&J(e.content)||h&&!1!==e.content&&!h.smooth()&&h.content()),b=L(p,qe),m=L(p,He),y=1,x=(E.isTouch&&Xe.visualViewport?Xe.visualViewport.scale*Xe.visualViewport.width:Xe.outerWidth)/Xe.innerWidth,_=0,w=Ua(t)?function(){return t(n)}:function(){return t||2.8},S=yc(p,e.type,!0,r),k=Ia,T=Ia;return v&&Ne.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return R&&"touchmove"===e.type&&function ignoreDrag(){if(i){requestAnimationFrame(Gq);var e=Ja(n.deltaY/2),t=T(b.v-e);if(v&&t!==b.v+b.offset){b.offset=t-b.v;var r=Ja((parseFloat(v&&v._gsap.y)||0)-b.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",v._gsap.y=r+"px",b.cacheID=ze.cache,Z()}return!0}b.offset&&Kq(),i=!0}()||1.05
=o||o-1<=r)&&Ne.to({},{onUpdate:Qq,duration:i})}else s.restart(!0);d&&d(e)},e.onWheel=function(){a._ts&&a.pause(),1e3
<!-- Extracted from pasted content that could not be mapped to a specific element or class. -->
<script src="https://motion.brickslibrary.com/wp-content/themes/bricks-child/script.js?ver=1673777761"></script>
<script src="https://motion.brickslibrary.com/wp-content/themes/bricks/assets/js/bricks.min.js?ver=1788566244"></script>
<script src="https://motion.brickslibrary.com/wp-content/plugins/motionpage/assets/js/gsap/gsap.min.js?ver=3.13.0"></script>
<script src="https://motion.brickslibrary.com/wp-content/plugins/motionpage/assets/js/gsap/ScrollTrigger.min.js?ver=3.13.0"></script>