(()=>{var A=Object.create;var l=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames,_=Object.getOwnPropertySymbols,W=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var f=(e,o,t)=>o in e?l(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,h=(e,o)=>{for(var t in o||(o={}))u.call(o,t)&&f(e,t,o[t]);if(_)for(var t of _(o))L.call(o,t)&&f(e,t,o[t]);return e};var s=(e,o)=>()=>(e&&(o=e(e=0)),o);var P=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var R=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of T(o))!u.call(e,i)&&i!==t&&l(e,i,{get:()=>o[i],enumerable:!(r=O(o,i))||r.enumerable});return e};var U=(e,o,t)=>(t=e!=null?A(W(e)):{},R(o||!e||!e.__esModule?l(t,"default",{value:e,enumerable:!0}):t,e));var g=(e,o,t)=>new Promise((r,i)=>{var n=d=>{try{a(t.next(d))}catch(p){i(p)}},c=d=>{try{a(t.throw(d))}catch(p){i(p)}},a=d=>d.done?r(d.value):Promise.resolve(d.value).then(n,c);a((t=t.apply(e,o)).next())});var v,E=s(()=>{v="WebPixel::Render"});var m,b=s(()=>{E();m=e=>shopify.extend(v,e)});var S=s(()=>{b()});var y=s(()=>{S()});var N=P(w=>{y();var x=[],k=crypto.randomUUID(),I=!1;self.lr=self.lr||{init:()=>{}};var D=(e,o)=>{I||x.push({type:e,data:o})},z=(e,o)=>{let t=["cart_viewed","collection_viewed","product_viewed","product_added_to_cart","product_removed_from_cart","search_submitted","checkout_started","checkout_contact_info_submitted","checkout_address_info_submitted","checkout_shipping_info_submitted","payment_info_submitted","checkout_completed"],r=["advanced_dom_available","advanced_dom_changed","advanced_dom_window_resized","advanced_dom_clicked","advanced_dom_mouse_moved","advanced_dom_scrolled","advanced_dom_input_changed","advanced_dom_input_focused","advanced_dom_input_blurred"];t.forEach(i=>{e.subscribe(i,n=>{D(i,n)})}),o.location.pathname.indexOf("/checkouts/")===0&&r.forEach(i=>{e.subscribe(i,n=>{D(i,n)})})};m(({analytics:e,browser:o,init:t,settings:r})=>{r.debugMode==="true"&&console.info(`App ID: ${r.appID}`),z(e,t.context.window);let i=(n,c,a)=>g(null,null,function*(){r.debugMode==="true"&&(yield fetch(`${n}/s`,{signal:AbortSignal.timeout(2e3),method:"POST",body:JSON.stringify(h({uuid:k,sdkVersion:"shopify-app",appID:c},a))}).catch(d=>console.warn("LogRocket: Encountered error while sending telemetry",d)))});try{let n=r.additionalSettings?JSON.parse(r.additionalSettings):{},c=n.scriptHostDomain||"https://cdn.logr-in.com";c.endsWith("/")&&(c=c.slice(0,-1));let a=n.ingestDomain||"https://r.logr-in.com";a&&a.endsWith("/")&&(a=a.slice(0,-1)),i(a,r.appID,{url:t.context.window.location.href,userAgent:t.context.navigator.userAgent,cookiesEnabled:t.context.navigator.cookieEnabled,message:"Importing core SDK..."}),self.importScripts(`${c}/shopify-app-pixel.min.js`),i(a,r.appID,{message:"Loaded core SDK."}),self.lr.init(r.appID,{analytics:e,browser:o,init:t,isDebugMode:r.debugMode==="true",serverDomain:a,rootHostname:n.rootHostname,shouldSanitizeUserInput:n.sanitizeUserInput==="true",lrUuid:k},x),i(a,r.appID,{message:"Initialized SDK."})}catch(n){console.error("Failed to import scripts and initialize LogRocket:",n),i("https://r.logr-in.com",r.appID,{message:"Failed to import and initialize LogRocket",errorMessage:n.message,stack:n.stack}),I=!0}})});var Y=U(N());})();
