1import{t as I,g as w,a as U,U as r,s as _}from"./get-utm-taxonomy.DfO5DBPF.js";import"./_sentry-release-injection-file.CJVtbJjU.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="30d511df-5cf4-48fe-841f-a9ad2f188e04",t._sentryDebugIdIdentifier="sentry-dbid-30d511df-5cf4-48fe-841f-a9ad2f188e04")}catch{}const i=document.getElementById("quiz-link"),f=(i==null?void 0:i.getAttribute("value"))||"",E=new URL(window.location.href),C=I(E.pathname)||"main",M=w(),x=t=>{const a=t.parentSelector??"section",y=t.buttonSelector??"a",{hrefIncludes:d=[],classIncludes:h=[],custom:g=null}=t.rules??{};document.querySelectorAll(a).forEach(o=>{const p=Array.from(o.querySelectorAll(y)).filter(s=>{const l=d.length===0?!0:d.some(e=>e&&s.href.includes(e)),c=h.length===0?!0:h.some(e=>e&&s.classList.contains(e)),u=g?g(s,o):!0;return l&&c&&u});if(p.length===0)return;const S=t.utmCampaign??(U(o.className)||"block");p.forEach((s,l)=>{var b;const c=((b=s.textContent)==null?void 0:b.trim())||"button",u=`${U(c)}_${l+1}`,e=new URL(s.href);t.clearExistingUtms&&Array.from(e.searchParams.keys()).filter(n=>n.toLowerCase().startsWith("utm_")).forEach(n=>e.searchParams.delete(n));const m={[r.UTM_SOURCE]:_,[r.UTM_MEDIUM]:C,[r.UTM_CAMPAIGN]:S,[r.UTM_CONTENT]:u,[r.UTM_TAXONOMY]:M},T=t.utmTags&&t.utmTags.length>0?new Set(t.utmTags):new Set(Object.keys(m));for(const n of Object.keys(m))T.has(n)&&e.searchParams.set(n,m[n]);s.href=e.toString()})})},A=[{parentSelector:"section",buttonSelector:"a",rules:{hrefIncludes:[f],classIncludes:["btn"]},clearExistingUtms:!0},{parentSelector:".banner-wide",buttonSelector:"a",rules:{hrefIncludes:[f],classIncludes:["btn"]},clearExistingUtms:!0},{parentSelector:".result-popup",buttonSelector:"a",rules:{classIncludes:["btn"]},clearExistingUtms:!0},{parentSelector:"#tests-fact__wrapper",buttonSelector:"a",rules:{hrefIncludes:[f],classIncludes:["btn"]},utmCampaign:"test_result",clearExistingUtms:!0}];A.forEach(x); 2//# sourceMappingURL=utm.B-16wC29.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.