var privacyBanner=function(n){"use strict";var t=function(){return t=Object.assign||function(n){for(var t,e=1,o=arguments.length;e0&&r[r.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]"undefined"==typeof window;function z(n,t){if(null===n)return"null";if(Array.isArray(n)){return`[${n.map(n=>z(n,!0)).join(",")}]`}if("object"==typeof n){let e=[];for(const t in n)n.hasOwnProperty(t)&&void 0!==n[t]&&e.push(`${t}:${z(n[t],!0)}`);const o=e.join(",");return t?`{${o}}`:o}return"string"==typeof n?JSON.stringify(n):`${n}`}function J(n,...t){if(0===t.length)return n;const e=t[0];return n[e]||(n[e]={}),J(n[e],...t.slice(1))}function G(n){try{return decodeURIComponent(n)}catch(n){return""}}function X(){if(!V())return window}const K=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Q(n,t){if("string"!=typeof n)return;if(!function(n){return!!n&&K.test(n.trim().toLowerCase())}(n))return;const e=n.trim();if("00000000-0000-0000-0000-000000000000"===e)return;if("00000000-0000-0000-5000-000000000000"===e)return;return Number.isFinite(NaN)&&Date.now()>NaN?void 0:e}const Y="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";function Z(n){return Y.replace(/[xy]/g,t=>{const e=n();return("x"===t?e:3&e|8).toString(16)})}function nn(){const n="undefined"!=typeof crypto?crypto:void 0;if("function"==typeof(null==n?void 0:n.randomUUID))return n.randomUUID();if("function"==typeof(null==n?void 0:n.getRandomValues)){const t=n.getRandomValues(new Uint8Array(36));let e=0;return Z(()=>t[e++]%16)}return Z(()=>16*Math.random()|0)}const tn="_tracking_consent";function en(){try{return document.cookie}catch{return!1}}function on(){return function(n){const t=en()?document.cookie.split("; "):[];for(let e=0;ecn.includes(n.split("=")[0].trim()))}())return;const n=window.location.hostname.split("."),t=["",...n.map((t,e)=>n.slice(e).join("."))];for(const n of cn)for(const e of t)try{an(n,e,-1,"")}catch{}}function ln(){var n,t;return V()?{}:(null===(n=window.Shopify)||void 0===n||null===(t=n.customerPrivacy)||void 0===t?void 0:t.config)||{}}const dn="_cmp",un="consentHeader";function pn(n){if(!V()){try{n=decodeURIComponent(n)}catch{}try{sessionStorage.setItem(un,n)}catch{}}}function fn(n=dn){let t;if(t=function(n){try{return n()}catch{return}}(()=>function(n=dn){var t,e;const o=null===(t=performance)||void 0===t||null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"navigation");if(!o)return;const r=o.map(t=>function(n,t=dn){var e,o;if(!n)return;return null===(e=n.serverTiming)||void 0===e||null===(o=e.find(n=>n.name==t))||void 0===o?void 0:o.description}(t,n)),i=r.find(n=>n);i&&n===dn&&pn(i);return i}(n)),!t){if(n!==dn)return;let t;try{t=sessionStorage.getItem(un)}catch{}return t||void 0}try{t=decodeURIComponent(t)}catch{}return t}function hn(){var n,t;const e=X();return!0===(null==e||null===(n=e.Shopify)||void 0===n||null===(t=n.customerPrivacy)||void 0===t?void 0:t.backendConsentEnabled)||!0===ln().asyncVisitorState}function mn(){if(!V()){var n,t;const e=(null===(n=window.Shopify)||void 0===n||null===(t=n.customerPrivacy)||void 0===t?void 0:t.injectedConsent)||ln().injectedConsent;return e?G(e):void 0}}function gn(){var n;if(!V())return null===(n=window.Shopify)||void 0===n?void 0:n.customerPrivacy}function yn(){var n;return null===(n=gn())||void 0===n?void 0:n.consentStatus}function vn(n){const t=gn();t&&(t.consentStatus=n)}function bn(){Cn(g)}function xn(n,t){void 0!==n.granular_consent&&function(n){vn("loaded");const t=n[D],e=n[T],o=n[I],r=n[_];!0===t?Cn(c):!1===t&&Cn(u);!0===e?Cn(s):!1===e&&Cn(p);!0===o?Cn(l):!1===o&&Cn(f);!0===r?Cn(d):!1===r&&Cn(h);const g=function(n){const t={marketingAllowed:n[D],saleOfDataAllowed:n[T],analyticsAllowed:n[I],preferencesAllowed:n[_],firstPartyMarketingAllowed:n[D],thirdPartyMarketingAllowed:n[T]};return t}(n);Cn(m,g);const y=[o,r,t,e];y.every(n=>!0===n)&&Cn(i);y.every(n=>!1===n)&&Cn(a)}(t)}function Cn(n,t){if(!V())try{document.dispatchEvent(new CustomEvent(n,{detail:t||{}}))}catch(t){console.error(`[Shopify Customer Privacy] Error in event listener for "${n}":`,t)}}function wn(){let n;if(n=V()?mn():function(){var n,t;const e=null===(n=window.Shopify)||void 0===n||null===(t=n.customerPrivacy)||void 0===t?void 0:t.cachedConsent;return e?G(e):void 0}()||mn()||new URLSearchParams(window.location.search).get("_cs")||void 0||on()||fn(),void 0!==n)return Tn(n)}function kn(){try{let n=wn();if(!n)return;return n}catch{return}}function _n(){return{m:Bn(E),a:Bn(A),p:Bn(B),s:Bn(S)}}function In(){return _n()[S]}function Dn(n=null){return null===n&&(n=kn()),void 0===n}function Tn(n){if("%"==n.slice(0,1))try{n=decodeURIComponent(n)}catch{}const t=n.slice(0,1);return"{"==t?function(n){var t;let e;try{e=JSON.parse(n)}catch{return}if("2.1"!==e.v)return;if(null===(t=e.con)||void 0===t||!t.CMP)return;return e}(n):"3"==t?function(n){const t=n.slice(1).split("_"),[e,o,r,i,a]=t;let c,s;try{c=t[5]?JSON.parse(t.slice(5).join("_")):void 0}catch{}if(a){const n=a.replace(/\*/g,"/").replace(/-/g,"+"),t=atob(n);let e="";for(let n=0;nn.slice(0,t)+"-"+n.slice(t),e)}function l(n){const t=e.split(".")[0];return t.includes(n.toLowerCase())?k:t.includes(n.toUpperCase())?w:C}function d(n){return e.includes(n.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:{[A]:l(A),[B]:l(B),[E]:l(E),[S]:l(S)}},region:o||"",cus:c,purposes:{[I]:d(I),[_]:d(_),[D]:d(D),[T]:d(T)},sale_of_data_region:"t"==i,display_banner:"t"==r,consent_id:s}}(n):void 0}function En(n){switch(n){case w:return y;case k:return v;default:return x}}function An(n){switch(n){case A:return P;case E:return O;case B:return R;case S:return H}}function Bn(n){const t=kn();if(!t)return C;const e=t.con.CMP;return e?e[n]:C}function Sn(n){const t=kn();if(!t||!t.purposes)return!0;const e=t.purposes[n];return"boolean"!=typeof e||e}function On(){return Sn(_)}function Pn(){return Sn(I)}function Rn(){return Sn(D)}function Hn(){return Sn(T)}function Mn(){const n=kn();return!!n&&("boolean"==typeof n.display_banner&&n.display_banner)}function Nn(){const n=kn();return n&&n.sale_of_data_region||!1}const Ln="v1.6";function jn(n,t){const e=X();if(!e)return;const o=J(e,"Shopify","customerPrivacy","cachedToken");if(t){const e="_shopify_s"===n?18e5:31536e6;o[n]=t,o[n+"_expires_at"]=Date.now()+e}else delete o[n],delete o[n+"_expires_at"]}const qn="Shopify-Storefront-Consent-Management";function Fn(n){return""===n?void 0:n}function $n(n){const t=n.granular_consent;return{query:`query { consentManagement { cookies(${z({visitorConsent:{marketing:Fn(t.marketing),analytics:Fn(t.analytics),preferences:Fn(t.preferences),saleOfData:Fn(t.sale_of_data),...t.metafields&&{metafields:t.metafields}},...t.email&&{visitorEmail:t.email},origReferrer:Fn(n.referrer),landingPage:Fn(n.landing_page)})}) { trackingConsentCookie cookieDomain landingPageCookie origReferrerCookie shopifyUnique shopifyVisit } customerAccountUrl } }`,variables:{}}}let Un;function Wn(n,t,e,o={}){const r=ln().consentDomain||t.granular_consent.checkoutRootDomain||window.location.host;const i=()=>function(n,t,e,o){const r=t.granular_consent;let i="",a={};if(r.customerAccountRequestInfo)i=r.customerAccountRequestInfo.url,a=r.customerAccountRequestInfo.headers;else{const t=ln(),o=r.storefrontAccessToken||t.storefrontAccessToken;i=`${/^(localhost|127\.0\.0\.1)(:|$)/.test(n)?"http:":"https:"}//${n}/api/unstable/graphql.json`;const c=r.isExtensionToken?"Shopify-Storefront-Extension-Token":"x-shopify-storefront-access-token";a=o?{[c]:o}:{},e&&(a={...a,...e()})}const c={headers:{"content-type":"application/json",...!0===ln().asyncConsent&&new URL(i).origin===window.location.origin&&{[qn]:"1"},...a,..."undefined"!=typeof __CtaTestEnv__&&"true"===__CtaTestEnv__?{"x-test-payload":JSON.stringify(t)}:{}},body:JSON.stringify($n(t)),method:"POST"};let s;try{s=fetch(i,c)}catch(n){s=Promise.reject(n)}return s.then(n=>{try{null==o||o(n)}catch{}if(n.ok)return n.json();{const t=new Error("Server error");throw t.cause={status:n.status},t}})}(r,t,o.getVisitorTokenHeaders,o.onResponse).then(n=>{var r;const i=null==n||null===(r=n.data)||void 0===r?void 0:r.consentManagement;if(!i){var a;const t=(null!==(a=null==n?void 0:n.errors)&&void 0!==a?a:[]).map(n=>null==n?void 0:n.message).filter(Boolean).join("; ");throw new Error(t?`GraphQL error: ${t}`:"GraphQL response missing consentManagement")}const c=i.cookies.cookieDomain,s=i.cookies.trackingConsentCookie,l=i.cookies.shopifyUnique,d=i.cookies.shopifyVisit;if(!0===ln().asyncConsent&&s&&!function(n){try{return void 0!==Tn(G(n))}catch{return!1}}(s))throw new Error("Consent response contains unreadable consent");var u,p;if(s&&(u=s,J(window,"Shopify","customerPrivacy").cachedConsent=u,!0!==ln().asyncConsent&&pn(s)),jn("_shopify_y",l),jn("_shopify_s",d),!0===ln().asyncConsent)null!==(p=n.errors)&&void 0!==p&&p.length||!s||Dn()||sn();else if(function(n){return n.granular_consent.headlessStorefront}(t)&&!hn()){const n=31536e6,e=t.granular_consent,o=c||e.checkoutRootDomain||window.location.hostname,r=e.storefrontRootDomain||c||window.location.hostname;an(tn,o,n,s),r!==o&&an(tn,r,n,s)}return!1!==o.emitEvents&&xn(t,{[_]:On(),[I]:Pn(),[D]:Rn(),[T]:Hn()}),void 0!==e&&e(null,n),n}).catch(n=>{var t;const o="Error while setting storefront API consent: "+n.message,r=null===(t=n.cause)||void 0===t?void 0:t.status,i={error:o};if(void 0!==r&&(i.statusCode=r),void 0===e)throw i;e(i)});if(!0!==ln().asyncConsent)return i();const a=Un=Un?Un.then(i,i):i(),c=()=>{Un===a&&(Un=void 0)};return a.then(c,c),a}let Vn,zn=class n{constructor(){if(this.endpoint="https://otlp-http-production.shopifysvc.com/v1/metrics",this.serviceName="consent-tracking-api",this.scopeName="consent-tracking-api-opentelemetry",n.instance)return n.instance;n.instance=this}increment(n,t={},e=.01){if(!V()&&n)try{if(!Number.isFinite(e)||e<=0||e>1)return;if(!Pn())return;if(Math.random()>=e)return;const o=this.buildMetricBody(n,t);if(window.location.host.endsWith("spin.dev"))return void console.log("OpenTelemetry metric from consent API:",o);if("function"!=typeof fetch)return;return fetch(this.endpoint,{headers:{accept:"*/*","content-type":"application/json; charset=utf-8"},body:JSON.stringify(o),method:"POST",mode:"cors",credentials:"omit"}).catch(()=>{})}catch(n){}}buildMetricBody(n,t){const e=1e6*Date.now();return{resourceMetrics:[{resource:{attributes:[{key:"service.name",value:{stringValue:this.serviceName}}]},scopeMetrics:[{scope:{name:this.scopeName,version:"1.1.1",attributes:[]},metrics:[{name:n,unit:"1",sum:{aggregationTemporality:1,isMonotonic:!0,dataPoints:[{asDouble:1,startTimeUnixNano:e,timeUnixNano:e,attributes:Jn(t)}]}}]}]}]}}};function Jn(n){return Object.keys(n).reduce((t,e)=>{const o=n[e];return null==o||t.push({key:e,value:Gn(o)}),t},[])}function Gn(n){return"string"==typeof n?{stringValue:n}:"boolean"==typeof n?{boolValue:n}:isFinite(n)?Math.floor(n)===n?{intValue:n}:{doubleValue:n}:{stringValue:String(n)}}function Xn(){var n;return null!==(n=Vn)&&void 0!==n?n:Vn=new zn}zn.instance=void 0;const Kn=[O,P,R,H],Qn=[...Kn,M,L,j,q,F,N,$,U,W],Yn=Kn.map(n=>`"${n}"`).join(", "),Zn="https://shopify.dev/docs/api/customer-privacy";function nt(n,t){if(V())throw new Error("setTrackingConsent is not supported in Node.js environments. This function requires browser APIs (XHR, cookies, window) and can only be called client-side.");if(Xn().increment("consent_tracking_api_calls_total",{method_name:"setTrackingConsent",api_version:Ln}),function(n){if("boolean"!=typeof n&&"object"!=typeof n)throw new r(`setTrackingConsent received an invalid argument of type "${typeof n}". Expected an object with consent keys. Example: setTrackingConsent({ analytics: true, marketing: false }). See ${Zn} for documentation.`);if("object"==typeof n){const t=Object.keys(n);if(0===t.length)throw new r(`The submitted consent object is empty. Expected at least one consent key: ${Yn}. Example: setTrackingConsent({ analytics: true, marketing: false }). See ${Zn} for documentation.`);for(const n of t)if(!Qn.includes(n))throw new r(`The submitted consent object contains an invalid key: "${n}". Valid keys are: ${Yn}. Example: setTrackingConsent({ analytics: true, marketing: false }). See ${Zn} for documentation.`)}}(n),void 0!==t&&"function"!=typeof t)throw new r(`setTrackingConsent received an invalid callback of type "${typeof t}". The second argument must be a function if provided. Example: setTrackingConsent({ analytics: true }, (error, result) => { ... }). See ${Zn} for documentation.`);const e=function(n){if(!n)return null;try{return ot()?document.referrer:""}catch{return""}}(n.analytics),o=function(n){if(!n)return null;if(!ot())return"/";try{return window.location.pathname+window.location.search}catch{return"/"}}(n.analytics);return Wn(0,{granular_consent:n,...null!==e&&{referrer:e},...null!==o&&{landing_page:o}},t)}function tt(){if(Xn().increment("consent_tracking_api_calls_total",{method_name:"getTrackingConsent",api_version:Ln}),Dn())return x;const n=_n();return n[E]===w&&n[A]===w?y:n[E]===k||n[A]===k?v:b}function et(){return function(){const n=kn();return Dn(n)?"":n.region||""}()}function ot(){try{if(""===document.referrer)return!0;const n=document.createElement("a");return n.href=document.referrer,window.location.hostname!=n.hostname}catch{return!0}}function rt(){return!!Dn()||Rn()&&Pn()}function it(){return Nn()?"string"==typeof navigator.globalPrivacyControl?"1"!==navigator.globalPrivacyControl:"boolean"==typeof navigator.globalPrivacyControl?!navigator.globalPrivacyControl:null:null}function at(){return Mn()&&tt()===b}function ct(){return!1===it()?v:(n=In(),Dn()?x:n===C?b:En(n));var n}function st(){return!0}function lt(n){return function(n){const t=kn();if(Dn(t)||!t.cus)return;const e=t.cus[encodeURIComponent(n)];return e?decodeURIComponent(e):e}(n)}function dt(){const n={},t=_n();for(const e of Object.keys(t))n[An(e)]=En(t[e]);return n}function ut(){return function(){const n=kn();return n&&n.consent_id||""}()}function pt(n){if(!V())try{var t,e;return null===(t=document.querySelector(`meta[name="${n}"]`))||void 0===t||null===(e=t.getAttribute("content"))||void 0===e?void 0:e.trim()}catch{return}}function ft(n){const t=pt(n);if(t)try{const n=JSON.parse(t);return"string"==typeof n?n.trim():void 0}catch{return}}function ht(n){return void 0!==n&&Date.now()>n}function mt(n,t){const e=Q(ft(t));if(e&&!ht(function(n){const t=ft(`${n}Expiration`);if(!t)return;const e=Number(t);return Number.isFinite(e)?e:void 0}(t)))return e;const o=Q(pt(n));return o&&!ht(function(n){if(!V())try{var t,e;const o=null===(t=document.querySelector(`meta[name="${n}"]`))||void 0===t||null===(e=t.getAttribute("data-expiration"))||void 0===e?void 0:e.trim();if(!o)return;const r=Number(o);return Number.isFinite(r)?r:void 0}catch{return}}(n))?o:void 0}function gt(n){return"_shopify_y"===n?mt("shopify-y","serialized-shopifyY"):"_shopify_s"===n?mt("shopify-s","serialized-shopifyS"):void 0}function yt(n,t){try{Xn().increment("consent_tracking_api_tracking_token_read",{token:n,source:t})}catch{}}function vt(n){try{var t,e,o,r;return null===(t=performance)||void 0===t||null===(e=t.getEntriesByType("navigation")[0])||void 0===e||null===(o=e.serverTiming)||void 0===o||null===(r=o.find(t=>t.name==n))||void 0===r?void 0:r.description}catch{return}}function bt(){const n=document.querySelector('[data-serialized-id="app-base-path"]');if(!V()&&Boolean(null===(e=X())||void 0===e?void 0:e.__CUSTOMER_ACCOUNT__)||n){var t;const e=document.querySelector('[data-serialized-id="preview-mode-data"]');if("/"!==JSON.parse((null==n?void 0:n.textContent)||"null")||!1!==(null===(t=JSON.parse((null==e?void 0:e.textContent)||"null"))||void 0===t?void 0:t.inPreviewMode))return;return new URL("/customer/api/unstable/graphql",window.location.origin).href}var e;const{protocol:o,host:r}=function(){const n=ln().consentDomain||window.location.host;return{protocol:/^(localhost|127\.0\.0\.1)(:|$)/.test(n)?"http:":"https:",host:n}}();return`${o}//${r}/api/unstable/graphql.json`}async function xt(n){try{var t;if(Math.random()>.01)return;let e=null;if(n)try{const t=await n.json();e=Array.isArray(null==t?void 0:t.errors)&&t.errors.length>0}catch{}Xn().increment("consent_tracking_api_persist",{ok:String(!(null==n||!n.ok)),status:String(null!==(t=null==n?void 0:n.status)&&void 0!==t?t:"none"),graphql_errors:String(e)},1)}catch{}}function Ct(n,t,e){if(!0===ln().asyncConsent&&"loaded"!==yn())return;Xn().increment("consent_tracking_api_tracking_token_missing");const o=t?void 0:nn(),r=e?void 0:nn();return o&&jn("_shopify_y",o),r&&jn("_shopify_s",r),function(n,t){if(!V())try{const e=Q(n),o=Q(t);if(!e&&!o)return;const r=bt();if(!r)return;const i=new URLSearchParams,a={"content-type":"application/json"};e&&(i.set("_y",e),a["X-Shopify-UniqueToken"]=e),o&&(i.set("_s",o),a["X-Shopify-VisitToken"]=o);const c=`${r}?${i.toString()}`;let s;try{s=fetch(c,{headers:a,body:JSON.stringify({query:"query { consentManagement { cookies(visitorConsent:{}) { cookieDomain } } }",variables:{}}),method:"POST",mode:"cors",credentials:"include"})}catch(n){s=Promise.reject(n)}s.then(n=>xt(n),()=>xt(void 0))}catch{}}(o,r),"_shopify_y"===n?o:r}function wt(n){if(!Pn()&&!Rn())return;const t=function(n){var t,e,o,r,i,a;const c=X();if(!c)return;const s=null===(t=c.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e||null===(o=e.cachedToken)||void 0===o?void 0:o[n],l=null===(r=c.Shopify)||void 0===r||null===(i=r.customerPrivacy)||void 0===i||null===(a=i.cachedToken)||void 0===a?void 0:a[n+"_expires_at"];return!s||!l||l<(new Date).getTime()?void 0:Q(s)}(n);if(t)return yt(n,"window_cache"),t;if(function(){const n=X();if(null==n||!n.ShopPay)return!1;try{const t=Object(n.ShopPay);return Reflect.has(t,"trackingUnique")||Reflect.has(t,"trackingVisit")}catch{return!1}}()){const t=function(n){const t=X();if(!t||!t.ShopPay)return;const e={_shopify_y:"trackingUnique",_shopify_s:"trackingVisit"}[n];if(!e)return;return Q(t.ShopPay[e])}(n);return yt(n,"shop_pay"),t}const e=gt(n);if(e)return yt(n,"meta"),e;const o=function(n){const t=n.replace("_shopify",""),e=vt(t),o=Number(vt(`${t}e`));if(!o||Date.now()/1e3t.trim().startsWith(`${n}=`)))||void 0===o||null===(r=o.split("=")[1])||void 0===r?void 0:r.trim())}catch{return}}(n);if(r)return yt(n,"cookie"),r;yt(n,"missing")}function kt(){return wt("_shopify_y")}function _t(){return wt("_shopify_s")}function It(){return Tt("_shopify_y")}function Dt(){return Tt("_shopify_s")}function Tt(n){if(V())throw new Error("Token generateFallback is not supported in Node.js environments, just browsers.");const t=wt(n);if(t)return t;if((Pn()||Rn())&&!function(){const n=X();return!(!n||!Reflect.has(n,"ShopPay"))}())try{return Ct(n,kt(),_t())}catch{return}}const Et="95ba910bcec4542ef2a0b64cd7ca666c";function At(n,t,e){try{var o;!function(n){const t=new XMLHttpRequest;t.open("POST","https://error-analytics-production.shopifysvc.com",!0),t.setRequestHeader("Content-Type","application/json"),t.setRequestHeader("Bugsnag-Api-Key",Et),t.setRequestHeader("Bugsnag-Payload-Version","5");const e=function(n){var t;const e=function(n){return n?n.stackTrace||n.stack||n.description||n.name:void 0}(n.error);let o,r;if(null!==(t=n.error)&&void 0!==t&&t.name){var i,a;o=n.error.name,r=null!==(i=null===(a=n.error)||void 0===a?void 0:a.message)&&void 0!==i?i:""}else{const t=(e||"unknown error").split("\n")[0],i=t.indexOf(":");var c,s,l;if(i>0)o=t.substring(0,i).trim(),r=t.substring(i+1).trim();else o=t.trim()||"unknown error",r=(null===(c=n.error)||void 0===c?void 0:c.message)||(null===(s=n.error)||void 0===s?void 0:s.error)||(null===(l=n.error)||void 0===l?void 0:l.toString())||"No error message available"}return JSON.stringify({payloadVersion:5,notifier:{name:"ConsentTrackingAPI",version:"latest",url:"-"},events:[{exceptions:[{errorClass:o,message:r,stacktrace:[{file:"consent-tracking-api.js",lineNumber:"1",method:e}],type:"browserjs"}],context:"general",app:{id:"ConsentTrackingAPI",version:"latest"},metaData:{request:{shopId:n.shopId,shopUrl:window.location.href},device:{userAgent:window.navigator.userAgent},"Additional Notes":n.notes},unhandled:!1}]})}(n);t.send(e)}({error:n,context:null!=t?t:"",shopId:St()||(null===(o=window.Shopify)||void 0===o?void 0:o.shop),notes:null!=e?e:""})}catch(n){}}function Bt(n){return(...t)=>{try{return n(...t)}catch(n){throw n instanceof r||At(n),n}}}function St(){try{var n;const t=null===(n=document.getElementById("shopify-features"))||void 0===n?void 0:n.textContent;return t?JSON.parse(t).shopId:null}catch(n){return null}}function Ot(){return Rn()}function Pt(){return Pn()}function Rt(){return On()}function Ht(){return Hn()}function Mt(n={useBugsnagReporting:!1}){return(({useBugsnagReporting:n})=>{In()!=k&&!1===it()&&nt({sale_of_data:!1},()=>!1);const t={analyticsProcessingAllowed:Pn,currentVisitorConsent:dt,doesMerchantSupportGranularConsent:st,firstPartyMarketingAllowed:Ot,getCCPAConsent:ct,getRegion:et,getTrackingConsent:tt,getTrackingConsentMetafield:lt,marketingAllowed:Ot,preferencesProcessingAllowed:On,saleOfDataAllowed:Ht,saleOfDataRegion:Nn,setTrackingConsent:nt,shouldShowBanner:Mn,shouldShowGDPRBanner:at,thirdPartyMarketingAllowed:Ht,userCanBeTracked:rt,consentId:ut,unstable:{},__internal:{uniqueToken:kt,visitToken:_t,uniqueTokenWithFallback:It,visitTokenWithFallback:Dt},__metadata__:{name:"@shopify/consent-tracking-api",version:Ln,description:"Shopify Consent Tracking API"},config:ln()};if(!n)return t;const e=t;for(const n in e)if(e.hasOwnProperty(n)){const t=e[n];"function"==typeof t&&(e[n]=Bt(t))}return t})(n)}let Nt;function Lt(){const n=kt(),t=_t();return{...n?{"X-Shopify-UniqueToken":n}:{},...t?{"X-Shopify-VisitToken":t}:{}}}function jt(){if(V())return;if(Nt)return Nt;const n=yn();if("loading"===n)return;if("loaded"===n)return;const t=!0===ln().asyncConsent;if(!Dn()&&(!t||!on()))return void vn("loaded");if(!t)return;vn("loading");const e=Wn(0,{granular_consent:{}},void 0,{emitEvents:!1,getVisitorTokenHeaders:hn()?Lt:void 0}).then(()=>{vn("loaded")});return Nt=e,e.then(()=>{Nt===e&&(Nt=void 0)},()=>{"loading"===yn()&&vn(void 0),Nt===e&&(Nt=void 0)}),e}function qt(n,t){if(V())return;if(!n)return;const e=function(n){const t=new URL(n,window.location.origin),e=$t(n)?Ft(t):Ft(t).replace(window.location.origin,""),o=document.querySelectorAll(`a[href^="${e}"]`),r=document.querySelectorAll(`a[href*="${window.location.hostname}/customer_authentication"]`),i=new Set,a=[];for(let n=0;n