1function _defineProperty(e,t,o){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==typeof e?e:e+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}class _pf_PFBaseCustomElement extends HTMLElement{constructor(){super(),this.initialize()}connectedCallback(){this.render()}disconnectedCallback(){this._cleanUp()}static get observedAttributes(){return[]}initialize(){this.$=this.querySelector.bind(this),this.$$=this.querySelectorAll.bind(this),this._eventsMap=new Map}render(){}addSafeEventListener(e,t,o){o=o.bind(this);e.addEventListener(t,o),this._eventsMap.has(e)||this._eventsMap.set(e,[]),this._eventsMap.get(e).push({event:t,handler:o})}removeSafeEventListener(t,o){var e=this._eventsMap.get(t);e&&(e.forEach(({handler:e})=>t.removeEventListener(o,e)),this._eventsMap.delete(t))}_removeAllSafeEvents(){this._eventsMap.forEach((e,o)=>{e.forEach(({event:e,handler:t})=>o.removeEventListener(e,t))}),this._eventsMap.clear()}_cleanUp(){this._removeAllSafeEvents()}attributeChangedCallback(e,t,o){t!==o&&this.render()}adoptedCallback(){}}class _pf_BaseElementLazyLoader{constructor(e){_defineProperty(this,"setProp",(e,t="src",o="data-src")=>{o=e.getAttribute(o);return!!o&&(e[t]=o,!0)}),_defineProperty(this,"removeProp",(e,t="data-src")=>{e.hasAttribute(t)&&e.removeAttribute(t)}),this.options=e}handleIntersectionObserver(e,o,n,t=null){var i=()=>(t||o)();try{if(window.IntersectionObserver){let t=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(o(e.target,t),n)&&t.unobserve(e.target)})},this.options);e.forEach(e=>t.observe(e))}else i()}catch(e){i()}}observerElement(e,t,o=!0){this.handleIntersectionObserver([t],e,o)}observerElements(e,t,o=!0,n){this.handleIntersectionObserver(t,e,o,n)}}class _pf_PFCustomElementLazyLoader{constructor(){this.defer=e=>(window.requestIdleCallback||requestAnimationFrame).call(window,e),this.loadedScripts=new Set,this.init()}init(){this.defer(()=>{this.observerCustomElement()}),this.registerCustomElementAddEvent()}observerCustomElement(e=document){let t=[];e instanceof Element?(t=e.hasAttribute("data-pf-belong-to-custom-element")?[e,...Array.from(e.querySelectorAll('[data-pf-belong-to-custom-element="true"]'))]:Array.from(e.querySelectorAll('[data-pf-belong-to-custom-element="true"]')),this.loadCustomElements(t)):(t=Array.from(e.querySelectorAll('[data-pf-belong-to-custom-element="true"]')),this.intersectionObserver=new IntersectionObserver(e=>{e=e.map(e=>{if(e.isIntersecting&&!customElements.get(e.target.localName))return e.target}).filter(Boolean);this.loadCustomElements(e)}),t.forEach(e=>{this.intersectionObserver.observe(e)}))}loadCustomElements(e){let o=new Set;e.forEach(e=>{e.getAttribute("data-pf-custom-element-file").split(",").forEach(e=>{var t=window.PAGEFLY.custom_elements_mapper?.[e];t&&!this.loadedScripts.has(e)&&(o.add(t),this.loadedScripts.add(e))})}),_pf_loadMultipleScripts(Array.from(o),{async:!1,defer:!0},document.body)}registerCustomElementAddEvent(){document.addEventListener("pagefly-custom-element-added",e=>{let t=e.detail.target;this.defer(()=>this.observerCustomElement(t))})}}class _pf_PageFlyHelperStore{constructor(){_defineProperty(this,"cart",{}),_defineProperty(this,"_listeners",[]),_defineProperty(this,"lastATCResult",{}),_defineProperty(this,"autoCartUpdate",!0)}subscribe(e){this._listeners.push(e)}unsubscribe(t){this._listeners=this._listeners.filter(e=>e!==t)}update(t){this._listeners.forEach(e=>e(t))}set(e,t){this[e]=t,this.update()}}class _pf_PFPagePrefetcher{constructor(){this.lastTouchTimestamp=0,this.mouseoverTimeout=null,this.cachedURLToPrefetch=new Map,this.prefetcher=document.createElement("link"),this.prefetcher.id="pf-prefetcher",this.isDataSaverEnabled=navigator.connection&&navigator.connection.saveData,this.isPrefetchAvailable=this.prefetcher&&this.prefetcher.relList.supports&&this.prefetcher.relList.supports("prefetch"),this.startTime=0,this.init()}init(){this.prefetcher.rel="prefetch",this.prefetcher.as="document",document.head.appendChild(this.prefetcher),this.bindEventHandler()}bindEventHandler(){document.addEventListener("touchstart",this.handleTouchstartEvent.bind(this),{capture:!0,passive:!0}),document.addEventListener("mouseover",this.handleMouseoverEvent.bind(this),{capture:!0,passive:!0}),this.prefetcher.onload=e=>{e=e.currentTarget;this.cachedURLToPrefetch.set(e.href,!0)},this.prefetcher.onerror=e=>{this.cachedURLToPrefetch.set(e.currentTarget.href,!0)}}handleTouchstartEvent(e){this.lastTouchTimestamp=performance.now();var e=e.target.closest("a, [data-href]"),t=this.isPrefetchable(e);t&&e&&(e.addEventListener("touchcancel",this.handleTouchcancelAndTouchEndEvent.bind(this),{passive:!0}),e.addEventListener("touchend",this.handleTouchcancelAndTouchEndEvent.bind(this),{passive:!0}),this.prefetch(t))}handleTouchcancelAndTouchEndEvent(e){this.stopPrefetching()}handleMouseoverEvent(t){if(!(performance.now()-this.lastTouchTimestamp<1100)){t=t.target.closest("a, [data-href]");let e=this.isPrefetchable(t);e&&t&&(t.addEventListener("mouseout",this.handleMouseoutEvent.bind(this),{passive:!0}),this.mouseoverTimeout=window.setTimeout(()=>{this.prefetch(e),this.mouseoverTimeout&&clearTimeout(this.mouseoverTimeout)},65))}}handleMouseoutEvent(e){var t=e.relatedTarget;t&&e.target.closest("a, [data-href]")===t.closest("a, [data-href]")||this.stopPrefetching()}getAbsoluteUrl(t){try{return new URL(t)}catch(e){return new URL(t,window.location.origin)}}isPrefetchable(e){return!(!e?.hasAttribute("data-pf-type")&&!e?.closest("[data-pf-type]"))&&!!(e=e?.href||e?.getAttribute("data-href")||"")&&(e=this.getAbsoluteUrl(e),!this.cachedURLToPrefetch.get(e.href))&&e.origin===location.origin&&["http:","https:"].includes(e.protocol)&&!("http:"===e.protocol&&"https:"===location.protocol)&&!(e.hash&&e.pathname+e.search===location.pathname+location.search)&&e.href}prefetch(e){this.prefetcher.setAttribute("href",e),this.isPrefetchAvailable||this.prefetchViaXHR(e)}stopPrefetching(){this.prefetcher.removeAttribute("href")}prefetchViaXHR(n){return new Promise((e,t)=>
1{let o=new XMLHttpRequest;o.open("GET",n,!0),this.cachedURLToPrefetch.set(n,!0),o.onload=()=>{(200<=o.status&&o.status<300?e:t)()},o.onerror=()=>t(),o.send()})}}class _pf_SocialMediaFrameLoader extends _pf_BaseElementLazyLoader{constructor({optionObserver:e=_pf_defaultOptionObserver,...t}){super(e),_defineProperty(this,"type","iframe"),_defineProperty(this,"loadMedia",e=>{"video"===this.type?(this.setProp(e,"poster","data-poster")&&this.removeProp(e,"data-poster"),e.querySelectorAll("source[data-src]").forEach(e=>{this.setProp(e)&&this.removeProp(e)}),e.load()):this.setProp(e)&&this.removeProp(e)}),Object.assign(this,t),this.init()}init(){var e=this.containerElement||[].slice.call(document.querySelectorAll(this.containerSelector));_pf_executeChunk(e,e=>{e=[].slice.call(e.querySelectorAll(this.elementSelector));e.length&&e.forEach(e=>this.observerElement(this.loadMedia,e))})}}let _pf_handleLazyLoadLegacyBackgroundVideo=e=>document.querySelectorAll('video.pf-media-bg-video:not([data-pf-type="BackgroundVideo"])')?e.add(window?.PAGEFLY?.elements_asset_mapper["HTML.Video2"]):e,_pf___pagefly_product_store_data__=window.__pagefly_product_store__=new _pf_PageFlyHelperStore,_pf___pagefly_helper_store_data__=window.__pagefly_helper_store__=new _pf_PageFlyHelperStore,_pf_specificHelperCDN=["https://cdn.pagefly.io/static/core/helper.js"],_pf_detectPageFlyHelperVersion=()=>{var e=[{version:"legacy",selector:'[data-pf-editor-version="legacy"], [data-pf-type="Section"]'},{version:"gen-2",selector:'[data-pf-editor-version="gen-2"], [data-pf-type="FlexSection"]'}].filter(({selector:e})=>document.querySelector(e))?.map(({version:e})=>e);window.PAGEFLY={editorVersions:e}},_pf_runHelper=()=>{var e=Array.from(document.querySelectorAll("script")).map(e=>{e=e.getAttribute("src");return _pf_specificHelperCDN.includes(e)?"2.0.0":_pf_getPFHelperVersion(e||"")}).filter(e=>e).find(e=>_pf_comparePFHelperVersion(e,_pf_STARTED_VERSION_USING_THEME_APP_EXTENSION)<0);if(!e){console.info("Run helper...."),Shopify?.analytics?.publish&&_pf_pfPageSetting?.pageId&&Shopify.analytics.publish("pf_view_page",Object.assign({send_to:"pagefly",pf_event:"pf_view_page",include_atc_button:document.querySelector('[data-pf-type*="ProductATC"]')?"true":"false"},_pf_getWebPixelPageContext(meta))),sessionStorage.setItem("PF_SHOP_DOMAIN",_pf_pfSetting.shopDomain),localStorage.setItem("PF_SHOP_DOMAIN",_pf_pfSetting.shopDomain);let t=_pf_getSessionKey(),o=Date.now(),n=0,i=!1;e=localStorage.getItem(t);let r=!!e&&!0===JSON.parse(e).engaged;window.addEventListener("scroll",()=>{var e=document.documentElement.scrollHeight-window.innerHeight;e<=0||(e=Math.round(window.scrollY/e*100))>n&&(n=e)},{passive:!0});var e=()=>{var e;!r&&(r=!0,e=localStorage.getItem(t))&&((e=JSON.parse(e)).engaged=!0,localStorage.setItem(t,JSON.stringify(e)))},e=(document.addEventListener("click",e,{once:!0,passive:!0}),document.addEventListener("scroll",e,{once:!0,passive:!0}),document.addEventListener("input",e,{once:!0,passive:!0}),document.addEventListener("visibilitychange",()=>{var e;"visible"===document.visibilityState?(e=localStorage.getItem(t))&&((e=JSON.parse(e)).lastEventAt=Date.now(),localStorage.setItem(t,JSON.stringify(e))):(e=localStorage.getItem(t))&&((e=JSON.parse(e)).lastEventAt=null,localStorage.setItem(t,JSON.stringify(e)))}),window.addEventListener("pagehide",()=>{if(!i){i=!0;var e=Date.now()-o;if(Shopify?.analytics?.publish&&_pf_pfPageSetting?.pageId&&Shopify.analytics.publish("pf_page_exit",Object.assign({send_to:"pagefly",pf_event:"pf_page_exit",time_on_page:e,max_scroll_depth:n,engaged:r||1e4<=e,exit_section_id:window.__pfLastTimedSectionId||window.__pfFirstSectionId||""},_pf_getWebPixelPageContext(meta))),"function"==typeof window.__pfSectionBounceFn)try{window.__pfSectionBounceFn()}catch(e){}}}),_pf_detectPageFlyHelperVersion(),document.getElementById("pagefly-helper-data"));e&&(e=JSON.parse(e.textContent),Object.assign(window.PAGEFLY,e),_pf_elementsHelperTrigger(),_pf_initSectionTracking(),_pf_handleAnimation().catch(console.error),_pf_handleLazyLoadBackgroundImage().catch(console.error),_pf_handlePrefetchAssets().catch(console.error))}},_pf_runHelperOnThemeEditor=()=>{try{window.Shopify?.designMode&&document.addEventListener("shopify:section:load",function(e){var t;e.target.closest("[data-shopify-editor-section*=pagefly_section]")&&(e=document.querySelectorAll("[data-shopify-editor-section*=pf-]"),t=document.querySelectorAll("[data-shopify-editor-section*=pagefly_section]"),[...e,...t].forEach(e
1=>{var t=e.cloneNode(!0);e.replaceWith(t)}),document.querySelectorAll("[data-pf-type=ProductQuantity]").forEach(e=>{e.removeAttribute("listener")}),_pf_executeScriptElements(),_pf_runHelper())})}catch(e){console.error("Run helper on theme editor",e)}},_pf_SECTION_SELECTOR='[data-pf-type="Section"],[data-pf-type="FlexSection"]',_pf_CTA_SELECTOR='a, button, [role="button"]',_pf_SCROLL_DEPTH_BUCKETS=[0,25,50,75,100],_pf_VIEW_THRESHOLD=50,_pf_webStorage={storage:null,init(){try{var e="__webStorageTest__";window.localStorage.setItem(e,e),window.localStorage.removeItem(e),this.storage=window.localStorage}catch(e){console.warn("LocalStorage is not available. Your data will not persist across sessions. Consider enabling third-party cookies for a better experience."),this.storage={}}},setItem(e,t){this.storage instanceof Storage?this.storage.setItem(e,t):this.storage[e]=t},getItem(e){return this.storage instanceof Storage?this.storage.getItem(e)||null:this.storage[e]||null},removeItem(e){this.storage instanceof Storage?this.storage.removeItem(e):delete this.storage[e]},clear(){this.storage instanceof Storage?this.storage.clear():this.storage={}}};_pf_pfInjectBeforeAfterCSS(),_pf_pfInitBeforeAfter(),window.__pagefly__.handleLazyLoadBackgroundImage=_pf_handleLazyLoadBackgroundImage,_pf_runHelper(),_pf_runHelperOnThemeEditor(),window.__pfSectionTrackingObserver=window.__pfSectionTrackingObserver||null,window.__pfSectionTrackingClickHandler=window.__pfSectionTrackingClickHandler||null,window.__pfSectionTrackingTimerCleanup=window.__pfSectionTrackingTimerCleanup||null,window.__pfSectionExitHandler=window.__pfSectionExitHandler||null,window.__pfFirstSectionId=window.__pfFirstSectionId||null,window.__pfLastTimedSectionId=window.__pfLastTimedSectionId||null,_pf_webStorage.init(),window.__webStorage__=_pf_webStorage.storage,_pf_handleAction().catch(console.error);var _pf_clickPopupShadowMap={subtle:"0 2px 8px rgba(0,0,0,0.15)",medium:"0 4px 24px rgba(0,0,0,0.25)",strong:"0 8px 40px rgba(0,0,0,0.4)"},_pf_shadowMap=(window.__openUrl=_pf_openUrl,(e=>{e.pfPopupStorageTier={writeTier:function(e,t,o){var n,i,o=JSON.stringify(o);if("session"===e)sessionStorage.setItem(t,o);else if("local"===e)localStorage.setItem(t,o);else{if("cookie"!==e)throw new Error("Unknown tier: "+e);e=t,t=o,o="",(n=1)&&((i=new Date).setTime(i.getTime()+24*n*60*60*1e3),o="; expires="+i.toUTCString()),document.cookie=e+"="+encodeURIComponent(t)+o+"; path=/; SameSite=Lax"}},readTier:function(e,t){try{var o;if("session"===e)o=sessionStorage.getItem(t);else if("local"===e)o=localStorage.getItem(t);else{if("cookie"!==e)throw new Error("Unknown tier: "+e);o=(e=>{for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){var i=o[n].trim();if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length))}return null})(t)}return o?JSON.parse(o):null}catch(e){return null}},removeTier:function(e,t){try{"session"===e?sessionStorage.removeItem(t):(localStorage.removeItem(t),document.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/")}catch(e){}}}})(void 0!==window?window:globalThis),(p=>{var t=3,l=0;function s(e){return"pf_popup_v1_"+e+"_"+(p.Shopify&&p.Shopify.shop||p.location.hostname||"unknown")}function c(e){if(t<=++l){console.warn("[PageFly Popup] Frequency storage unavailable ("+l+" failures). Popup will show on every visit.");try{p.dispatchEvent(new CustomEvent("popup_storage_fail",{detail:{popupId:e,failCount:l}}))}catch(e){}l=0}}function d(e){return"once_per_session"===e?"session":"local"}function f(e,t,o){e="once_per_day"===e?((e,t)=>{t=t||1;try{var o=new Date,n=new Date(o.toLocaleString("en-US",{timeZone:e})),i=new Date(n);return i.setDate(i.getDate()+t),i.setHours(0,0,0,0),new Date(i.getTime()-(n.getTime()-o.getTime())).toISOString()}catch(e){return new Date(Date.now()+24*t*60*60*1e3).toISOString()}})(t,o):null;return{shownAt:(new Date).toISOString(),expiresAt:e,count:1}}function u(e){return"number"!=typeof e.count||isNaN(e.count)?1:e.count+1}function _(){try{if(p.Shopify&&p.Shopify.customerPrivacy&&"function"==typeof p.Shopify.customerPrivacy.preferencesProcessingAllowed&&!1===p.Shopify.customerPrivacy.preferencesProcessingAllowed())return 1}catch(e){}}function h(e){return"session"===e?"once_per_session":"days"===e?"once_per_day":e}function o(e,t){var o,n;return"always"===(t=h(t))?null:(o=p.pfPopupStorageTier,e=s(e),t=d(t),(n=o.readTier(t,e))||("local"===t&&(n=o.readTier("cookie",e))?n:null))}
1p.pfPopupStorage={buildKey:s,writeFrequency:function(t,e,o){if("always"!==(e=h(e))&&!_()){var n=p.pfPopupStorageTier,i=s(t),o=f(e,(()=>{try{return(p.pfConfig&&p.pfConfig.shopTimezone?p.pfConfig.shopTimezone:null)||Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return"UTC"}})(),o),e=d(e);try{var r=n.readTier(e,i);return r&&(o.count=u(r),o.shownAt=r.shownAt),n.writeTier(e,i,o),void(l=0)}catch(e){}if("local"===e)try{var a=n.readTier("cookie",i);return a&&(o.count=u(a),o.shownAt=a.shownAt),n.writeTier("cookie",i,o),void(l=0)}catch(e){throw c(i),new Error("[PageFly Popup] All storage tiers failed for popupId="+t)}throw c(i),new Error("[PageFly Popup] sessionStorage write failed for popupId="+t)}},readFrequency:o,isAlreadyShown:function(e,t){return"always"!==(t=h(t))&&!_()&&!!(e=o(e,t))&&("once_per_session"===t||"once_per_day"===t&&!!e.expiresAt&&(t=new Date(e.expiresAt),!isNaN(t.getTime()))&&Date.now()<t.getTime())},clearFrequency:function(e,t){var o;"always"!==(t=h(t))&&(o=p.pfPopupStorageTier,e=s(e),o.removeTier(d(t),e))},_getFailCount:function(){return l},_resetFailCount:function(){l=0}}})(void 0!==window?window:globalThis),{subtle:"0 4px 16px rgba(0,0,0,0.08)",medium:"0 8px 32px rgba(0,0,0,0.16)",strong:"0 16px 48px rgba(0,0,0,0.28)"});function _pf_collectData(o={}){if(o){let{elementName:e,selector:t}=o;!e||sessionStorage.getItem(t)||("undefined"!=typeof window&&"undefined"!=typeof Shopify&&Shopify.analytics?.publish&&(Shopify.analytics.publish("pf_conversion",Object.assign({send_to:"pagefly",pf_event:"pf_conversion_rate",pf_conversion_name:e},_pf_getWebPixelPageContext())),sessionStorage.setItem(t,"true")),"undefined"!=typeof window&&"function"==typeof window.gtag&&window.gtag("event","pf_conversion",Object.assign({send_to:"pagefly",pf_event:"pf_conversion_rate",pf_conversion_name:e,event_callback:()=>{sessionStorage.setItem(t,"true")}},window.pfPageInfo)))}}async function _pf_setupAnalyticsEventsTracking(){(_pf_pfSetting.trackingIDs||_pf_pfPageSetting.trackingIDs||[]).forEach(e=>{"undefined"!=typeof window&&"function"==typeof window.gtag&&window.gtag("event","init_conversion",Object.assign({send_to:"pagefly",pf_conversion_name:e.elementName},window.pfPageInfo)),_pf_registerEventToTrackElement(e)})}function _pf_registerEventToTrackElement(e){let{elementId:t,elementName:o,elementType:n,elementIndex:i,elementRoomId:r,autoTracking:a}=e,p=`.pf-${i}_`,l=("ProductImage"===n&&(p+=' [data-pf-type="MasterImage"]'),document.querySelectorAll(p));if(0===l.length&&r&&(p=".rid-"+r,l=document.querySelectorAll(p)),0===l.length)return console.warn("Not found element for selector",p);l.forEach(e=>
1{t&&(o||a)&&e.addEventListener("click",()=>{_pf_collectData({elementName:o,selector:p})})})}async function _pf_initPageFlyAnalytics(){try{window.PAGEFLY_CRO.GA4.enabled&&(_pf_setupAnalyticsEventsTracking().catch(console.error),console.log("%cInitialized PageFly Analytics","background:#E5A500; padding:4px; border-radius:3px; color:#fff"))}catch(e){console.error("Failed to run PageFly Analytics",e)}}function _pf_getOffset(e){var t=document.body.getBoundingClientRect(),o=e.getBoundingClientRect();return{top:o.top-t.top,height:(e.offsetHeight||o.height)/4,clientRect:e.getBoundingClientRect()}}async function _pf_handleAnimation(){let o=window.innerHeight;var e=document.querySelectorAll(".__pf [class*=animate]"),t=document.querySelectorAll(".__pf [data-popup-animation]"),n=document.querySelectorAll(".__pf [data-animation]");if(!document.querySelector(`link[href*="${_pf_PAGEFLY_ANIMATION_CSS}.css"]`)&&(e.length||t.length||n.length)){let e=document.createElement("link");e.rel="stylesheet",e.href=_pf_pfSetting.cdnURL+"/static/css/animation.css",e.media="print",e.onload=()=>{e.media="all"},document.head.appendChild(e)}let r=[];for(let e=0;e<n.length;e++){r.push({element:n[e],position:window.pfCustomGetOffset?window.pfCustomGetOffset(n[e]):_pf_getOffset(n[e]),animation:n[e].getAttribute("data-animation")});var i=r[r.length-1],a=i.animation;if(a){let e=i.element;-1!==a.toLowerCase().indexOf("in")&&(e.style.visibility="hidden");var p=window.scrollY||document.body.scrollTop;i.position.top+i.position.height<=o+p&&(e.style.visibility="visible",e.setAttribute("class",`${e.getAttribute("class")||""} pf-animated `+a)),i.element.onanimationend=()=>{setTimeout(()=>{e.classList.remove("pf-animated")},2e3)}}}document.addEventListener("scroll",e=>{var t=window.scrollY||document.body.scrollTop;let i=o+t;r.forEach(({element:e,position:t,animation:o})=>{var n=Number(e.dataset.offset)||0;t.top+t.height+n<i&&o&&!e.classList.contains(o)&&(e.style.visibility="visible",e.setAttribute("class",`${e.getAttribute("class")||""} pf-animated `+o))})},!0)}function _pf_pfInitBeforeAfter(){window._pfBaCleanup&&(window._pfBaCleanup(),window._pfBaCleanup=null);var n,e=document.querySelectorAll('[data-pf-type="ImageComparison"], [data-pf-type="BeforeAfter"]');function g(e,t,o){document.addEventListener(e,t,o),n.push({event:e,fn:t,opts:o})}e.length&&(n=[],window._pfBaCleanup=function(){n.forEach(function(e){document.removeEventListener(e.event,e.fn,e.opts)}),n=[]},e.forEach(function(e){var i,r,n,a,p,l,s,c=e.querySelector(".pf-ba-content")||e,d=c.querySelector(".pf-ba-handle"),f=c.querySelector(".pf-ba-before");function t(){c.style.setProperty("--pf-ba-container-width",c.clientWidth+"px"),c.style.setProperty("--pf-ba-container-height",c.clientHeight+"px")}function u(e){var t=c.getBoundingClientRect(),o=i?Math.max(0,Math.min(100,(e-t.top)/t.height*100)):Math.max(0,Math.min(100,(e-t.left)/t.width*100));a&&cancelAnimationFrame(a),a=requestAnimationFrame(function(){i?(f.style.height=o+"%",d.style.top=o+"%"):(f.style.width=o+"%",d.style.left=o+"%"),d.setAttribute("aria-valuenow",Math.round(o)),a=null}),n=o}function o(e){r=!0,e.preventDefault()}function _(){s=r=!1}function h(e){s=!(r=!0);e=e.touches[0];p=e.clientX,l=e.clientY}d&&f&&(e.getAttribute("data-pf-ba-init")||(e.setAttribute("data-pf-ba-init","1"),i="vertical"===e.getAttribute("data-pf-ba-direction"),r=!1,n=i?parseFloat(f.style.height)||50:parseFloat(f.style.width)||50,a=null,l=p=0,s=!1,t(),(e=f.querySelector("img"))&&(i?(e.style.width="100%",e.style.height="auto"):(e.style.width="var(--pf-ba-container-width)",e.style.height="var(--pf-ba-container-height)",e.style.objectFit="cover",e.style.maxWidth="none")),window.ResizeObserver&&new ResizeObserver(t).observe(c),d.addEventListener("mousedown",o),c.addEventListener("mousedown",o),d.addEventListener("touchstart",h,{passive:!0}),c.addEventListener("touchstart",h,{passive:!0}),d.addEventListener("keydown",function(e){var t=n,o=i?["ArrowDown"]:["ArrowRight"];if(-1!==(i?["ArrowUp"]:["ArrowLeft"]).indexOf(e.key))t-=5;else if(-1!==o.indexOf(e.key))t+=5;else if("Home"===e.key)t=0;else{if("End"!==e.key)return;t=100}e.preventDefault(),t=Math.max(0,Math.min(100,t)),i?(f.style.height=t+"%",d.style.top=t+"%"):(f.style.width=t+"%",d.style.left=t+"%"),d.setAttribute("aria-valuenow",Math.round(t)),n=t}),c.style.cursor=i?"row-resize":"col-resize",g("mousemove",function(e){r&&u(i?e.clientY:e.clientX)}),g("mouseup",_),g("touchmove",function(e){if(r){var t=e.touches[0];if(!s){var o=Math.abs(t.clientX-p),n=Math.abs(t.clientY-l);if(i?n<o:o<n)return void _();s=!0}e.preventDefault(),u(i?t.clientY:t.clientX)}},{passive:!1}),g("touchend",_)))}))}function _pf_pfInjectBeforeAfterCSS(){var e;document.querySelector("#pf-ba-css")||((e=document.createElement("style")).id="pf-ba-css",e.textContent=['[data-
1pf-type="ImageComparison"], [data-pf-type="BeforeAfter"] {'," user-select: none; }",".pf-ba-content {"," position: relative; overflow: hidden; width: 100%; height: 100%; }",'[data-pf-type="ImageComparison"]:not(:has(.pf-ba-content)),','[data-pf-type="BeforeAfter"]:not(:has(.pf-ba-content)) {'," position: relative; overflow: hidden; }",".pf-ba-after { position: relative; width: 100%; z-index: 0; }",".pf-ba-after img { display: block; width: 100%; height: auto; }",".pf-ba-before {"," position: absolute; top: 0; left: 0; overflow: hidden; z-index: 1; height: 100%; }",".pf-ba-before img { display: block; object-fit: cover; max-width: none; max-height: none; }",".pf-ba-vertical .pf-ba-before { width: 100%; height: auto; }",".pf-ba-vertical .pf-ba-before img { width: 100%; height: auto; }",".pf-ba-handle {"," position: absolute; top: 0; height: 100%; width: 4px;"," background: #fff; z-index: 10; cursor: col-resize; transform: translateX(-50%); }",".pf-ba-handle[data-pf-ba-vertical] {"," top: auto; left: 0; width: 100%; height: 4px; cursor: row-resize; transform: translateY(-50%); }",".pf-ba-handle-circle {"," position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);"," width: 44px; height: 44px; background: #fff; border-radius: 50%;"," box-shadow: 0 1px 4px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; }",".pf-ba-badge-wrapper {"," display: contents; font-size: 12px; font-weight: 500; color: #fff;"," background: rgba(0,0,0,0.4); padding: 4px 8px; border-radius: 4px; border: none; }",".pf-ba-label {"," position: absolute; z-index: 5; white-space: nowrap;"," font-size: inherit; font-weight: inherit; font-style: inherit; font-family: inherit;"," color: inherit; text-decoration: inherit;"," background: inherit; padding: inherit; border: inherit; border-radius: inherit;"," pointer-events: none; user-select: none; }"].join("\n"),document.head.appendChild(e))}function _pf_loadMultipleScripts(e,o={},t=document.body){let n=document.createDocumentFragment();e.length&&(e.forEach(e=>{var t=document.createElement("script");Object.assign(t,{src:e,...o}),t.onload=()=>{console.log("Script loaded successfully: "+e)},t.onerror=()=>{console.error("Error loading script: "+e)},t.defer&&t.setAttribute("defer","defer"),n.appendChild(t)}),t.appendChild(n))}function _pf_elementsHelperTrigger(){try{var e=Object.keys(window?.PAGEFLY?.elements_asset_mapper).map(e=>`[data-pf-type="${e}"]`).join(","),o=document.querySelectorAll(e);let t=new Set;o.forEach(e=>{e=window?.PAGEFLY?.elements_asset_mapper[e.getAttribute("data-pf-type")];t.add(e)});var n=document.body||document.head||document.documentElement;t=_pf_handleLazyLoadLegacyBackgroundVideo(t),_pf_loadMultipleScripts(Array.from(t),{defer:!0},n)}catch(e){console.error("PF elements helper error: ",e)}}async function _pf_handleLazyLoadBackgroundImage(){setTimeout(()=>{if("IntersectionObserver"in window){var e=[].slice.call(document.querySelectorAll(".pf-bg-lazy"));let o=new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&((e=e.target).classList.remove("pf-bg-lazy"),o.unobserve(e))})},{rootMargin:"5%"});e.forEach(function(e){o.observe(e)})}else setTimeout(()=>{document.querySelectorAll(".pf-bg-lazy").forEach(e=>{e.classList.remove("pf-bg-lazy")})},3e3)}),setTimeout(()=>{document.querySelectorAll(".pf-bg-lazy").forEach(e=>{e.classList.remove("pf-bg-lazy")})},1e4)}async function _pf_handlePrefetchAssets(){window.PAGEFLY?.page_optimization?.assets_prefetching&&new _pf_PFPagePrefetcher}function _pf_getPFHelperVersion(e){try{var t,o,n=/^https:\/\/(cdn|apps|wip|rc)\.pagefly\.io\/pagefly\/[^\/]+\/core\/helper\.js.*$/;return/^https:\/\/(cdn|apps|wip|rc)\.pagefly\.io\/assets\/pagefly\/assets\/[^\/]+\/helper\.js.*$/.test(e)?(t=e.split("/"))[t.length-2]:n.test(e)?(o=e.split("/"))[o.length-3]:null}catch(e){console.error("Get PF helper version",e)}}function _pf_comparePFHelperVersion(e,t){try{var o=e.split("."),n=t.split(".");return o[0]==n[0]?o[1]==n[1]?parseInt(o[2])-parseInt(n[2]):parseInt(o[1])-parseInt(n[1]):parseInt(o[0])-parseInt(n[0])}catch(e){console.error("Compare version helper",e)}}function _pf_executeScriptElements(){var e=document.querySelectorAll("script");
1Array.from(e).forEach(e=>{if(!e.getAttribute("data-pf-activated")){let t=document.createElement("script");Array.from(e.attributes).forEach(e=>{t.setAttribute(e.name,e.value)}),t.appendChild(document.createTextNode(e.innerHTML)),t.setAttribute("data-pf-activated","true"),e.parentNode.replaceChild(t,e)}})}function _pf_computeGrid(e,t){var t=t.getBoundingClientRect(),o=Math.min(1,Math.max(0,(e.clientX-t.left)/(t.width||1))),e=Math.min(1,Math.max(0,(e.clientY-t.top)/(t.height||1)));return{click_x_pct:Math.round(1e4*o)/1e4,click_y_pct:Math.round(1e4*e)/1e4,viewport_width:window.innerWidth||document.documentElement.clientWidth||0}}function _pf_publishSectionEvent(e,t,o){try{Shopify.analytics.publish(e,Object.assign({send_to:"pagefly",pf_event:e,sectionId:t.sectionId},o||{},_pf_getWebPixelPageContext(meta)))}catch(e){}}function _pf_computeScrollDepth(e){var t,e=e.getBoundingClientRect(),o=e.height;return o<=0?0:(t=window.innerHeight||document.documentElement.clientHeight||0,t=Math.min(1,Math.max(0,(t-e.top)/o)),Math.round(100*t))}function _pf_initSectionTracking(){if(Shopify?.analytics?.publish&&_pf_pfPageSetting?.pageId){var e=document.querySelectorAll(_pf_SECTION_SELECTOR);if(0!==e.length){window.__pfSectionTrackingObserver&&(window.__pfSectionTrackingObserver.disconnect(),window.__pfSectionTrackingObserver=null),window.__pfSectionTrackingClickHandler&&(document.removeEventListener("click",window.__pfSectionTrackingClickHandler,!0),window.__pfSectionTrackingClickHandler=null),window.__pfSectionTrackingTimerCleanup&&(window.__pfSectionTrackingTimerCleanup(),window.__pfSectionTrackingTimerCleanup=null),window.__pfSectionExitHandler&&(window.removeEventListener("pagehide",window.__pfSectionExitHandler),document.removeEventListener("visibilitychange",window.__pfSectionExitHandler),window.__pfSectionExitHandler=null),window.__pfFirstSectionId=null,window.__pfLastTimedSectionId=null;let a=new Map;function p(e){e.visibleSince&&(e.accumulatedTime+=Date.now()-e.visibleSince,e.visibleSince=null)}function l(e){p(e),window.__pfLastTimedSectionId=e.sectionId,_pf_publishSectionEvent("pf_section_exit",e,{duration_ms:e.accumulatedTime,max_scroll_depth:e.maxScrollDepth}),e.accumulatedTime=0,e.exitFired=!0}window.__pfSectionTrackingObserver=new IntersectionObserver(function(e){for(var t=0;t<e.length;t++){var o,n,i=e[t],r=a.get(i.target);r&&(o=Math.round(100*i.intersectionRatio),n=_pf_computeScrollDepth(i.target),(i=_pf_SCROLL_DEPTH_BUCKETS.reduce(function(e,t){return t<=n?t:e},0))>r.maxScrollDepth&&(r.maxScrollDepth=i),o>=_pf_VIEW_THRESHOLD?(r.viewFired||(window.__pfFirstSectionId||(window.__pfFirstSectionId=r.sectionId),_pf_publishSectionEvent("pf_section_view",r),r.viewFired=!0),r.visibleSince||(r.visibleSince=Date.now())):(p(r),r.viewFired&&!r.exitFired&&l(r)))}},{threshold:[0,.25,.5,.75,1]}),e.forEach(function(e){var t=e.dataset.sectionId||e.dataset.pfId;t&&(a.set(e,{sectionId:t,maxScrollDepth:0,viewFired:!1,exitFired:!1,visibleSince:null,accumulatedTime:0,clickCount:0}),window.__pfSectionTrackingObserver.observe(e))}),window.__pfSectionExitHandler=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||a.forEach(function(e){e.viewFired&&(p(e),e.exitFired||l(e))})},window.addEventListener("pagehide",window.__pfSectionExitHandler),document.addEventListener("visibilitychange",window.__pfSectionExitHandler),window.__pfSectionTrackingTimerCleanup=function(){},window.__pfSectionTrackingClickHandler=function(e){var t,o,n,i=e.target;i&&(n=i.closest(_pf_SECTION_SELECTOR))&&(t=a.get(n))&&(t.clickCount+=1,o=i.closest(_pf_CTA_SELECTOR),_pf_publishSectionEvent("pf_section_click",t,{click_x_pct:(e=_pf_computeGrid(e,n)).click_x_pct,click_y_pct:e.click_y_pct,viewport_width:e.viewport_width,click_target:i.tagName.toLowerCase(),element_tag:(o||i).tagName.toLowerCase(),element_href:(()=>{try{return o?new URL(o.href).pathname:""}catch{return""}})(),element_id:(n=(o||i).closest("[data-pf-id]"))?n.dataset.pfId:(n=Array.from((o||i).classList).find(e=>/^pf-\d+_$/.test(e)))&&_pf_elementDataFromSetting[n]&&_pf_elementDataFromSetting[n].id||"",element_text:(o||i).textContent?.trim().slice(0,50)||""}),o)&&_pf_publishSectionEvent("pf_section_cta_click",t,{cta_text:(o.textContent||"").trim().slice(0,100),cta_href:o.href||o.getAttribute("href")||"",element_tag:o.tagName.toLowerCase()})},document.addEventListener("click",window.__pfSectionTrackingClickHandler,!0),window.__pfSectionBounceFn=function(){a.forEach(function(e){var t;!e.viewFired||0<e.clickCount||(t=e.accumulatedTime,e.visibleSince&&(t+=Date.now()-e.visibleSince),t<3e3&&_pf_publishSectionEvent("pf_section_bounce",e))})}}}}async function _pf_handleGlobalSections(){var e=document.querySelectorAll('[data-pf-type="GlobalSection"]');
10<e.length&&e.forEach(e=>{var t;(t=e).querySelectorAll('[data-pf-type="Section"],[data-pf-type="FlexSection"]').forEach(e=>{e=getComputedStyle(e);"sticky"===e.position&&Object.assign(t.style,{position:e.position,top:e.top,zIndex:e.zIndex})})})}async function _pf_handleAction(){_pf_initModal().catch(console.error),_pf_hideModal().catch(console.error),_pf_initParallax().catch(console.error),_pf_openLightbox().catch(console.error),_pf_openUrl().catch(console.error),_pf_handleScrollToSection().catch(console.error),_pf_handleOpenPopup().catch(console.error),_pf_handleGlobalSections().catch(console.error),_pf_setupEventTracking().catch(console.error)}async function _pf_initModal(){var e=document.querySelectorAll('[data-action="modal"]'),t=document.querySelectorAll('[data-action="lightbox"]'),o=document.querySelectorAll('[data-action="popup-video"]');(e.length||t.length||o.length)&&(e=document.createElement("style"),(t=document.createElement("div")).setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.classList.add("pf-m"),document.body.append(t),(o=document.createElement("button")).innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 224.512 224.512" style="enable-background:new 0 0 224.512 224.512;" xml:space="preserve" width="16" height="16" class=""><g><g> 2 <polygon style="fill:#FFFFFF" points="224.507,6.997 217.521,0 112.256,105.258 6.998,0 0.005,6.997 105.263,112.254 0.005,217.512 6.998,224.512 112.256,119.24 217.521,224.512 224.507,217.512 119.249,112.254 " data-original="#010002" class="active-path" data-old_color="#010002"></polygon> 3</g></g> </svg>`,o.classList.add("pf-close-btn"),t.appendChild(o),document.head.appendChild(e),e.appendChild(document.createTextNode(_pf_modalDataCss)))}function _pf_handleRemoveModalContent(t){Array.from(t.children).filter(e=>!e.classList.contains("pf-close-btn")).forEach(e=>t.removeChild(e)),t.style.display="none",t.style.removeProperty("width"),t.style.removeProperty("max-height"),t.style.removeProperty("height"),t.style.removeProperty("border-radius"),t.style.removeProperty("background"),t.style.removeProperty("padding"),t.style.removeProperty("box-shadow");var e=document.getElementById("pf-m-backdrop"),e=(e&&(e.textContent=""),document.querySelector(".pf-m-overlay"));e&&e.parentNode.removeChild(e)}async function _pf_hideModal(){let t=document.querySelector(".pf-m");t&&t.addEventListener("click",e=>{e=e.target;e!==t&&"button"!==e.tagName.toLowerCase()||(_pf_handleRemoveModalContent(t),window.__pfClickActionPopupOpen=!1)})}async function _pf_initParallax(){0<document.querySelectorAll(_pf_PARALLAX_SELECTOR).length&&(await _pf_loadJS("https://cdn.pagefly.io/static/assets/jarallax.min.js").catch(console.error),setTimeout(()=>{document.querySelectorAll(_pf_PARALLAX_SELECTOR).forEach(e=>{var t=e.getAttribute("data-parallax-speed")||4;let o=e.querySelector(".pf-parallax-img");"jarallax"in window&&window.jarallax(e,{speed:Number(t)/10,imgElement:".pf-parallax-img",onInit:function(){o.style.opacity=1}})})},100))}async function _pf_openLightbox(){document.querySelectorAll("[data-action='lightbox']").forEach(e=>{e.addEventListener("click",e=>{var t=e.currentTarget,e=(e.preventDefault(),e.stopPropagation(),document.querySelector(".pf-m")),o=(e.style.display="flex",e.style.maxHeight="100%",document.createElement("img")),t=t.getAttribute("data-href")||t.getAttribute("href");t&&(o.src=_pf_getOriginalSrc(t)),e.appendChild(o),document.querySelector(".pf-m-overlay")||((t=document.createElement("div")).className="pf-m-overlay",document.body.appendChild(t))})})}function _pf_isValidCssColorValue(e){return!(!e||"string"!=typeof e)&&("undefined"!=typeof CSS&&CSS.supports?CSS.supports("color",e):/^(#[0-9a-fA-F]{3,8}|rgba?\([^);{}]+\)|[a-zA-Z]+)$/.test(e))}function _pf_applyClickPopupStyles(e,t){var t=t.dataset,o=(t.pfBorderRadius&&"0px"!==t.pfBorderRadius?e.style.borderRadius=t.pfBorderRadius:e.style.removeProperty("border-radius"),e.style.background=t.pfBgColor||"#fff",parseInt(t.pfPadding)||0),o=(0<o?e.style.padding=o+"px":e.style.removeProperty("padding"),t.pfShadow),o=(o&&"none"!==o&&_pf_clickPopupShadowMap[o]?e.style.boxShadow=_pf_clickPopupShadowMap[o]:e.style.removeProperty("box-shadow"),t.pfOverlayColor),o=_pf_isValidCssColorValue(o)?o:"rgba(0,0,0,0.5)",n=parseInt(t.pfOverlayBlur)||0,i=document.querySelector(".pf-m-overlay"),i=(i&&i.parentNode.removeChild(i),document.createElement("div"));i.className="pf-m-overlay";(t.pfOverlayColor||0<n)&&(i.style.setProperty("background",o,"important"),0<n)&&(i.style.setProperty("backdrop-filter","blur("+n+"px)","important"),i.style.setProperty("-webkit-backdrop-filter","blur("+n+"px)","important")),document.body.appendChild(i),e.__pfModalOverlay=i;o=t.pfCloseSize||"16",n=t.pfCloseColor||"#ffffff",i=e.querySelector(".pf-close-btn");i&&(i.style.height=o+"px",t=i.querySelector("svg"))&&(t.style.width=o+"px",t.style.height=o+"px",e=t.querySelector("polygon"))&&(e.style.fill=n)}async function _pf_handleOpenPopup(){var e=document.querySelectorAll('[data-action="modal"]');let u=document.querySelector(".pf-m");
3e.forEach(e=>{e.addEventListener("click",async a=>{if(a.stopPropagation(),!window.__pfClickActionPopupOpen){let i=document.createElement("iframe");_pf_setAttributes(i,{"data-pagefly-popup":!0,allowfullscreen:"allowfullscreen",style:"width: 100%; height: calc(100% - 24px)"});var p=a.currentTarget;let{src:e,width:t,height:o,popupAnimation:n,popupContent:r}=p.dataset;if(e){if("image"===r){var{imagePopupObjFit:l,imagePopupAlt:s,imagePopupTitle:c,imagePopupObjPosition:d}=p.dataset,f=document.createElement("img"),l={src:_pf_getOriginalSrc(e),style:`width: 100%; height: calc(100% - 24px); display: block; margin: auto; object-fit: ${l||"contain"}; object-position: `+(d||"center")};s&&(l.alt=s),c&&(l.title=c),_pf_setAttributes(f,l),n&&(f.className="pf-animated "+n),Array.from(u.children).length<2&&u.append(f)}else if("youtube"===r||"vimeo"===r)Array.from(u.children).length<2&&u.append(i),_pf_setAttributes(i,{src:e});else if("video"===r){var{muted:d,loop:s,controls:c,autoplay:l}=p.dataset;let e=p.dataset.src,t=document.createElement("video");_pf_setAttributes(t,{style:"width: 100%; height: calc(100% - 24px)"}),t.classList.add("pf-html5-video"),Array.from(u.children).length<2&&u.append(t),a.preventDefault(),a.stopPropagation(),l="true"===l,c="true"===c,s="true"===s,d="true"===d,u.style.cssText="visibility: visible; width: 650px; height: 450px;",_pf_setAttributes(t,{src:e}),c&&_pf_setAttributes(t,{controls:""}),l&&t.play(),t.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),!1===e.currentTarget.hasAttribute("controls")&&(t.paused?t.play():t.pause())}),s&&_pf_setAttributes(t,{loop:""}),t.muted=d}else if("shopify"===r){let t=!1,o=!1,n=await _pf_getHttpRequest(e);i.onload=e=>{i.contentDocument&&t?o&&!t||(o=!0,i.contentDocument.querySelectorAll("form").forEach(t=>{t.addEventListener("submit",function(e){e.preventDefault(),_pf_pageflyPost(t.getAttribute("action"),_pf_serializeArray(new FormData(t)))})}),i.contentDocument.querySelectorAll("a").forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();var e=e.currentTarget,t=e.getAttribute("href"),e=e.getAttribute("target");t&&("_blank"===e?window.open(t):window.location.href=t)})})):(_pf_setAttributes(i,{srcdoc:n}),t=!0)},Array.from(u.children).length<2&&u.append(i),setTimeout(()=>{i.contentDocument||(_pf_setAttributes(i,{srcdoc:n}),t=!0)},1e3)}f=document.querySelector("[data-pf-popup-element][data-pf-popup-open]");f&&(_pf_closePopup(f),await new Promise(function(e){setTimeout(e,150)})),u.style.display="flex",u.style.width=t,u.style.height=`calc(${o} + 24px)`,_pf_applyClickPopupStyles(u,p),window.__pfClickActionPopupOpen=!0,u.style.display="flex",n&&(i.className="pf-animated "+n)}}})})}function _pf_serializeArray(e){var t,o,n=[];for([t,o]of e)n.push({name:t,value:o});return n}function _pf_pageflyPost(e,t,o="post"){let n=document.createElement("form");n.method=o,n.action=e,t.forEach(function(e){var t=document.createElement("input");t.type="hidden",t.name=e.name,t.value=e.value,n.appendChild(t)}),document.body.appendChild(n),n.submit()}async function _pf_openUrl(){document.querySelectorAll("[data-pf-type][data-href]").forEach(e=>{let n=e.getAttribute("data-href")||"";if(n&&(!e.getAttribute("data-action")||["url","phone","email"].includes(e.getAttribute("data-action")))){let o=e.getAttribute("data-target")||"_self";e.addEventListener("click",e=>{e.stopPropagation();var t=()=>{n&&(e.ctrlKey||e.metaKey)?window.open(n,"_blank"):n&&window.open(n,o)};-1<n.indexOf("/products/")?(Shopify?.analytics?.publish&&Shopify.analytics.publish("pf_view_product",Object.assign({send_to:"pagefly",pf_view_product:1,pf_product_handle:n,pf_event:"view_product"},_pf_getWebPixelPageContext())),_pf_isTrackingActive()&&window.gtag&&window.gtag("event","pf_view_product",Object.assign({send_to:"pagefly",pf_view_product:1,pf_product_handle:n,pf_event:"view_product"},window.pfPageInfo))):(-1<n.indexOf("/collections/")&&(Shopify?.analytics?.publish&&Shopify.analytics.publish("pf_view_collection",Object.assign({send_to:"pagefly",pf_view_collection:1,pf_collection_handle:n,pf_event:"view_collection"},_pf_getWebPixelPageContext())),_pf_isTrackingActive())&&window.gtag&&window.gtag("event","pf_view_collection",Object.assign({send_to:"pagefly",pf_view_collection:1,pf_collection_handle:n,pf_event:"view_collection"}
3,window.pfPageInfo)),-1<n.indexOf("/blogs/")&&(Shopify?.analytics?.publish&&Shopify.analytics.publish("pf_view_blog_post",Object.assign({send_to:"pagefly",pf_view_blog_post:1,pf_blog_post_handle:n,pf_event:"view_blog_post"},_pf_getWebPixelPageContext())),_pf_isTrackingActive())&&window.gtag&&window.gtag("event","pf_view_blog_post",Object.assign({send_to:"pagefly",pf_view_blog_post:1,pf_blog_post_handle:n,pf_event:"view_blog_post"},window.pfPageInfo))),t()})}}),document.querySelectorAll("[data-pf-type][href]:not([data-href])").forEach(e=>{let t=e.getAttribute("href")||"";var o;!t||e.getAttribute("data-action")&&!["url","phone","email"].includes(e.getAttribute("data-action"))||("_self"!==(o=e.getAttribute("data-target")||"_self")&&e.setAttribute("target",o),-1<t.indexOf("/products/")&&e.addEventListener("click",()=>{Shopify?.analytics?.publish&&Shopify.analytics.publish("pf_view_product",Object.assign({send_to:"pagefly",pf_view_product:1,pf_product_handle:t,pf_event:"view_product"},_pf_getWebPixelPageContext())),_pf_isTrackingActive()&&window.gtag&&window.gtag("event","pf_view_product",Object.assign({send_to:"pagefly",pf_view_product:1,pf_product_handle:t,pf_event:"view_product"},window.pfPageInfo))}),-1<t.indexOf("/collections/")&&e.addEventListener("click",()=>{Shopify?.analytics?.publish&&Shopify.analytics.publish("pf_view_collection",Object.assign({send_to:"pagefly",pf_view_collection:1,pf_collection_handle:t,pf_event:"view_collection"},_pf_getWebPixelPageContext())),_pf_isTrackingActive()&&window.gtag&&window.gtag("event","pf_view_collection",Object.assign({send_to:"pagefly",pf_view_collection:1,pf_collection_handle:t,pf_event:"view_collection"},window.pfPageInfo))}),-1<t.indexOf("/blogs/")&&e.addEventListener("click",()=>{Shopify?.analytics?.publish&&Shopify.analytics.publish("pf_view_blog_post",Object.assign({send_to:"pagefly",pf_view_blog_post:1,pf_blog_post_handle:t,pf_event:"view_blog_post"},_pf_getWebPixelPageContext())),_pf_isTrackingActive()&&window.gtag&&window.gtag("event","pf_view_blog_post",Object.assign({send_to:"pagefly",pf_view_blog_post:1,pf_blog_post_handle:t,pf_event:"view_blog_post"},window.pfPageInfo))}))}),document.querySelectorAll('[data-pf-type="CollectionTitle"]').forEach(e=>{e.querySelectorAll("[href]").forEach(e=>{let t=e.getAttribute("href")||"";-1<t.indexOf("/collections/")&&e.addEventListener("click",()=>{Shopify?.analytics?.publish&&Shopify.analytics.publish("pf_view_collection",Object.assign({send_to:"pagefly",pf_view_collection:1,pf_collection_handle:t,pf_event:"view_collection"},_pf_getWebPixelPageContext())),_pf_isTrackingActive()&&window.gtag&&window.gtag("event","pf_view_collection",Object.assign({send_to:"pagefly",pf_view_collection:1,pf_collection_handle:t,pf_event:"view_collection"},window.pfPageInfo))})})}),document.querySelectorAll('[data-pf-type="ArticleTitle"]').forEach(e=>{e.querySelectorAll("[href]").forEach(e=>{let t=e.getAttribute("href")||"";-1<t.indexOf("/blogs/")&&e.addEventListener("click",()=>{Shopify?.analytics?.publish&&Shopify.analytics.publish("pf_view_blog_post",Object.assign({send_to:"pagefly",pf_view_blog_post:1,pf_blog_post_handle:t,pf_event:"view_blog_post"},_pf_getWebPixelPageContext())),_pf_isTrackingActive()&&window.gtag&&window.gtag("event","pf_view_blog_post",Object.assign({send_to:"pagefly",pf_view_blog_post:1,pf_blog_post_handle:t,pf_event:"view_blog_post"},window.pfPageInfo))})})})}function _pf_sanitizeId(e){return e.replace(/[^a-zA-Z0-9_-]/g,"")}function _pf_isValidCssColor(e){return"undefined"!=typeof CSS&&CSS.supports?CSS.supports("color",e):/^(#[0-9a-fA-F]{3,8}|rgba?\([^);{}]+\)|[a-zA-Z]+)$/.test(e)}function _pf_createOverlay(e,t,o,n){var i=document.createElement("div");return i.className="pf-popup-overlay",i.style.cssText=["position: fixed !important","inset: 0 !important","z-index: 99998 !important","display: block !important","width: 100vw !important","height: 100vh !important","background: "+t+" !important"].join("; "),o&&"0px"!==o&&(i.style.setProperty("backdrop-filter","blur("+o+")","important"),i.style.setProperty("-webkit-backdrop-filter","blur("+o+")","important")),n&&i.addEventListener("click",function(){_pf_closePopup(e)}),e.__pfOverlay=i}function _pf_isDialogElement(e){return e.tagName&&"dialog"===e.tagName.toLowerCase()}function _pf_openPopup(n){_pf_isDialogElement(n)?n.showModal():(_pf_isValidCssColor(e=n.getAttribute("data-pf-popup-overlay")||"rgba(0,0,0,0.5)")||(e="rgba(0,0,0,0.5)"),t=n.getAttribute("data-pf-popup-overlay-blur")||"0px",o="false"!==n.getAttribute("data-pf-popup-close-overlay"),n.parentNode===document.body||n.__pfBodyWrapper&&n.__pfBodyWrapper.parentNode===document.body||(n.__pfOriginalParent=n.parentNode,n.__pfOriginalNextSibling=n.nextSibling,i=n.closest(".__pf")||document.getElementById("__pf"),r=document.createElement("div"),i&&(r.className=i.className),r.style.cssText="position:static;display:contents;",r.appendChild(n),document.body.appendChild(r),n.__pfBodyWrapper=r),i=_pf_createOverlay(n,e,t,o),document.body.appendChild(i),n.style.setProperty("display","block","important")),n.setAttribute("data-pf-popup-open",""),document.body.style.overflow="hidden",n.__pfKeyHandler=function(e){var t,o;"Escape"===e.key?_pf_closePopup(n):"Tab"===e.key&&(o=n.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not
3([tabindex="-1"])')).length&&(t=o[0],o=o[o.length-1],e.shiftKey?document.activeElement===t&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),t.focus()))},document.addEventListener("keydown",n.__pfKeyHandler);var e,t,o,i,r=n.querySelector('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');(r||(n.setAttribute("tabindex","-1"),n)).focus()}function _pf_closePopup(e){_pf_isDialogElement(e)?e.close():(e.style.setProperty("display","none","important"),e.__pfOriginalParent&&(e.__pfOriginalNextSibling&&e.__pfOriginalNextSibling.parentNode===e.__pfOriginalParent?e.__pfOriginalParent.insertBefore(e,e.__pfOriginalNextSibling):e.__pfOriginalParent.appendChild(e),e.__pfBodyWrapper&&e.__pfBodyWrapper.parentNode&&e.__pfBodyWrapper.parentNode.removeChild(e.__pfBodyWrapper),e.__pfOriginalParent=null,e.__pfOriginalNextSibling=null,e.__pfBodyWrapper=null)),e.removeAttribute("data-pf-popup-open"),e.__pfOverlay&&e.__pfOverlay.parentNode&&e.__pfOverlay.parentNode.removeChild(e.__pfOverlay),e.__pfOverlay=null,e.__pfKeyHandler&&(document.removeEventListener("keydown",e.__pfKeyHandler),e.__pfKeyHandler=null),document.body.style.overflow="",window.__pfPopupElementOpen=!1,window.__pfClickActionPopupOpen=!1}function _pf_applyPopupStyles(e,t,o,n){var i,r,a,p=_pf_isDialogElement(e),l=e.getAttribute("data-pf-popup-bg-color")||"",s=e.getAttribute("data-pf-popup-border-radius")||"8px",c=e.getAttribute("data-pf-popup-shadow")||"none",d=e.getAttribute("data-pf-popup-overlay-blur")||"0px",f=(p?(p=["border: none","border-radius: "+s,"padding: 0","max-width: "+n,"width: 90vw","max-height: 90vh","overflow: auto","top"===o?"inset: unset; top: 5vh; left: 50%; transform: translateX(-50%); margin: 0;":"bottom"===o?"inset: unset; bottom: max(5vh, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); margin: 0;":"inset: 0; margin: auto;"],l&&p.push("background: "+l),"none"!==c&&_pf_shadowMap[c]&&p.push("box-shadow: "+_pf_shadowMap[c]),e.style.cssText=p.join("; "),f="pf-popup-style-"+(i=_pf_sanitizeId(e.getAttribute("data-pf-popup-id")||"default")),r=(a=document.getElementById(f))||document.createElement("style"),a||(r.id=f,document.head.appendChild(r)),p="background: "+t+" !important;",d&&"0px"!==d&&(p+=" backdrop-filter: blur("+d+") !important; -webkit-backdrop-filter: blur("+d+") !important;"),r.textContent=["dialog[data-pf-popup-element][open] { display: block !important; }",'dialog[data-pf-popup-id="'+i+'"]::backdrop { '+p+" }"].join("\n")):(p=["display: none","position: fixed","z-index: 99999","border: none","border-radius: "+s,"padding: 0","max-width: "+n,"width: 90vw","max-height: 90vh","overflow: auto","top"===o?"top: 5vh; left: 50%; transform: translateX(-50%);":"bottom"===o?"bottom: max(5vh, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);":"top: 50%; left: 50%; transform: translate(-50%, -50%);"],l&&p.push("background: "+l),"none"!==c&&_pf_shadowMap[c]&&p.push("box-shadow: "+_pf_shadowMap[c]),e.style.cssText=p.join("; "),f="pf-popup-style-"+(i=_pf_sanitizeId(e.getAttribute("data-pf-popup-id")||"default")),r=(a=document.getElementById(f))||document.createElement("style"),a||(r.id=f,document.head.appendChild(r)),p="",a="none"!==c&&_pf_shadowMap[c]?" box-shadow: "+_pf_shadowMap[c]+" !important;":"",r.textContent=[".pf-popup-overlay { position: fixed !important; inset: 0 !important; z-index: 99998 !important; "+("background: "+t+" !important;")+(p=d&&"0px"!==d?" backdrop-filter: blur("+d+") !important; -webkit-backdrop-filter: blur("+d+") !important;":p)+" display: block !important; }",'div[data-pf-popup-element][data-pf-popup-id="'+i+'"][data-pf-popup-open] { display: block !important; position: fixed !important; z-index: 99999 !important; '+("top"===o?"top: 5vh !important; left: 50% !important; transform: translateX(-50%) !important; bottom: auto !important;":"bottom"===o?"bottom: max(5vh, env(safe-area-inset-bottom, 0px)) !important; left: 50% !important; transform: translateX(-50%) !important; top: auto !important;":"top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important;")+" border: none !important; border-radius: "+s+" !important; padding: 0 !important; max-width: "+n+" !important; width: 90vw !important; max-height: 90vh !important; overflow: auto !important;"+(l?" background: "+l+" !important;":"")+a+" }"].join("\n")),e.querySelector(".pf-popup-close")),c=(f&&(f.style.cssText=["position: absolute","top: 8px","right: 8px","z-index: 1","width: 28px","height: 28px","padding: 4px","background: rgba(0,0,0,0.05)","border: none","border-radius: 50%","cursor: pointer","display: flex","align-items: center","justify-content: center","color: #333","line-height: 1"].join("; ")),e.querySelector(".pf-popup-body"));c&&(c.style.position="relative",c.style.padding||(c.style.padding="24px"))}function _pf_setupCloseHandlers(t,e){var o=t.querySelector(".pf-popup-close");o&&o.addEventListener("click",function(e){e.preventDefault(),_pf_closePopup(t)}),_pf_isDialogElement(t)&&(e&&t.addEventListener("click",function(e){e.target===t&&_pf_closePopup(t)}),t.addEventListener("close",function(){t.removeAttribute("data-pf-popup-open"),document.body.style.overflow="",window.__pfPopupElementOpen=!1,window.__pfClickActionPopupOpen=!1}))}function _pf_trackPopupShown(e,t,o){try{"undefined"!=typeof Shopify&&Shopify.analytics&&Shopify.analytics.publish&&Shopify.analytics.publish("pf_popup_storefront_shown",{send_to:"pagefly",popup_id:e,trigger_type:t,page_url:o,shop_domain:window.Shopify&&window.Shopify.shop||""})}catch(e){}}function _pf_resolveTriggers(e){var t=e.getAttribute("data-pf-popup-triggers");return t?t.split(",").map(function(e){return e.trim()}
3).filter(Boolean):(t=e.getAttribute("data-pf-popup-trigger"))?[t]:["delay"]}async function _pf_handlePopupElements(){var e=document.querySelectorAll("[data-pf-popup-element]");e.length&&e.forEach(function(o){var e,n,t,i,r,a,p,l,s,c=o.getAttribute("data-pf-popup-id")||"",d=_pf_resolveTriggers(o),f=o.getAttribute("data-pf-frequency-mode")||"always",u=parseInt(o.getAttribute("data-pf-frequency-days"))||1,_=o.getAttribute("data-pf-popup-overlay")||"",_=_pf_isValidCssColor(_)?_:"rgba(0,0,0,0.5)",h="false"!==o.getAttribute("data-pf-popup-close-overlay"),g=o.getAttribute("data-pf-popup-position")||"center",m=o.getAttribute("data-pf-popup-max-width")||"600px",y=o.getAttribute("data-pf-popup-enabled"),y=d.includes("click-only")||"false"===y;_pf_applyPopupStyles(o,_,g,m),_pf_setupCloseHandlers(o,h),window.Shopify&&window.Shopify.designMode||y||window.pfPopupStorage&&window.pfPopupStorage.isAlreadyShown(c,f)||(n=!(e=[]),t=function(){if(!(n||window.__pfPopupElementOpen||window.__pfClickActionPopupOpen)){n=!0,window.__pfPopupElementOpen=!0,i();try{var e,t=o.getAttribute("data-pf-popup-animation");if(t&&(e=o.querySelector(".pf-popup-body"))&&e.setAttribute("class","pf-popup-body pf-animated "+t),_pf_openPopup(o),_pf_trackPopupShown(c,d.join(","),window.location.href),window.pfPopupStorage)try{window.pfPopupStorage.writeFrequency(c,f,u)}catch(e){}}catch(e){n=!1,window.__pfPopupElementOpen=!1}}},i=function(){e.forEach(function(e){e()}),e=[]},d.includes("delay")&&(_=parseInt(o.getAttribute("data-pf-popup-delay"))||5,r=setTimeout(t,1e3*_),e.push(function(){clearTimeout(r)})),d.includes("scroll")&&(a=parseInt(o.getAttribute("data-pf-popup-scroll"))||50,p=function(){var e=document.documentElement.scrollHeight-window.innerHeight;e<=0||a<=window.scrollY/e*100&&t()},e.push(function(){window.removeEventListener("scroll",p)}),g=function(){var e=document.documentElement.scrollHeight-window.innerHeight;0<e&&window.scrollY/e*100>=a?t():window.addEventListener("scroll",p,{passive:!0})},"complete"===document.readyState?g():window.addEventListener("load",g,{once:!0})),d.includes("exit-intent")&&(l=!1,s=function(e){l||e.clientY<=0&&(null===e.relatedTarget||"HTML"===e.relatedTarget.nodeName)&&(l=!0,t())},document.addEventListener("mouseout",s),e.push(function(){document.removeEventListener("mouseout",s)})))})}function _pf_handlePopupElementClicks(){var e,t=document.querySelectorAll('[data-action="popup-element"][data-pf-popup-target]');t.length&&(document.getElementById("pf-popup-trigger-cursor")||((e=document.createElement("style")).id="pf-popup-trigger-cursor",e.textContent='[data-action="popup-element"]{cursor:pointer}',document.head.appendChild(e)),t.forEach(function(n){n.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();var t,e=_pf_sanitizeId(n.getAttribute("data-pf-popup-target")||"");if(e){if(!(o=document.querySelector('[data-pf-popup-id="'+e+'"]'))){var o,e=n.getAttribute("data-pf-popup-target")||"";if(!(o=document.querySelector('[data-pf-popup-id="'+e+'"]')))return}o.hasAttribute("data-pf-popup-open")||(e=function(){if(!window.__pfClickActionPopupOpen)try{window.__pfPopupElementOpen=!0,window.__pfClickActionPopupOpen=!0,_pf_openPopup(o),_pf_trackPopupShown(o.getAttribute("data-pf-popup-id")||"","click-action",window.location.href)}catch(e){window.__pfPopupElementOpen=!1,window.__pfClickActionPopupOpen=!1}},window.__pfPopupElementOpen?(t=document.querySelector("[data-pf-popup-element][data-pf-popup-open]"))?(_pf_closePopup(t),setTimeout(e,150)):(window.__pfPopupElementOpen=!1,e()):e())}})}))}function _pf_getFrequencyKey(e){return"pf-popup-freq-"+e}function _pf_shouldShowPopup(e,t,o){if(t&&"always"!==t){try{if(window.Shopify&&window.Shopify.customerPrivacy&&"function"==typeof window.Shopify.customerPrivacy.preferencesProcessingAllowed&&!1===window.Shopify.customerPrivacy.preferencesProcessingAllowed())return!0}catch(e){}try{if("session"===t)return!sessionStorage.getItem(_pf_getFrequencyKey(e));var n;if("days"===t)return!(n=localStorage.getItem(_pf_getFrequencyKey(e)))||Date.now()-parseInt(n)>864e5*(o||1)}catch(e){}}return!0}function _pf_markPopupShown(e,t){try{var o=_pf_getFrequencyKey(e);
3"session"===t&&sessionStorage.setItem(o,"1"),"days"===t&&localStorage.setItem(o,""+Date.now())}catch(e){}}async function _pf_handleScrollToSection(){var e=document.querySelectorAll("[data-to-section]");let r=_pf_getDevice();e.forEach(n=>{let i=JSON.parse(n.getAttribute("data-offset"));window.addEventListener("load",()=>{var e=n.getAttribute("data-to-section");let t=(document.querySelector(`[data-section-id=${e}]`)||document.querySelector("."+e))?.previousElementSibling;for(;t;){var o=t.querySelectorAll('img[loading="lazy"]:not([decoding])');for(let e=0;e<o.length;e++)o[e].removeAttribute("loading");t=t?.previousElementSibling}}),n.addEventListener("click",e=>{var t=i[r]?parseInt(i[r]):0;e.preventDefault(),e.stopPropagation();var e=e.currentTarget.getAttribute("data-to-section"),o="pf_accordion_offset"in window?window.pf_accordion_offset:0;e&&(e=(document.querySelector(`[data-section-id=${e}]`)||document.querySelector("."+e)).getBoundingClientRect().top-document.body.getBoundingClientRect().top,_pf_smoothScroll(e-o-t,1e3))})})}async function _pf_setupEventTracking(){(_pf_pfPageSetting.trackingIDs||_pf_pfSetting.trackingIDs||[]).forEach(e=>{let{gaEvent:t,type:o,pxEvent:n,pxCode:i,elementType:r,elementIndex:a}=e,p=`.pf-${a}_`;"ProductImage"===r&&(p+=' [data-pf-type="MasterImage"]');e=document.querySelector(p);if(!e)return console.warn("Not found element",p);(t||n||i)&&e.addEventListener("click",()=>{var e;t&&"function"==typeof window.ga&&("string"==typeof t?(window.ga("send","event",...t.split(",")),console.info("Send Ga event:: ",o,...t.split(","))):(e={hitType:"event",eventCategory:t[0]||"",eventAction:t[1]||"",eventLabel:t[2]||""},window.ga("send",e),console.info("Send Ga event:: ",o,e))),i&&"function"==typeof window.fbq&&(new Function(i)(),console.info("Send FB Pixel event:: ",o,i,n))})})}window.__pfPopupElementOpen=window.__pfPopupElementOpen||!1,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){_pf_handlePopupElements(),_pf_handlePopupElementClicks()}):(_pf_handlePopupElements(),_pf_handlePopupElementClicks());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.