(function(){function n(n){var r,i;if(n&&n.getElementsByTagName)for(r=n.getElementsByTagName("a"),i=0;i<r.length;i++)t(r[i])}function t(n){typeof n=="undefined"||!n.hasAttribute("target")||n.getAttribute("target")!="_blank"||!n.hasAttribute("href")||typeof n.getAttribute("href")=="undefined"||typeof n.getAttribute("href").startsWith=="undefined"||n.getAttribute("href").indexOf("javascript")>=0||n.getAttribute("href").indexOf("/rebates/welcome")>=0||e(n)||n.hasAttribute("class")&&n.getAttribute("class").indexOf("b_ignbt")>=0||n.hasAttribute("onclick")&&n.getAttribute("onclick").indexOf("return false;")>=0||f(n)}function r(n){return n.indexOf(".bing.com/aclick?ld=")>=0||n.indexOf(".bing.com/ac?ld=")>=0||n.indexOf(".bing.com/ck?ld=")>=0||n.indexOf(".bing.com/ck/a")>=0||n.indexOf(".bing.com/ack?ld=")>=0||n.indexOf(".bing.com/clk?ld=")>=0||n.indexOf(".bing.com/aclk?ld=")>=0||n.indexOf(".staging-bing-int.com/aclick?ld=")>=0||n.indexOf(".staging-bing-int.com/ac?ld=")>=0||n.indexOf(".staging-bing-int.com/ck?ld=")>=0||n.indexOf(".staging-bing-int.com/ack?ld=")>=0||n.indexOf(".staging-bing-int.com/clk?ld=")>=0||n.indexOf(".staging-bing-int.com/aclk?ld=")>=0||n.indexOf(".staging-bing-int.com/click?ld=")>=0||n.indexOf(".binginternal.com/aclick?ld=")>=0||n.indexOf(".binginternal.com/ac?ld=")>=0||n.indexOf(".binginternal.com/ck?ld=")>=0||n.indexOf(".binginternal.com/ack?ld=")>=0||n.indexOf(".binginternal.com/clk?ld=")>=0||n.indexOf(".binginternal.com/aclk?ld=")>=0||n.indexOf(".binginternal.com/click?ld=")>=0}function e(n){var t=n.getAttribute("href");return r(t)?(n.setAttribute("href",t+"&ntb=1"),!0):!1}function o(n){try{return decodeURIComponent(n)!=n}catch(t){return!0}}var f=function(n){sj_be(n,"click",function(n){var t,r,u;for(n.preventDefault(),t=sj_et(n);t!=null;){if(t.tagName.toLowerCase()=="a"){r=t.getAttribute("href");u=i(r);typeof ReactStopPropagation!="undefined"&&ReactStopPropagation(n);_w.open(u,"_blank");break}t=t.parentNode}})},i=function(n){var u,i,t;return r(n)?n:(u=/[^\x00-\xff]/,i=!1,!u.test(n)&&o(n)&&(n=btoa(n),i=!0),t="/newtabredir?url="+encodeURIComponent(n),i&&(t=t+"&be=1"),t)},u;if(_w.ntpUrl=i,n(_d),"MutationObserver"in window){function s(i){i.forEach(function(i){var f,u,r;if(i.type=="childList"&&i.addedNodes)for(f=i.addedNodes.length,u=0;u<f;u++)r=i.addedNodes[u],r&&(r.tagName=="A"?t(r):n(r))})}u=new MutationObserver(s);u.observe(_d,{subtree:!0,childList:!0})}})()