setCookie = function (name, value, expirationInDays = 0) { const date = new Date(); date.setDate(date.getDate() + expirationInDays); const expires = date.toUTCString(); document.cookie = `${name}=${value};expires=${expires};path=/`; }; window.setCookie = setCookie; ; function personalization_marketingcampaigns_paid() { const isMarketingCampaignPaid = sessionStorage.getItem( "_mwb_marketing_campaign_paid" ); const hasOCParam = sessionStorage.getItem("o_c"); if (!isMarketingCampaignPaid && hasOCParam) { sessionStorage.setItem("_mwb_marketing_campaign_paid", true); return true; } return isMarketingCampaignPaid; } ; const storeQueryStrings = () => { const queryStrings = window.location.search; if (queryStrings) { sessionStorage.setItem("_mwb_query_strings", queryStrings); } }; window.addEventListener("DOMContentLoaded", storeQueryStrings); ; !function(t){"use strict";function e(t,e){const n=document.createElement(t);return e&&n.setAttribute("class",e),n}t(document).ready(function(){t(document).on("click",".detection-column #pillar-page-sections li a",function(){const e=t(this),n=e.parents(".detection-columns").find(".detection-right-wrapper"),a=e.attr("href").split("#")[1],i=n.find('h3[id="'+a+'"]');return t("html").animate({scrollTop:i.offset().top-200},500),!1}),t(window).on("scroll",function(){const e=t(".detection-column #pillar-page-sections");e.find("li a").each(function(){if("#related-blog-content"!==t(this).attr("href")){const n=t(this).attr("href").split("#")[1];t('.detection-content h3[id="'+n+'"]').offset().top=0&&tparseInt(a.attr("data-max-page"))?a.remove():a.attr("data-next-page",i),n=!1}})}})})}(jQuery);; (()=>{"use strict";document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".mb-free-download-btn");e.forEach(e=>{e.setAttribute("href",function(){const e=window.global_variables?.user?.device;return e.isMac?window.global_variables?.site?.downloadLinks?.free.mac:e.isiPad||e.isiPhone?window.global_variables?.site?.downloadLinks?.free.ios:e.isChromeOS||e.isAndroid?window.global_variables?.site?.downloadLinks?.free.android:window.global_variables?.site?.downloadLinks?.free.windows}())}),document.getElementById("redirect-trigger-link")&&e[0]&&e[0]?.click()})})();;