function getQueryParameterByName(n){var r=window.location.href,i,t;return(n=n.replace(/[\[\]]/g,"\\$&"),i=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),t=i.exec(r),!t)?null:t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):""}var wcpbannerManager=function(){var t={uhf:"https://uhf.microsoft.com/en-US/shell/xml/MSDigitalBriefing?headerId=MSDigitalBriefingHeader&footerid=MSDigitalBriefingFooter&CookieComplianceEnabled=false"},i='<li id="c-uhff-footer_managecookies"><a class="c-uhff-link x-hidden-focus" href = "JavaScript:Void(0)"  >Manage Cookies<\/a><\/li >',r=function(){e();f();u()},u=function(){$(document).on("click","#c-uhff-footer_managecookies",function(){o()})},c=function(n,t){var i=setInterval(function(){window[n]&&(clearInterval(i),t())},200)},f=function(){window.siteConsent=null;WcpConsent.init("en-US","cookie-banner",function(n,t){if(n!=undefined)return error;siteConsent=t},s);h()},l=function(){},e=function(){var n=document.createElement("div");n.setAttribute("id","cookie-banner");n.setAttribute("style"," width: 100%;top: 0;background: #f2f2f2;");document.getElementsByTagName("nav")[0].insertBefore(n,document.getElementsByTagName("nav")[0].firstChild)},n=function(t,i,r){document.querySelector(t)!=null?r():setTimeout(function(){n(t,i,r)},i)},o=function(){siteConsent.manageConsent()},a=function(){document.getElementById("callback").hidden=!0},s=function(n){console.log("Callback from Consent Library",n)},v=function(){console.log("Consent given for all non-essential cookie categories.")},h=function(){$.ajax({url:t.uhf,success:function(t){var r;if(t!==undefined&&t!==null){var u=t.getElementsByTagName("footerHtml")[0].childNodes[1].data,f=t.getElementsByTagName("cssIncludes")[0].childNodes[1].data,e=t.getElementsByTagName("javascriptIncludes")[0].childNodes[1].data;$("head").append(f);$("body").append(e);r=document.createElement("div");r.style.cssText="display:none";r.setAttribute("ID","MYDIV");$(r).insertAfter($("#pageLoader"));$(r).append(u);setTimeout(function(){var t=$("#MYDIV").find("nav");t.length>0&&t[0].remove();$("#wcpConsentBannerCtrl").length>0&&n("#c-uhff-footer_privacyandcookies",500,function(){$(i).insertBefore($("#c-uhff-footer_privacyandcookies"))});$("#MYDIV").show()},500)}}})};return{init:r}}(),removeTopNav,ucParam,referrer,hostname;if(document.getElementsByTagName("nav").length>0&&wcpbannerManager.init(),removeTopNav=!1,ucParam=getQueryParameterByName("uc"),ucParam=="1"&&(removeTopNav=!0),removeTopNav||(referrer=document.referrer,referrer&&(hostname=new URL(referrer.toLowerCase()).hostname,hostname.endsWith(".microsoft.com")&&(removeTopNav=!0))),removeTopNav){const n=document.getElementById("cookieBanner-medius-header");n.remove()}