CentralNotice failing in older browsers due use of ECMAScript 6 syntax
Closed, ResolvedPublic1 Story Points

Description

We got a report of permanent JS problems on IE 11 on ro.wp [1], which in theory [2] is still supported. See comment below for details on the console output. This seems to be different from the wikidata issue reported at [3] (at least I get a different error)

[1] https://ro.wikipedia.org/wiki/Wikipedia:Cafenea#Probleme_cu_interfa.C8.9Ba
[2] https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix
[3] https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#A_bug.3F

There are a very large number of changes, so older changes are hidden. Show Older Changes

I can reproduce.

SCRIPT1003: Expected ':'
File: load.php, Line: 27, Column: 779

https://ro.wikipedia.org/w/load.php?debug=false&lang=ro&modules=Spinner%7Cext.centralNotice.bannerController%2CbannerHistoryLogger%2CchoiceData%2Cdisplay%2CgeoIP%2CimpressionDiet%2CkvStore%2CkvStoreMaintenance%2ClargeBannerLimit%2ClegacySupport%2CstartUp%7Cext.centralauth.centralautologin%7Cext.uls.init%2Cinterface%2Cpreferences%2Cwebfonts%7Cext.visualEditor.desktopArticleTarget.init%7Cext.visualEditor.supportCheck%2Ctrack%2Cve%7Cjquery.byteLength%2Ccookie%2CembedPlayer%2CloadingSpinner%2CmwEmbedUtil%2CtabIndex%2Cthrottle-debounce%2CtriggerQueueCallback%7Cjquery.uls.data%7Cmediawiki.Title%2CUri%2Capi%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2Ctemplate%2Cuser%7Cmediawiki.action.view.postEdit%7Cmediawiki.api.options%2Cuser%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.startup%7Cmediawiki.template.regexp%7Cmw.EmbedPlayer.loader%7Cmw.MediaWikiPlayer.loader%7Cmw.MwEmbedSupport%2CPopUpMediaTransform%7Cmw.MwEmbedSupport.style%7Cmw.PopUpMediaTransform.styles%7Cmw.TimedText.loader%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=967af53c60d4

1​mw.loader.implement("Spinner",function($,jQuery,require,module){(function(window,document,undefined){var prefixes=['webkit','Moz','ms','O'],animations={},useCssAnimations;function createEl(tag,prop){var el=document.createElement(tag||'div'),n;for(n in prop){el[n]=prop[n];}return el;}function ins(parent,child1,child2){if(child2&&!child2.parentNode)ins(parent,child2);parent.insertBefore(child1,child2||null);return parent;}function addAnimation(alpha,trail,i,lines){var name=['opacity',trail,~~(alpha*100),i,lines].join('-'),start=0.01+i/lines*100,z=Math.max(1-(1-alpha)/trail*(100-start),alpha),prefix=useCssAnimations.substring(0,useCssAnimations.indexOf('Animation')).toLowerCase(),pre=prefix&&'-'+prefix+'-'||'';if(!animations[name]){mw.util.addCSS('@'+pre+'keyframes '+name+'{'+'0%{opacity:'+z+'}'+start+'%{opacity:'+alpha+'}'+(start+0.01)+'%{opacity:1}'+(start+trail)%100+'%{opacity:'+alpha+'}'+'100%{opacity:'+z+'}'+'}');animations[name]=1;}return name;}function vendor(el,prop){var s=el.
2​style,pp,i;if(s[prop]!==undefined)return prop;prop=prop.charAt(0).toUpperCase()+prop.slice(1);for(i=0;i<prefixes.length;i++){pp=prefixes[i]+prop;if(s[pp]!==undefined)return pp;}}function css(el,prop){for(var n in prop){el.style[vendor(el,n)||n]=prop[n];}return el;}function defaults(obj,def){for(var n in def){if(obj[n]===undefined)obj[n]=def[n];}return obj;}function pos(el){var o={x:el.offsetLeft,y:el.offsetTop};while((el=el.offsetParent)){o.x+=el.offsetLeft;o.y+=el.offsetTop;}return o;}var Spinner=function Spinner(o){this.opts=defaults(o||{},{lines:12,length:7,width:5,radius:10,color:'#000',speed:1,trail:100,opacity:1/4});},proto=Spinner.prototype={spin:function(target){var self=this,el=self.el=css(createEl(),{position:'relative'}),ep,tp;if(target){tp=pos(ins(target,el,target.firstChild));ep=pos(el);css(el,{left:(target.offsetWidth>>1)-ep.x+tp.x+'px',top:(target.offsetHeight>>1)-ep.y+tp.y+'px'});}self.lines(el,self.opts);if(!useCssAnimations){var o=self.opts,i=0,f=20/o.speed,ostep=(1-o
3​.opacity)/(f*o.trail/100),astep=f/o.lines;(function anim(){i++;for(var s=o.lines;s;s--){var alpha=Math.max(1-(i+s*astep)%f*ostep,o.opacity);self.opacity(el,o.lines-s,alpha,o);}self.timeout=self.el&&setTimeout(anim,50);})();}return self;},stop:function(){var self=this,el=self.el;clearTimeout(self.timeout);if(el&&el.parentNode)el.parentNode.removeChild(el);self.el=undefined;return self;}};proto.lines=function(el,o){var i=0,seg;function fill(color,shadow){return css(createEl(),{position:'absolute',width:(o.length+o.width)+'px',height:o.width+'px',background:color,boxShadow:shadow,transformOrigin:'left',transform:'rotate('+~~(360/o.lines*i)+'deg) translate('+o.radius+'px'+',0)',borderRadius:(o.width>>1)+'px'});}for(;i<o.lines;i++){seg=css(createEl(),{position:'absolute',top:1+~(o.width/2)+'px',transform:'translate3d(0,0,0)',opacity:o.opacity,animation:useCssAnimations&&addAnimation(o.opacity,o.trail,i,o.lines)+' '+1/o.speed+'s linear infinite'});if(o.shadow)ins(seg,css(fill('#000',
4​'0 0 4px '+'#000'),{top:2+'px'}));ins(el,ins(seg,fill(o.color,'0 0 1px rgba(0,0,0,.1)')));}return el;};proto.opacity=function(el,i,val){el.childNodes[i].style.opacity=val;};(function(){var s=css(createEl('group'),{behavior:'url(#default#VML)'}),i;if(!vendor(s,'transform')&&s.adj){for(i=4;i--;){mw.util.addCSS(['group','roundrect','fill','stroke'][i]+' {'+'behavior:url(#default#VML)'+'}');}proto.lines=function(el,o){var r=o.length+o.width,s=2*r;function grp(){return css(createEl('group',{coordsize:s+' '+s,coordorigin:-r+' '+-r}),{width:s,height:s});}var g=grp(),margin=~(o.length+o.radius+o.width)+'px',i;function seg(i,dx,filter){ins(g,ins(css(grp(),{rotation:360/o.lines*i+'deg',left:~~dx}),ins(css(createEl('roundrect',{arcsize:1}),{width:r,height:o.width,left:o.radius,top:-o.width>>1,filter:filter}),createEl('fill',{color:o.color,opacity:o.opacity}),createEl('stroke',{opacity:0}))));}if(o.shadow){for(i=1;i<=o.lines;i++){seg(i,-2,
5​'progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)');}}for(i=1;i<=o.lines;i++){seg(i);}return ins(css(el,{margin:margin+' 0 0 '+margin}),g);};proto.opacity=function(el,i,val,o){o=o.shadow&&o.lines||0;el.firstChild.childNodes[i+o].firstChild.firstChild.opacity=val;};}else{useCssAnimations=vendor(s,'animation');}})();window.Spinner=Spinner;})(window,document);});mw.loader.implement("ext.centralNotice.bannerController",function($,jQuery,require,module){});mw.loader.implement("ext.centralNotice.bannerHistoryLogger",function($,jQuery,require,module){(function($,mw){var cn=mw.centralNotice,bhLogger,mixin=new cn.Mixin('bannerHistoryLogger'),doNotTrackEnabled=/1|yes/.test(navigator.doNotTrack),waitLogNoSendBeacon,now=Math.round((new Date()).getTime()/1000),log,readyToLogDeferredObj=$.Deferred(),logSent=!1,inSample,BANNER_HISTORY_KV_STORE_KEY='banner_history',BANNER_HISTORY_KV_STORE_TTL=365,BANNER_HISTORY_LOG_ENTRY_VERSION=1,EVENT_LOGGING_SCHEMA='CentralNoticeBannerHistory',TIMESTAMP_RANDOM_SHIFT_MAX=60;function loadLog(){log=cn.kvStore.getItem(BANNER_HISTORY_KV_STORE_KEY,cn.kvStore.contexts.GLOBAL);if(!log){log=[];}}function makeLogEntry(){var data=cn.data,randomTimeShift=Math.round(Math.random()*TIMESTAMP_RANDOM_SHIFT_MAX)-(TIMESTAMP_RANDOM_SHIFT_MAX/2),time=now+randomTimeShift,logEntry={version:BANNER_HISTORY_LOG_ENTRY_VERSION,language:data.uselang,country:data.country,isAnon:data.anonymous,campaign:data.campaign,campaignCategory:data.
6​campaignCategory,bucket:data.bucket,time:time,status:data.status,statusCode:data.statusCode,bannersNotGuaranteedToDisplay:data.bannersNotGuaranteedToDisplay?!0:false};if(data.banner){logEntry.banner=data.banner;}if(data.bannerCanceledReason){logEntry.bannerCanceledReason=data.bannerCanceledReason;}if(data.bannerLoadedButHiddenReason){logEntry.bannerLoadedButHiddenReason=data.bannerLoadedButHiddenReason;}return logEntry;}function purgeOldLogEntries(maxEntryAge,maxEntries){var i=0,cutoff=now-maxEntryAge*86400;if(log.length>maxEntries){log=log.slice(0-maxEntries);}while(i<log.length&&log[i].time<cutoff){i++;}log=log.slice(i);}function storeLog(){cn.kvStore.setItem(BANNER_HISTORY_KV_STORE_KEY,log,cn.kvStore.contexts.GLOBAL,BANNER_HISTORY_KV_STORE_TTL);}function makeEventLoggingData(rate){var elData={},kvError=cn.kvStore.getError(),i,logEntry,elLogEntry;elData.i=bhLogger.id;if(rate){elData.r=rate;}if(kvError){elData.e=kvError.message;return elData;}elData.n=log.length;elData.l=[];i=log.
7​length-1;while(i>=0){logEntry=log[i];elLogEntry=[logEntry.banner||'',logEntry.campaign,logEntry.time,logEntry.statusCode];elData.l.unshift(elLogEntry.join('|'));if(!checkEventLoggingURLSize(elData)){elData.l.shift();break;}i--;}return elData;}function sendLog(elData){var deferred=$.Deferred(),elPromise;if(navigator.sendBeacon){elPromise=mw.eventLog.logEvent(EVENT_LOGGING_SCHEMA,elData);}else{setTimeout(function(){deferred.reject();},waitLogNoSendBeacon);elPromise=$.ajax({url:makeEventLoggingURL(elData),timeout:waitLogNoSendBeacon,method:'POST'});}elPromise.then(function(){deferred.resolve();},function(){deferred.reject();});return deferred.promise();}function checkEventLoggingURLSize(elData){return(makeEventLoggingURL(elData).length<=mw.eventLog.maxUrlSize);}function makeEventLoggingURL(elData){return mw.eventLog.makeBeaconUrl({event:elData,revision:14321636,schema:EVENT_LOGGING_SCHEMA,webHost:location.hostname,wiki:mw.config.get('wgDBname')});}mixin.setPostBannerHandler(function(
8​mixinParams){waitLogNoSendBeacon=mixinParams.waitLogNoSendBeacon;cn.doIdleWork(function(){if(!cn.kvStore.isAvailable()){cn.kvStore.setNotAvailableError();}else{loadLog();if(!doNotTrackEnabled){log.push(makeLogEntry());}purgeOldLogEntries(mixinParams.maxEntryAge,mixinParams.maxEntries);storeLog();}if(doNotTrackEnabled){return;}mw.loader.using(['ext.eventLogging','mediawiki.util','mediawiki.user','schema.'+EVENT_LOGGING_SCHEMA]).done(function(){bhLogger.id=mw.user.generateRandomSessionId();var rateParam=mw.util.getParamValue('bannerHistoryLogRate'),rate=rateParam!==null?parseFloat(rateParam):mixinParams.rate;if(Math.random()<rate){sendLog(makeEventLoggingData(rate)).always(function(){inSample=!0;logSent=!0;readyToLogDeferredObj.resolve();});}else{readyToLogDeferredObj.resolve();}});});});cn.registerCampaignMixin(mixin);cn.bannerHistoryLogger=bhLogger={id:null,ensureLogSent:function(){var deferred=$.Deferred();if(doNotTrackEnabled){deferred.resolve();return deferred.promise();}
9​readyToLogDeferredObj.done(function(){if(logSent){deferred.resolve();}else{sendLog(makeEventLoggingData()).then(function(){deferred.resolve();},function(){deferred.reject();});}});return deferred.promise();}};})(jQuery,mediaWiki);});mw.loader.implement("ext.centralNotice.choiceData",function($,jQuery,require,module){mw.centralNotice.choiceData=[{"name":"C1516_enroRO_dsk_FR","start":1462294800,"end":1464714000,"preferred":2,"throttle":100,"bucket_count":4,"geotargeted":!0,"banners":[{"name":"B1516_0510_mlROLVSK_dsk_p2_sm_dsn_cnt","bucket":2,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["desktop"]},{"name":"B1516_0510_mlROLVSK_dsk_p2_sm_dsn_rnd","bucket":3,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["desktop"]},{"name":"B1516_0525_mlROLVSK_dsk_p1_lg_frm_cnt","bucket":1,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["desktop"]},{"name":"B1516_0525_mlROLVSK_dsk_p1_lg_frm_mob","bucket":0,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["desktop"]}],"countries":["RO"],"mixins":{"bannerHistoryLogger":{"maxEntries":30,"maxEntryAge":30,"rate"
10​:0.01,"waitLogNoSendBeacon":200},"impressionDiet":{"cookieName":"bannercount_fundraiser_2016","maximumSeen":3,"restartCycleDelay":2592000,"skipInitial":0},"largeBannerLimit":{"days":250,"identifier":"centralnotice-frbanner-seen-fullscreen","randomize":!0},"legacySupport":{"bannersNotGuaranteedToDisplay":!0,"setSRISampleRate":!0,"sriSampleRate":1}}},{"name":"C1516_mlLVROSK_ipd_FR","start":1462978800,"end":1464714000,"preferred":2,"throttle":100,"bucket_count":4,"geotargeted":!0,"banners":[{"name":"B1516_0511_mlLVROSK_ipd_p1_lg_dsn_cnt","bucket":0,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["ipad"]},{"name":"B1516_0511_mlLVROSK_ipd_p1_lg_dsn_fwb","bucket":1,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["ipad"]},{"name":"B1516_0511_mlLVROSK_ipd_p2_sm_twn_1","bucket":2,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["ipad"]},{"name":
11​"B1516_0511_mlLVROSK_ipd_p2_sm_twn_2","bucket":3,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["ipad"]}],"countries":["LV","RO","SK"],"mixins":{"bannerHistoryLogger":{"maxEntries":30,"maxEntryAge":30,"rate":0.01,"waitLogNoSendBeacon":200},"impressionDiet":{"cookieName":"bannercount_fundraiser_2016","maximumSeen":3,"restartCycleDelay":2592000,"skipInitial":0},"largeBannerLimit":{"days":250,"identifier":"centralnotice-frbanner-seen-fullscreen","randomize":!0},"legacySupport":{"bannersNotGuaranteedToDisplay":!0,"setSRISampleRate":!0,"sriSampleRate":1}}},{"name":"C1516_mlLVROSK_mob_FR","start":1462978800,"end":1464714000,"preferred":2,"throttle":100,"bucket_count":4,"geotargeted":!0,"banners":[{"name":"B1516_0511_mlLVROSK_mob_p1_lg_dsn_cnt","bucket":0,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["android","iphone"]},{"name":"B1516_0511_mlLVROSK_mob_p1_lg_dsn_fwb","bucket":1,"weight":25,
12​"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["android","iphone"]},{"name":"B1516_0511_mlLVROSK_mob_p2_sm_twn_1","bucket":2,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["android","iphone"]},{"name":"B1516_0511_mlLVROSK_mob_p2_sm_twn_2","bucket":3,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["android","iphone"]}],"countries":["LV","RO","SK"],"mixins":{"bannerHistoryLogger":{"maxEntries":30,"maxEntryAge":30,"rate":0.01,"waitLogNoSendBeacon":200},"impressionDiet":{"cookieName":"bannercount_fundraiser_2016","maximumSeen":3,"restartCycleDelay":2592000,"skipInitial":0},"largeBannerLimit":{"days":250,"identifier":"centralnotice-frbanner-seen-fullscreen","randomize":!0},"legacySupport":{"bannersNotGuaranteedToDisplay":!0,"setSRISampleRate":!0,"sriSampleRate":1}}},{"name":"C1516_mlWW_dsk_lw_FR","start":1446649200,"end":1467331200,"preferred":0,"throttle":20,
13​"bucket_count":2,"geotargeted":!0,"banners":[{"name":"B1516_0519_enmlWW_dsk_lw_sm_dsn_cnt","bucket":0,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["desktop"]},{"name":"B1516_0519_enmlWW_dsk_lw_sm_dsn_nqt","bucket":1,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["desktop"]}],"countries":["AT","BE","DK","ES","HK","HU","IT","JP","LU","LV","MY","NL","NO","PT","RO","SE","SK","UA","ZA"],"mixins":{"bannerHistoryLogger":{"maxEntries":30,"maxEntryAge":365,"rate":0.01,"waitLogNoSendBeacon":200},"impressionDiet":{"cookieName":"bannercount_fundraiser_2016","maximumSeen":1,"restartCycleDelay":2592000,"skipInitial":5},"legacySupport":{"bannersNotGuaranteedToDisplay":!0,"setSRISampleRate":!0,"sriSampleRate":1}}},{"name":"C1516_mlWW_ipd_lw_FR","start":1446663600,"end":1467331200,"preferred":0,"throttle":20,"bucket_count":2,"geotargeted":!0,"banners":[{"name":"B1516_0519_enmlWW_ipd_lw_sm_cnt","bucket":0
14​,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["ipad"]},{"name":"B1516_0519_enmlWW_ipd_lw_sm_ind","bucket":1,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["ipad"]}],"countries":["AT","BE","DK","ES","HK","HU","IT","JP","LU","LV","MY","NL","NO","PT","RO","SE","SK","UA"],"mixins":{"bannerHistoryLogger":{"maxEntries":30,"maxEntryAge":365,"rate":0.01,"waitLogNoSendBeacon":200},"impressionDiet":{"cookieName":"bannercount_fundraiser_2016","maximumSeen":1,"restartCycleDelay":2592000,"skipInitial":5},"legacySupport":{"bannersNotGuaranteedToDisplay":!0,"setSRISampleRate":!0,"sriSampleRate":1}}},{"name":"C1516_mlWW_mob_lw_FR","start":1446663600,"end":1467331200,"preferred":0,"throttle":20,"bucket_count":2,"geotargeted":!0,"banners":[{"name":"B1516_0519_enmlWW_mob_lw_sm_cnt","bucket":1,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["android","iphone"]},{
15​"name":"B1516_0519_enmlWW_mob_lw_sm_ind","bucket":0,"weight":25,"category":"fundraising","display_anon":!0,"display_account":!1,"devices":["android","iphone"]}],"countries":["AT","BE","DK","ES","HK","HU","IT","JP","LU","LV","MY","NL","NO","PT","RO","SE","SK","UA"],"mixins":{"bannerHistoryLogger":{"maxEntries":30,"maxEntryAge":365,"rate":0.01,"waitLogNoSendBeacon":200},"impressionDiet":{"cookieName":"bannercount_fundraiser_2016","maximumSeen":1,"restartCycleDelay":2592000,"skipInitial":5},"legacySupport":{"bannersNotGuaranteedToDisplay":!0,"setSRISampleRate":!0,"sriSampleRate":1}}},{"name":"WLE2016_CH_EN","start":1462053600,"end":1465343940,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"WLE2016_CH_EN","bucket":0,"weight":25,"category":"WLE2016_CH_EN","display_anon":!0,"display_account":!0,"devices":["desktop"]}],"countries":["CH","LI"],"mixins":[]},{"name":"wle_2016_at","start":1462053600,"end":1464731940,"preferred":1,"throttle":100,
16​"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_at","bucket":0,"weight":100,"category":"wle_2016_at","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["AT"],"mixins":[]},{"name":"wle_2016_au","start":1462025400,"end":1464710340,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_au","bucket":0,"weight":100,"category":"wle_2016_au","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["AU"],"mixins":[]},{"name":"wle_2016_az","start":1462046400,"end":1464724740,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_az","bucket":0,"weight":100,"category":"wle_2016_az","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["AZ"],"mixins":[]},{"name":"wle_2016_br","start":1462590000,"end":1467341940,
17​"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_br","bucket":0,"weight":25,"category":"wle_2016_br","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["BR"],"mixins":[]},{"name":"wle_2016_de","start":1462053600,"end":1464731940,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_de","bucket":0,"weight":100,"category":"wle_2016_de","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["DE"],"mixins":[]},{"name":"wle_2016_dz","start":1462057200,"end":1464735540,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_dz","bucket":0,"weight":100,"category":"wle_2016_dz","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["DZ"],"mixins":[]},{"name":"wle_2016_ee","start":
18​1462050000,"end":1464728340,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_ee","bucket":0,"weight":100,"category":"wle_2016_ee","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["EE"],"mixins":[]},{"name":"wle_2016_es","start":1462053600,"end":1464731940,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_es","bucket":0,"weight":100,"category":"wle_2016_es","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["ES"],"mixins":[]},{"name":"wle_2016_fr","start":1462053600,"end":1464731940,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_fr","bucket":0,"weight":100,"category":"wle_2016_fr","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["FR"],"mixins":[]},{"name":
19​"wle_2016_gr","start":1463259600,"end":1466024340,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_gr","bucket":0,"weight":100,"category":"wle_2016_gr","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["GR"],"mixins":[]},{"name":"wle_2016_iq","start":1462050000,"end":1467320340,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_iq","bucket":0,"weight":100,"category":"wle_2016_iq","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["IQ"],"mixins":[]},{"name":"wle_2016_ma","start":1462057200,"end":1464735540,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_ma","bucket":0,"weight":100,"category":"wle_2016_ma","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["MA"],
20​"mixins":[]},{"name":"wle_2016_md","start":1463259600,"end":1466024340,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_md","bucket":0,"weight":100,"category":"wle_2016_md","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["MD"],"mixins":[]},{"name":"wle_2016_np","start":1462040100,"end":1464718440,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_np","bucket":0,"weight":100,"category":"wle_2016_np","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["NP"],"mixins":[]},{"name":"wle_2016_pk","start":1462042800,"end":1464721140,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_pk","bucket":0,"weight":100,"category":"wle_2016_pk","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}]
21​,"countries":["PK"],"mixins":[]},{"name":"wle_2016_rs","start":1462053600,"end":1464731940,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_rs","bucket":0,"weight":25,"category":"wle_2016_rs","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["RS"],"mixins":[]},{"name":"wle_2016_ru","start":1462050000,"end":1464728340,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_ru","bucket":0,"weight":100,"category":"wle_2016_ru","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["RU"],"mixins":[]},{"name":"wle_2016_tn","start":1462057200,"end":1465340340,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_tn","bucket":0,"weight":100,"category":"wle_2016_tn","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad",
22​"iphone","unknown"]}],"countries":["TN"],"mixins":[]},{"name":"wle_2016_ua","start":1462050000,"end":1464728340,"preferred":1,"throttle":100,"bucket_count":1,"geotargeted":!0,"banners":[{"name":"wle_2016_ua","bucket":0,"weight":100,"category":"wle_2016_ua","display_anon":!0,"display_account":!0,"devices":["android","desktop","ipad","iphone","unknown"]}],"countries":["UA"],"mixins":[]}];});mw.loader.implement("ext.centralNotice.display",function($,jQuery,require,module){(function($,mw){var cn,Mixin,campaignMixins={},bannerLoadedDeferredObj;Mixin=function(name){this.name=name;};Mixin.prototype.setPreBannerHandler=function(handlerFunc){this.preBannerHandler=handlerFunc;};Mixin.prototype.setPostBannerHandler=function(handlerFunc){this.postBannerHandler=handlerFunc;};function runMixinHooks(hookPropertyName){var state=cn.internal.state;$.each(state.getCampaign().mixins,function(mixinName,mixinParams){if(!(mixinName in campaignMixins)){mw.log('Mixin '+mixinName+' not registered.');return;}if(!(hookPropertyName in campaignMixins[mixinName])){return;}var handler=campaignMixins[mixinName][hookPropertyName];if(typeof handler!=='function'){mw.log(hookPropertyName+' for '+mixinName+' not a function.');return;}handler(mixinParams);});}function runPreBannerMixinHooks(){runMixinHooks('preBannerHandler');}function runPostBannerMixinHooks(){runMixinHooks('postBannerHandler');}function
23​setUpDataProperty(){try{Object.defineProperty(cn,'data',{get:function(){return cn.internal.state.getData();}});return;}catch(e){}cn.data=cn.internal.state.getData();}function setUpBannerLoadedPromise(){bannerLoadedDeferredObj=$.Deferred();cn.bannerLoadedPromise=bannerLoadedDeferredObj.promise();cn.events={};cn.events.bannerLoaded=cn.bannerLoadedPromise;}function fetchBanner(){var data=cn.internal.state.getData(),url=new mw.Uri(mw.config.get('wgCentralSelectedBannerDispatcher'));url.extend({campaign:data.campaign,banner:data.banner,uselang:data.uselang,debug:data.debug});$.ajax({url:url.toString(),dataType:'script',cache:!0});}function injectBannerHTML(bannerHtml){$('div#centralNotice').attr('class',mw.html.escape('cn-'+cn.internal.state.getData().bannerCategory)).prepend('<!--googleoff: all-->'+bannerHtml+'<!--googleon: all-->');}function recordImpression(){var state=cn.internal.state,url;if(Math.random()>state.getData().recordImpressionSampleRate){return;}url=new mw.Uri(mw.config.
24​get('wgCentralBannerRecorder'));url.extend(state.getDataCopy(true));if(navigator.sendBeacon){try{navigator.sendBeacon(url.toString());}catch(e){}}else{setTimeout(function(){document.createElement('img').src=url.toString();},0);}}function reallyChooseAndMaybeDisplay(){var chooser=cn.internal.chooser,bucketer=cn.internal.bucketer,state=cn.internal.state,hide=cn.internal.hide,campaign,banner;state.setUp();setUpDataProperty();campaign=chooser.chooseCampaign(cn.choiceData,state.getData().country,state.getData().anonymous,state.getData().device,state.getData().randomcampaign);if(campaign===null){return;}state.setCampaign(campaign);bucketer.setCampaign(campaign);hide.setCategory(state.getData().campaignCategory);if(cn.kvStore){cn.kvStore.setCampaignName(state.getData().campaign);cn.kvStore.setCategory(state.getData().campaignCategory);}bucketer.process();state.setBucket(bucketer.getBucket());hide.processCookie();if(hide.shouldHide()){state.cancelBanner(hide.getReason());runPreBannerMixinHooks
25​();runPostBannerMixinHooks();recordImpression();return;}runPreBannerMixinHooks();if(state.isBannerCanceled()){runPostBannerMixinHooks();recordImpression();return;}banner=chooser.chooseBanner(campaign,state.getData().bucket,state.getData().anonymous,state.getData().device,state.getData().randombanner);if(!banner){state.setNoBannerAvailable();runPostBannerMixinHooks();recordImpression();return;}state.setBanner(banner);if(cn.kvStore){cn.kvStore.setBannerName(banner.name);}cn.bannerData.bannerName=banner.name;setUpBannerLoadedPromise();fetchBanner();}cn={reallyInsertBanner:function(bannerJson){var state=cn.internal.state,shownAfterLoadingBanner=!0,bannerLoadedButHiddenReason,tmpData;injectBannerHTML(bannerJson.bannerHtml);bannerLoadedDeferredObj.resolve(cn.internal.state.getData());if(state.getData().bannersNotGuaranteedToDisplay){if(typeof cn.bannerData.alterImpressionData==='function'){tmpData=state.getDataCopy();shownAfterLoadingBanner=cn.bannerData.alterImpressionData(tmpData);if(!
26​shownAfterLoadingBanner){bannerLoadedButHiddenReason=tmpData.reason||'';state.setBannerLoadedButHidden(bannerLoadedButHiddenReason);}if(tmpData.banner_count){state.setBannerCount(tmpData.banner_count);}}else{state.setAlterFunctionMissing();}}if(shownAfterLoadingBanner){state.setBannerShown();}if(!state.getData().testingBanner){runPostBannerMixinHooks();recordImpression();}},internal:{},setBannersNotGuaranteedToDisplay:function(){cn.internal.state.setBannersNotGuaranteedToDisplay();},cancelBanner:function(reason){cn.internal.state.cancelBanner(reason);},isBannerCanceled:function(){return cn.internal.state.isBannerCanceled();},setBannerLoadedButHidden:function(reason){cn.internal.state.setBannerLoadedButHidden(reason);},setRecordImpressionSampleRate:function(rate){cn.internal.state.setRecordImpressionSampleRate(rate);},bannerData:{},Mixin:Mixin,registerCampaignMixin:function(mixin){campaignMixins[mixin.name]=mixin;},chooseAndMaybeDisplay:function(){mw.geoIP.getPromise().fail(cn.internal.
27​state.setInvalidGeoData).always(reallyChooseAndMaybeDisplay);},displayTestingBanner:function(){mw.geoIP.getPromise().fail(cn.internal.state.setInvalidGeoData).always(function(){cn.internal.state.setUpForTestingBanner();setUpDataProperty();setUpBannerLoadedPromise();fetchBanner();});},insertBanner:function(bannerJson){$(function(){cn.reallyInsertBanner(bannerJson);});},hideBannerWithCloseButton:function(){$('#centralNotice').hide();cn.internal.hide.setHideWithCloseButtonCookies();},customHideBanner:function(reason,duration){$('#centralNotice').hide();cn.internal.hide.setHideCookies(reason,duration);},hideBanner:function(){cn.hideBannerWithCloseButton();},setBucket:function(bucket){cn.internal.bucketer.setBucket(bucket);cn.internal.state.setBucket(bucket);},registerTest(identifier){cn.internal.state.registerTest(identifier);},getDataProperty:function(prop){return cn.internal.state.getData()[prop];},cookiesEnabled:function(){var enabled;$.cookie('cookieTest','testVal');enabled=($.cookie(
28​'cookieTest')==='testVal');$.removeCookie('cookieTest');return enabled;}};if(mw.centralNotice===undefined){mw.centralNotice=cn;}else{$.extend(mw.centralNotice,cn);cn=mw.centralNotice;}mw.log.deprecate(window,'insertBanner',cn.insertBanner,'Use mw.centralNotice method instead');mw.log.deprecate(window,'hideBanner',cn.hideBanner,'Use mw.centralNotice method instead');mw.log.deprecate(window,'toggleNotice',cn.hideBanner,'Use mw.centralNotice method instead');})(jQuery,mediaWiki);(function($,mw){var state,status,UNKNOWN_COUNTRY_CODE='XX',CAMPAIGN_CATEGORY_FOR_MIXED_BANNER_CATEGORIES='mixed_banner_categories',DEVICES={DESKTOP:'desktop',IPHONE:'iphone',IPAD:'ipad',ANDROID:'android',UNKNOWN:'unknown'},STATUSES={CAMPAIGN_NOT_CHOSEN:new Status('campaign_not_chosen',0),CAMPAIGN_CHOSEN:new Status('campaign_chosen',1),BANNER_CANCELED:new Status('banner_canceled',2),NO_BANNER_AVAILABLE:new Status('no_banner_available',3),BANNER_CHOSEN:new Status('banner_chosen',4),BANNER_LOADED_BUT_HIDDEN:new Status
29​('banner_loaded_but_hidden',5),BANNER_SHOWN:new Status('banner_shown',6)},REASONS={'other':0,'close':1,'waitdate':2,'waitimps':3,'waiterr':4,'belowMinEdits':5,'viewLimit':6,'seen-fullscreen':7,'cookies-disabled':8,'donate':9,'cookies':10,'seen':11,'empty':12,'waitnorestart':13,'waitnostorage':14,'namespace':15};function Status(key,code){this.key=key;this.code=code;}function getDeviceCode(){var ua;if(mw.config.get('skin')!=='minerva'){return DEVICES.DESKTOP;}ua=navigator.userAgent;if(ua.match(/iphone/i)){return DEVICES.IPHONE;}if(ua.match(/ipad/i)){return DEVICES.IPAD;}if(ua.match(/android/i)){return DEVICES.ANDROID;}return DEVICES.UNKNOWN;}function setInitialData(){var urlParams=$.extend(state.urlParams,(new mw.Uri()).query);state.data.anonymous=(mw.config.get('wgUserName')===null);state.data.project=mw.config.get('wgNoticeProject');state.data.db=mw.config.get('wgDBname');state.data.uselang=mw.config.get('wgUserLanguage');state.data.device=urlParams.device||getDeviceCode();state.data.
30​country=urlParams.country||state.data.country||(window.Geo&&window.Geo.country)||UNKNOWN_COUNTRY_CODE;state.data.debug=urlParams.debug!==undefined?true:!1;state.data.randomcampaign=urlParams.randomcampaign!==undefined?urlParams.randomcampaign:Math.random();state.data.randombanner=urlParams.randombanner!==undefined?urlParams.randombanner:Math.random();state.data.recordImpressionSampleRate=urlParams.recordImpressionSampleRate!==undefined?urlParams.recordImpressionSampleRate:mw.config.get('wgCentralNoticeSampleRate');state.data.getVars=urlParams;}function setTestingBannerData(){state.data.campaign=state.urlParams.campaign;state.data.banner=state.urlParams.banner;state.data.testingBanner=!0;}function setStatus(s,reason){var reasonCodeStr=reason?('.'+state.lookupReasonCode(reason)):'';status=s;state.data.status=s.key;state.data.statusCode=s.code.toString()+reasonCodeStr;}state=mw.centralNotice.internal.state={STATUSES:STATUSES,urlParams:{},data:{},campaign:null,banner:null,
31​setInvalidGeoData:function(){state.data.country=UNKNOWN_COUNTRY_CODE;},setUp:function(){setInitialData();setStatus(STATUSES.CAMPAIGN_NOT_CHOSEN);},setUpForTestingBanner:function(){setInitialData();setTestingBannerData();setStatus(STATUSES.BANNER_CHOSEN);},getData:function(){return state.data;},getDataCopy:function(cleanForURLSerialization){var dataCopy=$.extend(true,{},state.data);if(cleanForURLSerialization){delete dataCopy.getVars;delete dataCopy.mixins;delete dataCopy.tests;}return dataCopy;},setCampaign:function(c){var prop,i,category,campaignCategory=null;state.campaign=c;state.data.campaign=state.campaign.name;setStatus(STATUSES.CAMPAIGN_CHOSEN);state.data.mixins={};for(prop in state.campaign.mixins){if(state.campaign.mixins.hasOwnProperty(prop)){state.data.mixins[prop]=!0;}}for(i=0;i<state.campaign.banners.length;i++){category=state.campaign.banners[i].category;if(campaignCategory===null){campaignCategory=category;}else if(campaignCategory!==category){campaignCategory=
32​CAMPAIGN_CATEGORY_FOR_MIXED_BANNER_CATEGORIES;break;}}state.data.campaignCategory=campaignCategory;state.data.campaignCategoryUsesLegacy=($.inArray(campaignCategory,mw.config.get('wgCentralNoticeCategoriesUsingLegacy'))!==-1);},getCampaign:function(){return state.campaign;},setBanner:function(b){state.banner=b;state.data.banner=state.banner.name;state.data.bannerCategory=state.banner.category;setStatus(STATUSES.BANNER_CHOSEN);},setBucket:function(bucket){state.data.bucket=bucket;},setBannersNotGuaranteedToDisplay:function(){state.data.bannersNotGuaranteedToDisplay=!0;},cancelBanner:function(reason){state.data.bannerCanceledReason=reason;setStatus(STATUSES.BANNER_CANCELED,reason);state.data.result='hide';state.data.reason=reason;},isBannerCanceled:function(){return status===STATUSES.BANNER_CANCELED;},isBannerShown:function(){return status===STATUSES.BANNER_SHOWN;},setNoBannerAvailable:function(){setStatus(STATUSES.NO_BANNER_AVAILABLE);state.data.result='hide';state.data.reason='empty'
33​;},setBannerLoadedButHidden:function(reason){state.data.bannerLoadedButHiddenReason=reason;setStatus(STATUSES.BANNER_LOADED_BUT_HIDDEN,reason);state.data.result='hide';state.data.reason=reason;},setAlterFunctionMissing:function(){state.data.alterFunctionMissing=!0;},setBannerShown:function(){setStatus(STATUSES.BANNER_SHOWN);state.data.result='show';},setBannerCount:function(bannerCount){state.data.banner_count=bannerCount;},setRecordImpressionSampleRate:function(rate){state.data.recordImpressionSampleRate=rate;},registerTest(identifier){var tests=state.data.tests=state.data.tests||[];if($.inArray(identifier,tests)===-1){tests.push(identifier);if(tests.length===1){state.data.testIdentifiers=identifier;}else{state.data.testIdentifiers.concat(','+identifier);}}},lookupReasonCode:function(reasonName){if(reasonName in REASONS){return REASONS[reasonName];}return REASONS.other;}};})(jQuery,mediaWiki);(function($,mw){var cn=mw.centralNotice,CAMPAIGN_STALENESS_LEEWAY=15;function
34​makeFilteredChoiceData(choiceData,country,anon,device){var i,campaign,j,banner,keepCampaign,filteredChoiceData=[],now=new Date(),campaignEndDatePlusLeeway;for(i=0;i<choiceData.length;i++){campaign=choiceData[i];keepCampaign=!1;campaignEndDatePlusLeeway=new Date();campaignEndDatePlusLeeway.setTime((campaign.end*1000)+(CAMPAIGN_STALENESS_LEEWAY*60000));if(campaignEndDatePlusLeeway<now){return[];}if(campaign.geotargeted&&($.inArray(country,campaign.countries)===-1)){continue;}for(j=0;j<campaign.banners.length;j++){banner=campaign.banners[j];if(anon&&!banner.display_anon){continue;}if(!anon&&!banner.display_account){continue;}if($.inArray(device,banner.devices)===-1){continue;}keepCampaign=!0;break;}if(keepCampaign){filteredChoiceData.push(campaign);}}return filteredChoiceData;}function setCampaignAllocations(filteredChoiceData){var i,campaign,campaignPriority,campaignsByPriority=[],priorities=[],priority,campaignsAtThisPriority,remainingAllocation=1,j,campaignsAtThisPriorityCount,
35​currentFullAllocation,actualAllocation;if(filteredChoiceData.length===1){filteredChoiceData[0].allocation=filteredChoiceData[0].throttle/100;return;}for(i=0;i<filteredChoiceData.length;i++){campaign=filteredChoiceData[i];campaignPriority=campaign.preferred;if(!campaignsByPriority[campaignPriority]){campaignsByPriority[campaignPriority]=[];}campaignsByPriority[campaignPriority].push(campaign);}for(priority in campaignsByPriority){priorities.push(priority);}priorities.sort();priorities.reverse();for(i=0;i<priorities.length;i++){campaignsAtThisPriority=campaignsByPriority[priorities[i]];if(remainingAllocation<0.01){for(j=0;j<campaignsAtThisPriority.length;j++){campaignsAtThisPriority[j].allocation=0;}continue;}campaignsAtThisPriority.sort(function(a,b){if(a.throttle<b.throttle){return-1;}if(a.throttle>b.throttle){return 1;}return 0;});campaignsAtThisPriorityCount=campaignsAtThisPriority.length;for(j=0;j<campaignsAtThisPriorityCount;j++){campaign=campaignsAtThisPriority[j];
36​currentFullAllocation=remainingAllocation/(campaignsAtThisPriorityCount-j);actualAllocation=Math.min(currentFullAllocation,campaign.throttle/100);campaign.allocation=actualAllocation;remainingAllocation-=actualAllocation;}}}function makePossibleBanners(campaign,bucket,anon,device){var i,campaignName,banner,possibleBanners=[];campaignName=campaign.name;for(i=0;i<campaign.banners.length;i++){banner=campaign.banners[i];if(bucket%campaign.bucket_count!==banner.bucket){continue;}if(anon&&!banner.display_anon){continue;}if(!anon&&!banner.display_account){continue;}if($.inArray(device,banner.devices)===-1){continue;}possibleBanners.push(banner);}return possibleBanners;}function setBannerAllocations(possibleBanners){var i,banner,totalWeights=0;if(possibleBanners.length===1){possibleBanners[0].allocation=1;return;}for(i=0;i<possibleBanners.length;i++){totalWeights+=possibleBanners[i].weight;}for(i=0;i<possibleBanners.length;i++){banner=possibleBanners[i];banner.allocation=banner.weight/
37​totalWeights;}}function chooseObjInAllocatedArray(random,allocatedArray){var blockStart=0,i,obj,blockEnd;for(i=0;i<allocatedArray.length;i++){obj=allocatedArray[i];blockEnd=blockStart+obj.allocation;if((random>=blockStart)&&(random<blockEnd)){return obj;}blockStart=blockEnd;}return null;}cn.internal.chooser={chooseCampaign:function(choiceData,country,anon,device,random){var filteredChoiceData=makeFilteredChoiceData(choiceData,country,anon,device);if(filteredChoiceData.length===0){return null;}setCampaignAllocations(filteredChoiceData);return chooseObjInAllocatedArray(random,filteredChoiceData);},chooseBanner:function(campaign,bucket,anon,device,random){var possibleBanners=makePossibleBanners(campaign,bucket,anon,device);if(possibleBanners.length===0){return null;}setBannerAllocations(possibleBanners);return chooseObjInAllocatedArray(random,possibleBanners);}};})(jQuery,mediaWiki);(function($,mw){var LEGACY_COOKIE='centralnotice_buckets_by_campaign',buckets=null,campaign=null;function
38​escapeCampaignName(name){return name.replace(/[*!]/g,function(match){return'&#'+match.charCodeAt(0);});}function decodeCampaignName(name){return name.replace(/&#(33|42)/,function(match,$1){return String.fromCharCode($1);});}function loadBuckets(){var cookieVal=$.cookie('CN');buckets={};if(!cookieVal){cookieVal=$.cookie(LEGACY_COOKIE);if(cookieVal){$.removeCookie(LEGACY_COOKIE,{path:'/'});try{$.extend(buckets,JSON.parse(cookieVal));}catch(e){}if(!$.isEmptyObject(buckets)){storeBuckets();}}return;}$.each(cookieVal.split('*'),function(idx,strBucket){var parts=strBucket.split('!'),key=decodeCampaignName(parts[0]),start=parseInt(parts[1],10)+14e8,end=start+parseInt(parts[2],10),val=parseInt(parts[3],10);if(key&&start&&end&&!isNaN(val)){buckets[key]={start:start,end:end,val:val};}});}function storeBuckets(){var expires=Math.ceil((new Date())/1000),cookieVal=$.map(buckets,function(opts,key){var parts=[escapeCampaignName(key),Math.floor(opts.start-14e8),Math.ceil(opts.end-opts.start),opts.val]
39​;if(opts.end>expires){expires=Math.ceil(opts.end);}return parts.join('!');}).join('*');$.cookie('CN',cookieVal,{expires:new Date(expires*1000),path:'/'});}function getRandomBucket(){return Math.floor(Math.random()*mw.config.get('wgNoticeNumberOfControllerBuckets'));}function retrieveProcessAndGet(){var campaignName=campaign.name,campaignStartDate,bucket,bucketEndDate,retrievedBucketEndDate,val,extension=mw.config.get('wgCentralNoticePerCampaignBucketExtension'),now=new Date(),bucketsModified=!1;campaignStartDate=new Date();campaignStartDate.setTime(campaign.start*1000);bucketEndDate=new Date();bucketEndDate.setTime(campaign.end*1000);bucketEndDate.setUTCDate(bucketEndDate.getUTCDate()+extension);loadBuckets();bucket=buckets[campaignName];if(bucket&&bucketEndDate>now){retrievedBucketEndDate=new Date();retrievedBucketEndDate.setTime(bucket.end*1000);if(retrievedBucketEndDate.getTime()!==bucketEndDate.getTime()){bucket.end=bucketEndDate.getTime()/1000;bucketsModified=!0;}}else{val=
40​getRandomBucket();bucket={val:val,start:campaignStartDate.getTime()/1000,end:bucketEndDate.getTime()/1000};buckets[campaignName]=bucket;bucketsModified=!0;}for(campaignName in buckets){bucketEndDate=new Date();bucketEndDate.setTime(buckets[campaignName].end*1000);if(bucketEndDate<now){delete buckets[campaignName];bucketsModified=!0;}}if(bucketsModified){storeBuckets();}}mw.centralNotice.internal.bucketer={setCampaign:function(c){campaign=c;},process:function(){retrieveProcessAndGet();},getBucket:function(){return buckets[campaign.name].val;},setBucket:function(val){buckets[campaign.name].val=val;storeBuckets();}};})(jQuery,mediaWiki);(function($,mw){var hide,category,cookieName,shouldHide=!1,reason,durations=mw.config.get('wgNoticeCookieDurations'),HIDE_COOKIE_PREFIX='centralnotice_hide_',MAX_CUSTOM_HIDE_DURATION=2592000;function removeCookie(){$.cookie(cookieName,null,{path:'/'});}hide=mw.centralNotice.internal.hide={setCategory:function(c){category=c;cookieName=
41​HIDE_COOKIE_PREFIX+category;},processCookie:function(){var rawCookieVal=$.cookie(cookieName),hideData,now;if(!rawCookieVal){return;}if(rawCookieVal==='hide'){removeCookie();return;}try{hideData=JSON.parse(rawCookieVal);}catch(e){removeCookie();return;}now=new Date().getTime()/1000;if(now<hideData.created+(durations[hideData.reason]||MAX_CUSTOM_HIDE_DURATION)){shouldHide=!0;reason=hideData.reason;}},shouldHide:function(){return shouldHide;},getReason:function(){return reason;},setHideCookies:function(reason,duration){var date=new Date(),hideData={v:1,created:Math.floor(date.getTime()/1000),reason:reason};if(!(reason in durations)){duration=Math.min(MAX_CUSTOM_HIDE_DURATION,duration);}date.setSeconds(date.getSeconds()+duration);$.cookie(cookieName,JSON.stringify(hideData),{expires:date,path:'/'});$.each(mw.config.get('wgNoticeHideUrls'),function(i,val){var url=new mw.Uri(val);url.extend({'duration':duration,'category':category,'reason':reason});document.createElement('img').src=url.
42​toString();});},setHideWithCloseButtonCookies:function(){hide.setHideCookies('close',durations.close);}};})(jQuery,mediaWiki);},{"css":[
43​"@media print{#centralNotice{display:none}}.cn-closeButton{display:inline-block;zoom:1;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAACeklEQVR4Aa1UM3jkcRBN6qS//tTFttPHqmI359VZ5dm2L1zFtr02YlRx5sX2ft/7ed7O/w1M5ufnt8NZQjCBQXhG+IYZe5zjfju7xcHc3NzEzMwM6xOEqNnZ2ZeVlZW827dv1ycmJnbGx8d3Yr5582Z9eXk5D/d4h/empqYm+K0nw3yKcF4sFmdzOJzGgIAAhb29vc7Ozk6/Atrr/fz8lCwWq6m3tzcb72G3nmzFo/NNTU354eHhIltbW72Tk5M2IyND9P79+8ZPnz7VvXnzpoHBYPS4uLhobGxsDMHBwaLa2tp82MF+PVmUUqnMioiI6LOysjLQLCcPS2ZmZn7Ozc39oPtFYG80GgWpqakSS0tLY1hYmEgikWTBfoXsLD16BT3gUWhoqEKtVheREZ+Qu0IEjI+PZ2k0GqFer+cnJSWJra2tDWw2u2FqauoVeEAW3NzcnBcYGCh3dHTUtba2ltNjLvRJSEiQEQEPRENDQzkMBqPXwsKiXyqVFsFDNzc3LWmoqKmp4YIHZIyHDx9WOzg46GJiYmTk5e/h4eHstLQ0CX2ykXST4JPJ8y7sSVM5/QGMf9y4caMHf3r//v1a8IDsGRm04/D58+dtpNFPPNRqtflXrlzpI8G15IEGc2xsrFSlUglwD+Tk5NRBmuTk5A7wgOxbXFxcF8iysrIa1mskEolKvL29Ne7u7mpXV1dNaWlp9fr7X79+VYMMeQieY/dsv5p1r2g2Nja2vWZ7RXNiYuIA0dwlzwYGBjbkGXmURXeLeUa1ul2ebV8BEH+7CiAiASTYvgJ2qc3MzMzF2vz8+XPd27dvG5hMZg+CsV1tHmfXOP5+dqyddgHOI7v1srTdcwAAAABJRU5ErkJggg==);background:url(/w/extensions/CentralNotice/resources/subscribing/CloseWindow19x19.png?7596b)!ie;width:19px;height:19px;text-indent:19px;white-space:nowrap;overflow:hidden}"
44​]});mw.loader.implement("ext.centralNotice.geoIP",function($,jQuery,require,module){(function($,mw){var COOKIE_NAME='GeoIP',GEOIP_LOOKUP_URL='//geoiplookup.wikimedia.org/';function parseCookieValue(cookieValue){var matches=cookieValue.match(/([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^;]*)/)||cookieValue.match(/([^:]*):([^:]*):([^:]*):([^:]*):([^;]*)/);if(!matches){return null;}if(matches.length===6){matches=matches.slice(0,2).concat(['']).concat(matches.slice(2));}return{country:matches[1],region:matches[2],city:matches[3],lat:matches[4]&&parseFloat(matches[4]),lon:matches[5]&&parseFloat(matches[5]),af:matches[6]};}function serializeCookieValue(geoObj){var parts=[geoObj.country,geoObj.region,(geoObj.city&&geoObj.city.replace(/[^a-z]/i,'_'))||'',geoObj.lat,geoObj.lon,(geoObj.IP&&geoObj.IP.match(':'))?'v6':'v4'];return parts.join(':');}function isGeoDataValid(geoObj){return(typeof geoObj.country==='string'&&geoObj.country.length>0&&geoObj.af!=='vx');}mw.geoIP={deferred:$.Deferred(),
45​setWindowGeo:function(){var cookieValue=$.cookie(COOKIE_NAME),geoObj;if(cookieValue){geoObj=parseCookieValue(cookieValue);if(geoObj&&isGeoDataValid(geoObj)){window.Geo=geoObj;mw.geoIP.deferred.resolve();return;}}window.Geo={country:'',region:'',city:'',lat:'',lon:'',af:'vx'};$.ajax({url:GEOIP_LOOKUP_URL,dataType:'script',cache:!0}).always(function(){if(!window.Geo||typeof window.Geo!=='object'){mw.log('window.Geo cleared or '+'incorrectly set by GeoIP lookup.');mw.geoIP.deferred.reject();return;}if(!isGeoDataValid(window.Geo)){mw.geoIP.deferred.reject();return;}cookieValue=serializeCookieValue(window.Geo);$.cookie(COOKIE_NAME,cookieValue,{path:'/'});mw.geoIP.deferred.resolve();});},getPromise:function(){return mw.geoIP.deferred.promise();}};mw.geoIP.setWindowGeo();})(jQuery,mediaWiki);});mw.loader.implement("ext.centralNotice.impressionDiet",function($,jQuery,require,module){(function($,mw){'use strict';var cn=mw.centralNotice,mixin=new cn.Mixin('impressionDiet'),useCookies,identifier,counts,IMPRESSION_DIET_KV_STORE_KEY='impression_diet',WAIT_COOKIE_SUFFIX='-wait',COUNTS_STORAGE_TTL=365;mixin.setPreBannerHandler(function(mixinParams){var forceFlag=mw.util.getParamValue('force'),hide;useCookies=cn.getDataProperty('campaignCategoryUsesLegacy');if(forceFlag||cn.isBannerCanceled()){return;}if(!storageAvailable()){hide='waitnostorage';}else{identifier=mixinParams.cookieName;counts=getCounts();if(counts.waitUntil<new Date().getTime()&&counts.waitSeenCount>=mixinParams.maximumSeen){if(mixinParams.restartCycleDelay!==0){counts.waitCount=0;counts.waitSeenCount=0;}}if(counts.waitSeenCount<mixinParams.maximumSeen){if(counts.waitCount<mixinParams.skipInitial){hide='waitimps';counts.waitCount+=1;}else{hide=!1;}}else{hide='waitdate';}}if(hide){cn.internal.state.cancelBanner(hide)
46​;}else{counts.waitSeenCount+=1;counts.seenCount+=1;counts.waitUntil=new Date().getTime()+(mixinParams.restartCycleDelay*1000);}storeCounts(counts);});function storageAvailable(){return useCookies?cn.cookiesEnabled():cn.kvStore.isAvailable();}function getZeroedCounts(){return{seenCount:0,waitCount:0,waitUntil:0,waitSeenCount:0};}function getCounts(){var rawCookie,rawWaitCookie,waitData,kvStoreCounts;if(mw.util.getParamValue('reset')==='1'){return getZeroedCounts();}if(identifier){rawCookie=$.cookie(identifier);rawWaitCookie=$.cookie(identifier+WAIT_COOKIE_SUFFIX);if(rawCookie&&!useCookies){$.removeCookie(identifier,{path:'/'});$.removeCookie(identifier+WAIT_COOKIE_SUFFIX,{path:'/'});}if(rawCookie){waitData=(rawWaitCookie||'').split(/[|]/);return{seenCount:parseInt(rawCookie)||0,waitCount:parseInt(waitData[0])||0,waitUntil:parseInt(waitData[1])||0,waitSeenCount:parseInt(waitData[2])||0};}kvStoreCounts=cn.kvStore.getItem(IMPRESSION_DIET_KV_STORE_KEY+'_'+identifier,cn.kvStore.contexts.
47​GLOBAL);if(kvStoreCounts&&useCookies){useCookies=!1;}return kvStoreCounts||getZeroedCounts();}if(useCookies){mw.log('impressionDiet mixin requires custom identifier for '+'campaigns using legacy cookies.');return getZeroedCounts();}return cn.kvStore.getItem(IMPRESSION_DIET_KV_STORE_KEY,cn.kvStore.contexts.CATEGORY)||getZeroedCounts();}function storeCounts(counts){var waitData;if(useCookies){if(identifier){waitData=counts.waitCount+'|'+counts.waitUntil+'|'+counts.waitSeenCount;$.cookie(identifier,counts.seenCount,{expires:COUNTS_STORAGE_TTL,path:'/'});$.cookie(identifier+WAIT_COOKIE_SUFFIX,waitData,{expires:COUNTS_STORAGE_TTL,path:'/'});}return;}if(identifier){cn.kvStore.setItem(IMPRESSION_DIET_KV_STORE_KEY+'_'+identifier,counts,cn.kvStore.contexts.GLOBAL,COUNTS_STORAGE_TTL);return;}cn.kvStore.setItem(IMPRESSION_DIET_KV_STORE_KEY,counts,cn.kvStore.contexts.CATEGORY,COUNTS_STORAGE_TTL);}cn.registerCampaignMixin(mixin);})(jQuery,mediaWiki);});mw.loader.implement("ext.centralNotice.kvStore",function($,jQuery,require,module){(function($,mw){var KVStorageContext,kvStore,error=null,campaignName=null,bannerName=null,category=null,now=Math.round((new Date()).getTime()/1000),SEPARATOR='|',FIND_KEY_REGEX=/\|([^|]*)$/,PREFIX='CentralNoticeKV',DEFAULT_ITEM_TTL=15768000;KVStorageContext=function(key){this.key=key;};function setError(message,key,value,context){error={message:message,key:key,value:value,context:context?context.key:null,time:new Date()};error.campaign=campaignName;error.banner=bannerName;mw.log('CentralNotice KV storage error: '+JSON.stringify(error));}function makeKeyForLocalStorage(key,context){var base=PREFIX+SEPARATOR+context.key+SEPARATOR;switch(context.key){case kvStore.contexts.CAMPAIGN.key:return base+campaignName+SEPARATOR+key;case kvStore.contexts.CATEGORY.key:return base+category+SEPARATOR+key;case kvStore.contexts.GLOBAL.key:return base+key;default:setError('Invalid KV storage context',key,null,context);
48​return base+'invalidContext'+SEPARATOR+key;}}kvStore=mw.centralNotice.kvStore={contexts:{CAMPAIGN:new KVStorageContext('campaign'),CATEGORY:new KVStorageContext('category'),GLOBAL:new KVStorageContext('global')},isAvailable:function(){try{return Boolean(window.localStorage);}catch(e){return false;}},setItem:function(key,value,context,ttl){var lsKey,encodedWrappedValue;if(key.indexOf(SEPARATOR)!==-1){setError('Invalid key',key,value,context);return false;}lsKey=makeKeyForLocalStorage(key,context);encodedWrappedValue=JSON.stringify({expiry:ttl?(ttl*86400)+now:DEFAULT_ITEM_TTL+now,val:value});try{localStorage.setItem(lsKey,encodedWrappedValue);if(localStorage.getItem(lsKey)!==encodedWrappedValue){setError('Couldn\'t write value',key,value,context);return false;}return true;}catch(e){setError('Couldn\'t write value due to LocalStorage exception '+e.toString(),key,value,context);return false;}},getItem:function(key,context){var lsKey=makeKeyForLocalStorage(key,context),rawValue,wrappedValue
49​;try{rawValue=localStorage.getItem(lsKey);}catch(e){setError('Couldn\'t read value due to LocalStorage exception '+e.toString(),key,null,context);return null;}if(rawValue===null){return null;}try{wrappedValue=JSON.parse(rawValue);}catch(e){if(e instanceof SyntaxError){setError('Couldn\'t parse value, removing. '+e.message,key,rawValue,context);try{localStorage.removeItem(lsKey);}catch(e){setError('Couldn\'t remove value due to LocalStorage exception '+e.toString(),key,rawValue,context);}return null;}else{setError('Couldn\'t read value '+e.message,key,rawValue,context);throw e;}}if(!wrappedValue.expiry||wrappedValue.expiry<now){return null;}return wrappedValue.val;},removeItem:function(key,context){var lsKey=makeKeyForLocalStorage(key,context);try{localStorage.removeItem(lsKey);}catch(e){setError('Couldn\'t remove value due to LocalStorage exception '+e.toString(),key,rawValue,context);}},getError:function(){return error;},setNotAvailableError:function(){setError(
50​'LocalStorage not available.',null,null);},setMaintenanceError:function(lsKey){var m=lsKey.match(FIND_KEY_REGEX),key=m?m[1]:null;setError('Error during KVStore maintenance.',key,null);},setCampaignName:function(cName){campaignName=cName;},setBannerName:function(bName){bannerName=bName;},setCategory:function(c){category=c;}};})(jQuery,mediaWiki);});mw.loader.implement("ext.centralNotice.kvStoreMaintenance",function($,jQuery,require,module){(function($,mw){var now=Math.round((new Date()).getTime()/1000),cn,PREFIX_REGEX=/^CentralNoticeKV/,LEEWAY_FOR_REMOVAL=86400,MAX_BATCH_SIZE=10,MAX_ITEMS_TO_PROCESS=60;function makeRemoveExpiredBatchFunction(keys){return function(){var n,key,rawValue,value;for(n=0;n<keys.length;n++){key=keys[n];if(!PREFIX_REGEX.test(key)){continue;}try{rawValue=localStorage.getItem(key);}catch(e){return;}if(rawValue===null){continue;}try{value=JSON.parse(rawValue);}catch(e){localStorage.removeItem(key);if(cn.kvStore){cn.kvStore.setMaintenanceError(key);}continue;}if(!value.expiry||(value.expiry+LEEWAY_FOR_REMOVAL)<now){localStorage.removeItem(key);}}};}mw.centralNotice=cn=(mw.centralNotice||{});cn.kvStoreMaintenance={removeExpiredItemsWhenIdle:function(){var funcs,keys,i,stopBefore,key,j=0,keysToProcess;try{if(!window.localStorage||localStorage.length===0){return;}}catch(e){return;}i=Math.floor(Math.random()*
51​localStorage.length);stopBefore=(i+Math.min(MAX_ITEMS_TO_PROCESS,localStorage.length))%localStorage.length;keys=[];do{key=localStorage.key(i);if(key!==null){keys.push(key);}i++;if(i===localStorage.length){i=i-localStorage.length;}}while(i!==stopBefore);funcs=[];while(j<keys.length){keysToProcess=keys.slice(j,Math.min(keys.length,j+MAX_BATCH_SIZE));funcs.push(makeRemoveExpiredBatchFunction(keysToProcess));j+=MAX_BATCH_SIZE;}cn.doIdleWork(funcs);}};})(jQuery,mediaWiki);});mw.loader.implement("ext.centralNotice.largeBannerLimit",function($,jQuery,require,module){(function(mw){'use strict';var cn=mw.centralNotice,forced=mw.util.getParamValue('force'),useCookies,mixin=new cn.Mixin('largeBannerLimit'),KV_STORE_KEY='large_banner_limit';function isLarge(){var currentBucket=cn.internal.bucketer.getBucket();return(currentBucket<=1);}mixin.setPreBannerHandler(function(mixinParams){var newBucket;useCookies=cn.getDataProperty('campaignCategoryUsesLegacy');if(forced||cn.isBannerCanceled()){return;}if(!isLarge()){return;}if(useCookies&&cn.cookiesEnabled()&&!mw.cookie.get(mixinParams.identifier,'')){return;}if(!useCookies&&cn.kvStore.isAvailable()){if(mixinParams.identifier&&!cn.kvStore.getItem(KV_STORE_KEY+'_'+mixinParams.identifier,cn.kvStore.contexts.GLOBAL)){return;}if(!mixinParams.identifier&&!cn.kvStore.getItem(KV_STORE_KEY,cn.kvStore.contexts.CATEGORY)){return;}}if(mixinParams.randomize){newBucket=Math.floor(Math.random()*2)+2;}else{newBucket=cn.internal.
52​bucketer.getBucket()+2;}cn.setBucket(newBucket);});mixin.setPostBannerHandler(function(mixinParams){if(isLarge()&&!forced&&cn.internal.state.isBannerShown()){if(useCookies){mw.cookie.set(mixinParams.identifier,Date.now(),{expires:mixinParams.days*24*60*60,path:'/',prefix:''});}else if(mixinParams.identifier){cn.kvStore.setItem(KV_STORE_KEY+'_'+mixinParams.identifier,Date.now(),cn.kvStore.contexts.GLOBAL,mixinParams.days);}else{cn.kvStore.setItem(KV_STORE_KEY,Date.now(),cn.kvStore.contexts.CATEGORY,mixinParams.days);}}});cn.registerCampaignMixin(mixin);})(mediaWiki);});mw.loader.implement("ext.centralNotice.legacySupport",function($,jQuery,require,module){(function($,mw){var cn=mw.centralNotice,mixin=new cn.Mixin('legacySupport');mixin.setPreBannerHandler(function(mixinParams){if(mixinParams.setSRISampleRate){cn.setRecordImpressionSampleRate(mixinParams.sriSampleRate);}if(mixinParams.bannersNotGuaranteedToDisplay){cn.setBannersNotGuaranteedToDisplay();}});cn.registerCampaignMixin(mixin);})(jQuery,mediaWiki);});mw.loader.implement("ext.centralNotice.startUp",function($,jQuery,require,module){(function($,mw){var cn=mw.centralNotice;if(mw.config.get('wgNamespaceNumber')==-1){return;}cn.doIdleWork=function(funcs){funcs=$.isArray(funcs)?funcs:[funcs];$(function(){var i;for(i=0;i<funcs.length;i++){setTimeout(funcs[i],1000*(i+1));}});};$(function(){$('#siteNotice').prepend('<div id="centralNotice"></div>');});if(mw.util.getParamValue('banner')){mw.loader.using('ext.centralNotice.display').done(function(){cn.displayTestingBanner();});return;}if(cn.choiceData===undefined){mw.log('No choice data set for CentralNotice campaign '+'and banner selection.');return;}cn.doIdleWork(cn.kvStoreMaintenance.removeExpiredItemsWhenIdle);if(cn.choiceData.length===0){return;}cn.chooseAndMaybeDisplay();})(jQuery,mediaWiki);});mw.loader.implement("ext.centralauth.centralautologin",function($,jQuery,require,module){(function(mw){var url,params,len,param,i;if(mw.config.get('wgUserName')!==null){return;}if(mw.config.get('wgCanonicalSpecialPageName')!=='Userlogin'){try{if(+localStorage.getItem('CentralAuthAnon')>new Date().getTime()){return;}}catch(e){}if(/(^|; )CentralAuthAnon=1/.test(document.cookie)){return;}}url=mw.config.get('wgCentralAuthCheckLoggedInURL');if(url){url+='&proto='+encodeURIComponent(location.protocol.replace(':',''));if(mw.config.get('wgCentralAuthMobileDomain')===true){url+='&mobile=1';}if(mw.config.get('wgCanonicalSpecialPageName')==='Userlogin'){url+='&return=1';params=location.search.slice(1).split('&');len=params.length;for(i=0;i<len;i++){param=params[i].split('=');param=decodeURIComponent(param[0]);if(param==='returnto'||param==='returntoquery'){url+='&'+params[i];}}}mw.loader.load(url);}}(mediaWiki));},{"css":[
53​"@-webkit-keyframes centralAuthPPersonalAnimation{0%{opacity:0;-webkit-transform:translateY(-20px)}100%{opacity:1;-webkit-transform:translateY(0)}}@-moz-keyframes centralAuthPPersonalAnimation{0%{opacity:0;-moz-transform:translateY(-20px)}100%{opacity:1;-moz-transform:translateY(0)}}@-o-keyframes centralAuthPPersonalAnimation{0%{opacity:0;-o-transform:translateY(-20px)}100%{opacity:1;-o-transform:translateY(0)}}@keyframes centralAuthPPersonalAnimation{0%{opacity:0;transform:translateY(-20px)}100%{opacity:1;transform:translateY(0)}}.centralAuthPPersonalAnimation{-webkit-animation-duration:1s;-moz-animation-duration:1s;-o-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;-o-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:centralAuthPPersonalAnimation;-moz-animation-name:centralAuthPPersonalAnimation;-o-animation-name:centralAuthPPersonalAnimation;animation-name:centralAuthPPersonalAnimation}"]});mw.loader.implement("ext.uls.init",function($,jQuery,require,module){(function($,mw){'use strict';mw.uls=mw.uls||{};mw.uls.previousLanguagesStorageKey='uls-previous-languages';mw.uls.languageSettingsModules=['ext.uls.inputsettings','ext.uls.displaysettings'];mw.uls.changeLanguage=function(language){var deferred=new $.Deferred();function changeLanguageAnon(){if(mw.config.get('wgULSAnonCanChangeLanguage')){mw.cookie.set('language',language);location.reload();}}deferred.done(function(){var api;if(mw.user.isAnon()){changeLanguageAnon();return;}api=new mw.Api();api.saveOption('language',language).done(function(){location.reload();}).fail(function(){changeLanguageAnon();});});mw.hook('mw.uls.interface.language.change').fire(language,deferred);window.setTimeout(function(){deferred.resolve();},mw.config.get('wgULSEventLogging')*500);};mw.uls.setPreviousLanguages=function(previousLanguages){try{localStorage.setItem(mw.uls.previousLanguagesStorageKey,JSON.stringify(previousLanguages.slice(0,9)))
54​;}catch(e){}};mw.uls.getPreviousLanguages=function(){var previousLanguages=[];try{previousLanguages.push.apply(previousLanguages,JSON.parse(localStorage.getItem(mw.uls.previousLanguagesStorageKey)));}catch(e){}return previousLanguages.slice(0,9);};mw.uls.addPreviousLanguage=function(language){var languages=mw.uls.getPreviousLanguages();languages=$.map(languages,function(element){return element===language?undefined:element;});languages.unshift(language);mw.uls.setPreviousLanguages(languages);};mw.uls.getBrowserLanguage=function(){return(window.navigator.language||window.navigator.userLanguage||'').split('-')[0];};mw.uls.getCountryCode=function(){return window.Geo&&(window.Geo.country||window.Geo.country_code);};mw.uls.getAcceptLanguageList=function(){return mw.config.get('wgULSAcceptLanguageList')||[];};mw.uls.getFrequentLanguageList=function(countryCode){var unique=[],list=[mw.config.get('wgUserLanguage'),mw.config.get('wgContentLanguage'),mw.uls.getBrowserLanguage()].concat(mw.uls.
55​getPreviousLanguages()).concat(mw.uls.getAcceptLanguageList());countryCode=countryCode||mw.uls.getCountryCode();if(countryCode){list=list.concat($.uls.data.getLanguagesInTerritory(countryCode));}$.each(list,function(i,v){if($.inArray(v,unique)===-1){unique.push(v);}});unique=$.grep(unique,function(langCode){if($.uls.data.getAutonym(langCode)!==langCode){return true;}return false;});return unique;};}(jQuery,mediaWiki));},{"css":[
56​".uls-menu{border-radius:4px}.uls-search,.uls-language-settings-close-block{border-top-right-radius:4px;border-top-left-radius:4px}.uls-language-list{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.uls-menu a{cursor:pointer}.uls-menu.callout .caret-before,.uls-menu.callout .caret-after{border-top:10px solid transparent;border-right:10px solid #C9C9C9;border-bottom:10px solid transparent;display:inline-block;left:-11px; top:17px;position:absolute}.uls-menu.callout .caret-after{border-right:10px solid #FCFCFC;display:inline-block;left:-10px}.uls-menu.callout--languageselection .caret-after{border-right:10px solid #FFF}.uls-ui-languages button{width:22%;text-overflow:ellipsis;margin-right:2%;white-space:nowrap;overflow:hidden;padding:0.5em 0}button.uls-more-languages{width:auto}.settings-title{font-size:11pt}.settings-text{color:#555555;font-size:9pt}div.display-settings-block:hover .settings-text{color:#252525}.uls-search-wrapper-wrapper{position:relative;padding-left:40px;margin-top:5px;margin-bottom:5px}.uls-icon-back{background:transparent url(/w/extensions/UniversalLanguageSelector/resources/images/back-grey-ltr.png?90e9b) no-repeat scroll center center;background-image:-webkit-linear-gradient(transparent,transparent),url(/w/extensions/UniversalLanguageSelector/resources/images/back-grey-ltr.svg?ae714);background-image:linear-gradient(transparent,transparent),url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20id%3D%22Layer_1%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M7%2013.1l8.9%208.9c.8-.8.8-2%200-2.8l-6.1-6.1%206-6.1c.8-.8.8-2%200-2.8L7%2013.1z%22%20id%3D%22path3%22%20fill%3D%22%23555%22%2F%3E%0A%3C%2Fsvg%3E%0A);background-image:linear-gradient(transparent,transparent),url(/w/extensions/UniversalLanguageSelector/resources/images/back-grey-ltr.svg?ae714)!ie;background-size:28px;background-position:center center;height:32px;width:40px;display:block;position:absolute;left:0;border-right:1px solid #C9C9C9;opacity:0.8}.uls-icon-back:hover{opacity:1;cursor:pointer} .grid .uls-search{padding-left:0px}.uls-search-label{background-size:28px;opacity:0.8}.uls-filterinput{padding-left:0px}"
57​]});mw.loader.implement("ext.uls.interface",function($,jQuery,require,module){(function($,mw){'use strict';var previousLanguageAutonymStorageKey='uls-previous-language-autonym';function displaySettings(){var $displaySettingsTitle,displaySettingsText,$displaySettings;displaySettingsText=$.i18n('ext-uls-display-settings-desc');$displaySettingsTitle=$('<div data-i18n="ext-uls-display-settings-title">').addClass('settings-title').attr('title',displaySettingsText);$displaySettings=$('<div>').addClass('display-settings-block').prop('id','display-settings-block').append($displaySettingsTitle.i18n());return $displaySettings;}function inputSettings(){var $inputSettingsTitle,inputSettingsText,$inputSettings;inputSettingsText=$.i18n('ext-uls-input-settings-desc');$inputSettingsTitle=$('<div data-i18n="ext-uls-input-settings-title">').addClass('settings-title').attr('title',inputSettingsText);$inputSettings=$('<div>').addClass('input-settings-block').prop('id','input-settings-block').append(
58​$inputSettingsTitle.i18n());return $inputSettings;}function addDisplaySettings(uls){var $displaySettings=displaySettings();uls.$menu.find('#uls-settings-block').append($displaySettings);$displaySettings.on('click',function(){var languagesettings=$displaySettings.data('languagesettings'),displaySettingsOptions={defaultModule:'display'},ulsPosition=mw.config.get('wgULSPosition'),anonMode=(mw.user.isAnon()&&!mw.config.get('wgULSAnonCanChangeLanguage'));if(!languagesettings){if(ulsPosition==='personal'&&!anonMode){displaySettingsOptions.onClose=function(){uls.show();};}$.extend(displaySettingsOptions,uls.position());mw.loader.using(mw.uls.languageSettingsModules,function(){$displaySettings.languagesettings(displaySettingsOptions).click();});}mw.hook('mw.uls.settings.open').fire('uls');uls.hide();});}function addInputSettings(uls){var $inputSettings=inputSettings();uls.$menu.find('#uls-settings-block').append($inputSettings);$inputSettings.on('click',function(){var position=uls.position(),
59​languagesettings=$inputSettings.data('languagesettings');if(!languagesettings){mw.loader.using(mw.uls.languageSettingsModules,function(){$inputSettings.languagesettings({defaultModule:'input',onClose:function(){uls.show();},top:position.top,left:position.left}).click();});}mw.hook('mw.uls.settings.open').fire('uls');uls.hide();});}function addAccessibilityFeatures($target){$target.attr({tabIndex:0,role:'button','aria-haspopup':!0});$target.click(function(){$(this).css('outline','none');});$target.blur(function(){$(this).css('outline','');});$target.keydown(function(event){if(event.keyCode===13){$(this).click();event.preventDefault();event.stopPropagation();}});}function getUndoAutonym(code){var autonym,deferred=$.Deferred();try{autonym=localStorage.getItem(previousLanguageAutonymStorageKey);}catch(e){}if(autonym){mw.loader.using('jquery.tipsy',function(){deferred.resolve(autonym);});}else{mw.loader.using(['jquery.uls.data','jquery.tipsy'],function(){deferred.resolve($.uls.data.
60​getAutonym(code));});}return deferred.promise();}function userCanChangeLanguage(){return mw.config.get('wgULSAnonCanChangeLanguage')||!mw.user.isAnon();}function userHasChangedLanguage(){var previousLang=mw.uls.getPreviousLanguages()[0],currentLang=mw.config.get('wgUserLanguage');if(previousLang===undefined){mw.uls.addPreviousLanguage(currentLang);}return previousLang&&previousLang!==currentLang;}function showUndoTooltip(){var previousLanguages,previousLang,$ulsTrigger,ulsPosition=mw.config.get('wgULSPosition'),currentLang=mw.config.get('wgUserLanguage'),rtlPage=$('body').hasClass('rtl'),tipsyGravity={personal:'n',interlanguage:rtlPage?'e':'w'};$ulsTrigger=(ulsPosition==='interlanguage')?$('.uls-settings-trigger'):$('.uls-trigger');function hideTipsy(){$ulsTrigger.tipsy('hide');}function showTipsy(timeout){var tipsyTimer=0;$ulsTrigger.tipsy('show');$('.tipsy').on('mouseover',function(){window.clearTimeout(tipsyTimer);});$('.tipsy').on('mouseout',function(){tipsyTimer=window.setTimeout(
61​hideTipsy,timeout);});$('.tipsy').on('click',hideTipsy);$('a.uls-prevlang-link').on('click.ulstipsy',function(event){var deferred=$.Deferred();event.preventDefault();deferred.done(function(){mw.uls.changeLanguage(event.target.lang);});mw.hook('mw.uls.language.revert').fire(deferred);window.setTimeout(function(){deferred.resolve();},mw.config.get('wgULSEventLogging')*500);});tipsyTimer=window.setTimeout(hideTipsy,timeout);}previousLanguages=mw.uls.getPreviousLanguages();previousLang=previousLanguages[0];mw.uls.addPreviousLanguage(currentLang);getUndoAutonym(previousLang).done(function(autonym){$ulsTrigger.tipsy({gravity:tipsyGravity[ulsPosition],delayOut:3000,html:!0,fade:!0,trigger:'manual',title:function(){var link;link=$('<a>').text(autonym).attr({href:'#','class':'uls-prevlang-link',lang:previousLang,dir:'auto'});link=$('<div>').html(link).html();return mw.message('ext-uls-undo-language-tooltip-text','$1').escaped().replace('$1',link);}});window.setTimeout(function(){showTipsy(
62​6000);},700);$ulsTrigger.on('mouseover',function(){if(!$('.uls-menu:visible').length){showTipsy(3000);}});});try{localStorage.setItem(previousLanguageAutonymStorageKey,mw.config.get('wgULSCurrentAutonym'));}catch(e){}}function initInterface(){var $triggers,$pLang,$ulsTrigger=$('.uls-trigger'),rtlPage=$('body').hasClass('rtl'),anonMode=(mw.user.isAnon()&&!mw.config.get('wgULSAnonCanChangeLanguage')),imeSelector=mw.config.get('wgULSImeSelectors').join(', '),ulsPosition=mw.config.get('wgULSPosition');if(ulsPosition==='interlanguage'){$pLang=$('#p-lang');$ulsTrigger=$('<span>').addClass('uls-settings-trigger');$pLang.prepend($ulsTrigger);$ulsTrigger=$('.uls-settings-trigger');$pLang.find('.uls-p-lang-dummy').remove();if(!$pLang.find('div ul').children().length){$pLang.find('h3').text(mw.msg('uls-plang-title-languages'));}$ulsTrigger.attr({title:mw.msg('ext-uls-select-language-settings-icon-tooltip')});$ulsTrigger.on('click',function(e,eventParams){var languagesettings=$ulsTrigger.data(
63​'languagesettings'),languageSettingsOptions;if(languagesettings){if(!languagesettings.shown){mw.hook('mw.uls.settings.open').fire(eventParams&&eventParams.source||'interlanguage');}}else{languageSettingsOptions={defaultModule:'display',onVisible:function(){var caretRadius,caretPosition,$caretBefore=$('<span>').addClass('caret-before'),$caretAfter=$('<span>').addClass('caret-after'),ulsTriggerHeight=this.$element.height(),ulsTriggerWidth=this.$element.width(),ulsTriggerOffset=this.$element.offset();this.$window.addClass('callout');this.$window.prepend($caretBefore,$caretAfter);caretRadius=parseInt($caretBefore.css('border-top-width'),10);if(rtlPage){this.left=ulsTriggerOffset.left-this.$window.width()-caretRadius;}else{this.left=ulsTriggerOffset.left+ulsTriggerWidth+caretRadius;}caretPosition=$caretBefore.position();this.top=ulsTriggerOffset.top+(ulsTriggerHeight/2)-(caretRadius+caretPosition.top+2);this.position();}};mw.loader.using(mw.uls.languageSettingsModules,function(){$ulsTrigger
64​.languagesettings(languageSettingsOptions).click();});e.stopPropagation();}});}else if(anonMode){$ulsTrigger.on('click',function(e,eventParams){var languagesettings=$ulsTrigger.data('languagesettings');e.preventDefault();if(languagesettings){if(!languagesettings.shown){mw.hook('mw.uls.settings.open').fire(eventParams&&eventParams.source||'personal');}}else{mw.loader.using(mw.uls.languageSettingsModules,function(){$ulsTrigger.languagesettings();$ulsTrigger.trigger('click',eventParams);});}});}else{$ulsTrigger.on('click',function(e,eventParams){var uls=$ulsTrigger.data('uls');e.preventDefault();if(uls){if(!uls.shown){mw.hook('mw.uls.settings.open').fire(eventParams&&eventParams.source||'personal');}}else{mw.loader.using('ext.uls.mediawiki',function(){$ulsTrigger.uls({quickList:function(){return mw.uls.getFrequentLanguageList();},onReady:function(){var uls=this;mw.loader.using(mw.uls.languageSettingsModules,function(){addDisplaySettings(uls);addInputSettings(uls);});},onSelect:function(
65​language){mw.uls.changeLanguage(language);}});window.setTimeout(function(){$ulsTrigger.trigger('click',eventParams);},0);});}});}$triggers=$('.uls-settings-trigger, .uls-trigger');addAccessibilityFeatures($triggers);$('#uls-preferences-link').text(mw.msg('ext-uls-language-settings-preferences-link')).click(function(){$ulsTrigger.trigger('click',{source:'preferences'});return false;});if(userCanChangeLanguage()&&userHasChangedLanguage()){showUndoTooltip();}$('body').on('focus.imeinit',imeSelector,function(){var $input=$(this);$('body').off('.imeinit');mw.loader.using('ext.uls.ime',function(){mw.ime.setup();mw.ime.handleFocus($input);});});}$(document).ready(function(){initInterface();});}(jQuery,mediaWiki));},{},{"ext-uls-language-settings-preferences-link":"Mai multe set\u0103ri de limb\u0103","ext-uls-select-language-settings-icon-tooltip":"Set\u0103ri de limb\u0103","ext-uls-undo-language-tooltip-text":"Limba schimbat\u0103 din $1","uls-plang-title-languages":"Limbi"});mw.loader.implement("ext.uls.preferences",function($,jQuery,require,module){(function($,mw){'use strict';var ULSPreferences;function preferenceStore(){return{set:function(key,value){if(typeof value==='object'){value=JSON.stringify(value);}try{localStorage.setItem(key,value);}catch(e){}},get:function(key){var data;try{data=JSON.parse(localStorage.getItem(key));}catch(e){}return data;}};}ULSPreferences=function(){this.preferenceName='uls-preferences';this.username=mw.user.getName();this.isAnon=mw.user.isAnon();this.preferences=null;this.init();};ULSPreferences.prototype={init:function(){var options;if(this.isAnon){this.preferences=preferenceStore().get(this.preferenceName);}else{options=mw.user.options.get(this.preferenceName);if(!options){options='{}';}try{this.preferences=JSON.parse(options);}catch(e){this.preferences={};}}this.preferences=this.preferences||{};},set:function(key,value){this.preferences[key]=value;},get:function(key){return this.preferences[key];},save:function(callback
66​){var ulsPreferences=this;callback=callback||$.noop;if(this.isAnon){preferenceStore().set(this.preferenceName,this.preferences);callback.call(this,true);}else{new mw.Api().saveOption(ulsPreferences.preferenceName,JSON.stringify(ulsPreferences.preferences)).done(function(){callback.call(this,true);}).fail(function(){callback.call(this,false);});}}};mw.uls=mw.uls||{};mw.uls.preferences=function(){var data=$('body').data('preferences');if(!data){$('body').data('preferences',(data=new ULSPreferences()));}return data;};}(jQuery,mediaWiki));});mw.loader.implement("ext.uls.webfonts",function($,jQuery,require,module){(function($,mw){'use strict';var ulsPreferences,tofuSalt='\u0D00',tofuLanguages={};mw.webfonts=mw.webfonts||{};ulsPreferences=mw.uls.preferences();mw.webfonts.preferences={registry:{fonts:{},webfontsEnabled:mw.config.get('wgULSWebfontsEnabled')},isEnabled:function(){return this.registry.webfontsEnabled;},enable:function(){this.registry.webfontsEnabled=!0;},disable:function(){this.registry.webfontsEnabled=!1;},setFont:function(language,font){this.registry.fonts[language]=font;},getFont:function(language){return this.registry.fonts[language];},save:function(callback){ulsPreferences=mw.uls.preferences();ulsPreferences.set('webfonts',this.registry);ulsPreferences.save(callback);},load:function(){mw.webfonts.preferences.registry=$.extend(this.registry,ulsPreferences.get('webfonts'));}};function detectTofu(text){var index,$fixture,width={},height={},length=Math.min(4,text.length),detected=!1;if($.client.test({
67​msie:!1})){text=tofuSalt+text;}$fixture=$('<span>').css({fontSize:'72px',fontFamily:'sans-serif'}).appendTo('body');for(index=0;index<length;index++){$fixture.text(text[index]);width[index]=$fixture.width()||width[index-1];height[index]=$fixture.height();if(index>0&&(width[index]!==width[index-1]||height[index]!==height[index-1])){detected=!1;break;}}$fixture.remove();if(index===length){detected=!0;}return detected;}mw.webfonts.setup=function(){var mediawikiFontRepository=$.webfonts.repository;mediawikiFontRepository.base=mw.config.get('wgULSFontRepositoryBasePath');$.extend($.fn.webfonts.defaults,{repository:mediawikiFontRepository,fontStack:$('body').css('font-family').split(/, /g),fontSelector:function(repository,language,classes){var font,autonym,defaultFont;if(!language){return null;}defaultFont=repository.defaultFont(language);if(classes&&$.inArray('autonym',classes)>=0){autonym=!0;}font=mw.webfonts.preferences.getFont(language);if(!font||autonym){if((!defaultFont||
68​defaultFont==='system')&&!autonym){return font;}if(tofuLanguages[language]===undefined){tofuLanguages[language]=detectTofu($.uls.data.getAutonym(language));if(tofuLanguages[language]){mw.log('tofu detected for '+language);mw.hook('mw.uls.webfonts.tofudetected').fire(language);}}if(tofuLanguages[language]){font=autonym?'Autonym':defaultFont;}else{font='system';}}if(font==='system'){font=null;}return font;},exclude:(function(){var excludes=mw.config.get('wgULSNoWebfontsSelectors').join(', ');if(mw.user.options.get('editfont')!=='default'){excludes=excludes?excludes+',textarea':'textarea';}return excludes;}()),overridableFontFamilies:(function(){var headingFont=$('h1').css('font-family');return headingFont?[headingFont]:[];}())});setTimeout(function(){$('body').webfonts();$('body').data('webfonts').load('Autonym');},0);};$(document).ready(function(){mw.webfonts.preferences.load();if(mw.webfonts.preferences.isEnabled()){mw.loader.using('ext.uls.webfonts.fonts',mw.webfonts.setup);}});}(
69​jQuery,mediaWiki));});mw.loader.implement("ext.visualEditor.desktopArticleTarget.init",function($,jQuery,require,module){(function(){var conf,tabMessages,uri,pageExists,viewUri,veEditUri,isViewPage,isEditPage,pageCanLoadVE,init,targetPromise,enable,tempdisable,autodisable,tabPreference,userPrefEnabled,userPrefPreferShow,initialWikitext,oldid,onlyTabIsVE,active=!1,progressStep=0,progressSteps=[[30,3000],[70,2000],[100,1000]],plugins=[];function showLoading(){var $content,contentRect,offsetTop,windowHeight,top,bottom,middle;$('html').addClass('ve-activated ve-loading');if(!init.$loading){init.$loading=$('<div class="ve-init-mw-desktopArticleTarget-loading-overlay">'+'<div class="ve-init-mw-desktopArticleTarget-progress">'+'<div class="ve-init-mw-desktopArticleTarget-progress-bar" style="width: 0;"></div>'+'</div>'+'</div>');}$content=$('#content');contentRect=$content[0].getBoundingClientRect();offsetTop=$content.offset().top;windowHeight=$(window).height();top=Math.max(contentRect.top,0);bottom=Math.min(
70​contentRect.bottom,windowHeight);middle=(top+bottom)/2;init.$loading.css('top',middle-offsetTop);$content.prepend(init.$loading);}function incrementLoadingProgress(){var step=progressSteps[progressStep];setLoadingProgress(step[0],step[1]);progressStep++;}function resetLoadingProgress(){progressStep=0;setLoadingProgress(0,0);}function setLoadingProgress(target,duration){var $bar=init.$loading.find('.ve-init-mw-desktopArticleTarget-progress-bar').stop();$bar.css('transition','width '+duration+'ms ease-in');setTimeout(function(){$bar.css('width',target+'%');});}function hideLoading(){$('html').removeClass('ve-loading');if(init.$loading){init.$loading.detach();}}function handleLoadFailure(){resetLoadingProgress();if($('#wpTextbox1').length||mw.config.get('wgAction')!=='edit'){$('html').removeClass('ve-activated');hideLoading();}else{location.href=viewUri.clone().extend({action:'edit',veswitched:1});}}function getTarget(){if(!targetPromise){targetPromise=mw.loader.using(
71​'ext.visualEditor.targetLoader').then(function(){mw.libs.ve.targetLoader.addPlugin(function(){return mw.loader.using(['user','site']).then(null,function(){return $.Deferred().resolve();});});['ext.visualEditor.desktopArticleTarget','ext.visualEditor.mwimage','ext.visualEditor.mwmeta'].forEach(mw.libs.ve.targetLoader.addPlugin);plugins.forEach(mw.libs.ve.targetLoader.addPlugin);plugins=[];return mw.libs.ve.targetLoader.loadModules();}).then(function(){var target;target=ve.init.mw.targetFactory.create('article');target.connect(this,{transformPage:function(){if(onlyTabIsVE){$('#ca-edit').addClass('selected');}},restorePage:function(){if(onlyTabIsVE){$('#ca-edit').removeClass('selected');}},deactivate:function(){if(userPrefPreferShow&&(!conf.singleEditTab||tabPreference==='multi-tab')){init.setupSectionLinks();}}});$('#content').append(target.$element);return target;},function(e){mw.log.warn('VisualEditor failed to load: '+e);});}targetPromise.then(function(){setTimeout(function(){mw.
72​loader.load('easy-deflate.deflate');},500);});return targetPromise;}function activatePageTarget(modified){var key;trackActivateStart({type:'page',mechanism:'click'});if(!active){if(mw.config.get('wgVisualEditorConfig').singleEditTab&&tabPreference==='remember-last'){key=pageExists?'edit':'create';if($('#ca-view-foreign').length){key+='-local';}$('#ca-edit a').text(mw.msg(key));}if(uri.query.action!=='edit'&&uri.query.veaction!=='edit'){if(history.pushState){history.replaceState({tag:'visualeditor'},document.title,uri);history.pushState({tag:'visualeditor'},document.title,veEditUri);}uri=veEditUri;}activateTarget(null,modified);}}function activateTarget(targetPromise,modified){var dataPromise=mw.loader.using('ext.visualEditor.targetLoader').then(function(){return mw.libs.ve.targetLoader.requestPageData(mw.config.get('wgRelevantPageName'),oldid,'mwTarget',modified);}).done(incrementLoadingProgress).fail(handleLoadFailure);setEditorPreference('visualeditor');showLoading();
73​incrementLoadingProgress();active=!0;targetPromise=targetPromise||getTarget();targetPromise.then(function(target){incrementLoadingProgress();target.on('deactivate',function(){active=!1;});target.on('loadError',handleLoadFailure);return target.activate(dataPromise);}).then(function(){ve.track('mwedit.ready');}).always(function(){hideLoading();resetLoadingProgress();});}function trackActivateStart(initData){ve.track('trace.activate.enter');ve.track('mwedit.init',initData);mw.libs.ve.activationStart=ve.now();}function setEditorPreference(editor){if(editor!=='visualeditor'&&editor!=='wikitext'){throw new Error('setEditorPreference called with invalid option: ',editor);}$.cookie('VEE',editor,{path:'/',expires:30});if(mw.user.isAnon()){return $.Deferred().resolve();}if(mw.user.options.get('visualeditor-editor')===editor){return $.Deferred().resolve();}return new mw.Api().saveOption('visualeditor-editor',editor).then(function(){mw.user.options.set('visualeditor-editor',editor);});}
74​function getLastEditor(){var editor=$.cookie('VEE');if(!mw.user.isAnon()||!editor||!(editor==='visualeditor'||editor==='wikitext')){editor=mw.user.options.get('visualeditor-editor');}return editor;}conf=mw.config.get('wgVisualEditorConfig');tabMessages=conf.tabMessages;uri=new mw.Uri();oldid=uri.query.oldid||$('input[name=parentRevId]').val();pageExists=!!mw.config.get('wgRelevantArticleId');viewUri=new mw.Uri(mw.util.getUrl(mw.config.get('wgRelevantPageName')));isViewPage=mw.config.get('wgIsArticle')&&!('diff'in uri.query);pageCanLoadVE=(isViewPage||mw.config.get('wgAction')==='edit'||mw.config.get('wgAction')==='submit');isEditPage=conf.singleEditTab&&(uri.query.action==='edit'||uri.query.action==='submit');init={blacklist:conf.blacklist,addPlugin:function(plugin){plugins.push(plugin);},setupSkin:function(){init.setupTabs();init.setupSectionLinks();},setupTabs:function(){var caVeEdit,action=pageExists?'edit':'create',pTabsId=$('#p-views').length?'p-views':'p-cactions',$caSource=$(
75​'#ca-viewsource'),$caEdit=$('#ca-edit'),$caVeEdit=$('#ca-ve-edit'),$caEditLink=$caEdit.find('a'),$caVeEditLink=$caVeEdit.find('a'),reverseTabOrder=$('body').hasClass('rtl')&&pTabsId==='p-views',caVeEditNextnode=(reverseTabOrder^conf.tabPosition==='before')?$caEdit.get(0):$caEdit.next().get(0);if(mw.config.get('wgNamespaceIds')[true&&'education_program']===mw.config.get('wgNamespaceNumber')){return;}if(!$caVeEdit.length){if($caEdit.length&&!$caSource.length){caVeEdit=mw.util.addPortletLink(pTabsId,veEditUri,tabMessages[action]!==null?mw.msg(tabMessages[action]):$caEditLink.text(),'ca-ve-edit',mw.msg('tooltip-ca-ve-edit'),mw.msg('accesskey-ca-ve-edit'),caVeEditNextnode);$caVeEdit=$(caVeEdit);$caVeEditLink=$caVeEdit.find('a');}}else if($caEdit.length&&$caVeEdit.length){if(reverseTabOrder^conf.tabPosition==='before'){if($caEdit[0].nextSibling===$caVeEdit[0]){$caVeEdit.after($caEdit);}}else{if($caVeEdit[0].nextSibling===$caEdit[0]){$caEdit.after($caVeEdit);}}if(tabMessages[action]!==null){
76​$caVeEditLink.text(mw.msg(tabMessages[action]));}}if(!(init.isAvailable&&userPrefPreferShow)){$caVeEdit.remove();}else if(pageCanLoadVE){$caVeEdit.on('click',init.onEditTabClick);}if($('#ca-view-foreign').length){if(tabMessages[action+'localdescriptionsource']!==null){$caEditLink.text(mw.msg(tabMessages[action+'localdescriptionsource']));}}else{if(tabMessages[action+'source']!==null){$caEditLink.text(mw.msg(tabMessages[action+'source']));}}if(init.isAvailable){if(conf.tabPosition==='before'){$caEdit.addClass('collapsible');}else{$caVeEdit.addClass('collapsible');}}},setupSectionLinks:function(){var $editsections=$('#mw-content-text .mw-editsection'),bodyDir=$('body').css('direction');if($editsections.css('direction')!==bodyDir){$editsections.css('direction',bodyDir);}if($editsections.find('.mw-editsection-visualeditor').length===0){$editsections.each(function(){var $editsection=$(this),$editSourceLink=$editsection.find('a').eq(0),$editLink=$editSourceLink.clone(),$divider=$('<span>'),
77​dividerText=mw.msg('pipe-separator');if(tabMessages.editsectionsource!==null){$editSourceLink.text(mw.msg(tabMessages.editsectionsource));}if(tabMessages.editsection!==null){$editLink.text(mw.msg(tabMessages.editsection));}$divider.addClass('mw-editsection-divider').text(dividerText);if(!$('#ca-view-foreign').length){$editLink.attr('href',function(i,val){return new mw.Uri(veEditUri).extend({vesection:new mw.Uri(val).query.section});}).addClass('mw-editsection-visualeditor');if(conf.tabPosition==='before'){$editSourceLink.before($editLink,$divider);}else{$editSourceLink.after($divider,$editLink);}}});}if(pageCanLoadVE){$editsections.find('.mw-editsection-visualeditor').on('click',init.onEditSectionLinkClick);}},onEditTabClick:function(e){if((e.which&&e.which!==1)||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey){return;}e.preventDefault();init.activateVe();},activateVe:function(){var wikitext=$('#wpTextbox1').val(),wikitextModified=wikitext!==initialWikitext;if($.fn.dialog){$(
78​'.ui-dialog-content').dialog('close');}if(mw.config.get('wgAction')==='submit'||(mw.config.get('wgAction')==='edit'&&wikitextModified)||$('input[name=wpSection]').val()){mw.loader.using('ext.visualEditor.switching').done(function(){var windowManager=new OO.ui.WindowManager(),switchWindow=new mw.libs.ve.SwitchConfirmDialog();$('body').append(windowManager.$element);windowManager.addWindows([switchWindow]);windowManager.openWindow(switchWindow).then(function(opened){return opened;}).then(function(closing){return closing;}).then(function(data){var oldUri;if(data&&data.action==='keep'){activatePageTarget(true);}else if(data&&data.action==='discard'){setEditorPreference('visualeditor');oldUri=veEditUri.clone();delete oldUri.query.veswitched;location.href=oldUri.extend({wteswitched:1});}});});}else{activatePageTarget(false);}},onEditSectionLinkClick:function(e){var targetPromise;if((e.which&&e.which!==1)||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey){return;}trackActivateStart({type:'section',
79​mechanism:'click'});if(history.pushState&&uri.query.veaction!=='edit'){history.replaceState({tag:'visualeditor'},document.title,uri);history.pushState({tag:'visualeditor'},document.title,this.href);}e.preventDefault();targetPromise=getTarget().then(function(target){target.saveEditSection($(e.target).closest('h1, h2, h3, h4, h5, h6').get(0));return target;});activateTarget(targetPromise);}};enable=Number(mw.user.options.get('visualeditor-enable'));tempdisable=Number(mw.user.options.get('visualeditor-betatempdisable'));autodisable=Number(mw.user.options.get('visualeditor-autodisable'));tabPreference=mw.user.options.get('visualeditor-tabs');onlyTabIsVE=mw.config.get('wgVisualEditorConfig').singleEditTab&&(tabPreference==='prefer-ve'||(tabPreference==='remember-last'&&getLastEditor()!=='wikitext'));if(onlyTabIsVE){veEditUri=viewUri.clone().extend({action:'edit'});delete veEditUri.query.veaction;}else{veEditUri=(pageCanLoadVE?uri:viewUri).clone().extend({veaction:'edit'});delete veEditUri.
80​query.action;}if(oldid){veEditUri.extend({oldid:oldid});}userPrefEnabled=(!(conf.disableForAnons&&mw.config.get('wgUserName')===null)&&enable&&!tempdisable&&!autodisable);userPrefPreferShow=(userPrefEnabled&&(!conf.singleEditTab||tabPreference!=='prefer-wt'));init.isAvailable=(VisualEditorSupportCheck()&&(('vewhitelist'in uri.query)||!$.client.test(init.blacklist,null,true))&&conf.skins.indexOf(mw.config.get('skin'))!==-1&&conf.namespaces.indexOf(new mw.Title(mw.config.get('wgRelevantPageName')).getNamespaceId())!==-1&&mw.config.get('wgNamespaceNumber')!==-1&&mw.config.get('wgTranslatePageTranslation')!=='translation'&&mw.config.get('wgPageContentModel')==='wikitext');init.setEditorPreference=setEditorPreference;mw.libs.ve=$.extend(mw.libs.ve||{},init);if(init.isAvailable&&userPrefPreferShow){$('html').addClass('ve-available');}else{$('html').addClass('ve-not-available');}$(function(){var showWikitextWelcome=!0,isLoggedIn=!mw.user.isAnon(),prefSaysShowWelcome=isLoggedIn&&!mw.user.
81​options.get('visualeditor-hidebetawelcome'),urlSaysHideWelcome='hidewelcomedialog'in new mw.Uri(location.href).query;if(uri.query.action==='edit'&&$('#wpTextbox1').length){initialWikitext=$('#wpTextbox1').val();}if(init.isAvailable){if(uri.query.undo===undefined&&uri.query.undoafter===undefined&&uri.query.editintro===undefined&&uri.query.preload===undefined&&uri.query.preloadtitle===undefined&&uri.query.preloadparams===undefined&&uri.query.veswitched===undefined){if((isViewPage&&uri.query.veaction==='edit')||(isEditPage&&(uri.query.wteswitched==='1'||(tabPreference!=='multi-tab'&&userPrefPreferShow&&!$('#ca-viewsource').length&&((tabPreference==='prefer-ve'&&mw.config.get('wgAction')!=='submit')||(tabPreference==='remember-last'&&getLastEditor()!=='wikitext')))))){showWikitextWelcome=!1;trackActivateStart({type:uri.query.vesection===undefined?'page':'section',mechanism:'url'});activateTarget();}else if(pageCanLoadVE&&userPrefEnabled){$('body').append($('<a>').attr({accesskey:'v',
82​href:veEditUri}).hide());}}if(['edit','submit'].indexOf(mw.config.get('wgAction'))!==-1){mw.loader.load('ext.visualEditor.switching');$('#wpTextbox1').on('wikiEditor-toolbar-doneInitialSections',function(){mw.loader.using('ext.visualEditor.switching').done(function(){var $content,windowManager,editingTabDialog,showAgainCheckbox,showAgainLayout,switchButton,showPopup=uri.query.veswitched&&!mw.user.options.get('visualeditor-hidesourceswitchpopup');if(showPopup){$content=$('<p>').text(mw.msg('visualeditor-mweditmodeve-popup-body'));if(!mw.user.isAnon()){showAgainCheckbox=new OO.ui.CheckboxInputWidget().on('change',function(value){var configValue=value?'1':'';new mw.Api().saveOption('visualeditor-hidesourceswitchpopup',configValue);mw.user.options.set('visualeditor-hidesourceswitchpopup',configValue);});showAgainLayout=new OO.ui.FieldLayout(showAgainCheckbox,{align:'inline',label:mw.msg('visualeditor-mweditmodeve-showagain')});$content=$content.add(showAgainLayout.$element);}switchButton=
83​new OO.ui.PopupButtonWidget({framed:!1,icon:'edit',title:mw.msg('visualeditor-mweditmodeve-tool'),classes:['ve-init-mw-editSwitch'],popup:{label:mw.msg('visualeditor-mweditmodeve-popup-title'),$content:$content,padded:!0,head:!0}});switchButton.disconnect(switchButton,{click:'onAction'});}else{switchButton=new OO.ui.ButtonWidget({framed:!1,icon:'edit',title:mw.msg('visualeditor-mweditmodeve-tool'),classes:['ve-init-mw-editSwitch']});}switchButton.on('click',init.activateVe);$('.wikiEditor-ui-toolbar').prepend(switchButton.$element);if(showPopup){switchButton.getPopup().toggle(true);}if($('#ca-edit').hasClass('visualeditor-showtabdialog')){$('#ca-edit').removeClass('visualeditor-showtabdialog');windowManager=new OO.ui.WindowManager();$('body').append(windowManager.$element);editingTabDialog=new mw.libs.ve.EditingTabDialog();windowManager.addWindows([editingTabDialog]);windowManager.openWindow(editingTabDialog).then(function(opened){return opened;}).then(function(closing){
84​return closing;}).then(function(data){windowManager.destroy();if(data&&data.action==='prefer-ve'){location.href=veEditUri;}else if(data&&data.action==='multi-tab'){location.reload();}});}});});mw.libs.ve.setEditorPreference('wikitext');}if(userPrefPreferShow){if(!conf.singleEditTab||tabPreference==='multi-tab'){init.setupSkin();}else if(pageCanLoadVE&&onlyTabIsVE){$('.mw-editsection a').on('click',function(e){init.onEditSectionLinkClick(e);});$('#ca-edit').on('click',function(e){trackActivateStart({type:'page',mechanism:'click'});activateTarget();e.preventDefault();});}}}if(showWikitextWelcome&&mw.config.get('wgVisualEditorConfig').showBetaWelcome&&['edit','submit'].indexOf(mw.config.get('wgAction'))!==-1&&!urlSaysHideWelcome&&(prefSaysShowWelcome||(!isLoggedIn&&localStorage.getItem('ve-beta-welcome-dialog')===null&&$.cookie('ve-beta-welcome-dialog')===null))){mw.loader.using('ext.visualEditor.welcome').done(function(){var windowManager=new OO.ui.WindowManager(),welcomeDialog=new mw.
85​libs.ve.WelcomeDialog();$('body').append(windowManager.$element);windowManager.addWindows([welcomeDialog]);windowManager.openWindow(welcomeDialog,{switchable:init.isAvailable,editor:'wte'}).then(function(opened){return opened;}).then(function(closing){return closing;}).then(function(data){windowManager.destroy();if(data&&data.action==='switch-ve'){init.activateVe();}});if(prefSaysShowWelcome){new mw.Api().saveOption('visualeditor-hidebetawelcome','1');mw.user.options.set('visualeditor-hidebetawelcome','1');}else if(!isLoggedIn&&!urlSaysHideWelcome){try{localStorage.setItem('ve-beta-welcome-dialog',1);}catch(e){$.cookie('ve-beta-welcome-dialog',1,{path:'/',expires:30});}}});}if(uri.query.venotify){mw.hook('postEdit').fire({message:mw.msg('postedit-confirmation-'+uri.query.venotify,mw.user)});delete uri.query.venotify;}});}());},{"css":[
86​".ve-activated #toc,.ve-activated #siteNotice,.ve-activated .mw-indicators, .ve-active #bodyContent \u003E :not( #siteSub ):not( #contentSub ):not( .ve-ui-mwTocWidget ),.ve-activated #t-print,.ve-activated #t-permalink,.ve-activated #p-coll-print_export,.ve-activated #t-cite,.ve-deactivating .ve-ui-surface{display:none} .ve-activating .ve-ui-surface{height:0;overflow:hidden}.ve-activated #bodyContent,.ve-activated #firstHeading{opacity:0.6; pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none; } .ve-activated #content{position:relative} .ve-init-mw-desktopArticleTarget-loading-overlay{position:absolute;left:0;right:0;z-index:1;margin-top:-0.5em}.ve-init-mw-desktopArticleTarget-progress{height:1em;overflow:hidden;margin:0 25%}.ve-init-mw-desktopArticleTarget-progress-bar{height:1em;width:0} .mw-editsection{white-space:nowrap; unicode-bidi:-moz-isolate;unicode-bidi:-webkit-isolate;unicode-bidi:isolate}.mw-editsection-divider{color:#555} .ve-init-mw-desktopArticleTarget-progress{height:0.75em;border:1px solid #347bff;background:#fff;border-radius:2px;box-shadow:0 0.1em 0 0 rgba( 0,0,0,0.15 )}.ve-init-mw-desktopArticleTarget-progress-bar{height:0.75em;background:#347bff}"
87​]},{"accesskey-ca-editsource":"e","accesskey-ca-ve-edit":"v","accesskey-save":"s","create":"creeaz\u0103","create-local":"Ad\u0103ugare descriere local\u0103","edit":"Modificare","edit-local":"Modificare descriere local\u0103","pipe-separator":" | ","postedit-confirmation-created":"Pagina a fost creat\u0103.","postedit-confirmation-restored":"Pagina a fost restaurat\u0103.","postedit-confirmation-saved":"Modificarea dumneavoastr\u0103 a fost salvat\u0103.","tooltip-ca-createsource":"Crea\u021bi codul surs\u0103 al acestei pagini","tooltip-ca-edit":"Modifica\u021bi aceast\u0103 pagin\u0103","tooltip-ca-editsource":"Modifica\u021bi codul surs\u0103 al acestei pagini","tooltip-ca-ve-edit":"Modifica\u021bi aceast\u0103 pagin\u0103 cu EditorulVizual","visualeditor-ca-createlocaldescriptionsource":"Ad\u0103ugare surs\u0103 descriere local\u0103","visualeditor-ca-createsource":"Creare surs\u0103","visualeditor-ca-editlocaldescriptionsource":"Modificare surs\u0103 descriere local\u0103",
88​"visualeditor-ca-editsource":"Modificare surs\u0103","visualeditor-ca-editsource-section":"modificare surs\u0103","visualeditor-mweditmodeve-tool":"Comut\u0103 la editorul vizual"});mw.loader.implement("ext.visualEditor.supportCheck",function($,jQuery,require,module){(function(){window.VisualEditorSupportCheck=function(){return(!!(Array.isArray&&Array.prototype.filter&&Array.prototype.indexOf&&Array.prototype.map&&Date.now&&Date.prototype.toJSON&&Object.create&&Object.keys&&String.prototype.trim&&window.JSON&&JSON.parse&&JSON.stringify&&Function.prototype.bind)&&!!('contentEditable'in document.createElement('div'))&&!!(document.createElementNS&&document.createElementNS('http://www.w3.org/2000/svg','svg').createSVGRect));};}());});mw.loader.implement("ext.visualEditor.track",function($,jQuery,require,module){(function(){var callbacks=$.Callbacks('memory'),queue=[];ve.track=function(topic,data){queue.push({topic:topic,timeStamp:ve.now(),data:data});callbacks.fire(queue);};ve.trackSubscribe=function(topic,callback){var seen=0;callbacks.add(function(queue){var event;for(;seen<queue.length;seen++){event=queue[seen];if(event.topic.indexOf(topic)===0){callback(event.topic,event.data,event.timeStamp);}}});};ve.trackSubscribeAll=function(callback){ve.trackSubscribe('',callback);};}());});mw.loader.implement("ext.visualEditor.ve",function($,jQuery,require,module){window.ve={};ve.now=(function(){var perf=window.performance,navStart=perf&&perf.timing&&perf.timing.navigationStart;return navStart&&typeof perf.now==='function'?function(){return navStart+perf.now();}:Date.now;}());});mw.loader.implement("jquery.byteLength",function($,jQuery,require,module){jQuery.byteLength=function(str){return str.replace(/[\u0080-\u07FF\uD800-\uDFFF]/g,'**').replace(/[\u0800-\uD7FF\uE000-\uFFFF]/g,'***').length;};;});mw.loader.implement("jquery.cookie",function($,jQuery,require,module){(function($,document,undefined){var pluses=/\+/g;function raw(s){return s;}function decoded(s){return unRfc2068(decodeURIComponent(s.replace(pluses,' ')));}function unRfc2068(value){if(value.indexOf('"')===0){value=value.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\');}return value;}function fromJSON(value){return config.json?JSON.parse(value):value;}var config=$.cookie=function(key,value,options){if(value!==undefined){options=$.extend({},config.defaults,options);if(value===null){options.expires=-1;}if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);}value=config.json?JSON.stringify(value):String(value);return(document.cookie=[encodeURIComponent(key),'=',config.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',
89​options.secure?'; secure':''].join(''));}var decode=config.raw?raw:decoded;var cookies=document.cookie.split('; ');var result=key?null:{};for(var i=0,l=cookies.length;i<l;i++){var parts=cookies[i].split('=');var name=decode(parts.shift());var cookie=decode(parts.join('='));if(key&&key===name){result=fromJSON(cookie);break;}if(!key){result[name]=fromJSON(cookie);}}return result;};config.defaults={};$.removeCookie=function(key,options){if($.cookie(key)!==null){$.cookie(key,null,options);return true;}return false;};})(jQuery,document);});mw.loader.implement("jquery.embedPlayer",function($,jQuery,require,module){(function(mw,$){$.fn.embedPlayer=function(readyCallback){var playerSet=this;mw.log('jQuery.fn.embedPlayer :: '+$(playerSet).length);var dependencySet=['mw.EmbedPlayer'];mw.loader.using(['jquery.client','jquery.mwEmbedUtil','mw.MwEmbedSupport'],function(){$(playerSet).each(function(inx,playerElement){$(playerElement).removeAttr('controls');if($.client.profile().name!=='firefox'){$(playerElement).parent().getAbsoluteOverlaySpinner().attr('id','loadingSpinner_'+$(playerElement).attr('id'));}$(mw).trigger('EmbedPlayerUpdateDependencies',[playerElement,dependencySet]);});dependencySet=$.uniqueArray(dependencySet);mw.loader.using(dependencySet,function(){setTimeout(function(){mw.processEmbedPlayers(playerSet,readyCallback);});},function(e){throw new Error('Error loading EmbedPlayer dependency set: '+e.message);});});};})(mediaWiki,jQuery);});mw.loader.implement("jquery.loadingSpinner",function($,jQuery,require,module){(function($){$.fn.loadingSpinner=function(opts){$(this).empty();if(mw.config.get('LoadingSpinner.ImageUrl')){this.each(function(){var $this=$(this).empty();var thisSpinner=$this.data('spinner');if(thisSpinner){$this.data('spinner',null);delete thisSpinner;}if(opts!==false){var $loadingSpinner=$('<img />').attr("src",mw.config.get('LoadingSpinner.ImageUrl')).load(function(){$(this).css({'margin-top':'-'+(this.height/2)+'px','margin-left':'-'+(this.width/2)+'px'});});thisSpinner=$this.append($loadingSpinner);}});return this;}if(!opts){opts={};}opts=$.extend({'color':'#eee','shadow':!0},opts);this.each(function(){var $this=$(this).empty();var thisSpinner=$this.data('spinner');if(thisSpinner){thisSpinner.stop();delete thisSpinner;}if(opts!==false){thisSpinner=new Spinner($.extend({color:$this.css('color')},opts)).spin(this);}});return this;};$.fn.getAbsoluteOverlaySpinner=function(){var spinOps=($(this).height(
90​)<36)?{'length':5,'width':2,'radius':4}:{};var spinerSize={'width':45,'height':45};var $spinner=$('<div />').css({'width':spinerSize.width,'height':spinerSize.height,'position':'absolute','top':'50%','left':'50%','z-index':100}).loadingSpinner(spinOps)
91​$(this).append($spinner);return $spinner;};})(jQuery);});mw.loader.implement("jquery.mwEmbedUtil",function($,jQuery,require,module){(function($){$.uniqueArray=function(arr){if(arr.length==0||!!arr[0].nodeType){return $.unique.apply(this,arguments);}else{return $.grep(arr,function(v,k){return $.inArray(v,arr)===k;});}};$.btnHtml=function(msg,styleClass,iconId,opt){if(!opt)opt={};var href=(opt.href)?opt.href:'#';var target_attr=(opt.target)?' target="'+opt.target+'" ':'';var style_attr=(opt.style)?' style="'+opt.style+'" ':'';return'<a href="'+href+'" '+target_attr+style_attr+' class="ui-state-default ui-corner-all ui-icon_link '+styleClass+'"><span class="ui-icon ui-icon-'+iconId+'" ></span>'+'<span class="btnText">'+msg+'</span></a>';};var mw_default_button_options={'class':'','style':{},'text':'','icon':'carat-1-n'};$.button=function(options){var options=$.extend({},mw_default_button_options,options);var $button=$('<a />').attr('href','#').addClass('ui-state-default ui-corner-all ui-icon_link');if(options.css){$button.css(options.css);}if(
92​options['class']){$button.addClass(options['class']);}$button.append($('<span />').addClass('ui-icon ui-icon-'+options.icon),$('<span />').addClass('btnText').text(options.text)).buttonHover();if(!options.text){$button.css('padding','1em');}return $button;};$.fn.buttonHover=function(){$(this).hover(function(){$(this).addClass('ui-state-hover');},function(){$(this).removeClass('ui-state-hover');});return this;};})(jQuery);});mw.loader.implement("jquery.tabIndex",function($,jQuery,require,module){(function($){$.fn.firstTabIndex=function(){var minTabIndex=null;$(this).find('[tabindex]').each(function(){var tabIndex=parseInt($(this).prop('tabindex'),10);if(tabIndex>0&&!isNaN(tabIndex)){if(minTabIndex===null){minTabIndex=tabIndex;}else if(tabIndex<minTabIndex){minTabIndex=tabIndex;}}});return minTabIndex;};$.fn.lastTabIndex=function(){var maxTabIndex=null;$(this).find('[tabindex]').each(function(){var tabIndex=parseInt($(this).prop('tabindex'),10);if(tabIndex>0&&!isNaN(tabIndex)){if(maxTabIndex===null){maxTabIndex=tabIndex;}else if(tabIndex>maxTabIndex){maxTabIndex=tabIndex;}}});return maxTabIndex;};}(jQuery));});mw.loader.implement("jquery.throttle-debounce",function($,jQuery,require,module){(function(window,undefined){'$:nomunge';var $=window.jQuery||window.Cowboy||(window.Cowboy={}),jq_throttle;$.throttle=jq_throttle=function(delay,no_trailing,callback,debounce_mode){var timeout_id,last_exec=0;if(typeof no_trailing!=='boolean'){debounce_mode=callback;callback=no_trailing;no_trailing=undefined;}function wrapper(){var that=this,elapsed=+new Date()-last_exec,args=arguments;function exec(){last_exec=+new Date();callback.apply(that,args);};function clear(){timeout_id=undefined;};if(debounce_mode&&!timeout_id){exec();}timeout_id&&clearTimeout(timeout_id);if(debounce_mode===undefined&&elapsed>delay){exec();}else if(no_trailing!==true){timeout_id=setTimeout(debounce_mode?clear:exec,debounce_mode===undefined?delay-elapsed:delay);}};if($.guid){wrapper.guid=callback.guid=callback.guid||$.guid++;}return wrapper;};$.debounce=function(delay,at_begin,callback){return callback===undefined?jq_throttle(delay,
93​at_begin,false):jq_throttle(delay,callback,at_begin!==false);};})(this);});mw.loader.implement("jquery.triggerQueueCallback",function($,jQuery,require,module){(function($){var eventArray={};$.fn.bindQueueCallback=function(eventName,callback){var targetObject=this[0];if(!eventArray[eventName]){eventArray[eventName]=[];}eventArray[eventName].push({targetObject:targetObject,callback:callback});};$.fn.triggerQueueCallback=function(triggerName,triggerParam,callback){var targetObject=this;if(!targetObject.length){mw.log("Error:: triggerQueueCallback: no targetObject to trigger event on");return;}if(!callback&&typeof triggerParam=='function'){callback=triggerParam;triggerParam=null;}var callbackSet=eventArray[triggerName];if(!callbackSet||callbackSet.length===0){callback();return;}var callbackCount=(callbackSet.length)?callbackSet.length:1;var callInx=0;var callbackData=[];var doCallbackCheck=function(){var args=$.makeArray(arguments);if(args.length==1){args=args[0];}callbackData.push(args);callInx++;if(callInx==callbackCount){callback(callbackData);}};var
94​triggerArgs=(triggerParam)?[triggerParam,doCallbackCheck]:[doCallbackCheck];$(this).trigger(triggerName,triggerArgs);$.each(eventArray[triggerName],function(idx,queuedCallback){queuedCallback.callback.apply(queuedCallback.targetObject,triggerArgs);});};})(jQuery);});mw.loader.implement("jquery.uls.data",function($,jQuery,require,module){(function($){'use strict';$.uls=$.uls||{};$.uls.data={"languages":{"aa":["Latn",["AF"],"Qafár af"],"ab":["Cyrl",["EU"],"Аҧсшәа"],"abs":["Latn",["AS"],"Bahasa Ambon"],"ace":["Latn",["AS","PA"],"Acèh"],"acf":["Latn",["AM"],"kwéyòl"],"ady":["Cyrl",["EU","ME"],"Адыгабзэ"],"ady-cyrl":["ady"],"ady-latn":["Latn",["EU","ME"],"Adygabze"],"aeb":["aeb-arab"],"aeb-arab":["Arab",["AF"],"تونسي"],"aeb-latn":["Latn",["AF"],"Tûnsî"],"af":["Latn",["AF"],"Afrikaans"],"ahr":["Deva",["AS"],"अहिराणी"],"ak":["Latn",["AF"],"Akan"],"akz":["Latn",["AM"],"Albaamo innaaɬiilka"],"aln":["Latn",["EU"],"Gegë"],"am":["Ethi",["AF"],"አማርኛ"],"an":["Latn",["EU"],"aragonés"],"ang":["Latn",["EU"],"Ænglisc"],"anp":["Deva",["AS"],"अङ्गिका"],"ar":["Arab",["ME"],"العربية"],"arc":["Syrc",["ME"],"ܐܪܡܝܐ"],"arn":["Latn",["AM"],"mapudungun"],"aro":["Latn",["AM"],"Araona"],"arq":["Arab",
95​["AF"],"جازايرية"],"ary":["Latn",["ME"],"Maġribi"],"arz":["Arab",["ME"],"مصرى"],"as":["Beng",["AS"],"অসমীয়া"],"ase":["Sgnw",["AM"],"American sign language"],"ast":["Latn",["EU"],"asturianu"],"av":["Cyrl",["EU"],"авар"],"avk":["Latn",["WW"],"Kotava"],"ay":["Latn",["AM"],"Aymar aru"],"az":["az-latn"],"az-arab":["Arab",["AS","ME"],"تۆرکجه"],"az-latn":["Latn",["EU","ME"],"azərbaycanca"],"az-cyrl":["Cyrl",["EU","ME"],"азәрбајҹанҹа"],"azb":["az-arab"],"azj":["az-latn"],"ba":["Cyrl",["EU"],"башҡортса"],"ban":["Bali",["AS"],"ᬩᬲᬩᬮᬶ"],"bar":["Latn",["EU"],"Boarisch"],"bat-smg":["sgs"],"bbc-latn":["Latn",["AS"],"Batak Toba"],"bbc-batk":["Batk",["AS"],"Batak Toba"],"bbc":["Latn",["AS"],"Batak Toba"],"bcc":["Arab",["AS","ME"],"جهلسری بلوچی"],"bcl":["Latn",["AS"],"Bikol Central"],"be-tarask":["Cyrl",["EU"],"беларуская (тарашкевіца)"],"be-x-old":["be-tarask"],"be":["Cyrl",["EU"],
96​"беларуская"],"bew":["Latn",["AS"],"Bahasa Betawi"],"bfa":["Latn",["AF"],"Bari"],"bfq":["Taml",["AS"],"படகா"],"bg":["Cyrl",["EU"],"български"],"bgn":["Arab",["AS","ME"],"روچ کپتین بلوچی"],"bh":["Deva",["AS"],"भोजपुरी"],"bho":["Deva",["AS"],"भोजपुरी"],"bi":["Latn",["PA"],"Bislama"],"bjn":["Latn",["AS"],"Bahasa Banjar"],"bm":["Latn",["AF"],"bamanankan"],"bn":["Beng",["AS"],"বাংলা"],"bo":["Tibt",["AS"],"བོད་ཡིག"],"bpy":["Beng",["AS"],"বিষ্ণুপ্রিয়া মণিপুরী"],"bqi":["Arab",["AS","ME"],"بختیاری"],"br":["Latn",["EU"],"brezhoneg"],"brh":["Latn",["ME","AS"],"Bráhuí"],"brx":["Deva",["AS"],"बड़ो"],"bs":["Latn",["EU"],"bosanski"],"bto":["Latn",["AS"],"Iriga Bicolano"],"bug":["Bugi",["AS"],"ᨅᨔ ᨕᨘᨁᨗ"],"bxr":["Cyrl",["AS"],"буряад"],"ca":["Latn",["EU"],"català"],"cbk-zam":["Latn",["AS"],"Chavacano de Zamboanga"],"cdo":["Latn",["AS"],
97​"Mìng-dĕ̤ng-ngṳ̄"],"ce":["Cyrl",["EU"],"нохчийн"],"ceb":["Latn",["AS"],"Cebuano"],"ch":["Latn",["PA"],"Chamoru"],"cho":["Latn",["AM"],"Choctaw"],"chr":["Cher",["AM"],"ᏣᎳᎩ"],"chy":["Latn",["AM"],"Tsetsêhestâhese"],"ciw":["Latn",["AM"],"Ojibwemowin"],"cjy":["cjy-hant"],"cjy-hans":["Hans",["AS"],"晋语(简化字)"],"cjy-hant":["Hant",["AS"],"晉語"],"ckb":["Arab",["ME"],"کوردیی ناوەندی"],"cnh":["Latn",["AS"],"Lai holh"],"co":["Latn",["EU"],"corsu"],"cps":["Latn",["AS"],"Capiceño"],"cr":["Cans",["AM"],"ᓀᐦᐃᔭᐍᐏᐣ"],"cr-cans":["cr"],"cr-latn":["Latn",["AM"],"Nēhiyawēwin"],"crh":["Latn",["EU"],"qırımtatarca"],"crh-cyrl":["Cyrl",["EU"],"къырымтатарджа"],"crh-latn":["crh"],"cs":["Latn",["EU"],"čeština"],"csb":["Latn",["EU"],"kaszëbsczi"],"cu":["Cyrl",["EU"],"словѣньскъ \/ ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ"],"cv":["Cyrl",["EU"],"Чӑвашла"],"cy":["Latn",["EU"],"Cymraeg"],"da":["Latn",["EU"],"dansk"],"de-at":[
98​"Latn",["EU"],"Österreichisches Deutsch"],"de-ch":["Latn",["EU"],"Schweizer Hochdeutsch"],"de-formal":["Latn",["EU"],"Deutsch (Sie-Form)"],"de":["Latn",["EU"],"Deutsch"],"din":["Latn",["AF"],"Thuɔŋjäŋ"],"diq":["Latn",["EU","AS"],"Zazaki"],"dsb":["Latn",["EU"],"dolnoserbski"],"dtp":["Latn",["AS"],"Dusun Bundu-liwan"],"dty":["Deva",["AS"],"डोटेली"],"dv":["Thaa",["AS"],"ދިވެހިބަސް"],"dz":["Tibt",["AS"],"ཇོང་ཁ"],"ee":["Latn",["AF"],"eʋegbe"],"egl":["Latn",["EU"],"Emiliàn"],"el":["Grek",["EU"],"Ελληνικά"],"eml":["Latn",["EU"],"emiliàn e rumagnòl"],"en-ca":["Latn",["AM"],"Canadian English"],"en-gb":["Latn",["EU","AS","PA"],"British English"],"en":["Latn",["EU","AM","AF","ME","AS","PA","WW"],"English"],"eo":["Latn",["WW"],"Esperanto"],"es-419":["Latn",["AM"],"español de America Latina"],"es-formal":["Latn",["EU","AM","AF","WW"],"español (formal)"],"es":["Latn",["EU","AM","AF","WW"],"español"],"esu":["Latn",["AM"],"Yup'ik"],"et":["Latn",["EU"
99​],"eesti"],"eu":["Latn",["EU"],"euskara"],"ext":["Latn",["EU"],"estremeñu"],"fa":["Arab",["AS","ME"],"فارسی"],"ff":["Latn",["AF"],"Fulfulde"],"fi":["Latn",["EU"],"suomi"],"fil":["tl"],"fit":["Latn",["EU"],"meänkieli"],"fiu-vro":["vro"],"fj":["Latn",["PA"],"Na Vosa Vakaviti"],"fo":["Latn",["EU"],"føroyskt"],"fr":["Latn",["EU","AM","WW"],"français"],"frc":["Latn",["AM"],"français cadien"],"frp":["Latn",["EU"],"arpetan"],"frr":["Latn",["EU"],"Nordfriisk"],"fur":["Latn",["EU"],"furlan"],"fy":["Latn",["EU"],"Frysk"],"ga":["Latn",["EU"],"Gaeilge"],"gag":["Latn",["EU"],"Gagauz"],"gah":["Latn",["AS"],"Alekano"],"gan-hans":["Hans",["AS"],"赣语(简体)"],"gan-hant":["gan"],"gan":["Hant",["AS"],"贛語"],"gbz":["Latn",["AS"],"Dari-e Mazdeyasnā"],"gcf":["Latn",["AM"],"Guadeloupean Creole French"],"gd":["Latn",["EU"],"Gàidhlig"],"gl":["Latn",["EU"],"galego"],"glk":["Arab",["AS","ME"],"گیلکی"],"gn":["Latn",["AM"],"Avañe'ẽ"],"gom":["gom-deva"],"gom-deva":["Deva",["AS"],
100​"गोवा कोंकणी"],"gom-latn":["Latn",["AS"],"Gova Konknni"],"got":["Goth",["EU"],"𐌲𐌿𐍄𐌹𐍃𐌺"],"grc":["Grek",["EU"],"Ἀρχαία ἑλληνικὴ"],"gsw":["Latn",["EU"],"Alemannisch"],"gu":["Gujr",["AS"],"ગુજરાતી"],"guc":["Latn",["AM"],"Wayúu"],"gur":["Latn",["AF"],"Gurenɛ"],"gv":["Latn",["EU"],"Gaelg"],"ha-arab":["Arab",["AF"],"هَوُسَ"],"ha-latn":["Latn",["AF"],"Hausa"],"ha":["ha-latn"],"hak":["Latn",["AS"],"Hak-kâ-fa"],"haw":["Latn",["AM","PA"],"Hawai`i"],"he":["Hebr",["ME"],"עברית"],"hi":["Deva",["AS"],"हिन्दी"],"hif":["Latn",["PA","AS"],"Fiji Hindi"],"hif-deva":["Deva",["AS"],"फ़ीजी हिन्दी"],"hif-latn":["hif"],"hil":["Latn",["AS"],"Ilonggo"],"hne":["Deva",["AS"],"छत्तीसगढ़ी"],"ho":["Latn",["PA"],"Hiri Motu"],"hr":["Latn",["EU"],"hrvatski"],"hrx":["Latn",["AM"],"Hunsrik"],"hsb":["Latn",["EU"],"hornjoserbsce"],"hsn":["Hans",["AS"],"湘语"],"ht":["Latn",["AM"],
101​"Kreyòl ayisyen"],"hu-formal":["Latn",["EU"],"Magyar (magázó)"],"hu":["Latn",["EU"],"magyar"],"hy":["Armn",["EU","ME"],"Հայերեն"],"hz":["Latn",["AF"],"Otsiherero"],"ia":["Latn",["WW"],"interlingua"],"id":["Latn",["AS"],"Bahasa Indonesia"],"ie":["Latn",["WW"],"Interlingue"],"ig":["Latn",["AF"],"Igbo"],"ii":["Yiii",["AS"],"ꆇꉙ"],"ik":["Latn",["AM"],"Iñupiak"],"ike-cans":["Cans",["AM"],"ᐃᓄᒃᑎᑐᑦ"],"ike-latn":["Latn",["AM"],"inuktitut"],"ilo":["Latn",["AS"],"Ilokano"],"inh":["Cyrl",["EU"],"ГӀалгӀай"],"io":["Latn",["WW"],"Ido"],"is":["Latn",["EU"],"íslenska"],"it":["Latn",["EU"],"italiano"],"iu":["Cans",["AM"],"ᐃᓄᒃᑎᑐᑦ"],"ja":["Jpan",["AS"],"日本語"],"jam":["Latn",["AM"],"Patois"],"jbo":["Latn",["WW"],"lojban"],"jdt":["jdt-cyrl"],"jdt-cyrl":["Cyrl",["EU","AS"],"жугьури"],"jut":["Latn",["EU"],"jysk"],"jv":["Latn",["AS","PA"],"Basa Jawa"],"jv-java":["Java",["AS","PA"],"ꦧꦱꦗꦮ"],"ka":["Geor",["EU"],"ქართული"],"kaa":[
102​"Latn",["AS"],"Qaraqalpaqsha"],"kab":["Latn",["AF","EU"],"Taqbaylit"],"kac":["Latn",["AS"],"Jinghpaw"],"kbd-cyrl":["kbd"],"kbd-latn":["Latn",["EU"],"Qabardjajəbza"],"kbd":["Cyrl",["EU","ME"],"Адыгэбзэ"],"kbp":["Latn",["AF"],"Kabɩyɛ"],"kea":["Latn",["AF"],"Kabuverdianu"],"kg":["Latn",["AF"],"Kongo"],"kgp":["Latn",["AM"],"Kaingáng"],"khw":["Arab",["ME","AS"],"کھوار"],"ki":["Latn",["AF"],"Gĩkũyũ"],"kiu":["Latn",["EU","ME"],"Kırmancki"],"kj":["Latn",["AF"],"Kwanyama"],"kjh":["Cyrl",["AS"],"хакас"],"kk":["kk-cyrl"],"kk-arab":["Arab",["EU","AS"],"قازاقشا (تٶتە)"],"kk-cn":["kk-arab"],"kk-cyrl":["Cyrl",["EU","AS"],"қазақша"],"kk-kz":["kk-cyrl"],"kk-latn":["Latn",["EU","AS","ME"],"qazaqşa"],"kk-tr":["kk-latn"],"kl":["Latn",["AM","EU"],"kalaallisut"],"km":["Khmr",["AS"],"ភាសាខ្មែរ"],"kn":["Knda",["AS"],"ಕನ್ನಡ"],"knn":["Deva",["AS"],"महाराष्ट्रीय कोंकणी"],"ko-kp":["Kore",["AS"],
103​"한국어 (조선)"],"ko":["Kore",["AS"],"한국어"],"koi":["Cyrl",["EU"],"Перем Коми"],"kr":["Latn",["AF"],"Kanuri"],"krc":["Cyrl",["EU"],"къарачай-малкъар"],"kri":["Latn",["AF"],"Krio"],"krj":["Latn",["ME","EU"],"Kinaray-a"],"krl":["Latn",["EU"],"Karjala"],"ks-arab":["Arab",["AS"],"کٲشُر"],"ks-deva":["Deva",["AS"],"कॉशुर"],"ks":["Arab",["AS"],"کٲشُر"],"ksf":["Latn",["AF"],"Bafia"],"ksh":["Latn",["EU"],"Ripoarisch"],"ku":["ku-latn"],"ku-arab":["Arab",["EU","ME"],"كوردي"],"ku-latn":["Latn",["EU","ME"],"Kurdî"],"kv":["Cyrl",["EU"],"коми"],"kw":["Latn",["EU"],"kernowek"],"ky":["Cyrl",["AS"],"Кыргызча"],"la":["Latn",["EU"],"Latina"],"lad":["lad-latn"],"lad-latn":["Latn",["ME","EU","AM"],"Ladino"],"lad-hebr":["Hebr",["ME","EU","AM"],"לאדינו"],"lb":["Latn",["EU"],"Lëtzebuergesch"],"lbe":["Cyrl",["EU"],"лакку"],"lez":["Cyrl",["EU"],"лезги"],"lfn":["Latn",["WW"],"Lingua Franca Nova"],"lg":["Latn",["AF"],"Luganda"
104​],"li":["Latn",["EU"],"Limburgs"],"lij":["Latn",["EU"],"Ligure"],"liv":["Latn",["EU"],"Līvõ kēļ"],"lki":["Arab",["AS","ME"],"لەکی‎"],"lkt":["Latn",["AM"],"Lakȟótiyapi"],"lld":["Latn",["EU"],"Ladin"],"lmo":["Latn",["EU"],"lumbaart"],"ln":["Latn",["AF"],"lingála"],"lo":["Laoo",["AS"],"ລາວ"],"loz":["Latn",["AF"],"Silozi"],"lt":["Latn",["EU"],"lietuvių"],"lrc":["Arab",["AS","ME"],"لۊری شومالی"],"ltg":["Latn",["EU"],"latgaļu"],"lud":["Latn",["EU"],"lüüdi"],"lus":["Latn",["AS"],"Mizo ţawng"],"lut":["Latn",["AM"],"dxʷləšucid"],"luz":["Arab",["ME"],"لئری دوٙمینی"],"lv":["Latn",["EU"],"latviešu"],"lzh":["Hant",["AS"],"文言"],"lzz":["Latn",["EU","ME"],"Lazuri"],"mai":["Deva",["AS"],"मैथिली"],"map-bms":["Latn",["AS"],"Basa Banyumasan"],"mdf":["Cyrl",["EU"],"мокшень"],"mfe":["Latn",["AM"],"Morisyen"],"mg":["Latn",["AF"],"Malagasy"],"mh":["Latn",["PA"],"Ebon"],"mhr":["Cyrl",["EU"],"олык марий"],"mi":["Latn",["PA"],
105​"Māori"],"mic":["Latn",["AM"],"Mi'kmaq"],"min":["Latn",["AS"],"Baso Minangkabau"],"miq":["Latn",["AM"],"Mískitu"],"mk":["Cyrl",["EU"],"македонски"],"ml":["Mlym",["AS","ME"],"മലയാളം"],"mn":["Cyrl",["AS"],"монгол"],"mnc":["Mong",["AS"],"ᠮᠠᠨᠵᡠ ᡤᡳᠰᡠᠨ"],"mni":["Beng",["AS"],"মেইতেই লোন্"],"mnw":["Mymr",["AS"],"ဘာသာ မန်"],"mo":["Cyrl",["EU"],"молдовеняскэ"],"mr":["Deva",["AS","ME"],"मराठी"],"mrj":["Cyrl",["EU"],"кырык мары"],"ms":["Latn",["AS"],"Bahasa Melayu"],"mt":["Latn",["EU"],"Malti"],"mui":["Latn",["AS"],"Musi"],"mus":["Latn",["AM"],"Mvskoke"],"mwl":["Latn",["EU"],"Mirandés"],"mwv":["Latn",["AS"],"Behase Mentawei"],"mww":["mww-latn"],"mww-latn":["Latn",["AS"],"Hmoob Dawb"],"my":["Mymr",["AS"],"မြန်မာဘာသာ"],"myv":["Cyrl",["EU"],"эрзянь"],"mzn":["Arab",["ME","AS"],"مازِرونی"],"na":["Latn",["PA"],"Dorerin Naoero"],"nah":["Latn",["AM"],
106​"Nāhuatl"],"nan":["Latn",["AS"],"Bân-lâm-gú"],"nap":["Latn",["EU"],"Napulitano"],"nb":["Latn",["EU"],"norsk (bokmål)"],"nds-nl":["Latn",["EU"],"Nedersaksisch"],"nds":["Latn",["EU"],"Plattdüütsch"],"ne":["Deva",["AS"],"नेपाली"],"new":["Deva",["AS"],"नेपाल भाषा"],"ng":["Latn",["AF"],"Oshiwambo"],"niu":["Latn",["PA"],"ko e vagahau Niuē"],"njo":["Latn",["AS"],"Ao"],"nl-informal":["Latn",["EU","AM"],"Nederlands (informeel)"],"nl":["Latn",["EU","AM"],"Nederlands"],"nn":["Latn",["EU"],"norsk (nynorsk)"],"no":["Latn",["EU"],"norsk"],"nov":["Latn",["WW"],"Novial"],"nqo":["Nkoo",["AF"],"ߒߞߏ"],"nrm":["Latn",["EU"],"Nouormand"],"nso":["Latn",["AF"],"Sesotho sa Leboa"],"nv":["Latn",["AM"],"Diné bizaad"],"ny":["Latn",["AF"],"Chi-Chewa"],"oc":["Latn",["EU"],"occitan"],"olo":["Latn",["AS","EU"],"Livvin-Karjalan"],"om":["Latn",["AF"],"Oromoo"],"or":["Orya",["AS"],"ଓଡ଼ିଆ"],"os":["Cyrl",["EU"],"Ирон"],"ota":["Arab",["AS","EU"],
107​"لسان عثمانى"],"pa":["pa-guru"],"pa-guru":["Guru",["AS"],"ਪੰਜਾਬੀ"],"pag":["Latn",["AS"],"Pangasinan"],"pam":["Latn",["AS"],"Kapampangan"],"pap":["Latn",["AM"],"Papiamentu"],"pbb":["Latn",["AM"],"Nasa Yuwe"],"pcd":["Latn",["EU"],"Picard"],"pdc":["Latn",["EU","AM"],"Deitsch"],"pdt":["Latn",["EU","AM"],"Plautdietsch"],"pfl":["Latn",["EU"],"Pälzisch"],"pi":["Deva",["AS"],"पालि"],"pih":["Latn",["PA"],"Norfuk \/ Pitkern"],"pis":["Latn",["PA"],"Pijin"],"pko":["Latn",["AF"],"Pökoot"],"pl":["Latn",["EU"],"polski"],"pms":["Latn",["EU"],"Piemontèis"],"pnb":["Arab",["AS","ME"],"پنجابی"],"pnt":["Grek",["EU"],"Ποντιακά"],"ppl":["Latn",["AM"],"Nawat"],"prg":["Latn",["EU"],"Prūsiskan"],"prs":["Arab",["AS","ME"],"دری"],"ps":["Arab",["AS","ME"],"پښتو"],"pt-br":["Latn",["AM"],"português do Brasil"],"pt":["Latn",["EU","AM","AS","PA","AF","WW"],"português"],"qu":["Latn",["AM"],"Runa Simi"],"qug":["Latn",["AM"],"Runa shimi"],"rap":["Latn",["AM"],
108​"arero rapa nui"],"rcf":["Latn",["AF"],"Kreol Réyoné"],"rgn":["Latn",["EU"],"Rumagnôl"],"rif":["Latn",["AF"],"Tarifit"],"rki":["Mymr",["AS"],"ရခိုင်"],"rm":["Latn",["EU"],"rumantsch"],"rmf":["Latn",["EU"],"kaalengo tšimb"],"rmy":["Latn",["EU"],"Romani"],"rn":["Latn",["AF"],"Kirundi"],"ro":["Latn",["EU"],"română"],"roa-rup":["rup"],"roa-tara":["Latn",["EU"],"tarandíne"],"rtm":["Latn",["PA"],"Faeag Rotuma"],"ru":["Cyrl",["EU","AS","ME"],"русский"],"rue":["Cyrl",["EU"],"русиньскый"],"rup":["Latn",["EU"],"armãneashti"],"ruq":["Cyrl",["EU"],"Влахесте"],"ruq-cyrl":["ruq"],"ruq-grek":["Grek",["EU"],"Megleno-Romanian (Greek script)"],"ruq-latn":["Latn",["EU"],"Vlăheşte"],"rut":["Cyrl",["EU"],"мыхаӀбишды"],"rw":["Latn",["AF"],"Kinyarwanda"],"rwr":["Deva",["AS"],"मारवाड़ी"],"ryu":["Kana",["AS"],"ʔucināguci"],"sa":["Deva",["AS"],"संस्कृतम्"],"sah":["Cyrl",["EU","AS"],"саха тыла"],"sat":["Latn",[
109​"AS"],"Santali"],"saz":["Saur",["AS"],"ꢱꣃꢬꢵꢯ꣄ꢡ꣄ꢬꢵ"],"sc":["Latn",["EU"],"sardu"],"scn":["Latn",["EU"],"sicilianu"],"sco":["Latn",["EU"],"Scots"],"sd":["Arab",["AS"],"سنڌي"],"sdc":["Latn",["EU"],"Sassaresu"],"sdh":["Arab",["ME"],"کوردی خوارگ"],"se":["Latn",["EU"],"sámegiella"],"ses":["Latn",["AF"],"Koyraboro Senni"],"sei":["Latn",["AM"],"Cmique Itom"],"sg":["Latn",["AF"],"Sängö"],"sgs":["Latn",["EU"],"žemaitėška"],"sh":["Latn",["EU"],"srpskohrvatski"],"shi-latn":["Latn",["AF"],"Tašlḥiyt"],"shi-tfng":["Tfng",["AF"],"ⵜⴰⵛⵍⵃⵉⵜ"],"shi":["shi-latn"],"shn":["Mymr",["AS"],"လိၵ်ႈတႆး"],"si":["Sinh",["AS"],"සිංහල"],"simple":["Latn",["WW"],"Simple English"],"sk":["Latn",["EU"],"slovenčina"],"sl":["Latn",["EU"],"slovenščina"],"sli":["Latn",["EU"],"Schläsch"],"slr":["Latn",["AS"],"Salırça"],"sly":["Latn",["AS"],"Bahasa Selayar"],"syc":["Syrc",["ME"],"ܣܘܪܝܝܐ"],"sm":["Latn",["PA"],"Gagana Samoa"],"sma":[
110​"Latn",["EU"],"åarjelsaemien"],"smj":["Latn",["EU"],"julevsámegiella"],"smn":["Latn",["EU"],"anarâškielâ"],"sms":["Latn",["EU"],"sää´mǩiõll"],"sn":["Latn",["AF"],"chiShona"],"so":["Latn",["AF"],"Soomaaliga"],"son":["Latn",["AF"],"soŋay"],"sq":["Latn",["EU"],"shqip"],"sr":["sr-cyrl"],"sr-ec":["sr-cyrl"],"sr-cyrl":["Cyrl",["EU"],"српски"],"sr-el":["sr-latn"],"sr-latn":["Latn",["EU"],"srpski"],"srn":["Latn",["AM","EU"],"Sranantongo"],"ss":["Latn",["AF"],"SiSwati"],"st":["Latn",["AF"],"Sesotho"],"stq":["Latn",["EU"],"Seeltersk"],"su":["Latn",["AS"],"Basa Sunda"],"sv":["Latn",["EU"],"svenska"],"sw":["Latn",["AF"],"Kiswahili"],"swb":["Latn",["AF"],"Shikomoro"],"sxu":["Latn",["EU"],"Säggssch"],"szl":["Latn",["EU"],"ślůnski"],"ta":["Taml",["AS"],"தமிழ்"],"tcy":["Knda",["AS"],"ತುಳು"],"te":["Telu",["AS"],"తెలుగు"],"tet":["Latn",["AS","PA"],"tetun"],"tg-cyrl":["Cyrl",["AS"],"тоҷикӣ"],"tg-latn":["Latn",["AS"],"tojikī"],"tg":["Cyrl",["AS"],
111​"тоҷикӣ"],"th":["Thai",["AS"],"ไทย"],"ti":["Ethi",["AF"],"ትግርኛ"],"tk":["Latn",["AS"],"Türkmençe"],"tkr":["Cyrl",["AS"],"ЦӀаьхна миз"],"tl":["Latn",["AS"],"Tagalog"],"tly":["Cyrl",["EU","AS","ME"],"толышә зывон"],"tn":["Latn",["AF"],"Setswana"],"to":["Latn",["PA"],"lea faka-Tonga"],"tokipona":["Latn",["WW"],"Toki Pona"],"tpi":["Latn",["PA","AS"],"Tok Pisin"],"tr":["Latn",["EU","ME"],"Türkçe"],"trp":["Latn",["AS"],"Kokborok (Tripuri)"],"tru":["Latn",["AS"],"Ṫuroyo"],"ts":["Latn",["AF"],"Xitsonga"],"tsd":["Grek",["EU"],"Τσακωνικά"],"tt":["Cyrl",["EU"],"татарча"],"tt-cyrl":["tt"],"tt-latn":["Latn",["EU"],"tatarça"],"ttt":["Cyrl",["AS"],"Tati"],"tum":["Latn",["AF"],"chiTumbuka"],"tw":["Latn",["AF"],"Twi"],"twd":["Latn",["EU"],"Tweants"],"ty":["Latn",["PA"],"reo tahiti"],"tyv":["Cyrl",["AS"],"тыва дыл"],"tzl":["Latn",["WW"],"Talossan"],"tzm":["Tfng",["AF"],"ⵜⴰⵎⴰⵣⵉⵖⵜ"],"udm":["Cyrl",["EU"],"удмурт"],
112​"ug":["ug-arab"],"ug-arab":["Arab",["AS"],"ئۇيغۇرچە"],"ug-latn":["Latn",["AS"],"uyghurche"],"ug-cyrl":["Cyrl",["AS"],"уйғурчә"],"uk":["Cyrl",["EU"],"українська"],"ur":["Arab",["AS","ME"],"اردو"],"uz":["Latn",["AS"],"oʻzbekcha"],"ve":["Latn",["AF"],"Tshivenda"],"vec":["Latn",["EU"],"vèneto"],"vep":["Latn",["EU"],"vepsän kel’"],"vi":["Latn",["AS"],"Tiếng Việt"],"vls":["Latn",["EU"],"West-Vlams"],"vmf":["Latn",["EU"],"Mainfränkisch"],"vo":["Latn",["WW"],"Volapük"],"vot":["Latn",["EU"],"Vaďďa"],"vro":["Latn",["EU"],"Võro"],"wa":["Latn",["EU"],"walon"],"war":["Latn",["AS"],"Winaray"],"wls":["Latn",["PA"],"Faka'uvea"],"wo":["Latn",["AF"],"Wolof"],"wuu":["Hans",["AS"],"吴语"],"xal":["Cyrl",["EU"],"хальмг"],"xh":["Latn",["AF"],"isiXhosa"],"xmf":["Geor",["EU"],"მარგალური"],"ydd":["Hebr",["AS","EU"],"Eastern Yiddish"],"yi":["Hebr",["ME","EU","AM"],"ייִדיש"],"yo":["Latn",["AF"],"Yorùbá"],"yrk":["Cyrl",["AS"],
113​"Ненэцяʼ вада"],"yrl":["Latn",["AM"],"ñe'engatú"],"yua":["Latn",["AM"],"Maaya T'aan"],"yue":["Hant",["AS"],"粵語"],"za":["Latn",["AS"],"Vahcuengh"],"zea":["Latn",["EU"],"Zeêuws"],"zgh":["Tfng",["AF"],"ⵜⴰⵎⴰⵣⵉⵖⵜ"],"zh":["Hans",["AS"],"中文"],"zh-classical":["Hant",["AS"],"文言"],"zh-cn":["Hans",["AS"],"中文(中国大陆)"],"zh-hans":["Hans",["AS"],"中文(简体)"],"zh-hant":["Hant",["AS"],"中文(繁體)"],"zh-hk":["Hant",["AS"],"中文(香港)"],"zh-min-nan":["nan"],"zh-mo":["Hant",["AS"],"中文(澳門)"],"zh-my":["Hans",["AS"],"中文(马来西亚)"],"zh-sg":["Hans",["AS"],"中文(新加坡)"],"zh-tw":["Hant",["AS"],"中文(台灣)"],"zh-yue":["yue"],"zu":["Latn",["AF"],"isiZulu"]},"scriptgroups":{"Latin":["Latn","Goth"],"Greek":["Grek"],"WestCaucasian":["Armn","Geor"],"Arabic":["Arab"],"MiddleEastern":["Hebr","Syrc"],"African":["Ethi","Nkoo","Tfng"],"SouthAsian":["Beng","Deva","Gujr","Guru","Knda","Mlym","Orya",
114​"Saur","Sinh","Taml","Telu","Tibt","Thaa"],"Cyrillic":["Cyrl"],"CJK":["Hans","Hant","Kana","Kore","Jpan","Yiii"],"SouthEastAsian":["Bali","Batk","Bugi","Java","Khmr","Laoo","Mymr","Thai"],"Mongolian":["Mong"],"SignWriting":["Sgnw"],"NativeAmerican":["Cher","Cans"],"Special":["Zyyy"]},"rtlscripts":["Arab","Hebr","Syrc","Nkoo","Thaa"],"regiongroups":{"WW":1,"SP":1,"AM":2,"EU":3,"ME":3,"AF":3,"AS":4,"PA":4},"territories":{"AC":["en"],"AD":["ca","es","fr"],"AE":["ar","ml","ps","bal","fa"],"AF":["fa","ps","haz","uz-arab","tk-latn","prd","bal","bgn","ug-arab","kk-arab"],"AG":["en","pt"],"AI":["en"],"AL":["sq","el","mk"],"AM":["hy","ku-latn","az-latn"],"AO":["pt","umb","kmb","ln"],"AQ":["und"],"AR":["es","en","cy","gn"],"AS":["sm","en"],"AT":["de","bar","en","hr","sl","hu"],"AU":["en","zh-hant","it","wbp"],"AW":["nl","pap","en"],"AX":["sv"],"AZ":["az-latn","az-cyrl","tly-latn","ku-latn","ttt-latn","tkr-latn"],"BA":["bs-cyrl","bs-latn","en","hr","sr-cyrl","sr-latn"],"BB":["en"],"BD":["bn","en"
115​,"rkt","syl","ccp","my","grt","mro","mni"],"BE":["en","nl","fr","vls","wa","de"],"BF":["mos","dyu","fr"],"BG":["bg","en","tr"],"BH":["ar","ml"],"BI":["rn","fr","sw","en"],"BJ":["fr","fon","yo"],"BL":["fr"],"BM":["en"],"BN":["ms-latn","zh-hant","ms-arab","en"],"BO":["es","qu","ay","gn","aro"],"BQ":["pap","nl"],"BR":["pt","en","de","it","ja","es","ko","kgp","gub","yrl","xav"],"BS":["en"],"BT":["dz","ne","tsj","en","lep"],"BV":["und"],"BW":["en","tn","af"],"BY":["be","ru"],"BZ":["en","es"],"CA":["en","fr","it","de","pdt","cr-cans","crk","yi","iu-cans","iu-latn","moe","crj","atj","crl","csw","crm","ikt","moh","dgr","den","scs","nsk","chp","gwi"],"CC":["ms-arab","en"],"CD":["sw","lua","swc","fr","ln","lu","kg","lol","rw"],"CF":["fr","sg","ln"],"CG":["fr","ln"],"CH":["de","gsw","en","fr","it","lmo","pt","rm","rmo","wae"],"CI":["fr","bci","sef","dnj","kfo","bqv"],"CK":["en"],"CL":["es","en","arn"],"CM":["fr","en","bum","ff","ewo","ybb","bbj","nnh","bkm","bas","bax","byv","mua","maf","bfd",
116​"bss","kkj","dua","mgo","ar","jgo","ksf","agq","ha-arab","nmg","yav"],"CN":["yue","zh-hans","wuu","hsn","hak","nan","gan","ii","ug-arab","za","mn-mong","bo","ko","kk-arab","lis","ky-arab","nxq","khb","tdd","lcp","en","ru","vi","uz-cyrl","lzh"],"CO":["es","guc"],"CP":["und"],"CR":["es"],"CU":["es"],"CV":["kea","pt"],"CW":["pap","nl","es"],"CX":["en"],"CY":["el","en","tr","hy","ar"],"CZ":["cs","en","de","pl"],"DE":["de","en","fr","bar","nds","nl","it","es","ru","vmf","tr","da","swg","hr","ku-latn","el","ksh","pl","hsb","frr","dsb","frs","stq","pfl"],"DG":["en"],"DJ":["aa","so","ar","fr"],"DK":["da","en","de","fo","kl","jut"],"DM":["en"],"DO":["es","en"],"DZ":["arq","ar","fr","kab","en"],"EA":["es"],"EC":["es","qu","qug"],"EE":["et","ru","vro"],"EG":["ar","arz","en","el"],"EH":["ar"],"ER":["ti","en","tig","ar","aa","ssy","byn"],"ES":["es","en","ca","gl","eu","ast","ext"],"ET":["en","am","om","so","ti","sid","wal","aa"],"FI":["fi","en","sv","ru","et","rmf","se","smn","sms"],"FJ":["en","hi"
117​,"hif-latn","fj","rtm"],"FK":["en"],"FM":["en","chk","pon","kos","yap","uli"],"FO":["fo"],"FR":["fr","en","oc","it","pt","pcd","gsw","br","co","ca","nl","eu","frp","ia"],"GA":["fr","puu"],"GB":["en","sco","pa-guru","cy","bn","zh-hant","syl","el","it","ks-arab","gd","yi","ml","ga","fr","kw"],"GD":["en"],"GE":["ka","xmf","ru","hy","ab","os","ku-latn"],"GF":["fr","gcr","zh-hant"],"GG":["en"],"GH":["ak","en","ee","abr","gur","ada","gaa","nzi","ha-latn","saf"],"GI":["en","es"],"GL":["kl","da"],"GM":["en","man-latn"],"GN":["fr","ff","man-nkoo","sus","nqo","kpe"],"GP":["fr"],"GQ":["es","fan","fr","bvb","pt"],"GR":["el","en","pnt-grek","mk","tr","bg","sq","tsd"],"GS":["und"],"GT":["es","quc"],"GU":["en","ch"],"GW":["pt"],"GY":["en"],"HK":["zh-hant","yue","en","zh-hans"],"HM":["und"],"HN":["es","en"],"HR":["hr","en","it"],"HT":["ht","fr"],"HU":["hu","en","de","ro","hr","sk","sl"],"IC":["es"],"ID":["id","jv","su","mad","ms-arab","min","bew","ban","bug","bjn","ace","sas","bbc","zh-hant","mak",
118​"ljp","rej","gor","nij","kge","aoz","kvr","lbw","gay","rob","mdr","sxn","sly","mwv"],"IE":["en","ga"],"IL":["he","en","ar","ru","ro","yi","pl","lad","hu","am","ti","ml"],"IM":["en","gv"],"IN":["hi","en","bn","te","mr","ta","ur","gu","kn","ml","or","pa-guru","bho","awa","as","bgc","mag","mwr","mai","hne","dcc","bjj","ne","sat","wtm","rkt","ks-arab","kok","gom","swv","gbm","lmn","sd-arab","gon-telu","kfy","doi","kru","sck","wbq","xnr","tcy","wbr","khn","brx","noe","bhb","mni","raj","hoc","mtr","unr-beng","bhi","hoj","kha","kfr","grt","unx-beng","bfy","srx","saz","ccp","sd-deva","bfq","njo","ria","bo","bpy","bft","bra","lep","btv","lif-deva","lah","sa","kht","dv","dz"],"IO":["en"],"IQ":["ar","en","ckb","az-arab","fa","lrc","syr"],"IR":["fa","az-arab","mzn","glk","ckb","sdh","tk-latn","lrc","ar","bal","rmt","bqi","luz","lki","bgn","prd","hy","ps","ka","gbz","kk-arab"],"IS":["is","da"],"IT":["it","en","fr","sc","de","vec","nap","lij","scn","sl","sdc","fur","egl","ca","el","lmo","pms","hr",
119​"rgn"],"JE":["en"],"JM":["en","jam"],"JO":["ar","en"],"JP":["ja","ryu","ko"],"KE":["sw","en","ki","luy","luo","kam","kln","guz","mer","mas","ebu","so","dav","teo","pko","om","saq","ar","pa-guru","gu"],"KG":["ky-cyrl","ru"],"KH":["km","cja","kdt"],"KI":["en","gil"],"KM":["ar","fr","zdj","wni"],"KN":["en"],"KP":["ko"],"KR":["ko"],"KW":["ar"],"KY":["en"],"KZ":["ru","kk-cyrl","en","de","ug-cyrl"],"LA":["lo","kjg","kdt"],"LB":["ar","en","hy","ku-arab","fr"],"LC":["en"],"LI":["de","gsw","wae"],"LK":["si","ta","en"],"LR":["en","kpe","vai-vaii","men","vai-latn"],"LS":["st","en","zu","ss","xh"],"LT":["lt","en","ru","sgs"],"LU":["fr","lb","de","pt"],"LV":["lv","ru","ltg"],"LY":["ar"],"MA":["ary","ar","zgh","fr","en","tzm-latn","shi-latn","shi-tfng","rif-latn","rif-tfng","es"],"MC":["fr"],"MD":["ro","uk","bg","gag","ru"],"ME":["sr-latn","sq","sr-cyrl"],"MF":["fr"],"MG":["mg","fr","en"],"MH":["en","mh"],"MK":["mk","sq","tr"],"ML":["bm-latn","fr","ffm","snk","mwk","ses","tmh","bm-nkoo","khq","dtm",
120​"kao","ar","bmq","bze"],"MM":["my","shn","kac","mnw","kht"],"MN":["mn-cyrl","kk-arab","zh-hans","ru","ug-cyrl"],"MO":["zh-hant","pt","zh-hans","en"],"MP":["en","ch"],"MQ":["fr"],"MR":["ar","fr","ff","wo"],"MS":["en"],"MT":["mt","en"],"MU":["mfe","en","bho","ur","fr","ta"],"MV":["dv"],"MW":["en","ny","tum","tog","zu"],"MX":["es","en","yua","nhe","nhw","maz","nch","sei"],"MY":["ms-latn","en","zh-hant","ta","iba","jv","zmi","dtp","ml","bug","bjn"],"MZ":["pt","vmw","ndc","ts","ngl","seh","mgh","rng","ny","yao","sw","zu"],"NA":["af","kj","ng","naq","hz","en","de","tn"],"NC":["fr"],"NE":["ha-latn","fr","dje","fuq","tmh","ar","twq"],"NF":["en"],"NG":["en","pcm","ha-latn","ig","yo","fuv","tiv","efi","ibb","ha-arab","bin","kaj","kcg","ar","cch","amo"],"NI":["es"],"NL":["nl","en","de","fr","nds","li","fy","gos","id","zea","rif-latn","tr"],"NO":["nb","nn","se"],"NP":["ne","mai","bho","new","jml","en","taj","dty","awa","thl","bap","tdg","thr","mgp","lif-deva","thq","mrd","bfy","xsr","rjs","tsf",
121​"hi","ggn","gvr","bo","tkt","tdh","bn","unr-deva","lep"],"NR":["en","na"],"NU":["en","niu"],"NZ":["en","mi"],"OM":["ar","bal","fa"],"PA":["es","en","zh-hant"],"PE":["es","qu","ay"],"PF":["fr","ty","zh-hant"],"PG":["tpi","en","ho"],"PH":["en","fil","es","ceb","ilo","hil","bik","war","bhk","pam","pag","mdh","tsg","zh-hant","cps","krj","bto","hnn","tbw","bku"],"PK":["ur","pa-arab","en","lah","ps","sd-arab","skr","bal","brh","hno","fa","bgn","hnd","tg-arab","gju","bft","kvx","khw","mvy","kxp","gjk","ks-arab","btv"],"PL":["pl","en","szl","be","uk","csb","de","sli","lt"],"PM":["fr","en"],"PN":["en"],"PR":["es","en"],"PS":["ar"],"PT":["pt","en","gl","es"],"PW":["pau","en"],"PY":["gn","es","de"],"QA":["ar","fa","ml"],"RE":["fr","rcf","ta"],"RO":["ro","en","hu","de","tr","sr-latn","bg","el","pl"],"RS":["sr-cyrl","sr-latn","sq","hu","ro","hr","sk","uk"],"RU":["ru","tt","ba","cv","hy","ce","av","udm","chm","sah","os","kbd","myv","dar","bua","mdf","kum","kv","lez","krc","inh","tyv","az-cyrl","ady"
122​,"krl","lbe","koi","mrj","alt","fi","sr-latn","vep","mn-cyrl","izh","vot","cu"],"RW":["rw","en","fr"],"SA":["ar"],"SB":["en","rug"],"SC":["crs","fr","en"],"SD":["ar","en","bej","fvr","ha-arab","mls","fia","zag"],"SE":["sv","en","fi","fit","se","rmu","yi","smj","sma","ia"],"SG":["en","zh-hans","ms-latn","ta","ml","pa-guru"],"SH":["en"],"SI":["sl","en","hu","it"],"SJ":["nb","ru"],"SK":["sk","en","hu","uk","pl","de"],"SL":["kri","en","men","tem"],"SM":["it","eo"],"SN":["wo","fr","ff","srr","dyo","sav","mfv","bjt","snf","knf","bsc","mey","tnr"],"SO":["so","ar","sw","om"],"SR":["nl","srn","zh-hant"],"SS":["ar","en","nus"],"ST":["pt"],"SV":["es"],"SX":["en","es","vic","nl"],"SY":["ar","ku-latn","fr","hy","syr"],"SZ":["en","ss","zu","ts"],"TA":["en"],"TC":["en"],"TD":["fr","ar"],"TF":["fr"],"TG":["fr","ee"],"TH":["th","en","tts","nod","sou","mfa","zh-hant","kxm","kdt","mnw","shn","lcp","lwl"],"TJ":["tg-cyrl","ru","fa","ar"],"TK":["en","tkl"],"TL":["pt","tet"],"TM":["tk-latn","ru","uz-latn",
123​"ku-latn"],"TN":["aeb","ar","fr"],"TO":["to","en"],"TR":["tr","en","ku-latn","zza","kbd","az-latn","az-arab","ar","bgx","bg","ady","kiu","hy","ka","sr-latn","lzz-latn","sq","ab","el","tru","uz-latn","ky-latn","kk-cyrl"],"TT":["en","es"],"TV":["tvl","en"],"TW":["zh-hant","trv"],"TZ":["sw","en","suk","nym","kde","bez","ksb","mas","mgy","asa","lag","jmc","rof","vun","rwk","sbp"],"UA":["uk","ru","pl","yi","rue","be","ro","bg","tr","hu","el"],"UG":["sw","lg","nyn","cgg","xog","en","teo","laj","ach","myx","rw","ttj","hi"],"UM":["en"],"US":["en","es","zh-hant","fr","de","fil","it","vi","ko","ru","nv","yi","pdc","haw","frc","chr","esu","dak","cho","lkt","ik","mus"],"UY":["es"],"UZ":["uz-latn","uz-cyrl","ru","kaa","tr"],"VA":["it","la"],"VC":["en"],"VE":["es"],"VG":["en"],"VI":["en"],"VN":["vi","zh-hant","cjm"],"VU":["bi","en","fr"],"WF":["wls","fr","fud"],"WS":["sm","en"],"XK":["sq","aln","sr-cyrl","sr-latn"],"YE":["ar","en"],"YT":["swb","fr","buc","sw"],"ZA":["en","zu","xh","af","nso","tn",
124​"st","ts","ss","ve","hi","nr","sw"],"ZM":["bem","en","ny","loz"],"ZW":["sn","en","nd","mxc","ndc","kck","ny","ve","tn"],"ZZ":[]}};}(jQuery));(function($){'use strict';$.uls.data.isRedirect=function(language){return($.uls.data.languages[language]!==undefined&&$.uls.data.languages[language].length===1)?$.uls.data.languages[language][0]:!1;};$.uls.data.getScript=function(language){var target=$.uls.data.isRedirect(language);if(target){return $.uls.data.getScript(target);}if(!$.uls.data.languages[language]){return'Zyyy';}return $.uls.data.languages[language][0];};$.uls.data.getRegions=function(language){var target=$.uls.data.isRedirect(language);if(target){return $.uls.data.getRegions(target);}return($.uls.data.languages[language]&&$.uls.data.languages[language][1])||'UNKNOWN';};$.uls.data.getAutonym=function(language){var target=$.uls.data.isRedirect(language);if(target){return $.uls.data.getAutonym(target);}return($.uls.data.languages[language]&&$.uls.data.languages[language][2])||
125​language;};$.uls.data.getAutonyms=function(){var language,autonymsByCode={};for(language in $.uls.data.languages){if($.uls.data.isRedirect(language)){continue;}autonymsByCode[language]=$.uls.data.getAutonym(language);}return autonymsByCode;};$.uls.data.getAllRegions=function(){var region,allRegions=[];for(region in $.uls.data.regiongroups){allRegions.push(region);}return allRegions;};$.uls.data.getLanguagesInScript=function(script){return $.uls.data.getLanguagesInScripts([script]);};$.uls.data.getLanguagesInScripts=function(scripts){var language,i,languagesInScripts=[];for(language in $.uls.data.languages){if($.uls.data.isRedirect(language)){continue;}for(i=0;i<scripts.length;i++){if(scripts[i]===$.uls.data.getScript(language)){languagesInScripts.push(language);break;}}}return languagesInScripts;};$.uls.data.getLanguagesInRegion=function(region){return $.uls.data.getLanguagesInRegions([region]);};$.uls.data.getLanguagesInRegions=function(regions){var language,i,languagesInRegions=[];
126​for(language in $.uls.data.languages){if($.uls.data.isRedirect(language)){continue;}for(i=0;i<regions.length;i++){if($.inArray(regions[i],$.uls.data.getRegions(language))!==-1){languagesInRegions.push(language);break;}}}return languagesInRegions;};$.uls.data.getLanguagesInRegionGroup=function(groupNum){return $.uls.data.getLanguagesInRegions($.uls.data.getRegionsInGroup(groupNum));};$.uls.data.getLanguagesByScriptInRegion=function(region){var language,script,languagesByScriptInRegion={};for(language in $.uls.data.languages){if($.uls.data.isRedirect(language)){continue;}if($.inArray(region,$.uls.data.getRegions(language))!==-1){script=$.uls.data.getScript(language);if(languagesByScriptInRegion[script]===undefined){languagesByScriptInRegion[script]=[];}languagesByScriptInRegion[script].push(language);}}return languagesByScriptInRegion;};$.uls.data.getLanguagesByScriptGroupInRegion=function(region){return $.uls.data.getLanguagesByScriptGroupInRegions([region]);};$.uls.data.
127​getAllLanguagesByScriptGroup=function(){return $.uls.data.getLanguagesByScriptGroupInRegions($.uls.data.getAllRegions());};$.uls.data.getLanguagesByScriptGroup=function(languages){var languagesByScriptGroup={},language,resolvedRedirect,langScriptGroup;for(language in languages){resolvedRedirect=$.uls.data.isRedirect(language)||language;langScriptGroup=$.uls.data.getScriptGroupOfLanguage(resolvedRedirect);if(!languagesByScriptGroup[langScriptGroup]){languagesByScriptGroup[langScriptGroup]=[];}languagesByScriptGroup[langScriptGroup].push(language);}return languagesByScriptGroup;};$.uls.data.getLanguagesByScriptGroupInRegions=function(regions){var language,i,scriptGroup,languagesByScriptGroupInRegions={};for(language in $.uls.data.languages){if($.uls.data.isRedirect(language)){continue;}for(i=0;i<regions.length;i++){if($.inArray(regions[i],$.uls.data.getRegions(language))!==-1){scriptGroup=$.uls.data.getScriptGroupOfLanguage(language);if(languagesByScriptGroupInRegions[scriptGroup]===
128​undefined){languagesByScriptGroupInRegions[scriptGroup]=[];}languagesByScriptGroupInRegions[scriptGroup].push(language);break;}}}return languagesByScriptGroupInRegions;};$.uls.data.getAllLanguagesByRegionAndScript=function(){var region,regionGroup,language,script,scriptGroup,regions,regionNum,allLanguagesByRegionAndScript={};for(region in $.uls.data.regiongroups){regionGroup=$.uls.data.regiongroups[region];if(allLanguagesByRegionAndScript[regionGroup]===undefined){allLanguagesByRegionAndScript[regionGroup]={};}allLanguagesByRegionAndScript[regionGroup][region]={};}for(language in $.uls.data.languages){if($.uls.data.isRedirect(language)){continue;}script=$.uls.data.getScript(language);scriptGroup=$.uls.data.getGroupOfScript(script);regions=$.uls.data.getRegions(language);for(regionNum=0;regionNum<regions.length;regionNum++){region=regions[regionNum];regionGroup=$.uls.data.regiongroups[region];if(allLanguagesByRegionAndScript[regionGroup][region][scriptGroup]===undefined){
129​allLanguagesByRegionAndScript[regionGroup][region][scriptGroup]={};}if(allLanguagesByRegionAndScript[regionGroup][region][scriptGroup][script]===undefined){allLanguagesByRegionAndScript[regionGroup][region][scriptGroup][script]=[];}allLanguagesByRegionAndScript[regionGroup][region][scriptGroup][script].push(language);}}return allLanguagesByRegionAndScript;};$.uls.data.getRegionsInGroup=function(groupNum){var region,regionsInGroup=[];for(region in $.uls.data.regiongroups){if($.uls.data.regiongroups[region]===groupNum){regionsInGroup.push(region);}}return regionsInGroup;};$.uls.data.getGroupOfScript=function(script){var scriptGroup;for(scriptGroup in $.uls.data.scriptgroups){if($.inArray(script,$.uls.data.scriptgroups[scriptGroup])!==-1){return scriptGroup;}}return'Other';};$.uls.data.getScriptGroupOfLanguage=function(language){return $.uls.data.getGroupOfScript($.uls.data.getScript(language));};$.uls.data.sortByAutonym=function(a,b){var autonymA=$.uls.data.getAutonym(a)||a,autonymB=$.
130​uls.data.getAutonym(b)||b;return(autonymA.toLowerCase()<autonymB.toLowerCase())?-1:1;};$.uls.data.isRtl=function(language){return $.inArray($.uls.data.getScript(language),$.uls.data.rtlscripts)!==-1;};$.uls.data.getDir=function(language){return $.uls.data.isRtl(language)?'rtl':'ltr';};$.uls.data.getLanguagesInTerritory=function(territory){return $.uls.data.territories[territory];};$.uls.data.addLanguage=function(code,options){if(options.target){$.uls.data.languages[code]=[options.target];}else{$.uls.data.languages[code]=[options.script,options.regions,options.autonym];}};$.uls.data.deleteLanguage=function(code){if($.uls.data.languages[code]){delete $.uls.data.languages[code];return true;}return false;};}(jQuery));});mw.loader.implement("mediawiki.Title",function($,jQuery,require,module){(function(mw,$){function Title(title,namespace){var parsed=parse(title,namespace);if(!parsed){throw new Error('Unable to parse title');}this.namespace=parsed.namespace;this.title=parsed.title;this.ext=parsed.ext;this.fragment=parsed.fragment;return this;}var namespaceIds=mw.config.get('wgNamespaceIds'),NS_MAIN=namespaceIds[''],NS_TALK=namespaceIds.talk,NS_SPECIAL=namespaceIds.special,NS_MEDIA=namespaceIds.media,NS_FILE=namespaceIds.file,FILENAME_MAX_BYTES=240,TITLE_MAX_BYTES=255,getNsIdByName=function(ns){var id;if(typeof ns!=='string'){return false;}id=mw.config.get('wgNamespaceIds')[ns.toLowerCase()];if(id===undefined){return false;}return id;},getNamespacePrefix=function(namespace){return namespace===NS_MAIN?'':(mw.config.get('wgFormattedNamespaces')[namespace].replace(/ /g,'_')+':');},rUnderscoreTrim=/^_+|_+$/g,rSplit=/^(.+?)_*:_*(.*)$/,rInvalid=new RegExp('[^'+mw.config.get('wgLegalTitleChars')+']'+
131​'|%[0-9A-Fa-f]{2}'+'|&[A-Za-z0-9\u0080-\uFFFF]+;'+'|&#[0-9]+;'+'|&#x[0-9A-Fa-f]+;'),rWhitespace=/[ _\u0009\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\s]+/g,sanitationRules=[{pattern:/~{3}/g,replace:'',generalRule:!0},{pattern:rWhitespace,replace:' ',generalRule:!0},{pattern:/[\u200E\u200F\u202A-\u202E]/g,replace:'',generalRule:!0},{pattern:/[\x00-\x1f\x7f]/g,replace:'',generalRule:!0},{pattern:/%([0-9A-Fa-f]{2})/g,replace:'% $1',generalRule:!0},{pattern:/&(([A-Za-z0-9\x80-\xff]+|#[0-9]+|#x[0-9A-Fa-f]+);)/g,replace:'& $1',generalRule:!0},{pattern:/[:\/#]/g,replace:'-',fileRule:!0},{pattern:/[\]\}>]/g,replace:')',generalRule:!0},{pattern:/[\[\{<]/g,replace:'(',generalRule:!0},{pattern:new RegExp(rInvalid.source,'g'),replace:'-',generalRule:!0},{pattern:/^(\.|\.\.|\.\/.*|\.\.\/.*|.*\/\.\/.*|.*\/\.\.\/.*|.*\/\.|.*\/\.\.)$/g,replace:'',generalRule:!0}],parse=function(title,defaultNamespace){var namespace,m,id,i,fragment,ext;namespace=defaultNamespace
132​===undefined?NS_MAIN:defaultNamespace;title=title.replace(/[ _\s]+/g,'_').replace(rUnderscoreTrim,'');if(title!==''&&title[0]===':'){namespace=NS_MAIN;title=title.slice(1).replace(rUnderscoreTrim,'');}if(title===''){return false;}m=title.match(rSplit);if(m){id=getNsIdByName(m[1]);if(id!==false){namespace=id;title=m[2];if(namespace===NS_TALK&&(m=title.match(rSplit))){if(getNsIdByName(m[1])!==false){return false;}}}}i=title.indexOf('#');if(i===-1){fragment=null;}else{fragment=title.slice(i+1).replace(/_/g,' ');title=title.slice(0,i).replace(rUnderscoreTrim,'');}if(title.match(rInvalid)){return false;}if(title.indexOf('.')!==-1&&(title==='.'||title==='..'||title.indexOf('./')===0||title.indexOf('../')===0||title.indexOf('/./')!==-1||title.indexOf('/../')!==-1||title.slice(-2)==='/.'||title.slice(-3)==='/..')){return false;}if(title.indexOf('~~~')!==-1){return false;}if(namespace!==NS_SPECIAL&&$.byteLength(title)>TITLE_MAX_BYTES){return false;}if(title===''&&namespace!==NS_MAIN){return false
133​;}if(title[0]===':'){return false;}i=title.lastIndexOf('.');if(i===-1||title.length<=i+1){ext=null;}else{ext=title.slice(i+1);title=title.slice(0,i);}return{namespace:namespace,title:title,ext:ext,fragment:fragment};},text=function(s){if(s!==null&&s!==undefined){return s.replace(/_/g,' ');}else{return'';}},sanitize=function(s,filter){var i,ruleLength,rule,m,filterLength,rules=sanitationRules;for(i=0,ruleLength=rules.length;i<ruleLength;++i){rule=rules[i];for(m=0,filterLength=filter.length;m<filterLength;++m){if(rule[filter[m]]){s=s.replace(rule.pattern,rule.replace);}}}return s;},trimToByteLength=function(s,length){var byteLength,chopOffChars,chopOffBytes;s=s.substr(0,length);while((byteLength=$.byteLength(s))>length){chopOffBytes=byteLength-length;chopOffChars=Math.max(1,Math.floor(chopOffBytes/4));s=s.substr(0,s.length-chopOffChars);}return s;},trimFileNameToByteLength=function(name,extension){return trimToByteLength(name,FILENAME_MAX_BYTES-extension.length-1)+'.'+extension;},
134​createObject=Object.create||(function(){return function(o){function Title(){}if(o!==Object(o)){throw new Error('Cannot inherit from a non-object');}Title.prototype=o;return new Title();};}());Title.newFromText=function(title,namespace){var t,parsed=parse(title,namespace);if(!parsed){return null;}t=createObject(Title.prototype);t.namespace=parsed.namespace;t.title=parsed.title;t.ext=parsed.ext;t.fragment=parsed.fragment;return t;};Title.makeTitle=function(namespace,title){return mw.Title.newFromText(getNamespacePrefix(namespace)+title);};Title.newFromUserInput=function(title,defaultNamespace,options){var namespace,m,id,ext,parts;if(arguments.length<3&&$.type(defaultNamespace)==='object'){options=defaultNamespace;defaultNamespace=undefined;}options=$.extend({forUploading:!0},options);namespace=defaultNamespace===undefined?NS_MAIN:defaultNamespace;title=$.trim(title.replace(rWhitespace,' '));if(title!==''&&title[0]===':'){namespace=NS_MAIN;title=title.substr(1).replace(rUnderscoreTrim,
135​'');}m=title.match(rSplit);if(m){id=getNsIdByName(m[1]);if(id!==false){namespace=id;title=m[2];}}if(namespace===NS_MEDIA||(options.forUploading&&(namespace===NS_FILE))){title=sanitize(title,['generalRule','fileRule']);parts=title.split('.');if(parts.length>1){ext=parts.pop();title=$.trim(parts.join('.'));title=trimFileNameToByteLength(title,ext);}else{title=$.trim(parts.join('.'));return null;}}else{title=sanitize(title,['generalRule']);if(namespace!==NS_SPECIAL){title=trimToByteLength(title,TITLE_MAX_BYTES);}}title=title.replace(/^\:+/,'');return Title.newFromText(title,namespace);};Title.newFromFileName=function(uncleanName){return Title.newFromUserInput('File:'+uncleanName,{forUploading:!0});};Title.newFromImg=function(img){var matches,i,regex,src,decodedSrc,thumbPhpRegex=/thumb\.php/,regexes=[/\/[a-f0-9]\/[a-f0-9]{2}\/([^\s\/]+)\/[^\s\/]+-[^\s\/]*$/,/\/([^\s\/]+)\/[^\s\/]+-(?:\1|thumbnail)[^\s\/]*$/,/\/[a-f0-9]\/[a-f0-9]{2}\/([^\s\/]+)$/,/\/([^\s\/]+)$/],recount=regexes.length;
136​src=img.jquery?img[0].src:img.src;matches=src.match(thumbPhpRegex);if(matches){return mw.Title.newFromText('File:'+mw.util.getParamValue('f',src));}decodedSrc=decodeURIComponent(src);for(i=0;i<recount;i++){regex=regexes[i];matches=decodedSrc.match(regex);if(matches&&matches[1]){return mw.Title.newFromText('File:'+matches[1]);}}return null;};Title.exists=function(title){var match,type=$.type(title),obj=Title.exist.pages;if(type==='string'){match=obj[title];}else if(type==='object'&&title instanceof Title){match=obj[title.toString()];}else{throw new Error('mw.Title.exists: title must be a string or an instance of Title');}if(typeof match==='boolean'){return match;}return null;};Title.exist={pages:{},set:function(titles,state){titles=$.isArray(titles)?titles:[titles];state=state===undefined?true:!!state;var i,pages=this.pages,len=titles.length;for(i=0;i<len;i++){pages[titles[i]]=state;}return true;}};Title.normalizeExtension=function(extension){var lower=extension.toLowerCase(),squish={
137​htm:'html',jpeg:'jpg',mpeg:'mpg',tiff:'tif',ogv:'ogg'};if(squish.hasOwnProperty(lower)){return squish[lower];}else if(/^[0-9a-z]+$/.test(lower)){return lower;}else{return'';}};Title.prototype={constructor:Title,getNamespaceId:function(){return this.namespace;},getNamespacePrefix:function(){return getNamespacePrefix(this.namespace);},getName:function(){if($.inArray(this.namespace,mw.config.get('wgCaseSensitiveNamespaces'))!==-1||!this.title.length){return this.title;}return this.title[0].toUpperCase()+this.title.slice(1);},getNameText:function(){return text(this.getName());},getExtension:function(){return this.ext;},getDotExtension:function(){return this.ext===null?'':'.'+this.ext;},getMain:function(){return this.getName()+this.getDotExtension();},getMainText:function(){return text(this.getMain());},getPrefixedDb:function(){return this.getNamespacePrefix()+this.getMain();},getPrefixedText:function(){return text(this.getPrefixedDb());},getRelativeText:function(namespace){if(this.
138​getNamespaceId()===namespace){return this.getMainText();}else if(this.getNamespaceId()===NS_MAIN){return':'+this.getPrefixedText();}else{return this.getPrefixedText();}},getFragment:function(){return this.fragment;},getUrl:function(params){var fragment=this.getFragment();if(fragment){return mw.util.getUrl(this.toString()+'#'+fragment,params);}else{return mw.util.getUrl(this.toString(),params);}},exists:function(){return Title.exists(this);}};Title.prototype.toString=Title.prototype.getPrefixedDb;Title.prototype.toText=Title.prototype.getPrefixedText;mw.Title=Title;}(mediaWiki,jQuery));});mw.loader.implement("mediawiki.Uri",function($,jQuery,require,module){(function(mw,$){function cat(pre,val,post,raw){if(val===undefined||val===null||val===''){return'';}return pre+(raw?val:mw.Uri.encode(val))+post;}var parser={strict:mw.template.get('mediawiki.Uri','strict.regexp').render(),loose:mw.template.get('mediawiki.Uri','loose.regexp').render()},properties=['protocol','user','password','host','port','path','query','fragment'];mw.UriRelative=function(documentLocation){var getDefaultUri=(function(){var href,uri;return function(){var hrefCur=typeof documentLocation==='string'?documentLocation:documentLocation();if(href===hrefCur){return uri;}href=hrefCur;uri=new Uri(href);return uri;};}());function Uri(uri,options){var prop,defaultUri=getDefaultUri();options=typeof options==='object'?options:{strictMode:!!options};options=$.extend({strictMode:!1,overrideKeys:!1},options);if(uri!==undefined&&uri!==null&&uri!==''){if(typeof uri==='string'){this.parse(uri,options);}else if(
139​typeof uri==='object'){for(prop in uri){if(uri.hasOwnProperty(prop)){if($.isArray(uri[prop])||$.isPlainObject(uri[prop])){this[prop]=$.extend(true,{},uri[prop]);}else{this[prop]=uri[prop];}}}if(!this.query){this.query={};}}}else{return defaultUri.clone();}if(!this.protocol){this.protocol=defaultUri.protocol;}if(!this.host){this.host=defaultUri.host;if(!this.port){this.port=defaultUri.port;}}if(this.path&&this.path[0]!=='/'){throw new Error('Bad constructor arguments');}if(!(this.protocol&&this.host&&this.path)){throw new Error('Bad constructor arguments');}}Uri.encode=function(s){return encodeURIComponent(s).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/%20/g,'+');};Uri.decode=function(s){return decodeURIComponent(s.replace(/\+/g,'%20'));};Uri.prototype={parse:function(str,options){var q,matches,uri=this,hasOwn=Object.prototype.hasOwnProperty;matches=parser[options.strictMode?'strict':'loose'].exec(str);$.each(properties
140​,function(i,property){uri[property]=matches[i+1];});q={};if(uri.query){uri.query.replace(/(?:^|&)([^&=]*)(?:(=)([^&]*))?/g,function($0,$1,$2,$3){var k,v;if($1){k=Uri.decode($1);v=($2===''||$2===undefined)?null:Uri.decode($3);if(options.overrideKeys||!hasOwn.call(q,k)){q[k]=v;}else{if(typeof q[k]==='string'){q[k]=[q[k]];}if($.isArray(q[k])){q[k].push(v);}}}});}uri.query=q;},getUserInfo:function(){return cat('',this.user,cat(':',this.password,''));},getHostPort:function(){return this.host+cat(':',this.port,'');},getAuthority:function(){return cat('',this.getUserInfo(),'@')+this.getHostPort();},getQueryString:function(){var args=[];$.each(this.query,function(key,val){var k=Uri.encode(key),vals=$.isArray(val)?val:[val];$.each(vals,function(i,v){if(v===null){args.push(k);}else if(k==='title'){args.push(k+'='+mw.util.wikiUrlencode(v));}else{args.push(k+'='+Uri.encode(v));}});});return args.join('&');},getRelativePath:function(){return this.path+cat('?',this.getQueryString(),'',true)+cat('#',
141​this.fragment,'');},toString:function(){return this.protocol+'://'+this.getAuthority()+this.getRelativePath();},clone:function(){return new Uri(this);},extend:function(parameters){$.extend(this.query,parameters);return this;}};return Uri;};mw.Uri=mw.UriRelative(function(){return location.href;});}(mediaWiki,jQuery));},{},{},{"strict.regexp":"^\n(?:(?\u003Cprotocol\u003E[^:/?#]+):)?\n(?://(?:\n\t(?:\n\t\t(?\u003Cuser\u003E[^:@/?#]*)\n\t\t(?::(?\u003Cpassword\u003E[^:@/?#]*))?\n\t)?@)?\n\t(?\u003Chost\u003E[^:/?#]*)\n\t(?::(?\u003Cport\u003E\\d*))?\n)?\n(?\u003Cpath\u003E(?:[^?#/]*/)*[^?#]*)\n(?:\\?(?\u003Cquery\u003E[^#]*))?\n(?:\\#(?\u003Cfragment\u003E.*))?\n","loose.regexp":
142​"^\n(?:\n\t(?![^:@]+:[^:@/]*@)\n\t(?\u003Cprotocol\u003E[^:/?#.]+):\n)?\n(?://)?\n(?:(?:\n\t(?\u003Cuser\u003E[^:@/?#]*)\n\t(?::(?\u003Cpassword\u003E[^:@/?#]*))?\n)?@)?\n(?\u003Chost\u003E[^:/?#]*)\n(?::(?\u003Cport\u003E\\d*))?\n(\n\t(?:/\n\t\t(?:[^?#]\n\t\t\t(?![^?#/]*\\.[^?#/.]+(?:[?#]|$))\n\t\t)*/?\n\t)?\n\t[^?#/]*\n)\n(?:\\?(?\u003Cquery\u003E[^#]*))?\n(?:\\#(?\u003Cfragment\u003E.*))?\n"});mw.loader.implement("mediawiki.api",function($,jQuery,require,module){(function(mw,$){var defaultOptions={parameters:{action:'query',format:'json'},ajax:{url:mw.util.wikiScript('api'),timeout:30*1000,dataType:'json'}},promises={};function mapLegacyToken(action){var csrfActions=['edit','delete','protect','move','block','unblock','email','import','options'];if($.inArray(action,csrfActions)!==-1){mw.track('mw.deprecate','apitoken_'+action);mw.log.warn('Use of the "'+action+'" token is deprecated. Use "csrf" instead.');return'csrf';}return action;}promises[defaultOptions.ajax.url]={};$.each(mw.user.tokens.get(),function(key,value){promises[defaultOptions.ajax.url][key]=$.Deferred().resolve(value).promise({abort:function(){}});});mw.Api=function(options){options=options||{};if(options.ajax&&options.ajax.url!==undefined){options.ajax.url=String(options.ajax.url);}options.parameters=$.extend({},defaultOptions.parameters,options.parameters);options.ajax=$.extend({},defaultOptions.ajax,options.
143​ajax);this.defaults=options;this.requests=[];};mw.Api.prototype={abort:function(){$.each(this.requests,function(index,request){if(request){request.abort();}});},get:function(parameters,ajaxOptions){ajaxOptions=ajaxOptions||{};ajaxOptions.type='GET';return this.ajax(parameters,ajaxOptions);},post:function(parameters,ajaxOptions){ajaxOptions=ajaxOptions||{};ajaxOptions.type='POST';return this.ajax(parameters,ajaxOptions);},preprocessParameters:function(parameters){var key;for(key in parameters){if($.isArray(parameters[key])){parameters[key]=parameters[key].join('|');}if(parameters[key]===false||parameters[key]===undefined){delete parameters[key];}}},ajax:function(parameters,ajaxOptions){var token,requestIndex,api=this,apiDeferred=$.Deferred(),xhr,key,formData;parameters=$.extend({},this.defaults.parameters,parameters);ajaxOptions=$.extend({},this.defaults.ajax,ajaxOptions);if(parameters.token){token=parameters.token;delete parameters.token;}this.preprocessParameters(parameters);if(
144​ajaxOptions.type==='POST'&&window.FormData&&ajaxOptions.contentType==='multipart/form-data'){formData=new FormData();for(key in parameters){formData.append(key,parameters[key]);}if(token){formData.append('token',token);}ajaxOptions.data=formData;ajaxOptions.processData=!1;ajaxOptions.contentType=!1;}else{ajaxOptions.data=$.param(parameters);if(token){ajaxOptions.data+='&token='+encodeURIComponent(token);}ajaxOptions.data=ajaxOptions.data.replace(/\./g,'%2E');if(ajaxOptions.contentType==='multipart/form-data'){delete ajaxOptions.contentType;}}xhr=$.ajax(ajaxOptions).fail(function(xhr,textStatus,exception){apiDeferred.reject('http',{xhr:xhr,textStatus:textStatus,exception:exception});}).done(function(result,textStatus,jqXHR){if(result===undefined||result===null||result===''){apiDeferred.reject('ok-but-empty','OK response but empty result (check HTTP headers?)',result,jqXHR);}else if(result.error){var code=result.error.code===undefined?'unknown':result.error.code;apiDeferred.reject(
145​code,result,result,jqXHR);}else{apiDeferred.resolve(result,jqXHR);}});requestIndex=this.requests.length;this.requests.push(xhr);xhr.always(function(){api.requests[requestIndex]=null;});return apiDeferred.promise({abort:xhr.abort}).fail(function(code,details){if(!(code==='http'&&details&&details.textStatus==='abort')){mw.log('mw.Api error: ',code,details);}});},postWithToken:function(tokenType,params,ajaxOptions){var api=this,abortable;return(abortable=api.getToken(tokenType,params.assert)).then(function(token){params.token=token;return(abortable=api.post(params,ajaxOptions)).then(null,function(code){if(code==='badtoken'){api.badToken(tokenType);params.token=undefined;return(abortable=api.getToken(tokenType,params.assert)).then(function(token){params.token=token;return(abortable=api.post(params,ajaxOptions)).promise();});}return this;});}).promise({abort:function(){abortable.abort();}});},getToken:function(type,assert){var apiPromise,promiseGroup,d;type=mapLegacyToken(type);promiseGroup
146​=promises[this.defaults.ajax.url];d=promiseGroup&&promiseGroup[type+'Token'];if(!d){apiPromise=this.get({action:'query',meta:'tokens',type:type,assert:assert});d=apiPromise.then(function(res){if(!res.query.tokens[type+'token']){return $.Deferred().reject('token-missing',res);}return res.query.tokens[type+'token'];},function(){delete promiseGroup[type+'Token'];return this;}).promise({abort:apiPromise.abort});if(!promiseGroup){promiseGroup=promises[this.defaults.ajax.url]={};}promiseGroup[type+'Token']=d;}return d;},badToken:function(type){var promiseGroup=promises[this.defaults.ajax.url];type=mapLegacyToken(type);if(promiseGroup){delete promiseGroup[type+'Token'];}}};mw.Api.errors=['ok-but-empty','timeout','duplicate','duplicate-archive','noimageinfo','uploaddisabled','nomodule','mustbeposted','badaccess-groups','missingresult','missingparam','invalid-file-key','copyuploaddisabled','mustbeloggedin','empty-file','file-too-large','filetype-missing','filetype-banned','filetype-banned-type'
147​,'filename-tooshort','illegal-filename','verification-error','hookaborted','unknown-error','internal-error','overwrite','badtoken','fetchfileerror','fileexists-shared-forbidden','invalidtitle','notloggedin','autoblocked','blocked','stashfailed','stasherror','stashedfilenotfound','stashpathinvalid','stashfilestorage','stashzerolength','stashnotloggedin','stashwrongowner','stashnosuchfilekey'];mw.Api.warnings=['duplicate','exists'];}(mediaWiki,jQuery));});mw.loader.implement("mediawiki.cldr",function($,jQuery,require,module){(function(mw){'use strict';mw.cldr={getPluralForm:function(number,pluralRules){var i;for(i=0;i<pluralRules.length;i++){if(mw.libs.pluralRuleParser(pluralRules[i],number)){break;}}return i;}};}(mediaWiki));});mw.loader.implement("mediawiki.cookie",function($,jQuery,require,module){(function(mw,$){'use strict';mw.cookie={set:function(key,value,options){var config,defaultOptions,date;config=mw.config.get(['wgCookiePrefix','wgCookieDomain','wgCookiePath','wgCookieExpiration']);defaultOptions={prefix:config.wgCookiePrefix,domain:config.wgCookieDomain,path:config.wgCookiePath,secure:!1};if($.type(options)!=='object'){defaultOptions.expires=options;options=defaultOptions;}else{options=$.extend(defaultOptions,options);}if(options.expires===undefined&&config.wgCookieExpiration!==0){date=new Date();date.setTime(Number(date)+(config.wgCookieExpiration*1000));options.expires=date;}else if(typeof options.expires==='number'){date=new Date();date.setTime(Number(date)+(options.expires*1000));options.expires=date;}else if(options.expires===null){delete options.expires;}key=options.prefix+key;delete options.prefix;if(value!==null){value=String(value);}$.cookie(key,value,options);},get:function(key,prefix
148​,defaultValue){var result;if(prefix===undefined||prefix===null){prefix=mw.config.get('wgCookiePrefix');}if(arguments.length<3){defaultValue=null;}result=$.cookie(prefix+key);return result!==null?result:defaultValue;}};}(mediaWiki,jQuery));});mw.loader.implement("mediawiki.jqueryMsg",function($,jQuery,require,module){(function(mw,$){var oldParser,slice=Array.prototype.slice,parserDefaults={magic:{SITENAME:mw.config.get('wgSiteName')},allowedHtmlElements:[],allowedHtmlCommonAttributes:['id','class','style','lang','dir','title','role'],allowedHtmlAttributesByElement:{},messages:mw.messages,language:mw.language,format:'parse'};function appendWithoutParsing($parent,children){var i,len;if(!$.isArray(children)){children=[children];}for(i=0,len=children.length;i<len;i++){if(typeof children[i]!=='object'){children[i]=document.createTextNode(children[i]);}if(children[i]instanceof jQuery&&children[i].hasClass('mediaWiki_htmlEmitter')){children[i]=children[i].contents();}}return $parent.append(children);}function decodePrimaryHtmlEntities(encoded){return encoded.replace(/&#039;/g,'\'').replace(/&quot;/g,'"').replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');}function textify(input){if(input instanceof jQuery){input=input
149​.text();}return String(input);}function getFailableParserFn(options){return function(args){var fallback,parser=new mw.jqueryMsg.parser(options),key=args[0],argsArray=$.isArray(args[1])?args[1]:slice.call(args,1);try{return parser.parse(key,argsArray);}catch(e){fallback=parser.settings.messages.get(key);mw.log.warn('mediawiki.jqueryMsg: '+key+': '+e.message);mw.track('mediawiki.jqueryMsg.error',{messageKey:key,errorMessage:e.message});return $('<span>').text(fallback);}};}mw.jqueryMsg={};mw.jqueryMsg.setParserDefaults=function(data){$.extend(parserDefaults,data);};mw.jqueryMsg.getParserDefaults=function(){return $.extend({},parserDefaults);};mw.jqueryMsg.getMessageFunction=function(options){var failableParserFn,format;if(options&&options.format!==undefined){format=options.format;}else{format=parserDefaults.format;}return function(){if(!failableParserFn){failableParserFn=getFailableParserFn(options);}var failableResult=failableParserFn(arguments);if(format==='text'||format==='escaped'){
150​return failableResult.text();}else{return failableResult.html();}};};mw.jqueryMsg.getPlugin=function(options){var failableParserFn;return function(){if(!failableParserFn){failableParserFn=getFailableParserFn(options);}var $target=this.empty();appendWithoutParsing($target,failableParserFn(arguments));return $target;};};mw.jqueryMsg.parser=function(options){this.settings=$.extend({},parserDefaults,options);this.settings.onlyCurlyBraceTransform=(this.settings.format==='text'||this.settings.format==='escaped');this.astCache={};this.emitter=new mw.jqueryMsg.htmlEmitter(this.settings.language,this.settings.magic);};mw.jqueryMsg.parser.prototype={parse:function(key,replacements){var ast=this.getAst(key);return this.emitter.emit(ast,replacements);},getAst:function(key){var wikiText;if(!this.astCache.hasOwnProperty(key)){wikiText=this.settings.messages.get(key);if(typeof wikiText!=='string'){wikiText='\\['+key+'\\]';}this.astCache[key]=this.wikiTextToAst(wikiText);}return this.astCache[key];},
151​wikiTextToAst:function(input){var pos,regularLiteral,regularLiteralWithoutBar,regularLiteralWithoutSpace,regularLiteralWithSquareBrackets,doubleQuote,singleQuote,backslash,anyCharacter,asciiAlphabetLiteral,escapedOrLiteralWithoutSpace,escapedOrLiteralWithoutBar,escapedOrRegularLiteral,whitespace,dollar,digits,htmlDoubleQuoteAttributeValue,htmlSingleQuoteAttributeValue,htmlAttributeEquals,openHtmlStartTag,optionalForwardSlash,openHtmlEndTag,closeHtmlTag,openExtlink,closeExtlink,wikilinkContents,openWikilink,closeWikilink,templateName,pipe,colon,templateContents,openTemplate,closeTemplate,nonWhitespaceExpression,paramExpression,expression,curlyBraceTransformExpression,result,settings=this.settings,concat=Array.prototype.concat;pos=0;function choice(ps){return function(){var i,result;for(i=0;i<ps.length;i++){result=ps[i]();if(result!==null){return result;}}return null;};}function sequence(ps){var i,res,originalPos=pos,result=[];for(i=0;i<ps.length;i++){res=ps[i]();if(res===null){pos=
152​originalPos;return null;}result.push(res);}return result;}function nOrMore(n,p){return function(){var originalPos=pos,result=[],parsed=p();while(parsed!==null){result.push(parsed);parsed=p();}if(result.length<n){pos=originalPos;return null;}return result;};}function transform(p,fn){return function(){var result=p();return result===null?null:fn(result);};}function makeStringParser(s){var len=s.length;return function(){var result=null;if(input.substr(pos,len)===s){result=s;pos+=len;}return result;};}function makeRegexParser(regex){return function(){var matches=input.slice(pos).match(regex);if(matches===null){return null;}pos+=matches[0].length;return matches[0];};}regularLiteral=makeRegexParser(/^[^{}\[\]$<\\]/);regularLiteralWithoutBar=makeRegexParser(/^[^{}\[\]$\\|]/);regularLiteralWithoutSpace=makeRegexParser(/^[^{}\[\]$\s]/);regularLiteralWithSquareBrackets=makeRegexParser(/^[^{}$\\]/);backslash=makeStringParser('\\');doubleQuote=makeStringParser('"');singleQuote=makeStringParser('\''
153​);anyCharacter=makeRegexParser(/^./);openHtmlStartTag=makeStringParser('<');optionalForwardSlash=makeRegexParser(/^\/?/);openHtmlEndTag=makeStringParser('</');htmlAttributeEquals=makeRegexParser(/^\s*=\s*/);closeHtmlTag=makeRegexParser(/^\s*>/);function escapedLiteral(){var result=sequence([backslash,anyCharacter]);return result===null?null:result[1];}escapedOrLiteralWithoutSpace=choice([escapedLiteral,regularLiteralWithoutSpace]);escapedOrLiteralWithoutBar=choice([escapedLiteral,regularLiteralWithoutBar]);escapedOrRegularLiteral=choice([escapedLiteral,regularLiteral]);function literalWithoutSpace(){var result=nOrMore(1,escapedOrLiteralWithoutSpace)();return result===null?null:result.join('');}function literalWithoutBar(){var result=nOrMore(1,escapedOrLiteralWithoutBar)();return result===null?null:result.join('');}function literal(){var result=nOrMore(1,escapedOrRegularLiteral)();return result===null?null:result.join('');}function curlyBraceTransformExpressionLiteral(){var result=
154​nOrMore(1,regularLiteralWithSquareBrackets)();return result===null?null:result.join('');}asciiAlphabetLiteral=makeRegexParser(/^[A-Za-z]+/);htmlDoubleQuoteAttributeValue=makeRegexParser(/^[^"]*/);htmlSingleQuoteAttributeValue=makeRegexParser(/^[^']*/);whitespace=makeRegexParser(/^\s+/);dollar=makeStringParser('$');digits=makeRegexParser(/^\d+/);function replacement(){var result=sequence([dollar,digits]);if(result===null){return null;}return['REPLACE',parseInt(result[1],10)-1];}openExtlink=makeStringParser('[');closeExtlink=makeStringParser(']');function extlink(){var result,parsedResult,target;result=null;parsedResult=sequence([openExtlink,nOrMore(1,nonWhitespaceExpression),whitespace,nOrMore(1,expression),closeExtlink]);if(parsedResult!==null){target=parsedResult[1].length===1?parsedResult[1][0]:['CONCAT'].concat(parsedResult[1]);result=['EXTLINK',target,['CONCAT'].concat(parsedResult[3])];}return result;}openWikilink=makeStringParser('[[');closeWikilink=makeStringParser(']]');pipe=
155​makeStringParser('|');function template(){var result=sequence([openTemplate,templateContents,closeTemplate]);return result===null?null:result[1];}function pipedWikilink(){var result=sequence([nOrMore(1,paramExpression),pipe,nOrMore(1,expression)]);return result===null?null:[['CONCAT'].concat(result[0]),['CONCAT'].concat(result[2])];}function unpipedWikilink(){var result=sequence([nOrMore(1,paramExpression)]);return result===null?null:[['CONCAT'].concat(result[0])];}wikilinkContents=choice([pipedWikilink,unpipedWikilink]);function wikilink(){var result,parsedResult,parsedLinkContents;result=null;parsedResult=sequence([openWikilink,wikilinkContents,closeWikilink]);if(parsedResult!==null){parsedLinkContents=parsedResult[1];result=['WIKILINK'].concat(parsedLinkContents);}return result;}function doubleQuotedHtmlAttributeValue(){var parsedResult=sequence([doubleQuote,htmlDoubleQuoteAttributeValue,doubleQuote]);return parsedResult===null?null:parsedResult[1];}function
156​singleQuotedHtmlAttributeValue(){var parsedResult=sequence([singleQuote,htmlSingleQuoteAttributeValue,singleQuote]);return parsedResult===null?null:parsedResult[1];}function htmlAttribute(){var parsedResult=sequence([whitespace,asciiAlphabetLiteral,htmlAttributeEquals,choice([doubleQuotedHtmlAttributeValue,singleQuotedHtmlAttributeValue])]);return parsedResult===null?null:[parsedResult[1],parsedResult[3]];}function isAllowedHtml(startTagName,endTagName,attributes){var i,len,attributeName;startTagName=startTagName.toLowerCase();endTagName=endTagName.toLowerCase();if(startTagName!==endTagName||$.inArray(startTagName,settings.allowedHtmlElements)===-1){return false;}for(i=0,len=attributes.length;i<len;i+=2){attributeName=attributes[i];if($.inArray(attributeName,settings.allowedHtmlCommonAttributes)===-1&&$.inArray(attributeName,settings.allowedHtmlAttributesByElement[startTagName]||[])===-1){return false;}}return true;}function htmlAttributes(){var parsedResult=nOrMore(0,htmlAttribute)();
157​return concat.apply(['HTMLATTRIBUTES'],parsedResult);}function html(){var parsedOpenTagResult,parsedHtmlContents,parsedCloseTagResult,wrappedAttributes,attributes,startTagName,endTagName,startOpenTagPos,startCloseTagPos,endOpenTagPos,endCloseTagPos,result=null;startOpenTagPos=pos;parsedOpenTagResult=sequence([openHtmlStartTag,asciiAlphabetLiteral,htmlAttributes,optionalForwardSlash,closeHtmlTag]);if(parsedOpenTagResult===null){return null;}endOpenTagPos=pos;startTagName=parsedOpenTagResult[1];parsedHtmlContents=nOrMore(0,expression)();startCloseTagPos=pos;parsedCloseTagResult=sequence([openHtmlEndTag,asciiAlphabetLiteral,closeHtmlTag]);if(parsedCloseTagResult===null){return['CONCAT',input.slice(startOpenTagPos,endOpenTagPos)].concat(parsedHtmlContents);}endCloseTagPos=pos;endTagName=parsedCloseTagResult[1];wrappedAttributes=parsedOpenTagResult[2];attributes=wrappedAttributes.slice(1);if(isAllowedHtml(startTagName,endTagName,attributes)){result=['HTMLELEMENT',startTagName,
158​wrappedAttributes].concat(parsedHtmlContents);}else{result=['CONCAT',input.slice(startOpenTagPos,endOpenTagPos)].concat(parsedHtmlContents,input.slice(startCloseTagPos,endCloseTagPos));}return result;}function nowiki(){var parsedResult,plainText,result=null;parsedResult=sequence([makeStringParser('<nowiki>'),makeRegexParser(/^.*?(?=<\/nowiki>)/),makeStringParser('</nowiki>')]);if(parsedResult!==null){plainText=parsedResult[1];result=['CONCAT'].concat(plainText);}return result;}templateName=transform(makeRegexParser(/^[ !"$&'()*,.\/0-9;=?@A-Z\^_`a-z~\x80-\xFF+\-]+/),function(result){return result.toString();});function templateParam(){var expr,result;result=sequence([pipe,nOrMore(0,paramExpression)]);if(result===null){return null;}expr=result[1];return expr.length>1?['CONCAT'].concat(expr):expr[0];}function templateWithReplacement(){var result=sequence([templateName,colon,replacement]);return result===null?null:[result[0],result[2]];}function templateWithOutReplacement(){var result=
159​sequence([templateName,colon,paramExpression]);return result===null?null:[result[0],result[2]];}function templateWithOutFirstParameter(){var result=sequence([templateName,colon]);return result===null?null:[result[0],''];}colon=makeStringParser(':');templateContents=choice([function(){var res=sequence([choice([templateWithReplacement,templateWithOutReplacement,templateWithOutFirstParameter]),nOrMore(0,templateParam)]);return res===null?null:res[0].concat(res[1]);},function(){var res=sequence([templateName,nOrMore(0,templateParam)]);if(res===null){return null;}return[res[0]].concat(res[1]);}]);openTemplate=makeStringParser('{{');closeTemplate=makeStringParser('}}');nonWhitespaceExpression=choice([template,wikilink,extlink,replacement,literalWithoutSpace]);paramExpression=choice([template,wikilink,extlink,replacement,literalWithoutBar]);expression=choice([template,wikilink,extlink,replacement,nowiki,html,literal]);curlyBraceTransformExpression=choice([template,replacement,
160​curlyBraceTransformExpressionLiteral]);function start(rootExpression){var result=nOrMore(0,rootExpression)();if(result===null){return null;}return['CONCAT'].concat(result);}result=start(this.settings.onlyCurlyBraceTransform?curlyBraceTransformExpression:expression);if(result===null||pos!==input.length){throw new Error('Parse error at position '+pos.toString()+' in input: '+input);}return result;}};mw.jqueryMsg.htmlEmitter=function(language,magic){this.language=language;var jmsg=this;$.each(magic,function(key,val){jmsg[key.toLowerCase()]=function(){return val;};});this.emit=function(node,replacements){var ret,subnodes,operation,jmsg=this;switch(typeof node){case'string':case'number':ret=node;break;case'object':subnodes=$.map(node.slice(1),function(n){return jmsg.emit(n,replacements);});operation=node[0].toLowerCase();if(typeof jmsg[operation]==='function'){ret=jmsg[operation](subnodes,replacements);}else{throw new Error('Unknown operation "'+operation+'"');}break;case'undefined':ret='';
161​break;default:throw new Error('Unexpected type in AST: '+typeof node);}return ret;};};mw.jqueryMsg.htmlEmitter.prototype={concat:function(nodes){var $span=$('<span>').addClass('mediaWiki_htmlEmitter');$.each(nodes,function(i,node){appendWithoutParsing($span,node);});return $span;},replace:function(nodes,replacements){var index=parseInt(nodes[0],10);if(index<replacements.length){return replacements[index];}else{return'$'+(index+1);}},wikilink:function(nodes){var page,anchor,url,$el;page=textify(nodes[0]);if(page.charAt(0)===':'){page=page.slice(1);}url=mw.util.getUrl(page);if(nodes.length===1){anchor=page;}else{anchor=nodes[1];}$el=$('<a>').attr({title:page,href:url});return appendWithoutParsing($el,anchor);},htmlattributes:function(nodes){var i,len,mapping={};for(i=0,len=nodes.length;i<len;i+=2){mapping[nodes[i]]=decodePrimaryHtmlEntities(nodes[i+1]);}return mapping;},htmlelement:function(nodes){var tagName,attributes,contents,$element;tagName=nodes.shift();attributes=nodes.shift();
162​contents=nodes;$element=$(document.createElement(tagName)).attr(attributes);return appendWithoutParsing($element,contents);},extlink:function(nodes){var $el,arg=nodes[0],contents=nodes[1];if(arg instanceof jQuery&&!arg.hasClass('mediaWiki_htmlEmitter')){$el=arg;}else{$el=$('<a>');if(typeof arg==='function'){$el.attr('href','#').click(function(e){e.preventDefault();}).click(arg);}else{$el.attr('href',textify(arg));}}return appendWithoutParsing($el.empty(),contents);},plural:function(nodes){var forms,firstChild,firstChildText,explicitPluralFormNumber,formIndex,form,count,explicitPluralForms={};count=parseFloat(this.language.convertNumber(nodes[0],true));forms=nodes.slice(1);for(formIndex=0;formIndex<forms.length;formIndex++){form=forms[formIndex];if(form instanceof jQuery&&form.hasClass('mediaWiki_htmlEmitter')){firstChild=form.contents().get(0);if(firstChild&&firstChild.nodeType===Node.TEXT_NODE){firstChildText=firstChild.textContent;if(/^\d+=/.test(firstChildText)){
163​explicitPluralFormNumber=parseInt(firstChildText.split(/=/)[0],10);firstChild.textContent=firstChildText.slice(firstChildText.indexOf('=')+1);explicitPluralForms[explicitPluralFormNumber]=form;forms[formIndex]=undefined;}}}else if(/^\d+=/.test(form)){explicitPluralFormNumber=parseInt(form.split(/=/)[0],10);explicitPluralForms[explicitPluralFormNumber]=form.slice(form.indexOf('=')+1);forms[formIndex]=undefined;}}forms=$.map(forms,function(form){return form;});return this.language.convertPlural(count,forms,explicitPluralForms);},gender:function(nodes){var gender,maybeUser=nodes[0],forms=nodes.slice(1);if(maybeUser===''){maybeUser=mw.user;}if(maybeUser&&maybeUser.options instanceof mw.Map){gender=maybeUser.options.get('gender');}else{gender=maybeUser;}return this.language.gender(gender,forms);},grammar:function(nodes){var form=nodes[0],word=nodes[1];return word&&form&&this.language.convertGrammar(word,form);},'int':function(nodes){var msg=nodes[0];return mw.jqueryMsg.getMessageFunction()(
164​msg.charAt(0).toLowerCase()+msg.slice(1));},ns:function(nodes){var ns=$.trim(textify(nodes[0]));if(!/^\d+$/.test(ns)){ns=mw.config.get('wgNamespaceIds')[ns.replace(/ /g,'_').toLowerCase()];}ns=mw.config.get('wgFormattedNamespaces')[ns];return ns||'';},formatnum:function(nodes){var isInteger=(nodes[1]&&nodes[1]==='R')?true:!1,number=nodes[0];return this.language.convertNumber(number,isInteger);},lc:function(nodes){return textify(nodes[0]).toLowerCase();},uc:function(nodes){return textify(nodes[0]).toUpperCase();},lcfirst:function(nodes){var text=textify(nodes[0]);return text.charAt(0).toLowerCase()+text.slice(1);},ucfirst:function(nodes){var text=textify(nodes[0]);return text.charAt(0).toUpperCase()+text.slice(1);}};mw.log.deprecate(window,'gM',mw.jqueryMsg.getMessageFunction(),'Use mw.message( ... ).parse() instead.');$.fn.msg=mw.jqueryMsg.getPlugin();oldParser=mw.Message.prototype.parser;mw.Message.prototype.parser=function(){if(this.format==='plain'||!/\{\{|[\[<>&]/.test(this.map.
165​get(this.key))){return oldParser.apply(this);}if(!this.map.hasOwnProperty(this.format)){this.map[this.format]=mw.jqueryMsg.getMessageFunction({messages:this.map,format:this.format});}return this.map[this.format](this.key,this.parameters);};mw.Message.prototype.parseDom=(function(){var reusableParent=$('<div>');return function(){return reusableParent.msg(this.key,this.parameters).contents().detach();};})();}(mediaWiki,jQuery));mw.jqueryMsg.setParserDefaults({"allowedHtmlElements":["b","bdi","del","i","ins","u","font","big","small","sub","sup","h1","h2","h3","h4","h5","h6","cite","code","em","s","strike","strong","tt","var","div","center","blockquote","ol","ul","dl","table","caption","pre","ruby","rb","rp","rt","rtc","p","span","abbr","dfn","kbd","samp","data","time","mark","li","dt","dd"]});});mw.loader.implement("mediawiki.language",function($,jQuery,require,module){(function(mw,$){$.extend(mw.language,{procPLURAL:function(template){if(template.title&&template.parameters&&mw.language.convertPlural){if(template.parameters.length===0){return'';}var count=mw.language.convertNumber(template.title,true);return mw.language.convertPlural(parseInt(count,10),template.parameters);}if(template.parameters[0]){return template.parameters[0];}return'';},convertPlural:function(count,forms,explicitPluralForms){var pluralRules,pluralFormIndex=0;if(explicitPluralForms&&(explicitPluralForms[count]!==undefined)){return explicitPluralForms[count];}if(!forms||forms.length===0){return'';}pluralRules=mw.language.getData(mw.config.get('wgUserLanguage'),'pluralRules');if(!pluralRules){return(count===1)?forms[0]:forms[1];}pluralFormIndex=mw.cldr.getPluralForm(count,pluralRules);pluralFormIndex=Math.min(pluralFormIndex,forms.length-1);return forms[pluralFormIndex];},preConvertPlural:function(forms,
166​count){while(forms.length<count){forms.push(forms[forms.length-1]);}return forms;},gender:function(gender,forms){if(!forms||forms.length===0){return'';}forms=mw.language.preConvertPlural(forms,2);if(gender==='male'){return forms[0];}if(gender==='female'){return forms[1];}return(forms.length===3)?forms[2]:forms[0];},convertGrammar:function(word,form){var grammarForms=mw.language.getData(mw.config.get('wgUserLanguage'),'grammarForms');if(grammarForms&&grammarForms[form]){return grammarForms[form][word]||word;}return word;},listToText:function(list){var text='',i=0;for(;i<list.length;i++){text+=list[i];if(list.length-2===i){text+=mw.msg('and')+mw.msg('word-separator');}else if(list.length-1!==i){text+=mw.msg('comma-separator');}}return text;},setSpecialCharacters:function(data){this.specialCharacters=data;}});}(mediaWiki,jQuery));(function(mw,$){function replicate(str,num){if(num<=0||!str){return'';}var buf=[];while(num--){buf.push(str);}return buf.join('');}function pad(text,size,ch,end)
167​{if(!ch){ch='0';}var out=String(text),padStr=replicate(ch,Math.ceil((size-out.length)/ch.length));return end?out+padStr:padStr+out;}function commafyNumber(value,pattern,options){options=options||{group:',',decimal:'.'};if(isNaN(value)){return value;}var padLength,patternDigits,index,whole,off,remainder,patternParts=pattern.split('.'),maxPlaces=(patternParts[1]||[]).length,valueParts=String(Math.abs(value)).split('.'),fractional=valueParts[1]||'',groupSize=0,groupSize2=0,pieces=[];if(patternParts[1]){padLength=(patternParts[1]&&patternParts[1].lastIndexOf('0')+1);if(padLength>fractional.length){valueParts[1]=pad(fractional,padLength,'0',true);}if(maxPlaces<fractional.length){valueParts[1]=fractional.slice(0,maxPlaces);}}else{if(valueParts[1]){valueParts.pop();}}patternDigits=patternParts[0].replace(',','');padLength=patternDigits.indexOf('0');if(padLength!==-1){padLength=patternDigits.length-padLength;if(padLength>valueParts[0].length){valueParts[0]=pad(valueParts[0],padLength);}if(
168​patternDigits.indexOf('#')===-1){valueParts[0]=valueParts[0].slice(valueParts[0].length-padLength);}}index=patternParts[0].lastIndexOf(',');if(index!==-1){groupSize=patternParts[0].length-index-1;remainder=patternParts[0].slice(0,index);index=remainder.lastIndexOf(',');if(index!==-1){groupSize2=remainder.length-index-1;}}for(whole=valueParts[0];whole;){off=groupSize?whole.length-groupSize:0;pieces.push((off>0)?whole.slice(off):whole);whole=(off>0)?whole.slice(0,off):'';if(groupSize2){groupSize=groupSize2;groupSize2=null;}}valueParts[0]=pieces.reverse().join(options.group);return valueParts.join(options.decimal);}$.extend(mw.language,{convertNumber:function(num,integer){var i,tmp,transformTable,numberString,convertedNumber,pattern;pattern=mw.language.getData(mw.config.get('wgUserLanguage'),'digitGroupingPattern')||'#,##0.###';transformTable=mw.language.getDigitTransformTable();if(!transformTable){return num;}if(integer){if(parseInt(num,10)===num){return num;}tmp=[];for(i in
169​transformTable){tmp[transformTable[i]]=i;}transformTable=tmp;numberString=String(num);}else{if(!mw.config.get('wgTranslateNumerals')){transformTable=[];}numberString=mw.language.commafy(num,pattern);}convertedNumber='';for(i=0;i<numberString.length;i++){if(transformTable[numberString[i]]){convertedNumber+=transformTable[numberString[i]];}else{convertedNumber+=numberString[i];}}return integer?parseInt(convertedNumber,10):convertedNumber;},getDigitTransformTable:function(){return mw.language.getData(mw.config.get('wgUserLanguage'),'digitTransformTable')||[];},getSeparatorTransformTable:function(){return mw.language.getData(mw.config.get('wgUserLanguage'),'separatorTransformTable')||[];},commafy:function(value,pattern){var numberPattern,transformTable=mw.language.getSeparatorTransformTable(),group=transformTable[',']||',',numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/,decimal=transformTable['.']||'.',patternList=pattern.split(';'),positivePattern=patternList[0];pattern=patternList[(value<0)?1:0]
170​||('-'+positivePattern);numberPattern=positivePattern.match(numberPatternRE);if(!numberPattern){throw new Error('unable to find a number expression in pattern: '+pattern);}return pattern.replace(numberPatternRE,commafyNumber(value,numberPattern[0],{decimal:decimal,group:group}));}});}(mediaWiki,jQuery));(function(mw,$){$.extend(mw.language,{getFallbackLanguages:function(){return mw.language.getData(mw.config.get('wgUserLanguage'),'fallbackLanguages')||[];},getFallbackLanguageChain:function(){return[mw.config.get('wgUserLanguage')].concat(mw.language.getFallbackLanguages());}});}(mediaWiki,jQuery));},{},{"and":" \u0219i","comma-separator":", ","word-separator":" "});mw.loader.implement("mediawiki.template",function($,jQuery,require,module){(function(mw,$){var compiledTemplates={},compilers={};mw.template={registerCompiler:function(name,compiler){if(!compiler.compile){throw new Error('Compiler must implement a compile method');}compilers[name]=compiler;},getCompilerName:function(templateName){var nameParts=templateName.split('.');if(nameParts.length<2){throw new Error('Template name must have a suffix');}return nameParts[nameParts.length-1];},getCompiler:function(name){var compiler=compilers[name];if(!compiler){throw new Error('Unknown compiler '+name);}return compiler;},add:function(moduleName,templateName,templateBody){var compiled=this.compile(templateBody,this.getCompilerName(templateName));if(!compiledTemplates[moduleName]){compiledTemplates[moduleName]={};}compiledTemplates[moduleName][templateName]=compiled;return compiled;},get:function(moduleName,templateName){var moduleTemplates;if(compiledTemplates[moduleName]&&compiledTemplates[
171​moduleName][templateName]){return compiledTemplates[moduleName][templateName];}moduleTemplates=mw.templates.get(moduleName);if(!moduleTemplates||!moduleTemplates[templateName]){throw new Error('Template '+templateName+' not found in module '+moduleName);}return this.add(moduleName,templateName,moduleTemplates[templateName]);},compile:function(templateBody,compilerName){return this.getCompiler(compilerName).compile(templateBody);}};mw.template.registerCompiler('html',{compile:function(src){return{render:function(){return $($.parseHTML($.trim(src)));}};}});}(mediaWiki,jQuery));});mw.loader.implement("mediawiki.user",function($,jQuery,require,module){(function(mw,$){var i,userInfoPromise,byteToHex=[];function getUserInfo(){if(!userInfoPromise){userInfoPromise=new mw.Api().getUserInfo();}return userInfoPromise;}for(i=0;i<256;i++){byteToHex[i]=(i+256).toString(16).slice(1);}$.extend(mw.user,{generateRandomSessionId:function(){var rnds,i,r,hexRnds=new Array(8),crypto=window.crypto||window.msCrypto;if(crypto&&crypto.getRandomValues){rnds=new Uint8Array(8);crypto.getRandomValues(rnds);}else{rnds=new Array(8);for(i=0;i<8;i++){if((i&3)===0){r=Math.random()*0x100000000;}rnds[i]=r>>>((i&3)<<3)&255;}}for(i=0;i<8;i++){hexRnds[i]=byteToHex[rnds[i]];}return hexRnds.join('');},getId:function(){return mw.config.get('wgUserId',0);},getName:function(){return mw.config.get('wgUserName');},getRegistration:function(){var registration=mw.config.get('wgUserRegistration');if(mw.user.isAnon()){return false;}if(registration===null){return null;}return new Date(registration);},isAnon:
172​function(){return mw.user.getName()===null;},sessionId:function(){var sessionId=mw.cookie.get('mwuser-sessionId');if(sessionId===null){sessionId=mw.user.generateRandomSessionId();mw.cookie.set('mwuser-sessionId',sessionId,{expires:null});}return sessionId;},id:function(){return mw.user.getName()||mw.user.sessionId();},bucket:function(key,options){var cookie,parts,version,bucket,range,k,rand,total;options=$.extend({buckets:{},version:0,expires:30},options||{});cookie=mw.cookie.get('mwuser-bucket:'+key);if(typeof cookie==='string'&&cookie.length>2&&cookie.indexOf(':')!==-1){parts=cookie.split(':');if(parts.length>1&&Number(parts[0])===options.version){version=Number(parts[0]);bucket=String(parts[1]);}}if(bucket===undefined){if(!$.isPlainObject(options.buckets)){throw new Error('Invalid bucket. Object expected for options.buckets.');}version=Number(options.version);range=0;for(k in options.buckets){range+=options.buckets[k];}rand=Math.random()*range;total=0;for(k in options.buckets){
173​bucket=k;total+=options.buckets[k];if(total>=rand){break;}}mw.cookie.set('mwuser-bucket:'+key,version+':'+bucket,{expires:Number(options.expires)*86400});}return bucket;},getGroups:function(callback){var userGroups=mw.config.get('wgUserGroups',[]);return $.Deferred().resolve(userGroups).done(callback);},getRights:function(callback){return getUserInfo().then(function(userInfo){return userInfo.rights;},function(){return[];}).done(callback);}});}(mediaWiki,jQuery));});mw.loader.implement("mediawiki.action.view.postEdit",function($,jQuery,require,module){(function(mw,$){'use strict';var config=mw.config.get(['wgAction','wgCurRevisionId']),cookieKey='PostEditRevision'+config.wgCurRevisionId,cookieVal=mw.cookie.get(cookieKey),$div,id;function removeConfirmation(){$div.remove();mw.hook('postEdit.afterRemoval').fire();}function fadeOutConfirmation(){clearTimeout(id);$div.find('.postedit').addClass('postedit postedit-faded');setTimeout(removeConfirmation,500);return false;}function showConfirmation(data){data=data||{};if(data.message===undefined){data.message=$.parseHTML(mw.message('postedit-confirmation-saved',data.user||mw.user).escaped());}$div=mw.template.get('mediawiki.action.view.postEdit','postEdit.html').render();if(typeof data.message==='string'){$div.find('.postedit-content').text(data.message);}else if(typeof data.message==='object'){$div.find('.postedit-content').append(data.message);}$div.click(fadeOutConfirmation).prependTo('body');id=
174​setTimeout(fadeOutConfirmation,3000);}mw.hook('postEdit').add(showConfirmation);if(config.wgAction==='view'&&cookieVal){mw.config.set('wgPostEdit',true);mw.hook('postEdit').fire({message:mw.msg('postedit-confirmation-'+cookieVal,mw.user)});mw.cookie.set(cookieKey,null);}}(mediaWiki,jQuery));},{"css":[
175​".postedit-container{margin:0 auto;position:fixed;top:0;height:0;left:50%;z-index:1000;font-size:13px}.postedit-container:hover{cursor:pointer}.postedit{position:relative;top:0.6em;left:-50%;padding:.6em 3.6em .6em 1.1em;line-height:1.5625em;color:#626465;background-color:#f4f4f4;border:1px solid #dcd9d9;text-shadow:0 0.0625em 0 rgba( 255,255,255,0.5 );border-radius:5px;box-shadow:0 2px 5px 0 #ccc;-webkit-transition:all 0.25s ease-in-out;-moz-transition:all 0.25s ease-in-out;-ms-transition:all 0.25s ease-in-out;-o-transition:all 0.25s ease-in-out;transition:all 0.25s ease-in-out}.skin-monobook .postedit{top:6em !important}.postedit-faded{opacity:0}.postedit-icon{padding-left:41px; line-height:25px;background-repeat:no-repeat;background-position:8px 50%}.postedit-icon-checkmark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB9ElEQVR4AZWRA3AYURQArxrVHtW2bdu2bdu2zdi2bdu2bWxs7zeehZaw4f70kbs+zI3e/nWK+RWx3aOFlrL56Sy5SxrruG69hlv6OyK+mz+8KDSXdXembj0ispT7tjs4ZTIbpYBvxGSGKzZTeFrb7W/meN002swFs0U8ttpHTkF2BvCqWQrW35929bTsKm5Zb+SEwWwcY8wAngB9m7Z+d+rIPZ/npdy12M5p47n8dXsCYAf0qPy06eGMdktuDu9Qf+JmKl3SWM91qzVcN9tAbEYkwMaq0tyb1m/To5kP170el/BK8/qa6sJr70ydf+T/Uu5ab+Oo/lS0AkUBpIFWlZ9WPhxpse/PHO7YbOOczjL0vZV2lNxPPtG73dYXM+xvm2znrOl83tidoqCwMBgYXsPFB0on5S6pr+eK5TKuW67lgvaKvF8mL1dtfTL32FHxRdyx3cQpg7m4x9sCXKkTIzA4LDH44zWdzaUf71hv5rTG4uyzcusybxSX7aThbMQ8XgCYAp3rzTTQOiIh9PNlzY3FSuZxrzjme1Y7uGS6kjsWO4jPjM4FVjRZsvD4kO9XtTZzQn82NyzWc0B7AmZh6gA/hOYSGhfw9YbOVnarj+S7800AL2BIsxUAbWNToj7bhBuQmZcOsFdoKUC74rGheCwXmqAIQTc9jQcrADIAAAAASUVORK5CYII=);background-image:url(/w/resources/src/mediawiki.action/images/green-checkmark.png?d94f1)!ie;background-position:left}.postedit-close{position:absolute;padding:0 .8em;right:0;top:0;font-size:1.25em;font-weight:bold;line-height:2.3em;color:#000;text-shadow:0 0.0625em 0 #fff;text-decoration:none;opacity:0.2;filter:alpha( opacity=20 )}.postedit-close:hover{color:#000;text-decoration:none;opacity:0.4;filter:alpha( opacity=40 )}"
176​]},{"postedit-confirmation-created":"Pagina a fost creat\u0103.","postedit-confirmation-restored":"Pagina a fost restaurat\u0103.","postedit-confirmation-saved":"Modificarea dumneavoastr\u0103 a fost salvat\u0103."},{"postEdit.html":"\u003Cdiv class=\"postedit-container\"\u003E\n\t\u003Cdiv class=\"postedit\"\u003E\n\t\t\u003Cdiv class=\"postedit-icon postedit-icon-checkmark postedit-content\"\u003E\u003C/div\u003E\n\t\t\u003Ca href=\"#\" class=\"postedit-close\"\u003E\u0026times;\u003C/a\u003E\n\t\u003C/div\u003E\n\u003C/div\u003E\n"});mw.loader.implement("mediawiki.api.options",function($,jQuery,require,module){(function(mw,$){$.extend(mw.Api.prototype,{saveOption:function(name,value){var param={};param[name]=value;return this.saveOptions(param);},saveOptions:function(options){var name,value,bundleable,grouped=[],deferreds=[];for(name in options){value=options[name]===null?null:String(options[name]);bundleable=(value===null||value.indexOf('|')===-1)&&(name.indexOf('|')===-1&&name.indexOf('=')===-1);if(bundleable){if(value!==null){grouped.push(name+'='+value);}else{grouped.push(name);}}else{if(value!==null){deferreds.push(this.postWithToken('csrf',{formatversion:2,action:'options',optionname:name,optionvalue:value}));}else{deferreds.push(this.postWithToken('csrf',{formatversion:2,action:'options',optionname:name}));}}}if(grouped.length){deferreds.push(this.postWithToken('csrf',{formatversion:2,action:'options',change:grouped}));}return $.when.apply($,deferreds);}});}(mediaWiki,jQuery));});mw.loader.implement("mediawiki.api.user",function($,jQuery,require,module){(function(mw,$){$.extend(mw.Api.prototype,{getUserInfo:function(){return this.get({action:'query',meta:'userinfo',uiprop:['groups','rights']}).then(function(data){if(data.query&&data.query.userinfo){return data.query.userinfo;}return $.Deferred().reject().promise();});}});}(mediaWiki,jQuery));});mw.loader.implement("mediawiki.language.data",function($,jQuery,require,module){mw.language.setData("ro",{"digitTransformTable":null,"separatorTransformTable":{",":".",".":","},"grammarForms":[],"pluralRules":["i = 1 and v = 0 @integer 1","v != 0 or n = 0 or n != 1 and n % 100 = 1..19 @integer 0, 2~16, 101, 1001, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …"],"digitGroupingPattern":null,"fallbackLanguages":["en"]});});mw.loader.implement("mediawiki.language.init",function($,jQuery,require,module){(function(mw){mw.language={data:{},getData:function(langCode,dataKey){var langData=mw.language.data;langCode=langCode.toLowerCase();if(langData&&langData[langCode]instanceof mw.Map){return langData[langCode].get(dataKey);}return undefined;},setData:function(langCode,dataKey,value){var langData=mw.language.data;langCode=langCode.toLowerCase();if(!(langData[langCode]instanceof mw.Map)){langData[langCode]=new mw.Map();}langData[langCode].set(dataKey,value);}};}(mediaWiki));});mw.loader.implement("mediawiki.libs.pluralruleparser",function($,jQuery,require,module){(function(mw){function pluralRuleParser(rule,number){'use strict';rule=rule.split('@')[0].replace(/^\s*/,'').replace(/\s*$/,'');if(!rule.length){return true;}var pos=0,operand,expression,relation,result,whitespace=makeRegexParser(/^\s+/),value=makeRegexParser(/^\d+/),_n_=makeStringParser('n'),_i_=makeStringParser('i'),_f_=makeStringParser('f'),_t_=makeStringParser('t'),_v_=makeStringParser('v'),_w_=makeStringParser('w'),_is_=makeStringParser('is'),_isnot_=makeStringParser('is not'),_isnot_sign_=makeStringParser('!='),_equal_=makeStringParser('='),_mod_=makeStringParser('mod'),_percent_=makeStringParser('%'),_not_=makeStringParser('not'),_in_=makeStringParser('in'),_within_=makeStringParser('within'),_range_=makeStringParser('..'),_comma_=makeStringParser(','),_or_=makeStringParser('or'),_and_=makeStringParser('and');function debug(){}debug('pluralRuleParser',rule,number);function choice(parserSyntax
177​){return function(){var i,result;for(i=0;i<parserSyntax.length;i++){result=parserSyntax[i]();if(result!==null){return result;}}return null;};}function sequence(parserSyntax){var i,parserRes,originalPos=pos,result=[];for(i=0;i<parserSyntax.length;i++){parserRes=parserSyntax[i]();if(parserRes===null){pos=originalPos;return null;}result.push(parserRes);}return result;}function nOrMore(n,p){return function(){var originalPos=pos,result=[],parsed=p();while(parsed!==null){result.push(parsed);parsed=p();}if(result.length<n){pos=originalPos;return null;}return result;};}function makeStringParser(s){var len=s.length;return function(){var result=null;if(rule.substr(pos,len)===s){result=s;pos+=len;}return result;};}function makeRegexParser(regex){return function(){var matches=rule.substr(pos).match(regex);if(matches===null){return null;}pos+=matches[0].length;return matches[0];};}function i(){var result=_i_();if(result===null){debug(' -- failed i',parseInt(number,10));return result;}result=
178​parseInt(number,10);debug(' -- passed i ',result);return result;}function n(){var result=_n_();if(result===null){debug(' -- failed n ',number);return result;}result=parseFloat(number,10);debug(' -- passed n ',result);return result;}function f(){var result=_f_();if(result===null){debug(' -- failed f ',number);return result;}result=(number+'.').split('.')[1]||0;debug(' -- passed f ',result);return result;}function t(){var result=_t_();if(result===null){debug(' -- failed t ',number);return result;}result=(number+'.').split('.')[1].replace(/0$/,'')||0;debug(' -- passed t ',result);return result;}function v(){var result=_v_();if(result===null){debug(' -- failed v ',number);return result;}result=(number+'.').split('.')[1].length||0;debug(' -- passed v ',result);return result;}function w(){var result=_w_();if(result===null){debug(' -- failed w ',number);return result;}result=(number+'.').split('.')[1].replace(/0$/,'').length||0;debug(' -- passed w ',result);return result;}operand=choice([n,i,
179​f,t,v,w]);expression=choice([mod,operand]);function mod(){var result=sequence([operand,whitespace,choice([_mod_,_percent_]),whitespace,value]);if(result===null){debug(' -- failed mod');return null;}debug(' -- passed '+parseInt(result[0],10)+' '+result[2]+' '+parseInt(result[4],10));return parseInt(result[0],10)%parseInt(result[4],10);}function not(){var result=sequence([whitespace,_not_]);if(result===null){debug(' -- failed not');return null;}return result[1];}function is(){var result=sequence([expression,whitespace,choice([_is_]),whitespace,value]);if(result!==null){debug(' -- passed is : '+result[0]+' == '+parseInt(result[4],10));return result[0]===parseInt(result[4],10);}debug(' -- failed is');return null;}function isnot(){var result=sequence([expression,whitespace,choice([_isnot_,_isnot_sign_]),whitespace,value]);if(result!==null){debug(' -- passed isnot: '+result[0]+' != '+parseInt(result[4],10));return result[0]!==parseInt(result[4],10);}debug(' -- failed isnot');return null;}
180​function not_in(){var i,range_list,result=sequence([expression,whitespace,_isnot_sign_,whitespace,rangeList]);if(result!==null){debug(' -- passed not_in: '+result[0]+' != '+result[4]);range_list=result[4];for(i=0;i<range_list.length;i++){if(parseInt(range_list[i],10)===parseInt(result[0],10)){return false;}}return true;}debug(' -- failed not_in');return null;}function rangeList(){var result=sequence([choice([range,value]),nOrMore(0,rangeTail)]),resultList=[];if(result!==null){resultList=resultList.concat(result[0]);if(result[1][0]){resultList=resultList.concat(result[1][0]);}return resultList;}debug(' -- failed rangeList');return null;}function rangeTail(){var result=sequence([_comma_,rangeList]);if(result!==null){return result[1];}debug(' -- failed rangeTail');return null;}function range(){var i,array,left,right,result=sequence([value,_range_,value]);if(result!==null){debug(' -- passed range');array=[];left=parseInt(result[0],10);right=parseInt(result[2],10);for(i=left;i<=right;i++){
181​array.push(i);}return array;}debug(' -- failed range');return null;}function _in(){var result,range_list,i;result=sequence([expression,nOrMore(0,not),whitespace,choice([_in_,_equal_]),whitespace,rangeList]);if(result!==null){debug(' -- passed _in:'+result);range_list=result[5];for(i=0;i<range_list.length;i++){if(parseInt(range_list[i],10)===parseInt(result[0],10)){return(result[1][0]!=='not');}}return(result[1][0]==='not');}debug(' -- failed _in ');return null;}function within(){var range_list,result;result=sequence([expression,nOrMore(0,not),whitespace,_within_,whitespace,rangeList]);if(result!==null){debug(' -- passed within');range_list=result[5];if((result[0]>=parseInt(range_list[0],10))&&(result[0]<parseInt(range_list[range_list.length-1],10))){return(result[1][0]!=='not');}return(result[1][0]==='not');}debug(' -- failed within ');return null;}relation=choice([is,not_in,isnot,_in,within]);function and(){var i,result=sequence([relation,nOrMore(0,andTail)]);if(result){if(!result[0])
182​{return false;}for(i=0;i<result[1].length;i++){if(!result[1][i]){return false;}}return true;}debug(' -- failed and');return null;}function andTail(){var result=sequence([whitespace,_and_,whitespace,relation]);if(result!==null){debug(' -- passed andTail'+result);return result[3];}debug(' -- failed andTail');return null;}function orTail(){var result=sequence([whitespace,_or_,whitespace,and]);if(result!==null){debug(' -- passed orTail: '+result[3]);return result[3];}debug(' -- failed orTail');return null;}function condition(){var i,result=sequence([and,nOrMore(0,orTail)]);if(result){for(i=0;i<result[1].length;i++){if(result[1][i]){return true;}}return result[0];}return false;}result=condition();if(result===null){throw new Error('Parse error at position '+pos.toString()+' for rule: '+rule);}if(pos!==rule.length){debug('Warning: Rule not parsed completely. Parser stopped at '+rule.substr(0,pos)+' for rule: '+rule);}return result;}mw.libs.pluralRuleParser=pluralRuleParser;module.exports=
183​pluralRuleParser;})(mediaWiki);});mw.loader.implement("mediawiki.page.startup",function($,jQuery,require,module){(function(mw,$){document.documentElement.className=document.documentElement.className.replace(/(^|\s)client-nojs(\s|$)/,'$1client-js$2');mw.page={};$(function(){mw.util.init();mw.hook('wikipage.content').fire($('#mw-content-text'));var $diff=$('table.diff[data-mw="interface"]');if($diff.length){mw.hook('wikipage.diff').fire($diff.eq(0));}});}(mediaWiki,jQuery));});mw.loader.implement("mediawiki.template.regexp",function($,jQuery,require,module){mediaWiki.template.registerCompiler('regexp',{compile:function(src){return{render:function(){return new RegExp(src.replace(/\s+/g,'').replace(/\?<\w+?>/g,''));}};}});});mw.loader.implement("mw.EmbedPlayer.loader",function($,jQuery,require,module){(function(mw,$){var embedPlayerInit=function($content){var $selected=$content.find(mw.config.get('EmbedPlayer.RewriteSelector'));if($selected.length){var inx=0;var checkSetDone=function(){if(inx<$selected.length){$selected.eq(inx).embedPlayer(function(){setTimeout(function(){checkSetDone();},5);});}inx++;};checkSetDone();}}
184​mw.hook('wikipage.content').add(embedPlayerInit);})(mediaWiki,jQuery);});mw.loader.implement("mw.MediaWikiPlayer.loader",function($,jQuery,require,module){(function(mw,$){$(mw).bind('EmbedPlayerUpdateDependencies',function(event,embedPlayer,dependencySet){if($(embedPlayer).attr('data-mwtitle')){$.merge(dependencySet,['mw.MediaWikiPlayerSupport']);}});}(mediaWiki,jQuery));});mw.loader.implement("mw.MwEmbedSupport",function($,jQuery,require,module){'video audio source track'.replace(/\w+/g,function(n){document.createElement(n)});(function(mw,$){mw.ready=function(callback){mw.log("Error mw.ready has been deprecated.")
185​$(callback);};mw.setConfig=function(name,value){mediaWiki.config.set(name,value);};mw.getConfig=function(name,value){return mediaWiki.config.get(name,value);};mw.setDefaultConfig=function(name,value){if(mediaWiki.config.get(name)===null){mediaWiki.config.set(name,value);}};if(typeof window.preMwEmbedConfig!='undefined'){mw.setConfig(window.preMwEmbedConfig);}mw.load=function(resources,callback){mediaWiki.loader.using(resources,callback,function(){mw.log("Failed to load resources:"+resources);});};mw.getEmbedPlayerPath=function(){if(mediaWiki.config.get('wgExtensionAssetsPath')){return mediaWiki.config.get('wgExtensionAssetsPath')+'/TimedMediaHandler/MwEmbedModules/EmbedPlayer'}else if(mediaWiki.config.get('wgLoadScript')){return mw.getMwEmbedPath()+'modules/EmbedPlayer'}};mw.getMwEmbedPath=function(){if(mediaWiki.config.get('wgLoadScript')){return mediaWiki.config.get('wgLoadScript').replace('load.php','');}return false;};mw.mergeConfig=function(name,value){if(typeof name==='object'){$
186​.each(name,function(inx,val){mw.mergeConfig(inx,val);});return;}var existingValue=mediaWiki.config.get(name);if(!existingValue||typeof existingValue!=='object'){mw.setConfig(name,value);return;}if(typeof existingValue==='object'){if($.isArray(existingValue)&&$.isArray(value)){for(var i=0;i<value.length;i++){existingValue.push(value[i]);}mw.setConfig(name,$.uniqueArray(existingValue));}else{mw.setConfig(name,$.extend({},existingValue,value));}return;}};mw.inherit=function(_this,inhertParent){for(var method in inhertParent){if(_this[method]){_this['parent_'+method]=inhertParent[method];}else{_this[method]=inhertParent[method];}}};mw.isUrl=function(url){try{new mw.Uri(url);return true;}catch(e){}return false;};mw.versionIsAtLeast=function(minVersion,clientVersion){var minVersionParts=minVersion.split('.');var clientVersionParts=clientVersion.split('.');for(var i=0;i<minVersionParts.length;i++){if(parseInt(clientVersionParts[i])>parseInt(minVersionParts[i])){return true;}if(parseInt(
187​clientVersionParts[i])<parseInt(minVersionParts[i])){return false;}}return true;};mw.addLoaderDialog=function(dialogHtml){if(!dialogHtml){dialogHtml=mw.msg('mwe-loading');}$dialog=mw.addDialog({'title':dialogHtml,'content':dialogHtml+'<br>'+$('<div />').loadingSpinner().html()});return $dialog;};mw.addDialog=function(options){$('#mweDialog').remove();if(!options){options={};}var options=$.extend({'bgiframe':!0,'draggable':!0,'resizable':!1,'modal':!0},options);if(!options.title||!options.content){mw.log("Error: mwEmbed addDialog missing required options ( title, content ) ");}$('body').append($('<div />').attr({'id':"mweDialog",'title':options.title}).css({'display':'none'}).append(options.content));var uiRequest=['jquery.ui.dialog'];if(options.draggable){uiRequest.push('jquery.ui.draggable');}if(options.resizable){uiRequest.push('jquery.ui.resizable');}if(typeof options.buttons=='string'){var buttonMsg=options.buttons;buttons={};options.buttons[buttonMsg]=function(){$(this).
188​dialog('close');};}mw.load(uiRequest,function(){$('#mweDialog').dialog(options);});return $('#mweDialog');};mw.closeLoaderDialog=function(){$('#mweDialog').dialog('destroy').remove();};$(mw).trigger('MwEmbedSupportReady');mw.getHexColor=function(color){if(typeof color=='string'&&color.substr(0,2)=="0x"){return color.replace('0x','#');}else{color=parseInt(color);color=color.toString(16);var len=6-color.length;if(len>0){var pre='';for(var i=0;i<len;i++){pre+='0';}color=pre+color;}return'#'+color;}};mw.sendBeaconUrl=function(beaconUrl){var beacon=new Image();beacon.src=beaconUrl;};})(mediaWiki,jQuery);},{},{"mwe-apiproxy-setup":"Setting up API proxy","mwe-cancel":"Renun\u0163\u0103","mwe-enable-gadget":"Enable multimedia beta (mwEmbed) for all pages","mwe-enable-gadget-done":"Multimedia beta gadget has been enabled","mwe-error_load_lib":"Error: JavaScript $1 was not retrievable or does not define $2","mwe-load-drag-item":"Loading dragged item","mwe-loading":"Se \u00eencarc\u0103 ...",
189​"mwe-must-login-gadget":"To enable gadget you must \u003Ca target=\"_new\" href=\"$1\"\u003Elogin\u003C/a\u003E","mwe-ok":"OK","mwe-size-bytes":"$1 B","mwe-size-gigabytes":"$1 GB","mwe-size-kilobytes":"$1 K","mwe-size-megabytes":"$1 MB","mwe-test-plural":"I ran {{PLURAL:$1|$1 test|$1 tests}}"});mw.loader.implement("mw.PopUpMediaTransform",function($,jQuery,require,module){(function(mw,$){mw.hook('wikipage.content').add(function($content){$content.find('.PopUpMediaTransform a').each(function(){var link,title,parent=$(this).parent();if(parent.attr('videopayload')){$(this).click(function(){var thisref=this;mw.loader.using('mw.MwEmbedSupport',function(){var $videoContainer=$($(thisref).parent().attr('videopayload'));mw.addDialog({width:'auto',height:'auto',title:mw.html.escape($videoContainer.find('video, audio').attr('data-mwtitle')),content:$videoContainer,close:function(){$(this).remove();return true;},open:function(){$(this).find('video, audio').embedPlayer();}}).css('overflow','hidden');});return false;});}else if(parent.attr('data-videopayload')){link=$(this).attr('href');title=mw.Title.newFromImg({src:link});if(title&&title.getPrefixedDb()!==mw.config.get('wgPageName')){$(this).attr('href',title.getUrl());}}});});}(mediaWiki,jQuery));});mw.loader.implement("mw.MwEmbedSupport.style",function($,jQuery,require,module){},{"css":[
190​"#container{position:relative;min-height:100%}#container,video{width:100%;height:100%}#playerContainer{overflow:hidden;position:relative;height:100%;background:#000}#videoHolder{position:relative;overflow:hidden}.fullscreen #playerContainer{position:absolute !important;width:100% !important;height:100%! important;z-index:9999;min-height:100%;top:0;left:0;margin:0}.mwEmbedPlayer{width:100%;height:100%;overflow:hidden;position:absolute;top:0;left:0}.modal_editor{ left:10px;top:10px;right:10px;bottom:10px;position:fixed;z-index:100}.displayHTML a:visited{color:white}.loadingSpinner{width:32px;height:32px;display:block;padding:0px;background-image:url(/w/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport/skins/common/images/loading_ani.gif?a51c5)}.mw-imported-resource{border:thin solid black}.kaltura-icon{background-image:url(/w/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport/skins/common/images/kaltura_logo_sm_transparent.png?fa5c4) !important;background-repeat:no-repeat;display:block;height:12px;width:12px;margin-top:2px !important;margin-left:3px !important}.mw-fullscreen-overlay{background:rgb(0,0,0) none repeat scroll 0% 0%;position:fixed;top:0pt;left:0pt;width:100%;height:100%;-moz-background-clip:border;-moz-background-origin:padding;-moz-background-inline-policy:continuous} .play-btn-large{width:70px;height:53px;background :url(/w/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport/skins/common/images/player_big_play_button.png?69699);position :absolute;cursor :pointer;border :none !important; }.play-btn-large:hover{background :url(/w/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport/skins/common/images/player_big_play_button_hover.png?97c2a)}.carouselContainer{position :absolute;width :100%;z-index :2}.carouselVideoTitle{position :absolute;top :0px;left :0px;width :100%;background :rgba(0,0,0,0.8);color :white;font-size :small;font-weight :bold;z-index :2}.carouselVideoTitleText{display :block;padding :10px 10px 10px 20px}.carouselTitleDuration{position :absolute;top :0px;right :0px;padding :2px;background-color :#5A5A5A;color :#D9D9D9;font-size :smaller;z-index :2}.carouselImgTitle{position :absolute;width :100%;text-align :center;color :white;font-size :small;background :rgba(0,0,0,0.4)}.carouselImgDuration{position :absolute;top :2px;left :2px;background :rgba( 0,0,0,0.7 );color :white;padding :1px 6px;font-size :small}.carouselPrevButton,.carouselNextButton{display :block;position :absolute;bottom:23px}.carouselPrevButton{left :5px}.carouselNextButton{right:6px}.alert-container{border-radius:3px;background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0.04,rgb(215,215,215)),color-stop(0.55,rgb(230,230,230)),color-stop(1,rgb(255,255,255)));background-image:-o-linear-gradient(bottom,rgb(215,215,215) 4%,rgb(230,230,230) 55%,rgb(255,255,255) 100%);background-image:-ms-linear-gradient(bottom,rgb(215,215,215) 4%,rgb(230,230,230) 55%,rgb(255,255,255) 100%);background-image:-moz-linear-gradient(bottom,rgb(215,215,215) 4%,rgb(230,230,230) 55%,rgb(255,255,255) 100%);background-image:-webkit-linear-gradient(bottom,rgb(215,215,215) 4%,rgb(230,230,230) 55%,rgb(255,255,255) 100%);background-image:linear-gradient(bottom,rgb(215,215,215) 4%,rgb(230,230,230) 55%,rgb(255,255,255) 100%);margin:auto;position:absolute;top:0;left:0;right:0;bottom:0;max-width:80%;max-height:30%}.alert-title{background-color :#E6E6E6;padding :5px;border-bottom :1px solid #D1D1D1;font-weight :normal !important;font-size:14px !important;border-top-left-radius:3px;border-top-right-radius:3px }.alert-message{padding :5px;font-weight :normal !important;text-align:center;font-size:14px !important}.alert-buttons-container{text-align:center;padding-bottom:5px}.alert-button{background-color:#474747;color:white;border-radius:.5em;padding:2px 10px;background-image:-webkit-gradient( linear,left bottom,left top,color-stop(0.04,rgb(25,25,25)),color-stop(0.55,rgb(47,47,47)),color-stop(0.68,rgb(71,71,71)) );background-image:-o-linear-gradient(bottom,rgb(25,25,25) 4%,rgb(47,47,47) 55%,rgb(71,71,71) 68%);background-image:-moz-linear-gradient(bottom,rgb(25,25,25) 4%,rgb(47,47,47) 55%,rgb(71,71,71) 68%);background-image:-ms-linear-gradient(bottom,rgb(25,25,25) 4%,rgb(47,47,47) 55%,rgb(71,71,71) 68%);background-image:-webkit-linear-gradient(bottom,rgb(25,25,25) 4%,rgb(47,47,47) 55%,rgb(71,71,71) 68%);background-image:linear-gradient(bottom,rgb(25,25,25) 4%,rgb(47,47,47) 55%,rgb(71,71,71) 68%)}.alert-text{color :black !important}"
191​]});mw.loader.implement("mw.PopUpMediaTransform.styles",function($,jQuery,require,module){},{"css":[
192​".PopUpMediaTransform a .play-btn-large{top:50%;left :50%;width:70px;height:53px;margin-left:-35px;margin-top:-25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAA1CAYAAAD8mJ3rAAADNklEQVR4AWJAAhxA7AHEeUDcP8JwHtTvHAxoQAuI5wDxZkD75qBkSRKG0bZt21h7t23btm2bO7ZthNq2rq3mo0zWeKaty6yI8wB1Et+fEnDuIC4+SdEGvIBSPvP6oxOhYihjG8WImHtQxDaAk52GEeQFT4uBYqAYKAaKUVNTG9bX1x+FYj4iLi4+UFVVRXjz5s0Wwo0bN1geHh7zAi8mKSkJ9fLly63vOX/+POO3336bElgx////P/3Fixdbu9HS0kKxsLAYFzgxZ8+eZTx9+nRzP8rKygh6enqjAiOmt7eX/ujRo82DcP/+/fWsrCyskpLSEN+L6e7upoMf3jgMt27dWouKilqRkZEZ5FsxHR0dtDt37qwfhUuXLrG8vb0XxMTEBvhODJhcaSCi149DZ2cn3cHBYZavxDQ2NlKvXLmydhLU19dTfvjhhym+EFNXV0e5ePHi6klSVFREMDIyGuNpMdXV1WQQ2azTIDU1FaOpqTnCk2IqKirIPT09zNOiq6uLARIMpaCgMMhTYkpLS0kgmZinDZjk6SDBFiUlJQd4QkxhYSGxra2Nzi7AgpVibm4+zvVi8vLyiE1NTXR2gshBeg5Xi8nOziaAZKKxG7AwneBqMZmZmQSQTFR2o6OjM8LVYkCk4svLyynsJCYmBs31c0xycjKupKSEwg5A4Ud2c3NbkJCQGOB6MfHx8diCggLyaePr67ukqKg4xDN1DOjWWJBMpNMiODgYtb365QExoCrFgs0n4kkTHh6OBqcOYzy7VoqIiMCkp6cTT4ro6GgsKOAmeH51HRYWhgbJRDgusbGxODs7uylhYeF+vth2CAkJQYNkIhwVRMgvv/wyg5xP8dVGVVBQECoxMRF/WECa4f7666+57aU9n4gJCAhAIT95GBwcHObl5OQG+fqUwN/fH4UMh4Pg7u6+pKqqOsx+AVwqxsfHZ0VLS2tUoE4ikV6wm5DAwECUsbHxuECeXevq6o59LwREOMbKympyW/QKkhgEZJi4uLgsIr0H1CLT+0QvvFEFxUAxUAwUA8Xs+pYAviUohSK2UfrpvdJrKOMzbz86ef/9AIfU5yH0AyJklzeR8E3kO5B6nR5s2Y8qAAAAAElFTkSuQmCC);background-image:url(/w/extensions/TimedMediaHandler/resources/player_big_play_button.png?f49a4)!ie}.PopUpMediaTransform a .play-btn-large :hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAA1CAYAAAD8mJ3rAAADSklEQVR4AeybA4wlWRRA1/u1tjG2g3YHY0/U4djTtm3btm3bTtu27du2WVXvJif8PIV3Ue+jBUECrgPsgAbBYAeuTzlYEicBU8CH4JhOuZiJ3wBHJGUOlyknEJxIxlLACYQ5ErEMcLLSZYRwRGKQGCQGicG0mP/++y/4/Pnz4UjMDCQSyQ+ianR0dGyS6urqbnZ29nTCi9HR0SkYHBwcW0peXl7Ho0ePEggrJisrq62/v390NWJjYxsZGRmjCCcmJyeno7u7e2Q9PDw8qs6ePRtOGDEZGRntEMMbobm5edDCwqLsjz/+CMK9mNTU1Db4w0Oboaampk9BQSH/22+/DcCtmMTExNb6+vrBrVBYWNjNzc2d+eWXX/rhTkx0dHRLZWXlwHZISkpqe/LkSSquxISHhzeXlJT07QShoaFNN2/ejMeFmODg4KaCgoLencTZ2bn68uXLEZgW4+/v3wBLdvduYGBgUHL06NFQTIrx9vauT09P79otUlJSOhQVFQt++eWXQEyJcXNzq4OVqXO3iYqKaoMVLJtGo/ljQoyjo2MtpP3tewUUrE0MDAzRB16MjY1NDaxMbXuJr69vE5VK9T/QYiDFrw4KCmrda6AwjTnQYkxMTKrg9G7ea06ePBl2oMXAklrp6enZtJcoKSkVY6FRVeHi4tK4F8CNvuHNmzdZFArF/8CLUVdXL7O3t6/fbXh4eHJ//fXXIMzkMcrKyqXW1tZ1u4WoqGjBkSNHQjGX+crLy5eamZnV7jTS0tLF586di8RsrSQjI1NiZGRUs1NA+l9KT08fg/nqWlJSslhfX796u6ioqJRfu3Yt/pNPPvHFRdtBTEysSFtbu2qrgJCKe/fuJZPJZH9cNapEREQKNTU1KzeLmppaBRsbW9qyohAvYgQFBQsm/+RmgDZmxo8//hiI6ykBPz9/weTlsBHevn2b+88//4TMvZ/oYri5ufOPHz8eTqhJ5Lt373JWEyIsLFx45cqVaELOrk+fPh0J2W/5QiGwhJewsrLGzS29RBQzyeRl8vLly+zJswdykUQSieSPHhxaHSQGiUFikBgkBu0lWH0vATcSsQzu2f1KLkjGHG4TA4cJFOjBs9RoFtIDBQiOPZGjeyIBuiuBC06Nbn0AAAAASUVORK5CYII=);background-image:url(/w/extensions/TimedMediaHandler/resources/player_big_play_button_hover.png?8a926)!ie} .mw-tmh-playtext{display:block;height:0;overflow:hidden}"
193​]});mw.loader.implement("mw.TimedText.loader",function($,jQuery,require,module){(function(mw,$){$(mw).bind('EmbedPlayerUpdateDependencies',function(event,playerElement,classRequest){if(mw.isTimedTextSupported(playerElement)){classRequest=$.merge(classRequest,['mw.TimedText']);}});$(mw).bind('EmbedPlayerNewPlayer',function(event,embedPlayer){if(mw.isTimedTextSupported(embedPlayer)){mw.loader.using('mw.TimedText',function(){embedPlayer.timedText=new mw.TimedText(embedPlayer);});}});mw.isTimedTextSupported=function(embedPlayer){var mwprovider=embedPlayer['data-mwprovider']||$(embedPlayer).data('mwprovider');var showInterface=mw.config.get('TimedText.ShowInterface.'+mwprovider)||mw.config.get('TimedText.ShowInterface');if(showInterface=='always'){return true;}else if(showInterface=='off'){return false;}if($(embedPlayer).find('track').length!=0){return true;}else{return false;}};})(mediaWiki,jQuery);});mw.loader.implement("skins.vector.js",function($,jQuery,require,module){(function($){var rtl=$('html').attr('dir')==='rtl',rAF=window.requestAnimationFrame||setTimeout;$.fn.collapsibleTabs=function(options){var settings=$.extend({},$.collapsibleTabs.defaults,options);if(!this.length){return this;}this.each(function(){var $el=$(this);$.collapsibleTabs.instances=$.collapsibleTabs.instances.add($el);$el.data('collapsibleTabsSettings',settings);$el.children(settings.collapsible).each(function(){$.collapsibleTabs.addData($(this));});});if(!$.collapsibleTabs.boundEvent){$(window).on('resize',$.debounce(100,function(){rAF($.collapsibleTabs.handleResize);}));$.collapsibleTabs.boundEvent=!0;}rAF($.collapsibleTabs.handleResize);return this;};$.collapsibleTabs={instances:$([]),boundEvent:null,defaults:{expandedContainer:'#p-views ul',collapsedContainer:'#p-cactions ul',collapsible:'li.collapsible',shifting:!1,expandCondition:function(eleWidth){return $.collapsibleTabs.calculateTabDistance()
194​>=eleWidth+1;},collapseCondition:function(){return $.collapsibleTabs.calculateTabDistance()<0;}},addData:function($collapsible){var settings=$collapsible.parent().data('collapsibleTabsSettings');if(settings){$collapsible.data('collapsibleTabsSettings',{expandedContainer:settings.expandedContainer,collapsedContainer:settings.collapsedContainer,expandedWidth:$collapsible.width(),prevElement:$collapsible.prev()});}},getSettings:function($collapsible){var settings=$collapsible.data('collapsibleTabsSettings');if(!settings){$.collapsibleTabs.addData($collapsible);settings=$collapsible.data('collapsibleTabsSettings');}return settings;},handleResize:function(){$.collapsibleTabs.instances.each(function(){var $el=$(this),data=$.collapsibleTabs.getSettings($el);if(data.shifting){return;}if($el.children(data.collapsible).length>0&&data.collapseCondition()){$el.trigger('beforeTabCollapse');$.collapsibleTabs.moveToCollapsed($el.children(data.collapsible+':last'));}if($(data.collapsedContainer+' '+
195​data.collapsible).length>0&&data.expandCondition($.collapsibleTabs.getSettings($(data.collapsedContainer).children(data.collapsible+':first')).expandedWidth)){$el.trigger('beforeTabExpand');$.collapsibleTabs.moveToExpanded(data.collapsedContainer+' '+data.collapsible+':first');}});},moveToCollapsed:function(ele){var outerData,expContainerSettings,target,$moving=$(ele);outerData=$.collapsibleTabs.getSettings($moving);if(!outerData){return;}expContainerSettings=$.collapsibleTabs.getSettings($(outerData.expandedContainer));if(!expContainerSettings){return;}expContainerSettings.shifting=!0;target=outerData.collapsedContainer;$moving.css('position','relative').css((rtl?'left':'right'),0).animate({width:'1px'},'normal',function(){var data,expContainerSettings;$(this).hide();$('<span class="placeholder" style="display: none;"></span>').insertAfter(this);$(this).detach().prependTo(target).data('collapsibleTabsSettings',outerData);$(this).attr('style','display: list-item;');data=$.
196​collapsibleTabs.getSettings($(ele));if(data){expContainerSettings=$.collapsibleTabs.getSettings($(data.expandedContainer));if(expContainerSettings){expContainerSettings.shifting=!1;rAF($.collapsibleTabs.handleResize);}}});},moveToExpanded:function(ele){var data,expContainerSettings,$target,expandedWidth,$moving=$(ele);data=$.collapsibleTabs.getSettings($moving);if(!data){return;}expContainerSettings=$.collapsibleTabs.getSettings($(data.expandedContainer));if(!expContainerSettings){return;}expContainerSettings.shifting=!0;$target=$(data.expandedContainer).find('span.placeholder:first');expandedWidth=data.expandedWidth;$moving.css('position','relative').css((rtl?'right':'left'),0).css('width','1px');$target.replaceWith($moving.detach().css('width','1px').data('collapsibleTabsSettings',data).animate({width:expandedWidth+'px'},'normal',function(){var data,expContainerSettings;$(this).attr('style','display: block;');data=$.collapsibleTabs.getSettings($(this));if(data){
197​expContainerSettings=$.collapsibleTabs.getSettings($(data.expandedContainer));if(expContainerSettings){expContainerSettings.shifting=!1;rAF($.collapsibleTabs.handleResize);}}}));},calculateTabDistance:function(){var $leftTab,$rightTab,leftEnd,rightStart;if(!rtl){$leftTab=$('#left-navigation');$rightTab=$('#right-navigation');}else{$leftTab=$('#right-navigation');$rightTab=$('#left-navigation');}leftEnd=$leftTab.offset().left+$leftTab.width();rightStart=$rightTab.offset().left;return rightStart-leftEnd;}};}(jQuery));jQuery(function($){var $cactions=$('#p-cactions'),$tabContainer=$('#p-views ul'),originalDropdownWidth=$cactions.width();$('#searchInput').attr('tabindex',$(document).lastTabIndex()+1);$('div.vectorMenu').each(function(){var $el=$(this);$el.find('> h3 > a').parent().attr('tabindex','0').on('click keypress',function(e){if(e.type==='click'||e.which===13){$el.toggleClass('menuForceShow');e.preventDefault();}}).focus(function(){$el.find('> a').addClass('vectorMenuFocus');}).
198​blur(function(){$el.find('> a').removeClass('vectorMenuFocus');}).find('> a:first').attr('tabindex','-1');});$tabContainer.bind('beforeTabCollapse',function(){if($cactions.hasClass('emptyPortlet')){$cactions.removeClass('emptyPortlet').find('h3').css('width','1px').animate({width:originalDropdownWidth},'normal');}}).bind('beforeTabExpand',function(){if($cactions.find('li').length===1){$cactions.find('h3').animate({width:'1px'},'normal',function(){$(this).attr('style','').parent().addClass('emptyPortlet');});}}).collapsibleTabs({expandCondition:function(eleWidth){var distance=$.collapsibleTabs.calculateTabDistance();if(distance>=eleWidth+1){return true;}else{if($cactions.find('li').length===1){return distance>=eleWidth+1-originalDropdownWidth;}else{return false;}}},collapseCondition:function(){if($.collapsibleTabs.calculateTabDistance()<0){if($cactions.hasClass('emptyPortlet')){return $tabContainer.children('li.collapsible:last').width()>originalDropdownWidth;}else{return true;}}else{
199​return false;}}});});});mw.loader.implement("user.defaults",function($,jQuery,require,module){mw.user.options.set({"globaluserpage":!0,"popupsmobile":"1","visualeditor-enable":1,"visualeditor-betatempdisable":0,"visualeditor-enable-experimental":0,"visualeditor-enable-language":0,"visualeditor-hidebetawelcome":0,"visualeditor-autodisable":0,"visualeditor-tabs":"remember-last","visualeditor-editor":"wikitext","visualeditor-hidetabdialog":0,"math":"png","echo-subscriptions-web-edit-thank":!0,"echo-subscriptions-email-edit-thank":!1,"uls-preferences":"","compact-language-links":1,"echo-subscriptions-web-cx":!0,"ccmeonemails":0,"cols":80,"date":"default","diffonly":0,"disablemail":0,"editfont":"default","editondblclick":0,"editsectiononrightclick":0,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":0,"extendwatchlist":0,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"hidecategorization":1,"imagesize":2,"minordefault":0,
200​"newpageshidepatrolled":0,"nickname":"","norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"rcdays":7,"rclimit":50,"rows":25,"showhiddencats":!1,"shownumberswatching":1,"showtoolbar":1,"skin":"vector","stubthreshold":0,"thumbsize":4,"underline":2,"uselivepreview":0,"usenewrc":0,"watchcreations":1,"watchdefault":0,"watchdeletion":0,"watchuploads":1,"watchlistdays":3,"watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchlisthidecategorization":1,"watchlistreloadautomatically":0,"watchmoves":0,"watchrollback":0,"wllimit":250,"useeditwarning":1,"prefershttps":1,"usebetatoolbar":1,"usebetatoolbar-cgd":1,"upwiz_deflicense":"default","upwiz_maxsimultaneous":"default","echo-show-alert":!0,"echo-email-frequency":0,"echo-dismiss-beta-invitation":0,"echo-email-format":"html","echo-subscriptions-email-system":!0,"echo-subscriptions-web-system":!0,
201​"echo-subscriptions-email-user-rights":!0,"echo-subscriptions-web-user-rights":!0,"echo-subscriptions-email-other":!1,"echo-subscriptions-web-other":!0,"echo-subscriptions-email-edit-user-talk":!1,"echo-subscriptions-web-edit-user-talk":!0,"echo-subscriptions-email-reverted":!1,"echo-subscriptions-web-reverted":!0,"echo-subscriptions-email-article-linked":!1,"echo-subscriptions-web-article-linked":!1,"echo-subscriptions-email-mention":!1,"echo-subscriptions-web-mention":!0,"echo-subscriptions-email-emailuser":!1,"echo-subscriptions-web-emailuser":!0,"echo-cross-wiki-notifications":1,"echo-subscriptions-web-flow-discussion":!0,"echo-subscriptions-email-flow-discussion":!1,"flow-topiclist-sortby":"updated","flow-editor":"visualeditor","flow-side-rail-state":"expanded","multimediaviewer-enable":!0,"language":"ro","variant-gan":"gan","variant-iu":"iu","variant-kk":"kk","variant-ku":"ku","variant-shi":"shi","variant-sr":"sr","variant-tg":"tg",
202​"variant-uz":"uz","variant-zh":"zh","searchNs0":!0,"searchNs1":!1,"searchNs2":!1,"searchNs3":!1,"searchNs4":!1,"searchNs5":!1,"searchNs6":!1,"searchNs7":!1,"searchNs8":!1,"searchNs9":!1,"searchNs10":!1,"searchNs11":!1,"searchNs12":!1,"searchNs13":!1,"searchNs14":!1,"searchNs15":!1,"searchNs100":!1,"searchNs101":!1,"searchNs102":!1,"searchNs103":!1,"searchNs108":!1,"searchNs109":!1,"searchNs110":!1,"searchNs111":!1,"searchNs460":!1,"searchNs461":!1,"searchNs828":!1,"searchNs829":!1,"searchNs2300":!1,"searchNs2301":!1,"searchNs2302":!1,"searchNs2303":!1});});

matmarex triaged this task as Unbreak Now! priority.
matmarex added subscribers: AndyRussG, awight.

I also get this in debug mode. Blows up on this in /CentralNotice/resources/subscribing/ext.centralNotice.display.js:

		/**
		 * Register that the current page view is included in a test.
		 * @param {string} identifier A string to identify the test. Should not contain
		 *   commas.
		 */
		registerTest( identifier ) {
			cn.internal.state.registerTest( identifier );
		},

This looks like obviously invalid syntax to me… perhaps it does something in ES6 that IE 11 doesn't support, but it probably doesn't do what the author intended.

Seems to be caused by https://gerrit.wikimedia.org/r/#/c/290361/4

Restricted Application added subscribers: Luke081515, TerraCodes, Urbanecm. · View Herald TranscriptMay 27 2016, 10:00 AM

(That patch introduces the same kind of mistake in resources/subscribing/ext.centralNotice.display.state.js, too. This is apparently ES6 "concise methods" syntax, so it actually does what the author intended, but it's only supported by some browsers, causing a syntax error in others.)

Wasell added a subscriber: Wasell.May 27 2016, 12:15 PM

Form what I see here, this also affects Safari and older FF and Chrome versions.

Strainu renamed this task from Issues with JavaScript on IE11 on Romanian Wikipedia to EcmaScript 6 features are not supported in older browsers.May 27 2016, 1:32 PM
matmarex claimed this task.EditedMay 27 2016, 2:42 PM

This is also affecting UploadWizard, which I maintain, and people are starting to blame it (https://commons.wikimedia.org/wiki/Commons:Upload_help#Can.27t_use_new_upload_wizard), and no one responsible for CentralNotice seems available (I think the whole team is in the US and probably still asleep). I'm going to see if I can fix it.

Change 291246 had a related patch set uploaded (by Alex Monk):
Revert "Update CentralNotice submodule"

https://gerrit.wikimedia.org/r/291246

Change 291246 merged by jenkins-bot:
Revert "Update CentralNotice submodule"

https://gerrit.wikimedia.org/r/291246

Mentioned in SAL [2016-05-27T15:02:01Z] <krenair@tin> Synchronized php-1.28.0-wmf.3/extensions/CentralNotice/resources/subscribing: rv due to T136387 (duration: 00m 36s)

matmarex edited projects, added Fundraising-Backlog; removed Patch-For-Review.
matmarex removed matmarex as the assignee of this task.
matmarex added a subscriber: Krenair.

Deployment of the faulty patch (T134286) was reverted by @Krenair and the issue should no longer be occurring right now. The bug still needs to be fixed in CentralNotice to prevent it from re-occurring after the next deployment on Tuesday, so I am not closing this task.

I can confirm JavaScript now works in IE 11. Waiting for confirmation on the other browsers.

I can confirm JavaScript now works again in Opera 12.18 (released Feb 2016).

Deployment of the faulty patch (T134286) was reverted by @Krenair and the issue should no longer be occurring right now. The bug still needs to be fixed in CentralNotice to prevent it from re-occurring after the next deployment on Tuesday, so I am not closing this task.

It should be coincided with a change to CentralNotice's JSHint configuration to ensure ES6 syntax is considered invalid - as to avoid regressions in the future.

Krinkle renamed this task from EcmaScript 6 features are not supported in older browsers to CentralNotice failing in older browsers due use of ECMAScript 6 syntax.May 27 2016, 4:06 PM

It should be coincided with a change to CentralNotice's JSHint configuration to ensure ES6 syntax is considered invalid - as to avoid regressions in the future.

Yeah, T136408: Update CentralNotice JSHint config to restrict syntax to ES3 (disallow ES5 or ES6) was filed about that.

Change 291264 had a related patch set uploaded (by Ejegg):
jshint, gruntfile, and compatibility fixes

https://gerrit.wikimedia.org/r/291264

Trizek-WMF moved this task from To Triage to Not ready to announce on the User-notice board.
Trizek-WMF added a subscriber: Trizek-WMF.

Change 291264 merged by jenkins-bot:
jshint, gruntfile, and compatibility fixes

https://gerrit.wikimedia.org/r/291264

matmarex closed this task as Resolved.May 27 2016, 7:31 PM
matmarex assigned this task to Ejegg.
matmarex removed a project: Patch-For-Review.
Ejegg set the point value for this task to 1.
Ejegg moved this task from Backlog to Done on the Fundraising Sprint Killing Time board.
matmarex reopened this task as Open.Jun 1 2016, 9:47 PM

I see this in production again. Is it just me? Was the faulty patch re-deployed?

Change 292279 had a related patch set uploaded (by Bartosz Dziewoński):
Revert "Update CentralNotice submodule"

https://gerrit.wikimedia.org/r/292279

CentralNotice seems to have some unusual deployment method that I don't understand. Can you folks please take care of doing whatever needs to be done to ensure this doesn't regress again?

Aaaaarg!! Fortunately, it only made it to groups 0 and 1, so not to WP.

Change 292279 merged by jenkins-bot:
Revert "Update CentralNotice submodule"

https://gerrit.wikimedia.org/r/292279

Change 292282 had a related patch set uploaded (by Ejegg):
Merge branch 'master' into wmf_deploy

https://gerrit.wikimedia.org/r/292282

Change 292285 had a related patch set uploaded (by Ejegg):
Revert "ext.centralNotice.display: API for registering tests"

https://gerrit.wikimedia.org/r/292285

Change 292285 merged by Ejegg:
Revert "ext.centralNotice.display: API for registering tests"

https://gerrit.wikimedia.org/r/292285

Ejegg added a comment.EditedJun 1 2016, 10:24 PM

Sorry! https://gerrit.wikimedia.org/r/292285/ reverts it in the wmf_deploy branch, source of the -wmf.x branch submodules. Next merge into wmf_deploy will have ES3 enforcement in effect.

Change 292282 abandoned by Ejegg:
Merge branch 'master' into wmf_deploy

Reason:
too much, too soon

https://gerrit.wikimedia.org/r/292282

@mmodell The revert doesn't appear to be live in production.

Change 292304 had a related patch set uploaded (by Awight):
Update extensions/CentralNotice submodule

https://gerrit.wikimedia.org/r/292304

Change 292304 merged by jenkins-bot:
Update extensions/CentralNotice submodule

https://gerrit.wikimedia.org/r/292304

Mentioned in SAL [2016-06-02T00:26:39Z] <awight@tin> Synchronized php-1.28.0-wmf.4/extensions/CentralNotice: Fix for T136387 (duration: 00m 38s)

Change 292368 had a related patch set uploaded (by AndyRussG):
jshint, gruntfile, and compatibility fixes (partial, wmf_deploy branch only)

https://gerrit.wikimedia.org/r/292368

Change 292401 had a related patch set uploaded (by AndyRussG):
Revert "jshint, gruntfile, and compatibility fixes"

https://gerrit.wikimedia.org/r/292401

Change 292402 had a related patch set uploaded (by AndyRussG):
Re-apply "jshint, gruntfile, and compatibility fixes" (part 1)

https://gerrit.wikimedia.org/r/292402

Change 292403 had a related patch set uploaded (by AndyRussG):
Re-apply "jshint, gruntfile, and compatibility fixes" (part 2)

https://gerrit.wikimedia.org/r/292403

Change 292404 had a related patch set uploaded (by AndyRussG):
Re-apply "jshint, gruntfile, and compatibility fixes" (part 1)

https://gerrit.wikimedia.org/r/292404

50b7a37df47a1ef798efdfc1186d66c9d75c1d51 is the current rev deployed for CentralNotice. A spot check shows that it is the version that is live on the application servers.

Can this be removed as a wmf.4 blocker?

Hi @thcipriani! Yes, that commit is safe to deploy!! Thx :)

Change 292368 abandoned by AndyRussG:
jshint, gruntfile, and compatibility fixes (partial, wmf_deploy branch only)

Reason:
See instead I91de8b2dfa

https://gerrit.wikimedia.org/r/292368

Change 292401 abandoned by AndyRussG:
Revert "jshint, gruntfile, and compatibility fixes"

Reason:
Unneeded, was part of planned administrative curiosities

https://gerrit.wikimedia.org/r/292401

Change 292402 abandoned by AndyRussG:
Re-apply "jshint, gruntfile, and compatibility fixes" (part 1)

Reason:
Unneeded, was part of planned administrative curiosities

https://gerrit.wikimedia.org/r/292402

Change 292403 abandoned by AndyRussG:
Re-apply "jshint, gruntfile, and compatibility fixes" (part 2)

Reason:
Unneeded, was part of planned administrative curiosities

https://gerrit.wikimedia.org/r/292403

Change 292404 merged by jenkins-bot:
Re-apply "jshint, gruntfile, and compatibility fixes" (part 1)

https://gerrit.wikimedia.org/r/292404

Change 292503 had a related patch set uploaded (by Awight):
Update extensions/CentralNotice submodule

https://gerrit.wikimedia.org/r/292503

Mentioned in SAL [2016-06-02T23:59:36Z] <awight@tin> Started scap: Deploying labtestwiki AuthManager config; Enabling Popups experiment; CentralNotice fixes for T136408, T136387; Special:Notifications fixes

Mentioned in SAL [2016-06-03T00:24:45Z] <awight@tin> Finished scap: Deploying labtestwiki AuthManager config; Enabling Popups experiment; CentralNotice fixes for T136408, T136387; Special:Notifications fixes (duration: 25m 08s)

AFIK this is fixed...! :)

AndyRussG closed this task as Resolved.Jun 6 2016, 10:01 PM
AndyRussG moved this task from Doing to Done on the Fundraising Sprint Killing Time board.