(function(){var t,e,r,n,o={}.hasOwnProperty,i=[].slice,u=[].indexOf||function(t){for(var e=0,r=this.length;r>e;e++)if(e in this&&this[e]===t)return e;return-1};this.createGUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e,r;return e=16*Math.random()|0,r="x"===t?e:3&e|8,r.toString(16)})},null==(e=String.prototype).startsWith&&(e.startsWith=function(t){return this.slice(0,t.length)===t}),this.toQueryString=function(t){var e,r;return function(){var n;n=[];for(e in t)o.call(t,e)&&(r=t[e],n.push(encodeURIComponent(e)+"="+encodeURIComponent(r)));return n}().join("&")},this.setCookie=function(t,e,r){var n,o;return r?(n=new Date,n.setTime(n.getTime()+24*r*60*60*1e3),o="; expires="+n.toGMTString()):o="",document.cookie=t+"="+e+o+"; path=/"},this.getCookie=function(t){var e,r,n,o;for(o=t+"=",r=document.cookie.split(";"),n=0;nu;u++)c=s[u],l=getCookie("cf:"+c),writeCFMetaTag(c,l,function(t,e){return setCookie("cf:"+t,e,365)});return e()}catch(g){return o=g,n(o)}},this.setCFMetaTagsFromQueryString=function(e,r){var o,c,a,s,l,g,f,d;try{for(g=window.location.search.substring(1).split("&"),c=0,s=g.length;s>c;c++)l=g[c],f=l.split("="),a=f[0],d=f[1],u.call(i.call(t).concat(i.call(n)),a)>=0&&writeCFMetaTag(a,d,function(t,e){return setCookie("cf:"+t,e,365)});return e()}catch(m){return o=m,r(o)}},this.getCFMetaTag=function(t){return document.querySelector('meta[property="cf:'+t+'"]')},this.writeCFMetaTag=function(t,e,r){var n;return t=t.replace(/^utm_/i,""),null==e&&(e=""),n=getCFMetaTag(t),n?n.setAttribute("content",e):(n=document.createElement("meta"),n.setAttribute("property","cf:"+t),n.setAttribute("content",e),document.getElementsByTagName("head")[0].appendChild(n)),r(t,e)},this.queryStringFromCFMetaTags=function(){var t,e,r,n,o;for(r={},n=document.getElementsByTagName("meta"),t=0,e=n.length;e>t;t++)o=n[t],o.getAttribute("property")&&o.getAttribute("property").startsWith("cf:")&&(r[o.getAttribute("property").split(":")[1]]=o.getAttribute("content"));return toQueryString(r)}}).call(this),function(){this.recordPageview=function(t,e){var r;return r="Userevents::PageviewsCreatedSummary",recordUserEvent(r,t,e)}}.call(this),function(){this.recordUniqueVisitor=function(t,e){var r,n,o,i;try{if(n="visitor_id",i=getCookie("cf:"+n),!i)return i=createGUID(),setCookie("cf:"+n,i,365),o="Userevents::UniqueVisitorsCreatedSummary",recordUserEvent(o,t,e)}catch(u){return r=u,e(r)}}}.call(this),function(){this.recordUniquePageview=function(t,e){var r,n,o,i,u,c;try{if(i=getCFMetaTag("page_code"),o=i.getAttribute("content"),n=o+":visited",c=getCookie("cf:"+n),!c)return c=!0,setCookie("cf:"+n,c,365),u="Userevents::UniquePageviewsCreatedSummary",recordUserEvent(u,t,e)}catch(a){return r=a,e(r)}}}.call(this),function(){this.setClientWidth=function(t,e){var r;try{return writeCFMetaTag("client_width",document.documentElement.clientWidth,function(){return t()})}catch(n){return r=n,e(r)}}}.call(this),function(){this.setForm=function(t,e){var r,n,o,i,u,c,a,s,l;try{for(n=document.getElementById("cfAR"),s=document.getElementsByTagName("meta"),o=0,c=s.length;c>o;o++)a=s[o],a.getAttribute("property")&&a.getAttribute("property").startsWith("cf:")&&(u=a.getAttribute("property").split(":")[1],l=a.getAttribute("content"),i=document.createElement("input"),i.setAttribute("type","hidden"),i.setAttribute("name","userevents["+u+"]"),i.setAttribute("value",l),n.appendChild(i));return t()}catch(g){return r=g,e(r)}}}.call(this),function(){document.addEventListener("DOMContentLoaded",function(){return setCFMetaTagsFromCookies(done("setCFMetaTagsFromCookies"),logError),setCFMetaTagsFromQueryString(done("setCFMetaTagsFromQueryString"),logError),setClientWidth(done("setClientWidth"),logError),recordPageview(done("recordPageview"),logError),recordUniquePageview(done("recordUniquePageview"),logError),recordUniqueVisitor(done("recordUniqueVisitor"),logError),setForm(done("setForm"),logError)})}.call(this);