!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){document.querySelectorAll("wc-order-attribution-inputs").forEach((t,e)=>{e>0&&t.remove()});for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}function r(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 c(){return"undefined"!=typeof sbjs}function d(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),r(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&c()?n:i,o=c()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!c())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 i=t.getAttributionData();a(i),r(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),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 i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}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=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);
(function($){
$(function(){
var user_agent=navigator.userAgent;
var is_opera_edge;
var browser=user_agent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))/i)||[];
var browser_name='';
var browser_class='';
if(/trident/i.test(browser[0]) ){
browser_name='ie';
}else if(browser[0]==='Chrome'){
is_opera_edge=user_agent.match(/\b(OPR|Edge)/);
if(is_opera_edge!==null){
browser_name=is_opera_edge[0].replace('OPR', 'opera');
}}
if(''===browser_name){
if('standalone' in window.navigator&&!window.navigator.standalone){
browser_name='uiwebview';
}else{
browser_name=browser[0]&&''!==browser[0] ? browser[0]:navigator.appName;
}}
browser_name=browser_name.toLowerCase();
switch(browser_name){
case 'msie' :
browser_class='ie';
break;
case 'firefox' :
browser_class='gecko';
break;
default :
browser_class=browser_name;
break;
}
if(user_agent.match(/iPhone/)){
browser_class +=' iphone';
}
$('body').addClass(browser_class);
});
})(jQuery);
(t=>{if(!t)return;const{currency:e,products:o,purchase:a,add_to_cart:i,eventsToTrack:n}=globalThis._googlesitekit?.wcdata||{},c=n?.includes("add_to_cart"),r=n?.includes("purchase");if(i&&c){const{price:t}=i,o=d(t,e,i);globalThis._googlesitekit?.gtagEvent?.("add_to_cart",o)}if(a&&r){const{id:t,totals:e,items:o,user_data:i}=a,n=d(e.total_price,e.currency_code,o,t,e.shipping_total,e.tax_total);globalThis._googlesitekit?.gtagUserData&&i&&(n.user_data=i),globalThis._googlesitekit?.gtagEvent?.("purchase",n)}const s=t("body");function d(t,e,o){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;const c={value:u(t),currency:e,items:[]};if(a&&(c.transaction_id=a),"number"==typeof i&&(c.shipping=i),"number"==typeof n&&(c.tax=n),o&&o.length)for(const t of o)c.items.push(l(t));else o&&o.id&&(c.items=[l(o)]);return c}function l(t){const{id:e,name:o,price:a,variation:i,quantity:n,categories:c}=t,r={item_id:e,item_name:o,price:u(a)};if(n&&(r.quantity=n),i&&(r.item_variant=i),c&&c?.length){let t=1;for(const e of c)r[t>1?`item_category${t}`:"item_category"]=e.name,t++}return r}function u(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return parseInt(t,10)/10**e}c&&(s.on("added_to_cart",(t,a,i,n)=>{if(!n?.jquery)return;const c=parseInt(n.data("product_id"),10);if(!c)return;const r=o?.find(t=>t?.id===c)||{},{price:s}=r,l=d(s,e,r);globalThis._googlesitekit?.gtagEvent?.("add_to_cart",l)}),t(".products-block-post-template .product, .wc-block-product-template .product").each(function(){const a=t(this),i=parseInt(a.find("[data-product_id]").attr("data-product_id"),10);i&&a.on("click",a=>{const n=t(a.target).closest(".wc-block-components-product-button [data-product_id]");if(!n.length||!n.hasClass("add_to_cart_button")||n.hasClass("product_type_variable"))return;const c=o?.find(t=>t?.id===i)||{},{price:r}=c,s=d(r,e,c);globalThis._googlesitekit?.gtagEvent?.("add_to_cart",s)})}))})(globalThis.jQuery);
(function(){var statifyReq;try{statifyReq=new XMLHttpRequest();statifyReq.open('POST',statify_ajax.url,!0);statifyReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded;');statifyReq.send('_ajax_nonce='+statify_ajax.nonce+'&action=statify_track'+'&statify_referrer='+encodeURIComponent(document.referrer)+'&statify_target='+encodeURIComponent(location.pathname+location.search))}catch(e){}}());