1const d="cookie_consent";const m="cookie-accepted",p=["accepted","refused"],r="cookie-consent-change",S="cookie-settings-open",C="cookie-consent",l="cookie-consent-sync";let i=null;const E=()=>(!i&&typeof BroadcastChannel<"u"&&(i=new BroadcastChannel(C),i.unref?.()),i),N=e=>typeof e=="string"&&/^(G-|UA-|GT-)/.test(e),g=e=>{const t=document.cookie.split("; ").find(n=>n.startsWith(`${e}=`));return t?decodeURIComponent(t.slice(e.length+1)):null},u=()=>{if(typeof document>"u")return null;const[e,t]=(g(d)||"").split(".");return Number(e)!==1?null:p.includes(t)?t:null},v=()=>{const e=document.cookie.split("; ").map(o=>o.split("=")[0]).filter(o=>/^(_ga|_ga_.+|_gid|_gat.*)$/.test(o)),t=window.location.hostname.split("."),n=t.map((o,c)=>t.slice(c).join(".")),s="expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";e.forEach(o=>{document.cookie=`${o}=; ${s}`,n.forEach(c=>{document.cookie=`${o}=; ${s}; domain=${c}`})})},_=e=>{const t=u(),n=window.location.protocol==="https:"?"; Secure":"";document.cookie=`${d}=1.${e}; path=/; max-age=31536000; SameSite=Lax${n}`;try{localStorage.removeItem(m)}catch{}E()?.postMessage({status:e});try{localStorage.setItem(l,`${e}:${Date.now()}`)}catch{}if(t==="accepted"&&e!=="accepted"){v(),window.location.reload();return}window.dispatchEvent(new CustomEvent(r,{detail:e}))},h=e=>{const t=()=>e(u()),n=a=>e(a.detail),s=a=>{a.key===l&&t()},o=()=>{document.visibilityState==="visible"&&t()},c=E();return window.addEventListener(r,n),window.addEventListener("storage",s),document.addEventListener("visibilitychange",o),c?.addEventListener("message",t),()=>{window.removeEventListener(r,n),window.removeEventListener("storage",s),document.removeEventListener("visibilitychange",o),c?.removeEventListener("message",t)}},w=()=>{window.dispatchEvent(new CustomEvent(S))};export{S as O,h as a,v as c,u as g,N as i,w as o,_ as s};
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.