function getI18nMessage(a){return{message:stringBundle.GetStringFromName(a)}}function loadI18nStrings(){for(var a=document.querySelectorAll("[class^='i18n_']"),b=0;b<a.length;b++){var c=a[b],d=JSON.parse("["+c.textContent+"]");0==d.length&&(d=null);var e=c.className;e instanceof SVGAnimatedString&&(e=e.animVal);var f=e.split(/\s/)[0].substring(5);i18n.setElementText(c,f,d)}}function i18n_timeDateStrings(a){var b=new Date(a),c=b.toLocaleTimeString(),d=new Date;return b.toDateString()==d.toDateString()?[c]:[c,b.toLocaleDateString()]}var i18n;if("undefined"!=typeof chrome)i18n=chrome.i18n;else{var pageName=location.pathname.replace(/.*\//,"").replace(/\..*?$/,""),stringBundle=Services.strings.createBundle("chrome://adblockplus/locale/"+pageName+".properties?"+Math.random());i18n=function(){function a(a,b){var c=a.message,d=a.placeholders;if(!b||!d)return c;for(var e in d){var f=d[e].content;if(f){var g=parseInt(f.slice(1),10);if(!isNaN(g)){var h=b[g-1];"undefined"!=typeof h&&(c=c.split("$"+e+"$").join(h))}}}return c}return{getMessage:function(b,c){try{var d=getI18nMessage(b);return a(d,c)}catch(e){return Cu.reportError(e),"Missing translation: "+b}}}}()}i18n.setElementText=function(a,b,c){function d(a,b){var c=/^(.*?)<(a|strong)>(.*?)<\/\2>(.*)$/.exec(a);if(c){d(c[1],b);var e=document.createElement(c[2]);d(c[3],e),b.appendChild(e),d(c[4],b)}else b.appendChild(document.createTextNode(a))}for(;a.lastChild;)a.removeChild(a.lastChild);d(i18n.getMessage(b,c),a)},window.addEventListener("DOMContentLoaded",loadI18nStrings,!0);