@snowplow/browser-tracker
Advanced tools
Comparing version 3.1.5 to 3.1.6
/*! | ||
* Browser tracker for Snowplow v3.1.5 (http://bit.ly/sp-js) | ||
* Browser tracker for Snowplow v3.1.6 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -4,0 +4,0 @@ * Licensed under BSD-3-Clause |
/*! | ||
* Browser tracker for Snowplow v3.1.5 (http://bit.ly/sp-js) | ||
* Browser tracker for Snowplow v3.1.6 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -7,73 +7,73 @@ * Licensed under BSD-3-Clause | ||
'use strict';(function(g,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports):"function"===typeof define&&define.amd?define(["exports"],w):(g="undefined"!==typeof globalThis?globalThis:g||self,w(g.snowplowBrowserTracking={}))})(this,function(g){function w(a,b,c){if(c||2===arguments.length)for(var d=0,f=b.length,e;d<f;d++)!e&&d in b||(e||(e=Array.prototype.slice.call(b,0,d)),e[d]=b[d]);return a.concat(e||b)}function ba(a){var b={exports:{}};return a(b,b.exports),b.exports}function vb(a){if(!a)return a; | ||
var b=0,c=0,d=[];if(a){a=unescape(encodeURIComponent(a));do{var f=a.charCodeAt(b++);var e=a.charCodeAt(b++);var h=a.charCodeAt(b++);var k=f<<16|e<<8|h;f=k>>18&63;e=k>>12&63;h=k>>6&63;k&=63;d[c++]=K.charAt(f)+K.charAt(e)+K.charAt(h)+K.charAt(k)}while(b<a.length);b=d.join("");a=a.length%3;a=(a?b.slice(0,a-3):b)+"===".slice(a||3)}return a.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ca(){var a={},b=[],c=[],d,f=function(b,c){null!=c&&""!==c&&(a[b]=c)};return{add:f,addDict:function(a){for(var b in a)Object.prototype.hasOwnProperty.call(a, | ||
b)&&f(b,a[b])},addJson:function(a,d,f){f&&na(f)&&(a={keyIfEncoded:a,keyIfNotEncoded:d,json:f},c.push(a),b.push(a))},getPayload:function(){return a},getJson:function(){return b},withJsonProcessor:function(a){d=a},build:function(){null===d||void 0===d?void 0:d(this,c);return a}}}function wb(a){return function(b,c){for(var d=0;d<c.length;d++){var f=c[d],e=JSON.stringify(f.json);a?b.add(f.keyIfEncoded,vb(e)):b.add(f.keyIfNotEncoded,e)}c.length=0}}function na(a){if(!oa(a))return!1;for(var b in a)if(Object.prototype.hasOwnProperty.call(a, | ||
b))return!0;return!1}function oa(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function xb(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var d=[],f=[],e=0;e<c.length;e++){var h=c[e];pa(h)?d.push(h):A(h)&&f.push(h)}a=a.concat(f);b=b.concat(d)},clearGlobalContexts:function(){b=[];a=[]},removeGlobalContexts:function(c){for(var d=function(c){pa(c)? | ||
b=b.filter(function(a){return JSON.stringify(a)!==JSON.stringify(c)}):A(c)&&(a=a.filter(function(a){return JSON.stringify(a)!==JSON.stringify(c)}))},f=0;f<c.length;f++)d(c[f])},getApplicableContexts:function(c){a:{var d=0;for(var f=c.getJson();d<f.length;d++){var e=f[d];if("ue_px"===e.keyIfEncoded&&"object"===typeof e.json.data&&(e=e.json.data.schema,"string"==typeof e)){d=e;break a}}d=""}f=c.getPayload().e;e="string"===typeof f?f:"";f=[];var h=qa(a,c,e,d);f.push.apply(f,h);c=yb(b,c,e,d);f.push.apply(f, | ||
c);return f}}}function zb(a){return{addPluginContexts:function(b){var c=null!==b&&void 0!==b?b:[];a.forEach(function(a){try{a.contexts&&c.push.apply(c,a.contexts())}catch(f){I.error("Error adding plugin contexts",f)}});return c}}}function Ab(a){if("*"===a[0]||"*"===a[1])return!1;if(0<a.slice(2).length){var b=!1,c=0;for(a=a.slice(2);c<a.length;c++)if("*"===a[c])b=!0;else if(b)return!1;return!0}return 2==a.length?!0:!1}function Ca(a){return(a=a.split("."))&&1<a.length?Ab(a):!1}function Da(a){a=/^iglu:((?:(?:[a-zA-Z0-9-_]+|\*).)+(?:[a-zA-Z0-9-_]+|\*))\/([a-zA-Z0-9-_.]+|\*)\/jsonschema\/([1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)$/.exec(a); | ||
if(null!==a&&Ca(a[1]))return a.slice(1,6)}function R(a){if(a=Da(a)){var b=a[0];return 5===a.length&&Ca(b)}return!1}function Bb(a){return Array.isArray(a)&&a.every(function(a){return"string"===typeof a})}function ra(a){return Bb(a)?a.every(function(a){return R(a)}):"string"===typeof a?R(a):!1}function E(a){return na(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function Cb(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a, | ||
"accept"))if(ra(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(ra(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function da(a){return"function"===typeof a&&1>=a.length}function A(a){return da(a)||E(a)}function Ea(a){return Array.isArray(a)&&2===a.length?Array.isArray(a[1])?da(a[0])&&a[1].every(A):da(a[0])&&A(a[1]):!1}function Fa(a){return Array.isArray(a)&&2===a.length?Cb(a[0])?Array.isArray(a[1])?a[1].every(A):A(a[1]):!1:!1}function pa(a){return Ea(a)|| | ||
Fa(a)}function Db(a,b){var c=0,d=0,f=a.accept;Array.isArray(f)?a.accept.some(function(a){return ea(a,b)})&&d++:"string"===typeof f&&ea(f,b)&&d++;f=a.reject;Array.isArray(f)?a.reject.some(function(a){return ea(a,b)})&&c++:"string"===typeof f&&ea(f,b)&&c++;return 0<d&&0===c?!0:!1}function ea(a,b){if(!R(a))return!1;a=Da(a);b=/^iglu:([a-zA-Z0-9-_.]+)\/([a-zA-Z0-9-_]+)\/jsonschema\/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$/.exec(b);b=null!==b?b.slice(1,6):void 0;if(a&&b){if(!Eb(a[0],b[0]))return!1; | ||
for(var c=1;5>c;c++)if(!Ga(a[c],b[c]))return!1;return!0}return!1}function Eb(a,b){b=b.split(".");a=a.split(".");if(b&&a){if(b.length!==a.length)return!1;for(var c=0;c<a.length;c++)if(!Ga(b[c],a[c]))return!1;return!0}return!1}function Ga(a,b){return a&&b&&"*"===a||a===b}function Ha(a){return Array.isArray(a)?a:[a]}function qa(a,b,c,d){var f;a=Ha(a).map(function(a){a:if(E(a))a=[a];else{if(da(a)){b:{var f=void 0;try{var e={event:b.getPayload(),eventType:c,eventSchema:d};f=a(e);if(Array.isArray(f)&&f.every(E)|| | ||
E(f)){var g=f;break b}g=void 0;break b}catch(y){}g=void 0}if(E(g)){a=[g];break a}else if(Array.isArray(g)){a=g;break a}}a=void 0}if(a&&0!==a.length)return a});return(f=[]).concat.apply(f,a.filter(function(a){return null!=a&&a.filter(Boolean)}))}function yb(a,b,c,d){var f;a=Ha(a).map(function(a){a:{if(Ea(a)){var f=a[0],e=!1;try{var g={event:b.getPayload(),eventType:c,eventSchema:d};e=f(g)}catch(y){e=!1}if(!0===e){a=qa(a[1],b,c,d);break a}}else if(Fa(a)&&Db(a[0],d)){a=qa(a[1],b,c,d);break a}a=[]}if(a&& | ||
0!==a.length)return a});return(f=[]).concat.apply(f,a.filter(function(a){return null!=a&&a.filter(Boolean)}))}function Fb(a){return null==a?{type:"dtm",value:(new Date).getTime()}:"number"===typeof a?{type:"dtm",value:a}:"ttm"===a.type?{type:"ttm",value:a.value}:{type:"dtm",value:a.value||(new Date).getTime()}}function Gb(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,d=null!==c&&void 0!==c?c:[];a=function(a,b,c){function d(a,b){a=e.getApplicableContexts(a);var c=[];b&&b.length&&c.push.apply(c, | ||
b);a&&a.length&&c.push.apply(c,a);return c}var f=zb(b),e=xb(),h=a,k={};return{track:function(a,e,g){a.withJsonProcessor(wb(h));a.add("eid",r.v4());a.addDict(k);g=Fb(g);a.add(g.type,g.value.toString());e=d(a,f.addPluginContexts(e));e=e&&e.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:e}:void 0;void 0!==e&&a.addJson("cx","co",e);b.forEach(function(b){try{b.beforeTrack&&b.beforeTrack(a)}catch(p){I.error("Plugin beforeTrack",p)}});"function"===typeof c&&c(a);var F= | ||
a.build();b.forEach(function(a){try{a.afterTrack&&a.afterTrack(F)}catch(p){I.error("Plugin afterTrack",p)}});return F},addPayloadPair:function(a,b){k[a]=b},getBase64Encoding:function(){return h},setBase64Encoding:function(a){h=a},addPayloadDict:function(a){for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&(k[b]=a[b])},resetPayloadPairs:function(a){k=oa(a)?a:{}},setTrackerVersion:function(a){k.tv=a},setTrackerNamespace:function(a){k.tna=a},setAppId:function(a){k.aid=a},setPlatform:function(a){k.p= | ||
a},setUserId:function(a){k.uid=a},setScreenResolution:function(a,b){k.res=a+"x"+b},setViewport:function(a,b){k.vp=a+"x"+b},setColorDepth:function(a){k.cd=a},setTimezone:function(a){k.tz=a},setLang:function(a){k.lang=a},setIpAddress:function(a){k.ip=a},setUseragent:function(a){k.ua=a},addGlobalContexts:function(a){e.addGlobalContexts(a)},clearGlobalContexts:function(){e.clearGlobalContexts()},removeGlobalContexts:function(a){e.removeGlobalContexts(a)}}}(null!==b&&void 0!==b?b:!0,d,a.callback);var f= | ||
q(q({},a),{addPlugin:function(a){var b,c;a=a.plugin;d.push(a);null===(b=a.logger)||void 0===b?void 0:b.call(a,I);null===(c=a.activateCorePlugin)||void 0===c?void 0:c.call(a,f)}});null===d||void 0===d?void 0:d.forEach(function(a){var b,c;null===(b=a.logger)||void 0===b?void 0:b.call(a,I);null===(c=a.activateCorePlugin)||void 0===c?void 0:c.call(a,f)});return f}function Hb(a){var b=a.event;a=b.schema;var c=b.data;b=ca();a={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0", | ||
data:{schema:a,data:c}};b.add("e","ue");b.addJson("ue_px","ue_pr",a);return b}function Ib(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var d=ca();d.add("e","pv");d.add("url",b);d.add("page",c);d.add("refr",a);return d}function Jb(a){var b=a.pageUrl,c=a.pageTitle,d=a.referrer,f=a.minXOffset,e=a.maxXOffset,h=a.minYOffset;a=a.maxYOffset;var k=ca();k.add("e","pp");k.add("url",b);k.add("page",c);k.add("refr",d);f&&!isNaN(Number(f))&&k.add("pp_mix",f.toString());e&&!isNaN(Number(e))&&k.add("pp_max",e.toString()); | ||
h&&!isNaN(Number(h))&&k.add("pp_miy",h.toString());a&&!isNaN(Number(a))&&k.add("pp_may",a.toString());return k}function Kb(a){var b=a.category,c=a.action,d=a.label,f=a.property;a=a.value;var e=ca();e.add("e","se");e.add("se_ca",b);e.add("se_ac",c);e.add("se_la",d);e.add("se_pr",f);e.add("se_va",null==a?void 0:a.toString());return e}function Lb(){try{var a=!!window.localStorage}catch(c){a=!0}if(!a)return!1;try{var b=window.localStorage;b.setItem("modernizr","modernizr");b.removeItem("modernizr");return!0}catch(c){return!1}} | ||
function Mb(){if("innerWidth"in window){var a=window.innerWidth;var b=window.innerHeight}else b=document.documentElement||document.body,a=b.clientWidth,b=b.clientHeight;return 0<=a&&0<=b?a+"x"+b:null}function Nb(){var a=document.documentElement,b=document.body,c=Math.max(a.clientWidth,a.offsetWidth,a.scrollWidth);a=Math.max(a.clientHeight,a.offsetHeight,a.scrollHeight,b?Math.max(b.offsetHeight,b.scrollHeight):0);return isNaN(c)||isNaN(a)?"":c+"x"+a}function nb(a){return Number.isInteger&&Number.isInteger(a)|| | ||
"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function ob(a){if(!a||"string"!==typeof a.valueOf()){a=a.text||"";var b=document.getElementsByTagName("title");b&&null!=b[0]&&(a=b[0].text)}return a}function Va(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a);return b?b[1]:a}function pb(a){var b=a.length;"."===a.charAt(--b)&&(a=a.slice(0,b));"*."===a.slice(0,2)&&(a=a.slice(1));return a}function Wa(a){var b=window,c="",d=sa("referrer",b.location.href)||sa("referer",b.location.href); | ||
if(d)return d;if(a)return a;try{c=b.top.document.referrer}catch(f){if(b.parent)try{c=b.parent.document.referrer}catch(e){c=""}}""===c&&(c=document.referrer);return c}function B(a,b,c,d){if(a.addEventListener)return a.addEventListener(b,c,d),!0;if(a.attachEvent)return a.attachEvent("on"+b,c);a["on"+b]=c}function sa(a,b){return(a=(new RegExp("^[^#]*[?&]"+a+"=([^&#]*)")).exec(b))?decodeURIComponent(a[1].replace(/\+/g," ")):null}function Ia(a,b,c){void 0===c&&(c=63072E3);try{var d=window.localStorage, | ||
f=Date.now()+1E3*c;d.setItem(a+".expires",f.toString());d.setItem(a,b);return!0}catch(e){return!1}}function qb(a){try{var b=window.localStorage;b.removeItem(a);b.removeItem(a+".expires");return!0}catch(c){return!1}}function Ob(a,b){for(var c=window.location.hostname,d="_sp_root_domain_test_"+(new Date).getTime(),f="_test_value_"+(new Date).getTime(),e=c.split("."),h=e.length-1;0<=h;){var k=e.slice(h,e.length).join(".");x(d,f,0,"/",k,a,b);if(x(d)===f){x(d,"",-1,"/",k,a,b);c=document.cookie.split("; "); | ||
d=[];for(f=0;f<c.length;f++)"_sp_root_domain_test_"===c[f].substring(0,21)&&d.push(c[f]);c=d;for(d=0;d<c.length;d++)x(c[d],"",-1,"/",k,a,b);return k}--h}return c}function x(a,b,c,d,f,e,h){return 1<arguments.length?document.cookie=a+"="+encodeURIComponent(null!==b&&void 0!==b?b:"")+(c?"; Expires="+(new Date(+new Date+1E3*c)).toUTCString():"")+(d?"; Path="+d:"")+(f?"; Domain="+f:"")+(e?"; SameSite="+e:"")+(h?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+a+"=")[1]||"").split(";")[0])} | ||
function Pb(a,b,c,d,f,e,h,k,g,l,J){function y(a){var b="?",c={co:!0,cx:!0},d=!0,f;for(f in a)a.hasOwnProperty(f)&&!c.hasOwnProperty(f)&&(d?d=!1:b+="&",b+=encodeURIComponent(f)+"="+encodeURIComponent(a[f]));for(var e in c)a.hasOwnProperty(e)&&c.hasOwnProperty(e)&&(b+="&"+e+"="+encodeURIComponent(a[e]));return b}function fa(a){var b=Object.keys(a).map(function(b){return[b,a[b]]}).reduce(function(a,b){a[b[0]]=b[1].toString();return a},{});return{evt:b,bytes:F(JSON.stringify(b))}}function F(a){for(var b= | ||
0,c=0;c<a.length;c++){var d=a.charCodeAt(c);127>=d?b+=1:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,c++):b=65535>d?b+3:b+4}return b}function m(a){for(void 0===a&&(a=!1);n.length&&"string"!==typeof n[0]&&"object"!==typeof n[0];)n.shift();if(1>n.length)G=!1;else{if(!M||"string"!==typeof M.valueOf())throw"No collector configured";G=!0;if(B){var b=function(a){for(var b=0,c=0;b<a.length&&!(c+=a[b].bytes,c>=h);)b+=1;return b},d=void 0;if(ha(n)){d=M;var f=r(d,!0,a);var e=b(n)}else d=p(n[0]),f=r(d,!1,a),e=1;var k= | ||
setTimeout(function(){f.abort();G=!1},l),F=function(a){for(var b=0;b<a;b++)n.shift();c&&Ia(Ka,JSON.stringify(n.slice(0,g)));m()};f.onreadystatechange=function(){4===f.readyState&&200<=f.status&&400>f.status?(clearTimeout(k),F(e)):4===f.readyState&&400<=f.status&&(clearTimeout(k),G=!1)};if(ha(n)){if(b=n.slice(0,e),0<b.length){a=!1;b=b.map(function(a){return a.evt});if(v){var L=new Blob([x(Ua(b))],{type:"application/json"});try{a=navigator.sendBeacon(d,L)}catch(Ja){a=!1}}!0===a?F(e):f.send(x(Ua(b)))}}else f.send()}else if(J|| | ||
ha(n))G=!1;else{d=new Image(1,1);var y=!0;d.onload=function(){y&&(y=!1,n.shift(),c&&Ia(Ka,JSON.stringify(n.slice(0,g))),m())};d.onerror=function(){y&&(G=y=!1)};d.src=p(n[0]);setTimeout(function(){y&&G&&(y=!1,m())},l)}}}function r(a,b,c){var d=new XMLHttpRequest;b?(d.open("POST",a,!c),d.setRequestHeader("Content-Type","application/json; charset=UTF-8")):d.open("GET",a,!c);d.withCredentials=!0;J&&d.setRequestHeader("SP-Anonymous","*");return d}function x(a){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4", | ||
data:a})}function Ua(a){for(var b=(new Date).getTime().toString(),c=0;c<a.length;c++)a[c].stm=b;return a}function p(a){return k?M+a.replace("?","?stm="+(new Date).getTime()+"&"):M+a}function w(a){function b(a,b,c){return(c=c.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&&c.length?parseInt(c[0])<=a||parseInt(c[0])===a&&parseInt(c[1])<=b:!1}function c(a){return a.match("Version/.* Safari/")&&!a.match("Chrom(e|ium)")}return function(a,b){return(b=b.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&& | ||
b.length?parseInt(b[0])<=a:!1}(13,a)||b(10,15,a)&&c(a)}var G=!1,M,n=[];d="string"===typeof d?d.toLowerCase():d;var q=null===d||!0===d||"beacon"===d||"true"===d,v=!(!(q&&window.navigator&&window.navigator.sendBeacon)||w(window.navigator.userAgent))&&q,B=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),u="get"!==d&&B&&("post"===d||q),A=u?f:"/i",Ka="snowplowOutQueue_"+a+"_"+(u?"post2":"get");e=c&&Lb()&&u&&e||1;if(c)try{var E=window.localStorage.getItem(Ka);n=E?JSON.parse(E):[]}catch(L){}Array.isArray(n)|| | ||
(n=[]);b.outQueues.push(n);B&&1<e&&b.bufferFlushers.push(function(a){G||m(a)});var ha=function(a){return"object"===typeof a[0]};return{enqueueRequest:function(a,b){M=b+A;if(u){a=fa(a);if(a.bytes>=h){I.warn("Event ("+a.bytes+"B) too big, max is "+h);r(M,!0,!1).send(x(Ua([a.evt])));return}n.push(a)}else n.push(y(a));a=!1;c&&(a=Ia(Ka,JSON.stringify(n.slice(0,g))));G||a&&!(n.length>=e)||m()},executeQueue:function(){G||m()},setUseLocalStorage:function(a){c=a},setAnonymousTracking:function(a){J=a},setCollectorUrl:function(a){M= | ||
a+A},setBufferSize:function(a){e=a}}}function rb(a,b,c){if("translate.googleusercontent.com"===a)""===c&&(c=b),a=(a=/^(?:https?|ftp)(?::\/*(?:[^?]+))([?][^#]+)/.exec(b))&&1<(null===a||void 0===a?void 0:a.length)?sa("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=Va(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=document.links[0].href,a=Va(b);return[a,b,c]}function Qb(a,b,c,d,f,e){var h;void 0===e&&(e={});a=function(a,b,c,d,f,e){function h(){S=rb(window.location.hostname,window.location.href, | ||
Wa());S[1]!==N&&(ta=Wa(N));ra=pb(S[0]);N=S[1]}function k(a){var b=(new Date).getTime();a=a.currentTarget;if(null===a||void 0===a?0:a.href){b="_sp="+(ia+"."+b);var c=a.href.split("#"),d=c[0].split("?"),e=d.shift();if(d=d.join("?")){for(var f=!0,T=d.split("&"),h=0;h<T.length;h++)if("_sp="===T[h].substr(0,4)){f=!1;T[h]=b;d=T.join("&");break}f&&(d=b+"&"+d)}else d=b;c[0]=e+"?"+d;b=c.join("#");a.href=b}}function g(a){for(var b=0;b<document.links.length;b++){var c=document.links[b];!c.spDecorationEnabled&& | ||
a(c)&&(B(c,"click",k,!0),B(c,"mousedown",k,!0),c.spDecorationEnabled=!0)}}function l(a){if(xa){var b=/#.*/;a=a.replace(b,"")}ya&&(b=/[{}]/g,a=a.replace(b,""));return a}function y(a){return(a=/^([a-z]+):/.exec(a))?a[1]:null}function m(a){a=ja+a+"."+U;if("localStorage"==t){try{var b=window.localStorage,c=b.getItem(a+".expires");if(null===c||+c>Date.now())var d=b.getItem(a);else b.removeItem(a),b.removeItem(a+".expires"),d=void 0}catch(Ub){d=void 0}return d}if("cookie"==t||"cookieAndLocalStorage"==t)return x(a)} | ||
function fa(){h();U=Rb((ua||ra)+(Xa||"/")).slice(0,4)}function J(){La=(new Date).getTime()}function n(){var a=u(),b=a[0];b<Ma?Ma=b:b>Na&&(Na=b);a=a[1];a<Oa?Oa=a:a>Pa&&(Pa=a);J()}function u(){var a=document.documentElement;return a?[a.scrollLeft||window.pageXOffset,a.scrollTop||window.pageYOffset]:[0,0]}function w(){var a=u(),b=a[0];Na=Ma=b;Pa=Oa=a=a[1]}function v(){A(ja+"ses."+U,"*",sb)}function Ta(a,b,c,d,f,e){A(ja+"id."+U,a+"."+b+"."+c+"."+d+"."+f+"."+e,Ba)}function A(a,b,c){if(!O||ka)"localStorage"== | ||
t?Ia(a,b,c):("cookie"==t||"cookieAndLocalStorage"==t)&&x(a,b,c,Xa,ua,Qa,Ra)}function F(a){var b=ja+"id."+U,c=ja+"ses."+U;qb(b);qb(c);x(b,"",-1,"/",ua,Qa,Ra);x(c,"",-1,"/",ua,Qa,Ra);null!==a&&void 0!==a&&a.preserveSession||(z=r.v4(),H=0);null!==a&&void 0!==a&&a.preserveUser||(ia=r.v4(),V=null)}function E(a){a&&a.stateStorageStrategy&&(e.stateStorageStrategy=a.stateStorageStrategy,t=na(e));O=!!e.anonymousTracking;ka=oa(e);Ya=pa(e);P.setUseLocalStorage("localStorage"==t||"cookieAndLocalStorage"==t); | ||
P.setAnonymousTracking(Ya)}function ha(){if(!O||ka){var a="none"!=t&&!!m("ses"),b=L();b[1]?ia=b[1]:(ia=O?"":r.v4(),b[1]=ia);z=b[6];a||(b[3]++,z=r.v4(),b[6]=z,b[5]=b[4]);"none"!=t&&(v(),b[4]=Math.round((new Date).getTime()/1E3),b.shift(),Ta.apply(null,b))}}function L(){if("none"==t)return[];var a=Math.round((new Date).getTime()/1E3),b=m("id");b?(a=b.split("."),a.unshift("0")):a=["1",ia,a,0,a,""];a[6]&&"undefined"!==a[6]||(a[6]=r.v4());return a}function mb(a){return 0===a.indexOf("http")?a:("https:"=== | ||
document.location.protocol?"https":"http")+"://"+a}function Q(){tb&&null!=f.pageViewId||(f.pageViewId=r.v4())}function K(){null==f.pageViewId&&(f.pageViewId=r.v4());return f.pageViewId}function ca(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:K()}}]}}}function da(a){var b=a.title,c=a.context,d=a.timestamp;a=a.contextCallback;h();ub&&Q();ub=!0;la=document.title;va=b;b=ob(va||la);C.track(Ib({pageUrl:l(ma||N),pageTitle:b,referrer:l(Sa|| | ||
ta)}),(c||[]).concat(a?a():[]),d);d=new Date;b=!1;if(D.enabled&&!D.installed){b=D.installed=!0;var f={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0},set:function(){}}),c=function(){};window.addEventListener("testPassiveEventSupport",c,b);window.removeEventListener("testPassiveEventSupport",c,b);f.hasSupport=a}}};f.update();var e="onwheel"in document.createElement("div")?"wheel":void 0!== | ||
document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(f,"hasSupport")?B(document,e,J,{passive:!0}):B(document,e,J);w();e=function(a,b){void 0===b&&(b=J);return function(a){return B(document,a,b)}};"click mouseup mousedown mousemove keypress keydown keyup".split(" ").forEach(e(document));["resize","focus","blur"].forEach(e(window));e(window,n)("scroll")}if(D.enabled&&(Ha||b))for(d in La=d.getTime(),d=void 0,D.configurations)if(b=D.configurations[d])window.clearInterval(b.activityInterval), | ||
ea(b,c,a)}function ea(a,b,c){var d=function(a,b){h();a({context:b,pageViewId:K(),minXOffset:Ma,minYOffset:Oa,maxXOffset:Na,maxYOffset:Pa});w()},e=function(){La+a.configHeartBeatTimer>(new Date).getTime()&&d(a.callback,(b||[]).concat(c?c():[]))};a.activityInterval=0!=a.configMinimumVisitLength?window.setTimeout(function(){La+a.configMinimumVisitLength>(new Date).getTime()&&d(a.callback,(b||[]).concat(c?c():[]));a.activityInterval=window.setInterval(e,a.configHeartBeatTimer)},a.configMinimumVisitLength): | ||
window.setInterval(e,a.configHeartBeatTimer)}function ba(a){var b=a.minimumVisitLength,c=a.heartbeatDelay;a=a.callback;if(nb(b)&&nb(c))return{configMinimumVisitLength:1E3*b,configHeartBeatTimer:1E3*c,callback:a};I.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function qa(a){var b=a.context,c=a.minXOffset,d=a.minYOffset,e=a.maxXOffset;a=a.maxYOffset;var f=document.title;f!==la&&(la=f,va=void 0);C.track(Jb({pageUrl:l(ma||N),pageTitle:ob(va||la),referrer:l(Sa||ta),minXOffset:Math.round(c), | ||
maxXOffset:Math.round(e),minYOffset:Math.round(d),maxYOffset:Math.round(a)}),b)}var Ja,R,W,X,Y,Z,aa,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb;e.eventMethod=null!==(Ja=e.eventMethod)&&void 0!==Ja?Ja:"post";var na=function(a){var b;return null!==(b=a.stateStorageStrategy)&&void 0!==b?b:"cookieAndLocalStorage"},oa=function(a){var b,c;return"boolean"===typeof a.anonymousTracking?!1:null!==(c=!0===(null===(b=a.anonymousTracking)||void 0===b?void 0:b.withSessionTracking))&&void 0!==c?c:!1},pa=function(a){var b, | ||
c;return"boolean"===typeof a.anonymousTracking?!1:null!==(c=!0===(null===(b=a.anonymousTracking)||void 0===b?void 0:b.withServerAnonymisation))&&void 0!==c?c:!1};e.plugins=null!==(R=e.plugins)&&void 0!==R?R:[];(null!==(X=null===(W=null===e||void 0===e?void 0:e.contexts)||void 0===W?void 0:W.webPage)&&void 0!==X?X:1)&&e.plugins.push(ca());var C=Gb({base64:e.encodeBase64,corePlugins:e.plugins,callback:function(a){var b=Math.round((new Date).getTime()/1E3),c=m("ses"),d=L(),e=d[0],f=d[1],k=d[2],T=d[3], | ||
g=d[4],y=d[5];d=d[6];var n=wa?!!x(wa):!1;Aa||n?F():("0"===e?(z=d,c||"none"==t||(T++,y=g,z=r.v4()),H=T):(new Date).getTime()-kb>1E3*sb&&(z=r.v4(),H++),a.add("vp",Mb()),a.add("ds",Nb()),a.add("vid",ka?H:O?null:H),a.add("sid",ka?z:O?null:z),a.add("duid",O?null:f),a.add("uid",O?null:V),h(),a.add("refr",l(Sa||ta)),a.add("url",l(ma||N)),"none"!=t&&(Ta(f,k,H,b,y,z),v()),kb=(new Date).getTime());b=wa?!!x(wa):!1;Aa||b||P.enqueueRequest(a.build(),lb)}}),Ca=navigator.userLanguage||navigator.language,Da=document.characterSet|| | ||
document.charset,S=rb(window.location.hostname,window.location.href,Wa()),ra=pb(S[0]),N=S[1],ta=S[2],Sa,Ea=null!==(Y=e.platform)&&void 0!==Y?Y:"web",lb=mb(d),Fa=null!==(Z=e.postPath)&&void 0!==Z?Z:"/com.snowplowanalytics.snowplow/tp2",Ga=null!==(aa=e.appId)&&void 0!==aa?aa:"",ma,la=document.title,va,Ha=null!==(Za=e.resetActivityTrackingOnPageView)&&void 0!==Za?Za:!0,xa,ya,ja=null!==($a=e.cookieName)&&void 0!==$a?$a:"_sp_",ua=null!==(ab=e.cookieDomain)&&void 0!==ab?ab:void 0,Xa="/",Qa=null!==(bb=e.cookieSameSite)&& | ||
void 0!==bb?bb:"None",Ra=null!==(cb=e.cookieSecure)&&void 0!==cb?cb:!0,za=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,Aa="undefined"!==typeof e.respectDoNotTrack?e.respectDoNotTrack&&("yes"===za||"1"===za):!1,wa,Ba=null!==(db=e.cookieLifetime)&&void 0!==db?db:63072E3,sb=null!==(eb=e.sessionCookieTimeout)&&void 0!==eb?eb:1800,ka=oa(e),Ya=pa(e),O=!!e.anonymousTracking,t=na(e),La,kb=(new Date).getTime(),Ma,Na,Oa,Pa,U,ia,z,H=1,V,P=Pb(a,f,"localStorage"==t||"cookieAndLocalStorage"== | ||
t,e.eventMethod,Fa,null!==(fb=e.bufferSize)&&void 0!==fb?fb:1,null!==(gb=e.maxPostBytes)&&void 0!==gb?gb:4E4,null!==(hb=e.useStm)&&void 0!==hb?hb:!0,null!==(ib=e.maxLocalStorageQueueSize)&&void 0!==ib?ib:1E3,null!==(jb=e.connectionTimeout)&&void 0!==jb?jb:5E3,Ya),tb=!1,ub=!1,D={enabled:!1,installed:!1,configurations:{}};e.hasOwnProperty("discoverRootDomain")&&e.discoverRootDomain&&(ua=Ob(Qa,Ra));C.setTrackerVersion(c);C.setTrackerNamespace(b);C.setAppId(Ga);C.setPlatform(Ea);C.addPayloadPair("cookie", | ||
navigator.cookieEnabled?"1":"0");C.addPayloadPair("cs",Da);C.addPayloadPair("lang",Ca);C.addPayloadPair("res",screen.width+"x"+screen.height);C.addPayloadPair("cd",screen.colorDepth);fa();ha();e.crossDomainLinker&&g(e.crossDomainLinker);return q(q({},{getDomainSessionIndex:function(){return H},getPageViewId:function(){return K()},newSession:function(){var a=Math.round((new Date).getTime()/1E3),b=L(),c=b[1],d=b[2],e=b[3],f=b[4],h=b[5],k=b[6];"0"===b[0]?(z=k,"none"!=t&&(e++,h=f,z=r.v4()),H=e,v()):(z= | ||
r.v4(),H++);"none"!=t&&(Ta(c,d,H,a,h,z),v());kb=(new Date).getTime()},getCookieName:function(a){return ja+a+"."+U},getUserId:function(){return V},getDomainUserId:function(){return L()[1]},getDomainUserInfo:function(){return L()},setReferrerUrl:function(a){Sa=a},setCustomUrl:function(a){h();var b=N,c;y(a)?ma=a:"/"===a.slice(0,1)?ma=y(b)+"://"+Va(b)+a:(b=l(b),0<=(c=b.indexOf("?"))&&(b=b.slice(0,c)),(c=b.lastIndexOf("/"))!==b.length-1&&(b=b.slice(0,c+1)),ma=b+a)},setDocumentTitle:function(a){la=document.title; | ||
va=a},discardHashTag:function(a){xa=a},discardBrace:function(a){ya=a},setCookiePath:function(a){Xa=a;fa()},setVisitorCookieTimeout:function(a){Ba=a},crossDomainLinker:function(a){g(a)},enableActivityTracking:function(a){D.configurations.pagePing||(D.enabled=!0,D.configurations.pagePing=ba(q(q({},a),{callback:qa})))},enableActivityTrackingCallback:function(a){D.configurations.callback||(D.enabled=!0,D.configurations.callback=ba(a))},updatePageActivity:function(){J()},setOptOutCookie:function(a){wa= | ||
a},setUserId:function(a){V=a},setUserIdFromLocation:function(a){h();V=sa(a,N)},setUserIdFromReferrer:function(a){h();V=sa(a,ta)},setUserIdFromCookie:function(a){V=x(a)},setCollectorUrl:function(a){lb=mb(a);P.setCollectorUrl(lb)},setBufferSize:function(a){P.setBufferSize(a)},flushBuffer:function(a){void 0===a&&(a={});P.executeQueue();a.newBufferSize&&P.setBufferSize(a.newBufferSize)},trackPageView:function(a){void 0===a&&(a={});da(a)},preservePageViewId:function(){tb=!0},disableAnonymousTracking:function(a){e.anonymousTracking= | ||
!1;E(a);ha();P.executeQueue()},enableAnonymousTracking:function(a){var b;e.anonymousTracking=null!==(b=a&&(null===a||void 0===a?void 0:a.options))&&void 0!==b?b:!0;E(a);ka||Q()},clearUserData:F}),{id:a,namespace:b,core:C,sharedState:f})}(a,b,c,d,f,e);var k=q(q({},a),{addPlugin:function(a){var b,c;k.core.addPlugin(a);null===(c=(b=a.plugin).activateBrowserPlugin)||void 0===c?void 0:c.call(b,k)}});null===(h=e.plugins)||void 0===h?void 0:h.forEach(function(a){var b;null===(b=a.activateBrowserPlugin)|| | ||
void 0===b?void 0:b.call(a,k)});return k}function l(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Q);a=Q;for(var d=[],f=0;f<c.length;f++){var e=c[f];a.hasOwnProperty(e)?d.push(a[e]):I.warn(e+" not configured")}d.forEach(b)}catch(h){I.error("Function failed",h)}}function Sb(){function a(){"hidden"==f.visibilityState&&d.bufferFlushers.forEach(function(a){a(!1)})}function b(){var a;if(!d.hasLoaded)for(d.hasLoaded=!0,a=0;a<d.registeredOnLoadHandlers.length;a++)d.registeredOnLoadHandlers[a]();return!0} | ||
function c(){f.addEventListener?f.addEventListener("DOMContentLoaded",function k(){f.removeEventListener("DOMContentLoaded",k,!1);b()}):f.attachEvent&&f.attachEvent("onreadystatechange",function fa(){"complete"===f.readyState&&(f.detachEvent("onreadystatechange",fa),b())});B(e,"load",b,!1)}var d=new Tb,f=document,e=window;f.visibilityState&&B(f,"visibilitychange",a,!1);B(e,"beforeunload",function(){d.bufferFlushers.forEach(function(a){a(!1)})},!1);"loading"===document.readyState?c():b();return d} | ||
for(var q=function(){q=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++){b=arguments[c];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};return q.apply(this,arguments)},xa=ba(function(a){var b="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(b){var c=new Uint8Array(16);a.exports=function(){b(c); | ||
return c}}else{var d=Array(16);a.exports=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),d[a]=b>>>((a&3)<<3)&255;return d}}}),m=[],u=0;256>u;++u)m[u]=(u+256).toString(16).substr(1);var ya=function(a,b){b=b||0;return[m[a[b++]],m[a[b++]],m[a[b++]],m[a[b++]],"-",m[a[b++]],m[a[b++]],"-",m[a[b++]],m[a[b++]],"-",m[a[b++]],m[a[b++]],"-",m[a[b++]],m[a[b++]],m[a[b++]],m[a[b++]],m[a[b++]],m[a[b++]]].join("")},za,W,X=0,Y=0;u=function(a,b,c){c=b&&c||0;"string"==typeof a&&(b="binary"=== | ||
a?Array(16):null,a=null);a=a||{};a=a.random||(a.rng||xa)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(b)for(var d=0;16>d;++d)b[c+d]=a[d];return b||ya(a)};u.v1=function(a,b,c){c=b&&c||0;var d=b||[];a=a||{};var f=a.node||za,e=void 0!==a.clockseq?a.clockseq:W;if(null==f||null==e){var h=xa();null==f&&(f=za=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]);null==e&&(e=W=(h[6]<<8|h[7])&16383)}h=void 0!==a.msecs?a.msecs:(new Date).getTime();var k=void 0!==a.nsecs?a.nsecs:Y+1,g=h-X+(k-Y)/1E4;0>g&&void 0===a.clockseq&&(e=e+1&16383); | ||
(0>g||h>X)&&void 0===a.nsecs&&(k=0);if(1E4<=k)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");X=h;Y=k;W=e;h+=122192928E5;a=(1E4*(h&268435455)+k)%4294967296;d[c++]=a>>>24&255;d[c++]=a>>>16&255;d[c++]=a>>>8&255;d[c++]=a&255;a=h/4294967296*1E4&268435455;d[c++]=a>>>8&255;d[c++]=a&255;d[c++]=a>>>24&15|16;d[c++]=a>>>16&255;d[c++]=e>>>8|128;d[c++]=e&255;for(e=0;6>e;++e)d[c+e]=f[e];return b?b:ya(d)};var r=u.v4=u,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",v;(function(a){a[a.none= | ||
0]="none";a[a.error=1]="error";a[a.warn=2]="warn";a[a.debug=3]="debug";a[a.info=4]="info"})(v||(v={}));var I=function(a){void 0===a&&(a=v.warn);return{setLogLevel:function(b){a=v[b]?b:v.warn},warn:function(b,c){for(var d=[],f=2;f<arguments.length;f++)d[f-2]=arguments[f];a>=v.warn&&"undefined"!==typeof console&&(f="Snowplow: "+b,c?console.warn.apply(console,w([f+"\n",c],d)):console.warn.apply(console,w([f],d)))},error:function(b,c){for(var d=[],f=2;f<arguments.length;f++)d[f-2]=arguments[f];a>=v.error&& | ||
"undefined"!==typeof console&&(f="Snowplow: "+b+"\n",c?console.error.apply(console,w([f+"\n",c],d)):console.error.apply(console,w([f],d)))},debug:function(b){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];a>=v.debug&&"undefined"!==typeof console&&console.debug.apply(console,w(["Snowplow: "+b],c))},info:function(b){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];a>=v.info&&"undefined"!==typeof console&&console.info.apply(console,w(["Snowplow: "+b],c))}}}(),Z=ba(function(a){(function(){var b= | ||
{rotl:function(a,b){return a<<b|a>>>32-b},rotr:function(a,b){return a<<32-b|a>>>b},endian:function(a){if(a.constructor==Number)return b.rotl(a,8)&16711935|b.rotl(a,24)&4278255360;for(var c=0;c<a.length;c++)a[c]=b.endian(a[c]);return a},randomBytes:function(a){for(var b=[];0<a;a--)b.push(Math.floor(256*Math.random()));return b},bytesToWords:function(a){for(var b=[],c=0,e=0;c<a.length;c++,e+=8)b[e>>>5]|=a[c]<<24-e%32;return b},wordsToBytes:function(a){for(var b=[],c=0;c<32*a.length;c+=8)b.push(a[c>>> | ||
5]>>>24-c%32&255);return b},bytesToHex:function(a){for(var b=[],c=0;c<a.length;c++)b.push((a[c]>>>4).toString(16)),b.push((a[c]&15).toString(16));return b.join("")},hexToBytes:function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substr(c,2),16));return b},bytesToBase64:function(a){for(var b=[],c=0;c<a.length;c+=3)for(var e=a[c]<<16|a[c+1]<<8|a[c+2],h=0;4>h;h++)8*c+6*h<=8*a.length?b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>>6*(3-h)&63)):b.push("="); | ||
return b.join("")},base64ToBytes:function(a){a=a.replace(/[^A-Z0-9+\/]/ig,"");for(var b=[],c=0,e=0;c<a.length;e=++c%4)0!=e&&b.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a.charAt(c-1))&Math.pow(2,-2*e+8)-1)<<2*e|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a.charAt(c))>>>6-2*e);return b}};a.exports=b})()}),aa={utf8:{stringToBytes:function(a){return aa.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(aa.bin.bytesToString(a)))}}, | ||
bin:{stringToBytes:function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c)&255);return b},bytesToString:function(a){for(var b=[],c=0;c<a.length;c++)b.push(String.fromCharCode(a[c]));return b.join("")}}},Aa=aa,Rb=ba(function(a){(function(){var b=Aa.utf8,c=Aa.bin,d=function(a){a.constructor==String?a=b.stringToBytes(a):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(a)?a=Array.prototype.slice.call(a,0):Array.isArray(a)||(a=a.toString());var c=Z.bytesToWords(a), | ||
d=8*a.length;a=[];var e=1732584193,f=-271733879,g=-1732584194,l=271733878,m=-1009589776;c[d>>5]|=128<<24-d%32;c[(d+64>>>9<<4)+15]=d;for(d=0;d<c.length;d+=16){for(var r=e,u=f,v=g,w=l,x=m,p=0;80>p;p++){if(16>p)a[p]=c[d+p];else{var q=a[p-3]^a[p-8]^a[p-14]^a[p-16];a[p]=q<<1|q>>>31}q=(e<<5|e>>>27)+m+(a[p]>>>0)+(20>p?(f&g|~f&l)+1518500249:40>p?(f^g^l)+1859775393:60>p?(f&g|f&l|g&l)-1894007588:(f^g^l)-899497514);m=l;l=g;g=f<<30|f>>>2;f=e;e=q}e+=r;f+=u;g+=v;l+=w;m+=x}return[e,f,g,l,m]},f=function(a,b){a=Z.wordsToBytes(d(a)); | ||
return b&&b.asBytes?a:b&&b.asString?c.bytesToString(a):Z.bytesToHex(a)};f._blocksize=16;f._digestsize=20;a.exports=f})()}),Q={},Tb=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),Ba="undefined"!==typeof window?Sb():void 0;g.addGlobalContexts=function(a,b){l(b,function(b){b.core.addGlobalContexts(a)})};g.addPlugin=function(a,b){l(b,function(b){b.addPlugin(a)})};g.clearGlobalContexts=function(a){l(a,function(a){a.core.clearGlobalContexts()})}; | ||
g.clearUserData=function(a,b){l(b,function(b){b.clearUserData(a)})};g.crossDomainLinker=function(a,b){l(b,function(b){b.crossDomainLinker(a)})};g.disableAnonymousTracking=function(a,b){l(b,function(b){b.disableAnonymousTracking(a)})};g.discardBrace=function(a,b){l(b,function(b){b.discardBrace(a)})};g.discardHashTag=function(a,b){l(b,function(b){b.discardHashTag(a)})};g.enableActivityTracking=function(a,b){l(b,function(b){b.enableActivityTracking(a)})};g.enableActivityTrackingCallback=function(a,b){l(b, | ||
function(b){b.enableActivityTrackingCallback(a)})};g.enableAnonymousTracking=function(a,b){l(b,function(b){b.enableAnonymousTracking(a)})};g.flushBuffer=function(a,b){l(b,function(b){b.flushBuffer(a)})};g.newSession=function(a){l(a,function(a){a.newSession()})};g.newTracker=function(a,b,c){void 0===c&&(c={});if(Ba)return Q.hasOwnProperty(a)?a=null:(Q[a]=Qb(a,a,"js-3.1.5",b,Ba,c),a=Q[a]),a};g.preservePageViewId=function(a){l(a,function(a){a.preservePageViewId()})};g.removeGlobalContexts=function(a, | ||
b){l(b,function(b){b.core.removeGlobalContexts(a)})};g.setBufferSize=function(a,b){l(b,function(b){b.setBufferSize(a)})};g.setCollectorUrl=function(a,b){l(b,function(b){b.setCollectorUrl(a)})};g.setCookiePath=function(a,b){l(b,function(b){b.setCookiePath(a)})};g.setCustomUrl=function(a,b){l(b,function(b){b.setCustomUrl(a)})};g.setDocumentTitle=function(a,b){l(b,function(b){b.setDocumentTitle(a)})};g.setOptOutCookie=function(a,b){l(b,function(b){b.setOptOutCookie(a)})};g.setReferrerUrl=function(a, | ||
b){l(b,function(b){b.setReferrerUrl(a)})};g.setUserId=function(a,b){l(b,function(b){b.setUserId(a)})};g.setUserIdFromCookie=function(a,b){l(b,function(b){b.setUserIdFromCookie(a)})};g.setUserIdFromLocation=function(a,b){l(b,function(b){b.setUserIdFromLocation(a)})};g.setUserIdFromReferrer=function(a,b){l(b,function(b){b.setUserIdFromReferrer(a)})};g.setVisitorCookieTimeout=function(a,b){l(b,function(b){b.setVisitorCookieTimeout(a)})};g.trackPageView=function(a,b){l(b,function(b){b.trackPageView(a)})}; | ||
g.trackSelfDescribingEvent=function(a,b){l(b,function(b){b.core.track(Hb({event:a.event}),a.context,a.timestamp)})};g.trackStructEvent=function(a,b){l(b,function(b){b.core.track(Kb(a),a.context,a.timestamp)})};g.updatePageActivity=function(a){l(a,function(a){a.updatePageActivity()})};g.version="3.1.5";Object.defineProperty(g,"__esModule",{value:!0})}) | ||
'use strict';(function(w,Z){"object"===typeof exports&&"undefined"!==typeof module?Z(exports):"function"===typeof define&&define.amd?define(["exports"],Z):(w="undefined"!==typeof globalThis?globalThis:w||self,Z(w.snowplowBrowserTracking={}))})(this,function(w){function Z(a,b,c){if(c||2===arguments.length)for(var e=0,g=b.length,f;e<g;e++)!f&&e in b||(f||(f=Array.prototype.slice.call(b,0,e)),f[e]=b[e]);return a.concat(f||b)}function cb(a){var b={exports:{}};return a(b,b.exports),b.exports}function Na(){var a= | ||
{},b=[],c=[],e,g=function(f,l){null!=l&&""!==l&&(a[f]=l)};return{add:g,addDict:function(f){for(var l in f)Object.prototype.hasOwnProperty.call(f,l)&&g(l,f[l])},addJson:function(f,l,m){m&&Gb(m)&&(f={keyIfEncoded:f,keyIfNotEncoded:l,json:m},c.push(f),b.push(f))},getPayload:function(){return a},getJson:function(){return b},withJsonProcessor:function(f){e=f},build:function(){null===e||void 0===e?void 0:e(this,c);return a}}}function lc(a){return function(b,c){for(var e=0;e<c.length;e++){var g=c[e],f=JSON.stringify(g.json); | ||
if(a){var l=b,m=l.add;g=g.keyIfEncoded;if(f){var q=0,z=0,D=[];if(f){f=unescape(encodeURIComponent(f));do{var H=f.charCodeAt(q++);var v=f.charCodeAt(q++);var h=f.charCodeAt(q++);var t=H<<16|v<<8|h;H=t>>18&63;v=t>>12&63;h=t>>6&63;t&=63;D[z++]=Oa.charAt(H)+Oa.charAt(v)+Oa.charAt(h)+Oa.charAt(t)}while(q<f.length);q=D.join("");f=f.length%3;f=(f?q.slice(0,f-3):q)+"===".slice(f||3)}f=f.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}m.call(l,g,f)}else b.add(g.keyIfNotEncoded,f)}c.length=0}}function Gb(a){if(!Hb(a))return!1; | ||
for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function Hb(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function mc(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var e=[],g=[],f=0;f<c.length;f++){var l=c[f];Ib(l)?e.push(l):ua(l)&&g.push(l)}a=a.concat(g);b=b.concat(e)},clearGlobalContexts:function(){b=[];a=[]}, | ||
removeGlobalContexts:function(c){for(var e=function(f){Ib(f)?b=b.filter(function(l){return JSON.stringify(l)!==JSON.stringify(f)}):ua(f)&&(a=a.filter(function(l){return JSON.stringify(l)!==JSON.stringify(f)}))},g=0;g<c.length;g++)e(c[g])},getApplicableContexts:function(c){a:{var e=0;for(var g=c.getJson();e<g.length;e++){var f=g[e];if("ue_px"===f.keyIfEncoded&&"object"===typeof f.json.data&&(f=f.json.data.schema,"string"==typeof f)){e=f;break a}}e=""}g=c.getPayload().e;f="string"===typeof g?g:"";g= | ||
[];var l=db(a,c,f,e);g.push.apply(g,l);c=nc(b,c,f,e);g.push.apply(g,c);return g}}}function oc(a){return{addPluginContexts:function(b){var c=null!==b&&void 0!==b?b:[];a.forEach(function(e){try{e.contexts&&c.push.apply(c,e.contexts())}catch(g){ea.error("Error adding plugin contexts",g)}});return c}}}function pc(a){if("*"===a[0]||"*"===a[1])return!1;if(0<a.slice(2).length){var b=!1,c=0;for(a=a.slice(2);c<a.length;c++)if("*"===a[c])b=!0;else if(b)return!1;return!0}return 2==a.length?!0:!1}function Jb(a){return(a= | ||
a.split("."))&&1<a.length?pc(a):!1}function Kb(a){a=/^iglu:((?:(?:[a-zA-Z0-9-_]+|\*).)+(?:[a-zA-Z0-9-_]+|\*))\/([a-zA-Z0-9-_.]+|\*)\/jsonschema\/([1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)-(0|[1-9][0-9]*|\*)$/.exec(a);if(null!==a&&Jb(a[1]))return a.slice(1,6)}function eb(a){if(a=Kb(a)){var b=a[0];return 5===a.length&&Jb(b)}return!1}function qc(a){return Array.isArray(a)&&a.every(function(b){return"string"===typeof b})}function Lb(a){return qc(a)?a.every(function(b){return eb(b)}):"string"===typeof a?eb(a): | ||
!1}function Ea(a){return Gb(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function rc(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(Lb(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(Lb(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function Pa(a){return"function"===typeof a&&1>=a.length}function ua(a){return Pa(a)||Ea(a)}function Mb(a){return Array.isArray(a)&& | ||
2===a.length?Array.isArray(a[1])?Pa(a[0])&&a[1].every(ua):Pa(a[0])&&ua(a[1]):!1}function Nb(a){return Array.isArray(a)&&2===a.length?rc(a[0])?Array.isArray(a[1])?a[1].every(ua):ua(a[1]):!1:!1}function Ib(a){return Mb(a)||Nb(a)}function sc(a,b){var c=0,e=0,g=a.accept;Array.isArray(g)?a.accept.some(function(f){return Qa(f,b)})&&e++:"string"===typeof g&&Qa(g,b)&&e++;g=a.reject;Array.isArray(g)?a.reject.some(function(f){return Qa(f,b)})&&c++:"string"===typeof g&&Qa(g,b)&&c++;return 0<e&&0===c?!0:!1}function Qa(a, | ||
b){if(!eb(a))return!1;a=Kb(a);b=/^iglu:([a-zA-Z0-9-_.]+)\/([a-zA-Z0-9-_]+)\/jsonschema\/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$/.exec(b);b=null!==b?b.slice(1,6):void 0;if(a&&b){if(!tc(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!Ob(a[c],b[c]))return!1;return!0}return!1}function tc(a,b){b=b.split(".");a=a.split(".");if(b&&a){if(b.length!==a.length)return!1;for(var c=0;c<a.length;c++)if(!Ob(b[c],a[c]))return!1;return!0}return!1}function Ob(a,b){return a&&b&&"*"===a||a===b}function Pb(a){return Array.isArray(a)? | ||
a:[a]}function db(a,b,c,e){var g;a=Pb(a).map(function(f){a:if(Ea(f))f=[f];else{if(Pa(f)){b:{var l=void 0;try{var m={event:b.getPayload(),eventType:c,eventSchema:e};l=f(m);if(Array.isArray(l)&&l.every(Ea)||Ea(l)){var q=l;break b}q=void 0;break b}catch(z){}q=void 0}if(Ea(q)){f=[q];break a}else if(Array.isArray(q)){f=q;break a}}f=void 0}if(f&&0!==f.length)return f});return(g=[]).concat.apply(g,a.filter(function(f){return null!=f&&f.filter(Boolean)}))}function nc(a,b,c,e){var g;a=Pb(a).map(function(f){a:{if(Mb(f)){var l= | ||
f[0],m=!1;try{var q={event:b.getPayload(),eventType:c,eventSchema:e};m=l(q)}catch(z){m=!1}if(!0===m){f=db(f[1],b,c,e);break a}}else if(Nb(f)&&sc(f[0],e)){f=db(f[1],b,c,e);break a}f=[]}if(f&&0!==f.length)return f});return(g=[]).concat.apply(g,a.filter(function(f){return null!=f&&f.filter(Boolean)}))}function uc(a){return null==a?{type:"dtm",value:(new Date).getTime()}:"number"===typeof a?{type:"dtm",value:a}:"ttm"===a.type?{type:"ttm",value:a.value}:{type:"dtm",value:a.value||(new Date).getTime()}} | ||
function vc(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,e=null!==c&&void 0!==c?c:[];a=function(f,l,m){function q(h,t){h=D.getApplicableContexts(h);var I=[];t&&t.length&&I.push.apply(I,t);h&&h.length&&I.push.apply(I,h);return I}var z=oc(l),D=mc(),H=f,v={};return{track:function(h,t,I){h.withJsonProcessor(lc(H));h.add("eid",R.v4());h.addDict(v);I=uc(I);h.add(I.type,I.value.toString());t=q(h,z.addPluginContexts(t));t=t&&t.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0", | ||
data:t}:void 0;void 0!==t&&h.addJson("cx","co",t);l.forEach(function(K){try{K.beforeTrack&&K.beforeTrack(h)}catch(aa){ea.error("Plugin beforeTrack",aa)}});"function"===typeof m&&m(h);var V=h.build();l.forEach(function(K){try{K.afterTrack&&K.afterTrack(V)}catch(aa){ea.error("Plugin afterTrack",aa)}});return V},addPayloadPair:function(h,t){v[h]=t},getBase64Encoding:function(){return H},setBase64Encoding:function(h){H=h},addPayloadDict:function(h){for(var t in h)Object.prototype.hasOwnProperty.call(h, | ||
t)&&(v[t]=h[t])},resetPayloadPairs:function(h){v=Hb(h)?h:{}},setTrackerVersion:function(h){v.tv=h},setTrackerNamespace:function(h){v.tna=h},setAppId:function(h){v.aid=h},setPlatform:function(h){v.p=h},setUserId:function(h){v.uid=h},setScreenResolution:function(h,t){v.res=h+"x"+t},setViewport:function(h,t){v.vp=h+"x"+t},setColorDepth:function(h){v.cd=h},setTimezone:function(h){v.tz=h},setLang:function(h){v.lang=h},setIpAddress:function(h){v.ip=h},setUseragent:function(h){v.ua=h},addGlobalContexts:function(h){D.addGlobalContexts(h)}, | ||
clearGlobalContexts:function(){D.clearGlobalContexts()},removeGlobalContexts:function(h){D.removeGlobalContexts(h)}}}(null!==b&&void 0!==b?b:!0,e,a.callback);var g=ba(ba({},a),{addPlugin:function(f){var l,m;f=f.plugin;e.push(f);null===(l=f.logger)||void 0===l?void 0:l.call(f,ea);null===(m=f.activateCorePlugin)||void 0===m?void 0:m.call(f,g)}});null===e||void 0===e?void 0:e.forEach(function(f){var l,m;null===(l=f.logger)||void 0===l?void 0:l.call(f,ea);null===(m=f.activateCorePlugin)||void 0===m?void 0: | ||
m.call(f,g)});return g}function wc(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var e=Na();e.add("e","pv");e.add("url",b);e.add("page",c);e.add("refr",a);return e}function xc(){try{var a=!!window.localStorage}catch(c){a=!0}if(!a)return!1;try{var b=window.localStorage;b.setItem("modernizr","modernizr");b.removeItem("modernizr");return!0}catch(c){return!1}}function Qb(a){return Number.isInteger&&Number.isInteger(a)||"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function Rb(a){if(!a||"string"!== | ||
typeof a.valueOf()){a=a.text||"";var b=document.getElementsByTagName("title");b&&null!=b[0]&&(a=b[0].text)}return a}function fb(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a);return b?b[1]:a}function Sb(a){var b=a.length;"."===a.charAt(--b)&&(a=a.slice(0,b));"*."===a.slice(0,2)&&(a=a.slice(1));return a}function gb(a){var b=window,c="",e=Fa("referrer",b.location.href)||Fa("referer",b.location.href);if(e)return e;if(a)return a;try{c=b.top.document.referrer}catch(g){if(b.parent)try{c= | ||
b.parent.document.referrer}catch(f){c=""}}""===c&&(c=document.referrer);return c}function ka(a,b,c,e){if(a.addEventListener)return a.addEventListener(b,c,e),!0;if(a.attachEvent)return a.attachEvent("on"+b,c);a["on"+b]=c}function Fa(a,b){return(a=(new RegExp("^[^#]*[?&]"+a+"=([^&#]*)")).exec(b))?decodeURIComponent(a[1].replace(/\+/g," ")):null}function Ra(a,b,c){void 0===c&&(c=63072E3);try{var e=window.localStorage,g=Date.now()+1E3*c;e.setItem(a+".expires",g.toString());e.setItem(a,b);return!0}catch(f){return!1}} | ||
function Tb(a){try{var b=window.localStorage;b.removeItem(a);b.removeItem(a+".expires");return!0}catch(c){return!1}}function yc(a,b){for(var c=window.location.hostname,e="_sp_root_domain_test_"+(new Date).getTime(),g="_test_value_"+(new Date).getTime(),f=c.split("."),l=f.length-1;0<=l;){var m=f.slice(l,f.length).join(".");W(e,g,0,"/",m,a,b);if(W(e)===g){W(e,"",-1,"/",m,a,b);c=document.cookie.split("; ");e=[];for(g=0;g<c.length;g++)"_sp_root_domain_test_"===c[g].substring(0,21)&&e.push(c[g]);c=e;for(e= | ||
0;e<c.length;e++)W(c[e],"",-1,"/",m,a,b);return m}--l}return c}function W(a,b,c,e,g,f,l){return 1<arguments.length?document.cookie=a+"="+encodeURIComponent(null!==b&&void 0!==b?b:"")+(c?"; Expires="+(new Date(+new Date+1E3*c)).toUTCString():"")+(e?"; Path="+e:"")+(g?"; Domain="+g:"")+(f?"; SameSite="+f:"")+(l?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+a+"=")[1]||"").split(";")[0])}function zc(a,b,c,e,g,f,l,m,q,z,D){function H(n){var x=Object.keys(n).map(function(A){return[A, | ||
n[A]]}).reduce(function(A,u){A[u[0]]=u[1].toString();return A},{});return{evt:x,bytes:v(JSON.stringify(x))}}function v(n){for(var x=0,A=0;A<n.length;A++){var u=n.charCodeAt(A);127>=u?x+=1:2047>=u?x+=2:55296<=u&&57343>=u?(x+=4,A++):x=65535>u?x+3:x+4}return x}function h(n){for(void 0===n&&(n=!1);E.length&&"string"!==typeof E[0]&&"object"!==typeof E[0];)E.shift();if(1>E.length)F=!1;else{if(!O||"string"!==typeof O.valueOf())throw"No collector configured";F=!0;if(va){var x=function(fa){for(var X=0,wa= | ||
0;X<fa.length&&!(wa+=fa[X].bytes,wa>=l);)X+=1;return X},A=void 0;if(xa(E)){A=O;var u=t(A,!0,n);var J=x(E)}else A=K(E[0]),u=t(A,!1,n),J=1;var P=setTimeout(function(){u.abort();F=!1},z),ca=function(fa){for(var X=0;X<fa;X++)E.shift();c&&Ra(qa,JSON.stringify(E.slice(0,q)));h()};u.onreadystatechange=function(){4===u.readyState&&200<=u.status&&400>u.status?(clearTimeout(P),ca(J)):4===u.readyState&&400<=u.status&&(clearTimeout(P),F=!1)};if(xa(E)){if(x=E.slice(0,J),0<x.length){n=!1;x=x.map(function(fa){return fa.evt}); | ||
if(Sa){var la=new Blob([I(V(x))],{type:"application/json"});try{n=navigator.sendBeacon(A,la)}catch(fa){n=!1}}!0===n?ca(J):u.send(I(V(x)))}}else u.send()}else if(D||xa(E))F=!1;else{A=new Image(1,1);var ha=!0;A.onload=function(){ha&&(ha=!1,E.shift(),c&&Ra(qa,JSON.stringify(E.slice(0,q))),h())};A.onerror=function(){ha&&(F=ha=!1)};A.src=K(E[0]);setTimeout(function(){ha&&F&&(ha=!1,h())},z)}}}function t(n,x,A){var u=new XMLHttpRequest;x?(u.open("POST",n,!A),u.setRequestHeader("Content-Type","application/json; charset=UTF-8")): | ||
u.open("GET",n,!A);u.withCredentials=!0;D&&u.setRequestHeader("SP-Anonymous","*");return u}function I(n){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:n})}function V(n){for(var x=(new Date).getTime().toString(),A=0;A<n.length;A++)n[A].stm=x;return n}function K(n){return m?O+n.replace("?","?stm="+(new Date).getTime()+"&"):O+n}function aa(n){function x(u,J,P){return(P=P.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&&P.length? | ||
parseInt(P[0])<=u||parseInt(P[0])===u&&parseInt(P[1])<=J:!1}function A(u){return u.match("Version/.* Safari/")&&!u.match("Chrom(e|ium)")}return function(u,J){return(J=J.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&J.length?parseInt(J[0])<=u:!1}(13,n)||x(10,15,n)&&A(n)}var F=!1,O,E=[];e="string"===typeof e?e.toLowerCase():e;var Ga=null===e||!0===e||"beacon"===e||"true"===e,Sa=!(!(Ga&&window.navigator&&window.navigator.sendBeacon)||aa(window.navigator.userAgent))&&Ga,va=!!(window.XMLHttpRequest&& | ||
"withCredentials"in new XMLHttpRequest),ia="get"!==e&&va&&("post"===e||Ga),ya=ia?g:"/i",qa="snowplowOutQueue_"+a+"_"+(ia?"post2":"get");f=c&&xc()&&ia&&f||1;if(c)try{var Ha=window.localStorage.getItem(qa);E=Ha?JSON.parse(Ha):[]}catch(n){}Array.isArray(E)||(E=[]);b.outQueues.push(E);va&&1<f&&b.bufferFlushers.push(function(n){F||h(n)});var xa=function(n){return"object"===typeof n[0]};return{enqueueRequest:function(n,x){O=x+ya;if(ia){n=H(n);if(n.bytes>=l){ea.warn("Event ("+n.bytes+"B) too big, max is "+ | ||
l);t(O,!0,!1).send(I(V([n.evt])));return}E.push(n)}else{x=E;var A=x.push,u="?",J={co:!0,cx:!0},P=!0,ca;for(ca in n)n.hasOwnProperty(ca)&&!J.hasOwnProperty(ca)&&(P?P=!1:u+="&",u+=encodeURIComponent(ca)+"="+encodeURIComponent(n[ca]));for(var la in J)n.hasOwnProperty(la)&&J.hasOwnProperty(la)&&(u+="&"+la+"="+encodeURIComponent(n[la]));A.call(x,u)}n=!1;c&&(n=Ra(qa,JSON.stringify(E.slice(0,q))));F||n&&!(E.length>=f)||h()},executeQueue:function(){F||h()},setUseLocalStorage:function(n){c=n},setAnonymousTracking:function(n){D= | ||
n},setCollectorUrl:function(n){O=n+ya},setBufferSize:function(n){f=n}}}function Ub(a,b,c){if("translate.googleusercontent.com"===a)""===c&&(c=b),a=(a=/^(?:https?|ftp)(?::\/*(?:[^?]+))([?][^#]+)/.exec(b))&&1<(null===a||void 0===a?void 0:a.length)?Fa("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=fb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=document.links[0].href,a=fb(b);return[a,b,c]}function Ac(a,b,c,e,g,f){var l;void 0===f&&(f={});a=function(q,z,D,H,v,h){function t(){ra= | ||
Ub(window.location.hostname,window.location.href,gb());ra[1]!==ma&&(Ia=gb(ma));Vb=Sb(ra[0]);ma=ra[1]}function I(d){var k=(new Date).getTime();d=d.currentTarget;if(null===d||void 0===d?0:d.href){k="_sp="+(za+"."+k);var p=d.href.split("#"),r=p[0].split("?"),B=r.shift();if(r=r.join("?")){for(var G=!0,M=r.split("&"),y=0;y<M.length;y++)if("_sp="===M[y].substr(0,4)){G=!1;M[y]=k;r=M.join("&");break}G&&(r=k+"&"+r)}else r=k;p[0]=B+"?"+r;k=p.join("#");d.href=k}}function V(d){for(var k=0;k<document.links.length;k++){var p= | ||
document.links[k];!p.spDecorationEnabled&&d(p)&&(ka(p,"click",I,!0),ka(p,"mousedown",I,!0),p.spDecorationEnabled=!0)}}function K(d){if(Wb){var k=/#.*/;d=d.replace(k,"")}Xb&&(k=/[{}]/g,d=d.replace(k,""));return d}function aa(d){return(d=/^([a-z]+):/.exec(d))?d[1]:null}function F(d){d=Aa+d+"."+sa;if("localStorage"==L){try{var k=window.localStorage,p=k.getItem(d+".expires");if(null===p||+p>Date.now())var r=k.getItem(d);else k.removeItem(d),k.removeItem(d+".expires"),r=void 0}catch(B){r=void 0}return r}if("cookie"== | ||
L||"cookieAndLocalStorage"==L)return W(d)}function O(){t();sa=Bc((Ja||Vb)+(hb||"/")).slice(0,4)}function E(){Ta=(new Date).getTime()}function Ga(){var d=Sa(),k=d[0];k<Ua?Ua=k:k>Va&&(Va=k);d=d[1];d<Wa?Wa=d:d>Xa&&(Xa=d);E()}function Sa(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,d.scrollTop||window.pageYOffset]:[0,0]}function va(){var d=Sa(),k=d[0];Va=Ua=k;Xa=Wa=d=d[1]}function ia(){qa(Aa+"ses."+sa,"*",Yb)}function ya(d,k,p,r,B,G){qa(Aa+"id."+sa,d+"."+k+"."+p+"."+r+"."+ | ||
B+"."+G,Zb)}function qa(d,k,p){if(!na||Ba)"localStorage"==L?Ra(d,k,p):("cookie"==L||"cookieAndLocalStorage"==L)&&W(d,k,p,hb,Ja,Ya,Za)}function Ha(d){var k=Aa+"id."+sa,p=Aa+"ses."+sa;Tb(k);Tb(p);W(k,"",-1,"/",Ja,Ya,Za);W(p,"",-1,"/",Ja,Ya,Za);null!==d&&void 0!==d&&d.preserveSession||(Q=R.v4(),da=0);null!==d&&void 0!==d&&d.preserveUser||(za=R.v4(),ta=null)}function xa(d){d&&d.stateStorageStrategy&&(h.stateStorageStrategy=d.stateStorageStrategy,L=$b(h));na=!!h.anonymousTracking;Ba=ac(h);ib=bc(h);oa.setUseLocalStorage("localStorage"== | ||
L||"cookieAndLocalStorage"==L);oa.setAnonymousTracking(ib)}function n(){if(!na||Ba){var d="none"!=L&&!!F("ses"),k=x();k[1]?za=k[1]:(za=na?"":R.v4(),k[1]=za);Q=k[6];d||(k[3]++,Q=R.v4(),k[6]=Q,k[5]=k[4]);"none"!=L&&(ia(),k[4]=Math.round((new Date).getTime()/1E3),k.shift(),ya.apply(null,k))}}function x(){if("none"==L)return[];var d=Math.round((new Date).getTime()/1E3),k=F("id");k?(d=k.split("."),d.unshift("0")):d=["1",za,d,0,d,""];d[6]&&"undefined"!==d[6]||(d[6]=R.v4());return d}function A(d){return 0=== | ||
d.indexOf("http")?d:("https:"===document.location.protocol?"https":"http")+"://"+d}function u(){cc&&null!=v.pageViewId||(v.pageViewId=R.v4())}function J(){null==v.pageViewId&&(v.pageViewId=R.v4());return v.pageViewId}function P(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:J()}}]}}}function ca(d){var k=d.title,p=d.context,r=d.timestamp;d=d.contextCallback;t();dc&&u();dc=!0;Ca=document.title;Ka=k;k=Rb(Ka||Ca);S.track(wc({pageUrl:K(Da|| | ||
ma),pageTitle:k,referrer:K($a||Ia)}),(p||[]).concat(d?d():[]),r);r=new Date;k=!1;if(T.enabled&&!T.installed){k=T.installed=!0;var B={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var M=!1,y=Object.defineProperty({},"passive",{get:function(){M=!0},set:function(){}}),U=function(){};window.addEventListener("testPassiveEventSupport",U,y);window.removeEventListener("testPassiveEventSupport",U,y);B.hasSupport=M}}};B.update();var G="onwheel"in document.createElement("div")? | ||
"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(B,"hasSupport")?ka(document,G,E,{passive:!0}):ka(document,G,E);va();G=function(M,y){void 0===y&&(y=E);return function(U){return ka(document,U,y)}};"click mouseup mousedown mousemove keypress keydown keyup".split(" ").forEach(G(document));["resize","focus","blur"].forEach(G(window));G(window,Ga)("scroll")}if(T.enabled&&(Cc||k))for(r in Ta=r.getTime(),r=void 0,T.configurations)if(k=T.configurations[r])window.clearInterval(k.activityInterval), | ||
la(k,p,d)}function la(d,k,p){var r=function(G,M){t();G({context:M,pageViewId:J(),minXOffset:Ua,minYOffset:Wa,maxXOffset:Va,maxYOffset:Xa});va()},B=function(){Ta+d.configHeartBeatTimer>(new Date).getTime()&&r(d.callback,(k||[]).concat(p?p():[]))};d.activityInterval=0!=d.configMinimumVisitLength?window.setTimeout(function(){Ta+d.configMinimumVisitLength>(new Date).getTime()&&r(d.callback,(k||[]).concat(p?p():[]));d.activityInterval=window.setInterval(B,d.configHeartBeatTimer)},d.configMinimumVisitLength): | ||
window.setInterval(B,d.configHeartBeatTimer)}function ha(d){var k=d.minimumVisitLength,p=d.heartbeatDelay;d=d.callback;if(Qb(k)&&Qb(p))return{configMinimumVisitLength:1E3*k,configHeartBeatTimer:1E3*p,callback:d};ea.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function fa(d){var k=d.context,p=d.minXOffset,r=d.minYOffset,B=d.maxXOffset,G=d.maxYOffset;d=document.title;d!==Ca&&(Ca=d,Ka=void 0);d=S;var M=d.track,y=K(Da||ma),U=Rb(Ka||Ca),ab=K($a||Ia);p=Math.round(p);B= | ||
Math.round(B);r=Math.round(r);G=Math.round(G);var Y=Na();Y.add("e","pp");Y.add("url",y);Y.add("page",U);Y.add("refr",ab);p&&!isNaN(Number(p))&&Y.add("pp_mix",p.toString());B&&!isNaN(Number(B))&&Y.add("pp_max",B.toString());r&&!isNaN(Number(r))&&Y.add("pp_miy",r.toString());G&&!isNaN(Number(G))&&Y.add("pp_may",G.toString());M.call(d,Y,k)}var X,wa,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb;h.eventMethod=null!==(X=h.eventMethod)&&void 0!==X?X:"post";var $b=function(d){var k;return null!==(k= | ||
d.stateStorageStrategy)&&void 0!==k?k:"cookieAndLocalStorage"},ac=function(d){var k,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(k=d.anonymousTracking)||void 0===k?void 0:k.withSessionTracking))&&void 0!==p?p:!1},bc=function(d){var k,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(k=d.anonymousTracking)||void 0===k?void 0:k.withServerAnonymisation))&&void 0!==p?p:!1};h.plugins=null!==(wa=h.plugins)&&void 0!==wa?wa:[];(null!==(kb=null===(jb=null=== | ||
h||void 0===h?void 0:h.contexts)||void 0===jb?void 0:jb.webPage)&&void 0!==kb?kb:1)&&h.plugins.push(P());var S=vc({base64:h.encodeBase64,corePlugins:h.plugins,callback:function(d){var k=Math.round((new Date).getTime()/1E3),p=F("ses"),r=x(),B=r[0],G=r[1],M=r[2],y=r[3],U=r[4],ab=r[5];r=r[6];var Y=La?!!W(La):!1;ec||Y?Ha():("0"===B?(Q=r,p||"none"==L||(y++,ab=U,Q=R.v4()),da=y):(new Date).getTime()-Ab>1E3*Yb&&(Q=R.v4(),da++),p=d.add,"innerWidth"in window?(B=window.innerWidth,y=window.innerHeight):(y=document.documentElement|| | ||
document.body,B=y.clientWidth,y=y.clientHeight),p.call(d,"vp",0<=B&&0<=y?B+"x"+y:null),p=d.add,y=document.documentElement,U=document.body,B=Math.max(y.clientWidth,y.offsetWidth,y.scrollWidth),y=Math.max(y.clientHeight,y.offsetHeight,y.scrollHeight,U?Math.max(U.offsetHeight,U.scrollHeight):0),B=isNaN(B)||isNaN(y)?"":B+"x"+y,p.call(d,"ds",B),d.add("vid",Ba?da:na?null:da),d.add("sid",Ba?Q:na?null:Q),d.add("duid",na?null:G),d.add("uid",na?null:ta),t(),d.add("refr",K($a||Ia)),d.add("url",K(Da||ma)),"none"!= | ||
L&&(ya(G,M,da,k,ab,Q),ia()),Ab=(new Date).getTime());k=La?!!W(La):!1;ec||k||oa.enqueueRequest(d.build(),Bb)}}),Dc=navigator.userLanguage||navigator.language,Ec=document.characterSet||document.charset,ra=Ub(window.location.hostname,window.location.href,gb()),Vb=Sb(ra[0]),ma=ra[1],Ia=ra[2],$a,Fc=null!==(lb=h.platform)&&void 0!==lb?lb:"web",Bb=A(H),Gc=null!==(mb=h.postPath)&&void 0!==mb?mb:"/com.snowplowanalytics.snowplow/tp2",Hc=null!==(nb=h.appId)&&void 0!==nb?nb:"",Da,Ca=document.title,Ka,Cc=null!== | ||
(ob=h.resetActivityTrackingOnPageView)&&void 0!==ob?ob:!0,Wb,Xb,Aa=null!==(pb=h.cookieName)&&void 0!==pb?pb:"_sp_",Ja=null!==(qb=h.cookieDomain)&&void 0!==qb?qb:void 0,hb="/",Ya=null!==(rb=h.cookieSameSite)&&void 0!==rb?rb:"None",Za=null!==(sb=h.cookieSecure)&&void 0!==sb?sb:!0,fc=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,ec="undefined"!==typeof h.respectDoNotTrack?h.respectDoNotTrack&&("yes"===fc||"1"===fc):!1,La,Zb=null!==(tb=h.cookieLifetime)&&void 0!==tb?tb:63072E3,Yb=null!== | ||
(ub=h.sessionCookieTimeout)&&void 0!==ub?ub:1800,Ba=ac(h),ib=bc(h),na=!!h.anonymousTracking,L=$b(h),Ta,Ab=(new Date).getTime(),Ua,Va,Wa,Xa,sa,za,Q,da=1,ta,oa=zc(q,v,"localStorage"==L||"cookieAndLocalStorage"==L,h.eventMethod,Gc,null!==(vb=h.bufferSize)&&void 0!==vb?vb:1,null!==(wb=h.maxPostBytes)&&void 0!==wb?wb:4E4,null!==(xb=h.useStm)&&void 0!==xb?xb:!0,null!==(yb=h.maxLocalStorageQueueSize)&&void 0!==yb?yb:1E3,null!==(zb=h.connectionTimeout)&&void 0!==zb?zb:5E3,ib),cc=!1,dc=!1,T={enabled:!1,installed:!1, | ||
configurations:{}};h.hasOwnProperty("discoverRootDomain")&&h.discoverRootDomain&&(Ja=yc(Ya,Za));S.setTrackerVersion(D);S.setTrackerNamespace(z);S.setAppId(Hc);S.setPlatform(Fc);S.addPayloadPair("cookie",navigator.cookieEnabled?"1":"0");S.addPayloadPair("cs",Ec);S.addPayloadPair("lang",Dc);S.addPayloadPair("res",screen.width+"x"+screen.height);S.addPayloadPair("cd",screen.colorDepth);O();n();h.crossDomainLinker&&V(h.crossDomainLinker);return ba(ba({},{getDomainSessionIndex:function(){return da},getPageViewId:function(){return J()}, | ||
newSession:function(){var d=Math.round((new Date).getTime()/1E3),k=x(),p=k[1],r=k[2],B=k[3],G=k[4],M=k[5],y=k[6];"0"===k[0]?(Q=y,"none"!=L&&(B++,M=G,Q=R.v4()),da=B,ia()):(Q=R.v4(),da++);"none"!=L&&(ya(p,r,da,d,M,Q),ia());Ab=(new Date).getTime()},getCookieName:function(d){return Aa+d+"."+sa},getUserId:function(){return ta},getDomainUserId:function(){return x()[1]},getDomainUserInfo:function(){return x()},setReferrerUrl:function(d){$a=d},setCustomUrl:function(d){t();var k=ma,p;aa(d)?Da=d:"/"===d.slice(0, | ||
1)?Da=aa(k)+"://"+fb(k)+d:(k=K(k),0<=(p=k.indexOf("?"))&&(k=k.slice(0,p)),(p=k.lastIndexOf("/"))!==k.length-1&&(k=k.slice(0,p+1)),Da=k+d)},setDocumentTitle:function(d){Ca=document.title;Ka=d},discardHashTag:function(d){Wb=d},discardBrace:function(d){Xb=d},setCookiePath:function(d){hb=d;O()},setVisitorCookieTimeout:function(d){Zb=d},crossDomainLinker:function(d){V(d)},enableActivityTracking:function(d){T.configurations.pagePing||(T.enabled=!0,T.configurations.pagePing=ha(ba(ba({},d),{callback:fa})))}, | ||
enableActivityTrackingCallback:function(d){T.configurations.callback||(T.enabled=!0,T.configurations.callback=ha(d))},updatePageActivity:function(){E()},setOptOutCookie:function(d){La=d},setUserId:function(d){ta=d},setUserIdFromLocation:function(d){t();ta=Fa(d,ma)},setUserIdFromReferrer:function(d){t();ta=Fa(d,Ia)},setUserIdFromCookie:function(d){ta=W(d)},setCollectorUrl:function(d){Bb=A(d);oa.setCollectorUrl(Bb)},setBufferSize:function(d){oa.setBufferSize(d)},flushBuffer:function(d){void 0===d&& | ||
(d={});oa.executeQueue();d.newBufferSize&&oa.setBufferSize(d.newBufferSize)},trackPageView:function(d){void 0===d&&(d={});ca(d)},preservePageViewId:function(){cc=!0},disableAnonymousTracking:function(d){h.anonymousTracking=!1;xa(d);n();oa.executeQueue()},enableAnonymousTracking:function(d){var k;h.anonymousTracking=null!==(k=d&&(null===d||void 0===d?void 0:d.options))&&void 0!==k?k:!0;xa(d);Ba||u()},clearUserData:Ha}),{id:q,namespace:z,core:S,sharedState:v})}(a,b,c,e,g,f);var m=ba(ba({},a),{addPlugin:function(q){var z, | ||
D;m.core.addPlugin(q);null===(D=(z=q.plugin).activateBrowserPlugin)||void 0===D?void 0:D.call(z,m)}});null===(l=f.plugins)||void 0===l?void 0:l.forEach(function(q){var z;null===(z=q.activateBrowserPlugin)||void 0===z?void 0:z.call(q,m)});return m}function C(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Ma);a=Ma;for(var e=[],g=0;g<c.length;g++){var f=c[g];a.hasOwnProperty(f)?e.push(a[f]):ea.warn(f+" not configured")}e.forEach(b)}catch(l){ea.error("Function failed",l)}}function Ic(){function a(){"hidden"== | ||
g.visibilityState&&e.bufferFlushers.forEach(function(l){l(!1)})}function b(){var l;if(!e.hasLoaded)for(e.hasLoaded=!0,l=0;l<e.registeredOnLoadHandlers.length;l++)e.registeredOnLoadHandlers[l]();return!0}function c(){g.addEventListener?g.addEventListener("DOMContentLoaded",function m(){g.removeEventListener("DOMContentLoaded",m,!1);b()}):g.attachEvent&&g.attachEvent("onreadystatechange",function q(){"complete"===g.readyState&&(g.detachEvent("onreadystatechange",q),b())});ka(f,"load",b,!1)}var e=new Jc, | ||
g=document,f=window;g.visibilityState&&ka(g,"visibilitychange",a,!1);ka(f,"beforeunload",function(){e.bufferFlushers.forEach(function(l){l(!1)})},!1);"loading"===document.readyState?c():b();return e}for(var ba=function(){ba=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(a[g]=b[g])}return a};return ba.apply(this,arguments)},gc=cb(function(a){var b="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)|| | ||
"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(b){var c=new Uint8Array(16);a.exports=function(){b(c);return c}}else{var e=Array(16);a.exports=function(){for(var g=0,f;16>g;g++)0===(g&3)&&(f=4294967296*Math.random()),e[g]=f>>>((g&3)<<3)&255;return e}}}),N=[],pa=0;256>pa;++pa)N[pa]=(pa+256).toString(16).substr(1);var hc=function(a,b){b=b||0;return[N[a[b++]],N[a[b++]],N[a[b++]],N[a[b++]],"-",N[a[b++]],N[a[b++]],"-",N[a[b++]], | ||
N[a[b++]],"-",N[a[b++]],N[a[b++]],"-",N[a[b++]],N[a[b++]],N[a[b++]],N[a[b++]],N[a[b++]],N[a[b++]]].join("")},ic,Cb,Db=0,Eb=0;pa=function(a,b,c){c=b&&c||0;"string"==typeof a&&(b="binary"===a?Array(16):null,a=null);a=a||{};a=a.random||(a.rng||gc)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(b)for(var e=0;16>e;++e)b[c+e]=a[e];return b||hc(a)};pa.v1=function(a,b,c){c=b&&c||0;var e=b||[];a=a||{};var g=a.node||ic,f=void 0!==a.clockseq?a.clockseq:Cb;if(null==g||null==f){var l=gc();null==g&&(g=ic=[l[0]|1,l[1],l[2], | ||
l[3],l[4],l[5]]);null==f&&(f=Cb=(l[6]<<8|l[7])&16383)}l=void 0!==a.msecs?a.msecs:(new Date).getTime();var m=void 0!==a.nsecs?a.nsecs:Eb+1,q=l-Db+(m-Eb)/1E4;0>q&&void 0===a.clockseq&&(f=f+1&16383);(0>q||l>Db)&&void 0===a.nsecs&&(m=0);if(1E4<=m)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Db=l;Eb=m;Cb=f;l+=122192928E5;a=(1E4*(l&268435455)+m)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=l/4294967296*1E4&268435455;e[c++]=a>>>8&255;e[c++]=a&255;e[c++]= | ||
a>>>24&15|16;e[c++]=a>>>16&255;e[c++]=f>>>8|128;e[c++]=f&255;for(f=0;6>f;++f)e[c+f]=g[f];return b?b:hc(e)};var R=pa.v4=pa,Oa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ja;(function(a){a[a.none=0]="none";a[a.error=1]="error";a[a.warn=2]="warn";a[a.debug=3]="debug";a[a.info=4]="info"})(ja||(ja={}));var ea=function(a){void 0===a&&(a=ja.warn);return{setLogLevel:function(b){a=ja[b]?b:ja.warn},warn:function(b,c){for(var e=[],g=2;g<arguments.length;g++)e[g-2]=arguments[g];a>=ja.warn&& | ||
"undefined"!==typeof console&&(g="Snowplow: "+b,c?console.warn.apply(console,Z([g+"\n",c],e)):console.warn.apply(console,Z([g],e)))},error:function(b,c){for(var e=[],g=2;g<arguments.length;g++)e[g-2]=arguments[g];a>=ja.error&&"undefined"!==typeof console&&(g="Snowplow: "+b+"\n",c?console.error.apply(console,Z([g+"\n",c],e)):console.error.apply(console,Z([g],e)))},debug:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=ja.debug&&"undefined"!==typeof console&&console.debug.apply(console, | ||
Z(["Snowplow: "+b],c))},info:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=ja.info&&"undefined"!==typeof console&&console.info.apply(console,Z(["Snowplow: "+b],c))}}}(),bb=cb(function(a){(function(){var b={rotl:function(c,e){return c<<e|c>>>32-e},rotr:function(c,e){return c<<32-e|c>>>e},endian:function(c){if(c.constructor==Number)return b.rotl(c,8)&16711935|b.rotl(c,24)&4278255360;for(var e=0;e<c.length;e++)c[e]=b.endian(c[e]);return c},randomBytes:function(c){for(var e= | ||
[];0<c;c--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(c){for(var e=[],g=0,f=0;g<c.length;g++,f+=8)e[f>>>5]|=c[g]<<24-f%32;return e},wordsToBytes:function(c){for(var e=[],g=0;g<32*c.length;g+=8)e.push(c[g>>>5]>>>24-g%32&255);return e},bytesToHex:function(c){for(var e=[],g=0;g<c.length;g++)e.push((c[g]>>>4).toString(16)),e.push((c[g]&15).toString(16));return e.join("")},hexToBytes:function(c){for(var e=[],g=0;g<c.length;g+=2)e.push(parseInt(c.substr(g,2),16));return e},bytesToBase64:function(c){for(var e= | ||
[],g=0;g<c.length;g+=3)for(var f=c[g]<<16|c[g+1]<<8|c[g+2],l=0;4>l;l++)8*g+6*l<=8*c.length?e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>>6*(3-l)&63)):e.push("=");return e.join("")},base64ToBytes:function(c){c=c.replace(/[^A-Z0-9+\/]/ig,"");for(var e=[],g=0,f=0;g<c.length;f=++g%4)0!=f&&e.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(c.charAt(g-1))&Math.pow(2,-2*f+8)-1)<<2*f|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(c.charAt(g))>>> | ||
6-2*f);return e}};a.exports=b})()}),Fb={utf8:{stringToBytes:function(a){return Fb.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(Fb.bin.bytesToString(a)))}},bin:{stringToBytes:function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c)&255);return b},bytesToString:function(a){for(var b=[],c=0;c<a.length;c++)b.push(String.fromCharCode(a[c]));return b.join("")}}},jc=Fb,Bc=cb(function(a){(function(){var b=jc.utf8,c=jc.bin,e=function(g, | ||
f){var l=bb.wordsToBytes,m=g;m.constructor==String?m=b.stringToBytes(m):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(m)?m=Array.prototype.slice.call(m,0):Array.isArray(m)||(m=m.toString());g=bb.bytesToWords(m);var q=8*m.length;m=[];var z=1732584193,D=-271733879,H=-1732584194,v=271733878,h=-1009589776;g[q>>5]|=128<<24-q%32;g[(q+64>>>9<<4)+15]=q;for(q=0;q<g.length;q+=16){for(var t=z,I=D,V=H,K=v,aa=h,F=0;80>F;F++){if(16>F)m[F]=g[q+F];else{var O=m[F-3]^m[F-8]^m[F-14]^ | ||
m[F-16];m[F]=O<<1|O>>>31}O=(z<<5|z>>>27)+h+(m[F]>>>0)+(20>F?(D&H|~D&v)+1518500249:40>F?(D^H^v)+1859775393:60>F?(D&H|D&v|H&v)-1894007588:(D^H^v)-899497514);h=v;v=H;H=D<<30|D>>>2;D=z;z=O}z+=t;D+=I;H+=V;v+=K;h+=aa}l=l.call(bb,[z,D,H,v,h]);return f&&f.asBytes?l:f&&f.asString?c.bytesToString(l):bb.bytesToHex(l)};e._blocksize=16;e._digestsize=20;a.exports=e})()}),Ma={},Jc=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),kc="undefined"!== | ||
typeof window?Ic():void 0;w.addGlobalContexts=function(a,b){C(b,function(c){c.core.addGlobalContexts(a)})};w.addPlugin=function(a,b){C(b,function(c){c.addPlugin(a)})};w.clearGlobalContexts=function(a){C(a,function(b){b.core.clearGlobalContexts()})};w.clearUserData=function(a,b){C(b,function(c){c.clearUserData(a)})};w.crossDomainLinker=function(a,b){C(b,function(c){c.crossDomainLinker(a)})};w.disableAnonymousTracking=function(a,b){C(b,function(c){c.disableAnonymousTracking(a)})};w.discardBrace=function(a, | ||
b){C(b,function(c){c.discardBrace(a)})};w.discardHashTag=function(a,b){C(b,function(c){c.discardHashTag(a)})};w.enableActivityTracking=function(a,b){C(b,function(c){c.enableActivityTracking(a)})};w.enableActivityTrackingCallback=function(a,b){C(b,function(c){c.enableActivityTrackingCallback(a)})};w.enableAnonymousTracking=function(a,b){C(b,function(c){c.enableAnonymousTracking(a)})};w.flushBuffer=function(a,b){C(b,function(c){c.flushBuffer(a)})};w.newSession=function(a){C(a,function(b){b.newSession()})}; | ||
w.newTracker=function(a,b,c){void 0===c&&(c={});if(kc)return Ma.hasOwnProperty(a)?a=null:(Ma[a]=Ac(a,a,"js-3.1.6",b,kc,c),a=Ma[a]),a};w.preservePageViewId=function(a){C(a,function(b){b.preservePageViewId()})};w.removeGlobalContexts=function(a,b){C(b,function(c){c.core.removeGlobalContexts(a)})};w.setBufferSize=function(a,b){C(b,function(c){c.setBufferSize(a)})};w.setCollectorUrl=function(a,b){C(b,function(c){c.setCollectorUrl(a)})};w.setCookiePath=function(a,b){C(b,function(c){c.setCookiePath(a)})}; | ||
w.setCustomUrl=function(a,b){C(b,function(c){c.setCustomUrl(a)})};w.setDocumentTitle=function(a,b){C(b,function(c){c.setDocumentTitle(a)})};w.setOptOutCookie=function(a,b){C(b,function(c){c.setOptOutCookie(a)})};w.setReferrerUrl=function(a,b){C(b,function(c){c.setReferrerUrl(a)})};w.setUserId=function(a,b){C(b,function(c){c.setUserId(a)})};w.setUserIdFromCookie=function(a,b){C(b,function(c){c.setUserIdFromCookie(a)})};w.setUserIdFromLocation=function(a,b){C(b,function(c){c.setUserIdFromLocation(a)})}; | ||
w.setUserIdFromReferrer=function(a,b){C(b,function(c){c.setUserIdFromReferrer(a)})};w.setVisitorCookieTimeout=function(a,b){C(b,function(c){c.setVisitorCookieTimeout(a)})};w.trackPageView=function(a,b){C(b,function(c){c.trackPageView(a)})};w.trackSelfDescribingEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,g=a.event,f=g.schema,l=g.data;g=Na();f={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:f,data:l}};g.add("e","ue");g.addJson("ue_px","ue_pr", | ||
f);e.call(c,g,a.context,a.timestamp)})};w.trackStructEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,g=a.category,f=a.action,l=a.label,m=a.property,q=a.value,z=Na();z.add("e","se");z.add("se_ca",g);z.add("se_ac",f);z.add("se_la",l);z.add("se_pr",m);z.add("se_va",null==q?void 0:q.toString());e.call(c,z,a.context,a.timestamp)})};w.updatePageActivity=function(a){C(a,function(b){b.updatePageActivity()})};w.version="3.1.6";Object.defineProperty(w,"__esModule",{value:!0})}) | ||
//# sourceMappingURL=index.umd.min.js.map |
{ | ||
"name": "@snowplow/browser-tracker", | ||
"version": "3.1.5", | ||
"version": "3.1.6", | ||
"description": "Browser tracker for Snowplow", | ||
@@ -35,8 +35,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@snowplow/browser-tracker-core": "3.1.5", | ||
"@snowplow/tracker-core": "3.1.5", | ||
"@snowplow/browser-tracker-core": "3.1.6", | ||
"@snowplow/tracker-core": "3.1.6", | ||
"tslib": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"@ampproject/rollup-plugin-closure-compiler": "^0.26.0", | ||
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0", | ||
"@rollup/plugin-commonjs": "^17.1.0", | ||
@@ -43,0 +43,0 @@ "@rollup/plugin-node-resolve": "^11.2.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
934981
5405
+ Added@snowplow/browser-tracker-core@3.1.6(transitive)
+ Added@snowplow/tracker-core@3.1.6(transitive)
- Removed@snowplow/browser-tracker-core@3.1.5(transitive)
- Removed@snowplow/tracker-core@3.1.5(transitive)
Updated@snowplow/tracker-core@3.1.6