(()=>{const a={newPotentialVisitorTrackingId:"l18its04ldap32f9miy6ttlk11317wnevs2rcgf0blvbapy0we27xrndrvrt260l",visitorTrackingIdCookieName:"clive-visitor-tid-151",host:"live.clive.cloud",accountId:"151"},c=a.visitorTrackingIdCookieName,l=(e,o)=>{const s=e+"=",r=decodeURIComponent(o).split(";");for(let t=0;t<r.length;t++){let n=r[t];for(;n.charAt(0)==" ";)n=n.substring(1);if(n.indexOf(s)==0)return n.substring(s.length,n.length)}return""},g=()=>{const e=window.location.hostname;if(!isNaN(Number(e.replace(/\\./gi,""))))return null;const o=e.split("."),s=o.length;return s<2?null:"."+o[s-2]+"."+o[s-1]},u=(e,o,s)=>{const i=new Date;i.setTime(i.getTime()+s*24*60*60*1e3);const r="expires="+i.toUTCString(),t=g(),n=t?";Domain="+encodeURIComponent(t):"";document.cookie=e+"="+o+";"+r+";path=/"+n,l(e,document.cookie)||(document.cookie=e+"="+o+";"+r+";path=/")},d=e=>{u(c,e,3650)},p=()=>{let e=l(c,document.cookie);return e||(e=a.newPotentialVisitorTrackingId,d(a.newPotentialVisitorTrackingId)),e},k=(e,o,s,i,r)=>{const t=new XMLHttpRequest;t.withCredentials=r!==!1,t.open(o,e,!0);for(let n in i)t[n]=i[n];t.setRequestHeader("Clive-Referer",window.location.href),t.send(s)},v=p(),h=encodeURIComponent(document.title);k(`https://${a.host}/page-views/${a.accountId}/visitors/${v}/register?t=${h}`,"GET",null,{onload:function(){if(this.status===200){const e=JSON.parse(this.responseText);e.success&&e.newTrackingId&&d(e.newTrackingId)}}});})();