7 | "use strict";!function(){function e(e,n){var t,o={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&0>n.indexOf(t)&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(e);r<t.length;r++)0>n.indexOf(t[r])&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(o[t[r]]=e[t[r]])}return o}function n(e,n,t){if(t||2===arguments.length)for(var o,r=0,i=n.length;r<i;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}function t(){var e,n={},t=[],o=[],i=[],a=function(e,t){null!=t&&""!==t&&(n[e]=t)};return{add:a,addDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a(n,e[n])},addJson:function(e,n,i){i&&r(i)&&(e={keyIfEncoded:e,keyIfNotEncoded:n,json:i},o.push(e),t.push(e))},addContextEntity:function(e){i.push(e)},getPayload:function(){return n},getJson:function(){return t},withJsonProcessor:function(n){e=n},build:function(){return null==e||e(this,o,i),n}}}function o(e){return function(t,o,r){for(var i=function(n,o,r){if(n=JSON.stringify(n),e){if(r=t.add,n){var i=0,a=0,c=[];if(n){n=unescape(encodeURIComponent(n));do{var u=n.charCodeAt(i++),s=n.charCodeAt(i++),l=n.charCodeAt(i++),f=u<<16|s<<8|l;u=f>>18&63,s=f>>12&63,l=f>>6&63,f&=63,c[a++]=fe.charAt(u)+fe.charAt(s)+fe.charAt(l)+fe.charAt(f)}while(i<n.length);i=c.join(""),n=((n=n.length%3)?i.slice(0,n-3):i)+"===".slice(n||3)}n=n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}r.call(t,o,n)}else t.add(r,n)},a=function(n,o){if(!n){var r=t.getPayload();if(e?r.cx:r.co){var i=(n=JSON).parse;if(e){if(r=r.cx){switch(4-r.length%4){case 2:r+="==";break;case 3:r+="="}r=function(e){var n,t=0,o=0,r="",i=[];if(!e)return e;e+="";do{var a=fe.indexOf(e.charAt(t++)),c=fe.indexOf(e.charAt(t++));r=fe.indexOf(e.charAt(t++));var u=fe.indexOf(e.charAt(t++)),s=a<<18|c<<12|r<<6|u;a=s>>16&255,c=s>>8&255,s&=255,i[o++]=64===r?String.fromCharCode(a):64===u?String.fromCharCode(a,c):String.fromCharCode(a,c,s)}while(t<e.length);return r=i.join(""),n=r.replace(/\0+$/,""),decodeURIComponent(n.split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(r=r.replace(/-/g,"+").replace(/_/g,"/"))}}else r=r.co;n=i.call(n,r)}else n=void 0}return n?n.data=n.data.concat(o.data):n=o,n},c=void 0,u=0;u<o.length;u++){var s=o[u];"cx"===s.keyIfEncoded?c=a(c,s.json):i(s.json,s.keyIfEncoded,s.keyIfNotEncoded)}o.length=0,r.length&&(c=a(c,o={schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:n([],r,!0)}),r.length=0),c&&i(c,"cx","co")}}function r(e){if(!i(e))return!1;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}function i(e){return null!=e&&(e.constructor==={}.constructor||e.constructor===[].constructor)}function a(){var e=[],n=[];return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return n},addGlobalContexts:function(t){for(var o=[],r=[],i=0;i<t.length;i++){var a=t[i];h(a)?o.push(a):p(a)&&r.push(a)}e=e.concat(r),n=n.concat(o)},clearGlobalContexts:function(){n=[],e=[]},removeGlobalContexts:function(t){for(var o=function(t){h(t)?n=n.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)})):p(t)&&(e=e.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)})))},r=0;r<t.length;r++)o(t[r])},getApplicableContexts:function(t){e:{for(var o=0,r=t.getJson();o<r.length;o++){var i=r[o];if("ue_px"===i.keyIfEncoded&&"object"==typeof i.json.data&&"string"==typeof(i=i.json.data.schema)){o=i;break e}}o=""}i="string"==typeof(r=t.getPayload().e)?r:"",r=[];var a=k(e,t,i,o);return r.push.apply(r,a),t=function(e,n,t,o){var r;return e=b(e).map((function(e){e:{if(g(e)){var r=e[0],i=!1;try{i=r({event:n.getPayload(),eventType:t,eventSchema:o})}catch(e){i=!1}if(!0===i){e=k(e[1],n,t,o);break e}}else if(m(e)&&function(e,n){var t=0,o=0,r=e.accept;return Array.isArray(r)?e.accept.some((function(e){return y(e,n)}))&&o++:"string"==typeof r&&y(r,n)&&o++,r=e.reject,Array.isArray(r)?e.reject.some((function(e){return y(e,n)}))&&t++:"string"==typeof r&&y(r,n)&&t++,0<o&&0===t}(e[0],o)){e=k(e[1],n,t,o);break e}e=[]}if(e&&0!==e.length)return e})),(r=[]).concat.apply(r,e.filter((function(e){return null!=e&&e.filter(Boolean)})))}(n,t,i,o),r.push.apply(r,t),r}}}function c(e){return!!((e=e.split("."))&&1<e.length)&&function(e){if("*"===e[0]||"*"===e[1])return!1;if(0<e.slice(2).length){var n=!1,t=0;for(e=e.slice(2);t<e.length;t++)if("*"===e[t])n=!0;else if(n)return!1;return!0}return 2==e.length}(e)}function u(e){if(null!==(e=/^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(e))&&c(e[1]))return e.slice(1,6)}function s(e){if(e=u(e)){var n=e[0];return 5===e.length&&c(n)}return!1}function l(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}function f(e){return l(e)?e.every((function(e){return s(e)})):"string"==typeof e&&s(e)}function d(e){return!!(r(e)&&"schema"in e&&"data"in e)&&("string"==typeof e.schema&&"object"==typeof e.data)}function v(e){return"function"==typeof e&&1>=e.length}function p(e){return v(e)||d(e)}function g(e){return!(!Array.isArray(e)||2!==e.length)&&(Array.isArray(e[1])?v(e[0])&&e[1].every(p):v(e[0])&&p(e[1]))}function m(e){return!(!Array.isArray(e)||2!==e.length)&&(!!function(e){var n=0;if(null!=e&&"object"==typeof e&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(e,"accept")){if(!f(e.accept))return!1;n+=1}if(Object.prototype.hasOwnProperty.call(e,"reject")){if(!f(e.reject))return!1;n+=1}return 0<n&&2>=n}return!1}(e[0])&&(Array.isArray(e[1])?e[1].every(p):p(e[1])))}function h(e){return g(e)||m(e)}function y(e,n){if(!s(e))return!1;if(e=u(e),n=null!==(n=/^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(n))?n.slice(1,6):void 0,e&&n){if(!function(e,n){if(n=n.split("."),e=e.split("."),n&&e){if(n.length!==e.length)return!1;for(var t=0;t<e.length;t++)if(!w(n[t],e[t]))return!1;return!0}return!1}(e[0],n[0]))return!1;for(var t=1;5>t;t++)if(!w(e[t],n[t]))return!1;return!0}return!1}function w(e,n){return e&&n&&"*"===e||e===n}function b(e){return Array.isArray(e)?e:[e]}function k(e,n,t,o){var r;return e=b(e).map((function(e){e:if(d(e))e=[e];else{if(v(e)){n:{var r=void 0;try{if(r=e({event:n.getPayload(),eventType:t,eventSchema:o}),Array.isArray(r)&&r.every(d)||d(r)){var i=r;break n}i=void 0;break n}catch(e){}i=void 0}if(d(i)){e=[i];break e}if(Array.isArray(i)){e=i;break e}}e=void 0}if(e&&0!==e.length)return e})),(r=[]).concat.apply(r,e.filter((function(e){return null!=e&&e.filter(Boolean)})))}function S(e){void 0===e&&(e={});var t,r,c,u,s,l,f,d=e.base64,v=e.corePlugins,p=null!=v?v:[];t=null==d||d,r=p,c=e.callback,u=function(e){return{addPluginContexts:function(t){var o=t?n([],t,!0):[];return e.forEach((function(e){try{e.contexts&&o.push.apply(o,e.contexts())}catch(e){de.error("Error adding plugin contexts",e)}})),o}}}(r),s=a(),l=t,f={};var g=X(X({},e={track:function(e,n,t){e.withJsonProcessor(o(l)),e.add("eid",le.v4()),e.addDict(f),t=function(e){return null==e?{type:"dtm",value:(new Date).getTime()}:"number"==typeof e?{type:"dtm",value:e}:"ttm"===e.type?{type:"ttm",value:e.value}:{type:"dtm",value:e.value||(new Date).getTime()}}(t),e.add(t.type,t.value.toString()),n=function(e,n){e=s.getApplicableContexts(e);var t=[];return n&&n.length&&t.push.apply(t,n),e&&e.length&&t.push.apply(t,e),t}(e,u.addPluginContexts(n)),void 0!==(n=n&&n.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:n}:void 0)&&e.addJson("cx","co",n),r.forEach((function(n){try{n.beforeTrack&&n.beforeTrack(e)}catch(e){de.error("Plugin beforeTrack",e)}})),"function"==typeof c&&c(e);var i=e.build();return r.forEach((function(e){try{e.afterTrack&&e.afterTrack(i)}catch(e){de.error("Plugin afterTrack",e)}})),i},addPayloadPair:function(e,n){f[e]=n},getBase64Encoding:function(){return l},setBase64Encoding:function(e){l=e},addPayloadDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(f[n]=e[n])},resetPayloadPairs:function(e){f=i(e)?e:{}},setTrackerVersion:function(e){f.tv=e},setTrackerNamespace:function(e){f.tna=e},setAppId:function(e){f.aid=e},setPlatform:function(e){f.p=e},setUserId:function(e){f.uid=e},setScreenResolution:function(e,n){f.res=e+"x"+n},setViewport:function(e,n){f.vp=e+"x"+n},setColorDepth:function(e){f.cd=e},setTimezone:function(e){f.tz=e},setLang:function(e){f.lang=e},setIpAddress:function(e){f.ip=e},setUseragent:function(e){f.ua=e},addGlobalContexts:function(e){s.addGlobalContexts(e)},clearGlobalContexts:function(){s.clearGlobalContexts()},removeGlobalContexts:function(e){s.removeGlobalContexts(e)}}),{addPlugin:function(e){var n,t;e=e.plugin,p.push(e),null===(n=e.logger)||void 0===n||n.call(e,de),null===(t=e.activateCorePlugin)||void 0===t||t.call(e,g)}});return null==p||p.forEach((function(e){var n,t;null===(n=e.logger)||void 0===n||n.call(e,de),null===(t=e.activateCorePlugin)||void 0===t||t.call(e,g)})),g}function T(e,n,t){void 0===t&&(t=63072e3);try{var o=window.localStorage,r=Date.now()+1e3*t;return o.setItem("".concat(e,".expires"),r.toString()),o.setItem(e,n),!0}catch(e){return!1}}function C(e){try{var n=window.localStorage;return n.removeItem(e),n.removeItem(e+".expires"),!0}catch(e){return!1}}function A(e){try{return window.sessionStorage.getItem(e)}catch(e){}}function x(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function I(e){return Number.isInteger&&Number.isInteger(e)||"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function P(e){if(!e||"string"!=typeof e.valueOf()){e=e.text||"";var n=document.getElementsByTagName("title");n&&null!=n[0]&&(e=n[0].text)}return e}function O(e){var n=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(e);return n?n[1]:e}function E(e){var n=e.length;return"."===e.charAt(--n)&&(e=e.slice(0,n)),"*."===e.slice(0,2)&&(e=e.slice(1)),e}function D(e){var n=window,t=L("referrer",n.location.href)||L("referer",n.location.href);if(t)return t;if(e)return e;try{if(n.top)return n.top.document.referrer;if(n.parent)return n.parent.document.referrer}catch(e){}return document.referrer}function j(e,n,t,o){return e.addEventListener?(e.addEventListener(n,t,o),!0):e.attachEvent?e.attachEvent("on"+n,t):void(e["on"+n]=t)}function L(e,n){return(e=new RegExp("^[^#]*[?&]"+e+"=([^&#]*)").exec(n))?decodeURIComponent(e[1].replace(/\+/g," ")):null}function U(e,n,t,o,r,i,a){return 1<arguments.length?document.cookie=e+"="+encodeURIComponent(null!=n?n:"")+(t?"; Expires="+new Date(+new Date+1e3*t).toUTCString():"")+(o?"; Path="+o:"")+(r?"; Domain="+r:"")+(i?"; SameSite="+i:"")+(a?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}function _(e,n,t,o,r,i,a,c,u,s,l,f,d,v,p,g,m,h,y,w){function b(e){var n=Object.keys(e).map((function(n){return[n,e[n]]})).reduce((function(e,n){return e[n[0]]=n[1].toString(),e}),{});return{evt:n,bytes:k(JSON.stringify(n))}}function k(e){for(var n=0,t=0;t<e.length;t++){var o=e.charCodeAt(t);127>=o?n+=1:2047>=o?n+=2:55296<=o&&57343>=o?(n+=4,t++):n=65535>o?n+3:n+4}return n}function S(e,n){var t=P(n,!0,!1),o=E([e.evt]);t.onreadystatechange=function(){4===t.readyState&&(I(t.status)?null==y||y(o):null==w||w({status:t.status,message:t.statusText,events:o,willRetry:!1}))},t.send(O(o))}function C(e){for(var n=0;n<e;n++)N.shift();t&&T(G,JSON.stringify(N.slice(0,s)))}function A(e,n,t){e.onreadystatechange=function(){if(4===e.readyState)if(clearTimeout(o),I(e.status))C(n),null==y||y(t),x();else{var r=e.status;(r=!(I(r)||!h)&&(!!p.includes(r)||!g.includes(r)))||(de.error("Status ".concat(e.status,", will not retry.")),C(n)),null==w||w({status:e.status,message:e.statusText,events:t,willRetry:r}),B=!1}};var o=setTimeout((function(){e.abort(),h||C(n),null==w||w({status:0,message:"timeout",events:t,willRetry:h}),B=!1}),l)}function x(e){for(void 0===e&&(e=!1);N.length&&"string"!=typeof N[0]&&"object"!=typeof N[0];)N.shift();if(N.length){if(!j||"string"!=typeof j.valueOf())throw"No collector configured";if(B=!0,m&&!R){var n=P(m,!1,e);R=!0,n.timeout=l,n.onreadystatechange=function(){4===n.readyState&&x()},n.send()}else if(M){var o=function(e){for(var n=0,t=0;n<e.length&&!((t+=e[n].bytes)>=a);)n+=1;return n},r=void 0,i=void 0,c=void 0;if(q(N)?(i=P(r=j,!0,e),c=o(N)):(i=P(r=D(N[0]),!1,e),c=1),q(N)){if(0<(e=N.slice(0,c)).length){o=!1;var u=e.map((function(e){return e.evt}));if(z){var d=new Blob([O(E(u))],{type:"application/json"});try{o=window.navigator.sendBeacon(r,d)}catch(e){o=!1}}!0===o?(C(c),null==y||y(e),x()):(A(i,c,r=E(u)),i.send(O(r)))}}else A(i,c,[r]),i.send()}else if(f||q(N))B=!1;else{i=new Image(1,1);var v=!0;i.onload=function(){v&&(v=!1,N.shift(),t&&T(G,JSON.stringify(N.slice(0,s))),x())},i.onerror=function(){v&&(B=v=!1)},i.src=D(N[0]),setTimeout((function(){v&&B&&(v=!1,x())}),l)}}else B=!1}function I(e){return 200<=e&&300>e}function P(e,n,t){var o=new XMLHttpRequest;for(var r in n?(o.open("POST",e,!t),o.setRequestHeader("Content-Type","application/json; charset=UTF-8")):o.open("GET",e,!t),o.withCredentials=v,f&&o.setRequestHeader("SP-Anonymous","*"),d)Object.prototype.hasOwnProperty.call(d,r)&&o.setRequestHeader(r,d[r]);return o}function O(e){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:e})}function E(e){for(var n=(new Date).getTime().toString(),t=0;t<e.length;t++)e[t].stm=n;return e}function D(e){return u?j+e.replace("?","?stm="+(new Date).getTime()+"&"):j+e}void 0===h&&(h=!0);var j,L,U,_,B=!1,N=[],R=!1,V=!0===(o="string"==typeof o?o.toLowerCase():o)||"beacon"===o||"true"===o,z=!(!V||!window.navigator||"function"!=typeof window.navigator.sendBeacon||(L=window.navigator.userAgent,(_=(_=L).match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&_.length&&parseInt(_[0])<=13||function(e,n,t){return!(!(t=t.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))||!t.length)&&(parseInt(t[0])<=e||parseInt(t[0])===e&&parseInt(t[1])<=n)}(10,15,L)&&(U=L).match("Version/.* Safari/")&&!U.match("Chrom(e|ium)")))&&V,M=!(!window.XMLHttpRequest||!("withCredentials"in new XMLHttpRequest)),H="get"!==o&&M&&("post"===o||V),F=H?r:"/i",G="snowplowOutQueue_".concat(e,"_").concat(H?"post2":"get");if(V&&(d={}),i=t&&function(){try{var e=!!window.localStorage}catch(n){e=!0}if(!e)return!1;try{var n=window.localStorage;return n.setItem("modernizr","modernizr"),n.removeItem("modernizr"),!0}catch(e){return!1}}()&&H&&i||1,t)try{var J=window.localStorage.getItem(G);N=J?JSON.parse(J):[]}catch(L){}Array.isArray(N)||(N=[]),n.outQueues.push(N),M&&1<i&&n.bufferFlushers.push((function(e){B||x(e)}));var q=function(e){return"object"==typeof e[0]&&"evt"in e[0]};return{enqueueRequest:function(e,n){if(j=n+F,H){if((e=b(e)).bytes>=a)return de.warn("Event ("+e.bytes+"B) too big, max is "+a),void S(e,j);N.push(e)}else{var o,u="?",l={co:!0,cx:!0},f=!0;for(o in e)e.hasOwnProperty(o)&&!l.hasOwnProperty(o)&&(f?f=!1:u+="&",u+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));for(var d in l)e.hasOwnProperty(d)&&l.hasOwnProperty(d)&&(u+="&"+d+"="+encodeURIComponent(e[d]));if(0<c&&(l=k(l=D(u)))>=c)return de.warn("Event ("+l+"B) too big, max is "+c),void(M&&(e=b(e),S(e,n+r)));N.push(u)}n=!1,t&&(n=T(G,JSON.stringify(N.slice(0,s)))),B||n&&!(N.length>=i)||x()},executeQueue:function(){B||x()},setUseLocalStorage:function(e){t=e},setAnonymousTracking:function(e){f=e},setCollectorUrl:function(e){j=e+F},setBufferSize:function(e){i=e}}}function B(e,n,t){return"translate.googleusercontent.com"===e?(""===t&&(t=n),e=O(n=null!=(e=(e=/^(?:https?|ftp)(?::\/*(?:[^?]+))([?][^#]+)/.exec(n))&&1<(null==e?void 0:e.length)?L("u",e[1]):null)?e:"")):"cc.bingj.com"!==e&&"webcache.googleusercontent.com"!==e||(e=O(n=document.links[0].href)),[e,n,t]}function N(e,n){return void 0===n&&(n={memorizedVisitCount:1}),n=n.memorizedVisitCount,"0"===e[0]?(e[7]=e[6],e[5]=e[4],e[3]++):e[3]=n,n=le.v4(),e[6]=n,e[10]=0,e[8]="",e[9]=void 0,n}function R(e){e[4]=Math.round((new Date).getTime()/1e3)}function V(e,n,t){var o=e[9];return{userId:t?"00000000-0000-0000-0000-000000000000":e[1],sessionId:e[6],eventIndex:e[10],sessionIndex:e[3],previousSessionId:t?null:e[7]||null,storageMechanism:"localStorage"==n?"LOCAL_STORAGE":"COOKIE_1",firstEventId:e[8]||null,firstEventTimestamp:o?new Date(o).toISOString():null}}function z(){return"ResizeObserver"in window?(he||(he=M()),function(){if(!be&&document&&document.body&&document.documentElement){be=!0;var e=new ResizeObserver((function(e){for(var n=0;n<e.length;n++){var t=e[n];t.target!==document.body&&t.target!==document.documentElement||(he=M())}}));e.observe(document.body),e.observe(document.documentElement)}}(),he):M()}function M(){var e=H;if("innerWidth"in window)var n=window.innerWidth,t=window.innerHeight;else n=(t=document.documentElement||document.body).clientWidth,t=t.clientHeight;e=e(n=0<=n&&0<=t?n+ke+t:null),n=H;var o=document.documentElement,r=document.body;return t=Math.max(o.clientWidth,o.offsetWidth,o.scrollWidth),o=Math.max(o.clientHeight,o.offsetHeight,o.scrollHeight,r?Math.max(r.offsetHeight,r.scrollHeight):0),{viewport:e,documentSize:n(t=isNaN(t)||isNaN(o)?"":t+ke+o),resolution:H(screen.width+ke+screen.height),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:window.navigator.language||window.navigator.userLanguage,documentLanguage:document.documentElement.lang,webdriver:window.navigator.webdriver,deviceMemory:window.navigator.deviceMemory,hardwareConcurrency:window.navigator.hardwareConcurrency}}function H(e){return e&&e.split(ke).map((function(e){return Math.floor(Number(e))})).join(ke)}function F(e,o,r,i,a,c){void 0===c&&(c={});var u=[];e=function(e,o,r,i,a,c){function s(){(an=B(window.location.hostname,window.location.href,D()))[1]!==un&&(sn=D(un)),cn=E(an[0]),un=an[1]}function l(e){return function(n){var t=n.currentTarget;if(n=function(e,n,t){var o,r=(new Date).getTime();n=X(X({},we),n);var i=t.domainUserId,a=t.userId,c=t.sessionId,u=t.sourceId,s=t.sourcePlatform,l=t.event,f=l.currentTarget;return l="function"==typeof n.reason?n.reason(l):null===(o=null==f?void 0:f.textContent)||void 0===o?void 0:o.trim(),e?[i,r,n.sessionId&&c,n.userId&&x(a||""),n.sourceId&&x(u||""),n.sourcePlatform&&s,n.reason&&x(l||"")].map((function(e){return e||""})).join(".").replace(/([.]*$)/,""):t.domainUserId+"."+r}(e,Hn,{domainUserId:Ke,userId:en||void 0,sessionId:$e,sourceId:vn,sourcePlatform:ln,event:n}),null!=t&&t.href){n="_sp="+n;var o=t.href.split("#"),r=o[0].split("?"),i=r.shift();if(r=r.join("?")){for(var a=!0,c=r.split("&"),u=0;u<c.length;u++)if("_sp="===c[u].substr(0,4)){a=!1,c[u]=n,r=c.join("&");break}a&&(r=n+"&"+r)}else r=n;o[0]=i+"?"+r,n=o.join("#"),t.href=n}}}function f(e){for(var n=l(Mn),t=0;t<document.links.length;t++){var o=document.links[t];!o.spDecorationEnabled&&e(o)&&(o.addEventListener("click",n,!0),o.addEventListener("mousedown",n,!0),o.spDecorationEnabled=!0)}}function d(e){if(Fe){var n=/#.*/;e=e.replace(n,"")}return Ge&&(n=/[{}]/g,e=e.replace(n,"")),e}function v(e){return(e=/^([a-z]+):/.exec(e))?e[1]:null}function p(e){if(e=hn+e+"."+Ye,"localStorage"==On){try{var n=window.localStorage,t=n.getItem(e+".expires");if(null===t||+t>Date.now())var o=n.getItem(e);else n.removeItem(e),n.removeItem(e+".expires"),o=void 0}catch(e){o=void 0}return o}if("cookie"==On||"cookieAndLocalStorage"==On)return U(e)}function g(){s(),Ye=ye((yn||cn)+(wn||"/")).slice(0,4)}function m(){qe=(new Date).getTime()}function h(){var e=y(),n=e[0];n<We?We=n:n>Xe&&(Xe=n),(e=e[1])<Qe?Qe=e:e>Ze&&(Ze=e),m()}function y(){var e=document.documentElement;return e?[e.scrollLeft||window.pageXOffset,e.scrollTop||window.pageYOffset]:[0,0]}function w(){var e=y(),n=e[0];Xe=We=n,Ze=Qe=e=e[1]}function b(){return M(hn+"ses."+Ye,"*",An)}function k(e){var t=hn+"id."+Ye,o=Pn;return e=n([],e,!0),o&&(e[1]="",e[7]=""),e.shift(),M(t,o=e.join("."),Cn)}function M(e,n,t){return!(Pn&&!xn)&&("localStorage"==On?T(e,n,t):("cookie"==On||"cookieAndLocalStorage"==On)&&(U(e,n,t,wn,yn,bn,kn),-1!==document.cookie.indexOf("".concat(e,"="))))}function H(e){var n=hn+"id."+Ye,t=hn+"ses."+Ye;C(n),C(t),U(n,"",-1,"/",yn,bn,kn),U(t,"",-1,"/",yn,bn,kn),null!=e&&e.preserveSession||($e=le.v4(),Dn=1),null!=e&&e.preserveUser||(Ke=Pn?"":le.v4(),en=null)}function F(e){e&&e.stateStorageStrategy&&(c.stateStorageStrategy=e.stateStorageStrategy,On=_e(c)),Pn=!!c.anonymousTracking,xn=Be(c),In=Ne(c),jn.setUseLocalStorage("localStorage"==On||"cookieAndLocalStorage"==On),jn.setAnonymousTracking(In)}function G(){if(!Pn||xn){var e="none"!=On&&!!p("ses"),n=J();if(n[1])var t=n[1];else t=Pn?"":le.v4(),n[1]=t;Ke=t,$e=e?n[6]:N(n),Dn=n[3],"none"!=On&&(b(),R(n),k(n))}}function J(){return"none"==On?["1","",0,0,0,void 0,"","","",void 0,0]:function(e,n,t,o){var r=Math.round((new Date).getTime()/1e3);e?(e=e.split(".")).unshift("0"):e=["1",n,r,o,r,"",t],e[6]&&"undefined"!==e[6]||(e[6]=le.v4()),e[7]&&"undefined"!==e[7]||(e[7]=""),e[8]&&"undefined"!==e[8]||(e[8]=""),e[9]&&"undefined"!==e[9]||(e[9]=""),e[10]&&"undefined"!==e[10]||(e[10]=0);var i=function(e,n){return e=parseInt(e),isNaN(e)?n:e};return n=function(e){return e?i(e,void 0):void 0},[e[0],e[1],i(e[2],r),i(e[3],o),i(e[4],r),n(e[5]),e[6],e[7],e[8],n(e[9]),i(e[10],0)]}(p("id")||void 0,Ke,$e,Dn)}function q(e){return 0===e.indexOf("http")?e:("https:"===document.location.protocol?"https":"http")+"://"+e}function W(){Ln&&null!=a.pageViewId||(a.pageViewId=le.v4(),a.pageViewUrl=Me||un)}function Q(){return function(){if(null==a.pageViewId)return!0;if(Ln||!Un)return!1;if(void 0===a.pageViewUrl)return!0;var e=Me||un;if(!0===Un||"full"==Un||!("URL"in window))return a.pageViewUrl!=e;e=new URL(e);var n=new URL(a.pageViewUrl);return"pathname"==Un?e.pathname!=n.pathname:"pathnameAndSearch"==Un&&(e.pathname!=n.pathname||e.search!=n.search)}()&&(a.pageViewId=le.v4(),a.pageViewUrl=Me||un),a.pageViewId}function Z(){if("none"===On||Pn||!Ve)return null;var e=A("_sp_tab_id");if(!e){e=le.v4();try{window.sessionStorage.setItem("_sp_tab_id",e)}catch(e){}e=A("_sp_tab_id")}return e||null}function Y(e){var n=e.title,o=e.context,r=e.timestamp;if(e=e.contextCallback,s(),_n&&_n==Q()&&W(),_n=Q(),pn=document.title,n?(He=n,gn=!0):gn&&(He=null),n=P(He||pn),on.track(function(e){var n=e.pageUrl,o=e.pageTitle;e=e.referrer;var r=t();return r.add("e","pv"),r.add("url",n),r.add("page",o),r.add("refr",e),r}({pageUrl:d(Me||un),pageTitle:n,referrer:d(ze||sn)}),(o||[]).concat(e?e():[]),r),r=new Date,n=!1,Bn.enabled&&!Bn.installed){n=Bn.installed=!0;var i={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,n=Object.defineProperty({},"passive",{get:function(){e=!0},set:function(){}}),t=function(){};window.addEventListener("testPassiveEventSupport",t,n),window.removeEventListener("testPassiveEventSupport",t,n),i.hasSupport=e}}};i.update();var a="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(i,"hasSupport")?j(document,a,m,{passive:!0}):j(document,a,m),w(),a=function(e,n){return void 0===n&&(n=m),function(e){return j(document,e,n)}},"click mouseup mousedown mousemove keypress keydown keyup touchend touchstart".split(" ").forEach(a(document)),["resize","focus","blur"].forEach(a(window)),a(window,h)("scroll")}if(Bn.enabled&&(mn||n))for(r in qe=r.getTime(),r=void 0,Bn.configurations)(n=Bn.configurations[r])&&(window.clearInterval(n.activityInterval),K(n,o,e))}function K(e,n,t){var o=function(e,n){s(),e({context:n,pageViewId:Q(),minXOffset:We,minYOffset:Qe,maxXOffset:Xe,maxYOffset:Ze}),w()},r=function(){qe+e.configHeartBeatTimer>(new Date).getTime()&&o(e.callback,(n||[]).concat(t?t():[]))};e.activityInterval=0===e.configMinimumVisitLength?window.setInterval(r,e.configHeartBeatTimer):window.setTimeout((function(){qe+e.configMinimumVisitLength>(new Date).getTime()&&o(e.callback,(n||[]).concat(t?t():[])),e.activityInterval=window.setInterval(r,e.configHeartBeatTimer)}),e.configMinimumVisitLength)}function $(e){var n=e.minimumVisitLength,t=e.heartbeatDelay;if(e=e.callback,I(n)&&I(t))return{configMinimumVisitLength:1e3*n,configHeartBeatTimer:1e3*t,callback:e};de.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function ee(e){var n=e.context,o=e.minXOffset,r=e.minYOffset,i=e.maxXOffset,a=e.maxYOffset;(e=document.title)!==pn&&(pn=e,He=void 0);var c=(e=on).track,u=d(Me||un),s=P(He||pn),l=d(ze||sn);o=Math.round(o),i=Math.round(i),r=Math.round(r),a=Math.round(a);var f=t();f.add("e","pp"),f.add("url",u),f.add("page",s),f.add("refr",l),o&&!isNaN(Number(o))&&f.add("pp_mix",o.toString()),i&&!isNaN(Number(i))&&f.add("pp_max",i.toString()),r&&!isNaN(Number(r))&&f.add("pp_miy",r.toString()),a&&!isNaN(Number(a))&&f.add("pp_may",a.toString()),c.call(e,f,n)}function ne(e){var n=Bn.configurations[e];0===(null==n?void 0:n.configMinimumVisitLength)?window.clearTimeout(null==n?void 0:n.activityInterval):window.clearInterval(null==n?void 0:n.activityInterval),Bn.configurations[e]=void 0}var te,oe,re,ie,ae,ce,ue,se,fe,ve,pe,ge,me,he,be,ke,Se,Te,Ce,Ae,xe,Ie,Pe,Oe,Ee,De,je,Le,Ue;c.eventMethod=null!==(te=c.eventMethod)&&void 0!==te?te:"post";var _e=function(e){var n;return null!==(n=e.stateStorageStrategy)&&void 0!==n?n:"cookieAndLocalStorage"},Be=function(e){var n,t;return"boolean"!=typeof e.anonymousTracking&&(null!==(t=!0===(null===(n=e.anonymousTracking)||void 0===n?void 0:n.withSessionTracking))&&void 0!==t&&t)},Ne=function(e){var n,t;return"boolean"!=typeof e.anonymousTracking&&(null!==(t=!0===(null===(n=e.anonymousTracking)||void 0===n?void 0:n.withServerAnonymisation))&&void 0!==t&&t)},Re=null!==(re=null===(oe=null==c?void 0:c.contexts)||void 0===oe?void 0:oe.browser)&&void 0!==re&&re,Ve=null===(ae=null===(ie=null==c?void 0:c.contexts)||void 0===ie?void 0:ie.webPage)||void 0===ae||ae;u.push({beforeTrack:function(e){var n=p("ses"),t=J(),o=0===t[10];if(nn=!!Je&&!!U(Je),Tn||nn)H();else{if("0"===t[0]?($e=n||"none"==On?t[6]:N(t),Dn=t[3]):(new Date).getTime()-En>1e3*An&&(Dn++,$e=N(t,{memorizedVisitCount:Dn})),R(t),0===t[10]){var r=e.build();t[8]=r.eid,r=r.dtm||r.ttm,t[9]=r?parseInt(r):void 0}t[10]+=1;var i=(r=z()).documentSize;e.add("vp",r.viewport),e.add("ds",i),e.add("vid",xn?Dn:Pn?null:Dn),e.add("sid",xn?$e:Pn?null:$e),e.add("duid",Pn?null:t[1]),e.add("uid",Pn?null:en),s(),e.add("refr",d(ze||sn)),e.add("url",d(Me||un)),r=V(t,On,Pn),!Nn||Pn&&!xn||e.addContextEntity({schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",data:r}),"none"!=On&&(k(t),e=b(),n&&!o||!e||!Rn||Vn||(Rn(r),Vn=!1)),En=(new Date).getTime()}}}),Ve&&u.push({contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:Q()}}]}}),Re&&u.push({contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",data:X(X({},z()),{tabId:Z()})}]}}),u.push.apply(u,null!==(ce=c.plugins)&&void 0!==ce?ce:[]);var ze,Me,He,Fe,Ge,Je,qe,We,Xe,Qe,Ze,Ye,Ke,$e,en,nn,tn,on=S({base64:c.encodeBase64,corePlugins:u,callback:function(e){Tn||nn||jn.enqueueRequest(e.build(),fn)}}),rn=document.characterSet||document.charset,an=B(window.location.hostname,window.location.href,D()),cn=E(an[0]),un=an[1],sn=an[2],ln=null!==(ue=c.platform)&&void 0!==ue?ue:"web",fn=q(i),dn=null!==(se=c.postPath)&&void 0!==se?se:"/com.snowplowanalytics.snowplow/tp2",vn=null!==(fe=c.appId)&&void 0!==fe?fe:"",pn=document.title,gn=!1,mn=null===(ve=c.resetActivityTrackingOnPageView)||void 0===ve||ve,hn=null!==(pe=c.cookieName)&&void 0!==pe?pe:"_sp_",yn=null!==(ge=c.cookieDomain)&&void 0!==ge?ge:void 0,wn="/",bn=null!==(me=c.cookieSameSite)&&void 0!==me?me:"None",kn=null===(he=c.cookieSecure)||void 0===he||he,Sn=window.navigator.doNotTrack||window.navigator.msDoNotTrack||window.doNotTrack,Tn=void 0!==c.respectDoNotTrack&&(c.respectDoNotTrack&&("yes"===Sn||"1"===Sn)),Cn=null!==(be=c.cookieLifetime)&&void 0!==be?be:63072e3,An=null!==(ke=c.sessionCookieTimeout)&&void 0!==ke?ke:1800,xn=Be(c),In=Ne(c),Pn=!!c.anonymousTracking,On=_e(c),En=(new Date).getTime(),Dn=1,jn=_(e,a,"localStorage"==On||"cookieAndLocalStorage"==On,c.eventMethod,dn,null!==(Se=c.bufferSize)&&void 0!==Se?Se:1,null!==(Te=c.maxPostBytes)&&void 0!==Te?Te:4e4,null!==(Ce=c.maxGetBytes)&&void 0!==Ce?Ce:0,null===(Ae=c.useStm)||void 0===Ae||Ae,null!==(xe=c.maxLocalStorageQueueSize)&&void 0!==xe?xe:1e3,null!==(Ie=c.connectionTimeout)&&void 0!==Ie?Ie:5e3,In,null!==(Pe=c.customHeaders)&&void 0!==Pe?Pe:{},null===(Oe=c.withCredentials)||void 0===Oe||Oe,null!==(Ee=c.retryStatusCodes)&&void 0!==Ee?Ee:[],(null!==(De=c.dontRetryStatusCodes)&&void 0!==De?De:[]).concat([400,401,403,410,422]),c.idService,c.retryFailedRequests,c.onRequestSuccess,c.onRequestFailure),Ln=!1,Un=null!==(je=c.preservePageViewIdForUrl)&&void 0!==je&&je,_n=void 0,Bn={enabled:!1,installed:!1,configurations:{}},Nn=null!==(Ue=null===(Le=c.contexts)||void 0===Le?void 0:Le.session)&&void 0!==Ue&&Ue,Rn=c.onSessionUpdateCallback,Vn=!1,zn="boolean"==typeof(tn=c.useExtendedCrossDomainLinker||!1)?{useExtendedCrossDomainLinker:tn}:{useExtendedCrossDomainLinker:!0,collectCrossDomainAttributes:tn},Mn=zn.useExtendedCrossDomainLinker,Hn=zn.collectCrossDomainAttributes;c.hasOwnProperty("discoverRootDomain")&&c.discoverRootDomain&&(yn=function(e,n){for(var t=window.location.hostname,o="_sp_root_domain_test_"+(new Date).getTime(),r="_test_value_"+(new Date).getTime(),i=t.split("."),a=i.length-2;0<=a;a--){var c=i.slice(a).join(".");if(U(o,r,0,"/",c,e,n),U(o)===r){for(U(o,"",-1,"/",c,e,n),t=document.cookie.split("; "),o=[],r=0;r<t.length;r++)"_sp_root_domain_test_"===t[r].substring(0,21)&&o.push(t[r]);for(t=o,o=0;o<t.length;o++)U(t[o],"",-1,"/",c,e,n);return c}}return t}(bn,kn));var Fn=z(),Gn=Fn.browserLanguage,Jn=Fn.resolution,qn=Fn.colorDepth,Wn=Fn.cookiesEnabled;return on.setTrackerVersion(r),on.setTrackerNamespace(o),on.setAppId(vn),on.setPlatform(ln),on.addPayloadPair("cookie",Wn?"1":"0"),on.addPayloadPair("cs",rn),on.addPayloadPair("lang",Gn),on.addPayloadPair("res",Jn),on.addPayloadPair("cd",qn),g(),G(),c.crossDomainLinker&&f(c.crossDomainLinker),X(X({},{getDomainSessionIndex:function(){return Dn},getPageViewId:Q,getTabId:Z,newSession:function(){var e=J();if("0"===e[0]?($e="none"!=On?N(e):e[6],Dn=e[3]):(Dn++,$e=N(e,{memorizedVisitCount:Dn})),R(e),"none"!=On){var n=V(e,On,Pn);k(e),b()&&Rn&&(Vn=!0,Rn(n))}En=(new Date).getTime()},getCookieName:function(e){return hn+e+"."+Ye},getUserId:function(){return en},getDomainUserId:function(){return J()[1]},getDomainUserInfo:function(){return J()},setReferrerUrl:function(e){ze=e},setCustomUrl:function(e){s();var n,t=un;v(e)?Me=e:"/"===e.slice(0,1)?Me=v(t)+"://"+O(t)+e:(0<=(n=(t=d(t)).indexOf("?"))&&(t=t.slice(0,n)),(n=t.lastIndexOf("/"))!==t.length-1&&(t=t.slice(0,n+1)),Me=t+e)},setDocumentTitle:function(e){pn=document.title,He=e,gn=!1},discardHashTag:function(e){Fe=e},discardBrace:function(e){Ge=e},setCookiePath:function(e){wn=e,g()},setVisitorCookieTimeout:function(e){Cn=e},crossDomainLinker:function(e){f(e)},enableActivityTracking:function(e){Bn.configurations.pagePing||(Bn.enabled=!0,Bn.configurations.pagePing=$(X(X({},e),{callback:ee})))},enableActivityTrackingCallback:function(e){Bn.configurations.callback||(Bn.enabled=!0,Bn.configurations.callback=$(e))},disableActivityTracking:function(){ne("pagePing")},disableActivityTrackingCallback:function(){ne("callback")},updatePageActivity:function(){m()},setOptOutCookie:function(e){Je=e},setUserId:function(e){en=e},setUserIdFromLocation:function(e){s(),en=L(e,un)},setUserIdFromReferrer:function(e){s(),en=L(e,sn)},setUserIdFromCookie:function(e){en=U(e)},setCollectorUrl:function(e){fn=q(e),jn.setCollectorUrl(fn)},setBufferSize:function(e){jn.setBufferSize(e)},flushBuffer:function(e){void 0===e&&(e={}),jn.executeQueue(),e.newBufferSize&&jn.setBufferSize(e.newBufferSize)},trackPageView:function(e){void 0===e&&(e={}),Y(e)},preservePageViewId:function(){Ln=!0},preservePageViewIdForUrl:function(e){Un=e},disableAnonymousTracking:function(e){c.anonymousTracking=!1,F(e),G(),jn.executeQueue()},enableAnonymousTracking:function(e){var n;c.anonymousTracking=null===(n=e&&(null==e?void 0:e.options))||void 0===n||n,F(e),xn||W()},clearUserData:H}),{id:e,namespace:o,core:on,sharedState:a})}(e,o,r,i,a,c);var s=X(X({},e),{addPlugin:function(e){var n,t;s.core.addPlugin(e),null===(t=(n=e.plugin).activateBrowserPlugin)||void 0===t||t.call(n,s)}});return u.forEach((function(e){var n;null===(n=e.activateBrowserPlugin)||void 0===n||n.call(e,s)})),s}function G(e,n){try{q(null!=e?e:Object.keys(Se),Se).forEach(n)}catch(e){de.error("Function failed",e)}}function J(e,n,t,o,r,i){return Se.hasOwnProperty(e)?null:(Se[e]=F(e,n,t,o,r,i),Se[e])}function q(e,n){for(var t=[],o=0;o<e.length;o++){var r=e[o];n.hasOwnProperty(r)?t.push(n[r]):de.warn(r+" not configured")}return t}function W(){function e(){var e;if(!n.hasLoaded)for(n.hasLoaded=!0,e=0;e<n.registeredOnLoadHandlers.length;e++)n.registeredOnLoadHandlers[e]();return!0}var n=new Te,t=document,o=window;return t.visibilityState&&j(t,"visibilitychange",(function(){"hidden"==t.visibilityState&&n.bufferFlushers.forEach((function(e){e(!1)}))}),!1),j(o,"beforeunload",(function(){n.bufferFlushers.forEach((function(e){e(!1)}))}),!1),"loading"===document.readyState?(t.addEventListener?t.addEventListener("DOMContentLoaded",(function n(){t.removeEventListener("DOMContentLoaded",n,!1),e()})):t.attachEvent&&t.attachEvent("onreadystatechange",(function n(){"complete"===t.readyState&&(t.detachEvent("onreadystatechange",n),e())})),j(o,"load",e,!1)):e(),n}var X=function(){return X=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},X.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Q={},Z="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(Z){var Y=new Uint8Array(16);Q=function(){return Z(Y),Y}}else{var K=Array(16);Q=function(){for(var e,n=0;16>n;n++)!(3&n)&&(e=4294967296*Math.random()),K[n]=e>>>((3&n)<<3)&255;return K}}for(var $=[],ee=0;256>ee;++ee)$[ee]=(ee+256).toString(16).substr(1);var ne,te,oe=function(e,n){return n=n||0,[$[e[n++]],$[e[n++]],$[e[n++]],$[e[n++]],"-",$[e[n++]],$[e[n++]],"-",$[e[n++]],$[e[n++]],"-",$[e[n++]],$[e[n++]],"-",$[e[n++]],$[e[n++]],$[e[n++]],$[e[n++]],$[e[n++]],$[e[n++]]].join("")},re=Q,ie=0,ae=0,ce=Q;Q=function(e,n,t){if(t=n&&t||0,"string"==typeof e&&(n="binary"===e?Array(16):null,e=null),(e=(e=e||{}).random||(e.rng||ce)())[6]=15&e[6]|64,e[8]=63&e[8]|128,n)for(var o=0;16>o;++o)n[t+o]=e[o];return n||oe(e)},Q.v1=function(e,n,t){t=n&&t||0;var o=n||[],r=(e=e||{}).node||ne,i=void 0!==e.clockseq?e.clockseq:te;if(null==r||null==i){var a=re();null==r&&(r=ne=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==i&&(i=te=16383&(a[6]<<8|a[7]))}a=void 0!==e.msecs?e.msecs:(new Date).getTime();var c=void 0!==e.nsecs?e.nsecs:ae+1,u=a-ie+(c-ae)/1e4;if(0>u&&void 0===e.clockseq&&(i=i+1&16383),(0>u||a>ie)&&void 0===e.nsecs&&(c=0),1e4<=c)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");for(ie=a,ae=c,te=i,e=(1e4*(268435455&(a+=122192928e5))+c)%4294967296,o[t++]=e>>>24&255,o[t++]=e>>>16&255,o[t++]=e>>>8&255,o[t++]=255&e,e=a/4294967296*1e4&268435455,o[t++]=e>>>8&255,o[t++]=255&e,o[t++]=e>>>24&15|16,o[t++]=e>>>16&255,o[t++]=i>>>8|128,o[t++]=255&i,i=0;6>i;++i)o[t+i]=r[i];return n||oe(o)};var ue,se,le=Q.v4=Q,fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";(se=ue||(ue={}))[se.none=0]="none",se[se.error=1]="error",se[se.warn=2]="warn",se[se.debug=3]="debug",se[se.info=4]="info";var de=function(e){return void 0===e&&(e=ue.warn),{setLogLevel:function(n){e=ue[n]?n:ue.warn},warn:function(t,o){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];e>=ue.warn&&"undefined"!=typeof console&&(i="Snowplow: "+t,o?console.warn.apply(console,n([i+"\n",o],r,!1)):console.warn.apply(console,n([i],r,!1)))},error:function(t,o){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];e>=ue.error&&"undefined"!=typeof console&&(i="Snowplow: "+t+"\n",o?console.error.apply(console,n([i+"\n",o],r,!1)):console.error.apply(console,n([i],r,!1)))},debug:function(t){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];e>=ue.debug&&"undefined"!=typeof console&&console.debug.apply(console,n(["Snowplow: "+t],o,!1))},info:function(t){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];e>=ue.info&&"undefined"!=typeof console&&console.info.apply(console,n(["Snowplow: "+t],o,!1))}}}(),ve={},pe={};!function(){var e={rotl:function(e,n){return e<<n|e>>>32-n},rotr:function(e,n){return e<<32-n|e>>>n},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var t=0;t<n.length;t++)n[t]=e.endian(n[t]);return n},randomBytes:function(e){for(var n=[];0<e;e--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(e){for(var n=[],t=0,o=0;t<e.length;t++,o+=8)n[o>>>5]|=e[t]<<24-o%32;return n},wordsToBytes:function(e){for(var n=[],t=0;t<32*e.length;t+=8)n.push(e[t>>>5]>>>24-t%32&255);return n},bytesToHex:function(e){for(var n=[],t=0;t<e.length;t++)n.push((e[t]>>>4).toString(16)),n.push((15&e[t]).toString(16));return n.join("")},hexToBytes:function(e){for(var n=[],t=0;t<e.length;t+=2)n.push(parseInt(e.substr(t,2),16));return n},bytesToBase64:function(e){for(var n=[],t=0;t<e.length;t+=3)for(var o=e[t]<<16|e[t+1]<<8|e[t+2],r=0;4>r;r++)8*t+6*r<=8*e.length?n.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(o>>>6*(3-r)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],t=0,o=0;t<e.length;o=++t%4)0!=o&&n.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(t-1))&Math.pow(2,-2*o+8)-1)<<2*o|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(t))>>>6-2*o);return n}};pe=e}();var ge={utf8:{stringToBytes:function(e){return ge.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ge.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],t=0;t<e.length;t++)n.push(255&e.charCodeAt(t));return n},bytesToString:function(e){for(var n=[],t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return n.join("")}}},me=ge;!function(){var e=pe,n=me.utf8,t=me.bin,o=function(o,r){var i=e.wordsToBytes,a=o;a.constructor==String?a=n.stringToBytes(a):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(a)?a=Array.prototype.slice.call(a,0):Array.isArray(a)||(a=a.toString()),o=e.bytesToWords(a);var c=8*a.length;a=[];var u=1732584193,s=-271733879,l=-1732584194,f=271733878,d=-1009589776;for(o[c>>5]|=128<<24-c%32,o[15+(c+64>>>9<<4)]=c,c=0;c<o.length;c+=16){for(var v=u,p=s,g=l,m=f,h=d,y=0;80>y;y++){if(16>y)a[y]=o[c+y];else{var w=a[y-3]^a[y-8]^a[y-14]^a[y-16];a[y]=w<<1|w>>>31}w=(u<<5|u>>>27)+d+(a[y]>>>0)+(20>y?1518500249+(s&l|~s&f):40>y?1859775393+(s^l^f):60>y?(s&l|s&f|l&f)-1894007588:(s^l^f)-899497514),d=f,f=l,l=s<<30|s>>>2,s=u,u=w}u+=v,s+=p,l+=g,f+=m,d+=h}return i=i.call(e,[u,s,l,f,d]),r&&r.asBytes?i:r&&r.asString?t.bytesToString(i):e.bytesToHex(i)};o._blocksize=16,o._digestsize=20,ve=o}();var he,ye=ve,we={sessionId:!0,sourceId:!0,sourcePlatform:!1,userId:!1,reason:!1},be=!1,ke="x",Se={},Te=function(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]},Ce="undefined"!=typeof window?W():void 0,Ae=Object.freeze({__proto__:null,addGlobalContexts:function(e,n){G(n,(function(n){n.core.addGlobalContexts(e)}))},addPlugin:function(e,n){G(n,(function(n){n.addPlugin(e)}))},clearGlobalContexts:function(e){G(e,(function(e){e.core.clearGlobalContexts()}))},clearUserData:function(e,n){G(n,(function(n){n.clearUserData(e)}))},crossDomainLinker:function(e,n){G(n,(function(n){n.crossDomainLinker(e)}))},disableActivityTracking:function(e){G(e,(function(e){e.disableActivityTracking()}))},disableActivityTrackingCallback:function(e){G(e,(function(e){e.disableActivityTrackingCallback()}))},disableAnonymousTracking:function(e,n){G(n,(function(n){n.disableAnonymousTracking(e)}))},discardBrace:function(e,n){G(n,(function(n){n.discardBrace(e)}))},discardHashTag:function(e,n){G(n,(function(n){n.discardHashTag(e)}))},enableActivityTracking:function(e,n){G(n,(function(n){n.enableActivityTracking(e)}))},enableActivityTrackingCallback:function(e,n){G(n,(function(n){n.enableActivityTrackingCallback(e)}))},enableAnonymousTracking:function(e,n){G(n,(function(n){n.enableAnonymousTracking(e)}))},flushBuffer:function(e,n){G(n,(function(n){n.flushBuffer(e)}))},newSession:function(e){G(e,(function(e){e.newSession()}))},newTracker:function(e,n,t){if(void 0===t&&(t={}),Ce)return J(e,e,"js-".concat("3.24.3"),n,Ce,t)},preservePageViewId:function(e){G(e,(function(e){e.preservePageViewId()}))},removeGlobalContexts:function(e,n){G(n,(function(n){n.core.removeGlobalContexts(e)}))},setBufferSize:function(e,n){G(n,(function(n){n.setBufferSize(e)}))},setCollectorUrl:function(e,n){G(n,(function(n){n.setCollectorUrl(e)}))},setCookiePath:function(e,n){G(n,(function(n){n.setCookiePath(e)}))},setCustomUrl:function(e,n){G(n,(function(n){n.setCustomUrl(e)}))},setDocumentTitle:function(e,n){G(n,(function(n){n.setDocumentTitle(e)}))},setOptOutCookie:function(e,n){G(n,(function(n){n.setOptOutCookie(e)}))},setReferrerUrl:function(e,n){G(n,(function(n){n.setReferrerUrl(e)}))},setUserId:function(e,n){G(n,(function(n){n.setUserId(e)}))},setUserIdFromCookie:function(e,n){G(n,(function(n){n.setUserIdFromCookie(e)}))},setUserIdFromLocation:function(e,n){G(n,(function(n){n.setUserIdFromLocation(e)}))},setUserIdFromReferrer:function(e,n){G(n,(function(n){n.setUserIdFromReferrer(e)}))},setVisitorCookieTimeout:function(e,n){G(n,(function(n){n.setVisitorCookieTimeout(e)}))},trackPageView:function(e,n){G(n,(function(n){n.trackPageView(e)}))},trackSelfDescribingEvent:function(e,n){G(n,(function(n){var o=(n=n.core).track,r=e.event,i=r.schema;i={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:i,data:r.data}},(r=t()).add("e","ue"),r.addJson("ue_px","ue_pr",i),o.call(n,r,e.context,e.timestamp)}))},trackStructEvent:function(e,n){G(n,(function(n){var o=(n=n.core).track,r=e.category,i=e.action,a=e.label,c=e.property,u=e.value,s=t();s.add("e","se"),s.add("se_ca",r),s.add("se_ac",i),s.add("se_la",a),s.add("se_pr",c),s.add("se_va",null==u?void 0:u.toString()),o.call(n,s,e.context,e.timestamp)}))},updatePageActivity:function(e){G(e,(function(e){e.updatePageActivity()}))},version:"3.24.3"});Q=window.GlobalSnowplowNamespace.shift(),(ee=window[Q]).q=function(n,t){function o(e){var n=e.split(":");return[e=n[0],n=1<n.length?n[1].split(";"):void 0]}function r(e,n){if(h[e])try{h[e].apply(null,n)}catch(n){de.error(e+" failed",n)}else de.warn(e+" is not an available function")}function i(e){h=X(X({},h),e)}function a(e){if("string"!=typeof e[0]||"string"!=typeof e[1]||void 0!==e[2]&&"object"!=typeof e[2])de.error("newTracker failed",Error("Invalid parameters"));else{var t="".concat(n,"_").concat(e[0]),o=e[2],r=function(e){var n;return(e=null!==(n=null==e?void 0:e.contexts)&&void 0!==n?n:{}).performanceTiming,e.gaCookies,e.geolocation,e.optimizelyExperiments,e.optimizelyStates,e.optimizelyVariations,e.optimizelyVisitor,e.optimizelyAudiences,e.optimizelyDimensions,e.optimizelySummary,e.optimizelyXSummary,e.clientHints,[]}(o);(t=J(t,e[0],"js-".concat(m),e[1],d,X(X({},o),{plugins:r.map((function(e){return e[0]}))})))?(v.push(t.id),r.forEach((function(e){i(e[1])}))):de.warn(e[0]+" already exists")}}function c(n,t){function o(e){Object.prototype.hasOwnProperty.call(p,e)&&(s.clearTimeout(p[e].timeout),delete p[e],0===Object.keys(p).length&&g.forEach((function(e){var n=e[1];void 0!==h[e[0]]&&h[e[0]].length>n.length&&Array.isArray(n[0])&&(n=[{},n[0]]),r(e[0],n)})))}var a;if("string"==typeof n[0]&&l(n[1])&&(void 0===n[2]||Array.isArray(n[2]))){var c=n[0],u=n[1],d=n[2];(null===(a=n[3])||void 0===a||a)&&(a=s.setTimeout((function(){o(c)}),5e3),p[c]={timeout:a}),(a=f.createElement("script")).setAttribute("src",c),a.setAttribute("async","1"),j(a,"error",(function(){o(c),de.warn("Failed to load plugin ".concat(u[0]," from ").concat(c))}),!0),j(a,"load",(function(){var n=u[1],r=s[u[0]];if(r&&"object"==typeof r){var a=r[n];n=e(r,["symbol"==typeof n?n:n+""]),h.addPlugin.apply(null,[{plugin:a.apply(null,d)},t]),i(n)}o(c)}),!0),f.head.appendChild(a)}else{if("object"==typeof n[0]&&"string"==typeof n[1]&&(void 0===n[2]||Array.isArray(n[2]))){var v=n[0],m=n[1];if(a=n[2],v)return n=v[m],v=e(v,["symbol"==typeof m?m:m+""]),h.addPlugin.apply(null,[{plugin:n.apply(null,a)},t]),void i(v)}de.warn("Failed to add Plugin: ".concat(n[1]))}}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(t=0;t<e.length;t+=1){var i=e[t],u=Array.prototype.shift.call(i),s=!(!u||"function"!=typeof u);if(s)try{s={};for(var l=0,f=q(v,Se);l<f.length;l++){var d=f[l];s[d.id.replace("".concat(n,"_"),"")]=d}u.apply(s,i)}catch(e){de.error("Tracker callback failed",e)}finally{continue}u=(s=o(u))[0],s=s[1],"newTracker"===u?a(i):(s=s?s.map((function(e){return"".concat(n,"_").concat(e)})):v,"addPlugin"===u?c(i,s):(l=void 0,l=0<i.length?[i[0],s]:void 0!==h[u]&&2===h[u].length?[{},s]:[s],0<Object.keys(p).length?g.push([u,l]):r(u,l)))}}for(var s=window,f=document,d=W(),v=[],p={},g=[],m="3.24.3",h=e(Ae,["version"]),y=0;y<t.length;y++)u(t[y]);return{push:u}}(Q,ee.q)}();
|