(()=>{var e={};(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var r=globalThis.document;if(!t&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(t=r.currentScript.src),!t)){var a=r.getElementsByTagName("script");if(a.length)for(var n=a.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=a[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t})(),e.p=window.wcpayAssets.url,(()=>{"use strict";window.wp.domReady;const e=e=>"undefined"!=typeof wcpayConfig&&void 0!==wcpayConfig[e]?wcpayConfig[e]:t(e),t=e=>{let t=null;if("undefined"!=typeof wcpay_upe_config)t=wcpay_upe_config;else{if("object"!=typeof wc||void 0===wc.wcSettings)return null;t=wc.wcSettings.getSetting("woocommerce_payments_data")||{}}return t[e]||null},r=e=>"object"==typeof wcpayExpressCheckoutParams&&wcpayExpressCheckoutParams.hasOwnProperty(e)?wcpayExpressCheckoutParams[e]:null,a=(t,a={})=>{if(!1===(e("isShopperTrackingEnabled")??r("is_shopper_tracking_enabled")))return;const n=e("platformTrackerNonce")??r("nonce")?.platform_tracker,o=e("ajaxUrl")??r("ajax_url"),c=new FormData;c.append("tracksNonce",n),c.append("action","platform_tracks"),c.append("tracksEventName",t),c.append("tracksEventProp",JSON.stringify(a)),fetch(o,{method:"post",body:c}).then(e=>e.json())};if(window.wcPayFrontendTracks&&window.wcPayFrontendTracks.length){for(const e of window.wcPayFrontendTracks)a(e.event,e.properties);window.wcPayFrontendTracks=[]}})()})();