!function(){if(!window.wccomErrorConfig)return;const e=window.wccomErrorConfig;let n=0;const t=new Map,o="wccom_js_error_session";function r(){let e=sessionStorage.getItem(o);return e||(e="".concat(Date.now().toString(36),":").concat(Math.random().toString(36).slice(2,7)),sessionStorage.setItem(o,e)),e}function i(e,n){return e?e.length>n?e.substring(0,n-3)+"...":e:""}function s(e,n){if(!function(e){if(!e)return!0;if(e.startsWith("chrome-extension:")||e.startsWith("moz-extension:")||e.startsWith("safari-extension:")||e.includes("VM")||""===e||"eval"===e)return!1;let n;try{n=new URL(e,window.location.href)}catch(e){return!1}const t=window.location.hostname;return n.hostname===t}(n.filename))return null;if((t=n.message)&&[/Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'/].some((e=>e.test(t))))return null;var t;const o={t:e,m:i(n.message,200),f:i(n.filename,100),l:n.lineno||0,c:n.colno||0,s:i(n.stack,300),u:i(window.location.pathname,50),sid:r()};return navigator.userAgent&&(o.ua=i(navigator.userAgent.replace(/[^a-zA-Z0-9/.\-_]/g,""),50)),window.innerWidth&&(o.vw=window.innerWidth,o.vh=window.innerHeight),o}function a(e){const n=[];for(const t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&""!==e[t]&&n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return n.join("&")}function c(o){if(!function(o){if(n>=e.maxErrors)return!1;const r=t.get(o),i=Date.now();return!(r&&i-re.maxUrlLength){o.s=i(o.s,100);const n=a(o);s=e.endpoint+"?"+n,s.length>e.maxUrlLength&&(delete o.s,s=e.endpoint+"?"+a(o))}!function(e){try{fetch(e,{method:"GET",mode:"no-cors",keepalive:!0}).catch((function(){}))}catch(e){}}(s)}window.wccomErrorQueue&&00))return r=s.getHost(e),!0;for(var t=0;t0)for(var i=0;i0)for(var s=0;se.split(".").reduce((t,e)=>t&&t[e],t)),s=()=>null,i=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function r(){return"undefined"!=typeof sbjs}function c(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),a(t.getAttributionData())},o)}}t.getAttributionData=function(){const i=e.allowTracking&&r()?n:s,o=r()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,i(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!r())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const s=t.getAttributionData();!function(t){for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}(s),a(s)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",c):c(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const s=document.createElement("input");s.type="hidden",s.name=`${e.prefix}${n}`,s.value=i(this.values&&this.values[n]||""),t.appendChild(s)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=i(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);; // eslint-disable-next-line no-unused-vars window.addEventListener( 'load' , function ( e ) { if ( window?.wccom?.canTrackUser?.('analytics') ) { window.wc_order_attribution.setOrderTracking( true ); } } ); ; !function(r,a){function e(t,e,i){var s;void 0===i&&(i=o),(s=new Date).setTime(s.getTime()+i),i="expires="+s.toUTCString(),document.cookie=t+"="+e+"; "+i+"; path=/"}function s(t){for(var e=t+"=",i=decodeURIComponent(document.cookie).split(";"),s=0;sc-1&&this.clicks.splice(0,1),this.clicks.push(t),n.set(this.COOKIE_NAME,this.clicks.join(",")))},l),WC_PRL.cookies.recently_viewed=(_=WC_PRL.cookies.model,h=WC_PRL.params.recently_views_max_cookie_num,u.prototype.init=function(){var t;this.cookie_raw=_.get(this.COOKIE_NAME),""!==this.cookie_raw&&((t=this.cookie_raw.split(",")).length&&(this.viewed_ids=r.map(t[0].split("|"),function(t){return parseInt(t,10)}),1h&&this.viewed_ids.shift(),t=parseInt(t,10);var e=this.viewed_ids.indexOf(t);-1h&&this.viewed_cat_ids.shift(),t=parseInt(t,10);var e=this.viewed_cat_ids.indexOf(t);-1h&&this.viewed_tag_ids.shift(),t=parseInt(t,10);var e=this.viewed_tag_ids.indexOf(t);-1