(function (w) { // Begin doc var is_dev = false; if ( false ) { is_dev = true; } var disable_sync = false; if ( true ) { disable_sync = true } var tip = "wKuk2v3vOfysHmEctN9hBCy6cyU1GXRMEdceHumtkvY" var userIdCookieValue = "s%3A0-f89251ed-2a14-5d7a-4557-faaaaae97afb.2kTRDczgAeZnFzzdu%2Fx%2BYHCADwL8H%2BpN4XIM7LQgI3Q" var userIdV2CookieValue = "s%3A-JJR7SoUXXpFV_qqqul6-8LEvgk.CMGlhX2jXQ7wmrriKWcOGwTtb3Dl8OL2QgrLdURC5wk" var userIdV3CookieValue = "s%3AAQAKIKdbz_oEPBQKbhLSle1qVw7VN8LOU0kBoZpz8Kk9QuHXEAEYAyCmm5a6BjABOgToLy5bQgSzIYVi.4pwIBYcSAOsFxh9a1AEMgQTLV1lsKoY3uMTS3SrZaX8" var campCookieName = "" var campCookieValue = "" var campaignCookieLiveDuration = 7776000 var userIdCookiesLiveDuration = 31536000 var accountID = "" var globals={load_num:0,init:!1,addr:is_dev?"http://127.0.0.1":"https://tags.srv.stackadapt.com",aid:"",impid:"",default_params:"",landing_page:"",secs_passed:0,total_secs_passed:0,hidden:!1,host:encodeURIComponent(window.location.protocol+"//"+window.location.host),sa_debug_key:"sa_debug"},maxScrollDepth=0;function calculateScrollDepth(){try{var e=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop||0;return maxScrollDepth=maxScrollDepth<e?e:maxScrollDepth}catch(e){return console.log(e),0}}var numClicks=0,numTaps=0,numSubmits=0,numBlur=0,numMouseMove=0,isDesktop=!0;try{document.addEventListener("click",function(e){numClicks++}),document.addEventListener("submit",function(e){numSubmits++}),window.addEventListener("blur",function(e){numBlur++}),document.addEventListener("mousemove",function(e){numMouseMove++}),"ontouchstart"in document.documentElement&&(isDesktop=!1,document.addEventListener("pointerup",function(e){numTaps++}))}catch(e){console.log(e)}function getInteractionParams(){return"&n_c="+numClicks+"&n_t="+numTaps+"&n_s="+numSubmits+"&n_b="+numBlur+"&n_m="+numMouseMove+"&is_d="+isDesktop+"&n_sd="+calculateScrollDepth()}var hidden="hidden",window_status="visible";function onhiddenchange(e){var o="visible",t="hidden",o={focus:o,focusin:o,pageshow:o,blur:t,focusout:t,pagehide:t};e=e||window.event,window_status=e.type in o?o[e.type]:this[hidden]?"hidden":"visible"}function isShopifySite(){try{if(window.Shopify)return"true";var o=document.getElementsByTagName("meta");for(let e=0;e<o.length;e++){if("shopify-digital-wallet"===o[e].getAttribute("name"))return"true";if(o[e].getAttribute("content")&&(o[e].getAttribute("content").includes("Shopify")||o[e].getAttribute("content").includes("shopify")))return"true"}if(0<document.querySelectorAll('[id^="shopify"]').length)return"true";var t=document.getElementsByTagName("script");for(let e=0;e<t.length;e++)if(t[e].src.includes("cdn.shopify.com"))return"true";var n=document.getElementsByTagName("img");for(let e=0;e<n.length;e++)if(n[e].src.includes("cdn.shopify.com"))return"true";return"false"}catch(e){return"false"}}hidden in document?document.addEventListener("visibilitychange",onhiddenchange):(hidden="mozHidden")in document?document.addEventListener("mozvisibilitychange",onhiddenchange):(hidden="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",onhiddenchange):(hidden="msHidden")in document?document.addEventListener("msvisibilitychange",onhiddenchange):"onfocusin"in document?document.onfocusin=document.onfocusout=onhiddenchange:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=onhiddenchange,void 0!==document[hidden]&&onhiddenchange({type:document[hidden]?"blur":"focus"});var Cookies=function(e,o,t){return 1===arguments.length?Cookies.get(e):Cookies.set(e,o,t)};function getCurrentReferrer(){try{if(document.referrer){var e=new URL(document.referrer);if(e.hostname)return e.hostname}return""}catch(e){return""}}function isExternalReferrer(e){try{return e&&""!=e?window.location.hostname!=e&&getRootDomain(window.location.hostname)!=getRootDomain(e):!1}catch(e){return console.log(e),!1}}function getRootDomain(o){try{var e=o.split(".").reverse();return 2<e.length&&(3==e[1].length||2==e[1].length)&&2==e[0].length?e[2]+"."+e[1]+"."+e[0]:2<=e.length?e[1]+"."+e[0]:o}catch(e){return console.log(e),o}}function getCurrentUTM(){try{var e=new URL(window.location.href).searchParams.get("utm_source");return e?e:""}catch(e){return""}}function getLastSource(){try{var e=Cookies.get("sa-u-source"),o=Cookies.get("sa-u-date"),t=(e&&""!=e&&o&&""!=o||"undefined"==typeof localStorage||(e=localStorage.getItem("sa-u-source"),o=localStorage.getItem("sa-u-date")),e&&o||(o=e=""),Cookies.get("sa-r-source")),n=Cookies.get("sa-r-date");return t&&""!=t&&n&&""!=n||"undefined"==typeof localStorage||(t=localStorage.getItem("sa-r-source"),n=localStorage.getItem("sa-r-date")),t||(n=t=""),"&l_src="+encodeURIComponent(t)+"&l_src_d="+encodeURIComponent(n)+"&u_src="+encodeURIComponent(e)+"&u_src_d="+encodeURIComponent(o)+"&shop="+isShopifySite()}catch(e){return""}}function storeCurrentSource(){var e=getCurrentUTM(),o=new Date;""!=e?("undefined"!=typeof localStorage&&(localStorage.setItem("sa-u-source",e),localStorage.setItem("sa-u-date",o.toISOString())),Cookies.set("sa-u-source",e,{expires:2592e3}),Cookies.set("sa-u-date",o.toISOString(),{expires:2592e3})):isExternalReferrer(e=getCurrentReferrer())&&("undefined"!=typeof localStorage&&(localStorage.setItem("sa-r-source",e),localStorage.setItem("sa-r-date",o.toISOString())),Cookies.set("sa-r-source",e,{expires:2592e3}),Cookies.set("sa-r-date",o.toISOString(),{expires:2592e3}))}Cookies._document=document,Cookies._navigator=navigator,Cookies.defaults={path:"/"},Cookies.get=function(e){return Cookies._cachedDocumentCookie!==Cookies._document.cookie&&Cookies._renewCache(),Cookies._cache[e]},Cookies.getSA=function(){var e,o=[];for(e in Cookies._cache)e.includes("sa-camp-")&&Cookies._cache[e].includes("campaign_id")?o.push(e):"sa-user-id"!==e&&"sa-user-id-v2"!==e&&"sa-user-id-v3"!==e||o.unshift(e);return o},Cookies.set=function(e,o,t){return(t=Cookies._getExtendedOptions(t)).expires=Cookies._getExpiresDate(void 0===o?-1:t.expires),Cookies._document.cookie=Cookies._generateCookieString(e,o,t),Cookies._cache[e]=o,Cookies},Cookies.expire=function(e,o){Cookies.set(e,void 0,o),Cookies._cache.delete(e)},Cookies.expireCampaignCookies=function(e){Cookies._cachedDocumentCookie!==Cookies._document.cookie&&Cookies._renewCache();var o,t=0;for(o in Cookies._cache)o.includes("sa-camp-")&&Cookies._cache[o].includes("campaign_id")&&t++,e<t&&Cookies.expire(o)},Cookies._getExtendedOptions=function(e){return{path:e&&e.path||Cookies.defaults.path,domain:e&&e.domain||Cookies.defaults.domain,expires:e&&e.expires||Cookies.defaults.expires,secure:!0}},Cookies._isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},Cookies._getExpiresDate=function(e,o){switch(o=o||new Date,typeof e){case"number":e=new Date(o.getTime()+1e3*e);break;case"string":e=new Date(e)}if(e&&!Cookies._isValidDate(e))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return e},Cookies._generateCookieString=function(e,o,t){e=(e=(e=e.replace(/[^#$&+\^`|]/g,encodeURIComponent)).replace(/\(/g,"%28").replace(/\)/g,"%29"))+"="+(o=(o+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent));return(e+=(t=t||{}).path?";path="+t.path:"")+(t.domain?";domain="+t.domain:"")+(t.expires?";expires="+t.expires.toUTCString():"")+(t.secure?";secure":"")},Cookies._getCookieObjectFromString=function(e){for(var o={},t=e?e.split("; "):[],n=0;n<t.length;n++){var r=Cookies._getKeyValuePairFromCookieString(t[n]);void 0===o[r.key]&&(o[r.key]=r.value)}return o},Cookies._getKeyValuePairFromCookieString=function(o){var t=(t=o.indexOf("="))<0?o.length:t;try{return{key:decodeURIComponent(o.substr(0,t)),value:decodeURIComponent(o.substr(t+1))}}catch(e){return{key:decodeURIComponent(o.substr(0,t)),value:o.substr(t+1)}}},Cookies._renewCache=function(){Cookies._cache=Cookies._getCookieObjectFromString(Cookies._document.cookie),Cookies._cachedDocumentCookie=Cookies._document.cookie},Cookies._renewCache();try{storeCurrentSource()}catch(e){}function currentLandingURL(){var e=getBasePageUrl(),o=e.split(/\?(.+)?/)[0],t=e.split(/\?(.+)?/)[1]||"prev_window_param=none";return[o=o.replace(/#/g,""),t=t.replace(/#/g,""),e]}function getBasePageUrl(){try{if(window.location.href&&0<window.location.href.indexOf("fls.doubleclick.net/")&&0<window.location.href.indexOf("~oref=")&&1<(oref_arr=window.location.href.split("~oref=")).length)return decodeURIComponent(oref_arr[1].split(";")[0])}catch(e){}var e=window.location.ancestorOrigins;if(e&&1<e.length){var o=e[e.length-1];if(o)return o}return window.self!==window.top&&window.document.referrer?window.document.referrer:e&&e[0]?e[0]:window.location.href}function currentLandingURLKeepGet(){return(window.self!==window.top?document.referrer:window.location.href).replace(/#/g,"")}function getTitle(){var e="";try{e=encodeURIComponent(document.title)}catch(e){}return e}function loadConv(e,o){var t=new Image,n=(res=currentLandingURL())[0];function r(){document.body.removeChild(t)}if(current_window_url_param=res[1],e){var a=sa_url+"/conv?cid="+e+"&url="+encodeURIComponent(n)+"&is_js=true&rnd="+Math.random()+"&t="+getTitle()+"&tip="+tip+getLastSource();if(o)for(var i in o){var s=o[i];0!=i.indexOf("sa_conv_data_")&&(i="sa_conv_data_"+i),a=(a+="&"+encodeURIComponent(i))+("="+encodeURIComponent(s))}current_window_url_param&&-1<current_window_url_param.indexOf(globals.sa_debug_key)&&console.log("SA/conv"),t.onerror=r,t.onload=r,t.src=a;try{var c=appendSaCookiesToUrl(a);c[1]?t.src=c[0]:t.src=appendSaLocalStorageToUrl(a)}catch(e){}return document.body.appendChild(t),!0}}function loadRt(e){return loadRtHelper(sa_url,e),!0}function loadRtHelper(e,o){var t=new Image,n=(res=currentLandingURL())[0];function r(){document.body.removeChild(t)}current_window_url_param=res[1],o&&(t.onerror=r,t.onload=r,t.src=e+"/rt?sid="+o+"&url="+encodeURIComponent(n)+"&t="+getTitle()+"&tip="+tip+getLastSource(),document.body.appendChild(t),current_window_url_param)&&-1<current_window_url_param.indexOf(globals.sa_debug_key)&&console.log("SA/RT")}function loadLal(e){return loadLalHelper(sa_url,e),!0}function loadLalHelper(e,o){var t=new Image,n=(res=currentLandingURL())[0];function r(){document.body.removeChild(t)}current_window_url_param=res[1],o&&(t.onerror=r,t.onload=r,t.src=e+"/lal?sid="+o+"&url="+encodeURIComponent(n)+"&t="+getTitle()+"&tip="+tip+getLastSource(),document.body.appendChild(t),current_window_url_param)&&-1<current_window_url_param.indexOf(globals.sa_debug_key)&&console.log("SA/LAL")}function loadDrt(e,o){return loadDrtHelper(sa_url,e,o),!0}function loadDrtHelper(e,o,t){var n=new Image,r=currentLandingURLKeepGet();function a(){document.body.removeChild(n)}t&&(n.onerror=a,n.onload=a,n.src=e+"/rt?drt=true&sid="+o+"&url="+encodeURIComponent(r)+"&t="+getTitle()+"&tip="+tip+"&args="+encodeURIComponent(JSON.stringify(t))+getLastSource(),document.body.appendChild(n))}function loadTs(e,o){var t,n,r,a,i;loadUniversalPixel(e,o),document.tsPixelLoaded||(document.tsPixelLoaded={}),document.tsPixelLoaded[e]||(document.tsPixelLoaded[e]=!0,t="",n="",o=!(r=""),a=Cookies.get("sa_aid_pv"),i=Cookies.get("sa_"+a+"_sid"),!a||t&&n&&(t!=a||n!=i)||(t=Cookies.get("sa_aid_pv"),n=Cookies.get("sa_"+t+"_sid"),r=Cookies.get("sa_"+t+"_adurl"),o=!0),(r=is_dev?"http://127.0.0.1":r)&&!is_dev&&(r=-1<r.indexOf("eu.srv.stackadapt.com")?"https://eu.srv.stackadapt.com":-1<r.indexOf("uw.srv.stackadapt.com")?"https://uw.srv.stackadapt.com":-1<r.indexOf("ap.srv.stackadapt.com")?"https://ap.srv.stackadapt.com":"https://east.srv.stackadapt.com"),document.referrer||(document.referrer=""),(res=currentLandingURL())[0],current_window_url_param=res[1],e=e.replace(/#/g,""),current_window_url_param&&-1<current_window_url_param.indexOf(globals.sa_debug_key)&&console.log("SA/TS"),setTimeout(function(){jsPing(e,t,n,!1)},1e4),setInterval(function(){globals.total_secs_passed++,60==globals.total_secs_passed&&jsPing(e,t,n,!0)},1e3),t&&n&&(globals.default_params="aid="+t+"&imp="+n,setInterval(function(){3600<globals.secs_passed||"visible"==window_status&&"hidden"!==document.visibilityState&&(globals.secs_passed++,makeCorsRequest(globals.addr+"/ifr_ts?"+globals.default_params+"&first=false&is_js=true&host="+globals.host+"&accid="+accountID+"&uid="+encodeURIComponent(e)+"&destination="+encodeURIComponent(r)+"&tip="+tip+getInteractionParams()+getLastSource()))},1e3),o?makeCorsRequest(globals.addr+"/ifr_pv?"+globals.default_params+"&is_js=true&host="+globals.host+"&accid="+accountID+"&uid="+encodeURIComponent(e)+"&destination="+encodeURIComponent(r)+getLastSource()):(Cookies.set("sa_aid_pv",t,{expires:3600}),Cookies.set("sa_"+t+"_sid",n,{expires:3600}),Cookies.set("sa_"+t+"_adurl",r,{expires:3600})),makeCorsRequest(globals.addr+"/ifr_ts?"+globals.default_params+"&first=true&is_js=true&host="+globals.host+"&accid="+accountID+"&uid="+encodeURIComponent(e)+"&destination="+encodeURIComponent(r)+"&tip="+tip+getLastSource())))}function loadUniversalPixel(e,o){if(e){var t="";if(o)for(var n in o)t=(t+="&"+encodeURIComponent("sa_conv_data_"+n))+"="+encodeURIComponent(o[n]);var r=currentLandingURL()[2],e=(is_dev?globals.addr:"https://tags.srv.stackadapt.com")+"/saq_pxl?uid="+e+"&is_js=true&landing_url="+encodeURIComponent(r)+"&t="+getTitle()+"&tip="+tip+"&host="+globals.host+t+getLastSource();try{var a=appendSaCookiesToUrl(e),e=a[1]?a[0]:appendSaLocalStorageToUrl(e)}catch(e){}createCORSRequest("GET",e,function(e){},function(e){})}}function loadSyncPixelHelper(r){return sync_pixel_map.forEach(function(e){if(!r[e.partner]){var o="";if("plain"==e.encoding?o="":"b64"==e.encoding&&(o="-JJR7SoUXXpFV_qqqul6-8LEvgk"),0<o.length)try{var t=new Image;function n(){t.parentNode===document.body&&document.body.removeChild(t)}t.onerror=n,t.onload=n,t.src=e.url+o,document.body.appendChild(t)}catch(e){console.log(e)}}}),!0}function setCampaignCookie(){Cookies.set(campCookieName,campCookieValue,{expires:campaignCookieLiveDuration})}function setUserIdCookie(){Cookies.set("sa-user-id",userIdCookieValue,{expires:userIdCookiesLiveDuration})}function setUserIdCookieV2(){Cookies.set("sa-user-id-v2",userIdV2CookieValue,{expires:userIdCookiesLiveDuration})}function setUserIdCookieV3(){Cookies.set("sa-user-id-v3",userIdV3CookieValue,{expires:userIdCookiesLiveDuration})}function appendSaCookiesToUrl(e){res=e,saCookies=Cookies.getSA();for(var o=!1,t=0;t<saCookies.length;t++){try{res+="&"+encodeURIComponent(saCookies[t])+"="+encodeURIComponent(Cookies.get(saCookies[t]))}catch(e){continue}o=!0}return[res,o]}function setCampaignLocalStorage(){var e,o;"undefined"!=typeof localStorage&&(e={campValue:campCookieValue,ttl:Math.floor(Date.now()/1e3)+campaignCookieLiveDuration},localStorage.setItem(campCookieName,JSON.stringify(e)),e=!0,e=(o=localStorage.getItem("sa-camp-list-localStorage"))!=campCookieName&&!o.includes(";"+campCookieName)&&e)&&(""!=o&&(o+=";"),o+=campCookieName,localStorage.setItem("sa-camp-list-localStorage",o))}function setUserIdsLocalStorage(){"undefined"!=typeof localStorage&&(localStorage.setItem("sa-user-id",userIdCookieValue),localStorage.setItem("sa-user-id-v2",userIdV2CookieValue))}function expireCampaignLocalStorage(){if("undefined"!=typeof localStorage){var e=localStorage.getItem("sa-camp-list-localStorage");if(""!==e){for(var o,t=e.split(";"),n="",r=0;r<t.length;r++){try{""!==(localStoredCamp=localStorage.getItem(t[r]))&&(o=JSON.parse(localStoredCamp))}catch(e){try{localStorage.removeItem(t[r])}catch(e){}continue}if(o.ttl>Math.floor(Date.now()/1e3))""!=n&&(n+=";"),n+=t[r];else try{localStorage.removeItem(t[r])}catch(e){}}n!=e&&localStorage.setItem("sa-camp-list-localStorage",n)}}}function appendSaLocalStorageToUrl(e){var o=e;if("undefined"!=typeof localStorage)try{userid=localStorage.getItem("sa-user-id"),useridv2=localStorage.getItem("sa-user-id-v2"),useridv3=localStorage.getItem("sa-user-id-v3"),""!=userid&&(o+="&"+encodeURIComponent("sa-user-id")+"="+encodeURIComponent(userid)),""!=useridv2&&(o+="&"+encodeURIComponent("sa-user-id-v2")+"="+encodeURIComponent(useridv2)),""!==useridv3&&(o+="&"+encodeURIComponent("sa-user-id-v3")+"="+encodeURIComponent(useridv3));var t=localStorage.getItem("sa-camp-list-localStorage");if(""==t)return o;for(var n,r=t.split(";"),a=0;a<r.length;a++){try{""!==(localStoredCamp=localStorage.getItem(r[a]))&&(n=JSON.parse(localStoredCamp))}catch(e){continue}""!=n.campValue&&(o+="&"+encodeURIComponent(r[a])+"="+encodeURIComponent(n.campValue))}}catch(e){}return o}function jsPing(e,o,t,n){var r=currentLandingURL()[0],a="https://tags.srv.stackadapt.com/js_tracking?url="+encodeURIComponent(r)+"&uid="+encodeURIComponent(e)+"&v=1&host="+globals.host+getLastSource();is_dev&&(a=globals.addr+"/js_tracking?url="+encodeURIComponent(r)+"&uid="+encodeURIComponent(e)+"&v=1&host="+globals.host+"&t="+getTitle()+getLastSource()+"&second_f="+n),o&&(a+="&aid="+o),t&&(a+="&imp="+t),makeCorsRequest(a)}function createCORSRequest(e,o,t,n){var r;try{r=new XMLHttpRequest}catch(e){}r&&"withCredentials"in r?(r.open(e,o,!0),r.withCredentials=!0):"undefined"!=typeof XDomainRequest?(r=new XDomainRequest).open(e,o):"undefined"!=typeof ActiveXObject?(r=new ActiveXObject("Microsoft.XMLHTTP")).open(e,o):r=null,r&&(r.onload=function(){t(r)},r.onerror=function(){n(r)},setTimeout(function(){r.send()},0))}function makeCorsRequest(e){createCORSRequest("GET",e,function(e){},function(e){})}function getCSSValue(){return new Promise(function(o){if(document.getElementById("sa-css"))return o(window.getComputedStyle(document.head).getPropertyValue("--sa-uid"));var e=document.createElement("link");e.id="sa-css",e.rel="stylesheet",e.type="text/css",e.href="https://tags.srv.stackadapt.com/sa.css",e.media="all",e.onload=function(){var e=window.getComputedStyle(document.head).getPropertyValue("--sa-uid");return o(e)},e.onerror=function(){return o("")},document.head.appendChild(e)})}function getImageValue(){return new Promise(function(t){return fetch("https://tags.srv.stackadapt.com/sa.jpeg",{cache:"force-cache"}).then(function(e){return e.blob()}).then(function(e){var o=new FileReader;o.onload=function(){var e=this.result,o=e.indexOf(","),e=e.substr(o+1),o=window.atob(e);return t(ascii_to_hexa(o))},o.readAsDataURL(e)}).catch(function(){return t("")})})}function ascii_to_hexa(e){for(var o=[],t=0,n=e.length;t<n;t++){var r=e.charCodeAt(t).toString(16);1===r.length&&(r="0"+r),o.push(r)}return o.join("")}function detectIE(){try{var e,o=window.navigator.userAgent,t=o.indexOf("MSIE ");if(0<t)return parseInt(o.substring(t+5,o.indexOf(".",t)),10);if(0<o.indexOf("Trident/"))return e=o.indexOf("rv:"),parseInt(o.substring(e+3,o.indexOf(".",e)),10);var n=o.indexOf("Edge/");if(0<n)return parseInt(o.substring(n+5,o.indexOf(".",n)),10)}catch(e){console.log(e.stack)}return!1}var _this=void 0;function _slicedToArray(e,o){return _arrayWithHoles(e)||_iterableToArrayLimit(e,o)||_unsupportedIterableToArray(e,o)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,o){var t;if(e)return"string"==typeof e?_arrayLikeToArray(e,o):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,o):void 0}function _arrayLikeToArray(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,n=new Array(o);t<o;t++)n[t]=e[t];return n}function _iterableToArrayLimit(e,o){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(t.push(i.value),!o||t.length!==o);n=!0);}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}return t}}function _arrayWithHoles(e){if(Array.isArray(e))return e}try{var sa_url="https://tags.srv.stackadapt.com",sync_pixel_map=[],sa_params=(is_dev&&(sa_url="http://127.0.0.1"),w.saq),bus=Array.prototype.slice,landing_url=currentLandingURL()[0],blacklisted_partners={};if(""!=campCookieName)try{Cookies.expireCampaignCookies(4),setCampaignCookie(),expireCampaignLocalStorage(),setCampaignLocalStorage()}catch(e){}if(""!=userIdCookieValue&&Cookies.get("sa-user-id")!=userIdCookieValue)try{setUserIdCookie(),setUserIdCookieV2(),setUserIdsLocalStorage()}catch(e){}if(""!==userIdV3CookieValue&&Cookies.get("sa-user-id-v3")!==userIdV3CookieValue)try{setUserIdCookieV3(),"undefined"!=typeof localStorage&&localStorage.setItem("sa-user-id-v3",userIdV3CookieValue)}catch(e){}disable_sync||loadSyncPixelHelper(blacklisted_partners),sa_params.callMethod=function(o){var t=bus.call(arguments),e=1===t.length&&"undefined"!=typeof i&&i.isArray(t[0]),o=(t=e?t[0]:t).shift();if("conv"!=o&&"ts"!=o)switch(o){case"rt":return loadRt.apply(this,t);case"drt":return loadDrt.apply(this,t);case"lal":return loadLal.apply(this,t);default:console.log("unknown function")}else{e=detectIE();if(!1===e||11<e)try{var n=new Promise(function(e){return setTimeout(e,500)}),r=Promise.all([getCSSValue(),getImageValue()]).then(function(e){var e=_slicedToArray(e,2),o=e[0],e=e[1];1<t.length?(t[1].css_value=o,t[1].image_value=e):t.push({css_value:o,image_value:e})}).catch(function(e){console.log(e.stack),makeCorsRequest("https://tags.srv.stackadapt.com/print_cookie?f=2&err="+e.message)});Promise.race([n,r]).then(function(){switch(o){case"conv":return loadConv.apply(_this,t);case"ts":return loadTs.apply(_this,t);default:console.log("unknown function")}})}catch(e){switch(o){case"conv":return loadConv.apply(this,t);case"ts":return loadTs.apply(this,t);default:console.log("unknown function")}console.log(e.stack),makeCorsRequest("https://tags.srv.stackadapt.com/print_cookie?f=3&err="+e.message)}else switch(o){case"conv":return loadConv.apply(this,t);case"ts":return loadTs.apply(this,t);default:console.log("unknown function")}}};for(var x=sa_params.queue.slice(),y=0,z=x.length;y<z;y++)sa_params.callMethod.apply(sa_params,x[y])}catch(e){console.log(e.stack),makeCorsRequest("https://tags.srv.stackadapt.com/print_cookie?f=1&err="+e.message)} })(window,document,location,history);