@snowplow/browser-tracker
Advanced tools
Comparing version 3.13.1-dev.0 to 3.13.1
import { TrackerConfiguration, BrowserTracker, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, AnonymousTrackingOptions, FlushBufferConfiguration, PageViewEvent, ClearUserDataConfiguration } from '@snowplow/browser-tracker-core'; | ||
import { version, CommonEventProperties, ConditionalContextProvider, ContextPrimitive, ContextGenerator, FilterProvider, RuleSetProvider, SelfDescribingEvent, SelfDescribingJson, StructuredEvent, ContextEvent, ContextFilter, RuleSet, Scenario } from '@snowplow/tracker-core'; | ||
import { version, CommonEventProperties, ConditionalContextProvider, ContextPrimitive, ContextGenerator, FilterProvider, RuleSetProvider, SelfDescribingEvent, SelfDescribingJson, StructuredEvent, ContextEvent, ContextFilter, RuleSet } from '@snowplow/tracker-core'; | ||
/** | ||
@@ -241,2 +241,2 @@ * Initialise a new tracker | ||
declare function addPlugin(configuration: BrowserPluginConfiguration, trackers?: Array<string>): void; | ||
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, Scenario, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin }; | ||
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin }; |
/*! | ||
* Browser tracker for Snowplow v3.13.1-dev.0 (http://bit.ly/sp-js) | ||
* Browser tracker for Snowplow v3.13.1 (http://bit.ly/sp-js) | ||
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -284,3 +284,3 @@ * Licensed under BSD-3-Clause | ||
dispatchToTrackers(trackers, function (t) { | ||
t.core.track(buildStructEvent(event), event.context, event.timestamp, event.scenario); | ||
t.core.track(buildStructEvent(event), event.context, event.timestamp); | ||
}); | ||
@@ -298,3 +298,3 @@ } | ||
dispatchToTrackers(trackers, function (t) { | ||
t.core.track(buildSelfDescribingEvent({ event: event.event }), event.context, event.timestamp, event.scenario); | ||
t.core.track(buildSelfDescribingEvent({ event: event.event }), event.context, event.timestamp); | ||
}); | ||
@@ -301,0 +301,0 @@ } |
import { TrackerConfiguration, BrowserTracker, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, AnonymousTrackingOptions, FlushBufferConfiguration, PageViewEvent, ClearUserDataConfiguration } from '@snowplow/browser-tracker-core'; | ||
import { version, CommonEventProperties, ConditionalContextProvider, ContextPrimitive, ContextGenerator, FilterProvider, RuleSetProvider, SelfDescribingEvent, SelfDescribingJson, StructuredEvent, ContextEvent, ContextFilter, RuleSet, Scenario } from '@snowplow/tracker-core'; | ||
import { version, CommonEventProperties, ConditionalContextProvider, ContextPrimitive, ContextGenerator, FilterProvider, RuleSetProvider, SelfDescribingEvent, SelfDescribingJson, StructuredEvent, ContextEvent, ContextFilter, RuleSet } from '@snowplow/tracker-core'; | ||
/** | ||
@@ -241,2 +241,2 @@ * Initialise a new tracker | ||
declare function addPlugin(configuration: BrowserPluginConfiguration, trackers?: Array<string>): void; | ||
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, Scenario, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin }; | ||
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin }; |
import { TrackerConfiguration, BrowserTracker, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, DisableAnonymousTrackingConfiguration, EnableAnonymousTrackingConfiguration, AnonymousTrackingOptions, FlushBufferConfiguration, PageViewEvent, ClearUserDataConfiguration } from '@snowplow/browser-tracker-core'; | ||
import { version, CommonEventProperties, ConditionalContextProvider, ContextPrimitive, ContextGenerator, FilterProvider, RuleSetProvider, SelfDescribingEvent, SelfDescribingJson, StructuredEvent, ContextEvent, ContextFilter, RuleSet, Scenario } from '@snowplow/tracker-core'; | ||
import { version, CommonEventProperties, ConditionalContextProvider, ContextPrimitive, ContextGenerator, FilterProvider, RuleSetProvider, SelfDescribingEvent, SelfDescribingJson, StructuredEvent, ContextEvent, ContextFilter, RuleSet } from '@snowplow/tracker-core'; | ||
/** | ||
@@ -241,2 +241,2 @@ * Initialise a new tracker | ||
declare function addPlugin(configuration: BrowserPluginConfiguration, trackers?: Array<string>): void; | ||
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, Scenario, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin }; | ||
export { newTracker, BrowserTracker, TrackerConfiguration, CookieSameSite, Platform, EventMethod, StateStorageStrategy, ClientSession, version, ActivityTrackingConfiguration, ActivityTrackingConfigurationCallback, ActivityCallback, ActivityCallbackData, BrowserPlugin, BrowserPluginConfiguration, BuiltInContexts, FlushBufferConfiguration, PageViewEvent, EnableAnonymousTrackingConfiguration, DisableAnonymousTrackingConfiguration, AnonymousTrackingOptions, ClearUserDataConfiguration, ConditionalContextProvider, ContextPrimitive, SelfDescribingEvent, SelfDescribingJson, CommonEventProperties, StructuredEvent, ContextGenerator, FilterProvider, RuleSetProvider, ContextEvent, ContextFilter, RuleSet, newSession, setReferrerUrl, setCustomUrl, setDocumentTitle, discardHashTag, discardBrace, setCookiePath, setVisitorCookieTimeout, crossDomainLinker, enableActivityTracking, enableActivityTrackingCallback, updatePageActivity, setOptOutCookie, setUserId, setUserIdFromLocation, setUserIdFromReferrer, setUserIdFromCookie, setCollectorUrl, setBufferSize, flushBuffer, trackPageView, trackStructEvent, trackSelfDescribingEvent, addGlobalContexts, removeGlobalContexts, clearGlobalContexts, preservePageViewId, disableAnonymousTracking, enableAnonymousTracking, clearUserData, addPlugin }; |
/*! | ||
* Browser tracker for Snowplow v3.13.1-dev.0 (http://bit.ly/sp-js) | ||
* Browser tracker for Snowplow v3.13.1 (http://bit.ly/sp-js) | ||
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -7,82 +7,81 @@ * Licensed under BSD-3-Clause | ||
'use strict';(function(x,Q){"object"===typeof exports&&"undefined"!==typeof module?Q(exports):"function"===typeof define&&define.amd?define(["exports"],Q):(x="undefined"!==typeof globalThis?globalThis:x||self,Q(x.snowplowBrowserTracking={}))})(this,function(x){function Q(a,b,c){if(c||2===arguments.length)for(var e=0,f=b.length,g;e<f;e++)!g&&e in b||(g||(g=Array.prototype.slice.call(b,0,e)),g[e]=b[e]);return a.concat(g||Array.prototype.slice.call(b))}function Ic(a){var b=0,c=0;var e="";var f=[];if(!a)return a; | ||
a+="";do{var g=ma.indexOf(a.charAt(b++));var h=ma.indexOf(a.charAt(b++));e=ma.indexOf(a.charAt(b++));var m=ma.indexOf(a.charAt(b++));var r=g<<18|h<<12|e<<6|m;g=r>>16&255;h=r>>8&255;r&=255;64===e?f[c++]=String.fromCharCode(g):64===m?f[c++]=String.fromCharCode(g,h):f[c++]=String.fromCharCode(g,h,r)}while(b<a.length);e=f.join("");return function(n){return decodeURIComponent(n.split("").map(function(A){return"%"+("00"+A.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(e.replace(/\0+$/,""))}function Sa(){var a= | ||
{},b=[],c=[],e=[],f,g=function(h,m){null!=m&&""!==m&&(a[h]=m)};return{add:g,addDict:function(h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&g(m,h[m])},addJson:function(h,m,r){r&&Wb(r)&&(h={keyIfEncoded:h,keyIfNotEncoded:m,json:r},c.push(h),b.push(h))},addContextEntity:function(h){e.push(h)},getPayload:function(){return a},getJson:function(){return b},withJsonProcessor:function(h){f=h},build:function(){null===f||void 0===f?void 0:f(this,c,e);return a}}}function Jc(a){return function(b, | ||
c,e){for(var f=function(n,A,w){n=JSON.stringify(n);if(a){w=b.add;if(n){var t=0,k=0,v=[];if(n){n=unescape(encodeURIComponent(n));do{var H=n.charCodeAt(t++);var P=n.charCodeAt(t++);var J=n.charCodeAt(t++);var G=H<<16|P<<8|J;H=G>>18&63;P=G>>12&63;J=G>>6&63;G&=63;v[k++]=ma.charAt(H)+ma.charAt(P)+ma.charAt(J)+ma.charAt(G)}while(t<n.length);t=v.join("");n=n.length%3;n=(n?t.slice(0,n-3):t)+"===".slice(n||3)}n=n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}w.call(b,A,n)}else b.add(w,n)},g=function(n, | ||
A){if(!n){var w=b.getPayload();if(a?w.cx:w.co){n=JSON;var t=n.parse;if(a){if(w=w.cx){switch(4-w.length%4){case 2:w+="==";break;case 3:w+="="}w=w.replace(/-/g,"+").replace(/_/g,"/");w=Ic(w)}}else w=w.co;n=t.call(n,w)}else n=void 0}n?n.data=n.data.concat(A.data):n=A;return n},h=void 0,m=0;m<c.length;m++){var r=c[m];"cx"===r.keyIfEncoded?h=g(h,r.json):f(r.json,r.keyIfEncoded,r.keyIfNotEncoded)}c.length=0;e.length&&(c={schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:Q([],e, | ||
!0)},h=g(h,c),e.length=0);h&&f(h,"cx","co")}}function Wb(a){if(!Xb(a))return!1;for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function Xb(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function Kc(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var e=[],f=[],g=0;g<c.length;g++){var h=c[g];Yb(h)?e.push(h):Ba(h)&&f.push(h)}a= | ||
a.concat(f);b=b.concat(e)},clearGlobalContexts:function(){b=[];a=[]},removeGlobalContexts:function(c){for(var e=function(g){Yb(g)?b=b.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}):Ba(g)&&(a=a.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}))},f=0;f<c.length;f++)e(c[f])},getApplicableContexts:function(c){a:{var e=0;for(var f=c.getJson();e<f.length;e++){var g=f[e];if("ue_px"===g.keyIfEncoded&&"object"===typeof g.json.data&&(g=g.json.data.schema,"string"==typeof g)){e= | ||
g;break a}}e=""}f=c.getPayload().e;g="string"===typeof f?f:"";f=[];var h=ib(a,c,g,e);f.push.apply(f,h);c=Lc(b,c,g,e);f.push.apply(f,c);return f}}}function Mc(a){return{addPluginContexts:function(b){var c=Q([],b,!0);a.forEach(function(e){try{e.contexts&&c.push.apply(c,e.contexts())}catch(f){ba.error("Error adding plugin contexts",f)}});return c}}}function Nc(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 Zb(a){return(a=a.split("."))&&1<a.length?Nc(a):!1}function $b(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&&Zb(a[1]))return a.slice(1,6)}function jb(a){if(a=$b(a)){var b=a[0];return 5===a.length&&Zb(b)}return!1}function Oc(a){return Array.isArray(a)&&a.every(function(b){return"string"===typeof b})}function ac(a){return Oc(a)?a.every(function(b){return jb(b)}): | ||
"string"===typeof a?jb(a):!1}function Ha(a){return Wb(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function Pc(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(ac(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(ac(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function Ta(a){return"function"===typeof a&&1>=a.length}function Ba(a){return Ta(a)||Ha(a)} | ||
function bc(a){return Array.isArray(a)&&2===a.length?Array.isArray(a[1])?Ta(a[0])&&a[1].every(Ba):Ta(a[0])&&Ba(a[1]):!1}function cc(a){return Array.isArray(a)&&2===a.length?Pc(a[0])?Array.isArray(a[1])?a[1].every(Ba):Ba(a[1]):!1:!1}function Yb(a){return bc(a)||cc(a)}function Qc(a,b){var c=0,e=0,f=a.accept;Array.isArray(f)?a.accept.some(function(g){return Ua(g,b)})&&e++:"string"===typeof f&&Ua(f,b)&&e++;f=a.reject;Array.isArray(f)?a.reject.some(function(g){return Ua(g,b)})&&c++:"string"===typeof f&& | ||
Ua(f,b)&&c++;return 0<e&&0===c?!0:!1}function Ua(a,b){if(!jb(a))return!1;a=$b(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(!Rc(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!dc(a[c],b[c]))return!1;return!0}return!1}function Rc(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(!dc(b[c],a[c]))return!1;return!0}return!1}function dc(a, | ||
b){return a&&b&&"*"===a||a===b}function ec(a){return Array.isArray(a)?a:[a]}function ib(a,b,c,e){var f;a=ec(a).map(function(g){a:if(Ha(g))g=[g];else{if(Ta(g)){b:{var h=void 0;try{var m={event:b.getPayload(),eventType:c,eventSchema:e};h=g(m);if(Array.isArray(h)&&h.every(Ha)||Ha(h)){var r=h;break b}r=void 0;break b}catch(n){}r=void 0}if(Ha(r)){g=[r];break a}else if(Array.isArray(r)){g=r;break a}}g=void 0}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&& | ||
g.filter(Boolean)}))}function Lc(a,b,c,e){var f;a=ec(a).map(function(g){a:{if(bc(g)){var h=g[0],m=!1;try{var r={event:b.getPayload(),eventType:c,eventSchema:e};m=h(r)}catch(n){m=!1}if(!0===m){g=ib(g[1],b,c,e);break a}}else if(cc(g)&&Qc(g[0],e)){g=ib(g[1],b,c,e);break a}g=[]}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&g.filter(Boolean)}))}function Sc(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 Tc(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,e=null!==c&&void 0!==c?c:[];a=function(g,h,m){function r(k,v){k=A.getApplicableContexts(k);var H=[];v&&v.length&&H.push.apply(H,v);k&&k.length&&H.push.apply(H,k);return H}var n=Mc(h),A=Kc(),w=g,t={};return{track:function(k,v,H,P){k.withJsonProcessor(Jc(w));k.add("eid",ia.v4());k.addDict(t);H=Sc(H);k.add(H.type,H.value.toString());P=P?[{schema:"iglu:com.snowplowanalytics.snowplow/tracking_scenario/jsonschema/1-0-0", | ||
data:P}]:[];v=v?Q([],v,!0):[];v=r(k,n.addPluginContexts(Q(Q([],v,!0),P,!0)));v=v&&v.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:v}:void 0;void 0!==v&&k.addJson("cx","co",v);h.forEach(function(G){try{G.beforeTrack&&G.beforeTrack(k)}catch(E){ba.error("Plugin beforeTrack",E)}});"function"===typeof m&&m(k);var J=k.build();h.forEach(function(G){try{G.afterTrack&&G.afterTrack(J)}catch(E){ba.error("Plugin afterTrack",E)}});return J},addPayloadPair:function(k,v){t[k]= | ||
v},getBase64Encoding:function(){return w},setBase64Encoding:function(k){w=k},addPayloadDict:function(k){for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(t[v]=k[v])},resetPayloadPairs:function(k){t=Xb(k)?k:{}},setTrackerVersion:function(k){t.tv=k},setTrackerNamespace:function(k){t.tna=k},setAppId:function(k){t.aid=k},setPlatform:function(k){t.p=k},setUserId:function(k){t.uid=k},setScreenResolution:function(k,v){t.res=k+"x"+v},setViewport:function(k,v){t.vp=k+"x"+v},setColorDepth:function(k){t.cd= | ||
k},setTimezone:function(k){t.tz=k},setLang:function(k){t.lang=k},setIpAddress:function(k){t.ip=k},setUseragent:function(k){t.ua=k},addGlobalContexts:function(k){A.addGlobalContexts(k)},clearGlobalContexts:function(){A.clearGlobalContexts()},removeGlobalContexts:function(k){A.removeGlobalContexts(k)}}}(null!==b&&void 0!==b?b:!0,e,a.callback);var f=S(S({},a),{addPlugin:function(g){var h,m;g=g.plugin;e.push(g);null===(h=g.logger)||void 0===h?void 0:h.call(g,ba);null===(m=g.activateCorePlugin)||void 0=== | ||
m?void 0:m.call(g,f)}});null===e||void 0===e?void 0:e.forEach(function(g){var h,m;null===(h=g.logger)||void 0===h?void 0:h.call(g,ba);null===(m=g.activateCorePlugin)||void 0===m?void 0:m.call(g,f)});return f}function Uc(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var e=Sa();e.add("e","pv");e.add("url",b);e.add("page",c);e.add("refr",a);return e}function Va(a,b,c){void 0===c&&(c=63072E3);try{var e=window.localStorage,f=Date.now()+1E3*c;e.setItem("".concat(a,".expires"),f.toString());e.setItem(a, | ||
b);return!0}catch(g){return!1}}function fc(a){try{var b=window.localStorage;b.removeItem(a);b.removeItem(a+".expires");return!0}catch(c){return!1}}function gc(a){try{return window.sessionStorage.getItem(a)}catch(b){}}function hc(a){return Number.isInteger&&Number.isInteger(a)||"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function ic(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 kb(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a); | ||
return b?b[1]:a}function jc(a){var b=a.length;"."===a.charAt(--b)&&(a=a.slice(0,b));"*."===a.slice(0,2)&&(a=a.slice(1));return a}function lb(a){var b=window,c=Ia("referrer",b.location.href)||Ia("referer",b.location.href);if(c)return c;if(a)return a;try{if(b.top)return b.top.document.referrer;if(b.parent)return b.parent.document.referrer}catch(e){}return document.referrer}function na(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 Ia(a,b){return(a=(new RegExp("^[^#]*[?&]"+a+"=([^&#]*)")).exec(b))?decodeURIComponent(a[1].replace(/\+/g," ")):null}function Vc(a,b){for(var c=window.location.hostname,e="_sp_root_domain_test_"+(new Date).getTime(),f="_test_value_"+(new Date).getTime(),g=c.split("."),h=g.length-2;0<=h;h--){var m=g.slice(h).join(".");da(e,f,0,"/",m,a,b);if(da(e)===f){da(e,"",-1,"/",m,a,b);c=document.cookie.split("; ");e=[];for(f=0;f<c.length;f++)"_sp_root_domain_test_"===c[f].substring(0,21)&& | ||
e.push(c[f]);c=e;for(e=0;e<c.length;e++)da(c[e],"",-1,"/",m,a,b);return m}}return c}function da(a,b,c,e,f,g,h){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:"")+(f?"; Domain="+f:"")+(g?"; SameSite="+g:"")+(h?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+a+"=")[1]||"").split(";")[0])}function Wc(){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 Xc(a,b,c,e,f,g,h,m,r,n,A,w,t,k,v,H){function P(q){var z=Object.keys(q).map(function(y){return[y,q[y]]}).reduce(function(y,u){y[u[0]]=u[1].toString();return y},{});return{evt:z,bytes:J(JSON.stringify(z))}}function J(q){for(var z=0,y=0;y<q.length;y++){var u=q.charCodeAt(y);127>=u?z+=1:2047>=u?z+=2:55296<=u&&57343>=u?(z+=4,y++):z=65535>u?z+3:z+4}return z}function G(q){for(void 0=== | ||
q&&(q=!1);D.length&&"string"!==typeof D[0]&&"object"!==typeof D[0];)D.shift();if(1>D.length)T=!1;else{if(!U||"string"!==typeof U.valueOf())throw"No collector configured";T=!0;if(sa){var z=function(L){for(var ca=0,Ca=0;ca<L.length&&!(Ca+=L[ca].bytes,Ca>=h);)ca+=1;return ca},y=void 0;if(ta(D)){y=U;var u=E(y,!0,q);var I=z(D)}else y=Ja(D[0]),u=E(y,!1,q),I=1;var M=setTimeout(function(){u.abort();T=!1},A),ea=function(L){for(var ca=0;ca<L;ca++)D.shift();c&&Va(ua,JSON.stringify(D.slice(0,n)))};u.onreadystatechange= | ||
function(){if(4===u.readyState&&200<=u.status)if(clearTimeout(M),300>u.status)ea(I),G();else{var L=u.status;L=200<=L&&300>L?!1:v.includes(L)?!0:!H.includes(L);L||(ba.error("Status ".concat(u.status,", will not retry.")),ea(I));T=!1}};if(ta(D)){if(z=D.slice(0,I),0<z.length){q=!1;z=z.map(function(L){return L.evt});if(Wa){var Ka=new Blob([W(fa(z))],{type:"application/json"});try{q=navigator.sendBeacon(y,Ka)}catch(L){q=!1}}!0===q?(ea(I),G()):u.send(W(fa(z)))}}else u.send()}else if(w||ta(D))T=!1;else{y= | ||
new Image(1,1);var ha=!0;y.onload=function(){ha&&(ha=!1,D.shift(),c&&Va(ua,JSON.stringify(D.slice(0,n))),G())};y.onerror=function(){ha&&(T=ha=!1)};y.src=Ja(D[0]);setTimeout(function(){ha&&T&&(ha=!1,G())},A)}}}function E(q,z,y){var u=new XMLHttpRequest;z?(u.open("POST",q,!y),u.setRequestHeader("Content-Type","application/json; charset=UTF-8")):u.open("GET",q,!y);u.withCredentials=k;w&&u.setRequestHeader("SP-Anonymous","*");for(var I in t)Object.prototype.hasOwnProperty.call(t,I)&&u.setRequestHeader(I, | ||
t[I]);return u}function W(q){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:q})}function fa(q){for(var z=(new Date).getTime().toString(),y=0;y<q.length;y++)q[y].stm=z;return q}function Ja(q){return r?U+q.replace("?","?stm="+(new Date).getTime()+"&"):U+q}function Xa(q){function z(u,I,M){return(M=M.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&&M.length?parseInt(M[0])<=u||parseInt(M[0])===u&&parseInt(M[1])<=I:!1}function y(u){return u.match("Version/.* Safari/")&& | ||
!u.match("Chrom(e|ium)")}return function(u,I){return(I=I.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&I.length?parseInt(I[0])<=u:!1}(13,q)||z(10,15,q)&&y(q)}var T=!1,U,D=[];e="string"===typeof e?e.toLowerCase():e;var va=!0===e||"beacon"===e||"true"===e,Wa=!(!(va&&window.navigator&&window.navigator.sendBeacon)||Xa(window.navigator.userAgent))&&va,sa=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),wa="get"!==e&&sa&&("post"===e||va),oa=wa?f:"/i",ua="snowplowOutQueue_".concat(a, | ||
"_").concat(wa?"post2":"get");va&&(t={});g=c&&Wc()&&wa&&g||1;if(c)try{var La=window.localStorage.getItem(ua);D=La?JSON.parse(La):[]}catch(q){}Array.isArray(D)||(D=[]);b.outQueues.push(D);sa&&1<g&&b.bufferFlushers.push(function(q){T||G(q)});var ta=function(q){return"object"===typeof q[0]};return{enqueueRequest:function(q,z){U=z+oa;if(wa){q=P(q);if(q.bytes>=h){ba.warn("Event ("+q.bytes+"B) too big, max is "+h);z=q;E(U,!0,!1).send(W(fa([z.evt])));return}D.push(q)}else{var y="?";var u={co:!0,cx:!0},I= | ||
!0,M;for(M in q)q.hasOwnProperty(M)&&!u.hasOwnProperty(M)&&(I?I=!1:y+="&",y+=encodeURIComponent(M)+"="+encodeURIComponent(q[M]));for(var ea in u)q.hasOwnProperty(ea)&&u.hasOwnProperty(ea)&&(y+="&"+ea+"="+encodeURIComponent(q[ea]));if(0<m&&(u=Ja(y),u=J(u),u>=m)){ba.warn("Event ("+u+"B) too big, max is "+m);sa&&(q=P(q),E(z+f,!0,!1).send(W(fa([q.evt]))));return}D.push(y)}z=!1;c&&(z=Va(ua,JSON.stringify(D.slice(0,n))));T||z&&!(D.length>=g)||G()},executeQueue:function(){T||G()},setUseLocalStorage:function(q){c= | ||
q},setAnonymousTracking:function(q){w=q},setCollectorUrl:function(q){U=q+oa},setBufferSize:function(q){g=q}}}function kc(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)?Ia("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=kb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=document.links[0].href,a=kb(b);return[a,b,c]}function Yc(a,b,c,e){var f=Math.round((new Date).getTime()/ | ||
1E3);a?(a=a.split("."),a.unshift("0")):a=["1",b,f,e,f,"",c];a[6]&&"undefined"!==a[6]||(a[6]=ia.v4());a[7]&&"undefined"!==a[7]||(a[7]="");a[8]&&"undefined"!==a[8]||(a[8]="");a[9]&&"undefined"!==a[9]||(a[9]="");a[10]&&"undefined"!==a[10]||(a[10]=0);var g=function(h,m){h=parseInt(h);return isNaN(h)?m:h};b=function(h){return h?g(h,void 0):void 0};return[a[0],a[1],g(a[2],f),g(a[3],e),g(a[4],f),b(a[5]),a[6],a[7],a[8],b(a[9]),g(a[10],0)]}function Ma(a,b){var c=S({memorizedVisitCount:1},b),e=c.memorizedVisitCount; | ||
b=c.configStateStorageStrategy;var f=c.configAnonymousTracking;c=c.onSessionUpdateCallback;"0"===a[0]?(a[7]=a[6],a[5]=a[4],a[3]++):a[3]=e;e=ia.v4();a[6]=e;a[10]=0;a[8]="";a[9]=void 0;c&&c(lc(a,b,f));return e}function mb(a){a[4]=Math.round((new Date).getTime()/1E3)}function lc(a,b,c){var e=a[9];return{userId:c?"00000000-0000-0000-0000-000000000000":a[1],sessionId:a[6],eventIndex:a[10],sessionIndex:a[3],previousSessionId:c?null:a[7]||null,storageMechanism:"localStorage"==b?"LOCAL_STORAGE":"COOKIE_1", | ||
firstEventId:a[8]||null,firstEventTimestamp:e?(new Date(e)).toISOString():null}}function nb(){var a=ob;if("innerWidth"in window){var b=window.innerWidth;var c=window.innerHeight}else c=document.documentElement||document.body,b=c.clientWidth,c=c.clientHeight;a=a(0<=b&&0<=c?b+"x"+c:null);b=ob;var e=document.documentElement,f=document.body;c=Math.max(e.clientWidth,e.offsetWidth,e.scrollWidth);e=Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight,f?Math.max(f.offsetHeight,f.scrollHeight):0);c=isNaN(c)|| | ||
isNaN(e)?"":c+"x"+e;return{viewport:a,documentSize:b(c),resolution:ob(screen.width+"x"+screen.height),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:navigator.language||navigator.userLanguage,documentLanguage:document.documentElement.lang,webdriver:window.navigator.webdriver,deviceMemory:window.navigator.deviceMemory,hardwareConcurrency:window.navigator.hardwareConcurrency}}function ob(a){return a&& | ||
a.split("x").map(function(b){return Math.floor(Number(b))}).join("x")}function Zc(a,b,c,e,f,g){void 0===g&&(g={});var h=[];a=function(r,n,A,w,t,k){function v(){xa=kc(window.location.hostname,window.location.href,lb());xa[1]!==pa&&(Na=lb(pa));mc=jc(xa[0]);pa=xa[1]}function H(d){var l=(new Date).getTime();d=d.currentTarget;if(null===d||void 0===d?0:d.href){l="_sp="+(Ya+"."+l);var p=d.href.split("#"),B=p[0].split("?"),K=B.shift();if(B=B.join("?")){for(var R=!0,X=B.split("&"),V=0;V<X.length;V++)if("_sp="=== | ||
X[V].substr(0,4)){R=!1;X[V]=l;B=X.join("&");break}R&&(B=l+"&"+B)}else B=l;p[0]=K+"?"+B;l=p.join("#");d.href=l}}function P(d){for(var l=0;l<document.links.length;l++){var p=document.links[l];!p.spDecorationEnabled&&d(p)&&(na(p,"click",H,!0),na(p,"mousedown",H,!0),p.spDecorationEnabled=!0)}}function J(d){if(nc){var l=/#.*/;d=d.replace(l,"")}oc&&(l=/[{}]/g,d=d.replace(l,""));return d}function G(d){return(d=/^([a-z]+):/.exec(d))?d[1]:null}function E(d){d=Da+d+"."+ya;if("localStorage"==F){try{var l=window.localStorage, | ||
p=l.getItem(d+".expires");if(null===p||+p>Date.now())var B=l.getItem(d);else l.removeItem(d),l.removeItem(d+".expires"),B=void 0}catch(K){B=void 0}return B}if("cookie"==F||"cookieAndLocalStorage"==F)return da(d)}function W(){v();ya=$c((Oa||mc)+(pb||"/")).slice(0,4)}function fa(){Za=(new Date).getTime()}function Ja(){var d=Xa(),l=d[0];l<$a?$a=l:l>ab&&(ab=l);d=d[1];d<bb?bb=d:d>cb&&(cb=d);fa()}function Xa(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,d.scrollTop||window.pageYOffset]: | ||
[0,0]}function T(){var d=Xa(),l=d[0];ab=$a=l;cb=bb=d=d[1]}function U(){va(Da+"ses."+ya,"*",pc)}function D(d){var l=Da+"id."+ya;d.shift();d=d.join(".");va(l,d,qc)}function va(d,l,p){if(!N||za)"localStorage"==F?Va(d,l,p):("cookie"==F||"cookieAndLocalStorage"==F)&&da(d,l,p,pb,Oa,db,eb)}function Wa(d){var l=Da+"id."+ya,p=Da+"ses."+ya;fc(l);fc(p);da(l,"",-1,"/",Oa,db,eb);da(p,"",-1,"/",Oa,db,eb);null!==d&&void 0!==d&&d.preserveSession||(ja=ia.v4(),Y=1);null!==d&&void 0!==d&&d.preserveUser||(Ya=N?"":ia.v4(), | ||
Aa=null)}function sa(d){d&&d.stateStorageStrategy&&(k.stateStorageStrategy=d.stateStorageStrategy,F=rc(k));N=!!k.anonymousTracking;za=sc(k);qb=tc(k);qa.setUseLocalStorage("localStorage"==F||"cookieAndLocalStorage"==F);qa.setAnonymousTracking(qb)}function wa(){if(!N||za){var d="none"!=F&&!!E("ses"),l=oa();if(l[1])var p=l[1];else p=N?"":ia.v4(),l[1]=p;Ya=p;ja=d?l[6]:Ma(l,{configStateStorageStrategy:F,configAnonymousTracking:N,onSessionUpdateCallback:Pa});Y=l[3];"none"!=F&&(U(),mb(l),D(l))}}function oa(){if("none"== | ||
F)return["1","",0,0,0,void 0,"","","",void 0,0];var d=E("id")||void 0;return Yc(d,Ya,ja,Y)}function ua(d){return 0===d.indexOf("http")?d:("https:"===document.location.protocol?"https":"http")+"://"+d}function La(){uc&&null!=t.pageViewId||(t.pageViewId=ia.v4())}function ta(){null==t.pageViewId&&(t.pageViewId=ia.v4());return t.pageViewId}function q(){if("none"===F||N||!vc)return null;var d=gc("_sp_tab_id");if(!d){d=ia.v4();try{window.sessionStorage.setItem("_sp_tab_id",d)}catch(l){}d=gc("_sp_tab_id")}return d|| | ||
null}function z(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:ta()}}]}}}function y(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/1-0-0",data:S(S({},nb()),{tabId:q()})}]}}}function u(d){var l=d.title,p=d.context,B=d.timestamp,K=d.scenario;d=d.contextCallback;v();wc&&La();wc=!0;Ea=document.title;Qa=l;l=ic(Qa||Ea);Z.track(Uc({pageUrl:J(Fa||pa),pageTitle:l,referrer:J(fb|| | ||
Na)}),(p||[]).concat(d?d():[]),B,K);B=new Date;K=!1;if(aa.enabled&&!aa.installed){K=aa.installed=!0;var R={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var X=!1,V=Object.defineProperty({},"passive",{get:function(){X=!0},set:function(){}}),Ga=function(){};window.addEventListener("testPassiveEventSupport",Ga,V);window.removeEventListener("testPassiveEventSupport",Ga,V);R.hasSupport=X}}};R.update();l="onwheel"in document.createElement("div")?"wheel": | ||
void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(R,"hasSupport")?na(document,l,fa,{passive:!0}):na(document,l,fa);T();l=function(X,V){void 0===V&&(V=fa);return function(Ga){return na(document,Ga,V)}};"click mouseup mousedown mousemove keypress keydown keyup touchend touchstart".split(" ").forEach(l(document));["resize","focus","blur"].forEach(l(window));l(window,Ja)("scroll")}if(aa.enabled&&(ad||K))for(B in Za=B.getTime(),B=void 0,aa.configurations)if(K= | ||
aa.configurations[B])window.clearInterval(K.activityInterval),I(K,p,d)}function I(d,l,p){var B=function(R,X){v();R({context:X,pageViewId:ta(),minXOffset:$a,minYOffset:bb,maxXOffset:ab,maxYOffset:cb});T()},K=function(){Za+d.configHeartBeatTimer>(new Date).getTime()&&B(d.callback,(l||[]).concat(p?p():[]))};d.activityInterval=0!=d.configMinimumVisitLength?window.setTimeout(function(){Za+d.configMinimumVisitLength>(new Date).getTime()&&B(d.callback,(l||[]).concat(p?p():[]));d.activityInterval=window.setInterval(K, | ||
d.configHeartBeatTimer)},d.configMinimumVisitLength):window.setInterval(K,d.configHeartBeatTimer)}function M(d){var l=d.minimumVisitLength,p=d.heartbeatDelay;d=d.callback;if(hc(l)&&hc(p))return{configMinimumVisitLength:1E3*l,configHeartBeatTimer:1E3*p,callback:d};ba.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function ea(d){var l=d.context,p=d.minXOffset,B=d.minYOffset,K=d.maxXOffset,R=d.maxYOffset;d=document.title;d!==Ea&&(Ea=d,Qa=void 0);d=Z;var X=d.track,V=J(Fa|| | ||
pa),Ga=ic(Qa||Ea),bd=J(fb||Na);p=Math.round(p);K=Math.round(K);B=Math.round(B);R=Math.round(R);var ka=Sa();ka.add("e","pp");ka.add("url",V);ka.add("page",Ga);ka.add("refr",bd);p&&!isNaN(Number(p))&&ka.add("pp_mix",p.toString());K&&!isNaN(Number(K))&&ka.add("pp_max",K.toString());B&&!isNaN(Number(B))&&ka.add("pp_miy",B.toString());R&&!isNaN(Number(R))&&ka.add("pp_may",R.toString());X.call(d,ka,l)}var Ka,ha,L,ca,Ca,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb;k.eventMethod=null!== | ||
(Ka=k.eventMethod)&&void 0!==Ka?Ka:"post";var rc=function(d){var l;return null!==(l=d.stateStorageStrategy)&&void 0!==l?l:"cookieAndLocalStorage"},sc=function(d){var l,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withSessionTracking))&&void 0!==p?p:!1},tc=function(d){var l,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withServerAnonymisation))&&void 0!== | ||
p?p:!1},cd=null!==(L=null===(ha=null===k||void 0===k?void 0:k.contexts)||void 0===ha?void 0:ha.browser)&&void 0!==L?L:!1,vc=null!==(Ca=null===(ca=null===k||void 0===k?void 0:k.contexts)||void 0===ca?void 0:ca.webPage)&&void 0!==Ca?Ca:!0;h.push(function(){return{beforeTrack:function(d){var l=E("ses"),p=oa();Ob=Pb?!!da(Pb):!1;if(xc||Ob)Wa();else{"0"===p[0]?(ja=l||"none"==F?p[6]:Ma(p,{configStateStorageStrategy:F,configAnonymousTracking:N,onSessionUpdateCallback:Pa}),Y=p[3]):(new Date).getTime()-Qb> | ||
1E3*pc&&(Y++,ja=Ma(p,{configStateStorageStrategy:F,configAnonymousTracking:N,memorizedVisitCount:Y,onSessionUpdateCallback:Pa}));mb(p);0===p[10]&&(l=d.build(),p[8]=l.eid,l=l.dtm||l.ttm,p[9]=l?parseInt(l):void 0);p[10]+=1;l=nb();var B=l.documentSize;d.add("vp",l.viewport);d.add("ds",B);d.add("vid",za?Y:N?null:Y);d.add("sid",za?ja:N?null:ja);d.add("duid",N?null:p[1]);d.add("uid",N?null:Aa);v();d.add("refr",J(fb||Na));d.add("url",J(Fa||pa));!dd||N&&!za||(l=lc(p,F,N),d.addContextEntity({schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2", | ||
data:l}));"none"!=F&&(D(p),U());Qb=(new Date).getTime()}}}}());vc&&h.push(z());cd&&h.push(y());h.push.apply(h,null!==(rb=k.plugins)&&void 0!==rb?rb:[]);var Z=Tc({base64:k.encodeBase64,corePlugins:h,callback:function(d){xc||Ob||qa.enqueueRequest(d.build(),Rb)}}),ed=document.characterSet||document.charset,xa=kc(window.location.hostname,window.location.href,lb()),mc=jc(xa[0]),pa=xa[1],Na=xa[2],fb,fd=null!==(sb=k.platform)&&void 0!==sb?sb:"web",Rb=ua(w),gd=null!==(tb=k.postPath)&&void 0!==tb?tb:"/com.snowplowanalytics.snowplow/tp2", | ||
hd=null!==(ub=k.appId)&&void 0!==ub?ub:"",Fa,Ea=document.title,Qa,ad=null!==(vb=k.resetActivityTrackingOnPageView)&&void 0!==vb?vb:!0,nc,oc,Da=null!==(wb=k.cookieName)&&void 0!==wb?wb:"_sp_",Oa=null!==(xb=k.cookieDomain)&&void 0!==xb?xb:void 0,pb="/",db=null!==(yb=k.cookieSameSite)&&void 0!==yb?yb:"None",eb=null!==(zb=k.cookieSecure)&&void 0!==zb?zb:!0,yc=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,xc="undefined"!==typeof k.respectDoNotTrack?k.respectDoNotTrack&&("yes"===yc||"1"=== | ||
yc):!1,Pb,qc=null!==(Ab=k.cookieLifetime)&&void 0!==Ab?Ab:63072E3,pc=null!==(Bb=k.sessionCookieTimeout)&&void 0!==Bb?Bb:1800,za=sc(k),qb=tc(k),N=!!k.anonymousTracking,F=rc(k),Za,Qb=(new Date).getTime(),$a,ab,bb,cb,ya,Ya,ja,Y=1,Aa,qa=Xc(r,t,"localStorage"==F||"cookieAndLocalStorage"==F,k.eventMethod,gd,null!==(Cb=k.bufferSize)&&void 0!==Cb?Cb:1,null!==(Db=k.maxPostBytes)&&void 0!==Db?Db:4E4,null!==(Eb=k.maxGetBytes)&&void 0!==Eb?Eb:0,null!==(Fb=k.useStm)&&void 0!==Fb?Fb:!0,null!==(Gb=k.maxLocalStorageQueueSize)&& | ||
void 0!==Gb?Gb:1E3,null!==(Hb=k.connectionTimeout)&&void 0!==Hb?Hb:5E3,qb,null!==(Ib=k.customHeaders)&&void 0!==Ib?Ib:{},null!==(Jb=k.withCredentials)&&void 0!==Jb?Jb:!0,null!==(Kb=k.retryStatusCodes)&&void 0!==Kb?Kb:[],(null!==(Lb=k.dontRetryStatusCodes)&&void 0!==Lb?Lb:[]).concat([400,401,403,410,422])),uc=!1,wc=!1,aa={enabled:!1,installed:!1,configurations:{}},dd=null!==(Nb=null===(Mb=k.contexts)||void 0===Mb?void 0:Mb.session)&&void 0!==Nb?Nb:!1,Ob,Pa=k.onSessionUpdateCallback;k.hasOwnProperty("discoverRootDomain")&& | ||
k.discoverRootDomain&&(Oa=Vc(db,eb));var gb=nb(),id=gb.browserLanguage,jd=gb.resolution,kd=gb.colorDepth,ld=gb.cookiesEnabled;Z.setTrackerVersion(A);Z.setTrackerNamespace(n);Z.setAppId(hd);Z.setPlatform(fd);Z.addPayloadPair("cookie",ld?"1":"0");Z.addPayloadPair("cs",ed);Z.addPayloadPair("lang",id);Z.addPayloadPair("res",jd);Z.addPayloadPair("cd",kd);W();wa();k.crossDomainLinker&&P(k.crossDomainLinker);return S(S({},{getDomainSessionIndex:function(){return Y},getPageViewId:ta,getTabId:q,newSession:function(){var d= | ||
oa();"0"===d[0]?(ja="none"!=F?Ma(d,{configStateStorageStrategy:F,configAnonymousTracking:N,onSessionUpdateCallback:Pa}):d[6],Y=d[3],U()):(Y++,ja=Ma(d,{configStateStorageStrategy:F,configAnonymousTracking:N,memorizedVisitCount:Y,onSessionUpdateCallback:Pa}));mb(d);"none"!=F&&(D(d),U());Qb=(new Date).getTime()},getCookieName:function(d){return Da+d+"."+ya},getUserId:function(){return Aa},getDomainUserId:function(){return oa()[1]},getDomainUserInfo:function(){return oa()},setReferrerUrl:function(d){fb= | ||
d},setCustomUrl:function(d){v();var l=pa,p;G(d)?Fa=d:"/"===d.slice(0,1)?Fa=G(l)+"://"+kb(l)+d:(l=J(l),0<=(p=l.indexOf("?"))&&(l=l.slice(0,p)),(p=l.lastIndexOf("/"))!==l.length-1&&(l=l.slice(0,p+1)),Fa=l+d)},setDocumentTitle:function(d){Ea=document.title;Qa=d},discardHashTag:function(d){nc=d},discardBrace:function(d){oc=d},setCookiePath:function(d){pb=d;W()},setVisitorCookieTimeout:function(d){qc=d},crossDomainLinker:function(d){P(d)},enableActivityTracking:function(d){aa.configurations.pagePing|| | ||
(aa.enabled=!0,aa.configurations.pagePing=M(S(S({},d),{callback:ea})))},enableActivityTrackingCallback:function(d){aa.configurations.callback||(aa.enabled=!0,aa.configurations.callback=M(d))},updatePageActivity:function(){fa()},setOptOutCookie:function(d){Pb=d},setUserId:function(d){Aa=d},setUserIdFromLocation:function(d){v();Aa=Ia(d,pa)},setUserIdFromReferrer:function(d){v();Aa=Ia(d,Na)},setUserIdFromCookie:function(d){Aa=da(d)},setCollectorUrl:function(d){Rb=ua(d);qa.setCollectorUrl(Rb)},setBufferSize:function(d){qa.setBufferSize(d)}, | ||
flushBuffer:function(d){void 0===d&&(d={});qa.executeQueue();d.newBufferSize&&qa.setBufferSize(d.newBufferSize)},trackPageView:function(d){void 0===d&&(d={});u(d)},preservePageViewId:function(){uc=!0},disableAnonymousTracking:function(d){k.anonymousTracking=!1;sa(d);wa();qa.executeQueue()},enableAnonymousTracking:function(d){var l;k.anonymousTracking=null!==(l=d&&(null===d||void 0===d?void 0:d.options))&&void 0!==l?l:!0;sa(d);za||La()},clearUserData:Wa}),{id:r,namespace:n,core:Z,sharedState:t})}(a, | ||
b,c,e,f,g);var m=S(S({},a),{addPlugin:function(r){var n,A;m.core.addPlugin(r);null===(A=(n=r.plugin).activateBrowserPlugin)||void 0===A?void 0:A.call(n,m)}});h.forEach(function(r){var n;null===(n=r.activateBrowserPlugin)||void 0===n?void 0:n.call(r,m)});return m}function C(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Ra);a=Ra;for(var e=[],f=0;f<c.length;f++){var g=c[f];a.hasOwnProperty(g)?e.push(a[g]):ba.warn(g+" not configured")}e.forEach(b)}catch(h){ba.error("Function failed",h)}}function md(){function a(){"hidden"== | ||
f.visibilityState&&e.bufferFlushers.forEach(function(h){h(!1)})}function b(){var h;if(!e.hasLoaded)for(e.hasLoaded=!0,h=0;h<e.registeredOnLoadHandlers.length;h++)e.registeredOnLoadHandlers[h]();return!0}function c(){f.addEventListener?f.addEventListener("DOMContentLoaded",function m(){f.removeEventListener("DOMContentLoaded",m,!1);b()}):f.attachEvent&&f.attachEvent("onreadystatechange",function r(){"complete"===f.readyState&&(f.detachEvent("onreadystatechange",r),b())});na(g,"load",b,!1)}var e=new nd, | ||
f=document,g=window;f.visibilityState&&na(f,"visibilitychange",a,!1);na(g,"beforeunload",function(){e.bufferFlushers.forEach(function(h){h(!1)})},!1);"loading"===document.readyState?c():b();return e}var S=function(){S=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};return S.apply(this,arguments)},ra={},zc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)|| | ||
"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(zc){var Ac=new Uint8Array(16);ra=function(){zc(Ac);return Ac}}else{var Bc=Array(16);ra=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),Bc[a]=b>>>((a&3)<<3)&255;return Bc}}for(var O=[],hb=0;256>hb;++hb)O[hb]=(hb+256).toString(16).substr(1);var Cc=function(a,b){b=b||0;return[O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]], | ||
O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]]].join("")},od=ra,Dc,Sb,Tb=0,Ub=0,pd=ra;ra=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||pd)();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||Cc(a)};ra.v1=function(a,b,c){c=b&&c||0;var e=b||[];a=a||{};var f=a.node||Dc,g=void 0!==a.clockseq?a.clockseq:Sb;if(null==f||null==g){var h=od();null==f&&(f=Dc=[h[0]| | ||
1,h[1],h[2],h[3],h[4],h[5]]);null==g&&(g=Sb=(h[6]<<8|h[7])&16383)}h=void 0!==a.msecs?a.msecs:(new Date).getTime();var m=void 0!==a.nsecs?a.nsecs:Ub+1,r=h-Tb+(m-Ub)/1E4;0>r&&void 0===a.clockseq&&(g=g+1&16383);(0>r||h>Tb)&&void 0===a.nsecs&&(m=0);if(1E4<=m)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Tb=h;Ub=m;Sb=g;h+=122192928E5;a=(1E4*(h&268435455)+m)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=h/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++]=g>>>8|128;e[c++]=g&255;for(g=0;6>g;++g)e[c+g]=f[g];return b?b:Cc(e)};var ia=ra.v4=ra,ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",la;(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"})(la||(la={}));var ba=function(a){void 0===a&&(a=la.warn);return{setLogLevel:function(b){a=la[b]?b:la.warn},warn:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f]; | ||
a>=la.warn&&"undefined"!==typeof console&&(f="Snowplow: "+b,c?console.warn.apply(console,Q([f+"\n",c],e,!1)):console.warn.apply(console,Q([f],e,!1)))},error:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=la.error&&"undefined"!==typeof console&&(f="Snowplow: "+b+"\n",c?console.error.apply(console,Q([f+"\n",c],e,!1)):console.error.apply(console,Q([f],e,!1)))},debug:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=la.debug&&"undefined"!==typeof console&& | ||
console.debug.apply(console,Q(["Snowplow: "+b],c,!1))},info:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=la.info&&"undefined"!==typeof console&&console.info.apply(console,Q(["Snowplow: "+b],c,!1))}}}(),Ec={},Fc={};(function(){var a={rotl:function(b,c){return b<<c|b>>>32-c},rotr:function(b,c){return b<<32-c|b>>>c},endian:function(b){if(b.constructor==Number)return a.rotl(b,8)&16711935|a.rotl(b,24)&4278255360;for(var c=0;c<b.length;c++)b[c]=a.endian(b[c]);return b},randomBytes:function(b){for(var c= | ||
[];0<b;b--)c.push(Math.floor(256*Math.random()));return c},bytesToWords:function(b){for(var c=[],e=0,f=0;e<b.length;e++,f+=8)c[f>>>5]|=b[e]<<24-f%32;return c},wordsToBytes:function(b){for(var c=[],e=0;e<32*b.length;e+=8)c.push(b[e>>>5]>>>24-e%32&255);return c},bytesToHex:function(b){for(var c=[],e=0;e<b.length;e++)c.push((b[e]>>>4).toString(16)),c.push((b[e]&15).toString(16));return c.join("")},hexToBytes:function(b){for(var c=[],e=0;e<b.length;e+=2)c.push(parseInt(b.substr(e,2),16));return c},bytesToBase64:function(b){for(var c= | ||
[],e=0;e<b.length;e+=3)for(var f=b[e]<<16|b[e+1]<<8|b[e+2],g=0;4>g;g++)8*e+6*g<=8*b.length?c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>>6*(3-g)&63)):c.push("=");return c.join("")},base64ToBytes:function(b){b=b.replace(/[^A-Z0-9+\/]/ig,"");for(var c=[],e=0,f=0;e<b.length;f=++e%4)0!=f&&c.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e-1))&Math.pow(2,-2*f+8)-1)<<2*f|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e))>>> | ||
6-2*f);return c}};Fc=a})();var Vb={utf8:{stringToBytes:function(a){return Vb.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(Vb.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("")}}},Gc=Vb;(function(){var a=Fc,b=Gc.utf8,c=Gc.bin,e=function(f,g){var h=a.wordsToBytes, | ||
m=f;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());f=a.bytesToWords(m);var r=8*m.length;m=[];var n=1732584193,A=-271733879,w=-1732584194,t=271733878,k=-1009589776;f[r>>5]|=128<<24-r%32;f[(r+64>>>9<<4)+15]=r;for(r=0;r<f.length;r+=16){for(var v=n,H=A,P=w,J=t,G=k,E=0;80>E;E++){if(16>E)m[E]=f[r+E];else{var W=m[E-3]^m[E-8]^m[E-14]^m[E-16];m[E]=W<<1|W>>>31}W= | ||
(n<<5|n>>>27)+k+(m[E]>>>0)+(20>E?(A&w|~A&t)+1518500249:40>E?(A^w^t)+1859775393:60>E?(A&w|A&t|w&t)-1894007588:(A^w^t)-899497514);k=t;t=w;w=A<<30|A>>>2;A=n;n=W}n+=v;A+=H;w+=P;t+=J;k+=G}h=h.call(a,[n,A,w,t,k]);return g&&g.asBytes?h:g&&g.asString?c.bytesToString(h):a.bytesToHex(h)};e._blocksize=16;e._digestsize=20;Ec=e})();var $c=Ec,Ra={},nd=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),Hc="undefined"!==typeof window?md(): | ||
void 0;x.addGlobalContexts=function(a,b){C(b,function(c){c.core.addGlobalContexts(a)})};x.addPlugin=function(a,b){C(b,function(c){c.addPlugin(a)})};x.clearGlobalContexts=function(a){C(a,function(b){b.core.clearGlobalContexts()})};x.clearUserData=function(a,b){C(b,function(c){c.clearUserData(a)})};x.crossDomainLinker=function(a,b){C(b,function(c){c.crossDomainLinker(a)})};x.disableAnonymousTracking=function(a,b){C(b,function(c){c.disableAnonymousTracking(a)})};x.discardBrace=function(a,b){C(b,function(c){c.discardBrace(a)})}; | ||
x.discardHashTag=function(a,b){C(b,function(c){c.discardHashTag(a)})};x.enableActivityTracking=function(a,b){C(b,function(c){c.enableActivityTracking(a)})};x.enableActivityTrackingCallback=function(a,b){C(b,function(c){c.enableActivityTrackingCallback(a)})};x.enableAnonymousTracking=function(a,b){C(b,function(c){c.enableAnonymousTracking(a)})};x.flushBuffer=function(a,b){C(b,function(c){c.flushBuffer(a)})};x.newSession=function(a){C(a,function(b){b.newSession()})};x.newTracker=function(a,b,c){void 0=== | ||
c&&(c={});if(Hc){var e="js-".concat("3.13.1-dev.0");Ra.hasOwnProperty(a)?a=null:(Ra[a]=Zc(a,a,e,b,Hc,c),a=Ra[a]);return a}};x.preservePageViewId=function(a){C(a,function(b){b.preservePageViewId()})};x.removeGlobalContexts=function(a,b){C(b,function(c){c.core.removeGlobalContexts(a)})};x.setBufferSize=function(a,b){C(b,function(c){c.setBufferSize(a)})};x.setCollectorUrl=function(a,b){C(b,function(c){c.setCollectorUrl(a)})};x.setCookiePath=function(a,b){C(b,function(c){c.setCookiePath(a)})};x.setCustomUrl= | ||
function(a,b){C(b,function(c){c.setCustomUrl(a)})};x.setDocumentTitle=function(a,b){C(b,function(c){c.setDocumentTitle(a)})};x.setOptOutCookie=function(a,b){C(b,function(c){c.setOptOutCookie(a)})};x.setReferrerUrl=function(a,b){C(b,function(c){c.setReferrerUrl(a)})};x.setUserId=function(a,b){C(b,function(c){c.setUserId(a)})};x.setUserIdFromCookie=function(a,b){C(b,function(c){c.setUserIdFromCookie(a)})};x.setUserIdFromLocation=function(a,b){C(b,function(c){c.setUserIdFromLocation(a)})};x.setUserIdFromReferrer= | ||
function(a,b){C(b,function(c){c.setUserIdFromReferrer(a)})};x.setVisitorCookieTimeout=function(a,b){C(b,function(c){c.setVisitorCookieTimeout(a)})};x.trackPageView=function(a,b){C(b,function(c){c.trackPageView(a)})};x.trackSelfDescribingEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.event,g=f.schema,h=f.data;f=Sa();g={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:g,data:h}};f.add("e","ue");f.addJson("ue_px","ue_pr",g);e.call(c,f,a.context, | ||
a.timestamp,a.scenario)})};x.trackStructEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.category,g=a.action,h=a.label,m=a.property,r=a.value,n=Sa();n.add("e","se");n.add("se_ca",f);n.add("se_ac",g);n.add("se_la",h);n.add("se_pr",m);n.add("se_va",null==r?void 0:r.toString());e.call(c,n,a.context,a.timestamp,a.scenario)})};x.updatePageActivity=function(a){C(a,function(b){b.updatePageActivity()})};x.version="3.13.1-dev.0";Object.defineProperty(x,"__esModule",{value:!0})}) | ||
'use strict';(function(w,T){"object"===typeof exports&&"undefined"!==typeof module?T(exports):"function"===typeof define&&define.amd?define(["exports"],T):(w="undefined"!==typeof globalThis?globalThis:w||self,T(w.snowplowBrowserTracking={}))})(this,function(w){function T(a,b,c){if(c||2===arguments.length)for(var e=0,f=b.length,g;e<f;e++)!g&&e in b||(g||(g=Array.prototype.slice.call(b,0,e)),g[e]=b[e]);return a.concat(g||Array.prototype.slice.call(b))}function Jc(a){var b=0,c=0;var e="";var f=[];if(!a)return a; | ||
a+="";do{var g=ma.indexOf(a.charAt(b++));var h=ma.indexOf(a.charAt(b++));e=ma.indexOf(a.charAt(b++));var m=ma.indexOf(a.charAt(b++));var r=g<<18|h<<12|e<<6|m;g=r>>16&255;h=r>>8&255;r&=255;64===e?f[c++]=String.fromCharCode(g):64===m?f[c++]=String.fromCharCode(g,h):f[c++]=String.fromCharCode(g,h,r)}while(b<a.length);e=f.join("");return function(n){return decodeURIComponent(n.split("").map(function(A){return"%"+("00"+A.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(e.replace(/\0+$/,""))}function Ra(){var a= | ||
{},b=[],c=[],e=[],f,g=function(h,m){null!=m&&""!==m&&(a[h]=m)};return{add:g,addDict:function(h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&g(m,h[m])},addJson:function(h,m,r){r&&Xb(r)&&(h={keyIfEncoded:h,keyIfNotEncoded:m,json:r},c.push(h),b.push(h))},addContextEntity:function(h){e.push(h)},getPayload:function(){return a},getJson:function(){return b},withJsonProcessor:function(h){f=h},build:function(){null===f||void 0===f?void 0:f(this,c,e);return a}}}function Kc(a){return function(b, | ||
c,e){for(var f=function(n,A,v){n=JSON.stringify(n);if(a){v=b.add;if(n){var t=0,k=0,x=[];if(n){n=unescape(encodeURIComponent(n));do{var I=n.charCodeAt(t++);var P=n.charCodeAt(t++);var G=n.charCodeAt(t++);var H=I<<16|P<<8|G;I=H>>18&63;P=H>>12&63;G=H>>6&63;H&=63;x[k++]=ma.charAt(I)+ma.charAt(P)+ma.charAt(G)+ma.charAt(H)}while(t<n.length);t=x.join("");n=n.length%3;n=(n?t.slice(0,n-3):t)+"===".slice(n||3)}n=n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}v.call(b,A,n)}else b.add(v,n)},g=function(n, | ||
A){if(!n){var v=b.getPayload();if(a?v.cx:v.co){n=JSON;var t=n.parse;if(a){if(v=v.cx){switch(4-v.length%4){case 2:v+="==";break;case 3:v+="="}v=v.replace(/-/g,"+").replace(/_/g,"/");v=Jc(v)}}else v=v.co;n=t.call(n,v)}else n=void 0}n?n.data=n.data.concat(A.data):n=A;return n},h=void 0,m=0;m<c.length;m++){var r=c[m];"cx"===r.keyIfEncoded?h=g(h,r.json):f(r.json,r.keyIfEncoded,r.keyIfNotEncoded)}c.length=0;e.length&&(c={schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:T([],e, | ||
!0)},h=g(h,c),e.length=0);h&&f(h,"cx","co")}}function Xb(a){if(!Yb(a))return!1;for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function Yb(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function Lc(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var e=[],f=[],g=0;g<c.length;g++){var h=c[g];Zb(h)?e.push(h):Ba(h)&&f.push(h)}a= | ||
a.concat(f);b=b.concat(e)},clearGlobalContexts:function(){b=[];a=[]},removeGlobalContexts:function(c){for(var e=function(g){Zb(g)?b=b.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}):Ba(g)&&(a=a.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}))},f=0;f<c.length;f++)e(c[f])},getApplicableContexts:function(c){a:{var e=0;for(var f=c.getJson();e<f.length;e++){var g=f[e];if("ue_px"===g.keyIfEncoded&&"object"===typeof g.json.data&&(g=g.json.data.schema,"string"==typeof g)){e= | ||
g;break a}}e=""}f=c.getPayload().e;g="string"===typeof f?f:"";f=[];var h=ib(a,c,g,e);f.push.apply(f,h);c=Mc(b,c,g,e);f.push.apply(f,c);return f}}}function Nc(a){return{addPluginContexts:function(b){var c=b?T([],b,!0):[];a.forEach(function(e){try{e.contexts&&c.push.apply(c,e.contexts())}catch(f){ba.error("Error adding plugin contexts",f)}});return c}}}function Oc(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 $b(a){return(a=a.split("."))&&1<a.length?Oc(a):!1}function ac(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&&$b(a[1]))return a.slice(1,6)}function jb(a){if(a=ac(a)){var b=a[0];return 5===a.length&&$b(b)}return!1}function Pc(a){return Array.isArray(a)&&a.every(function(b){return"string"===typeof b})}function bc(a){return Pc(a)?a.every(function(b){return jb(b)}): | ||
"string"===typeof a?jb(a):!1}function Ha(a){return Xb(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function Qc(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(bc(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(bc(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function Sa(a){return"function"===typeof a&&1>=a.length}function Ba(a){return Sa(a)||Ha(a)} | ||
function cc(a){return Array.isArray(a)&&2===a.length?Array.isArray(a[1])?Sa(a[0])&&a[1].every(Ba):Sa(a[0])&&Ba(a[1]):!1}function dc(a){return Array.isArray(a)&&2===a.length?Qc(a[0])?Array.isArray(a[1])?a[1].every(Ba):Ba(a[1]):!1:!1}function Zb(a){return cc(a)||dc(a)}function Rc(a,b){var c=0,e=0,f=a.accept;Array.isArray(f)?a.accept.some(function(g){return Ta(g,b)})&&e++:"string"===typeof f&&Ta(f,b)&&e++;f=a.reject;Array.isArray(f)?a.reject.some(function(g){return Ta(g,b)})&&c++:"string"===typeof f&& | ||
Ta(f,b)&&c++;return 0<e&&0===c?!0:!1}function Ta(a,b){if(!jb(a))return!1;a=ac(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(!Sc(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!ec(a[c],b[c]))return!1;return!0}return!1}function Sc(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(!ec(b[c],a[c]))return!1;return!0}return!1}function ec(a, | ||
b){return a&&b&&"*"===a||a===b}function fc(a){return Array.isArray(a)?a:[a]}function ib(a,b,c,e){var f;a=fc(a).map(function(g){a:if(Ha(g))g=[g];else{if(Sa(g)){b:{var h=void 0;try{var m={event:b.getPayload(),eventType:c,eventSchema:e};h=g(m);if(Array.isArray(h)&&h.every(Ha)||Ha(h)){var r=h;break b}r=void 0;break b}catch(n){}r=void 0}if(Ha(r)){g=[r];break a}else if(Array.isArray(r)){g=r;break a}}g=void 0}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&& | ||
g.filter(Boolean)}))}function Mc(a,b,c,e){var f;a=fc(a).map(function(g){a:{if(cc(g)){var h=g[0],m=!1;try{var r={event:b.getPayload(),eventType:c,eventSchema:e};m=h(r)}catch(n){m=!1}if(!0===m){g=ib(g[1],b,c,e);break a}}else if(dc(g)&&Rc(g[0],e)){g=ib(g[1],b,c,e);break a}g=[]}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&g.filter(Boolean)}))}function Tc(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 Uc(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,e=null!==c&&void 0!==c?c:[];a=function(g,h,m){function r(k,x){k=A.getApplicableContexts(k);var I=[];x&&x.length&&I.push.apply(I,x);k&&k.length&&I.push.apply(I,k);return I}var n=Nc(h),A=Lc(),v=g,t={};return{track:function(k,x,I){k.withJsonProcessor(Kc(v));k.add("eid",ia.v4());k.addDict(t);I=Tc(I);k.add(I.type,I.value.toString());x=r(k,n.addPluginContexts(x)); | ||
x=x&&x.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:x}:void 0;void 0!==x&&k.addJson("cx","co",x);h.forEach(function(G){try{G.beforeTrack&&G.beforeTrack(k)}catch(H){ba.error("Plugin beforeTrack",H)}});"function"===typeof m&&m(k);var P=k.build();h.forEach(function(G){try{G.afterTrack&&G.afterTrack(P)}catch(H){ba.error("Plugin afterTrack",H)}});return P},addPayloadPair:function(k,x){t[k]=x},getBase64Encoding:function(){return v},setBase64Encoding:function(k){v= | ||
k},addPayloadDict:function(k){for(var x in k)Object.prototype.hasOwnProperty.call(k,x)&&(t[x]=k[x])},resetPayloadPairs:function(k){t=Yb(k)?k:{}},setTrackerVersion:function(k){t.tv=k},setTrackerNamespace:function(k){t.tna=k},setAppId:function(k){t.aid=k},setPlatform:function(k){t.p=k},setUserId:function(k){t.uid=k},setScreenResolution:function(k,x){t.res=k+"x"+x},setViewport:function(k,x){t.vp=k+"x"+x},setColorDepth:function(k){t.cd=k},setTimezone:function(k){t.tz=k},setLang:function(k){t.lang=k}, | ||
setIpAddress:function(k){t.ip=k},setUseragent:function(k){t.ua=k},addGlobalContexts:function(k){A.addGlobalContexts(k)},clearGlobalContexts:function(){A.clearGlobalContexts()},removeGlobalContexts:function(k){A.removeGlobalContexts(k)}}}(null!==b&&void 0!==b?b:!0,e,a.callback);var f=U(U({},a),{addPlugin:function(g){var h,m;g=g.plugin;e.push(g);null===(h=g.logger)||void 0===h?void 0:h.call(g,ba);null===(m=g.activateCorePlugin)||void 0===m?void 0:m.call(g,f)}});null===e||void 0===e?void 0:e.forEach(function(g){var h, | ||
m;null===(h=g.logger)||void 0===h?void 0:h.call(g,ba);null===(m=g.activateCorePlugin)||void 0===m?void 0:m.call(g,f)});return f}function Vc(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var e=Ra();e.add("e","pv");e.add("url",b);e.add("page",c);e.add("refr",a);return e}function Ua(a,b,c){void 0===c&&(c=63072E3);try{var e=window.localStorage,f=Date.now()+1E3*c;e.setItem("".concat(a,".expires"),f.toString());e.setItem(a,b);return!0}catch(g){return!1}}function gc(a){try{var b=window.localStorage;b.removeItem(a); | ||
b.removeItem(a+".expires");return!0}catch(c){return!1}}function hc(a){try{return window.sessionStorage.getItem(a)}catch(b){}}function ic(a){return Number.isInteger&&Number.isInteger(a)||"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function jc(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 kb(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a);return b?b[1]:a}function kc(a){var b=a.length; | ||
"."===a.charAt(--b)&&(a=a.slice(0,b));"*."===a.slice(0,2)&&(a=a.slice(1));return a}function lb(a){var b=window,c=Ia("referrer",b.location.href)||Ia("referer",b.location.href);if(c)return c;if(a)return a;try{if(b.top)return b.top.document.referrer;if(b.parent)return b.parent.document.referrer}catch(e){}return document.referrer}function na(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 Ia(a,b){return(a=(new RegExp("^[^#]*[?&]"+ | ||
a+"=([^&#]*)")).exec(b))?decodeURIComponent(a[1].replace(/\+/g," ")):null}function Wc(a,b){for(var c=window.location.hostname,e="_sp_root_domain_test_"+(new Date).getTime(),f="_test_value_"+(new Date).getTime(),g=c.split("."),h=g.length-2;0<=h;h--){var m=g.slice(h).join(".");da(e,f,0,"/",m,a,b);if(da(e)===f){da(e,"",-1,"/",m,a,b);c=document.cookie.split("; ");e=[];for(f=0;f<c.length;f++)"_sp_root_domain_test_"===c[f].substring(0,21)&&e.push(c[f]);c=e;for(e=0;e<c.length;e++)da(c[e],"",-1,"/",m,a,b); | ||
return m}}return c}function da(a,b,c,e,f,g,h){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:"")+(f?"; Domain="+f:"")+(g?"; SameSite="+g:"")+(h?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+a+"=")[1]||"").split(";")[0])}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 Yc(a,b,c,e,f,g,h,m,r,n,A,v,t,k,x,I){function P(q){var z=Object.keys(q).map(function(y){return[y,q[y]]}).reduce(function(y,u){y[u[0]]=u[1].toString();return y},{});return{evt:z,bytes:G(JSON.stringify(z))}}function G(q){for(var z=0,y=0;y<q.length;y++){var u=q.charCodeAt(y);127>=u?z+=1:2047>=u?z+=2:55296<=u&&57343>=u?(z+=4,y++):z=65535>u?z+3:z+4}return z}function H(q){for(void 0===q&&(q=!1);D.length&&"string"!==typeof D[0]&&"object"!==typeof D[0];)D.shift(); | ||
if(1>D.length)Q=!1;else{if(!V||"string"!==typeof V.valueOf())throw"No collector configured";Q=!0;if(sa){var z=function(M){for(var ca=0,Ca=0;ca<M.length&&!(Ca+=M[ca].bytes,Ca>=h);)ca+=1;return ca},y=void 0;if(ta(D)){y=V;var u=F(y,!0,q);var J=z(D)}else y=Ja(D[0]),u=F(y,!1,q),J=1;var N=setTimeout(function(){u.abort();Q=!1},A),ea=function(M){for(var ca=0;ca<M;ca++)D.shift();c&&Ua(ua,JSON.stringify(D.slice(0,n)))};u.onreadystatechange=function(){if(4===u.readyState&&200<=u.status)if(clearTimeout(N),300> | ||
u.status)ea(J),H();else{var M=u.status;M=200<=M&&300>M?!1:x.includes(M)?!0:!I.includes(M);M||(ba.error("Status ".concat(u.status,", will not retry.")),ea(J));Q=!1}};if(ta(D)){if(z=D.slice(0,J),0<z.length){q=!1;z=z.map(function(M){return M.evt});if(Va){var Ka=new Blob([W(fa(z))],{type:"application/json"});try{q=navigator.sendBeacon(y,Ka)}catch(M){q=!1}}!0===q?(ea(J),H()):u.send(W(fa(z)))}}else u.send()}else if(v||ta(D))Q=!1;else{y=new Image(1,1);var ha=!0;y.onload=function(){ha&&(ha=!1,D.shift(),c&& | ||
Ua(ua,JSON.stringify(D.slice(0,n))),H())};y.onerror=function(){ha&&(Q=ha=!1)};y.src=Ja(D[0]);setTimeout(function(){ha&&Q&&(ha=!1,H())},A)}}}function F(q,z,y){var u=new XMLHttpRequest;z?(u.open("POST",q,!y),u.setRequestHeader("Content-Type","application/json; charset=UTF-8")):u.open("GET",q,!y);u.withCredentials=k;v&&u.setRequestHeader("SP-Anonymous","*");for(var J in t)Object.prototype.hasOwnProperty.call(t,J)&&u.setRequestHeader(J,t[J]);return u}function W(q){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4", | ||
data:q})}function fa(q){for(var z=(new Date).getTime().toString(),y=0;y<q.length;y++)q[y].stm=z;return q}function Ja(q){return r?V+q.replace("?","?stm="+(new Date).getTime()+"&"):V+q}function Wa(q){function z(u,J,N){return(N=N.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&&N.length?parseInt(N[0])<=u||parseInt(N[0])===u&&parseInt(N[1])<=J:!1}function y(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,q)||z(10,15,q)&&y(q)}var Q=!1,V,D=[];e="string"===typeof e?e.toLowerCase():e;var va=!0===e||"beacon"===e||"true"===e,Va=!(!(va&&window.navigator&&window.navigator.sendBeacon)||Wa(window.navigator.userAgent))&&va,sa=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),wa="get"!==e&&sa&&("post"===e||va),oa=wa?f:"/i",ua="snowplowOutQueue_".concat(a,"_").concat(wa?"post2":"get");va&&(t={});g=c&&Xc()&&wa&&g||1;if(c)try{var La=window.localStorage.getItem(ua); | ||
D=La?JSON.parse(La):[]}catch(q){}Array.isArray(D)||(D=[]);b.outQueues.push(D);sa&&1<g&&b.bufferFlushers.push(function(q){Q||H(q)});var ta=function(q){return"object"===typeof q[0]};return{enqueueRequest:function(q,z){V=z+oa;if(wa){q=P(q);if(q.bytes>=h){ba.warn("Event ("+q.bytes+"B) too big, max is "+h);z=q;F(V,!0,!1).send(W(fa([z.evt])));return}D.push(q)}else{var y="?";var u={co:!0,cx:!0},J=!0,N;for(N in q)q.hasOwnProperty(N)&&!u.hasOwnProperty(N)&&(J?J=!1:y+="&",y+=encodeURIComponent(N)+"="+encodeURIComponent(q[N])); | ||
for(var ea in u)q.hasOwnProperty(ea)&&u.hasOwnProperty(ea)&&(y+="&"+ea+"="+encodeURIComponent(q[ea]));if(0<m&&(u=Ja(y),u=G(u),u>=m)){ba.warn("Event ("+u+"B) too big, max is "+m);sa&&(q=P(q),F(z+f,!0,!1).send(W(fa([q.evt]))));return}D.push(y)}z=!1;c&&(z=Ua(ua,JSON.stringify(D.slice(0,n))));Q||z&&!(D.length>=g)||H()},executeQueue:function(){Q||H()},setUseLocalStorage:function(q){c=q},setAnonymousTracking:function(q){v=q},setCollectorUrl:function(q){V=q+oa},setBufferSize:function(q){g=q}}}function lc(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)?Ia("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=kb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=document.links[0].href,a=kb(b);return[a,b,c]}function Zc(a,b,c,e){var f=Math.round((new Date).getTime()/1E3);a?(a=a.split("."),a.unshift("0")):a=["1",b,f,e,f,"",c];a[6]&&"undefined"!==a[6]||(a[6]=ia.v4());a[7]&&"undefined"!== | ||
a[7]||(a[7]="");a[8]&&"undefined"!==a[8]||(a[8]="");a[9]&&"undefined"!==a[9]||(a[9]="");a[10]&&"undefined"!==a[10]||(a[10]=0);var g=function(h,m){h=parseInt(h);return isNaN(h)?m:h};b=function(h){return h?g(h,void 0):void 0};return[a[0],a[1],g(a[2],f),g(a[3],e),g(a[4],f),b(a[5]),a[6],a[7],a[8],b(a[9]),g(a[10],0)]}function Ma(a,b){void 0===b&&(b={memorizedVisitCount:1});b=b.memorizedVisitCount;"0"===a[0]?(a[7]=a[6],a[5]=a[4],a[3]++):a[3]=b;b=ia.v4();a[6]=b;a[10]=0;a[8]="";a[9]=void 0;return b}function mb(a){a[4]= | ||
Math.round((new Date).getTime()/1E3)}function mc(a,b,c){var e=a[9];return{userId:c?"00000000-0000-0000-0000-000000000000":a[1],sessionId:a[6],eventIndex:a[10],sessionIndex:a[3],previousSessionId:c?null:a[7]||null,storageMechanism:"localStorage"==b?"LOCAL_STORAGE":"COOKIE_1",firstEventId:a[8]||null,firstEventTimestamp:e?(new Date(e)).toISOString():null}}function nb(){var a=ob;if("innerWidth"in window){var b=window.innerWidth;var c=window.innerHeight}else c=document.documentElement||document.body,b= | ||
c.clientWidth,c=c.clientHeight;a=a(0<=b&&0<=c?b+"x"+c:null);b=ob;var e=document.documentElement,f=document.body;c=Math.max(e.clientWidth,e.offsetWidth,e.scrollWidth);e=Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight,f?Math.max(f.offsetHeight,f.scrollHeight):0);c=isNaN(c)||isNaN(e)?"":c+"x"+e;return{viewport:a,documentSize:b(c),resolution:ob(screen.width+"x"+screen.height),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine, | ||
browserLanguage:navigator.language||navigator.userLanguage,documentLanguage:document.documentElement.lang,webdriver:window.navigator.webdriver,deviceMemory:window.navigator.deviceMemory,hardwareConcurrency:window.navigator.hardwareConcurrency}}function ob(a){return a&&a.split("x").map(function(b){return Math.floor(Number(b))}).join("x")}function $c(a,b,c,e,f,g){void 0===g&&(g={});var h=[];a=function(r,n,A,v,t,k){function x(){xa=lc(window.location.hostname,window.location.href,lb());xa[1]!==pa&&(Na= | ||
lb(pa));nc=kc(xa[0]);pa=xa[1]}function I(d){var l=(new Date).getTime();d=d.currentTarget;if(null===d||void 0===d?0:d.href){l="_sp="+(Xa+"."+l);var p=d.href.split("#"),B=p[0].split("?"),E=B.shift();if(B=B.join("?")){for(var L=!0,X=B.split("&"),R=0;R<X.length;R++)if("_sp="===X[R].substr(0,4)){L=!1;X[R]=l;B=X.join("&");break}L&&(B=l+"&"+B)}else B=l;p[0]=E+"?"+B;l=p.join("#");d.href=l}}function P(d){for(var l=0;l<document.links.length;l++){var p=document.links[l];!p.spDecorationEnabled&&d(p)&&(na(p,"click", | ||
I,!0),na(p,"mousedown",I,!0),p.spDecorationEnabled=!0)}}function G(d){if(oc){var l=/#.*/;d=d.replace(l,"")}pc&&(l=/[{}]/g,d=d.replace(l,""));return d}function H(d){return(d=/^([a-z]+):/.exec(d))?d[1]:null}function F(d){d=Da+d+"."+ya;if("localStorage"==K){try{var l=window.localStorage,p=l.getItem(d+".expires");if(null===p||+p>Date.now())var B=l.getItem(d);else l.removeItem(d),l.removeItem(d+".expires"),B=void 0}catch(E){B=void 0}return B}if("cookie"==K||"cookieAndLocalStorage"==K)return da(d)}function W(){x(); | ||
ya=ad((Oa||nc)+(pb||"/")).slice(0,4)}function fa(){Ya=(new Date).getTime()}function Ja(){var d=Wa(),l=d[0];l<Za?Za=l:l>$a&&($a=l);d=d[1];d<ab?ab=d:d>bb&&(bb=d);fa()}function Wa(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,d.scrollTop||window.pageYOffset]:[0,0]}function Q(){var d=Wa(),l=d[0];$a=Za=l;bb=ab=d=d[1]}function V(){return va(Da+"ses."+ya,"*",qc)}function D(d){var l=Da+"id."+ya;d.shift();d=d.join(".");return va(l,d,rc)}function va(d,l,p){return S&&!za?!1:"localStorage"== | ||
K?Ua(d,l,p):"cookie"==K||"cookieAndLocalStorage"==K?(da(d,l,p,pb,Oa,cb,db),-1!==document.cookie.indexOf("".concat(d,"="))?!0:!1):!1}function Va(d){var l=Da+"id."+ya,p=Da+"ses."+ya;gc(l);gc(p);da(l,"",-1,"/",Oa,cb,db);da(p,"",-1,"/",Oa,cb,db);null!==d&&void 0!==d&&d.preserveSession||(ja=ia.v4(),Y=1);null!==d&&void 0!==d&&d.preserveUser||(Xa=S?"":ia.v4(),Aa=null)}function sa(d){d&&d.stateStorageStrategy&&(k.stateStorageStrategy=d.stateStorageStrategy,K=sc(k));S=!!k.anonymousTracking;za=tc(k);qb=uc(k); | ||
qa.setUseLocalStorage("localStorage"==K||"cookieAndLocalStorage"==K);qa.setAnonymousTracking(qb)}function wa(){if(!S||za){var d="none"!=K&&!!F("ses"),l=oa();if(l[1])var p=l[1];else p=S?"":ia.v4(),l[1]=p;Xa=p;ja=d?l[6]:Ma(l);Y=l[3];"none"!=K&&(V(),mb(l),D(l))}}function oa(){if("none"==K)return["1","",0,0,0,void 0,"","","",void 0,0];var d=F("id")||void 0;return Zc(d,Xa,ja,Y)}function ua(d){return 0===d.indexOf("http")?d:("https:"===document.location.protocol?"https":"http")+"://"+d}function La(){vc&& | ||
null!=t.pageViewId||(t.pageViewId=ia.v4())}function ta(){null==t.pageViewId&&(t.pageViewId=ia.v4());return t.pageViewId}function q(){if("none"===K||S||!wc)return null;var d=hc("_sp_tab_id");if(!d){d=ia.v4();try{window.sessionStorage.setItem("_sp_tab_id",d)}catch(l){}d=hc("_sp_tab_id")}return d||null}function z(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:ta()}}]}}}function y(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/1-0-0", | ||
data:U(U({},nb()),{tabId:q()})}]}}}function u(d){var l=d.title,p=d.context,B=d.timestamp;d=d.contextCallback;x();xc&&La();xc=!0;Ea=document.title;Pa=l;l=jc(Pa||Ea);Z.track(Vc({pageUrl:G(Fa||pa),pageTitle:l,referrer:G(eb||Na)}),(p||[]).concat(d?d():[]),B);B=new Date;l=!1;if(aa.enabled&&!aa.installed){l=aa.installed=!0;var E={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var X=!1,R=Object.defineProperty({},"passive",{get:function(){X=!0},set:function(){}}), | ||
Ga=function(){};window.addEventListener("testPassiveEventSupport",Ga,R);window.removeEventListener("testPassiveEventSupport",Ga,R);E.hasSupport=X}}};E.update();var L="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(E,"hasSupport")?na(document,L,fa,{passive:!0}):na(document,L,fa);Q();L=function(X,R){void 0===R&&(R=fa);return function(Ga){return na(document,Ga,R)}};"click mouseup mousedown mousemove keypress keydown keyup touchend touchstart".split(" ").forEach(L(document)); | ||
["resize","focus","blur"].forEach(L(window));L(window,Ja)("scroll")}if(aa.enabled&&(bd||l))for(B in Ya=B.getTime(),B=void 0,aa.configurations)if(l=aa.configurations[B])window.clearInterval(l.activityInterval),J(l,p,d)}function J(d,l,p){var B=function(L,X){x();L({context:X,pageViewId:ta(),minXOffset:Za,minYOffset:ab,maxXOffset:$a,maxYOffset:bb});Q()},E=function(){Ya+d.configHeartBeatTimer>(new Date).getTime()&&B(d.callback,(l||[]).concat(p?p():[]))};d.activityInterval=0!=d.configMinimumVisitLength? | ||
window.setTimeout(function(){Ya+d.configMinimumVisitLength>(new Date).getTime()&&B(d.callback,(l||[]).concat(p?p():[]));d.activityInterval=window.setInterval(E,d.configHeartBeatTimer)},d.configMinimumVisitLength):window.setInterval(E,d.configHeartBeatTimer)}function N(d){var l=d.minimumVisitLength,p=d.heartbeatDelay;d=d.callback;if(ic(l)&&ic(p))return{configMinimumVisitLength:1E3*l,configHeartBeatTimer:1E3*p,callback:d};ba.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")} | ||
function ea(d){var l=d.context,p=d.minXOffset,B=d.minYOffset,E=d.maxXOffset,L=d.maxYOffset;d=document.title;d!==Ea&&(Ea=d,Pa=void 0);d=Z;var X=d.track,R=G(Fa||pa),Ga=jc(Pa||Ea),cd=G(eb||Na);p=Math.round(p);E=Math.round(E);B=Math.round(B);L=Math.round(L);var ka=Ra();ka.add("e","pp");ka.add("url",R);ka.add("page",Ga);ka.add("refr",cd);p&&!isNaN(Number(p))&&ka.add("pp_mix",p.toString());E&&!isNaN(Number(E))&&ka.add("pp_max",E.toString());B&&!isNaN(Number(B))&&ka.add("pp_miy",B.toString());L&&!isNaN(Number(L))&& | ||
ka.add("pp_may",L.toString());X.call(d,ka,l)}var Ka,ha,M,ca,Ca,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb;k.eventMethod=null!==(Ka=k.eventMethod)&&void 0!==Ka?Ka:"post";var sc=function(d){var l;return null!==(l=d.stateStorageStrategy)&&void 0!==l?l:"cookieAndLocalStorage"},tc=function(d){var l,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withSessionTracking))&&void 0!==p?p:!1},uc=function(d){var l,p; | ||
return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withServerAnonymisation))&&void 0!==p?p:!1},dd=null!==(M=null===(ha=null===k||void 0===k?void 0:k.contexts)||void 0===ha?void 0:ha.browser)&&void 0!==M?M:!1,wc=null!==(Ca=null===(ca=null===k||void 0===k?void 0:k.contexts)||void 0===ca?void 0:ca.webPage)&&void 0!==Ca?Ca:!0;h.push(function(){return{beforeTrack:function(d){var l=F("ses"),p=oa(),B=0===p[10];Ob=Pb?!!da(Pb):!1;if(yc||Ob)Va(); | ||
else{"0"===p[0]?(ja=l||"none"==K?p[6]:Ma(p),Y=p[3]):(new Date).getTime()-Qb>1E3*qc&&(Y++,ja=Ma(p,{memorizedVisitCount:Y}));mb(p);if(0===p[10]){var E=d.build();p[8]=E.eid;E=E.dtm||E.ttm;p[9]=E?parseInt(E):void 0}p[10]+=1;E=nb();var L=E.documentSize;d.add("vp",E.viewport);d.add("ds",L);d.add("vid",za?Y:S?null:Y);d.add("sid",za?ja:S?null:ja);d.add("duid",S?null:p[1]);d.add("uid",S?null:Aa);x();d.add("refr",G(eb||Na));d.add("url",G(Fa||pa));E=mc(p,K,S);!ed||S&&!za||d.addContextEntity({schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2", | ||
data:E});"none"!=K&&(D(p),d=V(),l&&!B||!d||!fb||Rb||(fb(E),Rb=!1));Qb=(new Date).getTime()}}}}());wc&&h.push(z());dd&&h.push(y());h.push.apply(h,null!==(rb=k.plugins)&&void 0!==rb?rb:[]);var Z=Uc({base64:k.encodeBase64,corePlugins:h,callback:function(d){yc||Ob||qa.enqueueRequest(d.build(),Sb)}}),fd=document.characterSet||document.charset,xa=lc(window.location.hostname,window.location.href,lb()),nc=kc(xa[0]),pa=xa[1],Na=xa[2],eb,gd=null!==(sb=k.platform)&&void 0!==sb?sb:"web",Sb=ua(v),hd=null!==(tb= | ||
k.postPath)&&void 0!==tb?tb:"/com.snowplowanalytics.snowplow/tp2",id=null!==(ub=k.appId)&&void 0!==ub?ub:"",Fa,Ea=document.title,Pa,bd=null!==(vb=k.resetActivityTrackingOnPageView)&&void 0!==vb?vb:!0,oc,pc,Da=null!==(wb=k.cookieName)&&void 0!==wb?wb:"_sp_",Oa=null!==(xb=k.cookieDomain)&&void 0!==xb?xb:void 0,pb="/",cb=null!==(yb=k.cookieSameSite)&&void 0!==yb?yb:"None",db=null!==(zb=k.cookieSecure)&&void 0!==zb?zb:!0,zc=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,yc="undefined"!== | ||
typeof k.respectDoNotTrack?k.respectDoNotTrack&&("yes"===zc||"1"===zc):!1,Pb,rc=null!==(Ab=k.cookieLifetime)&&void 0!==Ab?Ab:63072E3,qc=null!==(Bb=k.sessionCookieTimeout)&&void 0!==Bb?Bb:1800,za=tc(k),qb=uc(k),S=!!k.anonymousTracking,K=sc(k),Ya,Qb=(new Date).getTime(),Za,$a,ab,bb,ya,Xa,ja,Y=1,Aa,qa=Yc(r,t,"localStorage"==K||"cookieAndLocalStorage"==K,k.eventMethod,hd,null!==(Cb=k.bufferSize)&&void 0!==Cb?Cb:1,null!==(Db=k.maxPostBytes)&&void 0!==Db?Db:4E4,null!==(Eb=k.maxGetBytes)&&void 0!==Eb?Eb: | ||
0,null!==(Fb=k.useStm)&&void 0!==Fb?Fb:!0,null!==(Gb=k.maxLocalStorageQueueSize)&&void 0!==Gb?Gb:1E3,null!==(Hb=k.connectionTimeout)&&void 0!==Hb?Hb:5E3,qb,null!==(Ib=k.customHeaders)&&void 0!==Ib?Ib:{},null!==(Jb=k.withCredentials)&&void 0!==Jb?Jb:!0,null!==(Kb=k.retryStatusCodes)&&void 0!==Kb?Kb:[],(null!==(Lb=k.dontRetryStatusCodes)&&void 0!==Lb?Lb:[]).concat([400,401,403,410,422])),vc=!1,xc=!1,aa={enabled:!1,installed:!1,configurations:{}},ed=null!==(Nb=null===(Mb=k.contexts)||void 0===Mb?void 0: | ||
Mb.session)&&void 0!==Nb?Nb:!1,Ob,fb=k.onSessionUpdateCallback,Rb=!1;k.hasOwnProperty("discoverRootDomain")&&k.discoverRootDomain&&(Oa=Wc(cb,db));var gb=nb(),jd=gb.browserLanguage,kd=gb.resolution,ld=gb.colorDepth,md=gb.cookiesEnabled;Z.setTrackerVersion(A);Z.setTrackerNamespace(n);Z.setAppId(id);Z.setPlatform(gd);Z.addPayloadPair("cookie",md?"1":"0");Z.addPayloadPair("cs",fd);Z.addPayloadPair("lang",jd);Z.addPayloadPair("res",kd);Z.addPayloadPair("cd",ld);W();wa();k.crossDomainLinker&&P(k.crossDomainLinker); | ||
return U(U({},{getDomainSessionIndex:function(){return Y},getPageViewId:ta,getTabId:q,newSession:function(){var d=oa();"0"===d[0]?(ja="none"!=K?Ma(d):d[6],Y=d[3]):(Y++,ja=Ma(d,{memorizedVisitCount:Y}));mb(d);if("none"!=K){var l=mc(d,K,S);D(d);V()&&fb&&(Rb=!0,fb(l))}Qb=(new Date).getTime()},getCookieName:function(d){return Da+d+"."+ya},getUserId:function(){return Aa},getDomainUserId:function(){return oa()[1]},getDomainUserInfo:function(){return oa()},setReferrerUrl:function(d){eb=d},setCustomUrl:function(d){x(); | ||
var l=pa,p;H(d)?Fa=d:"/"===d.slice(0,1)?Fa=H(l)+"://"+kb(l)+d:(l=G(l),0<=(p=l.indexOf("?"))&&(l=l.slice(0,p)),(p=l.lastIndexOf("/"))!==l.length-1&&(l=l.slice(0,p+1)),Fa=l+d)},setDocumentTitle:function(d){Ea=document.title;Pa=d},discardHashTag:function(d){oc=d},discardBrace:function(d){pc=d},setCookiePath:function(d){pb=d;W()},setVisitorCookieTimeout:function(d){rc=d},crossDomainLinker:function(d){P(d)},enableActivityTracking:function(d){aa.configurations.pagePing||(aa.enabled=!0,aa.configurations.pagePing= | ||
N(U(U({},d),{callback:ea})))},enableActivityTrackingCallback:function(d){aa.configurations.callback||(aa.enabled=!0,aa.configurations.callback=N(d))},updatePageActivity:function(){fa()},setOptOutCookie:function(d){Pb=d},setUserId:function(d){Aa=d},setUserIdFromLocation:function(d){x();Aa=Ia(d,pa)},setUserIdFromReferrer:function(d){x();Aa=Ia(d,Na)},setUserIdFromCookie:function(d){Aa=da(d)},setCollectorUrl:function(d){Sb=ua(d);qa.setCollectorUrl(Sb)},setBufferSize:function(d){qa.setBufferSize(d)},flushBuffer:function(d){void 0=== | ||
d&&(d={});qa.executeQueue();d.newBufferSize&&qa.setBufferSize(d.newBufferSize)},trackPageView:function(d){void 0===d&&(d={});u(d)},preservePageViewId:function(){vc=!0},disableAnonymousTracking:function(d){k.anonymousTracking=!1;sa(d);wa();qa.executeQueue()},enableAnonymousTracking:function(d){var l;k.anonymousTracking=null!==(l=d&&(null===d||void 0===d?void 0:d.options))&&void 0!==l?l:!0;sa(d);za||La()},clearUserData:Va}),{id:r,namespace:n,core:Z,sharedState:t})}(a,b,c,e,f,g);var m=U(U({},a),{addPlugin:function(r){var n, | ||
A;m.core.addPlugin(r);null===(A=(n=r.plugin).activateBrowserPlugin)||void 0===A?void 0:A.call(n,m)}});h.forEach(function(r){var n;null===(n=r.activateBrowserPlugin)||void 0===n?void 0:n.call(r,m)});return m}function C(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Qa);a=Qa;for(var e=[],f=0;f<c.length;f++){var g=c[f];a.hasOwnProperty(g)?e.push(a[g]):ba.warn(g+" not configured")}e.forEach(b)}catch(h){ba.error("Function failed",h)}}function nd(){function a(){"hidden"==f.visibilityState&&e.bufferFlushers.forEach(function(h){h(!1)})} | ||
function b(){var h;if(!e.hasLoaded)for(e.hasLoaded=!0,h=0;h<e.registeredOnLoadHandlers.length;h++)e.registeredOnLoadHandlers[h]();return!0}function c(){f.addEventListener?f.addEventListener("DOMContentLoaded",function m(){f.removeEventListener("DOMContentLoaded",m,!1);b()}):f.attachEvent&&f.attachEvent("onreadystatechange",function r(){"complete"===f.readyState&&(f.detachEvent("onreadystatechange",r),b())});na(g,"load",b,!1)}var e=new od,f=document,g=window;f.visibilityState&&na(f,"visibilitychange", | ||
a,!1);na(g,"beforeunload",function(){e.bufferFlushers.forEach(function(h){h(!1)})},!1);"loading"===document.readyState?c():b();return e}var U=function(){U=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};return U.apply(this,arguments)},ra={},Ac="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&& | ||
msCrypto.getRandomValues.bind(msCrypto);if(Ac){var Bc=new Uint8Array(16);ra=function(){Ac(Bc);return Bc}}else{var Cc=Array(16);ra=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),Cc[a]=b>>>((a&3)<<3)&255;return Cc}}for(var O=[],hb=0;256>hb;++hb)O[hb]=(hb+256).toString(16).substr(1);var Dc=function(a,b){b=b||0;return[O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]], | ||
O[a[b++]]].join("")},pd=ra,Ec,Tb,Ub=0,Vb=0,qd=ra;ra=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||qd)();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||Dc(a)};ra.v1=function(a,b,c){c=b&&c||0;var e=b||[];a=a||{};var f=a.node||Ec,g=void 0!==a.clockseq?a.clockseq:Tb;if(null==f||null==g){var h=pd();null==f&&(f=Ec=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]);null==g&&(g=Tb=(h[6]<<8|h[7])&16383)}h=void 0!==a.msecs? | ||
a.msecs:(new Date).getTime();var m=void 0!==a.nsecs?a.nsecs:Vb+1,r=h-Ub+(m-Vb)/1E4;0>r&&void 0===a.clockseq&&(g=g+1&16383);(0>r||h>Ub)&&void 0===a.nsecs&&(m=0);if(1E4<=m)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Ub=h;Vb=m;Tb=g;h+=122192928E5;a=(1E4*(h&268435455)+m)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=h/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++]=g>>>8|128;e[c++]=g&255;for(g=0;6> | ||
g;++g)e[c+g]=f[g];return b?b:Dc(e)};var ia=ra.v4=ra,ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",la;(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"})(la||(la={}));var ba=function(a){void 0===a&&(a=la.warn);return{setLogLevel:function(b){a=la[b]?b:la.warn},warn:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=la.warn&&"undefined"!==typeof console&&(f="Snowplow: "+b,c?console.warn.apply(console, | ||
T([f+"\n",c],e,!1)):console.warn.apply(console,T([f],e,!1)))},error:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=la.error&&"undefined"!==typeof console&&(f="Snowplow: "+b+"\n",c?console.error.apply(console,T([f+"\n",c],e,!1)):console.error.apply(console,T([f],e,!1)))},debug:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=la.debug&&"undefined"!==typeof console&&console.debug.apply(console,T(["Snowplow: "+b],c,!1))},info:function(b){for(var c= | ||
[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=la.info&&"undefined"!==typeof console&&console.info.apply(console,T(["Snowplow: "+b],c,!1))}}}(),Fc={},Gc={};(function(){var a={rotl:function(b,c){return b<<c|b>>>32-c},rotr:function(b,c){return b<<32-c|b>>>c},endian:function(b){if(b.constructor==Number)return a.rotl(b,8)&16711935|a.rotl(b,24)&4278255360;for(var c=0;c<b.length;c++)b[c]=a.endian(b[c]);return b},randomBytes:function(b){for(var c=[];0<b;b--)c.push(Math.floor(256*Math.random()));return c}, | ||
bytesToWords:function(b){for(var c=[],e=0,f=0;e<b.length;e++,f+=8)c[f>>>5]|=b[e]<<24-f%32;return c},wordsToBytes:function(b){for(var c=[],e=0;e<32*b.length;e+=8)c.push(b[e>>>5]>>>24-e%32&255);return c},bytesToHex:function(b){for(var c=[],e=0;e<b.length;e++)c.push((b[e]>>>4).toString(16)),c.push((b[e]&15).toString(16));return c.join("")},hexToBytes:function(b){for(var c=[],e=0;e<b.length;e+=2)c.push(parseInt(b.substr(e,2),16));return c},bytesToBase64:function(b){for(var c=[],e=0;e<b.length;e+=3)for(var f= | ||
b[e]<<16|b[e+1]<<8|b[e+2],g=0;4>g;g++)8*e+6*g<=8*b.length?c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>>6*(3-g)&63)):c.push("=");return c.join("")},base64ToBytes:function(b){b=b.replace(/[^A-Z0-9+\/]/ig,"");for(var c=[],e=0,f=0;e<b.length;f=++e%4)0!=f&&c.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e-1))&Math.pow(2,-2*f+8)-1)<<2*f|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e))>>> | ||
6-2*f);return c}};Gc=a})();var Wb={utf8:{stringToBytes:function(a){return Wb.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(Wb.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("")}}},Hc=Wb;(function(){var a=Gc,b=Hc.utf8,c=Hc.bin,e=function(f,g){var h=a.wordsToBytes, | ||
m=f;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());f=a.bytesToWords(m);var r=8*m.length;m=[];var n=1732584193,A=-271733879,v=-1732584194,t=271733878,k=-1009589776;f[r>>5]|=128<<24-r%32;f[(r+64>>>9<<4)+15]=r;for(r=0;r<f.length;r+=16){for(var x=n,I=A,P=v,G=t,H=k,F=0;80>F;F++){if(16>F)m[F]=f[r+F];else{var W=m[F-3]^m[F-8]^m[F-14]^m[F-16];m[F]=W<<1|W>>>31}W= | ||
(n<<5|n>>>27)+k+(m[F]>>>0)+(20>F?(A&v|~A&t)+1518500249:40>F?(A^v^t)+1859775393:60>F?(A&v|A&t|v&t)-1894007588:(A^v^t)-899497514);k=t;t=v;v=A<<30|A>>>2;A=n;n=W}n+=x;A+=I;v+=P;t+=G;k+=H}h=h.call(a,[n,A,v,t,k]);return g&&g.asBytes?h:g&&g.asString?c.bytesToString(h):a.bytesToHex(h)};e._blocksize=16;e._digestsize=20;Fc=e})();var ad=Fc,Qa={},od=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),Ic="undefined"!==typeof window?nd(): | ||
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(Ic){var e="js-".concat("3.13.1");Qa.hasOwnProperty(a)?a=null:(Qa[a]=$c(a,a,e,b,Ic,c),a=Qa[a]);return 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,f=a.event,g=f.schema,h=f.data;f=Ra();g={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:g,data:h}};f.add("e","ue");f.addJson("ue_px","ue_pr",g);e.call(c,f,a.context, | ||
a.timestamp)})};w.trackStructEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.category,g=a.action,h=a.label,m=a.property,r=a.value,n=Ra();n.add("e","se");n.add("se_ca",f);n.add("se_ac",g);n.add("se_la",h);n.add("se_pr",m);n.add("se_va",null==r?void 0:r.toString());e.call(c,n,a.context,a.timestamp)})};w.updatePageActivity=function(a){C(a,function(b){b.updatePageActivity()})};w.version="3.13.1";Object.defineProperty(w,"__esModule",{value:!0})}) | ||
//# sourceMappingURL=index.umd.min.js.map |
{ | ||
"name": "@snowplow/browser-tracker", | ||
"version": "3.13.1-dev.0", | ||
"version": "3.13.1", | ||
"description": "Browser tracker for Snowplow", | ||
@@ -35,4 +35,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@snowplow/browser-tracker-core": "3.13.1-dev.0", | ||
"@snowplow/tracker-core": "3.13.1-dev.0", | ||
"@snowplow/browser-tracker-core": "3.13.1", | ||
"@snowplow/tracker-core": "3.13.1", | ||
"tslib": "^2.3.1" | ||
@@ -39,0 +39,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13
0
1928108
5968
+ Added@snowplow/browser-tracker-core@3.13.1(transitive)
+ Added@snowplow/tracker-core@3.13.1(transitive)
- Removed@snowplow/browser-tracker-core@3.13.1-dev.0(transitive)
- Removed@snowplow/tracker-core@3.13.1-dev.0(transitive)