if(typeof WooGC_Sync==='undefined'){var WooGC_Sync={init:function(){this.sync_done_check();this.reset();this.sync_check()},reset:function(){this.SyncHash=''},sync_check:function(){this.SyncHash=this.read_cookie('woogc_sync_run');if(this.SyncHash=='')
return!1;if(typeof WooGC_Sites==='undefined'||WooGC_Sites.length<1)
return!1;if(navigator.userAgent.match(/bot|crawl|slurp|spider|mediapartners|gtmetrix|google|yahoo|yandex|facebook|bingbot|msnbot|chrome-lighthouse|curl|Redirect\sChecker/i))
return!1;if(window.location.href.indexOf("sync-done")>-1)
return!1;this.prefetch_domains()},device_require_bounce:function(){return!0},prefetch_domains:function(){var woogc_sync_wrapper=document.getElementById('woogc_sync_wrapper');woogc_sync_wrapper.innerHTML='';this.prefetch_start=Date.now();for(var key in WooGC_Sites){var site_url=WooGC_Sites[key]+WooGC_Sync_Url+'/woogc-sync.php?prefetch=true';woogc_sync_wrapper.innerHTML=woogc_sync_wrapper.innerHTML+'
'}
setTimeout(this.prefetch_completed_check,3000);return!0},prefetch_list_update:function(element){element.classList.remove("loading");element.classList.add("loaded");this.prefetch_completed_check()},prefetch_completed_check:function(){if(Date.now()>(WooGC_Sync.prefetch_start+2999)){WooGC_Sync.sync_run();return}
var woogc_sync_wrapper=document.getElementById('woogc_sync_wrapper');var preloaders=woogc_sync_wrapper.getElementsByTagName('img');var still_loading=!1;for(var i=0;i1){var urlParams=new URLSearchParams(return_url_parts[1]);if(urlParams.toString()!='')
Return_Url=return_url_parts[0]+"?"+urlParams.toString()+'&sync-done';else Return_Url=return_url_parts[0]+'?sync-done'}else Return_Url+='?sync-done';document.cookie="woogc_return_url="+Return_Url+"; path=/; SameSite=Lax";var url_query='sync_run=true&sync_hash='+this.SyncHash;setTimeout(function(){window.open('//'+parser.host+WooGC_Sync_Url+'/sync-hub.php?'+url_query,"_self")},100)},remove_sync_cookie:function(){var Return_Url=window.location.href;var parser=document.createElement('a');parser.href=Return_Url;var domain=WooGC_sd?"."+parser.hostname:parser.hostname;document.cookie="woogc_sync_run=; path=/; domain="+domain+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;";document.cookie='woogc_sync_run=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'},read_cookie:function(cookie_name){var CookiesPairs=document.cookie.split(';');for(var i=0;i-1){window.addEventListener("load",(event)=>{const woogc_event=document.createEvent('Event');woogc_event.initEvent('woogc/sync-done',!0,!0);document.dispatchEvent(woogc_event)})}}}
WooGC_Sync.init();(function(){var origOpen=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.realSend=XMLHttpRequest.prototype.send;var newSend=function(vData){var XMLHttpRequestPostVars=(0 in arguments)?arguments[0]:"";this.addEventListener('load',function(args){var found=!1;if(typeof(this.responseURL)!=="undefined"&&this.responseURL.indexOf("?wc-ajax=")!==-1&&this.responseURL.indexOf("get_refreshed_fragments")===-1)
found=!0;if(found===!1&&XMLHttpRequestPostVars instanceof FormData){for(var pair of XMLHttpRequestPostVars.entries()){var fieldName=pair[0];var fieldValue=pair[1];if(fieldName.indexOf("add-to-cart")!==-1)
found=!0}}
if(found===!1&&WooGC_on_PostVars.length>0){for(var i=0;i0){for(var i=0;i