mw.loader.implement("ext.articleFeedbackv5.startup",function(){jQuery(function($){var removeOld,load,statusChangeSuccess,statusCallback,enable=$.aftUtils.verify('article');removeOld=function(){var remove,interval,initTime=new Date();remove=function(){var $aft=$('#mw-articlefeedback'),timeDiff=((new Date()).getTime()-initTime.getTime())/1000;if($aft.length>0){$aft.remove();clearInterval(interval);}else if(timeDiff>5){clearInterval(interval);}};interval=setInterval(remove,100);};load=function(){removeOld();mw.loader.load('ext.articleFeedbackv5');if(navigator.appVersion.indexOf('MSIE 7')!==-1){mw.loader.load('ext.articleFeedbackv5.ie');}};statusChangeSuccess=function(){var display,interval;display=function(){var $form=$('#mw-articlefeedbackv5'),link;if($form.length===0){return;}$.articleFeedbackv5.highlightForm();link=mw.config.get('wgArticleFeedbackv5SpecialUrl')+'/'+mw.config.get('wgPageName');$('

').msg('articlefeedbackv5-enabled-form-message',link). appendTo($form);clearTimeout(interval);};interval=setInterval(display,100);};statusCallback=function(data,error){if(data!==false){$link.remove();if(!enable){load();}statusChangeSuccess();}else if(error){alert(error);}};if(enable){load();}var article=$.aftUtils.article();if(mw.config.get('wgArticleFeedbackv5EnableProtection',1)&&!$.aftUtils.whitelist(article)&&!$.aftUtils.blacklist(article)&&$.aftUtils.canSetStatus(true)){var userPermissions=mw.config.get('wgArticleFeedbackv5Permissions');var $link=$('
  • ');$link.find('a').text(mw.msg('articlefeedbackv5-toolbox-enable'));if('aft-administrator'in userPermissions&&userPermissions['aft-administrator']){var link=mw.config.get('wgScript')+'?title='+encodeURIComponent(mw.config.get('wgPageName'))+'&'+$.param({action:'protect'});$link.find('a').attr('href',link);}else{$link.find('a').on('click',function(e){e.preventDefault();$.aftUtils.setStatus(article.id,1,statusCallback);});}$('#p-tb'). find('ul').append($link);}});;},{},{"articlefeedbackv5-enabled-form-message":"Feedback has just been enabled. Reader posts will be visible [$1 at the feedback page].","articlefeedbackv5-toolbox-enable":"Enable feedback"});mw.loader.implement("ext.eventLogging",function(){(function(mw,$,console){'use strict';function ValidationError(message){this.message=message;}ValidationError.prototype=new Error();var self=mw.eventLog={schemas:{},warn:console&&$.isFunction(console.warn)?$.proxy(console.warn,console):mw.log,declareSchema:function(schemaName,meta){if(self.schemas.hasOwnProperty(schemaName)){self.warn('Clobbering existing "'+schemaName+'" schema');}self.schemas[schemaName]=$.extend(true,{revision:-1,schema:{properties:{}},defaults:{}},self.schemas[schemaName],meta);return self.schemas[schemaName];},isInstanceOf:function(value,type){if(value===undefined||value===null){return false;}switch(type){case'string':return typeof value==='string';case'timestamp':return value instanceof Date||( typeof value==='number'&&value>=0&&value%1===0);case'boolean':return typeof value==='boolean';case'integer':return typeof value==='number'&&value%1===0;case'number':return typeof value==='number'&&isFinite(value);default:return false;}},isValid:function(event,schemaName){try{self.assertValid(event,schemaName);return true;}catch(e){if(!(e instanceof ValidationError)){throw e;}self.warn('Validation error against schema '+schemaName+': '+e.message);return false;}},assertValid:function(event,schemaName){var schema=self.schemas[schemaName]||null,props=schema.schema.properties,prop;if($.isEmpty(props)){throw new ValidationError('Unknown schema: '+schemaName);}for(prop in event){if(props[prop]===undefined){throw new ValidationError('Unrecognized property: '+prop);}}$.each(props,function(prop,desc){var val=event[prop];if(val===undefined){if(desc.required){throw new ValidationError('Missing property: '+prop);}return true;}if(!(self.isInstanceOf(val,desc.type))){throw new ValidationError( 'Wrong type for property: '+prop+' '+val);}if(desc['enum']&&$.inArray(val,desc['enum'])===-1){throw new ValidationError('Value "'+val+'" for property: '+prop+' not in enum '+$.toJSON(desc['enum']));}});return true;},setDefaults:function(schemaName,schemaDefaults){var schema=self.schemas[schemaName];if(schema===undefined){self.warn('Setting defaults on unknown schema "'+schemaName+'"');schema=self.declareSchema(schemaName);}return $.extend(true,schema.defaults,schemaDefaults);},prepare:function(schemaName,event){var prop,schema=self.schemas[schemaName];if(schema===undefined){self.warn('Got event with unknown schema "'+schemaName+'"');schema=self.declareSchema(schemaName);}event=$.extend(true,{},schema.defaults,event);for(prop in event){if(typeof event[prop]==='function'){event[prop]=event[prop].call(event);}}return{event:event,clientValidated:self.isValid(event,schemaName),revision:schema.revision,schema:schemaName,webHost:window.location.hostname,wiki:mw.config.get('wgDBname')};}, dispatch:function(data){var beacon=document.createElement('img'),baseUri=mw.config.get('wgEventLoggingBaseUri'),dfd=$.Deferred();if(!baseUri){dfd.rejectWith(data,[data]);return dfd.promise();}$(beacon).on('error',function(){dfd.resolveWith(data,[data]);});beacon.src=baseUri+'?'+encodeURIComponent($.toJSON(data))+';';return dfd.promise();},logEvent:function(schemaName,eventInstance){return self.dispatch(self.prepare(schemaName,eventInstance));}};self.setSchema=self.declareSchema;if(!mw.config.get('wgEventLoggingBaseUri')){self.warn('"$wgEventLoggingBaseUri" is not set.');}}(mediaWiki,jQuery,window.console));;},{},{});mw.loader.implement("ext.navigationTiming",function(){(function(mw,$){'use strict';var timing=window.performance?performance.timing:null;function inSample(){var factor=mw.config.get('wgNavigationTimingSamplingFactor');if(!$.isNumeric(factor)||factor<1){return false;}return Math.floor(Math.random()*factor)===0;}function isCompliant(){var attr,current,last=0,order=[ 'loadEventEnd','loadEventStart','domContentLoadedEventEnd','domContentLoadedEventStart','domInteractive','responseEnd','responseStart','requestStart','connectEnd','connectStart'];if(!timing){return false;}if(/Firefox\/[78]/.test(navigator.userAgent)){return false;}while((attr=order.pop())!==undefined){current=timing[attr];if(current<0||current0){timingData[marker]=measure;}});if(timing.domainLookupStart){timingData.dnsLookup=timing.domainLookupEnd-timing.domainLookupStart;}if(timing.redirectStart){timingData.redirectCount=performance.navigation.redirectCount;timingData.redirecting=timing.redirectEnd-timing .redirectStart;}return timingData;}function emitTiming(){var mediaWikiLoadEnd=mw.now?mw.now():new Date().getTime(),event={userAgent:navigator.userAgent,isHttps:location.protocol==='https:',isAnon:mw.config.get('wgUserId')===null},page={pageId:mw.config.get('wgArticleId'),revId:mw.config.get('wgCurRevisionId'),action:mw.config.get('wgAction')};if(window.mediaWikiLoadStart){event.mediaWikiLoadComplete=mediaWikiLoadEnd-mediaWikiLoadStart;}if($.isPlainObject(window.Geo)&&typeof Geo.country==='string'){event.originCountry=Geo.country;}if(page.revId){$.extend(event,page);}if(mw.mobileFrontend&&mw.config.exists('wgMFMode')){event.mobileMode=mw.config.get('wgMFMode');}if(isCompliant()&&performance.navigation.type===0){$.extend(event,getNavTiming());}mw.eventLog.logEvent('NavigationTiming',event);}if(inSample()){$(window).load(function(){setTimeout(emitTiming,0);});}}(mediaWiki,jQuery));;},{},{});mw.loader.implement("ext.gadget.DRN-wizard",function(){if(mw.config.get('wgPageName')=== 'Wikipedia:Dispute_resolution_noticeboard/request'){importScript('MediaWiki:Gadget-DRN-wizard.js');};},{},{});mw.loader.implement("ext.gadget.ReferenceTooltips",function(){window.pg||$(document).ready(function($){if(wgCanonicalNamespace===''||wgCanonicalNamespace==='Project'||wgCanonicalNamespace==='Help'){function toggleRT(o){mw.loader.using("jquery.cookie",function(){$.cookie("RTsettings",o+"|"+settings[1]+"|"+settings[2],{path:"/",expires:90});location.reload();})}var settings=document.cookie.split("RTsettings=")[1];settings=settings?settings.split(";")[0].split("%7C"):[1,200,+("ontouchstart"in document.documentElement)];if(settings[0]==0){var footer=$("#footer-places, #f-list");if(footer.length===0){footer=$("#footer li").parent();}footer.append($("
  • ").append($("").text("Enable Reference Tooltips").attr("href","javascript:(function(){})()").click(function(){toggleRT(1)})));return;}var isTouchscreen=+settings[2],timerLength=isTouchscreen?0:+settings[1],settingsMenu;$( ".reference").each(function(){var tooltipNode,hideTimer,showTimer,checkFlip=false;function findRef(h){h=h.firstChild.getAttribute("href");h=h&&h.split("#");h=h&&h[1];h=h&&document.getElementById(h);h=h&&h.nodeName=="LI"&&h;return h;}function hide(refLink){if(tooltipNode&&tooltipNode.parentNode==document.body){hideTimer=setTimeout(function(){$(tooltipNode).animate({opacity:0},100,function(){document.body.removeChild(tooltipNode)})},isTouchscreen?16:100)}else{var h=findRef(refLink);h&&(h.style.border="");}}function show(){if(!tooltipNode.parentNode||tooltipNode.parentNode.nodeType===11){document.body.appendChild(tooltipNode);checkFlip=true;}$(tooltipNode).stop().animate({opacity:1},100) clearTimeout(hideTimer);}function openSettingsMenu(){if(settingsMenu){settingsMenu.dialog("open");}else{settingsMenu=$("
    ").append($("