8 lines
73 KiB
JavaScript
8 lines
73 KiB
JavaScript
/*!
|
|
* Web analytics for Snowplow v3.8.0 (http://bit.ly/sp-js)
|
|
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
|
|
* Licensed under BSD-3-Clause
|
|
*/
|
|
|
|
"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,a=n.length;r<a;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=[],a=[],i=function(e,t){null!=t&&""!==t&&(n[e]=t)};return{add:i,addDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i(n,e[n])},addJson:function(e,n,a){a&&r(a)&&(e={keyIfEncoded:e,keyIfNotEncoded:n,json:a},o.push(e),t.push(e))},addContextEntity:function(e){a.push(e)},getPayload:function(){return n},getJson:function(){return t},withJsonProcessor:function(n){e=n},build:function(){return null==e||e(this,o,a),n}}}function o(e){return function(t,o,r){for(var a=function(n,o,r){if(n=JSON.stringify(n),e){if(r=t.add,n){var a=0,i=0,c=[];if(n){n=unescape(encodeURIComponent(n));do{var s=n.charCodeAt(a++),u=n.charCodeAt(a++),l=n.charCodeAt(a++),f=s<<16|u<<8|l;s=f>>18&63,u=f>>12&63,l=f>>6&63,f&=63,c[i++]=He.charAt(s)+He.charAt(u)+He.charAt(l)+He.charAt(f)}while(a<n.length);a=c.join(""),n=((n=n.length%3)?a.slice(0,n-3):a)+"===".slice(n||3)}n=n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}r.call(t,o,n)}else t.add(r,n)},i=function(n,o){if(!n){var r=t.getPayload();if(e?r.cx:r.co){var a=(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="",a=[];if(!e)return e;e+="";do{var i=He.indexOf(e.charAt(t++)),c=He.indexOf(e.charAt(t++));r=He.indexOf(e.charAt(t++));var s=He.indexOf(e.charAt(t++)),u=i<<18|c<<12|r<<6|s;i=u>>16&255,c=u>>8&255,u&=255,a[o++]=64===r?String.fromCharCode(i):64===s?String.fromCharCode(i,c):String.fromCharCode(i,c,u)}while(t<e.length);return r=a.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=a.call(n,r)}else n=void 0}return n?n.data=n.data.concat(o.data):n=o,n},c=void 0,s=0;s<o.length;s++){var u=o[s];"cx"===u.keyIfEncoded?c=i(c,u.json):a(u.json,u.keyIfEncoded,u.keyIfNotEncoded)}o.length=0,r.length&&(c=i(c,o={schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:n([],r,!0)}),r.length=0),c&&a(c,"cx","co")}}function r(e){if(!a(e))return!1;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}function a(e){return null!=e&&(e.constructor==={}.constructor||e.constructor===[].constructor)}function i(){var e=[],n=[];return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return n},addGlobalContexts:function(t){for(var o=[],r=[],a=0;a<t.length;a++){var i=t[a];y(i)?o.push(i):g(i)&&r.push(i)}e=e.concat(r),n=n.concat(o)},clearGlobalContexts:function(){n=[],e=[]},removeGlobalContexts:function(t){for(var o=function(t){y(t)?n=n.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)})):g(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 a=r[o];if("ue_px"===a.keyIfEncoded&&"object"==typeof a.json.data&&"string"==typeof(a=a.json.data.schema)){o=a;break e}}o=""}a="string"==typeof(r=t.getPayload().e)?r:"",r=[];var i=b(e,t,a,o);return r.push.apply(r,i),t=function(e,n,t,o){var r;return e=A(e).map((function(e){e:{if(v(e)){var r=e[0],a=!1;try{a=r({event:n.getPayload(),eventType:t,eventSchema:o})}catch(e){a=!1}if(!0===a){e=b(e[1],n,t,o);break e}}else if(h(e)&&function(e,n){var t=0,o=0,r=e.accept;return Array.isArray(r)?e.accept.some((function(e){return w(e,n)}))&&o++:"string"==typeof r&&w(r,n)&&o++,r=e.reject,Array.isArray(r)?e.reject.some((function(e){return w(e,n)}))&&t++:"string"==typeof r&&w(r,n)&&t++,0<o&&0===t}(e[0],o)){e=b(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,a,o),r.push.apply(r,t),r}}}function c(e){for(var n,t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return null!==(n=null==e?void 0:e.map((function(e){if("function"!=typeof e)return e;try{return e.apply(void 0,t)}catch(e){}})).filter(Boolean))&&void 0!==n?n:[]}function s(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))&&s(e[1]))return e.slice(1,6)}function l(e){if(e=u(e)){var n=e[0];return 5===e.length&&s(n)}return!1}function f(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}function d(e){return f(e)?e.every((function(e){return l(e)})):"string"==typeof e&&l(e)}function m(e){return!!(r(e)&&"schema"in e&&"data"in e)&&("string"==typeof e.schema&&"object"==typeof e.data)}function p(e){return"function"==typeof e&&1>=e.length}function g(e){return p(e)||m(e)}function v(e){return!(!Array.isArray(e)||2!==e.length)&&(Array.isArray(e[1])?p(e[0])&&e[1].every(g):p(e[0])&&g(e[1]))}function h(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(!d(e.accept))return!1;n+=1}if(Object.prototype.hasOwnProperty.call(e,"reject")){if(!d(e.reject))return!1;n+=1}return 0<n&&2>=n}return!1}(e[0])&&(Array.isArray(e[1])?e[1].every(g):g(e[1])))}function y(e){return v(e)||h(e)}function w(e,n){if(!l(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(!k(n[t],e[t]))return!1;return!0}return!1}(e[0],n[0]))return!1;for(var t=1;5>t;t++)if(!k(e[t],n[t]))return!1;return!0}return!1}function k(e,n){return e&&n&&"*"===e||e===n}function A(e){return Array.isArray(e)?e:[e]}function b(e,n,t,o){var r;return e=A(e).map((function(e){e:if(m(e))e=[e];else{if(p(e)){n:{var r=void 0;try{if(r=e({event:n.getPayload(),eventType:t,eventSchema:o}),Array.isArray(r)&&r.every(m)||m(r)){var a=r;break n}a=void 0;break n}catch(e){}a=void 0}if(m(a)){e=[a];break e}if(Array.isArray(a)){e=a;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 _(e){void 0===e&&(e={});var t,r,c,s,u,l,f,d=e.base64,m=e.corePlugins,p=null!=m?m:[];t=null==d||d,r=p,c=e.callback,s=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){Ge.error("Error adding plugin contexts",e)}})),o}}}(r),u=i(),l=t,f={};var g=Te(Te({},e={track:function(e,n,t){e.withJsonProcessor(o(l)),e.add("eid",Ve.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=u.getApplicableContexts(e);var t=[];return n&&n.length&&t.push.apply(t,n),e&&e.length&&t.push.apply(t,e),t}(e,s.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){Ge.error("Plugin beforeTrack",e)}})),"function"==typeof c&&c(e);var a=e.build();return r.forEach((function(e){try{e.afterTrack&&e.afterTrack(a)}catch(e){Ge.error("Plugin afterTrack",e)}})),a},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=a(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){u.addGlobalContexts(e)},clearGlobalContexts:function(){u.clearGlobalContexts()},removeGlobalContexts:function(e){u.removeGlobalContexts(e)}}),{addPlugin:function(e){var n,t;e=e.plugin,p.push(e),null===(n=e.logger)||void 0===n||n.call(e,Ge),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,Ge),null===(t=e.activateCorePlugin)||void 0===t||t.call(e,g)})),g}function P(e){var n=e.event;return e={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:e=n.schema,data:n.data}},(n=t()).add("e","ue"),n.addJson("ue_px","ue_pr",e),n}function T(e){return P({event:e={schema:"iglu:com.snowplowanalytics.snowplow/link_click/jsonschema/1-0-1",data:S({targetUrl:e.targetUrl,elementId:e.elementId,elementClasses:e.elementClasses,elementTarget:e.elementTarget,elementContent:e.elementContent})}})}function S(e,n){void 0===n&&(n={});var t,o={};for(t in e)(n[t]||null!==e[t]&&void 0!==e[t])&&(o[t]=e[t]);return o}function C(e){return Number.isInteger&&Number.isInteger(e)||"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function O(e){return!(!e||"function"!=typeof e)}function x(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 E(e){var n=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(e);return n?n[1]:e}function I(e){var n=e.length;return"."===e.charAt(--n)&&(e=e.slice(0,n)),"*."===e.slice(0,2)&&(e=e.slice(1)),e}function j(e){var n=window,t=B("referrer",n.location.href)||B("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 N(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 B(e,n){return(e=new RegExp("^[^#]*[?&]"+e+"=([^&#]*)").exec(n))?decodeURIComponent(e[1].replace(/\+/g," ")):null}function D(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 L(e){try{var n=window.localStorage;return n.removeItem(e),n.removeItem(e+".expires"),!0}catch(e){return!1}}function M(e,n,t,o,r,a,i){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:"")+(a?"; SameSite="+a:"")+(i?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}function z(e){return e=parseInt(e),isNaN(e)?void 0:e}function U(e){return e=parseFloat(e),isNaN(e)?void 0:e}function F(e){if(null==e||"object"!=typeof e||Array.isArray(e))return function(){return!0};var n=Object.prototype.hasOwnProperty.call(e,"allowlist"),t=G(e);return H(e,(function(e){e:{var o=0;for(e=V(e);o<e.length;o++)if(t[e[o]]){o=!0;break e}o=!1}return o===n}))}function R(e){if(null==e||"object"!=typeof e||Array.isArray(e))return function(){return!0};var n=e.hasOwnProperty("allowlist"),t=G(e);return H(e,(function(e){return e.name in t===n}))}function V(e){return e.className.match(/\S+/g)||[]}function H(e,n){return e.hasOwnProperty("filter")&&e.filter?e.filter:n}function G(e){var n={};if(e=e.allowlist||e.denylist){Array.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++)n[e[t]]=!0}return n}function q(e,n,t,o,r,a,i,c,s,u,l,f,d,m,p,g){function v(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:h(JSON.stringify(n))}}function h(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 y(e){for(void 0===e&&(e=!1);O.length&&"string"!=typeof O[0]&&"object"!=typeof O[0];)O.shift();if(1>O.length)C=!1;else{if(!_||"string"!=typeof _.valueOf())throw"No collector configured";if(C=!0,I){var n=function(e){for(var n=0,t=0;n<e.length&&!((t+=e[n].bytes)>=i);)n+=1;return n},o=void 0;if(M(O))var r=w(o=_,!0,e),a=n(O);else o=b(O[0]),r=w(o,!1,e),a=1;var c=setTimeout((function(){r.abort(),C=!1}),l),s=function(e){for(var n=0;n<e;n++)O.shift();t&&D(B,JSON.stringify(O.slice(0,u)))};if(r.onreadystatechange=function(){if(4===r.readyState&&200<=r.status)if(clearTimeout(c),300>r.status)s(a),y();else{var e=r.status;(e=!(200<=e&&300>e)&&(!!p.includes(e)||!g.includes(e)))||(Ge.error("Status ".concat(r.status,", will not retry.")),s(a)),C=!1}},M(O)){if(0<(n=O.slice(0,a)).length){if(e=!1,n=n.map((function(e){return e.evt})),E){var d=new Blob([k(A(n))],{type:"application/json"});try{e=navigator.sendBeacon(o,d)}catch(n){e=!1}}!0===e?(s(a),y()):r.send(k(A(n)))}}else r.send()}else if(f||M(O))C=!1;else{o=new Image(1,1);var m=!0;o.onload=function(){m&&(m=!1,O.shift(),t&&D(B,JSON.stringify(O.slice(0,u))),y())},o.onerror=function(){m&&(C=m=!1)},o.src=b(O[0]),setTimeout((function(){m&&C&&(m=!1,y())}),l)}}}function w(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=m,f&&o.setRequestHeader("SP-Anonymous","*"),d)Object.prototype.hasOwnProperty.call(d,r)&&o.setRequestHeader(r,d[r]);return o}function k(e){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:e})}function A(e){for(var n=(new Date).getTime().toString(),t=0;t<e.length;t++)e[t].stm=n;return e}function b(e){return s?_+e.replace("?","?stm="+(new Date).getTime()+"&"):_+e}var _,P,T,S,C=!1,O=[],x=!0===(o="string"==typeof o?o.toLowerCase():o)||"beacon"===o||"true"===o,E=!(!(x&&window.navigator&&window.navigator.sendBeacon)||(P=window.navigator.userAgent,(S=(S=P).match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&S.length&&parseInt(S[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,P)&&(T=P).match("Version/.* Safari/")&&!T.match("Chrom(e|ium)")))&&x,I=!(!window.XMLHttpRequest||!("withCredentials"in new XMLHttpRequest)),j="get"!==o&&I&&("post"===o||x),N=j?r:"/i",B="snowplowOutQueue_".concat(e,"_").concat(j?"post2":"get");if(x&&(d={}),a=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}}()&&j&&a||1,t)try{var L=window.localStorage.getItem(B);O=L?JSON.parse(L):[]}catch(P){}Array.isArray(O)||(O=[]),n.outQueues.push(O),I&&1<a&&n.bufferFlushers.push((function(e){C||y(e)}));var M=function(e){return"object"==typeof e[0]};return{enqueueRequest:function(e,n){if(_=n+N,j){if((e=v(e)).bytes>=i)return Ge.warn("Event ("+e.bytes+"B) too big, max is "+i),n=e,void w(_,!0,!1).send(k(A([n.evt])));O.push(e)}else{var o,s="?",l={co:!0,cx:!0},f=!0;for(o in e)e.hasOwnProperty(o)&&!l.hasOwnProperty(o)&&(f?f=!1:s+="&",s+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));for(var d in l)e.hasOwnProperty(d)&&l.hasOwnProperty(d)&&(s+="&"+d+"="+encodeURIComponent(e[d]));if(0<c&&(l=h(l=b(s)))>=c)return Ge.warn("Event ("+l+"B) too big, max is "+c),void(I&&(e=v(e),w(n+r,!0,!1).send(k(A([e.evt])))));O.push(s)}n=!1,t&&(n=D(B,JSON.stringify(O.slice(0,u)))),C||n&&!(O.length>=a)||y()},executeQueue:function(){C||y()},setUseLocalStorage:function(e){t=e},setAnonymousTracking:function(e){f=e},setCollectorUrl:function(e){_=e+N},setBufferSize:function(e){a=e}}}function J(e,n,t){return"translate.googleusercontent.com"===e?(""===t&&(t=n),e=E(n=null!=(e=(e=/^(?:https?|ftp)(?::\/*(?:[^?]+))([?][^#]+)/.exec(n))&&1<(null==e?void 0:e.length)?B("u",e[1]):null)?e:"")):"cc.bingj.com"!==e&&"webcache.googleusercontent.com"!==e||(e=E(n=document.links[0].href)),[e,n,t]}function Y(e,n){return void 0===n&&(n=1),"0"===e[0]?(e[7]=e[6],e[5]=e[4],e[3]++):e[3]=n,n=Ve.v4(),e[6]=n,e[10]=0,e[8]="",e[9]=void 0,n}function K(e){e[4]=Math.round((new Date).getTime()/1e3)}function W(e,n,o,r,a,i){void 0===i&&(i={});var c=[];e=function(e,n,o,r,a,i){function s(){(qe=J(window.location.hostname,window.location.href,j()))[1]!==Ye&&(Ke=j(Ye)),Je=I(qe[0]),Ye=qe[1]}function u(e){var n=(new Date).getTime();if(null!=(e=e.currentTarget)&&e.href){n="_sp="+Le+"."+n;var t=e.href.split("#"),o=t[0].split("?"),r=o.shift();if(o=o.join("?")){for(var a=!0,i=o.split("&"),c=0;c<i.length;c++)if("_sp="===i[c].substr(0,4)){a=!1,i[c]=n,o=i.join("&");break}a&&(o=n+"&"+o)}else o=n;t[0]=r+"?"+o,n=t.join("#"),e.href=n}}function l(e){for(var n=0;n<document.links.length;n++){var t=document.links[n];!t.spDecorationEnabled&&e(t)&&(N(t,"click",u,!0),N(t,"mousedown",u,!0),t.spDecorationEnabled=!0)}}function f(e){if(Ce){var n=/#.*/;e=e.replace(n,"")}return Oe&&(n=/[{}]/g,e=e.replace(n,"")),e}function d(e){return(e=/^([a-z]+):/.exec(e))?e[1]:null}function m(e){if(e=tn+e+"."+De,"localStorage"==gn){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"==gn||"cookieAndLocalStorage"==gn)return M(e)}function p(){s(),De=Qe((on||Je)+(rn||"/")).slice(0,4)}function g(){Ee=(new Date).getTime()}function v(){var e=h(),n=e[0];n<Ie?Ie=n:n>je&&(je=n),(e=e[1])<Ne?Ne=e:e>Be&&(Be=e),g()}function h(){var e=document.documentElement;return e?[e.scrollLeft||window.pageXOffset,e.scrollTop||window.pageYOffset]:[0,0]}function y(){var e=h(),n=e[0];je=Ie=n,Be=Ne=e=e[1]}function w(){A(tn+"ses."+De,"*",fn)}function k(e){var n=tn+"id."+De;e.shift(),A(n,e=e.join("."),ln)}function A(e,n,t){pn&&!dn||("localStorage"==gn?D(e,n,t):("cookie"==gn||"cookieAndLocalStorage"==gn)&&M(e,n,t,rn,on,an,cn))}function b(e){var n=tn+"id."+De,t=tn+"ses."+De;L(n),L(t),M(n,"",-1,"/",on,an,cn),M(t,"",-1,"/",on,an,cn),null!=e&&e.preserveSession||(Me=Ve.v4(),hn=1),null!=e&&e.preserveUser||(Le=Ve.v4(),ze=null)}function P(e){e&&e.stateStorageStrategy&&(i.stateStorageStrategy=e.stateStorageStrategy,gn=ke(i)),pn=!!i.anonymousTracking,dn=Ae(i),mn=be(i),yn.setUseLocalStorage("localStorage"==gn||"cookieAndLocalStorage"==gn),yn.setAnonymousTracking(mn)}function T(){if(!pn||dn){var e="none"!=gn&&!!m("ses"),n=S();if(n[1])var t=n[1];else t=pn?"":Ve.v4(),n[1]=t;Le=t,Me=e?n[6]:Y(n),hn=n[3],"none"!=gn&&(w(),K(n),k(n))}}function S(){return"none"==gn?["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]=Ve.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 a=function(e,n){return e=parseInt(e),isNaN(e)?n:e};return n=function(e){return e?a(e,void 0):void 0},[e[0],e[1],a(e[2],r),a(e[3],o),a(e[4],r),n(e[5]),e[6],e[7],e[8],n(e[9]),a(e[10],0)]}(m("id")||void 0,Le,Me,hn)}function O(e){return 0===e.indexOf("http")?e:("https:"===document.location.protocol?"https":"http")+"://"+e}function z(){wn&&null!=a.pageViewId||(a.pageViewId=Ve.v4())}function U(){return null==a.pageViewId&&(a.pageViewId=Ve.v4()),a.pageViewId}function F(e){var n=e.title,o=e.context,r=e.timestamp;if(e=e.contextCallback,s(),kn&&z(),kn=!0,en=document.title,n=x((Se=n)||en),Fe.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:f(Pe||Ye),pageTitle:n,referrer:f(_e||Ke)}),(o||[]).concat(e?e():[]),r),r=new Date,n=!1,An.enabled&&!An.installed){n=An.installed=!0;var a={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),a.hasSupport=e}}};a.update();var i="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(a,"hasSupport")?N(document,i,g,{passive:!0}):N(document,i,g),y(),i=function(e,n){return void 0===n&&(n=g),function(e){return N(document,e,n)}},"click mouseup mousedown mousemove keypress keydown keyup".split(" ").forEach(i(document)),["resize","focus","blur"].forEach(i(window)),i(window,v)("scroll")}if(An.enabled&&(nn||n))for(r in Ee=r.getTime(),r=void 0,An.configurations)(n=An.configurations[r])&&(window.clearInterval(n.activityInterval),R(n,o,e))}function R(e,n,t){var o=function(e,n){s(),e({context:n,pageViewId:U(),minXOffset:Ie,minYOffset:Ne,maxXOffset:je,maxYOffset:Be}),y()},r=function(){Ee+e.configHeartBeatTimer>(new Date).getTime()&&o(e.callback,(n||[]).concat(t?t():[]))};e.activityInterval=0!=e.configMinimumVisitLength?window.setTimeout((function(){Ee+e.configMinimumVisitLength>(new Date).getTime()&&o(e.callback,(n||[]).concat(t?t():[])),e.activityInterval=window.setInterval(r,e.configHeartBeatTimer)}),e.configMinimumVisitLength):window.setInterval(r,e.configHeartBeatTimer)}function V(e){var n=e.minimumVisitLength,t=e.heartbeatDelay;if(e=e.callback,C(n)&&C(t))return{configMinimumVisitLength:1e3*n,configHeartBeatTimer:1e3*t,callback:e};Ge.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function H(e){var n=e.context,o=e.minXOffset,r=e.minYOffset,a=e.maxXOffset,i=e.maxYOffset;(e=document.title)!==en&&(en=e,Se=void 0);var c=(e=Fe).track,s=f(Pe||Ye),u=x(Se||en),l=f(_e||Ke);o=Math.round(o),a=Math.round(a),r=Math.round(r),i=Math.round(i);var d=t();d.add("e","pp"),d.add("url",s),d.add("page",u),d.add("refr",l),o&&!isNaN(Number(o))&&d.add("pp_mix",o.toString()),a&&!isNaN(Number(a))&&d.add("pp_max",a.toString()),r&&!isNaN(Number(r))&&d.add("pp_miy",r.toString()),i&&!isNaN(Number(i))&&d.add("pp_may",i.toString()),c.call(e,d,n)}var G,W,X,Q,Z,$,ee,ne,te,oe,re,ae,ie,ce,se,ue,le,fe,de,me,pe,ge,ve,he,ye,we;i.eventMethod=null!==(G=i.eventMethod)&&void 0!==G?G:"post";var ke=function(e){var n;return null!==(n=e.stateStorageStrategy)&&void 0!==n?n:"cookieAndLocalStorage"},Ae=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)},be=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)};c.push({beforeTrack:function(e){var n=m("ses"),t=S();if(Ue=!!xe&&!!M(xe),un||Ue)b();else{if("0"===t[0]?(Me=n||"none"==gn?t[6]:Y(t),hn=t[3]):(new Date).getTime()-vn>1e3*fn&&(hn++,Me=Y(t,hn)),K(t),0===t[10]&&(n=e.build(),t[8]=n.eid,n=n.dtm||n.ttm,t[9]=n?parseInt(n):void 0),t[10]+=1,n=e.add,"innerWidth"in window)var o=window.innerWidth,r=window.innerHeight;else o=(r=document.documentElement||document.body).clientWidth,r=r.clientHeight;n.call(e,"vp",0<=o&&0<=r?o+"x"+r:null),n=e.add,r=document.documentElement;var a=document.body;o=Math.max(r.clientWidth,r.offsetWidth,r.scrollWidth),r=Math.max(r.clientHeight,r.offsetHeight,r.scrollHeight,a?Math.max(a.offsetHeight,a.scrollHeight):0),o=isNaN(o)||isNaN(r)?"":o+"x"+r,n.call(e,"ds",o),e.add("vid",dn?hn:pn?null:hn),e.add("sid",dn?Me:pn?null:Me),e.add("duid",pn?null:t[1]),e.add("uid",pn?null:ze),s(),e.add("refr",f(_e||Ke)),e.add("url",f(Pe||Ye)),!bn||dn||pn||(n=t[9],n={userId:t[1],sessionId:t[6],eventIndex:t[10],sessionIndex:t[3],previousSessionId:t[7]||null,storageMechanism:"localStorage"==gn?"LOCAL_STORAGE":"COOKIE_1",firstEventId:t[8]||null,firstEventTimestamp:n?new Date(n).toISOString():null},e.addContextEntity({schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",data:n})),"none"!=gn&&(k(t),w()),vn=(new Date).getTime()}}}),(null===(X=null===(W=null==i?void 0:i.contexts)||void 0===W?void 0:W.webPage)||void 0===X||X)&&c.push({contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:U()}}]}}),c.push.apply(c,null!==(Q=i.plugins)&&void 0!==Q?Q:[]);var _e,Pe,Se,Ce,Oe,xe,Ee,Ie,je,Ne,Be,De,Le,Me,ze,Ue,Fe=_({base64:i.encodeBase64,corePlugins:c,callback:function(e){un||Ue||yn.enqueueRequest(e.build(),Xe)}}),Re=navigator.userLanguage||navigator.language,He=document.characterSet||document.charset,qe=J(window.location.hostname,window.location.href,j()),Je=I(qe[0]),Ye=qe[1],Ke=qe[2],We=null!==(Z=i.platform)&&void 0!==Z?Z:"web",Xe=O(r),Ze=null!==($=i.postPath)&&void 0!==$?$:"/com.snowplowanalytics.snowplow/tp2",$e=null!==(ee=i.appId)&&void 0!==ee?ee:"",en=document.title,nn=null===(ne=i.resetActivityTrackingOnPageView)||void 0===ne||ne,tn=null!==(te=i.cookieName)&&void 0!==te?te:"_sp_",on=null!==(oe=i.cookieDomain)&&void 0!==oe?oe:void 0,rn="/",an=null!==(re=i.cookieSameSite)&&void 0!==re?re:"None",cn=null===(ae=i.cookieSecure)||void 0===ae||ae,sn=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,un=void 0!==i.respectDoNotTrack&&(i.respectDoNotTrack&&("yes"===sn||"1"===sn)),ln=null!==(ie=i.cookieLifetime)&&void 0!==ie?ie:63072e3,fn=null!==(ce=i.sessionCookieTimeout)&&void 0!==ce?ce:1800,dn=Ae(i),mn=be(i),pn=!!i.anonymousTracking,gn=ke(i),vn=(new Date).getTime(),hn=1,yn=q(e,a,"localStorage"==gn||"cookieAndLocalStorage"==gn,i.eventMethod,Ze,null!==(se=i.bufferSize)&&void 0!==se?se:1,null!==(ue=i.maxPostBytes)&&void 0!==ue?ue:4e4,null!==(le=i.maxGetBytes)&&void 0!==le?le:0,null===(fe=i.useStm)||void 0===fe||fe,null!==(de=i.maxLocalStorageQueueSize)&&void 0!==de?de:1e3,null!==(me=i.connectionTimeout)&&void 0!==me?me:5e3,mn,null!==(pe=i.customHeaders)&&void 0!==pe?pe:{},null===(ge=i.withCredentials)||void 0===ge||ge,null!==(ve=i.retryStatusCodes)&&void 0!==ve?ve:[],(null!==(he=i.dontRetryStatusCodes)&&void 0!==he?he:[]).concat([400,401,403,410,422])),wn=!1,kn=!1,An={enabled:!1,installed:!1,configurations:{}},bn=null!==(we=null===(ye=i.contexts)||void 0===ye?void 0:ye.session)&&void 0!==we&&we;return i.hasOwnProperty("discoverRootDomain")&&i.discoverRootDomain&&(on=function(e,n){for(var t=window.location.hostname,o="_sp_root_domain_test_"+(new Date).getTime(),r="_test_value_"+(new Date).getTime(),a=t.split("."),i=a.length-1;0<=i;){var c=a.slice(i,a.length).join(".");if(M(o,r,0,"/",c,e,n),M(o)===r){for(M(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++)M(t[o],"",-1,"/",c,e,n);return c}--i}return t}(an,cn)),Fe.setTrackerVersion(o),Fe.setTrackerNamespace(n),Fe.setAppId($e),Fe.setPlatform(We),Fe.addPayloadPair("cookie",navigator.cookieEnabled?"1":"0"),Fe.addPayloadPair("cs",He),Fe.addPayloadPair("lang",Re),Fe.addPayloadPair("res",screen.width+"x"+screen.height),Fe.addPayloadPair("cd",screen.colorDepth),p(),T(),i.crossDomainLinker&&l(i.crossDomainLinker),Te(Te({},{getDomainSessionIndex:function(){return hn},getPageViewId:function(){return U()},newSession:function(){var e=S();"0"===e[0]?(Me="none"!=gn?Y(e):e[6],hn=e[3],w()):(hn++,Me=Y(e,hn)),K(e),"none"!=gn&&(k(e),w()),vn=(new Date).getTime()},getCookieName:function(e){return tn+e+"."+De},getUserId:function(){return ze},getDomainUserId:function(){return S()[1]},getDomainUserInfo:function(){return S()},setReferrerUrl:function(e){_e=e},setCustomUrl:function(e){s();var n,t=Ye;d(e)?Pe=e:"/"===e.slice(0,1)?Pe=d(t)+"://"+E(t)+e:(0<=(n=(t=f(t)).indexOf("?"))&&(t=t.slice(0,n)),(n=t.lastIndexOf("/"))!==t.length-1&&(t=t.slice(0,n+1)),Pe=t+e)},setDocumentTitle:function(e){en=document.title,Se=e},discardHashTag:function(e){Ce=e},discardBrace:function(e){Oe=e},setCookiePath:function(e){rn=e,p()},setVisitorCookieTimeout:function(e){ln=e},crossDomainLinker:function(e){l(e)},enableActivityTracking:function(e){An.configurations.pagePing||(An.enabled=!0,An.configurations.pagePing=V(Te(Te({},e),{callback:H})))},enableActivityTrackingCallback:function(e){An.configurations.callback||(An.enabled=!0,An.configurations.callback=V(e))},updatePageActivity:function(){g()},setOptOutCookie:function(e){xe=e},setUserId:function(e){ze=e},setUserIdFromLocation:function(e){s(),ze=B(e,Ye)},setUserIdFromReferrer:function(e){s(),ze=B(e,Ke)},setUserIdFromCookie:function(e){ze=M(e)},setCollectorUrl:function(e){Xe=O(e),yn.setCollectorUrl(Xe)},setBufferSize:function(e){yn.setBufferSize(e)},flushBuffer:function(e){void 0===e&&(e={}),yn.executeQueue(),e.newBufferSize&&yn.setBufferSize(e.newBufferSize)},trackPageView:function(e){void 0===e&&(e={}),F(e)},preservePageViewId:function(){wn=!0},disableAnonymousTracking:function(e){i.anonymousTracking=!1,P(e),T(),yn.executeQueue()},enableAnonymousTracking:function(e){var n;i.anonymousTracking=null===(n=e&&(null==e?void 0:e.options))||void 0===n||n,P(e),dn||z()},clearUserData:b}),{id:e,namespace:n,core:Fe,sharedState:a})}(e,n,o,r,a,i);var s=Te(Te({},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 c.forEach((function(e){var n;null===(n=e.activateBrowserPlugin)||void 0===n||n.call(e,s)})),s}function X(e,n){try{$(null!=e?e:Object.keys(Ze),Ze).forEach(n)}catch(e){Ge.error("Function failed",e)}}function Q(e,n,t){try{$(null!=e?e:Object.keys(n),n).forEach(t)}catch(e){Ge.error("Function failed",e)}}function Z(e,n,t,o,r,a){return Ze.hasOwnProperty(e)?null:(Ze[e]=W(e,n,t,o,r,a),Ze[e])}function $(e,n){for(var t=[],o=0;o<e.length;o++){var r=e[o];n.hasOwnProperty(r)?t.push(n[r]):Ge.warn(r+" not configured")}return t}function ee(){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 $e,t=document,o=window;return t.visibilityState&&N(t,"visibilitychange",(function(){"hidden"==t.visibilityState&&n.bufferFlushers.forEach((function(e){e(!1)}))}),!1),N(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())})),N(o,"load",e,!1)):e(),n}function ne(e){return{activateBrowserPlugin:function(){var n;We||(n=navigator).userAgentData&&(We={isMobile:n.userAgentData.mobile,brands:n.userAgentData.brands},e&&n.userAgentData.getHighEntropyValues&&n.userAgentData.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion"]).then((function(e){We.architecture=e.architecture,We.model=e.model,We.platform=e.platform,We.uaFullVersion=e.uaFullVersion,We.platformVersion=e.platformVersion})))},contexts:function(){return We?[{schema:"iglu:org.ietf/http_client_hints/jsonschema/1-0-0",data:We}]:[]}}}function te(){function e(e,n){var t=window.optimizely;if(t&&"function"==typeof t.get){var o=t.get(e);void 0!==n&&void 0!==o&&(o=o[n])}return o}function n(){return(n=e("state"),t=n&&n.getActiveExperimentIds(),o=n&&n.getVariationMap(),r=e("visitor"),t.map((function(e){var n=o[e],t=n&&n.name&&n.name.toString()||null;n=n&&n.id;var a=r&&r.visitorId&&r.visitorId.toString()||null;return{experimentId:z(e)||null,variationName:t,variation:z(n)||null,visitorId:a}}))).map((function(e){return{schema:"iglu:com.optimizely.optimizelyx/summary/jsonschema/1-0-0",data:e}}));var n,t,o,r}return{contexts:function(){return window.optimizely?n():[]}}}function oe(){return{contexts:function(){var e=window,n=(e=e.performance||e.mozPerformance||e.msPerformance||e.webkitPerformance).timing;return e=e?[{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:{navigationStart:n.navigationStart,redirectStart:n.redirectStart,redirectEnd:n.redirectEnd,fetchStart:n.fetchStart,domainLookupStart:n.domainLookupStart,domainLookupEnd:n.domainLookupEnd,connectStart:n.connectStart,secureConnectionStart:n.secureConnectionStart,connectEnd:n.connectEnd,requestStart:n.requestStart,responseStart:n.responseStart,responseEnd:n.responseEnd,unloadEventStart:n.unloadEventStart,unloadEventEnd:n.unloadEventEnd,domLoading:n.domLoading,domInteractive:n.domInteractive,domContentLoadedEventStart:n.domContentLoadedEventStart,domContentLoadedEventEnd:n.domContentLoadedEventEnd,domComplete:n.domComplete,loadEventStart:n.loadEventStart,loadEventEnd:n.loadEventEnd,msFirstPaint:n.msFirstPaint,chromeFirstPaint:n.chromeFirstPaint,requestEnd:n.requestEnd,proxyStart:n.proxyStart,proxyEnd:n.proxyEnd}}]:[]}}}function re(){var e;return{activateBrowserPlugin:function(n){e=n.id,un[n.id]=n},contexts:function(){return ln[e]?[{schema:"iglu:com.snowplowanalytics.snowplow/gdpr/jsonschema/1-0-0",data:ln[e]}]:[]},logger:function(e){an=e}}}function ae(e){var n;return void 0===e&&(e=!1),{activateBrowserPlugin:function(t){n=t.id,dn[t.id]=[!1,void 0],e&&ie([n])},contexts:function(){var e,t=null===(e=dn[n])||void 0===e?void 0:e[1];return t?[t]:[]}}}function ie(e){void 0===e&&(e=Object.keys(dn));var n=navigator;e.forEach((function(e){dn[e]=[!0,cn]})),!mn&&n.geolocation&&n.geolocation.getCurrentPosition&&(mn=!0,n.geolocation.getCurrentPosition((function(e){var n=e.coords;for(var t in cn={schema:"iglu:com.snowplowanalytics.snowplow/geolocation_context/jsonschema/1-1-0",data:{latitude:n.latitude,longitude:n.longitude,latitudeLongitudeAccuracy:n.accuracy,altitude:n.altitude,altitudeAccuracy:n.altitudeAccuracy,bearing:n.heading,speed:n.speed,timestamp:Math.round(e.timestamp)}},dn)Object.prototype.hasOwnProperty.call(dn,t)&&dn[t][0]&&(dn[t]=[!0,cn])})))}function ce(){return{contexts:function(){var e={schema:"iglu:com.google.analytics/cookies/jsonschema/1-0-0",data:{}};return"__utma __utmb __utmc __utmv __utmz _ga".split(" ").forEach((function(n){var t=M(n);t&&(e.data[n]=t)})),[e]}}}function se(){return{activateBrowserPlugin:function(e){vn[e.id]=e}}}function ue(e,n,t){for(var o,r,a,i;null!==(o=n.parentElement)&&null!=o&&"A"!==(r=n.tagName.toUpperCase())&&"AREA"!==r;)n=o;if(null!=(o=n).href){a=(r=o.hostname||E(o.href)).toLowerCase();var s=o.href.replace(r,a);/^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):/i.test(s)||(r=o.id,a=V(o),i=o.target,o=hn[e.id].linkTrackingContent?o.innerHTML:void 0,s=unescape(s),e.core.track(T({targetUrl:s,elementId:r,elementClasses:a,elementTarget:i,elementContent:o}),c(t,n)))}}function le(e,n){return function(t){var o=(t=t||window.event).which||t.button,r=t.target||t.srcElement;"click"===t.type?r&&ue(vn[e],r,n):"mousedown"===t.type?1!==o&&2!==o||!r?hn[e].lastButton=hn[e].lastTarget=null:(hn[e].lastButton=o,hn[e].lastTarget=r):"mouseup"===t.type&&(o===hn[e].lastButton&&r===hn[e].lastTarget&&ue(vn[e],r,n),hn[e].lastButton=hn[e].lastTarget=null)}}function fe(e,n){e=void 0===e?{}:e,hn[n]={linkTrackingContent:e.trackContent,linkTrackingContext:e.context,linkTrackingPseudoClicks:e.pseudoClicks,linkTrackingFilter:F(e.options)}}function de(e){var n,t,o,r=document.links;for(o=0;o<r.length;o++)if(null!==(t=(n=hn[e]).linkTrackingFilter)&&void 0!==t&&t.call(n,r[o])&&!r[o][e]){var a=e,i=r[o];hn[a].linkTrackingPseudoClicks?(N(i,"mouseup",le(a,hn[a].linkTrackingContext),!1),N(i,"mousedown",le(a,hn[a].linkTrackingContext),!1)):N(i,"click",le(a,hn[a].linkTrackingContext),!1),r[o][e]=!0}}function me(e,n){var t,o=n.context,r=e.id+"form",a=function(e){if(e){var n=function(e){return!0},t=null;return!function(e){return null!=e&&0<Array.prototype.slice.call(e).length}(e.forms)?n=F(e.forms):t=e.forms,{forms:t,formFilter:n,fieldFilter:R(e.fields),fieldTransform:pe(e.fields),eventFilter:function(n){var t;return-1<(null!==(t=e.events)&&void 0!==t?t:wn).indexOf(n)}}}return{forms:null,formFilter:function(){return!0},fieldFilter:function(){return!0},fieldTransform:An,eventFilter:function(){return!0}}}(n.options);n=null!==(t=a.forms)&&void 0!==t?t:document.getElementsByTagName("form"),Array.prototype.slice.call(n).forEach((function(n){a.formFilter(n)&&(Array.prototype.slice.call(kn).forEach((function(t){Array.prototype.slice.call(n.getElementsByTagName(t)).forEach((function(n){a.fieldFilter(n)&&!n[r]&&"password"!==n.type.toLowerCase()&&(a.eventFilter(sn.FOCUS_FORM)&&N(n,"focus",ve(e,a,"focus_form",o),!1),a.eventFilter(sn.CHANGE_FORM)&&N(n,"change",ve(e,a,"change_form",o),!1),n[r]=!0)}))})),n[r]||(a.eventFilter(sn.SUBMIT_FORM)&&N(n,"submit",function(e,n,t,o){return function(r){var a;r=r.target;var i=function(e,n){var t=[];return Array.prototype.slice.call(kn).forEach((function(o){o=Array.prototype.slice.call(n.getElementsByTagName(o)).filter((function(n){return n.hasOwnProperty(e)})),Array.prototype.slice.call(o).forEach((function(e){if("submit"!==e.type){var n={name:ge(e),value:e.value,nodeName:e.nodeName};e.type&&"INPUT"===e.nodeName.toUpperCase()&&(n.type=e.type),"checkbox"!==e.type&&"radio"!==e.type||e.checked||(n.value=null),t.push(n)}}))})),t}(t,r);i.forEach((function(e){var t;e.value=null!==(t=n.fieldTransform(e.value,e))&&void 0!==t?t:e.value})),e.core.track(function(e){return P({event:{schema:"iglu:com.snowplowanalytics.snowplow/submit_form/jsonschema/1-0-0",data:S({formId:e.formId,formClasses:e.formClasses,elements:e.elements})}})}({formId:null!==(a=ge(r))&&void 0!==a?a:"",formClasses:V(r),elements:i}),c(o,r,i))}}(e,a,r,o)),n[r]=!0))}))}function pe(e){return e&&Object.prototype.hasOwnProperty.call(e,"transform")?e.transform:An}function ge(e){for(var n=0,t=["name","id","type","nodeName"];n<t.length;n++){var o=t[n];if(0!=e[o]&&"string"==typeof e[o])return e[o]}return null}function ve(e,n,t,o){return function(r){var a;if(r=r.target){var i=r.nodeName&&"INPUT"===r.nodeName.toUpperCase()?r.type:null,s="checkbox"!==r.type||r.checked?n.fieldTransform(r.value,r):null;if("change_form"===t||"checkbox"!==i&&"radio"!==i){var u,l=e.core,f=l.track;for(u=r;u&&u.nodeName&&"HTML"!==u.nodeName.toUpperCase()&&"FORM"!==u.nodeName.toUpperCase();)u=u.parentNode;u=null!=(u=u&&u.nodeName&&"FORM"===u.nodeName.toUpperCase()?ge(u):null)?u:"";var d=null!==(a=ge(r))&&void 0!==a?a:"";a="",u={formId:u,elementId:d,nodeName:r.nodeName,elementClasses:V(r),value:null!=s?s:null},"change_form"===t?(a="iglu:com.snowplowanalytics.snowplow/change_form/jsonschema/1-0-0",u.type=i):"focus_form"===t&&(a="iglu:com.snowplowanalytics.snowplow/focus_form/jsonschema/1-0-0",u.elementType=i),a=P({event:{schema:a,data:S(u,{value:!0})}}),f.call(l,a,c(o,r,i,s))}}}}function he(){return{activateBrowserPlugin:function(e){bn[e.id]=e}}}function ye(){return{activateBrowserPlugin:function(e){Pn[e.id]=e}}}function we(e,n){void 0===n&&(n=Object.keys(Pn));var t=e.message,o=e.filename,r=e.lineno,a=e.colno,i=e.error,c=e.context,s=e.timestamp,u=i&&i.stack?i.stack:null;Q(n,Pn,(function(e){e.core.track(P({event:{schema:"iglu:com.snowplowanalytics.snowplow/application_error/jsonschema/1-0-1",data:{programmingLanguage:"JAVASCRIPT",message:null!=t?t:"JS Exception. Browser doesn't support ErrorEvent API",stackTrace:u,lineNumber:r,lineColumn:a,fileName:o}}}),c,s)}))}function ke(){return{activateBrowserPlugin:function(e){e.core.setTimezone(Sn.exports.determine("undefined"!=typeof Intl).name())}}}function Ae(){return{activateBrowserPlugin:function(e){On[e.id]=e,xn[e.id]={items:[]}}}}function be(){return{activateBrowserPlugin:function(e){In[e.id]=e,jn[e.id]=[]}}}function _e(){return{activateBrowserPlugin:function(e){Bn[e.id]=e}}}function Pe(){return{activateBrowserPlugin:function(e){Ln[e.id]=e}}}var Te=function(){return Te=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},Te.apply(this,arguments)},Se={},Ce="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(Ce){var Oe=new Uint8Array(16);Se=function(){return Ce(Oe),Oe}}else{var xe=Array(16);Se=function(){for(var e,n=0;16>n;n++)0==(3&n)&&(e=4294967296*Math.random()),xe[n]=e>>>((3&n)<<3)&255;return xe}}for(var Ee=[],Ie=0;256>Ie;++Ie)Ee[Ie]=(Ie+256).toString(16).substr(1);var je,Ne,Be=function(e,n){return n=n||0,[Ee[e[n++]],Ee[e[n++]],Ee[e[n++]],Ee[e[n++]],"-",Ee[e[n++]],Ee[e[n++]],"-",Ee[e[n++]],Ee[e[n++]],"-",Ee[e[n++]],Ee[e[n++]],"-",Ee[e[n++]],Ee[e[n++]],Ee[e[n++]],Ee[e[n++]],Ee[e[n++]],Ee[e[n++]]].join("")},De=Se,Le=0,Me=0,ze=Se,Ue=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||ze)())[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||Be(e)};Ue.v1=function(e,n,t){t=n&&t||0;var o=n||[],r=(e=e||{}).node||je,a=void 0!==e.clockseq?e.clockseq:Ne;if(null==r||null==a){var i=De();null==r&&(r=je=[1|i[0],i[1],i[2],i[3],i[4],i[5]]),null==a&&(a=Ne=16383&(i[6]<<8|i[7]))}i=void 0!==e.msecs?e.msecs:(new Date).getTime();var c=void 0!==e.nsecs?e.nsecs:Me+1,s=i-Le+(c-Me)/1e4;if(0>s&&void 0===e.clockseq&&(a=a+1&16383),(0>s||i>Le)&&void 0===e.nsecs&&(c=0),1e4<=c)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");for(Le=i,Me=c,Ne=a,e=(1e4*(268435455&(i+=122192928e5))+c)%4294967296,o[t++]=e>>>24&255,o[t++]=e>>>16&255,o[t++]=e>>>8&255,o[t++]=255&e,e=i/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++]=a>>>8|128,o[t++]=255&a,a=0;6>a;++a)o[t+a]=r[a];return n||Be(o)};var Fe,Re,Ve=Ue.v4=Ue,He="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";(Re=Fe||(Fe={}))[Re.none=0]="none",Re[Re.error=1]="error",Re[Re.warn=2]="warn",Re[Re.debug=3]="debug",Re[Re.info=4]="info";var Ge=function(e){return void 0===e&&(e=Fe.warn),{setLogLevel:function(n){e=Fe[n]?n:Fe.warn},warn:function(t,o){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];e>=Fe.warn&&"undefined"!=typeof console&&(a="Snowplow: "+t,o?console.warn.apply(console,n([a+"\n",o],r,!1)):console.warn.apply(console,n([a],r,!1)))},error:function(t,o){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];e>=Fe.error&&"undefined"!=typeof console&&(a="Snowplow: "+t+"\n",o?console.error.apply(console,n([a+"\n",o],r,!1)):console.error.apply(console,n([a],r,!1)))},debug:function(t){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];e>=Fe.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>=Fe.info&&"undefined"!=typeof console&&console.info.apply(console,n(["Snowplow: "+t],o,!1))}}}(),qe={},Je={};!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}};Je=e}();var Ye={utf8:{stringToBytes:function(e){return Ye.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Ye.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("")}}},Ke=Ye;!function(){var e=Je,n=Ke.utf8,t=Ke.bin,o=function(o,r){var a=e.wordsToBytes,i=o;i.constructor==String?i=n.stringToBytes(i):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(i)?i=Array.prototype.slice.call(i,0):Array.isArray(i)||(i=i.toString()),o=e.bytesToWords(i);var c=8*i.length;i=[];var s=1732584193,u=-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 m=s,p=u,g=l,v=f,h=d,y=0;80>y;y++){if(16>y)i[y]=o[c+y];else{var w=i[y-3]^i[y-8]^i[y-14]^i[y-16];i[y]=w<<1|w>>>31}w=(s<<5|s>>>27)+d+(i[y]>>>0)+(20>y?1518500249+(u&l|~u&f):40>y?1859775393+(u^l^f):60>y?(u&l|u&f|l&f)-1894007588:(u^l^f)-899497514),d=f,f=l,l=u<<30|u>>>2,u=s,s=w}s+=m,u+=p,l+=g,f+=v,d+=h}return a=a.call(e,[s,u,l,f,d]),r&&r.asBytes?a:r&&r.asString?t.bytesToString(a):e.bytesToHex(a)};o._blocksize=16,o._digestsize=20,qe=o}();var We,Xe,Qe=qe,Ze={},$e=function(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]},en="undefined"!=typeof window?ee():void 0,nn=Object.freeze({__proto__:null,addGlobalContexts:function(e,n){X(n,(function(n){n.core.addGlobalContexts(e)}))},addPlugin:function(e,n){X(n,(function(n){n.addPlugin(e)}))},clearGlobalContexts:function(e){X(e,(function(e){e.core.clearGlobalContexts()}))},clearUserData:function(e,n){X(n,(function(n){n.clearUserData(e)}))},crossDomainLinker:function(e,n){X(n,(function(n){n.crossDomainLinker(e)}))},disableAnonymousTracking:function(e,n){X(n,(function(n){n.disableAnonymousTracking(e)}))},discardBrace:function(e,n){X(n,(function(n){n.discardBrace(e)}))},discardHashTag:function(e,n){X(n,(function(n){n.discardHashTag(e)}))},enableActivityTracking:function(e,n){X(n,(function(n){n.enableActivityTracking(e)}))},enableActivityTrackingCallback:function(e,n){X(n,(function(n){n.enableActivityTrackingCallback(e)}))},enableAnonymousTracking:function(e,n){X(n,(function(n){n.enableAnonymousTracking(e)}))},flushBuffer:function(e,n){X(n,(function(n){n.flushBuffer(e)}))},newSession:function(e){X(e,(function(e){e.newSession()}))},newTracker:function(e,n,t){if(void 0===t&&(t={}),en)return Z(e,e,"js-".concat("3.8.0"),n,en,t)},preservePageViewId:function(e){X(e,(function(e){e.preservePageViewId()}))},removeGlobalContexts:function(e,n){X(n,(function(n){n.core.removeGlobalContexts(e)}))},setBufferSize:function(e,n){X(n,(function(n){n.setBufferSize(e)}))},setCollectorUrl:function(e,n){X(n,(function(n){n.setCollectorUrl(e)}))},setCookiePath:function(e,n){X(n,(function(n){n.setCookiePath(e)}))},setCustomUrl:function(e,n){X(n,(function(n){n.setCustomUrl(e)}))},setDocumentTitle:function(e,n){X(n,(function(n){n.setDocumentTitle(e)}))},setOptOutCookie:function(e,n){X(n,(function(n){n.setOptOutCookie(e)}))},setReferrerUrl:function(e,n){X(n,(function(n){n.setReferrerUrl(e)}))},setUserId:function(e,n){X(n,(function(n){n.setUserId(e)}))},setUserIdFromCookie:function(e,n){X(n,(function(n){n.setUserIdFromCookie(e)}))},setUserIdFromLocation:function(e,n){X(n,(function(n){n.setUserIdFromLocation(e)}))},setUserIdFromReferrer:function(e,n){X(n,(function(n){n.setUserIdFromReferrer(e)}))},setVisitorCookieTimeout:function(e,n){X(n,(function(n){n.setVisitorCookieTimeout(e)}))},trackPageView:function(e,n){X(n,(function(n){n.trackPageView(e)}))},trackSelfDescribingEvent:function(e,n){X(n,(function(n){n.core.track(P({event:e.event}),e.context,e.timestamp)}))},trackStructEvent:function(e,n){X(n,(function(n){var o=(n=n.core).track,r=e.category,a=e.action,i=e.label,c=e.property,s=e.value,u=t();u.add("e","se"),u.add("se_ca",r),u.add("se_ac",a),u.add("se_la",i),u.add("se_pr",c),u.add("se_va",null==s?void 0:s.toString()),o.call(n,u,e.context,e.timestamp)}))},updatePageActivity:function(e){X(e,(function(e){e.updatePageActivity()}))},version:"3.8.0"}),tn=Object.freeze({__proto__:null,ClientHintsPlugin:ne}),on=Object.freeze({__proto__:null,OptimizelyXPlugin:te}),rn=Object.freeze({__proto__:null,PerformanceTimingPlugin:oe});!function(e){e.consent="consent",e.contract="contract",e.legalObligation="legal_obligation",e.vitalInterests="vital_interests",e.publicTask="public_task",e.legitimateInterests="legitimate_interests"}(Xe||(Xe={}));var an,cn,sn,un={},ln={},fn=Object.freeze({__proto__:null,ConsentPlugin:re,enableGdprContext:function(e,n){void 0===n&&(n=Object.keys(un));var t=e.documentId,o=e.documentVersion,r=e.documentDescription,a=Xe[e.basisForProcessing];a?n.forEach((function(e){un[e]&&(ln[e]={basisForProcessing:a,documentId:null!=t?t:null,documentVersion:null!=o?o:null,documentDescription:null!=r?r:null})})):an.warn("enableGdprContext: basisForProcessing must be one of: consent, contract, legalObligation, vitalInterests, publicTask, legitimateInterests")},get gdprBasis(){return Xe},trackConsentGranted:function(e,n){void 0===n&&(n=Object.keys(un)),Q(n,un,(function(n){var t=e.expiry,o={schema:"iglu:com.snowplowanalytics.snowplow/consent_document/jsonschema/1-0-0",data:S({id:e.id,version:e.version,name:e.name,description:e.description})};t=P({event:{schema:"iglu:com.snowplowanalytics.snowplow/consent_granted/jsonschema/1-0-0",data:S({expiry:t})}}),o=[o],n.core.track(t,e.context?e.context.concat(o):o,e.timestamp)}))},trackConsentWithdrawn:function(e,n){void 0===n&&(n=Object.keys(un)),Q(n,un,(function(n){var t=e.all,o={schema:"iglu:com.snowplowanalytics.snowplow/consent_document/jsonschema/1-0-0",data:S({id:e.id,version:e.version,name:e.name,description:e.description})};t=P({event:{schema:"iglu:com.snowplowanalytics.snowplow/consent_withdrawn/jsonschema/1-0-0",data:S({all:t})}}),o=[o],n.core.track(t,e.context?e.context.concat(o):o,e.timestamp)}))}}),dn={},mn=!1,pn=Object.freeze({__proto__:null,GeolocationPlugin:ae,enableGeolocationContext:ie}),gn=Object.freeze({__proto__:null,GaCookiesPlugin:ce}),vn={},hn={},yn=Object.freeze({__proto__:null,LinkClickTrackingPlugin:se,enableLinkClickTracking:function(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(vn)),n.forEach((function(n){vn[n]&&(vn[n].sharedState.hasLoaded?(fe(e,n),de(n)):vn[n].sharedState.registeredOnLoadHandlers.push((function(){fe(e,n),de(n)})))}))},refreshLinkClickTracking:function(e){void 0===e&&(e=Object.keys(vn)),e.forEach((function(e){vn[e]&&(vn[e].sharedState.hasLoaded?de(e):vn[e].sharedState.registeredOnLoadHandlers.push((function(){de(e)})))}))},trackLinkClick:function(e,n){void 0===n&&(n=Object.keys(vn)),Q(n,vn,(function(n){n.core.track(T(e),e.context,e.timestamp)}))}});!function(e){e.CHANGE_FORM="change_form",e.FOCUS_FORM="focus_form",e.SUBMIT_FORM="submit_form"}(sn||(sn={}));var wn=[sn.CHANGE_FORM,sn.FOCUS_FORM,sn.SUBMIT_FORM],kn=["textarea","input","select"],An=function(e){return e},bn={},_n=Object.freeze({__proto__:null,FormTrackingPlugin:he,enableFormTracking:function(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(bn)),n.forEach((function(n){bn[n]&&(bn[n].sharedState.hasLoaded?me(bn[n],e):bn[n].sharedState.registeredOnLoadHandlers.push((function(){me(bn[n],e)})))}))}}),Pn={},Tn=Object.freeze({__proto__:null,ErrorTrackingPlugin:ye,enableErrorTracking:function(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(Pn));var t=e.filter,o=e.contextAdder,r=e.context;N(window,"error",(function(e){if(t&&O(t)&&t(e)||null==t){var a=n,i=r||[];o&&O(o)&&(i=i.concat(o(e))),we({message:e.message,filename:e.filename,lineno:e.lineno,colno:e.colno,error:e.error,context:i},a)}}),!0)},trackError:we}),Sn={exports:{}};!function(e){var n,t,o,r,a,i;n={"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":"Asia/Amman Asia/Jerusalem Europe/Helsinki Asia/Damascus Africa/Cairo Asia/Gaza Europe/Minsk Africa/Windhoek".split(" "),"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]},t=function(){for(var e=[],n=0;11>=n;n++)for(var t=1;28>=t;t++){var o=-new Date(2014,n,t).getTimezoneOffset();o=null!==o?o:0,e?e&&e[e.length-1]!==o&&e.push(o):e.push()}return e},o=function e(n,t,o){void 0===t&&(t=864e5,o=36e5);var r=new Date(n.getTime()-t).getTime();n=n.getTime()+t;for(var a=new Date(r).getTimezoneOffset(),i=null;r<n-o;){var c=new Date(r);if(c.getTimezoneOffset()!==a){i=c;break}r+=o}return 864e5===t?e(i,36e5,6e4):36e5===t?e(i,6e4,1e3):i},r=function(e,n,t,o){if("N/A"!==t)return t;if("Asia/Beirut"===n){if("Africa/Cairo"===o.name&&13983768e5===e[6].s&&14116788e5===e[6].e||"Asia/Jerusalem"===o.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===n){if("America/Asuncion"===o.name&&14124816e5===e[6].s&&1397358e6===e[6].e||"America/Campo_Grande"===o.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===n){if("America/Sao_Paulo"===o.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===n&&"Pacific/Fiji"===o.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return t},a=function(e){var t=function(){for(var e=[],n=0;n<i.olson.dst_rules.years.length;n++){var t=i.olson.dst_rules.years[n],r=new Date(t,0,1,0,0,1,0).getTime();t=new Date(t,12,31,23,59,59).getTime();for(var a=new Date(r).getTimezoneOffset(),c=null,s=null;r<t-864e5;){var u=new Date(r),l=u.getTimezoneOffset();l!==a&&(l<a&&(c=u),l>a&&(s=u),a=l),r+=864e5}t=!(!c||!s)&&{s:o(c).getTime(),e:o(s).getTime()},e.push(t)}return e}();return function(e){for(var n=0;n<e.length;n++)if(!1!==e[n])return!0;return!1}(t)?function(e,t){for(var o={},a=i.olson.dst_rules.zones,c=a.length,s=n[t],u=0;u<c;u++){for(var l=a[u],f=a[u],d=0,m=0;m<e.length;m++)if(f.rules[m]&&e[m]){if(!(e[m].s>=f.rules[m].s&&e[m].e<=f.rules[m].e)){d="N/A";break}if(d=0,d+=Math.abs(e[m].s-f.rules[m].s),864e6<(d+=Math.abs(f.rules[m].e-e[m].e))){d="N/A";break}}"N/A"!==(f=r(e,t,d,f))&&(o[l.name]=f)}for(var p in o)if(o.hasOwnProperty(p))for(e=0;e<s.length;e++)if(s[e]===p)return p;return t}(t,e):e},(i={determine:function(e){var o=!1,r=function(){var e=0,n=t();return 1<n.length&&(e=n[0]-n[1]),3<n.length?n[0]+",1,weird":0>e?n[0]+",1":0<e?n[1]+",1,s":n[0]+",0"}();return(e||void 0===e)&&(o=function(){var e,n;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return(n=e.resolvedOptions().timeZone)&&(-1<n.indexOf("/")||"UTC"===n)?n:void 0}()),o||(o=i.olson.timezones[r],void 0!==n[o]&&(o=a(o))),{name:function(){return o},using_intl:e||void 0===e,needle:r,offsets:t()}}}).olson=i.olson||{},i.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},i.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},e.exports=i}(Sn);var Cn=Object.freeze({__proto__:null,TimezonePlugin:ke}),On={},xn={},En=Object.freeze({__proto__:null,EcommercePlugin:Ae,addItem:function(e,n){void 0===n&&(n=Object.keys(On)),n.forEach((function(n){xn[n]&&xn[n].items.push(e)}))},addTrans:function(e,n){void 0===n&&(n=Object.keys(On)),n.forEach((function(n){xn[n]&&(xn[n].transaction=e)}))},trackAddToCart:function(e,n){void 0===n&&(n=Object.keys(On)),Q(n,On,(function(n){var t=(n=n.core).track,o=P({event:{schema:"iglu:com.snowplowanalytics.snowplow/add_to_cart/jsonschema/1-0-0",data:S({sku:e.sku,quantity:e.quantity,name:e.name,category:e.category,unitPrice:e.unitPrice,currency:e.currency})}});t.call(n,o,e.context,e.timestamp)}))},trackRemoveFromCart:function(e,n){void 0===n&&(n=Object.keys(On)),Q(n,On,(function(n){var t=(n=n.core).track,o=P({event:{schema:"iglu:com.snowplowanalytics.snowplow/remove_from_cart/jsonschema/1-0-0",data:S({sku:e.sku,quantity:e.quantity,name:e.name,category:e.category,unitPrice:e.unitPrice,currency:e.currency})}});t.call(n,o,e.context,e.timestamp)}))},trackTrans:function(e){void 0===e&&(e=Object.keys(On)),Q(e,On,(function(e){var n=xn[e.id].transaction;if(n){var o=e.core,r=o.track,a=n.orderId,i=n.total,c=n.affiliation,s=n.tax,u=n.shipping,l=n.city,f=n.state,d=n.country,m=n.currency,p=t();p.add("e","tr"),p.add("tr_id",a),p.add("tr_af",c),p.add("tr_tt",i),p.add("tr_tx",s),p.add("tr_sh",u),p.add("tr_ci",l),p.add("tr_st",f),p.add("tr_co",d),p.add("tr_cu",m),r.call(o,p,n.context,n.timestamp)}for(n=0;n<xn[e.id].items.length;n++)o=xn[e.id].items[n],a=(r=e.core).track,i=o.orderId,c=o.sku,s=o.price,u=o.name,l=o.category,f=o.quantity,d=o.currency,(m=t()).add("e","ti"),m.add("ti_id",i),m.add("ti_sk",c),m.add("ti_nm",u),m.add("ti_ca",l),m.add("ti_pr",s),m.add("ti_qu",f),m.add("ti_cu",d),a.call(r,m,o.context,o.timestamp);xn[e.id]={items:[]}}))}}),In={},jn={},Nn=Object.freeze({__proto__:null,EnhancedEcommercePlugin:be,addEnhancedEcommerceActionContext:function(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(In));var t=e.id,o=e.affiliation,r=e.revenue,a=e.tax,i=e.shipping,c=e.coupon,s=e.list,u=e.step,l=e.option,f=e.currency;n.forEach((function(e){jn[e]&&jn[e].push({schema:"iglu:com.google.analytics.enhanced-ecommerce/actionFieldObject/jsonschema/1-0-0",data:{id:t,affiliation:o,revenue:U(r),tax:U(a),shipping:U(i),coupon:c,list:s,step:z(u),option:l,currency:f}})}))},addEnhancedEcommerceImpressionContext:function(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(In));var t=e.id,o=e.name,r=e.list,a=e.brand,i=e.category,c=e.variant,s=e.position,u=e.price,l=e.currency;n.forEach((function(e){jn[e]&&jn[e].push({schema:"iglu:com.google.analytics.enhanced-ecommerce/impressionFieldObject/jsonschema/1-0-0",data:{id:t,name:o,list:r,brand:a,category:i,variant:c,position:z(s),price:U(u),currency:l}})}))},addEnhancedEcommerceProductContext:function(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(In));var t=e.id,o=e.name,r=e.list,a=e.brand,i=e.category,c=e.variant,s=e.price,u=e.quantity,l=e.coupon,f=e.position,d=e.currency;n.forEach((function(e){jn[e]&&jn[e].push({schema:"iglu:com.google.analytics.enhanced-ecommerce/productFieldObject/jsonschema/1-0-0",data:{id:t,name:o,list:r,brand:a,category:i,variant:c,price:U(s),quantity:z(u),coupon:l,position:z(f),currency:d}})}))},addEnhancedEcommercePromoContext:function(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(In));var t=e.id,o=e.name,r=e.creative,a=e.position,i=e.currency;n.forEach((function(e){jn[e]&&jn[e].push({schema:"iglu:com.google.analytics.enhanced-ecommerce/promoFieldObject/jsonschema/1-0-0",data:{id:t,name:o,creative:r,position:a,currency:i}})}))},trackEnhancedEcommerceAction:function(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(In)),Q(n,In,(function(n){var t=jn[n.id].concat(e.context||[]);jn[n.id].length=0,n.core.track(P({event:{schema:"iglu:com.google.analytics.enhanced-ecommerce/action/jsonschema/1-0-0",data:{action:e.action}}}),t,e.timestamp)}))}}),Bn={},Dn=Object.freeze({__proto__:null,AdTrackingPlugin:_e,trackAdClick:function(e,n){void 0===n&&(n=Object.keys(Bn)),Q(n,Bn,(function(n){var t=(n=n.core).track,o={schema:"iglu:com.snowplowanalytics.snowplow/ad_click/jsonschema/1-0-0",data:S({targetUrl:e.targetUrl,clickId:e.clickId,costModel:e.costModel,cost:e.cost,bannerId:e.bannerId,zoneId:e.zoneId,impressionId:e.impressionId,advertiserId:e.advertiserId,campaignId:e.campaignId})};o=P({event:o}),t.call(n,o,e.context,e.timestamp)}))},trackAdConversion:function(e,n){void 0===n&&(n=Object.keys(Bn)),Q(n,Bn,(function(n){var t=(n=n.core).track,o={schema:"iglu:com.snowplowanalytics.snowplow/ad_conversion/jsonschema/1-0-0",data:S({conversionId:e.conversionId,costModel:e.costModel,cost:e.cost,category:e.category,action:e.action,property:e.property,initialValue:e.initialValue,advertiserId:e.advertiserId,campaignId:e.campaignId})};o=P({event:o}),t.call(n,o,e.context,e.timestamp)}))},trackAdImpression:function(e,n){void 0===n&&(n=Object.keys(Bn)),Q(n,Bn,(function(n){var t=(n=n.core).track,o={schema:"iglu:com.snowplowanalytics.snowplow/ad_impression/jsonschema/1-0-0",data:S({impressionId:e.impressionId,costModel:e.costModel,cost:e.cost,targetUrl:e.targetUrl,bannerId:e.bannerId,zoneId:e.zoneId,advertiserId:e.advertiserId,campaignId:e.campaignId})};o=P({event:o}),t.call(n,o,e.context,e.timestamp)}))}}),Ln={},Mn=Object.freeze({__proto__:null,SiteTrackingPlugin:Pe,trackSiteSearch:function(e,n){void 0===n&&(n=Object.keys(Ln)),Q(n,Ln,(function(n){var t=(n=n.core).track,o=P({event:{schema:"iglu:com.snowplowanalytics.snowplow/site_search/jsonschema/1-0-0",data:S({terms:e.terms,filters:e.filters,totalResults:e.totalResults,pageResults:e.pageResults})}});t.call(n,o,e.context,e.timestamp)}))},trackSocialInteraction:function(e,n){void 0===n&&(n=Object.keys(Ln)),Q(n,Ln,(function(n){var t=(n=n.core).track,o={schema:"iglu:com.snowplowanalytics.snowplow/social_interaction/jsonschema/1-0-0",data:S({action:e.action,network:e.network,target:e.target})};o=P({event:o}),t.call(n,o,e.context,e.timestamp)}))},trackTiming:function(e,n){void 0===n&&(n=Object.keys(Ln));var t=e.category,o=e.variable,r=e.timing,a=e.label,i=e.context,c=e.timestamp;Q(n,Ln,(function(e){e.core.track(P({event:{schema:"iglu:com.snowplowanalytics.snowplow/timing/jsonschema/1-0-0",data:{category:t,variable:o,timing:r,label:a}}}),i,c)}))}}),zn=window.GlobalSnowplowNamespace.shift(),Un=window[zn];Un.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){Ge.error(e+" failed",n)}else Ge.warn(e+" is not an available function")}function a(e){h=Te(Te({},h),e)}function i(t){if("string"!=typeof t[0]||"string"!=typeof t[1]||void 0!==t[2]&&"object"!=typeof t[2])Ge.error("newTracker failed",Error("Invalid parameters"));else{var o="".concat(n,"_").concat(t[0]),r=t[2],i=function(n){var t,o=null!==(t=null==n?void 0:n.contexts)&&void 0!==t?t:{},r=o.performanceTiming;t=o.gaCookies,n=o.geolocation,o.optimizelyExperiments,o.optimizelyStates,o.optimizelyVariations,o.optimizelyVisitor,o.optimizelyAudiences,o.optimizelyDimensions,o.optimizelySummary;var a=o.optimizelyXSummary;o=o.clientHints;var i=[];return r&&(r=e(rn,["PerformanceTimingPlugin"]),i.push([oe(),r])),a&&(r=e(on,["OptimizelyXPlugin"]),i.push([te(),r])),o&&(r=e(tn,["ClientHintsPlugin"]),i.push([ne("object"==typeof o&&o.includeHighEntropy),r])),t&&(r=e(gn,["GaCookiesPlugin"]),i.push([ce(),r])),r=e(fn,["ConsentPlugin"]),i.push([re(),r]),r=e(pn,["GeolocationPlugin"]),i.push([ae(n),r]),r=e(yn,["LinkClickTrackingPlugin"]),i.push([se(),r]),r=e(_n,["FormTrackingPlugin"]),i.push([he(),r]),r=e(Tn,["ErrorTrackingPlugin"]),i.push([ye(),r]),r=e(En,["EcommercePlugin"]),i.push([Ae(),r]),r=e(Nn,["EnhancedEcommercePlugin"]),i.push([be(),r]),r=e(Dn,["AdTrackingPlugin"]),i.push([_e(),r]),r=e(Mn,["SiteTrackingPlugin"]),i.push([Pe(),r]),r=e(Cn,["TimezonePlugin"]),i.push([ke(),r]),i}(r);(o=Z(o,t[0],"js-".concat(v),t[1],d,Te(Te({},r),{plugins:i.map((function(e){return e[0]}))})))?(m.push(o.id),i.forEach((function(e){a(e[1])}))):Ge.warn(t[0]+" already exists")}}function c(n,t){function o(e){Object.prototype.hasOwnProperty.call(p,e)&&(u.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 i;if("string"==typeof n[0]&&f(n[1])&&(void 0===n[2]||Array.isArray(n[2]))){var c=n[0],s=n[1],d=n[2];(null===(i=n[3])||void 0===i||i)&&(i=u.setTimeout((function(){o(c)}),5e3),p[c]={timeout:i}),(i=l.createElement("script")).setAttribute("src",c),i.setAttribute("async","1"),N(i,"error",(function(){o(c),Ge.warn("Failed to load plugin ".concat(s[0]," from ").concat(c))}),!0),N(i,"load",(function(){var n=s[1],r=u[s[0]];if(r&&"object"==typeof r){var i=r[n];n=e(r,["symbol"==typeof n?n:n+""]),h.addPlugin.apply(null,[{plugin:i.apply(null,d)},t]),a(n)}o(c)}),!0),l.head.appendChild(i)}else{if("object"==typeof n[0]&&"string"==typeof n[1]&&(void 0===n[2]||Array.isArray(n[2]))){var m=n[0],v=n[1];if(i=n[2],m)return n=m[v],m=e(m,["symbol"==typeof v?v:v+""]),h.addPlugin.apply(null,[{plugin:n.apply(null,i)},t]),void a(m)}Ge.warn("Failed to add Plugin: ".concat(n[1]))}}function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(t=0;t<e.length;t+=1){var a=e[t],s=Array.prototype.shift.call(a);if(O(s))try{for(var u={},l=0,f=$(m,Ze);l<f.length;l++){var d=f[l];u[d.id.replace("".concat(n,"_"),"")]=d}s.apply(u,a)}catch(e){Ge.error("Tracker callback failed",e)}finally{continue}s=(u=o(s))[0],u=u[1],"newTracker"===s?i(a):(u=u?u.map((function(e){return"".concat(n,"_").concat(e)})):m,"addPlugin"===s?c(a,u):(l=void 0,l=0<a.length?[a[0],u]:void 0!==h[s]&&2===h[s].length?[{},u]:[u],0<Object.keys(p).length?g.push([s,l]):r(s,l)))}}for(var u=window,l=document,d=ee(),m=[],p={},g=[],v="3.8.0",h=e(nn,["version"]),y=0;y<t.length;y++)s(t[y]);return{push:s}}(zn,Un.q)}();
|
|
//# sourceMappingURL=sp.js.map
|