window.pxl_init=function(){window.pxl_getcookie=function(o){var e=("; "+document.cookie).split("; "+o+"=");if(2==e.length)return e.pop().split(";").shift()},window.localStorage&&(window.pxl_localStorage=function(o){return window.localStorage.getItem(o)},window.pxl_sessionStorage=function(o){return window.sessionStorage.getItem(o)}),window.pxl_setcookie=function(o,e,n,i,t){var s=new Date;s.setTime(s.getTime()+24*n*60*60*1e3);var l="expires="+s.toUTCString();document.cookie=o+"="+e+";"+l+";path="+i+";domain="+t},window.pxl_setpxlid=function(){var o=Math.floor(1e8+9e8*Math.random()).toString()+"."+Math.floor(1e8+9e8*Math.random()).toString()+"0",e=window.location.host.substring(window.location.host.lastIndexOf(".",window.location.host.lastIndexOf(".")-1)+1);return window.pxl_setcookie("pxlid",o,730,"/",e),window.localStorage&&window.localStorage.setItem("pxlid",o),o},window.pxl_setpxlsessionid=function(){var o=Math.floor(1e8+9e8*Math.random()).toString(),e=window.location.host.substring(window.location.host.lastIndexOf(".",window.location.host.lastIndexOf(".")-1)+1);return window.pxl_setcookie("pxlsessionid",o,1/48,"/",e),window.sessionStorage&&window.sessionStorage.setItem("pxlsessionid",o),o},window.pxl_checkpxlid=function(){return window.localStorage&&null!==window.localStorage.getItem("pxlid")?(void 0===pxl_getcookie("pxlid")&&window.pxl_setcookie("pxlid",window.pxl_localStorage("pxlid"),730,"/",window.location.host.substring(window.location.host.lastIndexOf(".",window.location.host.lastIndexOf(".")-1)+1)),window.pxl_localStorage("pxlid")):void 0!==window.pxl_getcookie("pxlid")?window.pxl_getcookie("pxlid"):window.pxl_setpxlid()},window.pxl_checkpxlsessionid=function(){return window.sessionStorage&&null!==window.sessionStorage.getItem("pxlsessionid")?(void 0===window.pxl_getcookie("pxlsessionid")&&window.pxl_setcookie("pxlsessionid",window.pxl_sessionStorage("pxlsessionid"),1/48,"/",window.location.host.substring(window.location.host.lastIndexOf(".",window.location.host.lastIndexOf(".")-1)+1)),window.pxl_sessionStorage("pxlsessionid")):void 0!==window.pxl_getcookie("pxlsessionid")?window.pxl_getcookie("pxlsessionid"):window.pxl_setpxlsessionid()},window.pxl_tag=function(o,e,n){var i=window.location.search;i=i.split("+").join(" ");for(var t,s={},l=/[?&]?([^=]+)=([^&]*)/g;t=l.exec(i);)s[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);var d=window.pxl_getcookie("_ga")||"",w={pxl_id:pxl_checkpxlid(),pxl_sessionid:pxl_checkpxlsessionid(),pxl_eventid:pxl_checkpxlsessionid()+"."+Math.floor(1e8+9e8*Math.random()).toString(),event:o||"",timestamp:(new Date).toISOString(),path:window.location.pathname||"",title:document.title||"",host:window.location.host||"",referrer:document.referrer||"",screen_height:screen.height||"",screen_width:screen.width||"",user_agent:navigator.userAgent||"",language:navigator.language||"",browser:navigator.vendor||"",ga_cid:d.substring(6,d.length)},a="";for(var r in w)""!=a&&(a+="&"),a+=r+"="+encodeURIComponent(w[r]);var p=e||{},c=n||{},x=encodeURIComponent(JSON.stringify(p)),g=encodeURIComponent(JSON.stringify(c)),h=encodeURIComponent(JSON.stringify(s)),_=document.createElement("img");_.style="width: 1px; height: 1px; display:none",_.async=!0,_.src="https://europe-west1-kernel-connectors.cloudfunctions.net/pxl_tag_zeeman?"+a+"&url_params="+h+"&event_params="+x+"&user_params="+g,document.body.appendChild(_)}},pxl_init();