jQuery(o=>{const n=blnotifier_front_end.elements,e=window.location.search,i=new URLSearchParams(e);if(i.has("blink")){console.log("Looking for highlights; checking for broken links paused.");const e=i.get("blink");o.each(n,function(n,i){o(n).not("#wpadminbar "+n).each(function(n){const r=o(this).attr(i);if(void 0!==r&&r.includes(e))if(o(this).addClass("glowText"),o(this).is(":hidden")){var l="It looks like one or more of the links are hidden. To find them, try searching for it in your browser's Developer console.";console.log(l),alert(l)}else console.log("The element should glow yellow if it is visible on the page. If you do not see it on the page, then it is hidden somewhere. Check any JavaScript elements, too. You can try searching for it in your browser's Developer console.")})})}else{blnotifier_front_end.show_in_console&&console.log("%c Fetching links using the Broken Link Notifier Plugin... ","background: #2570AC; color: white");var r=[],l=[],s=[];o.each(n,function(n,e){o(n).each(function(n){const i=o(this).attr(e),t=o(this).parents("#wpadminbar").length,c=o(this).parents("header").length,a=o(this).parents("footer").length;void 0===i||t||(blnotifier_front_end.scan_header&&c?r.push(i):blnotifier_front_end.scan_footer&&a?s.push(i):c||a||l.push(i))})}),blnotifier_front_end.show_in_console&&(blnotifier_front_end.scan_header&&(console.log("%c Header links found: ","background: #222; color: #bada55"),console.log(r)),console.log("%c Content links found: ","background: #222; color: #bada55"),console.log(l),blnotifier_front_end.scan_header&&(console.log("%c Footer links found: ","background: #222; color: #bada55"),console.log(s)),console.log("%c Scanning for broken links... please wait. This may take a few minutes if there are a lot of links.","background: #2570AC; color: white"));var t=blnotifier_front_end.nonce;o.ajax({type:"post",dataType:"json",url:blnotifier_front_end.ajaxurl,data:{action:"blnotifier_blinks",nonce:t,scan_header:blnotifier_front_end.scan_header,scan_footer:blnotifier_front_end.scan_footer,source_url:window.location.href,header_links:r,content_links:l,footer_links:s},success:function(e){if("success"==e.type)blnotifier_front_end.show_in_console&&(console.log("%c Broken Link Scan Results: ","background: #2570AC; color: white"),e.notify?(console.log("%c Bad links found: ","background: #222; color: #bada55"),console.error(e.notify)):console.info("%c No broken links found. :)","background: #222; color: #bada55"),e.msg&&console.log(`%c ${e.msg} `,"background: #2570AC; color: white"),e.good_links&&(console.log("%c Good links found: ","background: #222; color: #bada55"),console.log(e.good_links)),console.log(`%c ${e.timing} `,"background: #2570AC; color: white")),i.has("blinks")&&"true"==i.get("blinks")&&o.each(e.notify,function(e,i){o.each(i,function(e,i){o.each(n,function(n,e){o(n).each(function(n){var r=o(this).attr(e);i.link==r&&o(this).addClass("glowText")})})})});else if("error"==e.type){var r=e.msg?e.msg:"Unknown error occurred.";console.error("Scan failed: "+r)}}})}});