// source --> https://spindoctorgolf.com/wp-content/plugins/wp-statistics/assets/js/tracker.js?ver=14.16.4 
function handleWpConsentApiIntegration(){let n=WP_Statistics_Tracker_Object.option.consentIntegration.status.consent_level,a=WP_Statistics_Tracker_Object.option.consentIntegration.status.track_anonymously;(a||"disabled"==n||wp_has_consent(n))&&(WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init()),document.addEventListener("wp_listen_for_consent_change",function(t){var e,i=t.detail;for(e in i)i.hasOwnProperty(e)&&e===n&&"allow"===i[e]&&(WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init(),a)&&WpStatisticsUserTracker.checkHitRequestConditions()})}function handleRealCookieBannerIntegration(){(window.consentApi?.consent("wp-statistics")||Promise.resolve()).then(()=>{WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init()}).catch(()=>{var t=window.consentApi?.consentSync("wp-statistics-with-data-processing");null!=t.cookie&&t.cookieOptIn?(WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init()):console.log("WP Statistics: Real Cookie Banner consent is not given to track visitor information.")})}window.WpStatisticsUserTracker||(window.WpStatisticsUserTracker={lastUrl:window.location.href,originalPushState:history.pushState,originalReplaceState:history.replaceState,isDndActive:parseInt(navigator.msDoNotTrack||window.doNotTrack||navigator.doNotTrack,10),hasTrackerInitializedOnce:!1,hasUrlChangeTrackerInitialized:!1,hitRequestSuccessful:!0,init:function(){this.hasTrackerInitializedOnce||(this.hasTrackerInitializedOnce=!0,WP_Statistics_Tracker_Object.option.isPreview)||(void 0===WP_Statistics_Tracker_Object?console.error("WP Statistics: Variable WP_Statistics_Tracker_Object not found. Ensure /wp-content/plugins/wp-statistics/assets/js/tracker.js is either excluded from cache settings or not dequeued by any plugin. Clear your cache if necessary."):this.checkHitRequestConditions(),this.trackUrlChange())},base64Encode:function(t){t=(new TextEncoder).encode(t);return btoa(String.fromCharCode.apply(null,t))},getPathAndQueryString:function(){var t=window.location.pathname,e=window.location.search;return this.base64Encode(t+e)},getReferred:function(){return this.base64Encode(document.referrer)},checkHitRequestConditions:function(){!WP_Statistics_Tracker_Object.option.dntEnabled||1!==this.isDndActive?this.sendHitRequest():console.log("WP Statistics: Do Not Track (DNT) is enabled. Hit request not sent.")},sendHitRequest:async function(){try{var t=this.getRequestUrl(),i=new URLSearchParams({...WP_Statistics_Tracker_Object.hitParams,referred:this.getReferred(),page_uri:this.getPathAndQueryString()}).toString();let e=new XMLHttpRequest;e.open("POST",t,!0),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.send(i),e.onreadystatechange=function(){var t;4===e.readyState&&(200===e.status?(t=JSON.parse(e.responseText),this.hitRequestSuccessful=!1!==t.status):(this.hitRequestSuccessful=!1,console.warn("WP Statistics: Hit request failed with status "+e.status)))}.bind(this)}catch(t){this.hitRequestSuccessful=!1,console.error("WP Statistics: Error sending hit request:",t)}},getRequestUrl:function(){let t=WP_Statistics_Tracker_Object.requestUrl+"/";return WP_Statistics_Tracker_Object.option.bypassAdBlockers?t=WP_Statistics_Tracker_Object.ajaxUrl:t+=WP_Statistics_Tracker_Object.hitParams.endpoint,t},updateTrackerObject:function(n){function a(){var t=document.getElementById("wp-statistics-tracker-js-extra");if(t)try{var e,i=t.innerHTML.match(/var\s+WP_Statistics_Tracker_Object\s*=\s*(\{[\s\S]*?\});/);i&&i[1]&&(e=JSON.parse(i[1]),!WP_Statistics_Tracker_Object.hitParams||JSON.stringify(WP_Statistics_Tracker_Object.hitParams)!==JSON.stringify(e.hitParams))?(WP_Statistics_Tracker_Object=e,!s&&n&&(s=!0,n())):++r<20?setTimeout(a,100):!s&&n&&(s=!0,n())}catch(t){console.error("WP Statistics: Error parsing WP_Statistics_Tracker_Object",t),!s&&n&&(s=!0,n())}else++r<20?setTimeout(a,100):!s&&n&&(s=!0,n())}let s=!1,r=0;setTimeout(a,50)},trackUrlChange:function(){if(!this.hasUrlChangeTrackerInitialized){this.hasUrlChangeTrackerInitialized=!0;let t=this;window.removeEventListener("popstate",t.handleUrlChange),history.pushState=function(){t.originalPushState.apply(history,arguments),t.handleUrlChange()},history.replaceState=function(){t.originalReplaceState.apply(history,arguments),t.handleUrlChange()},window.addEventListener("popstate",function(){t.handleUrlChange()})}},handleUrlChange:function(){let t=this;window.location.href!==this.lastUrl&&(this.lastUrl=window.location.href,this.updateTrackerObject(function(){t.checkHitRequestConditions()}))}}),window.WpStatisticsEventTracker||(window.WpStatisticsEventTracker={hasEventsInitializedOnce:!1,downloadTracker:!1,linkTracker:!1,init:async function(){this.hasEventsInitializedOnce||WP_Statistics_Tracker_Object.isLegacyEventLoaded||(this.hasEventsInitializedOnce=!0,"undefined"!=typeof WP_Statistics_DataPlus_Event_Object&&(this.downloadTracker=WP_Statistics_DataPlus_Event_Object.options.downloadTracker,this.linkTracker=WP_Statistics_DataPlus_Event_Object.options.linkTracker,this.downloadTracker||this.linkTracker)&&this.captureEvent(),window.wp_statistics_event=this.handleCustomEvent.bind(this),"undefined"!=typeof WP_Statistics_Marketing_Event_Object&&this.captureCustomClickEvents())},handleCustomEvent:function(t,e={}){var i=WP_Statistics_Tracker_Object.customEventAjaxUrl,t=(e.timestamp=Date.now(),e.resource_id||(e.resource_id=WP_Statistics_Tracker_Object.hitParams.source_id),{event_name:t,event_data:JSON.stringify(e)});this.sendEventData(t,i)},captureCustomClickEvents:function(){WP_Statistics_Marketing_Event_Object.events.clicks.forEach(e=>{!e.selector||null!=e.scope&&e.scope!=WP_Statistics_Tracker_Object.hitParams.source_id||document.querySelectorAll(""+e.selector).forEach(t=>{t.addEventListener("click",t=>{t={text:t.target.textContent,id:t.currentTarget.id,class:t.currentTarget.className,target:t.currentTarget.href};this.handleCustomEvent(e.name,t)})})})},captureEvent:function(){document.querySelectorAll("a").forEach(t=>{t.addEventListener("click",async t=>this.handleEvent(t)),t.addEventListener("mouseup",async t=>this.handleEvent(t))})},handleEvent:async function(t){var e;"mouseup"==t.type&&1!=t.button||(t=this.prepareEventData(t))&&(e=WP_Statistics_DataPlus_Event_Object.eventAjaxUrl,await this.sendEventData(t,e))},prepareEventData:function(t){let e={en:t.type,et:Date.now(),eid:t.currentTarget.id,ec:t.currentTarget.className,ev:"",mb:t.button,fn:"",fx:"",m:"",tu:"",pid:""};return"A"===t.currentTarget.tagName&&(e=this.extractLinkData(t,e)),"undefined"!=typeof WP_Statistics_Tracker_Object&&(e.pid=WP_Statistics_Tracker_Object.hitParams.source_id),e},extractLinkData(t,e){var i=t.target.textContent,n=t.currentTarget.href,a=WP_Statistics_DataPlus_Event_Object.fileExtensions,a=new RegExp("\\.("+a.join("|")+")$","i"),i=(i&&(e.ev=i),n&&(e.tu=n),t.currentTarget.classList.contains("woocommerce-MyAccount-downloads-file")||n.includes("download_file="));if(e.wcdl=i,(a.test(n)||i)&&(t=new URL(n).pathname,e.df=i?n.substring(n.lastIndexOf("download_file=")+14).split("&").shift():"",e.dk=i?n.substring(n.lastIndexOf("key=")+4).split("&").shift():"",e.en="file_download",e.fn=i?e.df:t.substring(t.lastIndexOf("/")+1).split(".").shift(),e.fx=i?e.df:t.split(".").pop()),"click"===e.en){if(!this.linkTracker)return!1;try{if(new URL(n).host===window.location.host)return!1}catch(t){}}return!("file_download"===e.en&&!this.downloadTracker)&&e},sendEventData:async function(t,e){var i,n=new URLSearchParams;for(i in t)n.append(i,t[i]);if(!e)throw new Error("AJAX URL is not defined.");try{(await fetch(e,{method:"POST",keepalive:!0,body:n})).ok}catch(t){console.error("Error:",t)}}}),document.addEventListener("DOMContentLoaded",function(){var t=WP_Statistics_Tracker_Object.option.consentIntegration.name;t&&"borlabs_cookie"!==t||(WpStatisticsUserTracker.init(),WpStatisticsEventTracker.init()),"wp_consent_api"===t&&handleWpConsentApiIntegration(),"real_cookie_banner"===t&&handleRealCookieBannerIntegration()});
// source --> https://spindoctorgolf.com/wp-content/themes/storefront/assets/js/woocommerce/header-cart.min.js?ver=4.6.2 
document.body.classList.contains("woocommerce-cart")||document.body.classList.contains("woocommerce-checkout")||window.innerWidth<768||!document.getElementById("site-header-cart")||window.addEventListener("load",function(){document.querySelector(".site-header-cart").addEventListener("mouseover",function(){var e=window.outerHeight,t=this.querySelector(".widget_shopping_cart_content").getBoundingClientRect().bottom+this.offsetHeight,o=this.querySelector(".cart_list");e<t&&(o.style.maxHeight="15em",o.style.overflowY="auto")})});
// source --> https://spindoctorgolf.com/wp-content/themes/storefront/assets/js/footer.min.js?ver=4.6.2 
document.addEventListener("DOMContentLoaded",function(){if(0!==document.getElementsByClassName("storefront-handheld-footer-bar").length){[].forEach.call(document.querySelectorAll(".storefront-handheld-footer-bar .search > a"),function(t){t.addEventListener("click",function(e){t.parentElement.classList.toggle("active"),e.preventDefault()})});var t=document.getElementsByClassName("storefront-handheld-footer-bar"),n=document.forms,o=function(t){return function(e){t&&-1!==e.target.tabIndex?document.body.classList.add("sf-input-focused"):document.body.classList.remove("sf-input-focused")}};if(t.length&&n.length)for(let e=0;e<n.length;e++)t[0].contains(n[e])||(n[e].addEventListener("focus",o(!0),!0),n[e].addEventListener("blur",o(!1),!0))}});
// source --> https://spindoctorgolf.com/wp-content/plugins/wp-smushit/app/assets/js/smush-lazy-load.min.js?ver=3.20.0 
!function(){var e={4885:function(e,t,n){"use strict";n.r(t);var i=n(7857);document.addEventListener("lazybeforeunveil",function(e){var t;(0,i.G)(null==e||null===(t=e.detail)||void 0===t?void 0:t.instance)&&function(e){var t=e.getAttribute("data-bg-image")||e.getAttribute("data-bg"),n=e.hasAttribute("data-bg-image")?"background-image":"background";if(t){var i,o=e.getAttribute("style")||"",a="".concat(n,": ").concat(t,";"),r=new RegExp("".concat(n,"\\s*:\\s*[^;]+;?"));i=r.test(o)?o.replace(r,a):o.length>0?o.replace(/;$/g,"")+";"+a:a,e.setAttribute("style",i.trim())}}(e.target)})},5651:function(e,t,n){"use strict";n.r(t);var i,o,a,r,s,l=n(7857);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}o="smush-lazyloaded-video",a="ontouchstart"in window?"touchstart":"pointerdown",r=(null===(i=window)||void 0===i?void 0:i.smush_video_render_delay)||0,s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldDelayVideoRenderingForMobile=this.supportsIntersectionObserver(),this.queuedVideoElements=[],this.isMobileOrSafari=null,this.init()},t=[{key:"init",value:function(){var e=this;document.addEventListener("lazybeforeunveil",function(t){return e.handleVideoLazyLoad(t)}),document.addEventListener(a,function(){return e.enableVideoRenderingForMobile()},{once:!0,passive:!0}),document.addEventListener("DOMContentLoaded",function(){!r||r<0||setTimeout(function(){return e.enableVideoRenderingForMobile()},r)})}},{key:"handleVideoLazyLoad",value:function(e){var t,n=e.target;(0,l.G)(null==e||null===(t=e.detail)||void 0===t?void 0:t.instance)&&n.classList.contains("smush-lazyload-video")&&(this.handleButtonPlay(n),this.maybePrepareVideoForPlay(n))}},{key:"handleButtonPlay",value:function(e){var t=this,n=e.querySelector(".".concat("smush-play-btn"));if(n){var i=function(){return t.loadIframeVideoWithAutoPlay(e)};n.addEventListener("click",i),n.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i())})}else{var o;this.loadIframeVideo(e),null===(o=window.console)||void 0===o||o.warning("Missing play button [.smush-play-btn] for video element:",e)}}},{key:"maybePrepareVideoForPlay",value:function(e){var t=e.classList.contains("smush-lazyload-autoplay");this.shouldPrepareIframeForPlay()?this.maybePrepareVideoForMobileAndSafari(e,t):t&&this.loadIframeVideoWithAutoPlay(e)}},{key:"enableVideoRenderingForMobile",value:function(){this.shouldDelayVideoRenderingForMobile&&(this.shouldDelayVideoRenderingForMobile=!1,this.maybeObserveQueuedVideoElements())}},{key:"supportsIntersectionObserver",value:function(){return"IntersectionObserver"in window}},{key:"maybeObserveQueuedVideoElements",value:function(){this.queuedVideoElements.length&&this.observeQueuedVideoElements()}},{key:"observeQueuedVideoElements",value:function(){var e=this,t=new IntersectionObserver(function(n){n.forEach(function(n){if(n.isIntersecting){var i=n.target;e.loadIframeVideo(i),t.unobserve(i)}})},{rootMargin:"0px 0px 200px 0px",threshold:.1});this.queuedVideoElements.forEach(function(e){t.observe(e)})}},{key:"maybePrepareVideoForMobileAndSafari",value:function(e,t){this.shouldDelayVideoRenderingForMobile?this.queuedVideoElements.push(e):this.loadIframeVideo(e,t)}},{key:"shouldPrepareIframeForPlay",value:function(){return null===this.isMobileOrSafari&&(this.isMobileOrSafari=this.checkIfMobileOrSafari()),this.isMobileOrSafari}},{key:"checkIfMobileOrSafari",value:function(){var e=navigator.userAgent;return e.includes("Mobi")||e.includes("Safari")&&!e.includes("Chrome")}},{key:"loadIframeVideo",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.classList.contains(o)){e.classList.add(o,"loading");var i=e.querySelector("iframe");if(i){var a=null===(t=i.dataset)||void 0===t?void 0:t.src;if(a){if(n){var r=new URL(a);r.searchParams.set("autoplay","1"),r.searchParams.set("playsinline","1"),a=r.toString()}var s=i.getAttribute("allow")||"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture";s.includes("autoplay")||(s+="; autoplay"),i.setAttribute("allow",s),i.setAttribute("allowFullscreen","true"),i.setAttribute("src",a),e.classList.remove("loading")}else{var l;null===(l=window.console)||void 0===l||l.error("Missing data-src attribute for iframe:",i)}}else{var u;null===(u=window.console)||void 0===u||u.error("Missing iframe element in video wrapper:",e)}}}},{key:"loadIframeVideoWithAutoPlay",value:function(e){this.loadIframeVideo(e,!0)}}],t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),new s},6879:function(e){!function(t){var n=function(e,t,n){"use strict";var i,o;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in o=e.lazySizesConfig||e.lazysizesConfig||{},n)t in o||(o[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var a=t.documentElement,r=e.HTMLPictureElement,s="addEventListener",l="getAttribute",u=e[s].bind(e),d=e.setTimeout,c=e.requestAnimationFrame||d,f=e.requestIdleCallback,v=/^picture$/i,y=["load","error","lazyincluded","_lazyloaded"],m={},h=Array.prototype.forEach,b=function(e,t){return m[t]||(m[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),m[t].test(e[l]("class")||"")&&m[t]},p=function(e,t){b(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},g=function(e,t){var n;(n=b(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(n," "))},z=function(e,t,n){var i=n?s:"removeEventListener";n&&z(e,t),y.forEach(function(n){e[i](n,t)})},w=function(e,n,o,a,r){var s=t.createEvent("Event");return o||(o={}),o.instance=i,s.initEvent(n,!a,!r),s.detail=o,e.dispatchEvent(s),s},C=function(t,n){var i;!r&&(i=e.picturefill||o.pf)?(n&&n.src&&!t[l]("srcset")&&t.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},E=function(e,t){return(getComputedStyle(e,null)||{})[t]},A=function(e,t,n){for(n=n||e.offsetWidth;n<o.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},M=(pe=[],ge=[],ze=pe,we=function(){var e=ze;for(ze=pe.length?ge:pe,he=!0,be=!1;e.length;)e.shift()();he=!1},Ce=function(e,n){he&&!n?e.apply(this,arguments):(ze.push(e),be||(be=!0,(t.hidden?d:c)(we)))},Ce._lsFlush=we,Ce),S=function(e,t){return t?function(){M(e)}:function(){var t=this,n=arguments;M(function(){e.apply(t,n)})}},L=function(e){var t,i=0,a=o.throttleDelay,r=o.ricTimeout,s=function(){t=!1,i=n.now(),e()},l=f&&r>49?function(){f(s,{timeout:r}),r!==o.ricTimeout&&(r=o.ricTimeout)}:S(function(){d(s)},!0);return function(e){var o;(e=!0===e)&&(r=33),t||(t=!0,(o=a-(n.now()-i))<0&&(o=0),e||o<9?l():d(l,o))}},P=function(e){var t,i,o=99,a=function(){t=null,e()},r=function(){var e=n.now()-i;e<o?d(r,o-e):(f||a)(a)};return function(){i=n.now(),t||(t=d(r,o))}},V=(U=/^img$/i,J=/^iframe$/i,K="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),X=0,Y=0,Z=0,ee=-1,te=function(e){Z--,(!e||Z<0||!e.target)&&(Z=0)},ne=function(e){return null==G&&(G="hidden"==E(t.body,"visibility")),G||!("hidden"==E(e.parentNode,"visibility")&&"hidden"==E(e,"visibility"))},ie=function(e,n){var i,o=e,r=ne(e);for(j-=n,Q+=n,$-=n,H+=n;r&&(o=o.offsetParent)&&o!=t.body&&o!=a;)(r=(E(o,"opacity")||1)>0)&&"visible"!=E(o,"overflow")&&(i=o.getBoundingClientRect(),r=H>i.left&&$<i.right&&Q>i.top-1&&j<i.bottom+1);return r},oe=function(){var e,n,r,s,u,d,c,f,v,y,m,h,b=i.elements;if((W=o.loadMode)&&Z<8&&(e=b.length)){for(n=0,ee++;n<e;n++)if(b[n]&&!b[n]._lazyRace)if(!K||i.prematureUnveil&&i.prematureUnveil(b[n]))fe(b[n]);else if((f=b[n][l]("data-expand"))&&(d=1*f)||(d=Y),y||(y=!o.expand||o.expand<1?a.clientHeight>500&&a.clientWidth>500?500:370:o.expand,i._defEx=y,m=y*o.expFactor,h=o.hFac,G=null,Y<m&&Z<1&&ee>2&&W>2&&!t.hidden?(Y=m,ee=0):Y=W>1&&ee>1&&Z<6?y:X),v!==d&&(B=innerWidth+d*h,q=innerHeight+d,c=-1*d,v=d),r=b[n].getBoundingClientRect(),(Q=r.bottom)>=c&&(j=r.top)<=q&&(H=r.right)>=c*h&&($=r.left)<=B&&(Q||H||$||j)&&(o.loadHidden||ne(b[n]))&&(R&&Z<3&&!f&&(W<3||ee<4)||ie(b[n],d))){if(fe(b[n]),u=!0,Z>9)break}else!u&&R&&!s&&Z<4&&ee<4&&W>2&&(N[0]||o.preloadAfterLoad)&&(N[0]||!f&&(Q||H||$||j||"auto"!=b[n][l](o.sizesAttr)))&&(s=N[0]||b[n]);s&&!u&&fe(s)}},ae=L(oe),re=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),p(t,o.loadedClass),g(t,o.loadingClass),z(t,le),w(t,"lazyloaded"))},se=S(re),le=function(e){se({target:e.target})},ue=function(e,t){var n=e.getAttribute("data-load-mode")||o.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},de=function(e){var t,n=e[l](o.srcsetAttr);(t=o.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},ce=S(function(e,t,n,i,a){var r,s,u,c,f,y;(f=w(e,"lazybeforeunveil",t)).defaultPrevented||(i&&(n?p(e,o.autosizesClass):e.setAttribute("sizes",i)),s=e[l](o.srcsetAttr),r=e[l](o.srcAttr),a&&(c=(u=e.parentNode)&&v.test(u.nodeName||"")),y=t.firesLoad||"src"in e&&(s||r||c),f={target:e},p(e,o.loadingClass),y&&(clearTimeout(T),T=d(te,2500),z(e,le,!0)),c&&h.call(u.getElementsByTagName("source"),de),s?e.setAttribute("srcset",s):r&&!c&&(J.test(e.nodeName)?ue(e,r):e.src=r),a&&(s||c)&&C(e,{src:r})),e._lazyRace&&delete e._lazyRace,g(e,o.lazyClass),M(function(){var t=e.complete&&e.naturalWidth>1;y&&!t||(t&&p(e,o.fastLoadedClass),re(f),e._lazyCache=!0,d(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&Z--},!0)}),fe=function(e){if(!e._lazyRace){var t,n=U.test(e.nodeName),i=n&&(e[l](o.sizesAttr)||e[l]("sizes")),a="auto"==i;(!a&&R||!n||!e[l]("src")&&!e.srcset||e.complete||b(e,o.errorClass)||!b(e,o.lazyClass))&&(t=w(e,"lazyunveilread").detail,a&&_.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Z++,ce(e,t,a,i,n))}},ve=P(function(){o.loadMode=3,ae()}),ye=function(){3==o.loadMode&&(o.loadMode=2),ve()},me=function(){R||(n.now()-D<999?d(me,999):(R=!0,o.loadMode=3,ae(),u("scroll",ye,!0)))},{_:function(){D=n.now(),i.elements=t.getElementsByClassName(o.lazyClass),N=t.getElementsByClassName(o.lazyClass+" "+o.preloadClass),u("scroll",ae,!0),u("resize",ae,!0),u("pageshow",function(e){if(e.persisted){var n=t.querySelectorAll("."+o.loadingClass);n.length&&n.forEach&&c(function(){n.forEach(function(e){e.complete&&fe(e)})})}}),e.MutationObserver?new MutationObserver(ae).observe(a,{childList:!0,subtree:!0,attributes:!0}):(a[s]("DOMNodeInserted",ae,!0),a[s]("DOMAttrModified",ae,!0),setInterval(ae,999)),u("hashchange",ae,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t[s](e,ae,!0)}),/d$|^c/.test(t.readyState)?me():(u("load",me),t[s]("DOMContentLoaded",ae),d(me,2e4)),i.elements.length?(oe(),M._lsFlush()):ae()},checkElems:ae,unveil:fe,_aLSL:ye}),_=(F=S(function(e,t,n,i){var o,a,r;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),v.test(t.nodeName||""))for(a=0,r=(o=t.getElementsByTagName("source")).length;a<r;a++)o[a].setAttribute("sizes",i);n.detail.dataAttr||C(e,n.detail)}),x=function(e,t,n){var i,o=e.parentNode;o&&(n=A(e,o,n),(i=w(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=i.detail.width)&&n!==e._lazysizesWidth&&F(e,o,i,n))},I=P(function(){var e,t=O.length;if(t)for(e=0;e<t;e++)x(O[e])}),{_:function(){O=t.getElementsByClassName(o.autosizesClass),u("resize",I)},checkElems:I,updateElem:x}),k=function(){!k.i&&t.getElementsByClassName&&(k.i=!0,_._(),V._())};var O,F,x,I;var N,R,T,W,D,B,q,j,$,H,Q,G,U,J,K,X,Y,Z,ee,te,ne,ie,oe,ae,re,se,le,ue,de,ce,fe,ve,ye,me;var he,be,pe,ge,ze,we,Ce;return d(function(){o.init&&k()}),i={cfg:o,autoSizer:_,loader:V,init:k,uP:C,aC:p,rC:g,hC:b,fire:w,gW:A,rAF:M}}(t,t.document,Date);t.lazySizes=n,e.exports&&(e.exports=n)}("undefined"!=typeof window?window:{})},7857:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var i=n(6879),o=n.n(i),a=function(e){return e===o()||JSON.stringify((null==e?void 0:e.cfg)||{})===JSON.stringify((null===o()||void 0===o()?void 0:o().cfg)||{})};t.A=o()}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=window.lazySizesConfig||null;e&&delete window.lazySizesConfig;var t=n(7857);n(4885),n(5651),t.A.init(),e?window.lazySizesConfig=e:"lazySizesConfig"in window&&delete window.lazySizesConfig}()}();
//# sourceMappingURL=smush-lazy-load.min.js.map;
// source --> https://spindoctorgolf.com/wp-content/themes/storefront/assets/js/woocommerce/extensions/brands.min.js?ver=4.6.2 
document.addEventListener("DOMContentLoaded",function(){let i=document.getElementsByClassName("brands_index");if(i.length){let n=document.body.classList.contains("admin-bar")?32:0,t=document.getElementById("brands_a_z").scrollHeight,e=i[0].scrollHeight+40,d=function(){768<window.innerWidth&&i[0].getBoundingClientRect().top<0?i[0].style.paddingTop=Math.min(Math.abs(i[0].getBoundingClientRect().top)+20+n,t-e)+"px":i[0].style.paddingTop=0};d(),window.addEventListener("scroll",function(){d()})}});