"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="_ga_internal_traffic",i=365*24*60*60,c=e=>{if(typeof document>"u")return;const t=e?"1":"0",n="/";document.cookie=`${o}=${t}; max-age=${i}; path=${n}; SameSite=Lax`,console.log(`Internal traffic cookie ${e?"enabled":"disabled"}`)},r=()=>{if(typeof document>"u")return!1;const e=document.cookie.split(";");for(const t of e){const[n,a]=t.trim().split("=");if(n===o)return a==="1"}return!1},f=()=>{typeof document>"u"||(document.cookie=`${o}=; max-age=0; path=/; SameSite=Lax`,console.log("Internal traffic cookie cleared"))},l=(e,t)=>e?e===t:!1;exports.clearInternalTrafficCookie=f;exports.isInternalTrafficEnabled=r;exports.setInternalTrafficCookie=c;exports.validateToken=l;
