!function(){var e={1644:function(e,t){"use strict";function n(e,t,n){try{var i;r({error:e,context:t,shopId:o()||(null===(i=window.Shopify)||void 0===i?void 0:i.shop),notes:n})}catch(e){}}function o(){try{const e=document.getElementById("shopify-features").textContent;return JSON.parse(e).shopId}catch(e){return null}}function r(e){const t=new XMLHttpRequest;t.open("POST","https://notify.bugsnag.com/",!0),t.setRequestHeader("Content-Type","application/json"),t.setRequestHeader("Bugsnag-Api-Key","95ba910bcec4542ef2a0b64cd7ca666c"),t.setRequestHeader("Bugsnag-Payload-Version","5");const n=function(e){const t=(n=e.error).stackTrace||n.stack||n.description||n.name;var n;const[o,r]=(t||"unknown error").split("\n")[0].split(":");return JSON.stringify({payloadVersion:5,notifier:{name:"ConsentTrackingAPI",version:"latest",url:"-"},events:[{exceptions:[{errorClass:(o||"").trim(),message:(r||"").trim(),stacktrace:[{file:"consent-tracking-api.js",lineNumber:"1",method:t}],type:"browserjs"}],context:e.context||"general",app:{id:"ConsentTrackingAPI",version:"latest"},metaData:{request:{shopId:e.shopId,shopUrl:window.location.href},device:{userAgent:window.navigator.userAgent},"Additional Notes":e.notes},unhandled:!1}]})}(e);t.send(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.reportError=n,t.sendBugsnagXhr=r,t.withBugsnag=function(e){return(...t)=>{try{return e(...t)}catch(e){throw n(e),e}}}},3108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7249),r=n(809);const i="_cmp_a";function a(){return r.readCookie(i)}function s(e){const t=a();if(!t)return!0;const n=t.purposes[e];return"boolean"!=typeof n||n}t.CMP_ANSWERS_COOKIE_NAME=i,t.analyticsProcessingAllowed=function(){return s(o.DataProcessingPurpose.ANALYTICS)},t.marketingProcessingAllowed=function(){return s(o.DataProcessingPurpose.MARKETING)},t.preferencesProcessingAllowed=function(){return s(o.DataProcessingPurpose.PREFERENCES)},t.saleOfDataAllowed=function(){return s(o.DataProcessingPurpose.SALE_OF_DATA)},t.saleOfDataRegion=function(){const e=a();return e&&e.sale_of_data_region||!1},t.shouldShowBanner=function(){const e=a();return!!e&&"boolean"==typeof e.display_banner&&e.display_banner}},1148:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5730),r=n(3108),i=n(7249),a=n(5732),s=n(1644);function c(){return o.haveMarketingConsent()}function u(){return o.haveSaleOfDataConsent()}function d(){const e={},t=a.getCMPConsentValues();for(const n of Object.keys(t))e[a.transformKeyToDisplayName(n)]=a.transformConsentToDisplaySchema(t[n]);return e}function p(e,t){return"object"==typeof e&&e.headlessStorefront&&!e.storefrontAccessToken?(console.warn("Headless consent has been updated. Please read shopify.dev/docs/api/customer-privacy to integrate."),a.setStorefrontApiTrackingConsent(e,t||(()=>{}))):o.setTrackingConsent(e,t)}t.analyticsProcessingAllowed=function(){return o.haveAnalyticsConsent()},t.currentVisitorConsent=d,t.marketingAllowed=c,t.preferencesProcessingAllowed=function(){return o.havePreferencesConsent()},t.saleOfDataAllowed=u,t.setTrackingConsent=p,t.shopifyConsentAPI=function(e={useBugsnagReporting:!1}){return(({useBugsnagReporting:e})=>{a.getCCPAConsentValue()!=i.ConsentValues.DECLINED&&!1===o.GPCSignal()&&o.setCCPAConsent(!1,(()=>!1));const t={getTrackingConsent:o.getTrackingConsent,setTrackingConsent:p,userCanBeTracked:o.userCanBeTracked,getRegulation:o.getRegulation,isRegulationEnforced:o.isRegulationEnforced,getShopPrefs:o.getShopPrefs,shouldShowGDPRBanner:o.shouldShowGDPRBanner,userDataCanBeSold:o.userDataCanBeSold,setCCPAConsent:o.setCCPAConsent,getCCPAConsent:o.getCCPAConsent,shouldShowCCPABanner:o.shouldShowCCPABanner,doesMerchantSupportGranularConsent:o.doesMerchantSupportGranularConsent,analyticsProcessingAllowed:r.analyticsProcessingAllowed,preferencesProcessingAllowed:r.preferencesProcessingAllowed,marketingAllowed:c,firstPartyMarketingAllowed:c,saleOfDataAllowed:u,thirdPartyMarketingAllowed:u,currentVisitorConsent:d,shouldShowBanner:r.shouldShowBanner,saleOfDataRegion:r.saleOfDataRegion,getRegion:o.getRegion,getTrackingConsentMetafield:o.getTrackingConsentMetafield,unstable:{analyticsProcessingAllowed:r.analyticsProcessingAllowed,preferencesProcessingAllowed:r.preferencesProcessingAllowed,marketingAllowed:c,saleOfDataAllowed:u,currentVisitorConsent:d,shouldShowBanner:r.shouldShowBanner,saleOfDataRegion:r.saleOfDataRegion}};if(!e)return t;const n=["unstable"];for(const e in t)t.hasOwnProperty(e)&&(t[e]=n.includes(e)?t[e]:s.withBugsnag(t[e]));return t})(e)},t.urlConsentParam=function(){const e=d();return`__cmpecs=${Object.entries(e).map((([e,t])=>[a.transformDisplayNameToKey(e),a.transformDisplaySchemaToConsent(t)])).filter((e=>e[1]!=i.ConsentValues.NO_VALUE)).map((e=>e.join(""))).join("")}`}},5732:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7249),r=n(809);const i="_tracking_consent";function a(){const e=r.readCookie(i);if(void 0!==e&&!function(e){var t;return e.v!==o.CookieVersion||(null==e||null===(t=e.con)||void 0===t||!t.CMP)}(e))return e}function s(){try{let e=a();if(!e)return;return e}catch{return}}function c(){return{m:d(o.ConsentKeys.MARKETING),a:d(o.ConsentKeys.ANALYTICS),p:d(o.ConsentKeys.PREFERENCES),s:d(o.ConsentKeys.SALE_OF_DATA)}}function u(e=null){return null===e&&(e=s()),void 0===e}function d(e){const t=s();if(!t)return o.ConsentValues.NO_VALUE;const n=t.con.CMP;return n?n[e]:o.ConsentValues.NO_VALUE}t.CONSENT_COOKIE_NAME=i,t.getCCPAConsentValue=function(){return c()[o.ConsentKeys.SALE_OF_DATA]},t.getCMPConsentValues=c,t.getCustomValue=function(e){const t=s();if(u(t)||!t.cus)return;const n=t.cus[encodeURIComponent(e)];return n?decodeURIComponent(n):n},t.getCustomValues=function(){const e=s();if(!u(e)&&e.cus)return Object.entries(e.cus).map((([e,t])=>({key:decodeURIComponent(e),value:decodeURIComponent(t)})))},t.getRegionValue=function(){const e=s();return u(e)?"":e.region||""},t.getSignal=d,t.readCookieAndTransform=s,t.setStorefrontApiTrackingConsent=function(e,t){function n(e,t=o.ConsentValues.NO_VALUE){return!0===e?o.ConsentValues.ACCEPTED:!1===e?o.ConsentValues.DECLINED:t}const a={[o.ConsentKeys.ANALYTICS]:n(e[o.ConsentDisplayKeys.ANALYTICS],o.ConsentValues.DECLINED),[o.ConsentKeys.MARKETING]:n(e[o.ConsentDisplayKeys.MARKETING],o.ConsentValues.DECLINED),[o.ConsentKeys.PREFERENCES]:n(e[o.ConsentDisplayKeys.PREFERENCES],o.ConsentValues.DECLINED),[o.ConsentKeys.SALE_OF_DATA]:n(e[o.ConsentDisplayKeys.SALE_OF_DATA])},s={v:o.CookieVersion,reg:"",con:{CMP:a}},c=encodeURIComponent(JSON.stringify(s));return r.writeCookie(i,e.rootDomain,31536e6,c),t(null),new Promise(((e,t)=>{}))},t.transformConsentToDisplaySchema=function(e){switch(e){case o.ConsentValues.ACCEPTED:return o.DisplayConsentValues.ACCEPTED;case o.ConsentValues.DECLINED:return o.DisplayConsentValues.DECLINED;default:return o.DisplayConsentValues.NO_VALUE}},t.transformDisplayNameToKey=function(e){switch(e){case o.ConsentDisplayKeys.ANALYTICS:return o.ConsentKeys.ANALYTICS;case o.ConsentDisplayKeys.MARKETING:return o.ConsentKeys.MARKETING;case o.ConsentDisplayKeys.PREFERENCES:return o.ConsentKeys.PREFERENCES;case o.ConsentDisplayKeys.SALE_OF_DATA:return o.ConsentKeys.SALE_OF_DATA}},t.transformDisplaySchemaToConsent=function(e){switch(e){case o.DisplayConsentValues.ACCEPTED:return o.ConsentValues.ACCEPTED;case o.DisplayConsentValues.DECLINED:return o.ConsentValues.DECLINED;default:return o.ConsentValues.NO_VALUE}},t.transformKeyToDisplayName=function(e){switch(e){case o.ConsentKeys.ANALYTICS:return o.ConsentDisplayKeys.ANALYTICS;case o.ConsentKeys.MARKETING:return o.ConsentDisplayKeys.MARKETING;case o.ConsentKeys.PREFERENCES:return o.ConsentDisplayKeys.PREFERENCES;case o.ConsentKeys.SALE_OF_DATA:return o.ConsentDisplayKeys.SALE_OF_DATA}},t.validCookieDoesNotExist=u},5730:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7249),r=n(5732),i=n(3108),a=n(8680);function s(){if(r.validCookieDoesNotExist())return o.DisplayConsentValues.NO_VALUE;const e=r.getCMPConsentValues();return e[o.ConsentKeys.MARKETING]===o.ConsentValues.ACCEPTED&&e[o.ConsentKeys.ANALYTICS]===o.ConsentValues.ACCEPTED?o.DisplayConsentValues.ACCEPTED:e[o.ConsentKeys.MARKETING]===o.ConsentValues.DECLINED||e[o.ConsentKeys.ANALYTICS]===o.ConsentValues.DECLINED?o.DisplayConsentValues.DECLINED:o.DisplayConsentValues.NO_INTERACTION}function c(e){return e?u()?window.location.pathname+window.location.search:"/":null}function u(){if(""===document.referrer)return!0;const e=document.createElement("a");return e.href=document.referrer,window.location.hostname!=e.hostname}function d(){return i.marketingProcessingAllowed()&&i.analyticsProcessingAllowed()}function p(){return i.saleOfDataRegion()?"string"==typeof navigator.globalPrivacyControl?"1"!==navigator.globalPrivacyControl:"boolean"==typeof navigator.globalPrivacyControl?!navigator.globalPrivacyControl:null:null}function l(){return!1===p()?o.DisplayConsentValues.DECLINED:(e=r.getCCPAConsentValue(),r.validCookieDoesNotExist()?o.DisplayConsentValues.NO_VALUE:e===o.ConsentValues.NO_VALUE?o.DisplayConsentValues.NO_INTERACTION:r.transformConsentToDisplaySchema(e));var e}t.saleOfDataRegion=i.saleOfDataRegion,t.GPCSignal=p,t.doesMerchantSupportGranularConsent=function(){return!0},t.getCCPAConsent=l,t.getLandingPageData=c,t.getRegion=function(){return r.getRegionValue()},t.getRegulation=function(){console.warn("getRegulation is deprecated and will be removed.");const e=r.getRegionValue();return""===e?"":["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IE","IT","LV","LI","LT","LU","MT","NL","NO","PL","PT","RO","SI","SK","ES","SE","GB"].includes(e.slice(0,2))?"GDPR":"US"===e.slice(0,2)&&["CA","VA"].includes(e.slice(2,4))?"CCPA":""},t.getShopPrefs=function(){return console.warn("getShopPrefs is deprecated and will be removed."),{limit:[]}},t.getTrackingConsent=s,t.getTrackingConsentMetafield=function(e){return r.getCustomValue(e)},t.getTrackingConsentMetafields=function(){return r.getCustomValues()},t.hasConsentForGDPR=d,t.haveAnalyticsConsent=function(){return i.analyticsProcessingAllowed()},t.haveMarketingConsent=function(){return i.marketingProcessingAllowed()},t.havePreferencesConsent=function(){return i.preferencesProcessingAllowed()},t.haveSaleOfDataConsent=function(){return i.saleOfDataAllowed()},t.isBuyerOnFirstPageOfVisit=u,t.isRegulationEnforced=function(){return console.warn("isRegulationEnforced is deprecated and will be removed."),!0},t.setCCPAConsent=function(e,t){if(console.warn("This method is deprecated. Please read shopify.dev/docs/api/customer-privacy for the latest information."),"boolean"!=typeof e)throw TypeError("setCCPAConsent must be called with a boolean consent value");if("function"!=typeof t)throw TypeError("setCCPAConsent must be called with a callback function");return a.storefrontApiUpdateTrackingConsent({granular_consent:{sale_of_data:e}},t)},t.setTrackingConsent=function(e,t){if(function(e){if("boolean"!=typeof e&&"object"!=typeof e)throw TypeError("setTrackingConsent must be called with a boolean or object consent value");if("object"==typeof e){const t=Object.keys(e);if(0===t.length)throw TypeError("The submitted consent object is empty.");const n=[o.ConsentDisplayKeys.MARKETING,o.ConsentDisplayKeys.ANALYTICS,o.ConsentDisplayKeys.PREFERENCES,o.ConsentDisplayKeys.SALE_OF_DATA,o.ConsentDisplayKeys.EMAIL,o.StorefrontApiConsentMetadata.ROOT_DOMAIN,o.StorefrontApiConsentMetadata.CHECKOUT_ROOT_DOMAIN,o.StorefrontApiConsentMetadata.STOREFRONT_ROOT_DOMAIN,o.StorefrontApiConsentMetadata.STOREFRONT_ACCESS_TOKEN,o.StorefrontApiConsentMetadata.HEADLESS_STOREFRONT,o.StorefrontApiConsentMetadata.IS_EXTENSION_TOKEN,o.StorefrontApiConsentMetadata.METAFIELDS];for(const e of t)if(!n.includes(e))throw TypeError(`The submitted consent object should only contain the following keys: ${n.join(", ")}. Extraneous key: ${e}.`)}}(e),void 0!==t&&"function"!=typeof t)throw TypeError("setTrackingConsent must be called with a callback function if the callback argument is provided");let n;!0===e||!1===e?(console.warn("Binary consent is deprecated. Please update to granular consent (shopify.dev/docs/api/consent-tracking)"),n={analytics:e,preferences:e,marketing:e}):n=e;const r=function(e){return e?u()?document.referrer:"":null}(n.analytics),i=c(n.analytics);return a.storefrontApiUpdateTrackingConsent({granular_consent:n,...null!==r&&{referrer:r},...null!==i&&{landing_page:i}},t)},t.shouldShowCCPABanner=function(){return console.warn("shouldShowCCPABanner is deprecated and will be removed."),i.saleOfDataRegion()&&l()===o.DisplayConsentValues.NO_INTERACTION},t.shouldShowGDPRBanner=function(){return i.shouldShowBanner()&&s()===o.DisplayConsentValues.NO_INTERACTION},t.userCanBeTracked=function(){return!!r.validCookieDoesNotExist()||d()},t.userDataCanBeSold=function(){return console.warn("userDataCanBeSold is deprecated and will be replaced with saleOfDataAllowed."),i.saleOfDataAllowed()}},809:function(e,t){"use strict";function n(e,t=!1){const r=document.cookie?document.cookie.split("; "):[];for(let t=0;t!0===e))&&i(o.TrackingEvents.TRACKING_ACCEPTED),c.every((e=>!1===e))&&i(o.TrackingEvents.TRACKING_DECLINED)}({[o.DataProcessingPurpose.PREFERENCES]:r.preferencesProcessingAllowed(),[o.DataProcessingPurpose.ANALYTICS]:r.analyticsProcessingAllowed(),[o.DataProcessingPurpose.MARKETING]:r.marketingProcessingAllowed(),[o.DataProcessingPurpose.SALE_OF_DATA]:r.saleOfDataAllowed()})},t.dispatchLoadedEvent=function(){i(o.TrackingEvents.CONSENT_TRACKING_API_LOADED)}},1875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7249),r=n(5730),i=n(5732),a=n(3108),s=n(9401),c=n(1148);t.ConsentKeys=o.ConsentKeys,t.ConsentValues=o.ConsentValues,t.DisplayConsentValues=o.DisplayConsentValues,t.TrackingEvents=o.TrackingEvents,t.getRegion=r.getRegion,t.getRegulation=r.getRegulation,t.getShopPrefs=r.getShopPrefs,t.getTrackingConsent=r.getTrackingConsent,t.getTrackingConsentMetafield=r.getTrackingConsentMetafield,t.getTrackingConsentMetafields=r.getTrackingConsentMetafields,t.userCanBeTracked=r.userCanBeTracked,t.userDataCanBeSold=r.userDataCanBeSold,t.getSignal=i.getSignal,t.shouldShowBanner=a.shouldShowBanner,t.dispatchLoadedEvent=s.dispatchLoadedEvent,t.analyticsProcessingAllowed=c.analyticsProcessingAllowed,t.currentVisitorConsent=c.currentVisitorConsent,t.marketingAllowed=c.marketingAllowed,t.preferencesProcessingAllowed=c.preferencesProcessingAllowed,t.saleOfDataAllowed=c.saleOfDataAllowed,t.setTrackingConsent=c.setTrackingConsent,t.shopifyConsentAPI=c.shopifyConsentAPI,t.urlConsentParam=c.urlConsentParam},8680:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(9401),r=n(809),i=n(5732),a=n(3108),s=n(2189);const c="_landing_page",u="_orig_referrer";function d(e){const t=e.granular_consent,n={visitorConsent:{marketing:t.marketing,analytics:t.analytics,preferences:t.preferences,saleOfData:t.sale_of_data,...t.metafields&&{metafields:t.metafields}},...t.email&&{visitorEmail:t.email},origReferrer:e.referrer,landingPage:e.landing_page};return{query:`query { consentManagement { cookies(${s.objectToGraphQL(n)}) { answersCookie trackingConsentCookie cookieDomain landingPageCookie origReferrerCookie } } }`,variables:{}}}t.storefrontApiUpdateTrackingConsent=function(e,t){const n=e.granular_consent,s=n.storefrontAccessToken||function(){const e=document.documentElement.querySelector("#shopify-features"),t="Could not find liquid access token";if(!e)return void console.warn(t);const n=JSON.parse(e.textContent||"").accessToken;if(n)return n;console.warn(t)}(),p=n.checkoutRootDomain||window.location.host,l=n.isExtensionToken?"Shopify-Storefront-Extension-Token":"x-shopify-storefront-access-token",f={headers:{"content-type":"application/json",[l]:s},body:JSON.stringify(d(e)),method:"POST"};return fetch(`https://${p}/api/unstable/graphql.json`,f).then((e=>{if(e.ok)return e.json();throw new Error("Server error")})).then((s=>{const d=31536e6,p=12096e5,l=s.data.consentManagement.cookies.cookieDomain,f=n.checkoutRootDomain||l||window.location.hostname,_=n.storefrontRootDomain||l||window.location.hostname,h=s.data.consentManagement.cookies.trackingConsentCookie,v=s.data.consentManagement.cookies.answersCookie,g=s.data.consentManagement.cookies.landingPageCookie,y=s.data.consentManagement.cookies.origReferrerCookie;return r.writeCookie(i.CONSENT_COOKIE_NAME,f,d,h),r.writeCookie(a.CMP_ANSWERS_COOKIE_NAME,f,d,v),g&&y&&(r.writeCookie(c,f,p,g),r.writeCookie(u,f,p,y)),_!==f&&(r.writeCookie(i.CONSENT_COOKIE_NAME,_,d,h),r.writeCookie(a.CMP_ANSWERS_COOKIE_NAME,_,d,v),g&&y&&(r.writeCookie(c,_,p,g),r.writeCookie(u,_,p,y))),o.dispatchEvents(e),void 0!==t&&t(null,s),s})).catch((e=>{const n="Error while setting storefront API consent: "+e.message;if(void 0===t)throw{error:n};t({error:n})}))}},7249:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentDisplayKeys={MARKETING:"marketing",ANALYTICS:"analytics",PREFERENCES:"preferences",SALE_OF_DATA:"sale_of_data",EMAIL:"email"},t.ConsentKeys={MARKETING:"m",ANALYTICS:"a",PREFERENCES:"p",SALE_OF_DATA:"s"},t.ConsentValues={NO_VALUE:"",ACCEPTED:"1",DECLINED:"0"},t.CookieVersion="2.1",t.DataProcessingPurpose={PREFERENCES:"p",ANALYTICS:"a",MARKETING:"m",SALE_OF_DATA:"t"},t.DisplayConsentValues={ACCEPTED:"yes",DECLINED:"no",NO_INTERACTION:"no_interaction",NO_VALUE:""},t.StorefrontApiConsentMetadata={HEADLESS_STOREFRONT:"headlessStorefront",ROOT_DOMAIN:"rootDomain",CHECKOUT_ROOT_DOMAIN:"checkoutRootDomain",STOREFRONT_ROOT_DOMAIN:"storefrontRootDomain",STOREFRONT_ACCESS_TOKEN:"storefrontAccessToken",IS_EXTENSION_TOKEN:"isExtensionToken",METAFIELDS:"metafields"},t.TrackingEvents={TRACKING_ACCEPTED:"trackingConsentAccepted",TRACKING_DECLINED:"trackingConsentDeclined",MARKETING_ACCEPTED:"firstPartyMarketingConsentAccepted",SALE_OF_DATA_ACCEPTED:"thirdPartyMarketingConsentAccepted",ANALYTICS_ACCEPTED:"analyticsConsentAccepted",PREFERENCES_ACCEPTED:"preferencesConsentAccepted",MARKETING_DECLINED:"firstPartyMarketingConsentDeclined",SALE_OF_DATA_DECLINED:"thirdPartyMarketingConsentDeclined",ANALYTICS_DECLINED:"analyticsConsentDeclined",PREFERENCES_DECLINED:"preferencesConsentDeclined",CONSENT_COLLECTED:"visitorConsentCollected",CONSENT_TRACKING_API_LOADED:"consentTrackingApiLoaded"}},2189:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectToGraphQL=function e(t,n){if(null===t)return"null";if(Array.isArray(t))return`[${t.map((t=>e(t,!0))).join(",")}]`;if("object"==typeof t){let o=[];for(const n in t)t.hasOwnProperty(n)&&void 0!==t[n]&&o.push(`${n}:${e(t[n],!0)}`);const r=o.join(",");return n?`{${r}}`:r}return"string"==typeof t?`"${t}"`:`${t}`}},669:function(e,t,n){e.exports=n(1875)},9414:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EcommerceIntegration=t.PSEUDO_PAGE_EVENTS=t.STOREFRONT_API_ADDED_PRODUCT=t.CHECKOUT_ONE_PAGE_VIEW=t.CHECKOUT_PAYMENT_STEP_STARTED=t.CHECKOUT_SHIPPING_INFO_SUBMITTED=t.CHECKOUT_SHIPPING_STEP_STARTED=t.CHECKOUT_ADDRESS_INFO_SUBMITTED=t.CHECKOUT_CONTACT_INFO_SUBMITTED=t.CHECKOUT_CONTACT_STEP_STARTED=t.ANALYTICS_ADDED_PAYMENT=t.ANALYTICS_PERFORMED_SEARCH=t.ANALYTICS_STARTED_ORDER_ONCE_PER_CHECKOUT=t.ANALYTICS_STARTED_ORDER=t.ANALYTICS_COMPLETED_ORDER=t.ANALYTICS_ADDED_PRODUCT_NEXT=t.ANALYTICS_ADDED_PRODUCT=t.ANALYTICS_VIEWED_PRODUCT_CATEGORY=t.ANALYTICS_VIEWED_PRODUCT=t.ANALYTICS_PAGE_VIEW=t.ANALYTICS_GENERIC_EVENT=t.analyticsEvents=void 0;var i=n(6573),a=n(9974),s=n(357),c=n(8416),u=n(1482);t.analyticsEvents={viewedProduct:/^[ _]?viewed[ _]?product[ _]?$/i,viewedProductCategory:/^[ _]?viewed[ _]?product[ _]?category[ _]?$/i,viewedProductVariant:/^[ _]?viewed[ _]?product[ _]?variant[ _]?$/i,addedProduct:/^[ _]?added[ _]?product[ _]?$/i,addedProductNext:/^[ _]?added[ _]?product[ _]?next[ _]?$/i,addedProductPermalinkTest:/^[ _]?added[ _]?product[ _]?permalink[ _]?test[ _]?$/i,completedOrder:/^[ _]?completed[ _]?order[ _]?$/i,startedOrder:/^[ _]?started[ _]?order[ _]?$/i,startedOrderOncePerCheckout:/^[ _]?started[ _]?order[ _]?once[ _]?per[ _]?checkout[ _]?$/i,performedSearch:/^[ _]?performed[ _]?search[ _]?$/i,addedPayment:/^[ _]?added[ _]?payment[ _]?$/i,checkoutContactStepStarted:/^[ _]?checkout[ _]?[ _]?contact[ _]?step[ _]?started[ _]?$/i,checkoutContactInfoSubmitted:/^[ _]?checkout[ _]?[ _]?contact[ _]?info[ _]?submitted[ _]?$/i,checkoutAddressInfoSubmitted:/^[ _]?checkout[ _]?[ _]?address[ _]?info[ _]?submitted[ _]?$/i,checkoutShippingStepStarted:/^[ _]?checkout[ _]?[ _]?shipping[ _]?step[ _]?started[ _]?$/i,checkoutShippingInfoSubmitted:/^[ _]?checkout[ _]?[ _]?shipping[ _]?info[ _]?submitted[ _]?$/i,checkoutPaymentStepStarted:/^[ _]?checkout[ _]?[ _]?payment[ _]?step[ _]?started[ _]?$/i,checkoutOnePageView:/^[ _]?checkout[ _]?[ _]?one[ _]?page[ _]?view[ _]?$/i,storefrontApiAddedProduct:/^[ _]?storefront[ _]?[ _]?api[ _]?added[ _]?product[ _]?$/i},t.ANALYTICS_GENERIC_EVENT="genericEvent",t.ANALYTICS_PAGE_VIEW="pageView",t.ANALYTICS_VIEWED_PRODUCT="viewedProduct",t.ANALYTICS_VIEWED_PRODUCT_CATEGORY="viewedProductCategory",t.ANALYTICS_ADDED_PRODUCT="addedProduct",t.ANALYTICS_ADDED_PRODUCT_NEXT="addedProductNext",t.ANALYTICS_COMPLETED_ORDER="completedOrder",t.ANALYTICS_STARTED_ORDER="startedOrder",t.ANALYTICS_STARTED_ORDER_ONCE_PER_CHECKOUT="startedOrderOncePerCheckout",t.ANALYTICS_PERFORMED_SEARCH="performedSearch",t.ANALYTICS_ADDED_PAYMENT="addedPayment",t.CHECKOUT_CONTACT_STEP_STARTED="checkoutContactStepStarted",t.CHECKOUT_CONTACT_INFO_SUBMITTED="checkoutContactInfoSubmitted",t.CHECKOUT_ADDRESS_INFO_SUBMITTED="checkoutAddressInfoSubmitted",t.CHECKOUT_SHIPPING_STEP_STARTED="checkoutShippingStepStarted",t.CHECKOUT_SHIPPING_INFO_SUBMITTED="checkoutShippingInfoSubmitted",t.CHECKOUT_PAYMENT_STEP_STARTED="checkoutPaymentStepStarted",t.CHECKOUT_ONE_PAGE_VIEW="checkoutOnePageView",t.STOREFRONT_API_ADDED_PRODUCT="storefrontApiAddedProduct",t.PSEUDO_PAGE_EVENTS=[t.CHECKOUT_CONTACT_STEP_STARTED,t.CHECKOUT_SHIPPING_STEP_STARTED,t.CHECKOUT_PAYMENT_STEP_STARTED,t.CHECKOUT_ONE_PAGE_VIEW];var d=function(e){function n(t,n,o){var r=e.call(this,t,n,o)||this;return r.wrapTrack(),r.setPixelStub(),r}return r(n,e),n.prototype.wrapTrack=function(){var e=this.track;this.track=function(n){var o=n.event,r=!1;for(var i in t.analyticsEvents){var a=t.analyticsEvents[i];if(this[i]&&a.test(o)){this[i].apply(this,[n]),r=!0;break}}r||e.apply(this,Array.prototype.slice.call(arguments))}},n.prototype.addMonorailBatchEvent=function(e){if(s.default.appName&&s.default.appName in u.appNameToEcommerceEventSchemaId){var t=this.getEcommercePixelIds();i.addBatchEvent({schemaId:e.schemaId?e.schemaId:u.appNameToEcommerceEventSchemaId[s.default.appName],payload:a.objectAssignFilterUndefined({shop_id:s.default.shopId,partner_name:this.getEcommerceMetricsTag(),event_name:e.eventName,unique_token:s.default.uniqToken,visit_token:s.default.visitToken,integration_id:this.getIntegrationId()},{pixel_id:t&&t.length>0?t[0]:void 0,event_properties:e.eventProperties,checkout_token:s.default.checkoutToken,event_id:e.eventId})})}},n}(c.Integration);t.EcommerceIntegration=d},8416:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&this.deferedEvents.forEach((function(e,n,o){var r=e[0],i=e[1];o.delete(n),t.callEvent(r,i)})))},e.prototype.emitEventOrAwaitConsent=function(e,t){this.hasConsent()?this.callEvent(e,t):this.deferedEvents.add([e,t])},e.prototype.callEvent=function(e,t){switch(e){case"page":this.page(t);break;case"track":this.track(t)}},e.prototype.checkoutOnePageView=function(e){if(e.properties.hasOwnProperty("page")){var t=e.properties;this.page(t.page)}},e.flatten=function(e){var t=n({},e);return t.properties={},n(n({},t),e.properties)},e.isEqual=function(e,t){for(var n in e)if(e[n]!==t[n])return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0},e}();t.Integration=o},1482:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractSchemaIdFromEventName=t.buyWithPrimePresenceSchemaId=t.trekkieAssetContextSchemaId=t.customStorefrontAnalyticsSchemaId=t.storefrontAnalyticsSchemaIdValidation=t.storefrontAnalyticsSchemaId=t.appNameToEcommerceEventSchemaId=t.appNameToPageViewSchemaId=void 0,t.appNameToPageViewSchemaId={admin:"trekkie_admin_page_view/1.0",appstore:"trekkie_appstore_page_view/1.2",blog:"trekkie_blog_page_view/1.2",brochure:"trekkie_brochure_page_view/1.3",checkout:"trekkie_checkout_page_view/1.2","collabs-merchants":"trekkie_collabs_merchants_page_view/1.0","compass-web":"trekkie_compass_web_page_view/1.2",creators:"trekkie_creators_page_view/2.0",delivery_app:"trekkie_delivery_app_page_view/1.0",docs:"trekkie_docs_page_view/1.2",development:"edge_test/1.0",exchange:"trekkie_exchange_page_view/1.2",experts:"trekkie_experts_page_view/1.0",handshake:"trekkie_handshake_page_view/1.0",fakestore:"trekkie_fakestore_page_view/1.0",identity:"trekkie_identity_page_view/1.2",linkpop:"trekkie_linkpop_page_view/2.0","marketing-misc":"trekkie_marketing_misc_page_view/1.2","oberlo-home":"trekkie_oberlo_home_page_view/1.3",opinions:"trekkie_opinions_page_view/1.2",partners:"trekkie_partners_page_view/1.2","shopify-ping-web":"trekkie_shopify_ping_web_page_view/1.0",portal:"trekkie_portal_page_view/1.0",storefront:"trekkie_storefront_page_view/1.2",testing:"edge_test/1.0",themestore:"trekkie_themestore_page_view/1.2","services-db":"trekkie_services_db_page_view/1.0"},t.appNameToEcommerceEventSchemaId={storefront:"trekkie_storefront_ecommerce_event_emit/4.0",checkout:"trekkie_checkout_ecommerce_event_emit/4.0",test:"edge_test_ecommerce_event_emit/1.0"},t.storefrontAnalyticsSchemaId="storefront_customer_tracking/4.17",t.storefrontAnalyticsSchemaIdValidation="storefront_customer_tracking_validation/1.0",t.customStorefrontAnalyticsSchemaId="custom_storefront_customer_tracking/1.1",t.trekkieAssetContextSchemaId="trekkie_asset_context/1.1",t.buyWithPrimePresenceSchemaId="storefront_buy_with_prime_presence/1.0",t.extractSchemaIdFromEventName=function(e){var t=e.toLowerCase();if(0===t.lastIndexOf("monorail://")&&t.length>11)return t.substr(11)}},9965:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentValuesV2=t.IntegrationTypes=t.ConsentPurposes=void 0;var o=n(669);Object.defineProperty(t,"ConsentPurposes",{enumerable:!0,get:function(){return o.ConsentKeys}});var r,i=n(4842);Object.defineProperty(t,"IntegrationTypes",{enumerable:!0,get:function(){return i.IntegrationTypes}}),(r=t.ConsentValuesV2||(t.ConsentValuesV2={})).NO_VALUE="",r.ACCEPTED="1",r.DECLINED="0"},4842:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationTypes=void 0,(n=t.IntegrationTypes||(t.IntegrationTypes={})).ECOMMERCE="EcommerceIntegration",n.INTEGRATION="Integration"},2057:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n2&&(c.lineNumber=d[1],c.columnNumber=d[2],parseInt(c.lineNumber,10)>1e5))return}this.sendBugsnagXhr(n,u,c,s,r,i,e.appConfig,e.notes)}}},6573:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t>>0;try{t=performance.now()>>>0}catch(e){t=0}return Math.abs(e+t).toString(16).toLowerCase().padStart(8,"0")}t.UniqueIdManager=s,t.buildToken=c,t.hexTime=u},9974:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPseudoPageEvent=t.canonical=t.generateShopifyDValue=t.isUnstableBrowserVersion=t.UNSTABLE_BROWSER_VERSION_SET=t.objectAssignFilterUndefined=void 0;var o=n(2164),r=n(9414),i=n(8533),a=/^https?:\/\//;t.objectAssignFilterUndefined=function(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e},t.UNSTABLE_BROWSER_VERSION_SET=new Set(["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"]),t.isUnstableBrowserVersion=function(){return t.UNSTABLE_BROWSER_VERSION_SET.has(o.virtualWindow().userAgent())},t.generateShopifyDValue=function(){return(new Date).toJSON()},t.canonical=function(){for(var e=i.virtualDocument().getElementsByTagName("link"),t=0;t0?null===(s=null==d?void 0:d.variants[0])||void 0===s?void 0:s.id:void 0,f=(null===(u=null===(c=window.ShopifyAnalytics)||void 0===c?void 0:c.meta)||void 0===u?void 0:u.selectedVariantId)||l,h={schemaId:p.buyWithPrimePresenceSchemaId,payload:o(o(o({shop_id:r},e.data&&{event_message:e.data}),d&&{product_id:d.id}),f&&{product_variant_id:Number(f)})};a.produce([h])}}catch(e){_.reportError("buyWithPrimeError",e)}}))},e.prototype.getNavigationType=function(){try{var e="PerformanceNavigationTiming",t=l.getNavigationTypeExperimental();return t||(t=l.getNavigationTypeLegacy(),e="performance.navigation"),t?{navigationType:t,navigationApi:e}:{navigationType:"unknown",navigationApi:"unknown"}}catch(e){s.reportError("navigation_api_error",e)}return{navigationType:"error",navigationApi:"error"}},e.prototype.initialize=function(e,t,n){this.loadIntegrations(e,t,n)},e.prototype.getS2SEventId=function(e,t,n){var o,r,i;void 0===e&&(e=void 0),void 0===t&&(t={});var a={navigationApi:this.navigationInfo.navigationApi,navigationType:this.navigationInfo.navigationType},s=v.WebPixelEventNameMap[e];try{if("product_added_to_cart"===s&&(null===(o=window.Shopify)||void 0===o?void 0:o.evids)){var c=function(e){if(e.productId&&e.variantId)return e.productId.toString()+"-"+e.variantId.toString()}(t);i=window.Shopify.evids(s,{analyticsFramework:"trekkie",cacheKey:c})}else i="checkout_completed"===s&&n?n:(null===(r=window.Shopify)||void 0===r?void 0:r.evids)&&s?window.Shopify.evids(s,{analyticsFramework:"trekkie"}):d.buildToken()}catch(e){i=d.buildToken()}return{s2sMetadata:a,eventId:"string"==typeof i&&i.length>0?i:d.buildToken()}},e.prototype.loadIntegrations=function(e,t,n){var o=this,r=this.waitFor(e.length,(function(){try{n()}catch(e){s.reportError("readyCallback",e)}o.allIntegrationsHaveLoaded=!0,o.flushMonorailEventsIfLoaded()}));e.forEach((function(e){var n=e[0],i=e[1];try{if(t[n]&&"object"==typeof t[n]){var a=new i({},t[n],r);a.initializeOrAwaitConsent(),o.integrations.push(a),"Trekkie"===a.name()&&(o.trekkie=a)}else r()}catch(e){r(),s.reportError("loadIntegration",e)}})),this.addConsentCollectedListener()},e.prototype.handleConsentCollected=function(e){h.default.refreshVisitorTokens(),this.integrations.forEach((function(t){t.onConsentCollected(e)})),a.flushBatchEvents()},e.prototype.addConsentCollectedListener=function(){document.addEventListener(u.TrackingEvents.CONSENT_COLLECTED,this.handleConsentCollectedBinded)},e.prototype.removeConsentCollectedListener=function(){document.removeEventListener(u.TrackingEvents.CONSENT_COLLECTED,this.handleConsentCollectedBinded)},e.prototype.identify=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t={});var o=this.getS2SEventId();e instanceof Object&&(t=e,e="");for(var r=0,i=this.integrations;r0?e:e+i.search();var t=i.href(),n=t.indexOf("#");return-1===n?t:t.slice(0,n)},e.prototype.constructTrackArgs=function(e,t,n){if(void 0===t&&(t={}),f.isPseudoPageEvent(e)){var r=t,i=r.name,a=r.path;if(i&&a){var s=this.generatePageObject(i,{path:a},n.eventId,n.s2sMetadata);return o(o({},t),{page:s})}}return t},e.prototype.destroy=function(){this.removeConsentCollectedListener()},e}();t.Tricorder=y,t.replayAnalyticsQueue=function(e,t){for(var n=0,o=t;n{const t=o[r]%16;return r++,("x"===e?t:3&t|8).toString(16)})).toUpperCase()}catch(n){t=e.replace(/[x]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).toUpperCase()}return`${function(){let e=0,t=0;e=(new Date).getTime()>>>0;try{t=performance.now()>>>0}catch(e){t=0}const n=Math.abs(e+t).toString(16).toLowerCase();return"00000000".substr(0,8-n.length)+n}()}-${t}`}()}`}function I(){const e=window;e.Shopify=e.Shopify||{},e.Shopify.evids||(A={[i]:{},[a]:{},[s]:{},[c]:{},[u]:{},[d]:{},[p]:{},[l]:{},[f]:{},[m]:{},[_]:{},[h]:{},[v]:{},[g]:{},[y]:{},[E]:{}},P={wpm:{},trekkie:{}},e.Shopify.evids=(e,t)=>function(e,t){if(!A[e]||(null==t?void 0:t.analyticsFramework)!==T&&(null==t?void 0:t.analyticsFramework)!==C)return S(r);const n="string"==typeof(o=t.cacheKey)&&o?o:"default";var o;const i=function(e,t,n){const o=P[t];return void 0===o[e]&&(o[e]={}),void 0===o[e][n]?o[e][n]=0:o[e][n]+=1,o[e][n]}(e,t.analyticsFramework,n);return function(e,t,n){const o=A[e];if(void 0===o[n]){const e=S();o[n]=[e]}else if(void 0===o[n][t]){const e=S();o[n].push(e)}return o[n][t]}(e,i,n)}(e,t))}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=n(1074),t=n(1037),o=n(357),r="trekkie",i=[],a=n(2319);i.push(["Trekkie",a.Trekkie]);var s=n(2057);i.push(["Facebook Pixel",s.FacebookPixel]);var c=n(2266);i.push(["Google Analytics",c.GoogleAnalytics]);var u=n(9412);i.push(["Pinterest Pixel",u.Pinterest]);var d=n(248);i.push(["Snap Pixel",d.Snap]);var p=n(446);i.push(["TikTok Pixel",p.TikTok]);var l=n(3082);i.push(["Session Attribution",l.SessionAttribution]);var f=n(2231);i.push(["Google Gtag Pixel",f.GoogleGtag]);var _=n(3988);i.push(["S2S",_.S2S]);try{var h=window[r].config;if(h){t.setGlobalSerializedAppConfig(JSON.stringify(h));var v=window[r],g=window.trekkie=new e.Tricorder(i,h,(function(){window[r]=g,window._visit={tag:function(){},multitrackToken:function(){o.default.uniqToken}},g.user=function(){return{traits:function(){return{uniqToken:o.default.uniqToken}}}},e.replayAnalyticsQueue(g,v)}))}}catch(e){t.reportError("index_storefront",e)}}()}();